/* ======================= GENERAL SETUP & VARIABLES ======================= */
:root {
    --dark-blue: #003844;
    --green-teal: #006C67;
    --accent-pink: #F194B4;
    --text-light: #f0f0f0;
    --text-dark: #333;
    --bg-light: #fff;
    --bg-off-white: #f8f9fa;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease;
    --container-width: 1140px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-blue);
}

h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--green-teal); transition: var(--transition-fast); }
a:hover { color: var(--accent-pink); }
img { max-width: 100%; height: auto; display: block; }
section { padding: 80px 0; overflow-x: hidden;}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-tagline {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-pink);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* ======================= REUSABLE COMPONENTS ======================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
    text-align: center;
}
.btn-primary { background-color: var(--green-teal); color: var(--text-light); }
.btn-primary:hover { background-color: #005651; transform: translateY(-3px); }
.btn-accent { background-color: var(--accent-pink); color: var(--dark-blue); }
.btn-accent:hover { background-color: #e87fa1; transform: translateY(-3px); }
.btn-secondary { border-color: var(--green-teal); color: var(--green-teal); }
.btn-secondary:hover { background-color: var(--green-teal); color: var(--text-light); }
.btn-large { padding: 15px 40px; font-size: 1.1rem; }

/* ======================= HEADER & NAVIGATION ======================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 900; color: var(--dark-blue); }
.logo span { color: var(--accent-pink); }
.main-nav ul { list-style: none; display: flex; gap: 30px; }
.main-nav a { font-weight: 500; color: var(--dark-blue); position: relative; }
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-pink);
    transition: var(--transition-fast);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.nav-toggle { display: none; } /* For mobile */

/* ======================= 1. HERO SECTION ======================= */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--text-light);
    padding-top: 100px;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero-bg.webp') no-repeat center center/cover;
    z-index: -2;
}
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--dark-blue) 30%, rgba(0, 56, 68, 0.5) 100%);
    z-index: -1;
}
.hero-content {
    max-width: 60%;
}
.hero-content h1 { color: var(--text-light); }
.hero-content p { font-size: 1.2rem; max-width: 500px; }

/* ======================= 2. PHILOSOPHY SECTION ======================= */
/* ======================= 2. PHILOSOPHY SECTION (REDESIGNED) ======================= */
#philosophy {
    background-color: var(--dark-blue);
    overflow: hidden; /* Prevents background shape from overflowing the section */
    position: relative;
}

.philosophy-composition {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* Using a 12-column grid for precise placement */
    align-items: center;
    min-height: 600px;
}

/* 1. The Decorative Background Shape */
.philosophy-bg-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background-color: var(--green-teal);
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Creates a soft "blob" shape */
    transform: translate(-50%, -50%) rotate(0deg);
    z-index: 1;
    transition: transform 0.8s ease-in-out, border-radius 0.8s ease-in-out;
}

/* 2. The Image Wrapper and Image */
.philosophy-image-wrapper {
    grid-column: 1 / 8; /* Spans the first 7 columns */
    grid-row: 1 / 2;
    position: relative;
    z-index: 3;
    transition: var(--transition-slow);
}

.philosophy-image-wrapper img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border: 4px solid var(--bg-light);
    transform: rotate(-4deg);
    transition: var(--transition-slow);
}

/* 3. The Text Content Wrapper */
.philosophy-text-wrapper {
    grid-column: 7 / 13; /* Spans from column 7 to 12, creating the overlap */
    grid-row: 1 / 2;
    position: relative;
    z-index: 4;
    padding: 40px;
    
    /* Modern glass morphism effect */
    background: rgba(0, 108, 103, 0.5); /* A semi-transparent version of our green */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    border-radius: 10px;
    color: var(--text-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: var(--transition-slow);
}

.philosophy-text-wrapper h2 { color: var(--text-light); }
.philosophy-text-wrapper .section-tagline { color: var(--accent-pink); }
.philosophy-text-wrapper p { margin-bottom: 0; opacity: 0.9; }

/* 4. The Composite Hover Effect */
/* When hovering the entire composition... */
.philosophy-composition:hover .philosophy-bg-shape {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.1);
    border-radius: 50%; /* Shape morphs on hover */
}

.philosophy-composition:hover .philosophy-image-wrapper img {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
}

.philosophy-composition:hover .philosophy-text-wrapper {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}


/* --- Responsive Adjustments for the Redesigned Section --- */
@media (max-width: 992px) {
    .philosophy-composition {
        grid-template-columns: 1fr; /* Stack elements on smaller screens */
        min-height: auto;
        gap: 30px;
    }
    .philosophy-image-wrapper,
    .philosophy-text-wrapper {
        grid-column: 1 / -1; /* Both elements take full width */
    }
    .philosophy-text-wrapper {
        /* Remove the negative margin overlap for a clean stack */
        margin-top: -80px; /* Pull the text box up over the image */
        margin-left: auto;
        margin-right: auto;
        width: 90%;
    }
    .philosophy-bg-shape {
        width: 120%; /* Make shape larger to fill background */
        top: 20%;
        left: 50%;
    }
}

/* ======================= 3. FEATURED MEALS SECTION ======================= */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.meal-card {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.meal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.meal-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-content { padding: 25px; }
.card-content .price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-teal);
    display: block;
    margin-top: 15px;
}

/* ======================= 4. HOW IT WORKS SECTION ======================= */
#how-it-works { background: linear-gradient(to bottom, var(--dark-blue), #002a33); color: var(--text-light); }
#how-it-works h2, #how-it-works .section-tagline { color: var(--text-light); }
.steps-container {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
}
.steps-container::before { /* Timeline effect */
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    bottom: 20px;
    width: 3px;
    background-color: var(--green-teal);
    border-radius: 2px;
}
.step-item { display: flex; align-items: flex-start; gap: 30px; position: relative; }
.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--accent-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.step-number span { font-family: var(--font-heading); color: var(--dark-blue); font-weight: 700; }
.step-content h3 { color: var(--accent-pink); }

/* ======================= 5. TESTIMONIALS SECTION ======================= */
#testimonials { background-color: var(--bg-off-white); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--bg-light);
    padding: 30px;
    border-left: 5px solid var(--green-teal);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.testimonial-card p { font-style: italic; margin-bottom: 1rem; }
.testimonial-card cite { font-weight: 700; color: var(--dark-blue); font-style: normal; }

/* ======================= 6. CTA SECTION ======================= */
#cta {
    color: var(--text-light);
    text-align: center;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}
.cta-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.cta-background img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
#cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 108, 103, 0.7);
    z-index: -1;
}
.cta-content h2 { color: var(--text-light); }
.cta-content p { max-width: 600px; margin: 0 auto 30px; }

