/*
Theme Name: Bart's Books
Theme URI: https://aiformmaker.site
Author: AIFormMaker
Author URI: https://aiformmaker.site
Description: A WordPress theme that mimics the Bart's Books Ojai website design - the world's largest outdoor bookstore
Version: 1.0
License: GPL v2 or later
Text Domain: barts-books
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #f7f5f3;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #2c2c2c;
}

h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1.5rem;
    color: #4a4a4a;
    text-align: justify;
    hyphens: auto;
}

a {
    color: #8B4513;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: #654321;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: #f7f5f3;
    padding: 20px 0;
    position: relative;
    border-bottom: 1px solid #e0ddd9;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    flex: 1;
}

.site-logo img {
    max-height: 80px;
    width: auto;
}

.site-logo a {
    text-decoration: none;
}
.centered {
	  text-align: center;

}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.mobile-menu-toggle.active span {
    background: white;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-left: 1px solid #e0ddd9;
}

.nav-menu a:hover {
    background-color: #ede9e5;
    color: #8B4513;
}

.nav-menu li:last-child a {
    border-right: 1px solid #e0ddd9;
}

/* Hero Section */
.hero-section {
    background: #f7f5f3;
    padding: 60px 0 80px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: #2c2c2c;
    font-weight: normal;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: #555;
    font-style: italic;
    line-height: 1.4;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

/* Press Logos Section */
/* Press Logos Section - Full Width Black Background */
.press-logos-section {
    background-color: #000000;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 20px 60px;
    margin-top: -10px;
    margin-bottom: 3rem;
}

.press-logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.press-logo-item {
    transition: opacity 0.3s ease;
    flex: 1;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

.press-logo-item img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
}

.press-logo-item a {
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    text-decoration: none;
}

.press-logo-item:hover {
    opacity: 0.8;
}


/* Instagram Feed Section */
.instagram-feed {
    margin: 4rem 0;
    text-align: center;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.instagram-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.instagram-item:hover {
    transform: scale(1.05);
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-item a {
    display: block;
    cursor: pointer;
}

.instagram-item a:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.instagram-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    text-align: center;
    padding: 10px;
    position: relative;
}

.instagram-placeholder::before {
    content: attr(data-text);
    word-wrap: break-word;
    max-width: 100%;
}

.social-follow {
    font-size: 1.1rem;
    color: #666;
    margin-top: 2rem;
    text-align: center;
}

.social-follow a {
    color: #8B4513;
    font-weight: bold;
}

.social-follow p {
    text-align: center;
}

/* Quote Section */
.quote-section {
    background: #ede9e5;
    padding: 4rem 2rem;
    margin: 4rem 0;
    text-align: center;
}

.quote-text {
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: #2c2c2c;
    line-height: 1.4;
}

.quote-attribution {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
}

.quote-attribution em {
    color: #8B4513;
}

/* Events Page Styles */
.events-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px dotted #ccc;
}

.event-image {
    flex: 0 0 200px;
    position: relative;
}

.event-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.event-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.event-date .month {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c2c2c;
}

.event-content {
    flex: 1;
}

.event-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c2c2c;
}

.event-title a {
    color: #2c2c2c;
    text-decoration: none;
}

.event-title a:hover {
    color: #8B4513;
}

.event-details {
    color: #666;
    margin-bottom: 1rem;
}

.view-event-btn {
    background: #8B4513;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.view-event-btn:hover {
    background: #654321;
    color: white;
}

/* Newsletter Signup */
.newsletter-section {
    background: #ede9e5;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
}

.newsletter-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c2c2c;
}

.newsletter-title a {
    color: #8B4513;
    text-decoration: none;
}

.newsletter-title a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-section {
    max-width: 600px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c2c2c;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0ddd9;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B4513;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.submit-btn {
    background: #8B4513;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #654321;
}

/* Page Templates */
.page-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    background: #f7f5f3;
}

.page-title {
    font-size: 3rem;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* FAQ Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.faq-item {
    border-bottom: 1px solid #e0ddd9;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.faq-question {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c2c2c;
    margin-bottom: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #8B4513;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #555;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1rem;
}

/* Press Page */
.press-coverage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.press-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.press-item:hover {
    transform: translateY(-5px);
}

.press-item h3 {
    color: #8B4513;
    margin-bottom: 1rem;
}

.press-item .press-publication {
    font-style: italic;
    color: #666;
    margin-bottom: 0.5rem;
}

.press-item .press-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background: #2c2c2c;
    color: #ccc;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer-info a {
    color: #ccc;
    text-decoration: none;
}

.footer-info a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ccc;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #8B4513;
    color: #fff;
}

.footer-bottom {
    text-align: left;
    padding-top: 2rem;
    padding-left: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #444;
}

.footer-bottom p {
    color: #999;
    font-size: 0.9rem;
}

/* Decorative Border */
.decorative-border {
    text-align: center;
    margin: 3rem 0;
    color: #ccc;
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hide desktop navigation completely on mobile */
    body .site-header .main-navigation {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.95) !important;
        z-index: 1000 !important;
        display: none !important;
        align-items: center !important;
        justify-content: center !important;
        /* Override any other positioning */
        transform: none !important;
        transition: none !important;
    }
    
    body .site-header .main-navigation.active {
        display: flex !important;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style: none;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        color: white;
        font-size: 2rem;
        font-weight: 300;
        text-decoration: none;
        padding: 1.5rem 2rem;
        border: none;
        transition: opacity 0.3s ease;
    }
    
    .nav-menu a:hover {
        opacity: 0.7;
    }
    
    .nav-menu li:last-child a {
        border: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .press-logos-grid {
        gap: 0;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .event-item {
        flex-direction: column;
        text-align: center;
    }
    
    .event-image {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .quote-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
    
    .container,
    .events-container,
    .page-content,
    .contact-form-section,
    .faq-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

/* Print Styles */
@media print {
    .site-header,
    .mobile-menu-toggle,
    .main-navigation,
    .site-footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}