/* --- Root Variables & Base Overrides (Matching previous Montserrat HTML) --- */
:root {
    --primary-blue: #2C5AA0; /* Your dark blue accent color */
    --text-dark: #1a1a1a;
    --text-light: #f4f4f4;
    --text-light-o: #f4f4f4d0;
    --bg-white: #ffffff;
    --bg-dark: #1a1a1a; /* Dark background for high contrast sections */
    --font-primary: 'Montserrat', sans-serif;
    --max-width: 1000px;
    --spacing-sm: 20px;
    --spacing-md: 40px;
    --spacing-lg: 80px;

}





body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white); /* Enforced white background */
    margin: 0;
    padding: 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}


/* A. HERO SECTION CONTAINER */
.hero-section {
    width: 100%;
    min-height: 720px;
    
    background-image: url('../images/hero-background-beta.jpg'); 
    background-size: cover; 


    background-position: 50% center;
    background-repeat: no-repeat; 

    position: relative;
    
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center; 
    
    padding: 0px 200px;
}

/* B. HERO CONTENT WRAPPER */
.hero-content-wrapper {
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
    gap: 32px; 
    z-index: 10;
}

/* C. TEXT STYLING */
.hero-content {
    max-width: 510px;
    z-index: 10;
}

.hero-content h1 {
    font: 3.5rem 'Garamond', serif;
    color: #2C3E50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.hero-content span {
    color: #2C5AA0;
}

.hero-content .subtitle {
    font: 20px 'Inter', sans-serif;
    font-weight: 300;
    color: #6B7280;
    line-height: 32.5px;
}

/* D. BUTTON STYLING */
.cta-group {
    display: flex;
    gap: 16px; 
}

@media (max-width: 1315px) {
    .cta-group {
        flex-direction: column;
        width: fit-content;
    }
    .cta-button.sample {
        justify-content: center;
    }
}


.cta-button, .form-submit-button {
    display: flex;
    align-items: center;
    gap: 8px;

    text-decoration: none;
    padding: 16px 20px;
    border-radius: 8px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.cta-button.primary, .form-submit-button.primary {
    background-color: #2C5AA0; 
    color: #fff;
}
.cta-button.primary span {
    color: #fff;
}

.cta-button.primary:hover {
    background-color: #1E3A70; 
    cursor: pointer;
}

.cta-button.sample {
    background-color: transparent;
    color: #2C3E50;
    border: 1px solid #00000020;
    font-weight: 600;
}

.cta-button.sample:hover {
    background-color: #00000008; 
    cursor: pointer;
}


/* E. MOBILE OPTIMIZATION (Hero) */
@media (max-width: 991px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding: 60px 0px; 
        min-height: auto;
        justify-content: center;
        align-items: center; 
        text-align: center;
        background-position: center center;

    }

    .hero-section::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.6);
        z-index: 1;
    }

    .hero-content-wrapper {
        align-items: center;
        max-width: 100%; 
        /* UPDATED: Inner padding for mobile */
        padding: 0;
    }
    
    .hero-content {
        max-width: 510px;
        text-align: center; 
    }

    
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
}


/* ======================================================= */
/* F. FEATURE ROW SECTION - MOBILE DEFAULT (Stacked Layout) */
/* ======================================================= */

.feature-row-section {
    background-color: #ffffff;
    /* Default vertical padding. Horizontal padding is 0, relying on .container */
    padding: 60px 40px 40px 40px; 
    margin-left: auto;
    margin-right: auto;
}



.feature-row-heading {
    font-family: 'Garamond', serif; 
    /* MOBILE DEFAULT: Center the heading for a better single-column look */
    text-align: center; 
    color: #2C3E50;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
}

.three-column-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
}

.feature-column {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    /* MOBILE DEFAULT: Center the icon, title, and subtitle */
    align-items: center;
    text-align: center;
    padding: 0;
    max-width: 280px;
    margin: 0 auto;

}

