/*
    Catering Service - Culinary Artistry
    Modern, Elevated, Minimalist Design
    ---
    Color Palette: Warm neutrals, deep greens, subtle gold accent
    Typography: Serif for headings (Lora), Sans-serif for body (Inter)
    Spacing: 8pt scale
    Depth: Layered soft shadows
    Elements: Rounded cards, subtle borders, elevated hover states
    Motion: Subtle micro-interactions, controlled scroll animations
*/

/* --- Root Variables --- */
:root {
    /* Colors */
    --color-primary-dark: #3F514E; /* Deep Sage Green */
    --color-primary-light: #A5B6A8; /* Lighter Sage Green */
    --color-accent-gold: #B8860B; /* Muted Gold for accents */
    --color-text-dark: #2C2C2C;
    --color-text-light: #F0F0F0;
    --color-background-light: #FCF8F5; /* Creamy White */
    --color-background-dark: #212121;
    --color-neutral-grey: #6E6E6E;
    --color-border-light: #E0E0E0;

    /* Typography */
    --font-serif: 'Lora', serif;
    --font-sans: 'Inter', sans-serif;

    /* Spacing Scale (8pt grid) */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 1.5rem;   /* 24px */
    --space-lg: 2rem;     /* 32px */
    --space-xl: 3rem;     /* 48px */
    --space-2xl: 4rem;    /* 64px */
    --space-3xl: 6rem;    /* 96px */
    --space-4xl: 8rem;    /* 128px */

    /* Border Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-circle: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* --- Base Reset & Global Styles --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--color-primary-dark);
    margin-bottom: var(--space-sm);
    line-height: 1.2;
    font-weight: 700;
}

/* Fluid Typography for Headings */
h1 { font-size: clamp(2.8rem, 7vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
p { margin-bottom: var(--space-sm); }

a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--color-accent-gold);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-padding {
    padding: var(--space-3xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--color-primary-dark);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xl) auto;
    font-size: 1.15rem;
    color: var(--color-neutral-grey);
}

/* --- Buttons --- */
.btn {
    display: inline-flex; /* Use flex to easily center content */
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-xl);
    border-radius: 50px;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px; /* Ensure sufficient tap target size */
    font-size: 1rem;
}

.primary-btn {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    border-color: var(--color-primary-dark);
    box-shadow: var(--shadow-md);
}

.primary-btn:hover, .primary-btn:focus {
    background-color: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.secondary-btn {
    background-color: transparent;
    color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    box-shadow: none;
}

.secondary-btn:hover, .secondary-btn:focus {
    background-color: var(--color-primary-light);
    color: var(--color-text-dark);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-md) 0;
    z-index: 100;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    padding: var(--space-sm) 0;
}
.site-header.is-scrolled .site-logo {
    color: var(--color-primary-dark);
}
.site-header.is-scrolled .nav-menu a {
    color: var(--color-text-dark);
}
.site-header.is-scrolled .nav-menu a:hover {
    color: var(--color-accent-gold);
}
.site-header.is-scrolled .nav-toggle span {
    background-color: var(--color-primary-dark);
}


.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--color-text-light);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: color 0.3s ease;
}

.site-logo span {
    color: var(--color-accent-gold);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: var(--space-xl);
}

.nav-menu a {
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: var(--space-xs) 0;
    transition: color 0.3s ease;
}

.site-header.is-scrolled .nav-menu a {
    color: var(--color-text-dark);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--color-accent-gold);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after, .nav-menu a:focus::after {
    width: 100%;
}
.nav-menu a:hover, .nav-menu a:focus {
    color: var(--color-accent-gold);
}

.nav-toggle {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-text-light);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}
.site-header.is-scrolled .nav-toggle span {
    background: var(--color-primary-dark);
}


/* Hamburger menu animation */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7); /* Darken image for text readability */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: var(--space-lg);
}

.hero-section h1 {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.hero-section p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: var(--space-xl);
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* --- About Section --- */
.about-section .content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-content {
    text-align: center;
}

.about-content .section-title {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.about-content .section-description {
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.about-content p:not(.section-description) {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-neutral-grey);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* --- Services Section --- */
.services-section {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
}

.services-section .section-title {
    color: var(--color-accent-gold);
}

.services-section .section-description {
    color: var(--color-text-light);
    margin-bottom: var(--space-2xl);
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.service-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}
.service-card:hover img {
    filter: grayscale(0%);
}

.service-card h3 {
    color: var(--color-accent-gold);
    margin-bottom: var(--space-sm);
    font-size: 1.6rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    opacity: 0.9;
    flex-grow: 1;
}

/* --- Gallery Section --- */
.gallery-section .section-title {
    color: var(--color-primary-dark);
}
.gallery-section .section-description {
    color: var(--color-neutral-grey);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--color-primary-dark-rgb, 63, 81, 78), 0.7); /* Using RGB for dynamic opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none; /* Allow click through to image if needed, or remove for overlay interaction */
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--color-text-light);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: var(--space-sm);
    font-family: var(--font-serif);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
/* Define --color-primary-dark-rgb for gallery overlay if you want to use rgba dynamically */
:root {
    --color-primary-dark-rgb: 63, 81, 78; /* RGB values for #3F514E */
}


/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--color-background-light);
}