/* ======================= 7. GALLERY TEASER SECTION ======================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 15px;
    margin-top: 50px;
}
.gallery-item { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.gallery-item:nth-child(2) { grid-column: 3 / 5; }
.gallery-item:nth-child(3) { grid-column: 3 / 4; }
.gallery-item:nth-child(4) { grid-column: 4 / 5; }
.gallery-link { text-align: center; margin-top: 40px; }


/* =================================================================== */
/* ======================= MEALS PAGE STYLES ======================= */
/* =================================================================== */

/* ======================= 1. MENU HERO SECTION ======================= */
#menu-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    background: linear-gradient(rgba(0, 56, 68, 0.7), rgba(0, 56, 68, 0.7)), url('images/menu-bg.webp') no-repeat center center/cover;
    position: relative;
}
.menu-hero-content h1 { color: var(--text-light); }

/* ======================= 2. MENU CATEGORIES SECTION ======================= */
#menu-categories { background-color: var(--bg-off-white); }
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.category-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-pink);
    box-shadow: var(--shadow);
}
.category-card h3 { color: var(--green-teal); }
.category-card p { margin-bottom: 0; color: var(--text-dark); }

/* ======================= 3. SIGNATURE PIZZAS SECTION ======================= */
.pizza-list { display: flex; flex-direction: column; gap: 80px; margin-top: 50px; }
.pizza-item {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}
.pizza-item:nth-child(even) { grid-template-columns: 1.2fr 1fr; }
.pizza-item:nth-child(even) .pizza-image { grid-column: 2 / 3; }
.pizza-item:nth-child(even) .pizza-details { grid-column: 1 / 2; grid-row: 1 / 2; }
.pizza-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 100%;
    height: 350px;
    object-fit: cover;
}
.pizza-details .price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-blue);
    display: block;
    margin-top: 15px;
}

/* ======================= 4. BUILD YOUR OWN SECTION ======================= */
#build-your-own { background-color: var(--dark-blue); color: var(--text-light); }
#build-your-own h2, #build-your-own h3, #build-your-own .section-tagline { color: var(--text-light); }
#build-your-own .section-tagline { color: var(--accent-pink); }
.toppings-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}
.topping-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    border-top: 3px solid var(--green-teal);
}
.topping-category ul { list-style: none; margin-top: 15px; }
.topping-category li { padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

/* ======================= 5. SIDES & APPETIZERS SECTION ======================= */
#sides-appetizers {
    background: url('images/side-bg.webp') no-repeat center center/cover;
    position: relative;
}
#sides-appetizers::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 56, 68, 0.85);
    z-index: 1;
}
#sides-appetizers .container { position: relative; z-index: 2; }
#sides-appetizers h2, #sides-appetizers .section-tagline { color: var(--text-light); }
.sides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.side-card { /* Glass morphism effect */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    color: var(--text-light);
    text-align: center;
    padding-bottom: 20px;
}
.side-card img { width: 100%; height: 200px; object-fit: cover; }
.side-card h3 { color: var(--accent-pink); margin-top: 20px; }
.side-card p { padding: 0 20px; opacity: 0.9; }
.side-card .price { font-size: 1.2rem; font-weight: 700; color: var(--text-light); }

/* ======================= 6. DRINKS & DESSERTS SECTION ======================= */
#drinks-desserts { background-color: var(--bg-off-white); }
.dual-column-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}
.menu-column h3 {
    border-bottom: 2px solid var(--green-teal);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.menu-list { list-style: none; }
.menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 15px 0;
    border-bottom: 1px dotted #ccc;
}
.item-name { font-weight: 500; }
.item-price { font-family: var(--font-heading); color: var(--dark-blue); }

/* ======================= 7. DIETARY INFO SECTION ======================= */
/* =================================================================== */
/* ================= DIETARY INFO TABS (REDESIGNED) ================== */
/* =================================================================== */