.feature-column .feature-icon,
.feature-column .material-symbols-outlined {
    font-size: 60px !important; 
    line-height: 1 !important; 
    color: #2C3E50;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 16px;
    /* MOBILE FIX: Allow title to wrap across multiple lines */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.feature-subtitle {
    font-size: 1rem;
    color: #2C3E50;
    line-height: 1.5;
}




/* ======================================================= */
/* DESKTOP OPTIMIZATION (min-width: 992px) - Restores Wide Layout */
/* ======================================================= */

@media (min-width: 992px) {
    
    /* FEATURE SECTION: Reintroduce the large horizontal padding for desktop */
    .feature-row-section {
        padding: 60px 200px 40px 200px;
      
    }
    
    /* HEADING: Revert alignment to desktop default */
    .feature-row-heading {
        text-align: left;
    }

    /* GRID: Revert to 3-column layout */
    .three-column-grid {
        grid-template-columns: repeat(3, 1fr);
        min-width: 760px;
    }

    /* COLUMN: Revert alignment to desktop default */
    .feature-column {
        align-items: flex-start;
        text-align: left;
        margin: 0;
    }
    
    /* TITLE: Revert to nowrap/ellipsis behavior for constrained desktop columns */
    .feature-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}


/* ======================================================= */
/* G. FEATURED RECIPES SECTION (3D Card Flip - Column Layout) */
/* ======================================================= */

.featured-recipes-section {
    background-color: #fff;
    padding: 40px 100px 80px 100px;
}

.featured-recipes-section .container {
    margin-left: auto;
    margin-right: auto;
}

.featured-recipes-heading {
    text-align: center; 
    font-family: 'Garamond', serif; 
    color: #2C3E50;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 32px; 
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px; 
}

/* 1. Recipe Card (The vertical column container) */
.recipe-card {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    gap: 16px; 

    perspective: 1000px; 
    cursor: pointer;
    position: relative; 
}

/* 2. Card Flipper (Sets the size of the image area) */
.card-flipper {
    width: 100%;
    height: 0; 
    padding-bottom: 133.33%; /* Maintains the 420:560 ratio */
    
    position: relative;
    top: 0;
    left: 0;
    transition: transform 0.4s;
    transform-style: preserve-3d;
}

/* State Change: When JS adds this class */
.card-flipper.is-flipped {
    transform: rotateY(180deg);
}

/* 3. Front and Back Faces (Fill the flipper area) */
.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    box-sizing: border-box;
    
    backface-visibility: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* CRITICAL for Zoom: Hides the part of the image that scales outside the card boundary */
.card-front {
    overflow: hidden; 
}


/* Back Face: Macro Content */
.card-back {
    transform: rotateY(180deg); 
    background-color: #2C3E50; 
    color: #fff;
    padding: 20px;
    text-align: center;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-back .back-title {
    font-family: 'Garamond', serif; 
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.card-back .macro-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
}

.card-back .macro-list li {
    font-weight: 300;
}

.card-back .recipe-details {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.8;
    max-width: 80%;
}


/* 4. Recipe Front Content (Image implementation) */

/* NEW: Wrapper for the image - used to contain the actual image */
.recipe-image-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* NEW: The actual image element - fill container and enable smooth zoom */
.recipe-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills container without distortion */
    /* Add transition for smooth zoom effect */
    transition: transform 0.4s ease-in-out; 
}

/* HOVER EFFECT: Zoom the image on web/desktop only */
@media (hover: hover) and (pointer: fine) {
    .recipe-card:hover .recipe-image {
        transform: scale(1.1) translateZ(0); /* Zooms the image by 10% */
    }
}



.recipe-tag {
    color: #2C5AA0; 
    font-family: 'Inter', sans-serif;
    font-size: 12px; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: static; 
    transform: none; 
}

/* Title Styling (Managed by Recipe Card Flexbox) */
.recipe-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #2C3E50;
    margin: 0;
    position: static;
    transform: none;
    background-color: transparent;
    padding: 0;
    white-space: normal;
}


/* Mobile optimization (Featured Recipes) */
@media (max-width: 768px) {
    .featured-recipes-section {
        padding: 40px; 
    }
    
    .recipe-grid {
        grid-template-columns: 1fr; 
        gap: 40px;
    }
}
/* ======================================================= */
/* H. COOKBOOK VALUE SECTION - FIX APPLIED HERE */
/* ======================================================= */

.cookbook-value-section {
    background-color: #ffffff;
    padding: 80px 100px;
    text-align: center;
}

/* Ensure the main container inside the section is working */
.cookbook-value-section .container {
    max-width: 1200px; /* Constrain the width of the whole section's content */
    margin-left: auto;
    margin-right: auto;
}

.cookbook-value-section .recipe-tag {
    display: inline-block;
    margin-bottom: 16px;
}

.value-main-heading {
    font-family: 'Garamond', serif;
    color: #2C3E50;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.1;
}

.value-main-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #6B7280;
    margin-bottom: 60px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Main 2-Column Layout */
.cookbook-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch; 
}

