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

:root {
    --navy: #1a2332;
    --cream: #f5f1e8;
    --gold: #c9a961;
    --dark-gold: #a68b4f;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --light-gray: #f0f0f0;
    --charcoal: #2a2a2a;
    --charcoal-dark: #1a1a1a;
    --accent-teal: #00897b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-gray);
    line-height: 1.6;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
}

.main-headline {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--navy);
}

.subheadline {
    font-size: 1.3rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 300;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--gold);
}

/* Navigation */
.navbar {
    background-color: var(--light-gray);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: translateZ(0); /* Force hardware acceleration to prevent shifts */
}

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

.nav-logo {
    padding-left: 2rem;
    margin-left: -2rem; /* Pulls it to the left edge */
    position: relative; /* Ensure stable positioning */
    will-change: auto; /* Prevent layout shifts */
}

.nav-logo a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem; /* Increased from 1.8rem */
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.8rem; /* Increased from 1rem */
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--charcoal);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Sections */
.section {
    padding: 6rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Videos Section */
.videos-section {
    background-color: var(--light-gray);
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    min-height: auto; /* Override the default min-height from .section */
    display: block; /* Override flex display */
    border-top: 50px solid var(--light-gray); 
}

.videos-section .section-title {
    margin-bottom: 1.5rem; /* Reduce spacing below title */
    margin-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Home Section */
.home-section {
    padding: 0;
    min-height: 100vh;
    display: block;
    position: relative;
    margin-top: 80px;
}

.hero-background {
    width: 100%;
    height: calc(100vh - 80px);
    /* Replace 'images/hero-background.jpg' with your image path */
    background-image: url('background_one.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Fallback color in case image doesn't load */
    background-color: var(--charcoal-dark);
    /* Border around the image - adjust width, style, and color as needed */
    border: 50px solid var(--light-gray);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Dark overlay to ensure text readability - adjust opacity (0.3-0.6) as needed */
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    letter-spacing: 1px;
}

.hero-line-1 {
    display: block;
    margin-bottom: 0.5rem;
}

.hero-line-2 {
    display: block;
    margin-left: 2rem;
    font-size: 0.5em; /* Makes it 70% of the parent font size */
    font-style: italic;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* About Section */
.about-section {
    background-color: var(--light-gray);
    padding: 0;
    min-height: auto;
    display: block;
}

.about-container {
    display: flex;
    width: 100%;
    min-height: 50vh;
    align-items: stretch;
}

.about-image-wrapper {
    flex: 0 0 60%; /* Reduced from 60% - adjust this value to make image smaller/larger */
    width: 60%;
    overflow: hidden;
    max-width: 950px; /* Optional: limit maximum width of image */
    /* Border only on left and right sides */
    border-left: 50px solid var(--light-gray);
    border-right: 50px solid var(--light-gray);
    border-top: none;
    border-bottom: none;
    box-sizing: border-box;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #e0e0e0; /* Placeholder background if image doesn't load */
}

.about-image:not([src]),
.about-image[src=""] {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image:not([src])::after,
.about-image[src=""]::after {
    content: 'About Image';
    color: #999;
    font-size: 1.2rem;
}

.about-content {
    flex: 0 0 50%;
    width: 50%;
    padding: 6rem 4rem 6rem 0rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--light-gray);
    
    border-left: none;
    border-right: 50px solid var(--light-gray);
    box-sizing: border-box;
}

.about-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.about-title::after {
    content: '';
    display: none; /* Remove the underline from section-title */
}

.lead-text {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 2rem;
    font-style: italic;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Currently Reading Section */
.reading-section {
    background-color: var(--light-gray);
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    min-height: auto;
    display: block;
    border-top: 50px solid var(--light-gray);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.book-item {
    text-align: center;
    transition: transform 0.3s ease;
}

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

.book-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: var(--white);
    display: block;
}

.book-title {
    margin-top: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--navy);
    font-weight: 500;
}


/* Contact Section */
.contact-section {
    background-color: var(--light-gray);
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    min-height: auto;
    display: block;
    border-top: 50px solid var(--light-gray);
    border-bottom: 50px solid var(--light-gray);
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.contact-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.contact-item {
    font-size: 1.1rem;
    text-align: center;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
}

.contact-link {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--dark-gold);
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--navy);
    color: var(--light-gray);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--light-gray);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .main-headline {
        font-size: 2.5rem;
    }

    .subheadline {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section {
        padding: 4rem 0;
    }

    /* About Section Responsive */
    .about-container {
        flex-direction: column;
        min-height: auto;
    }

    .about-image-wrapper {
        flex: 0 0 auto;
        width: 100%;
        height: 50vh;
    }

    .about-content {
        flex: 0 0 auto;
        width: 100%;
        padding: 3rem 2rem;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .home-section {
        margin-top: 70px;
    }

    .hero-background {
        height: calc(100vh - 70px);
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-line-2 {
        margin-left: 1rem;
    }
}

@media (max-width: 480px) {
    .main-headline {
        font-size: 2rem;
    }

    .subheadline {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-line-2 {
        margin-left: 0.5rem;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-title {
        font-size: 2rem;
    }

    .about-content {
        padding: 2rem 1.5rem;
    }
}

/* Placeholder image styling */
.book-cover:not([src]) {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover:not([src])::before {
    content: 'Image';
    color: #999;
    font-size: 0.9rem;
}