.dietary-tabs-container {
    display: grid;
    grid-template-columns: 250px 1fr; /* Left column for nav, right for content */
    gap: 40px;
    margin-top: 50px;
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* --- Tab Navigation Styling --- */
.dietary-tab-nav {
    background-color: var(--bg-off-white);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.dietary-tab-button {
    background: none;
    border: none;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: var(--font-body);
    text-align: left;
    cursor: pointer;
    color: var(--text-dark);
    position: relative;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dietary-tab-button:hover {
    background-color: #e9ecef;
}

/* The active indicator bar */
.dietary-tab-button::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 0;
    width: 5px;
    background-color: var(--accent-pink);
    transition: height var(--transition-fast);
}

.dietary-tab-button.active {
    background-color: var(--bg-light);
    color: var(--green-teal);
    font-weight: 700;
}

.dietary-tab-button.active::after {
    height: 60%; /* Animate the bar into view */
}

/* --- Tab Content Styling --- */
.dietary-tab-content-wrapper {
    position: relative;
    padding: 40px;
    min-height: 400px; /* Ensures consistent height during transitions */
}

.dietary-tab-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;

    /* Transition properties for smooth fading */
    opacity: 0;
    visibility: hidden;
    position: absolute; /* Allows panels to stack for fading */
    top: 40px;
    left: 40px;
    right: 40px;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.dietary-tab-content.active {
    opacity: 1;
    visibility: visible;
    position: relative; /* Brings the active panel into the layout flow */
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(0);
}

.dietary-content-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.dietary-content-text h3 {
    margin-bottom: 1rem;
}

/* --- Responsive Adjustments for Tabs --- */
@media (min-width: 769px) {
    /* On larger screens, content can be side-by-side */
    .dietary-tab-content {
        /* grid-template-columns: 300px 1fr; */
    }
}

@media (max-width: 768px) {
    .dietary-tabs-container {
        grid-template-columns: 1fr; /* Stack nav on top of content */
        gap: 0;
    }
    .dietary-tab-nav {
        flex-direction: row; /* Make nav horizontal */
        justify-content: space-around;
        padding: 0;
    }
    .dietary-tab-button {
        flex-grow: 1;
        text-align: center;
        padding: 15px 10px;
    }
    .dietary-tab-button::after { /* Move indicator to the bottom */
        top: auto;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 4px;
        transition: width var(--transition-fast);
    }
    .dietary-tab-button.active::after {
        width: 60%;
        height: 4px;
    }
    .dietary-tab-content-wrapper {
        min-height: 450px;
    }
}

/* ======================= RESPONSIVE ADDITIONS FOR MEALS PAGE ======================= */
@media (max-width: 768px) {
    .pizza-item, .pizza-item:nth-child(even) {
        grid-template-columns: 1fr;
    }
    .pizza-item:nth-child(even) .pizza-image { grid-column: auto; }
    .pizza-item:nth-child(even) .pizza-details { grid-column: auto; grid-row: auto; }
    .pizza-image img { height: 250px; }
    .dual-column-menu { grid-template-columns: 1fr; }
}

/* =================================================================== */
/* ====================== PROCESS PAGE STYLES ====================== */
/* =================================================================== */

/* ======================= 1. PROCESS HERO SECTION ======================= */
#process-hero {
    padding: 120px 0;
    text-align: center;
    background: var(--dark-blue);
    color: var(--text-light);
}
#process-hero h1 { color: var(--text-light); }
#process-hero .section-tagline { color: var(--accent-pink); }
#process-hero p { max-width: 700px; margin: 0 auto; opacity: 0.9; }

/* ======================= 2. SOURCING SECTION ======================= */
#sourcing { background-color: var(--bg-off-white); }
.sourcing-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}
.sourcing-image-stack { position: relative; }
.sourcing-img-1 {
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.sourcing-img-2 {
    position: absolute;
    bottom: -30px;
    right: 30px;
    width: 50%;
    border-radius: 10px;
    border: 5px solid var(--bg-light);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* ======================= 3. DOUGH FERMENTATION SECTION ======================= */
/* =================================================================== */
/* ============== DOUGH PROCESS SECTION (SOPHISTICATED REDESIGN) ===== */
/* =================================================================== */

#dough-process {
    background-color: var(--bg-off-white);
}

.dough-flow-container {
    position: relative;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 50px; /* Space between the steps */
}

.dough-step {
    position: relative;
    display: flex;
    width: 55%; /* Each step takes up slightly more than half the width */
}

/* --- Alignment for the S-Curve Flow --- */
.dough-step.align-left {
    align-self: flex-start;
}
.dough-step.align-right {
    align-self: flex-end;
}

/* --- The Content Card Styling --- */
.dough-step-content {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border-left: 5px solid var(--accent-pink);
    position: relative;
    z-index: 2;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.dough-step:hover .dough-step-content {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* --- Large Background Number Styling --- */
.dough-step-number {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 10rem;
    color: var(--green-teal);
    opacity: 0.08;
    z-index: 1;
    user-select: none; /* Make the number unselectable */
    transition: opacity var(--transition-fast);
}

.dough-step.align-left .dough-step-number {
    left: -40px;
}
.dough-step.align-right .dough-step-number {
    right: -40px;
}

.dough-step:hover .dough-step-number {
    opacity: 0.12;
}

/* --- The Connector Lines --- */
.dough-step:not(:last-child)::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 120%; /* Extends from one card to the next */
    border-left: 2px dashed var(--accent-pink);
    opacity: 0.5;
    z-index: 0;
}

/* Position connector for left-aligned items */
.dough-step.align-left:not(:last-child)::before {
    top: 50%;
    right: -27.5%; /* Positioned relative to its 55% width to center it in the gap */
}

/* Position connector for right-aligned items */
.dough-step.align-right:not(:last-child)::before {
    top: 50%;
    left: -27.5%;
}

/* --- Responsive Adjustments for Sophisticated Timeline --- */
@media (max-width: 992px) {
    .dough-step {
        width: 70%;
    }
    .dough-step.align-left:not(:last-child)::before {
        right: -21.5%;
    }
    .dough-step.align-right:not(:last-child)::before {
        left: -21.5%;
    }
}

@media (max-width: 768px) {
    /* Stack everything vertically on mobile for readability */
    .dough-step,
    .dough-step.align-right {
        width: 100%;
        align-self: center;
    }
    .dough-step-number {
        font-size: 8rem;
    }
    .dough-step.align-left .dough-step-number {
        left: -20px;
    }
    .dough-step.align-right .dough-step-number {
        right: -20px;
    }
    /* Hide the connector lines on mobile as they don't make sense in a stacked layout */
    .dough-step::before {
        display: none;
    }
}
/* ======================= 4. ASSEMBLY & CRAFTSMANSHIP SECTION ======================= */
#assembly { background-color: var(--bg-off-white); }
.assembly-content {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
}
.assembly-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    filter: brightness(0.8);
}
.assembly-text-box {
    position: relative;
    z-index: 2;
    background: rgba(0, 56, 68, 0.85);
    backdrop-filter: blur(8px);
    color: var(--text-light);
    padding: 40px;
    border-radius: 10px;
    max-width: 50%;
    margin-left: 5%;
}
.assembly-text-box .section-tagline { color: var(--accent-pink); }

/* ======================= 5. WOOD-FIRED OVEN SECTION ======================= */
#oven { background-color: #1a1a1a; color: var(--text-light); }
#oven h2, #oven .section-tagline { color: var(--text-light); }
#oven .section-tagline { color: var(--accent-pink); }
.oven-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.oven-image-container img {
    border-radius: 10px;
    height: 500px;
    width: 100%;
    object-fit: cover;
}

/* ======================= 6. QUALITY CHECK SECTION ======================= */
#quality-check { background-color: var(--bg-off-white); }
.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.quality-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 10px;
    border-bottom: 4px solid var(--green-teal);
    transition: var(--transition-fast);
}
.quality-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}
.quality-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
}

/* ======================= 7. DELIVERY SECTION ======================= */
#delivery {
    position: relative;
    padding: 100px 0;
    color: var(--text-light);
    min-height: 70vh;
    display: flex;
    align-items: center;
}
.delivery-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
}
.delivery-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
#delivery::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, var(--dark-blue) 40%, rgba(0, 56, 68, 0.4) 100%);
    z-index: -1;
}
.delivery-content { max-width: 50%; }
.delivery-content h2 { color: var(--text-light); }
.delivery-content .section-tagline { color: var(--accent-pink); }
.delivery-content .btn { margin-top: 20px; }

/* ======================= RESPONSIVE ADDITIONS FOR PROCESS PAGE ======================= */
@media (max-width: 1024px) {
    .sourcing-grid { grid-template-columns: 1fr; }
    .sourcing-image-stack { max-width: 500px; margin: 40px auto 0; }
    .oven-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .assembly-text-box { max-width: 90%; }
    .dough-timeline::before { left: 27px; } /* Center on the icon */
    .delivery-content { max-width: 100%; }
    #delivery::before { background: rgba(0, 56, 68, 0.8); } /* Darken more on mobile */
}

/* =================================================================== */
/* ======================== STORY PAGE STYLES ======================== */
/* =================================================================== */

/* ======================= 1. STORY HERO SECTION ======================= */
#story-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/story-bg.webp') no-repeat center center/cover;
}
#story-hero h1 { color: var(--text-light); }
.story-hero-content { max-width: 800px; margin: 0 auto; }