/* Left Column: Mockup Image */
.cookbook-mockup-container {
    padding: 0 40px; 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.cookbook-mockup-image {
    height: 100%; 
    width: 100%; 
    object-fit: cover; 
    max-width: 100%; 
    min-height: 0; 

    background-color: transparent; /* Assuming you have a real image now */
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


/* Right Column: Features Block */
.cookbook-features-block {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: left; 
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.features-block-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: bold; 
    color: #2C3E50;
    margin: 0;
}

.features-block-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.6;
}

/* 2x2 Feature Grid - Centering it within the right column */
.feature-value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px; 
    margin-left: auto;
    margin-right: auto;
}

.value-card {
    background-color: var(--bg-dark); 
    padding: 24px;
    border-radius: 8px;
    text-align: left; 
}

.value-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);

    margin-top: 0;
    margin-bottom: 4px;
}



.value-card-detail {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light-o);
    margin: 0;
}

/* CTA Button - Centering the button */
.cta-button.large {
    padding: 18px 24px;
    width: auto; 
    display: inline-flex; 
    margin-left: 0;
    margin-right: 0;
    justify-content: center;
}

/* Mobile Responsiveness for Cookbook Section */
@media (max-width: 991px) {
    .cookbook-value-section {
        padding: 60px 40px;
    }
    
    /* Ensure the container width is managed on mobile */
    .cookbook-value-section .container {
        max-width: 100%;
        padding: 0;
    }
    
    .value-main-heading {
        font-size: 2.5rem;
    }

    .cookbook-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cookbook-mockup-container {
        padding: 0;
    }

    .cookbook-features-block {
        gap: 20px;
        text-align: center;
        max-width: 100%; /* Remove desktop constraint */
    }

    .features-block-title {
        font-size: 1.4rem;
    }
    
    .feature-value-grid {
        grid-template-columns: 1fr;
        max-width: 300px; 
        margin-left: auto;
        margin-right: auto;
    }
    
    .value-card {
        text-align: center; 
    }
    
    .cta-button.large {
        width: 100%;
        margin-top: 10px; 
    }
}


/* ======================================================= */
/* I. TESTIMONIAL SECTION (Alternating Before/After Focus) */
/* ======================================================= */

.testimonial-section {
    padding: 80px 100px;
    text-align: center;
}

.testimonial-section .container {
    max-width: 1200px; 
    margin-left: auto;
    margin-right: auto;
}

.testimonial-heading {
    font-family: 'Garamond', serif;
    color: #2C3E50;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.testimonial-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #6B7280;
    margin-bottom: 60px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto
}

/* --- Main Testimonial Cards (Alternating Layout) --- */

.main-testimonial-card {
    display: flex;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px; /* Space between cards */
    overflow: hidden;
    text-align: left;
}

/* 1. Visuals on the Right (Visual 2 / Even cards) */
.main-testimonial-card.visual-right {
    flex-direction: row-reverse; /* Reverses the order of the flex items (visuals and content) */
}

/* 2. Visuals Column */
.before-after-visuals {
    flex: 1;
    display: flex;
    min-width: 50%;
    /* Fix: Forces the visuals to take a fixed height to balance with the text */
    height: 420px; 
    position: relative;
}

.visual-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    /* Default placeholder for skin tone */
    background-image: linear-gradient(to right, #b49b8a, #c0a797);
}