.testimonials-section .section-title {
    color: var(--color-primary-dark);
}
.testimonials-section .section-description {
    color: var(--color-neutral-grey);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.testimonial-card {
    background-color: #fff;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card p {
    font-style: italic;
    color: var(--color-neutral-grey);
    font-size: 1.05rem;
    margin-bottom: var(--space-md);
}

.testimonial-card cite {
    font-weight: 600;
    color: var(--color-primary-dark);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    display: block;
    margin-top: auto; /* Pushes cite to the bottom */
}
.testimonial-card .client-title {
    font-size: 0.9rem;
    color: #999;
    display: block;
}

/* --- FAQ Section --- */
.faq-section {
    background-color: var(--color-background-light);
}
.faq-section .section-title {
    color: var(--color-primary-dark);
}

.accordion {
    max-width: 800px;
    margin: var(--space-2xl) auto 0 auto;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-item {
    border-bottom: 1px solid var(--color-border-light);
}
.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    width: 100%;
    padding: var(--space-md);
    text-align: left;
    background-color: #fff;
    color: var(--color-text-dark);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 44px; /* Tap target */
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.accordion-item[aria-expanded="true"] .accordion-header {
    background-color: var(--color-primary-light);
    color: var(--color-text-dark);
}
.accordion-item[aria-expanded="true"] .accordion-header::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #f8f8f8;
}

.accordion-item[aria-expanded="true"] .accordion-content {
    max-height: 200px; /* Adjust based on expected content height */
    padding: 0 var(--space-md) var(--space-md);
}

.accordion-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-neutral-grey);
    padding-top: var(--space-sm);
}


/* --- Call to Action Section --- */
.cta-section {
    background: linear-gradient(rgba(var(--color-primary-dark-rgb, 63, 81, 78), 0.85), rgba(var(--color-primary-dark-rgb, 63, 81, 78), 0.85)), url('images/placeholder.jpg') center/cover no-repeat fixed;
    color: var(--color-text-light);
    text-align: center;
    padding: var(--space-4xl) 0;
}

.cta-section .section-title {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.cta-section .section-description {
    color: var(--color-text-light);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    max-width: 800px;
    margin: 0 auto var(--space-xl) auto;
    font-weight: 300;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}
.cta-section .btn {
    min-width: 200px;
    border-color: var(--color-text-light);
}
.cta-section .primary-btn {
    background-color: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
    color: var(--color-text-dark);
}
.cta-section .primary-btn:hover, .cta-section .primary-btn:focus {
    background-color: var(--color-text-light);
    border-color: var(--color-text-light);
    color: var(--color-primary-dark);
}
.cta-section .secondary-btn {
    background-color: transparent;
    border-color: var(--color-text-light);
    color: var(--color-text-light);
}
.cta-section .secondary-btn:hover, .cta-section .secondary-btn:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--color-text-light);
    color: var(--color-text-light);
}


/* --- Footer --- */
.site-footer {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    padding: var(--space-3xl) 0 var(--space-md) 0;
    font-size: 0.9rem;
}

.footer-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .site-logo {
    font-size: 1.8rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
    display: block;
    text-shadow: none;
}
.footer-brand p {
    color: #bbb;
    margin-bottom: var(--space-sm);
}
.footer-brand .copyright {
    color: #888;
    font-size: 0.85rem;
}

.site-footer h3 {
    color: var(--color-primary-light);
    margin-bottom: var(--space-lg);
    font-size: 1.15rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

.site-footer ul {
    list-style: none;
}

.site-footer ul li {
    margin-bottom: var(--space-sm);
}

.site-footer ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer ul li a:hover {
    color: var(--color-primary-light);
}


/* --- Animate On Scroll --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (min-width: 768px) {
    .about-section .content-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    .about-content {
        text-align: left;
    }
    .about-content .section-title,
    .about-content .section-description {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }
    .about-image {
        order: 2; /* Image on right */
    }
    .about-content {
        order: 1; /* Content on left */
    }
}
@media (min-width: 992px) {
    .about-image {
        order: 1; /* Image on left */
    }
    .about-content {
        order: 2; /* Content on right */
    }
}


@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--color-background-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        gap: var(--space-xl);
        padding-top: var(--space-4xl);
        z-index: 150;
    }

    .nav-menu.is-active {
        transform: translateX(0);
    }

    .nav-menu a {
        font-size: 1.8rem;
        color: var(--color-text-light);
        padding: var(--space-sm) 0;
    }

    .nav-toggle {
        display: flex;
    }

    .site-header.is-scrolled .nav-toggle span {
        background-color: var(--color-primary-dark);
    }
    .nav-toggle[aria-expanded="true"] span {
        background-color: var(--color-text-light); /* Always white when open */
    }

    .hero-section h1 {
        font-size: clamp(2.5rem, 8vw, 3.8rem);
    }
    .hero-section p {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
    .section-padding {
        padding: var(--space-2xl) 0;
    }

    .content-grid {
        gap: var(--space-xl);
    }

    .about-image img {
        height: 350px;
    }

    .service-card, .testimonial-card, .gallery-item {
        margin: auto;
    }
    .accordion {
        margin-top: var(--space-xl);
    }
    .cta-section {
        padding: var(--space-3xl) 0;
    }
    .footer-content-grid {
        gap: var(--space-xl);
        text-align: center;
    }
    .footer-brand {
        margin-bottom: var(--space-md);
    }
    .footer-links ul, .footer-contact ul, .footer-social ul {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
    h1 { font-size: clamp(2rem, 9vw, 3rem); }
    h2 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
    h3 { font-size: clamp(1.3rem, 5vw, 1.8rem); }

    .section-description {
        font-size: 1rem;
        margin-bottom: var(--space-lg);
    }

    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
        min-width: unset;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .about-image img {
        height: 280px;
    }
    .service-card img {
        height: 150px;
    }
    .gallery-item img {
        height: 220px;
    }
    .gallery-overlay span {
        font-size: 1rem;
    }
}