/* ======================= 2. THE DREAMER SECTION ======================= */
#the-dreamer { background-color: var(--bg-light); }
.dreamer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}
.dreamer-image-container {
    position: relative;
    text-align: center;
}
.dreamer-image-container img {
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 100%;
}
.dreamer-caption {
    background: var(--dark-blue);
    color: var(--text-light);
    padding: 15px 20px;
    border-radius: 5px;
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.dreamer-caption h3 { color: var(--text-light); margin-bottom: 0.25rem; font-size: 1.2rem; }
.dreamer-caption p { margin-bottom: 0; opacity: 0.8; font-size: 0.9rem; }
.dreamer-content { padding-top: 30px; }

/* ======================= 3. EARLY DAYS (TIMELINE) SECTION ======================= */
#early-days { background-color: var(--bg-off-white); }
.story-timeline {
    margin-top: 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
/* Center timeline line */
.story-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 3px;
    background-color: var(--accent-pink);
}
.story-milestone {
    position: relative;
    width: 50%;
    padding: 0 40px;
}
.story-milestone:nth-child(odd) { align-self: flex-start; }
.story-milestone:nth-child(even) { align-self: flex-end; text-align: right; }

.milestone-year {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--dark-blue);
    background: var(--bg-light);
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 3px solid var(--accent-pink);
    box-shadow: 0 0 0 5px var(--bg-off-white);
    z-index: 2;
}
.story-milestone:nth-child(odd) .milestone-year { right: -45px; transform: translate(50%, -50%); }
.story-milestone:nth-child(even) .milestone-year { left: -45px; transform: translate(-50%, -50%); }
.milestone-content {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ======================= 4. OUR VALUES SECTION ======================= */
.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.values-content ul {
    list-style: none;
    margin-top: 20px;
}
.values-content ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
}
.values-content ul li::before {
    content: '✓';
    color: var(--green-teal);
    font-weight: bold;
    position: absolute;
    left: 0;
}
.values-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.values-images img {
    border-radius: 10px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.values-images img:nth-child(3) {
    grid-column: 1 / 3;
    height: 150px;
}

/* ======================= 5. MEET THE TEAM SECTION ======================= */
/* =================================================================== */
/* ================== TEAM SLIDER (SOPHISTICATED REDESIGN) ============= */
/* =================================================================== */

#team {
    background-color: var(--bg-off-white);
}

.team-slider-container {
    position: relative;
    width: 100%;
    margin-top: 50px;
    /* The "viewport" for our slider */
    overflow: hidden;
}

.team-slider-wrapper {
    display: flex; /* Aligns slides horizontally */
    /* This transition is the key to the smooth sliding animation */
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.team-slide {
    /* Each slide takes up a third of the container width */
    flex: 0 0 33.333%;
    padding: 0 15px; /* Creates gaps between slides */
    text-align: center;
    
    /* Soft animation for the focus effect */
    transition: opacity 0.6s ease, transform 0.6s ease;
    
    /* Default state for non-active slides */
    opacity: 0.5;
    transform: scale(0.9);
}

.team-slide.active {
    /* Active slide is fully visible and larger */
    opacity: 1;
    transform: scale(1);
}

.team-slide img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid var(--bg-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.team-slide h3 {
    margin-bottom: 5px;
}

.team-slide p {
    font-size: 0.9rem;
    color: var(--green-teal);
    margin-bottom: 0;
}

/* --- Slider Navigation --- */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-blue);
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.slider-nav-btn:hover {
    background-color: var(--bg-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slider-nav-btn.prev-btn {
    left: 20px;
}

.slider-nav-btn.next-btn {
    right: 20px;
}

/* Disabled state for buttons at the ends */
.slider-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}


/* --- Responsive Adjustments for Slider --- */
@media (max-width: 992px) {
    /* On tablets, show one main slide and a peek of the next */
    .team-slide {
        flex-basis: 50%;
    }
}

@media (max-width: 768px) {
    /* On mobile, focus on one slide at a time */
    .team-slide {
        flex-basis: 100%;
        padding: 0 25px; /* Give more side padding on mobile */
    }
    .slider-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .slider-nav-btn.prev-btn {
        left: 10px;
    }
    .slider-nav-btn.next-btn {
        right: 10px;
    }
}

/* ======================= 6. QUOTE SECTION ======================= */
#founder-quote {
    background: linear-gradient(to right, var(--green-teal), var(--dark-blue));
    padding: 80px 0;
    color: var(--text-light);
}
#founder-quote blockquote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border: none;
    padding: 0;
}
#founder-quote p {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 700;
}
#founder-quote cite {
    font-style: normal;
    font-weight: 500;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ======================= 7. THE FUTURE SECTION ======================= */
/* =================================================================== */
/* ============== THE FUTURE SECTION (SOPHISTICATED REDESIGN) ======== */
/* =================================================================== */

#the-future {
    background-color: var(--dark-blue);
    padding: 100px 0;
    overflow: hidden;
}

.future-composition {
    position: relative;
    display: grid;
    grid-template-columns: repeat(10, 1fr); /* 10-column grid for flexible placement */
    align-items: center;
    min-height: 550px;
}

/* --- The Background Image Layer --- */
.future-image-background {
    grid-column: 1 / 8; /* Position image on the left side */
    grid-row: 1 / -1;
    height: 100%;
    position: relative;
    border-radius: 10px;
    overflow: hidden; /* Hide the parts of the image that zoom out */
    
    /* The custom shape mask */
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.future-image-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Slower, smoother zoom */
}