.visual-wrapper.before .image-placeholder {
    background-image: linear-gradient(to right, #917d6e, #b49b8a);
}

.image-placeholder.alt {
    /* Alternative colors for visual variety */
    background-image: linear-gradient(to right, #6b8e23, #a0b746);
}

.visual-wrapper.before .image-placeholder.alt {
    background-image: linear-gradient(to right, #4b5e1b, #6b8e23);
}

.visual-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background-color: rgba(44, 62, 80, 0.75); 
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

/* 3. Content Column */
.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.testimonial-quote {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-style: italic;
    color: #2C3E50;
    border-left: 4px solid #2C5AA0; 
    padding-left: 20px;
    margin: 0 0 25px 0;
    line-height: 1.4;
}

.testimonial-meta {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.testimonial-author {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 5px;
}

.testimonial-stat {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #6B7280;
    margin: 0;
}

/* --- Small Testimonial Grid with Image --- */

.small-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px; /* Separation from large cards */
}

.small-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.small-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.small-image-placeholder {
    width: 40px;
    height: 40px;
    background-color: #D3D3D3; /* Placeholder color for face/small result */
    border-radius: 50%;
    flex-shrink: 0;
}

.quote-icon {
    color: #F39C12; 
    font-size: 1rem;
    flex-grow: 0;
}

.small-quote {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-style: italic;
    color: #2C3E50;
    margin-bottom: 15px;
    line-height: 1.5;
}

.small-author {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6B7280;
    margin: 0;
}


/* Mobile Responsiveness for Testimonial Section */
@media (max-width: 991px) {
    .testimonial-section {
        padding: 40px;
    }
    
    .testimonial-heading {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

    .main-testimonial-card {
        flex-direction: column; /* Stack visuals and content vertically */
    }
    
    .main-testimonial-card.visual-right {
        flex-direction: column; /* Ensure order is not reversed on mobile */
    }

    .before-after-visuals {
        min-width: 100%;
        height: 200px; /* Reduced height for mobile */
    }
    
    .testimonial-content {
        padding: 30px;
        text-align: left;
    }
    
    .testimonial-quote {
        padding-left: 0;
        border-left: none;
        border-bottom: 2px solid #2C5AA0; 
        padding-bottom: 15px;
        font-size: 1.2rem;
    }

    .testimonial-meta {
        padding-top: 20px;
    }

    .small-testimonial-grid {
        grid-template-columns: 1fr; /* Stack small cards */
        gap: 20px;
        margin-top: 40px;
    }
}



/* ======================================================= */
/* J. DOWNLOAD CTA SECTION */
/* ======================================================= */

.download-cta-section {
    padding: 20px 100px 80px 100px;
    text-align: center;
}

.cta-container {
    max-width: 900px; 
    margin: 0 auto;
}

.cta-card {
    background-color: var(--bg-dark);
    border-radius: 12px;
    box-shadow: 0 0px 40px rgba(0, 0, 0, 0.05); 
    overflow: hidden;
}

.cta-card-content {
    padding: var(--spacing-md) var(--spacing-lg) ; 
}

/* --- Header Styles --- */

.cta-header {
    margin-bottom: 40px;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background-color: #12843c; /* Green-500 */
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.875rem;
    gap: 12px;
}

.cta-badge .badge-icon {
    font-size: 1.1rem;
    margin-right: 8px;
}

.cta-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.25rem; 
    line-height: 1.1;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 16px;
}

.cta-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem; 
    color: var(--text-light-o); 
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.4;
}

/* --- Main Content Grid (Two Columns) --- */

.cta-main-content-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 40px;
    align-items: center;
    text-align: left;
}

@media (min-width: 1024px) { 
    .cta-main-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px; 
    }
}

/* Left Column: Benefits List */
.cta-benefits {
    font-family: 'Inter', sans-serif;
}

.benefits-title {
    font-size: 1.25rem; 
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 24px;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 1rem; 
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px; 
    font-size: 1rem;
    color: var(--text-light-o);
}

/* Checkmark Icon Styling */
.benefit-item::before {
    content: '✔'; /* Checkmark character */
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    color: #2C5AA0; /* Primary color checkmark */
    flex-shrink: 0;
    line-height: 1;
}

/* Right Column: Pricing & Action */
.cta-action-block {
    display: flex;
    flex-direction: column;
    gap: 24px; 
}

.cta-pricing-box {
    background-color: #f7f7f7; 
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.pricing-value {
    font-size: 2.25rem; 
    font-weight: bold;
    color: #2C5AA0; 
    margin-bottom: 8px;
}

.pricing-original {
    color: #6B7280; 
    text-decoration: line-through;
    margin-bottom: 8px;
}

.pricing-info {
    font-size: 0.875rem; 
    color: #2C5AA0; 
    font-weight: 500;
}

/* Button */
.download-button {
    width: 100%;
    font-size: 1.125rem; 
    padding: 24px; 
    /* Ensures button is block-level and stretches */
    display: flex !important; 
    justify-content: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.download-button .download-icon {
    font-size: 1.25rem;
    margin-right: 8px;
    line-height: 1;
}

.cta-download-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.875rem; 
    color: var(--text-light-o); 
}

.cta-download-note .clock-icon {
    font-size: 1rem;
}

.cta-fine-print {
    text-align: center;
    font-family: 'Inter', sans-serif;
    color: var(--text-light-o); 
    padding-top: 8px;
    line-height: 1.4;
}

.cta-fine-print p {
    margin: 0 0 4px 0;
    font-size: 0.875rem; 
}

.cta-fine-print .small-text {
    font-size: 0.75rem; 
}


/* Mobile Adjustments */
@media (max-width: 768px) {
    .download-cta-section {
        padding: 40px 20px;
    }
    
    .cta-card-content {
        padding: 40px 30px;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }

    /* Main content grid defaults to 1 column (no change needed here) */

    .cta-benefits {
        text-align: left;
    }
    
    .benefits-title {
        text-align: left;
    }
    
    .benefit-item {
        /* Align benefits to the left on mobile */
        justify-content: flex-start;
    }
    
 
}



/* --- Footer Styles --- */

/* Parent Footer Section (Full width, dark background) */
.footer-section {
    background-color: var(--bg-dark); /* Dark background for high contrast */
    color: #bbb; /* Light grey text */
    padding: var(--spacing-md) 0; /* 40px padding top/bottom */
    font-size: 0.9em;
}

/* Container for Centering & Max Width */
.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column; /* Stack all content vertically */
    align-items: center; /* Center all stacked content */
    text-align: center;
}