/* --- The Floating Content Panel --- */
.future-content-panel {
    grid-column: 6 / 11; /* Overlap the image, positioned on the right */
    grid-row: 1 / -1;
    z-index: 2;
    
    /* Glass morphism effect */
    background: rgba(0, 56, 68, 0.6); /* Semi-transparent dark blue */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    padding: 40px;
    border-radius: 10px;
    color: var(--text-light);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.future-content-panel .section-tagline { color: var(--accent-pink); }
.future-content-panel h2 { color: var(--text-light); }
.future-content-panel .btn { margin-top: 20px; }

/* --- The Sophisticated Hover Effect --- */
.future-composition:hover .future-image-background img {
    transform: scale(1.08) rotate(-1deg);
}

.future-composition:hover .future-content-panel {
    transform: translateY(-20px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

/* --- Responsive Adjustments for Composition --- */
@media (max-width: 992px) {
    #the-future {
        padding: 60px 0;
    }
    .future-composition {
        grid-template-columns: 1fr; /* Stack elements */
        min-height: auto;
    }
    .future-image-background {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
        height: 350px;
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%); /* Adjust shape for vertical layout */
    }
    .future-content-panel {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
        align-self: end; /* Position panel at the bottom */
        margin: 0 auto;
        width: 90%;
        margin-bottom: -50px; /* Pull it down to overlap the section below */
    }
}

@media (max-width: 768px) {
    .future-image-background {
        height: 300px;
        clip-path: none; /* Revert to a simple rectangle on small screens for clarity */
    }
    .future-content-panel {
        width: 100%;
        margin-bottom: -40px;
        padding: 30px;
        /* Reduce the glass effect for better performance/readability on mobile */
        background: rgba(0, 56, 68, 0.85);
        backdrop-filter: blur(10px);
    }
}
/* ======================= RESPONSIVE ADDITIONS FOR STORY PAGE ======================= */
@media (max-width: 1024px) {
    .dreamer-grid, .values-grid, .future-grid { grid-template-columns: 1fr; }
    .dreamer-image-container { max-width: 400px; margin: 0 auto 40px; }
    .values-images { max-width: 500px; margin: 30px auto 0; }
}
@media (max-width: 768px) {
    #story-hero { min-height: 60vh; }
    .story-timeline::before { left: 15px; }
    .story-milestone, .story-milestone:nth-child(even) { width: 100%; align-self: flex-end; text-align: left; padding: 0 0 0 50px; }
    .story-milestone .milestone-year, .story-milestone:nth-child(odd) .milestone-year, .story-milestone:nth-child(even) .milestone-year {
        left: 15px;
        transform: translate(-50%, -50%);
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    #founder-quote p { font-size: 1.4rem; }
}

/* =================================================================== */
/* ======================= OFFERS PAGE STYLES ======================== */
/* =================================================================== */

/* ======================= 1. OFFERS HERO SECTION ======================= */
#offers-hero {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(rgba(0, 108, 103, 0.8), rgba(0, 108, 103, 0.8)), url('images/offer-bg.webp') no-repeat top center/cover;
    color: var(--text-light);
}
#offers-hero h1 { color: var(--text-light); }
#offers-hero p { max-width: 600px; margin: 0 auto; }
#offers-hero .section-tagline { color: var(--accent-pink); }

/* ======================= 2. DEAL OF THE WEEK SECTION ======================= */
#deal-of-the-week { background-color: var(--bg-off-white); }
.deal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.deal-image-container { position: relative; }
.deal-image-container img { border-radius: 10px; width: 100%; height: 400px; object-fit: cover;}
.deal-badge {
    position: absolute;
    top: 20px;
    left: -10px;
    background-color: var(--accent-pink);
    color: var(--dark-blue);
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 5px;
    transform: rotate(-3deg);
}
.deal-price-tag { margin: 20px 0; }
.original-price { text-decoration: line-through; opacity: 0.6; margin-right: 15px; font-size: 1.2rem; }
.current-price { font-size: 2.5rem; color: var(--green-teal); font-family: var(--font-heading); font-weight: 900; }
#countdown-timer { display: flex; gap: 10px; margin-bottom: 30px; }
.timer-box {
    background: var(--bg-off-white);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    width: 50px;
}
.timer-box span { font-size: 1.5rem; font-family: var(--font-heading); color: var(--dark-blue); display: block; }

/* ======================= 3. COMBO DEALS SECTION ======================= */
.combo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.deal-card {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.deal-card img { height: 200px; object-fit: cover; }
.deal-card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.deal-card-content h3 { margin-bottom: 15px; }
.deal-card-content ul { list-style: none; margin-bottom: 20px; flex-grow: 1; }
.deal-card-content li { padding-left: 20px; position: relative; margin-bottom: 5px; }
.deal-card-content li::before { content: '✓'; color: var(--green-teal); position: absolute; left: 0; }
.deal-card-price {
    font-family: var(--font-heading); font-size: 2rem; font-weight: 700;
    color: var(--dark-blue); margin-bottom: 20px;
}

/* ======================= 4. LOYALTY PROGRAM SECTION ======================= */
/* =================================================================== */
/* ============== LOYALTY PROGRAM (UNUSUAL REDESIGN) ================= */
/* =================================================================== */

#loyalty-program {
    background: var(--dark-blue);
    padding: 100px 0;
    overflow: hidden;
}

/* The parent element that enables the 3D effect for its children */
.loyalty-card {
    perspective: 2000px;
}

/* The actual card that will tilt in 3D space */
.loyalty-card-inner {
    position: relative;
    background: linear-gradient(135deg, #004552, var(--dark-blue));
    border-radius: 20px;
    padding: 4px; /* Creates a small border effect */
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5);
    transition: transform 0.1s linear; /* Fast transition for smooth tracking */
    
    /* These will be updated by JavaScript for the 3D effect */
    transform: rotateY(var(--rotate-y, 0deg)) rotateX(var(--rotate-x, 0deg));
}

/* The holographic sheen/glint effect */
.loyalty-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle 350px at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 108, 103, 0.4),
        rgba(241, 148, 184, 0.2),
        transparent
    );
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Show the glint on hover */
.loyalty-card:hover .loyalty-card-inner::before {
    opacity: 1;
}

/* The main content grid inside the card */
.loyalty-card-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Image on left, content on right */
    background-color: #002e38;
    border-radius: 16px;
    overflow: hidden;
}

.loyalty-card-image {
    position: relative;
    box-shadow: inset -10px 0px 15px -10px rgba(0,0,0,0.5); /* Inner shadow for depth */
}

.loyalty-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loyalty-card-content {
    padding: 40px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}
.logo-mini {
    font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700;
}
.logo-mini span { color: var(--accent-pink); }
.card-type {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--accent-pink);
}

.loyalty-card-content h2 { color: var(--text-light); }
.loyalty-card-content p { opacity: 0.8; margin-bottom: 20px; }

.card-benefits {
    list-style: none;
    margin-bottom: 20px;
}
.card-benefits li { position: relative; padding-left: 25px; margin-bottom: 10px; }
.card-benefits li::before { content: '✓'; color: var(--green-teal); position: absolute; left: 0; }

.card-footer {
    margin-top: auto; /* Pushes footer to the bottom */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.member-number span { font-size: 0.8rem; opacity: 0.7; }
.member-number p {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin: 0;
    color: var(--accent-pink);
    text-shadow: 0 0 5px rgba(241, 148, 184, 0.5);
}

/* --- Responsive Adjustments for Loyalty Card --- */
@media (max-width: 992px) {
    .loyalty-card-grid {
        grid-template-columns: 1fr; /* Stack image and content */
    }
    .loyalty-card-image {
        height: 250px;
        box-shadow: inset 0px -10px 15px -10px rgba(0,0,0,0.5);
    }
}
@media (hover: none) {
    /* Disable hover effects on touch devices */
    .loyalty-card-inner::before { display: none; }
    .loyalty-card-inner { transform: none !important; }
}
/* ======================= 5. BUILD YOUR OWN BUNDLE SECTION ======================= */
#bundle-builder { background-color: var(--bg-off-white); }
.builder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}
.bundle-column {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    border-top: 4px solid var(--accent-pink);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.bundle-column h3 { color: var(--green-teal); }
.bundle-column ul { list-style: none; margin-top: 20px; }
.bundle-column li { padding: 8px; border-radius: 5px; margin-bottom: 8px; background: var(--bg-off-white); }

/* ======================= 6. NEWSLETTER CTA SECTION ======================= */
#newsletter-cta {
    background: linear-gradient(135deg, var(--green-teal), var(--dark-blue));
    padding: 80px 0;
    color: var(--text-light);
    text-align: center;
}
#newsletter-cta h2 { color: var(--text-light); }
#newsletter-cta p { max-width: 600px; margin: 0 auto 30px; }
.newsletter-form { display: flex; max-width: 500px; margin: 0 auto; }
.newsletter-form input {
    flex-grow: 1; padding: 15px; border: none; border-radius: 50px 0 0 50px;
    font-size: 1rem;
}
.newsletter-form button { border-radius: 0 50px 50px 0; border-left: none; }