/* Line One: Logo and Brand Text */
.footer-line-one {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    height: 35px; /* Smaller logo in the footer */
}

.footer-brand-text {
    font-weight: 900;
    font-size: 1.2em;
    text-transform: uppercase;
    color: var(--primary-blue); /* Highlight brand text with accent color */
    margin-top: 4px;
}

/* Tagline */
.footer-tagline {
    font-size: 1em;
    max-width: 600px;
    line-height: 1.2;
}

/* Divider Line */
.footer-divider {
    width: 100%;
    max-width: 400px; /* Short line for minimalist look */
    border: none;
    border-top: 1px solid #333; /* Light grey thin line */
}

/* Line Three: Copyright and Links */
.footer-line-three {
    width: 100%;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allows links to wrap on small screens */
    gap: 8px; /* Spacing between copyright, links, and separators */
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue); /* Accent color on hover */
}


.link-separator {
    color: #666; /* Subtler grey for copyright and separators */
    white-space: nowrap; /* Keep items from breaking mid-word */
    font-size: 0.95em;
}

.link-separator {
    margin: 0 4px;
}


/* Optional: Mobile adjustments for better stacking on tiny screens */
@media (max-width: 480px) {
    .footer-section {
        padding: 30px 0;
    }

    .footer-line-one {
        flex-direction: column;
        gap: 5px;
    }

    .footer-brand-text {
        font-size: 1em;
    }

    .footer-links {
        /* When links wrap, give them more space */
        flex-direction: column;
        gap: 5px;
    }

    .link-separator {
        display: none; /* Hide vertical separator when links stack */
    }
}

/* ======================================================= */
/* MODAL STYLING */
/* ======================================================= */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 999;
}

#overlay.active {
    pointer-events: auto;
    opacity: 1;
}




.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95); /* Slight scale change */
    background-color: #fff;
    padding: 30px 40px; /* Increased padding for better breathing room */
    border-radius: 16px; /* Slightly larger border radius for modern feel */
    max-width: 90%;
    width: 480px; /* Slightly wider */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Use a subtle "bounce" transition for transform */
    z-index: 1000;
    font-family: 'Inter', sans-serif; /* Keep your existing font family */
    
    /* NEW: Professional box shadow for depth */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none; /* Removed harsh line for a cleaner look */
    padding-bottom: 10px;
    margin-bottom: 20px; /* Increased spacing after header */
}

.modal-title {
    font-size: 1.8rem; /* Larger, more dominant title */
    color: #2c3e50;
    margin: 0;
    font-weight: 700; /* Bolder title */
}

/* Form and Content */
.modal-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
}



.modal-content label {
    font-size: 0.9rem;
    color: #333;
    font-weight: 600; /* Make labels stand out */
    margin-bottom: -16px; /* Pull the label closer to the input */
}

.modal-content input {
    padding: 14px; /* Increased vertical padding */
    border: 2px solid #ddd; /* Thicker, lighter border */
    border-radius: 10px; 
    font-size: 1rem;
    width: 100%;
    color: #333;
    transition: border-color 0.2s;
}

.modal-content input:focus {
    border-color: #2C5AA0; /* Highlight focus state with brand color */
    outline: none; /* Remove default browser outline */
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1); /* Subtle shadow on focus */
}

.modal-content form{
    display: flex;
    flex-direction: column;
    gap: 20px; /* Increased gap between form elements */
}

/* Submit Button (Assuming this uses your existing .cta-button.primary style) */
/* Ensure the primary button uses the brand blue for high contrast */

/* Close Button (Updated for cleaner look) */
.close-button {
    background: none;
    border: none;
    font-size: 1.8rem; /* Slightly smaller */
    font-weight: 400; 
    cursor: pointer;
    color: #888; /* Softer color */
    padding: 5px;
    line-height: 1;
    transition: color 0.2s, background-color 0.2s;
    border-radius: 50%; /* Make it circular */
}

.close-button:hover {
    color: #2c3e50; /* Darken on hover */
}