/* ======================= 7. OFFERS FAQ SECTION ======================= */
.faq-container { max-width: 800px; margin: 50px auto 0; }
.faq-item { border-bottom: 1px solid #e0e0e0; }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--dark-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after { /* The plus/minus icon */
    content: '+';
    font-size: 1.8rem;
    color: var(--green-teal);
    transition: transform var(--transition-fast);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.faq-answer p { padding: 0 0 20px; margin: 0; }
/* Active State for FAQ */
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-item.active .faq-answer { max-height: 300px; /* Adjust if content is longer */ }

/* ======================= RESPONSIVE ADDITIONS FOR OFFERS PAGE ======================= */
@media (max-width: 1024px) {
    .deal-grid, .loyalty-grid { 
        /* grid-template-columns: 1fr;  */
        display: block;
    }
    .loyalty-grid .loyalty-image-container { grid-row: 1; }
}
@media (max-width: 768px) {
    .newsletter-form { flex-direction: column; gap: 10px; }
    .newsletter-form input, .newsletter-form button { border-radius: 50px; }
}

/* =================================================================== */
/* ====================== CATERING PAGE STYLES ===================== */
/* =================================================================== */

/* ======================= 1. CATERING HERO SECTION ======================= */
#catering-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    background: linear-gradient(rgba(0, 56, 68, 0.75), rgba(0, 56, 68, 0.75)), url('images/cater-bg.webp') no-repeat center center/cover;
}
#catering-hero h1 { color: var(--text-light); }
.catering-hero-content { max-width: 800px; margin: 0 auto; }

/* ======================= 2. EVENT TYPES SECTION ======================= */
/* =================================================================== */
/* ============== EVENT TYPES (UNUSUAL POLAROID REDESIGN) ============ */
/* =================================================================== */

#event-types {
    background-color: var(--dark-blue);
    overflow: hidden;
}
#event-types h2, #event-types p {
    color: var(--text-light);
}
#event-types .section-header p {
    opacity: 0.8;
}

/* The main container for the expanding gallery */
.event-gallery-container {
    display: flex;
    gap: 15px;
    margin-top: 60px;
    height: 450px; /* Give the container a fixed height */
}

/* Styling for each individual "Polaroid" card */
.event-polaroid {
    position: relative;
    flex: 1; /* Initially, all cards share the space equally */
    height: 100%;
    border-radius: 10px;
    background-color: var(--bg-light);
    padding: 15px 15px 70px 15px; /* Classic polaroid padding */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    cursor: pointer;
    
    /* The key to the smooth expansion and other effects */
    transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.5s ease,
                filter 0.5s ease;
    
    /* Apply the unique rotation from the inline style */
    transform: rotate(var(--rotation, 0deg));
    filter: grayscale(80%) brightness(0.9);
}

.event-polaroid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Use clip-path to ensure the image doesn't break the parent's border-radius */
    clip-path: inset(0 0 0 0 round 5px);
}

/* The caption area at the bottom of the polaroid */
.polaroid-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    
    /* Hide the caption initially */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s; /* Delay transition */
}
.polaroid-caption h3 {
    margin: 0;
    font-size: 1.2rem;
}

/* --- The Magic Hover Effect --- */

/* When hovering over the main container, make all cards smaller */
.event-gallery-container:hover .event-polaroid {
    flex: 1;
}

/* Then, expand the SPECIFIC card being hovered */
.event-gallery-container .event-polaroid:hover {
    flex: 5; /* This card grows significantly larger */
    transform: rotate(0deg) scale(1.05); /* Straighten and lift */
    filter: grayscale(0%) brightness(1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Reveal the caption on the hovered card */
.event-gallery-container .event-polaroid:hover .polaroid-caption {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Adjustments for Polaroid Gallery --- */
@media (max-width: 768px) {
    /* On mobile, a horizontal expanding gallery is not user-friendly.
       Switch to a more traditional (but still stylish) vertical stack. */
    .event-gallery-container {
        flex-direction: column;
        height: auto; /* Let content determine height */
        gap: 25px;
    }
    
    .event-polaroid {
        height: 250px;
        flex: none; /* Disable flex-grow/shrink */
        filter: grayscale(0%) brightness(1); /* All cards are active */
        transform: rotate(0deg) !important; /* Remove rotation */
    }

    .polaroid-caption {
        opacity: 1; /* Captions are always visible */
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
        color: var(--text-light);
        bottom: 0;
        padding-bottom: 15px;
    }

    .event-gallery-container .event-polaroid:hover {
        /* A simpler hover effect for the stacked layout */
        transform: scale(1.02) !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.35);
    }
}
/* ======================= 3. CATERING PROCESS SECTION ======================= */
/* =================================================================== */
/* ============== CATERING PROCESS SLIDER (REDESIGNED) =============== */
/* =================================================================== */

.process-slider-container {
    position: relative;
    width: 100%;
    margin-top: 50px;
    padding: 0 50px; /* Space for the arrows */
    /* The "viewport" for our slider */
    overflow: hidden;
}

.process-slider-wrapper {
    display: flex;
    /* The key to the smooth sliding animation */
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.process-slide {
    flex: 0 0 100%; /* Each slide takes up the full container width */
    padding: 40px;
    text-align: center;
    background: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    
    /* The key to the scaling animation */
    transform: scale(0.85);
    opacity: 0.6;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1), 
                opacity 0.6s ease;
}

.process-slide.active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: var(--accent-pink);
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --- Slider Navigation --- */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    
    background: none;
    border: 2px solid var(--green-teal);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--green-teal);
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.slider-arrow:hover {
    background-color: var(--green-teal);
    color: var(--text-light);
}

.slider-arrow.prev { left: 0; }
.slider-arrow.next { right: 0; }

.slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
    background: none;
}

/* --- Slider Pagination --- */
.slider-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.pagination-dot:hover {
    background-color: var(--accent-pink);
}

.pagination-dot.active {
    background-color: var(--green-teal);
    transform: scale(1.2);
}

/* --- Responsive Adjustments for Slider --- */
@media (max-width: 768px) {
    .process-slider-container {
        padding: 0; /* No space needed for arrows */
    }
    .process-slide {
        padding: 30px;
    }
    .slider-arrow {
        /* Hide arrows on mobile where swiping is preferred */
        display: none;
    }
}

/* ======================= 4. CATERING PACKAGES SECTION ======================= */
#catering-packages { background-color: var(--bg-off-white); }
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: center;
}
.package-card {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    transition: var(--transition-fast);
    position: relative;
}
.package-card.featured {
    transform: scale(1.05);
    border-color: var(--green-teal);
    box-shadow: var(--shadow);
}
.featured-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-teal);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.package-price {
    margin: 20px 0;
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--dark-blue);
}
.package-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dark);
    font-family: var(--font-body);
}
.package-card ul { list-style: none; margin: 20px 0; }
.package-card li { margin-bottom: 10px; }
.package-card .btn { margin-top: 20px; }
.package-description { min-height: 40px; }

/* ======================= 5. WHY CHOOSE US SECTION ======================= */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}
.why-us-image-container img { border-radius: 10px; box-shadow: var(--shadow); }
.why-us-content ul { list-style: none; margin-top: 20px; }
.why-us-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
}
.why-us-content li::before {
    content: '✓';
    color: var(--green-teal);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ======================= 6. CATERING TESTIMONIALS SECTION ======================= */
#catering-testimonials { background-color: var(--dark-blue); }
#catering-testimonials h2 { color: var(--text-light); }
#catering-testimonials .testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-left-color: var(--accent-pink);
}
#catering-testimonials .testimonial-card cite { color: var(--text-light); opacity: 0.9; }

/* ======================= 7. CATERING INQUIRY FORM SECTION ======================= */
#catering-form { background-color: var(--bg-off-white); }
.inquiry-form {
    max-width: 800px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.inquiry-form input, .inquiry-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-body);
}
.inquiry-form input:focus, .inquiry-form textarea:focus {
    outline: none;
    border-color: var(--green-teal);
    box-shadow: 0 0 5px rgba(0, 108, 103, 0.3);
}
.inquiry-form button { align-self: center; }

/* ======================= RESPONSIVE ADDITIONS FOR CATERING PAGE ======================= */
@media (max-width: 1024px) {
    .why-us-grid { grid-template-columns: 1fr; }
    .why-us-image-container { max-width: 500px; margin: 0 auto; }
}
@media (max-width: 768px) {
    .package-card.featured { transform: scale(1); }
    .form-row { grid-template-columns: 1fr; }
}

/* =================================================================== */
/* ======================= PHOTOS PAGE STYLES ======================== */
/* =================================================================== */

/* ======================= 1. PHOTOS HERO SECTION ======================= */
#photos-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    background: linear-gradient(rgba(0, 56, 68, 0.7), rgba(0, 56, 68, 0.7)), url('images/photo-bg.webp') no-repeat center center/cover;
}
#photos-hero h1 { color: var(--text-light); }
.photos-hero-content { max-width: 800px; margin: 0 auto; }

/* ======================= 2. FOOD GALLERY SECTION ======================= */
.mosaic-gallery {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 15px;
}
.gallery-item-mosaic {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.gallery-item-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.gallery-item-mosaic:hover img { transform: scale(1.1); }
.overlay-caption {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--text-light);
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-fast);
}
.gallery-item-mosaic:hover .overlay-caption {
    opacity: 1;
    transform: translateY(0);
}
/* Mosaic grid layout */
.item-1 { grid-column: 1 / 3; grid-row: 1 / 2; }
.item-2 { grid-column: 3 / 4; grid-row: 1 / 3; }
.item-3 { grid-column: 4 / 5; grid-row: 1 / 2; }
.item-4 { grid-column: 1 / 2; grid-row: 2 / 3; }
.item-5 { grid-column: 2 / 3; grid-row: 2 / 3; }

/* ======================= 3. BEHIND THE SCENES SECTION ======================= */
/* =================================================================== */
/* ============== BEHIND THE SCENES (IMAGE-TEXT-IMAGE REDESIGN) ====== */
/* =================================================================== */

#behind-the-scenes {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 100px 0;
    overflow: hidden; /* Prevents rotated images from breaking layout */
}

/* The main 3-column grid layout */
.bts-trio-layout {
    display: grid;
    /* Center column is wider to give text breathing room */
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

/* The "frame" for our images */
.bts-image-frame {
    background-color: var(--bg-light); /* The white matting */
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.4);
    border: 2px solid var(--green-teal);
    
    /* Apply the unique rotation from the inline style */
    transform: rotate(var(--rotation, 0deg));
    
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.5s ease;
}

.bts-image-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* The central text column */
.bts-center-content {
    text-align: center;
}
.bts-center-content h2 {
    color: var(--text-light);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.bts-center-content .section-tagline {
    color: var(--accent-pink);
}

/* The animated underline for the heading */
.bts-center-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    
    width: 0; /* Starts with zero width */
    height: 3px;
    background-color: var(--accent-pink);
    
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- The Coordinated Hover Effect --- */
/* Triggered by hovering anywhere on the parent grid */

.bts-trio-layout:hover .bts-image-frame {
    transform: translateY(-10px) rotate(0); /* Lifts and straightens */
    box-shadow: 0 25px 40px -10px rgba(0,0,0,0.5);
}

.bts-trio-layout:hover .bts-center-content h2::after {
    width: 40%; /* Animate the underline to 40% width */
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    /* On smaller screens, stack the elements for better readability */
    .bts-trio-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .bts-image-frame {
        max-width: 350px;
        margin: 0 auto;
        /* Disable random rotation for a cleaner stacked look */
        transform: rotate(0) !important;
    }
    
    /* Center the heading underline since text alignment might change */
    .bts-center-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Keep the hover effect simple on the stacked layout */
    .bts-trio-layout:hover .bts-image-frame {
        transform: translateY(-8px) !important;
    }
}
/* ======================= 4. OUR PEOPLE GALLERY SECTION ======================= */
#people-gallery { background-color: var(--bg-off-white); }
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.person-card { text-align: center; }
.person-card img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 5px solid var(--bg-light);
    box-shadow: var(--shadow);
}
.person-card h3 { margin-bottom: 5px; }
.person-card span { color: var(--green-teal); }

/* ======================= 5. VIDEO TEASER SECTION ======================= */
#video-teaser { background-color: #1a1a1a; }
.video-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 50px;
}
.video-text { color: var(--text-light); }
.video-text h2 { color: var(--text-light); }
.video-text .section-tagline { color: var(--accent-pink); }
.video-thumbnail-container {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
}
.video-thumbnail { border-radius: 10px; }
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(241, 148, 180, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}
.play-button::after { /* The triangle */
    content: '';
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid var(--dark-blue);
    margin-left: 5px;
}
.video-thumbnail-container:hover .play-button { transform: translate(-50%, -50%) scale(1.1); }

/* ======================= 6. COMMUNITY GALLERY SECTION ======================= */
#community-gallery { background-color: var(--bg-off-white); }
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 50px;
}
.community-photo {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
}
.community-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-fast);
}
.community-photo:hover img { opacity: 0.8; }

/* ======================= 7. FINAL CTA SECTION ======================= */
#gallery-cta {
    background: var(--dark-blue);
    color: var(--text-light);
    text-align: center;
}
#gallery-cta h2 { color: var(--text-light); }

/* ======================= RESPONSIVE ADDITIONS FOR PHOTOS PAGE ======================= */
@media (max-width: 1024px) {
    .mosaic-gallery { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(auto, 300px); }
    /* Reset mosaic for simpler layout */
    .gallery-item-mosaic:nth-child(n) { grid-column: auto; grid-row: auto; }
    .bts-grid, .video-content { grid-template-columns: 1fr; }
    .video-content .video-thumbnail-container { grid-row: 1; }
}

@media (max-width: 768px) {
    .mosaic-gallery { grid-template-columns: 1fr; }
}

/* ======================= FOOTER ======================= */
.main-footer {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col .logo { margin-bottom: 15px; display: inline-block; }
.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--accent-pink);
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-light); opacity: 0.8; }
.footer-col a:hover { opacity: 1; color: var(--accent-pink); }
.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--green-teal);
    border-radius: 50%;
    color: var(--text-light);
}
.social-links a:hover { background-color: var(--green-teal); color: var(--text-light); }
.footer-bottom { text-align: center; border-top: 1px solid var(--green-teal); padding-top: 20px; font-size: 0.9rem; opacity: 0.7; }

/* ======================= ANIMATIONS ======================= */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}
.fade-in { transform: scale(0.95); }
.fade-in.visible { opacity: 1; transform: scale(1); }
.fade-in-up { transform: translateY(50px); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.slide-in-left { transform: translateX(-50px); }
.slide-in-left.visible { opacity: 1; transform: translateX(0); }
.slide-in-right { transform: translateX(50px); }
.slide-in-right.visible { opacity: 1; transform: translateX(0); }
.zoom-in { transform: scale(0.8); }
.zoom-in.visible { opacity: 1; transform: scale(1); }

/* ======================= RESPONSIVE DESIGN ======================= */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .hero-content { max-width: 80%; }
    .philosophy-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .gallery-item:nth-child(n) { grid-column: auto; grid-row: auto; height: 250px; }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .nav-toggle { display: block; } /* Show hamburger */
    .hero-content { max-width: 100%; text-align: center; }
    .hero-content p { margin-left: auto; margin-right: auto; }
}

/* =================================================================== */
/* ===================== SMOOTH MOBILE NAVIGATION ==================== */
/* =================================================================== */

/* --- The Hamburger Button --- */
.nav-toggle {
    display: none; /* Hidden on desktop */
    position: relative;
    z-index: 2000; /* Ensure it's on top of everything */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--dark-blue);
    transition: background 0.3s ease-in-out;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--dark-blue);
    transition: transform 0.3s ease-in-out;
}
.hamburger::before {
    transform: translateY(-8px);
}
.hamburger::after {
    transform: translateY(8px);
}


/* --- The Mobile Menu Panel --- */
.main-nav {
    /* This setup is for the desktop view */
    display: flex;
    align-items: center;
}
#order-now-btn-mobile {
    display: none; /* Hide mobile button on desktop */
}


/* --- Responsive Styles for Mobile Nav --- */
@media (max-width: 1000px) {
    /* Show the hamburger toggle */
    .nav-toggle {
        display: block;
    }
    
    /* Hide the desktop button */
    #order-now-btn {
        display: none;
    }
    
    /* --- The slide-in panel itself --- */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%; /* Takes up 80% of the screen width */
        max-width: 320px;
        height: 100vh;
        
        background-color: var(--dark-blue);
        
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
        /* Start off-screen to the right */
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
    }
    
    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 10px;
        border-radius: 20px;
        font-size: 1.5rem;
        color: var(--text-light);
        opacity: 0.8;
    }
    .main-nav a:hover, .main-nav a.active {
        background-color: var(--green-teal);
        opacity: 1;
    }
    .main-nav a::after {
        display: none; /* Hide the desktop underline effect */
    }
    
    /* Show and style the mobile "Order Now" button */
    #order-now-btn-mobile {
        display: block;
        margin-top: 30px;
        background-color: var(--accent-pink);
        color: var(--dark-blue);
    }


    /* --- The "OPEN" State --- */
    /* This class will be toggled by JavaScript on the <body> */

    body.nav-open {
        overflow: hidden; /* Prevent scrolling of the page content */
    }

    /* Animate the menu into view */
    body.nav-open .main-nav {
        transform: translateX(0);
    }
    
    /* Animate the hamburger into an "X" */
    body.nav-open .hamburger {
        background: transparent; /* Middle bar disappears */
    }
    body.nav-open .hamburger::before {
        transform: translateY(0) rotate(45deg);
        background: var(--text-light); /* Change color to be visible on dark nav */
    }
    body.nav-open .hamburger::after {
        transform: translateY(0) rotate(-45deg);
        background: var(--text-light);
    }


}

/* =================================================================== */
/* =================== LEGAL & PRIVACY PAGE STYLES =================== */
/* =================================================================== */

/* --- Hero Section Styling --- */
#legal-hero {
    padding: 80px 0;
    text-align: center;
    background: var(--dark-blue);
    color: var(--text-light);
    margin-top: 70px; /* Offset for fixed header */
}
#legal-hero h1 {
    color: var(--text-light);
    font-size: 2.8rem;
}
#legal-hero p {
    font-size: 1.2rem;
    color: var(--accent-pink);
    margin-top: 10px;
    margin-bottom: 0;
}

/* --- Main Content Section Styling --- */
#policy-content {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.policy-container {
    max-width: 800px; /* Optimal width for reading text */
    margin: 0 auto;
}

.last-updated {
    font-style: italic;
    color: #666;
    margin-bottom: 40px;
    text-align: center;
}

#policy-content article {
    margin-bottom: 40px;
}

#policy-content h2 {
    font-size: 1.8rem;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--green-teal);
}

#policy-content ul {
    list-style: none;
    padding-left: 0;
}
#policy-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
}
#policy-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--green-teal);
    font-weight: bold;
}

/* =================================================================== */
/* ===================== THANK YOU PAGE STYLES ======================= */
/* =================================================================== */

#thank-you-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 0px);
    padding: 40px 0;
    background: linear-gradient(135deg, var(--dark-blue), var(--green-teal));
}

.thank-you-box {
    width: 90%;
    max-width: 550px;
    padding: 40px;
    text-align: center;
    color: var(--text-light);

    /* Sophisticated glass morphism effect */
    background: rgba(0, 56, 68, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.thank-you-box h1 {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.thank-you-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 30px;
}

.thank-you-box .btn {
    border-color: var(--accent-pink);
    background-color: var(--accent-pink);
    color: var(--dark-blue);
}

/* --- SVG Checkmark Animation --- */
.checkmark-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.checkmark-svg {
    width: 100%;
    height: 100%;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke: var(--accent-pink);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 4;
    stroke: var(--text-light);
    animation: stroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .thank-you-box {
        padding: 30px;
    }
    .thank-you-box h1 {
        font-size: 2rem;
    }
    .thank-you-box p {
        font-size: 1rem;
    }
}