/*css/styles.css*/
:root {
    /* --- Main Brand Palette (Bahawalpur Heritage) --- */
    --clr-primary: hsl(0, 63%, 31%); /* Deep Burgundy (Main brand color) */
    --clr-secondary: hsl(
        0,
        47%,
        48%
    ); /* Lighter Red (Hover states, secondary elements) */
    --clr-accent: hsl(
        46,
        65%,
        52%
    ); /* Metallic Gold (Highlights, borders, special details) */

    /* --- UI Colors --- */
    --clr-bg: hsl(0, 86%, 97%); /* Soft Cream (Main page background) */
    --clr-text: hsla(
        215,
        28%,
        17%,
        85%
    ); /* Dark Slate (Main text, softer than pure black) */
    --clr-dark: hsl(215, 28%, 17%);

    /* --- System Colors (For feedback messages) --- */
    --clr-success: hsl(142, 72%, 29%); /* Deep Green */
    --clr-warning: hsl(26, 90%, 37%); /* Muted Amber */
    --clr-error: hsl(0, 74%, 42%); /* Muted Red */

    --clr-pure-white: hsl(0, 0%, 100%);
    --clr-true-black: hsl(0, 0%, 0%);
    --clr-antique-gold: hsl(43, 89%, 38%);

    /* Typography: Elegant serif for heritage headings, clean sans-serif for body */
    --ff-logo: "Great Vibes", cursive;
    --ff-heading: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    --ff-body: "Inter", system-ui, sans-serif;
    /* Spacing Scale: Using 'rem' ensures spacing scales if the user changes browser text size */
    --space-sm: 1rem; /* 16px */
    --space-md: 2rem; /* 32px */
    --space-lg: 4rem; /* 64px */
    /* Additional style variables */
    --border-color: hsl(220, 13%, 91%);
    --radius-sm: 4px;
    --radius-md: 8px;
    --shadow-sm: 0 2px 4px hsla(215, 28%, 17%, 0.08);
    --shadow-md: 0 3px 6px hsla(215, 28%, 17%, 0.08);
    --shadow-md-wt: 0 3px 6px hsla(220, 13%, 91%, 75%);
    --transition-base: all 0.3s ease;
}

/* Reset browser default styling */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: var(--ff-body);
    line-height: 1.6;
    color: var(--clr-text);
}

p {
    font-size: 1.125rem;
}

/* Hides the skip link off-screen by default */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--clr-true-black);
    color: var(--clr-pure-white);
    padding: 0.5rem;
    z-index: 100;
}

/* Slides the link into view ONLY when focused via keyboard */
.skip-link:focus {
    top: 0;
}
/* ============================================
   LAYOUT: HEADER & NAVIGATION
   ============================================ */
.site-header {
    background-color: transparent;
    color: var(--clr-pure-white);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
}

/* Group nav + favorites badge on the right; logo stays left */
.site-header nav {
    margin-left: auto;                /* pushes nav (and everything after it) right */
    margin-right: var(--space-sm);    /* breathing room between nav and badge */
}

/* site-header */
.site-header h1 {
    font-family: var(--ff-heading);
    color: var(--clr-primary);
}

.site-header ul {
    list-style: none;
    display: flex;
    gap: var(--space-sm);
}

/* --- Favorites badge styling --- */
.favorites-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.favorites-icon {
    color: var(--clr-accent);
    font-size: 1.1rem;
}

.favorites-badge {
    background-color: var(--clr-accent);
    color: var(--clr-text);
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.35rem;
    border-radius: 999px;   /* circle for one digit, pill for more */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Primary navigation styling */
.nav-link {
    text-decoration: none;
    color: var(--clr-bg);
    transition: var(--transition-base);
}
.nav-link:hover {
    color: var(--clr-secondary);
    text-shadow: var(--shadow-md-wt);
}

.logo-link {
    font-family: var(--ff-logo);
    font-size: 2.5rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: var(--clr-accent);
}

.logo-link:hover {
    color: var(--clr-secondary);
    text-shadow: var(--shadow-md-wt);
}

.hero {
    background:
        linear-gradient(hsla(215, 28%, 17%, 50%), hsla(215, 28%, 17%, 50%)),
        url("/images/banner.webp");
    background-color: var(--clr-primary);
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    color: var(--clr-pure-white);
    text-align: center;
    max-width: 600px;
    padding: 0 var(--space-sm);
}
.hero h2 {
    font-family: var(--ff-heading);
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.hero p {
    font-size: 1.125rem;
    margin-top: 1rem; /* Adds a little breathing room between the h2 and the p */
}

.btn-primary {
    display: inline-block;
    background-color: var(--clr-accent);
    color: var(--clr-text);
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin-top: var(--space-sm);
    transition: var(--transition-base); /* Enables smooth animations */
}

.btn-primary:hover {
    background-color: var(
        --clr-antique-gold
    ); /* A slightly darker, richer gold */
    color: var(--clr-pure-white);
    transform: translateY(-2px); /* Lifts the button up slightly */
    box-shadow: var(--shadow-sm); /* Adds a subtle shadow underneath */
}

/* The solid state of the header when scrolled */
.site-header.scrolled {
    background-color: var(--clr-bg); /* Back to soft cream */
    color: var(--clr-text); /* Back to dark slate text */
    box-shadow: var(--shadow-sm); /* Adds a subtle shadow underneath */
}

/* Ensure the logo and links change color when the header is solid */

.site-header.scrolled .nav-link {
    color: inherit;
}

.site-header.scrolled .nav-link:hover {
    color: var(--clr-primary);
    border-bottom: 1px solid var(--clr-secondary);
}

.site-header.scrolled .logo-link {
    color: var(--clr-primary);
}

.site-header.scrolled .logo-link:hover {
    color: var(--clr-secondary);
    text-shadow: var(--shadow-md);
}

.heritage {
    background-color: var(--clr-bg);
    padding: var(--space-lg) var(--space-md);
    color: var(--clr-text);
    text-align: center;
}



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

.container p {
    margin: 1.5rem;
}

.btn-secondary {
    display: inline-block;
    background-color: var(--clr-bg);
    color: var(--clr-text);
    padding: 0.75rem 2rem;
    text-decoration: none;
    border: 1px solid var(--clr-accent);
    border-radius: var(--radius-sm);
    margin-top: var(--space-md);
    transition: var(--transition-base);
}

.btn-secondary:hover {
    background-color: var(--clr-accent);
    color: var(--clr-text);
}

/* ============================================
   SIGNATURE DISHES SECTION
============================================ */
.signature-dishes {
    background-color: var(--clr-bg);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.signature-dishes h2 {
    font-family: var(--ff-heading);
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: var(--space-sm);
}

.signature-dishes .section-intro {
    font-size: 1.125rem;
    color: var(--clr-text);
    margin-bottom: var(--space-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}



/* Grid Layout */
.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

/* Dish Card */
.dish-card {
    background-color: var(--clr-pure-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
}

.dish-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Dish Image Container */
.dish-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.dish-card:hover .dish-image img {
    transform: scale(1.05);
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--clr-pure-white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.heart-icon {
    font-size: 1.5rem;
    color: var(--clr-text);
    transition: var(--transition-base);
}

.favorite-btn.active .heart-icon {
    color: var(--clr-error);
}

/* Dish Content */
.dish-content {
    padding: var(--space-sm);
    text-align: left;
}

.dish-content h3 {
    font-family: var(--ff-heading);
    font-size: 1.5rem;
    color: var(--clr-primary);
    margin-bottom: 0.5rem;
}

.dish-content p {
    font-size: 1rem;
    color: var(--clr-text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Dish Footer (Price & Favorite Count) */
.dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--clr-accent);
}

.favorite-count {
    font-size: 0.875rem;
    color: var(--clr-text);
    opacity: 0.7;
}



/* Adjust grid for better column distribution */
.dishes-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(250px, 1fr)
    ); /* Slightly smaller min */
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

/* Add missing shadow variable if not present */
.shadow-md {
    box-shadow: var(--shadow-md);
}

/* ============================================
   THE DINING EXPERIENCE SECTION
============================================ */
.experience {
    background-color: var(--clr-primary); /* Deep burgundy background */
    color: var(--clr-pure-white);
    padding: var(--space-md) var(--space-sm);
    text-align: center;
}

.experience h2 {
    font-family: var(--ff-heading);
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.experience .section-intro {
    color: hsla(0, 0%, 100%, 0.8); /* Slightly transparent white for subtext */
    margin-bottom: var(--space-lg);
 /*   max-width: 600px; */
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-sm);
    margin: 0 auto;
}

/* Feature Card */
.feature-card {
    background-color: hsla(0, 0%, 100%, 0.05); /* Very subtle white overlay */
    border: 1px solid var(--clr-accent); /* Metallic gold border */
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    transition: var(--transition-base);
}

.feature-card:hover {
    background-color: hsla(0, 0%, 100%, 0.1); /* Slightly brighter on hover */
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
    display: block;
}

.feature-card h3 {
    font-family: var(--ff-heading);
    font-size: 1.5rem;
    color: var(--clr-accent); /* Gold headings */
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: hsla(0, 0%, 100%, 0.85);
}

/* ============================================
   TESTIMONIALS SECTION
============================================ */
.testimonials {
    background-color: var(--clr-bg);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.testimonials h2 {
    font-family: var(--ff-heading);
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: var(--space-sm);
}

.testimonials .section-intro {
    font-size: 1.125rem;
    color: var(--clr-text);
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

/* Testimonial Card */
.testimonial-card {
    background-color: var(--clr-pure-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Star Rating */
.stars {
    color: var(--clr-accent);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    letter-spacing: 0.1em;
}

/* Quote */
.testimonial-card blockquote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--clr-text);
    margin-bottom: var(--space-sm);
    font-style: italic;
    flex-grow: 1;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-card blockquote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: var(--clr-accent);
    font-family: var(--ff-heading);
    opacity: 0.3;
}

/* Customer Citation */
.testimonial-card cite {
    font-size: 0.875rem;
    color: var(--clr-primary);
    font-weight: 600;
    font-style: normal;
    display: block;
    margin-top: auto;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-color);
}

/* ============================================
   VISIT US TEASER SECTION
============================================ */
.visit-teaser {
    background-color: var(--clr-dark); /* Dark slate for an evening feel */
    color: var(--clr-pure-white);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.visit-teaser h2 {
    font-family: var(--ff-heading);
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.visit-teaser .section-intro {
    color: hsla(0, 0%, 100%, 0.8);
    margin-bottom: var(--space-lg);
}

.visit-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    max-width: 1000px; /* Keeps it from stretching too wide on 1920px screens */
    margin: 0 auto var(--space-lg);
}

.visit-card {
    padding: var(--space-md);
    border: 1px solid hsla(0, 0%, 100%, 0.1); /* Very subtle white border */
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.visit-card:hover {
    border-color: var(--clr-accent); /* Turns gold on hover */
    transform: translateY(-4px);
}

.visit-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.visit-card h3 {
    font-family: var(--ff-heading);
    font-size: 1.5rem;
    color: var(--clr-accent);
    margin-bottom: 0.5rem;
}

.visit-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: hsla(0, 0%, 100%, 0.85);
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    background-color: var(--clr-true-black);
    color: var(--clr-pure-white);
    padding: var(--space-lg) var(--space-md) var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-col h3,
.footer-col h4 {
    font-family: var(--ff-heading);
    color: var(--clr-accent);
    margin-bottom: var(--space-sm);
}

.footer-logo {
    font-family: var(--ff-logo);
    font-size: 2rem;
    letter-spacing: 0.03em;
}

.footer-col p,
.footer-col li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: hsla(0, 0%, 100%, 0.7);
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: hsla(0, 0%, 100%, 0.7);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--clr-accent);
}

.footer-contact {
    font-style: normal;
}

.footer-hours {
    list-style: none;
}

.footer-bottom {
    border-top: 1px solid hsla(0, 0%, 100%, 0.1);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: hsla(0, 0%, 100%, 0.6);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-links a {
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition-base);
}

.social-links a:hover {
    transform: scale(1.2);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: hsla(0, 0%, 100%, 0.1);
    transition: var(--transition-base);
}

.social-link:hover {
    background-color: var(--clr-accent);
    transform: translateY(-2px);
}

.social-link img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1); /* Makes the icons white */
    transition: var(--transition-base);
}

.social-link:hover img {
    filter: brightness(0); /* Makes the icons black on gold background */
}

/* -------------- */
/* ============================================
   PAGE HERO — reusable on About / Products / Visit
============================================ */
.page-hero {
    background-color: var(--clr-primary); /* fallback while image loads */
    background-size: cover;
    background-position: center;
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--clr-pure-white);
    padding: var(--space-lg) var(--space-md);
}

.page-hero--about {
    background-image:
        linear-gradient(hsla(215, 28%, 17%, 0.55), hsla(215, 28%, 17%, 0.55)),
        url("/images/about-hero.webp");
}

.page-hero--products {
    background-image:
        linear-gradient(hsla(215, 28%, 17%, 0.55), hsla(215, 28%, 17%, 0.55)),
        url("/images/products-hero.jpg");
}

.page-hero--visit {
    background-image:
        linear-gradient(hsla(215, 28%, 17%, 0.55), hsla(215, 28%, 17%, 0.55)),
        url("/images/visit-hero.jpg");
}

.page-hero h2 {
    font-family: var(--ff-heading);
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.page-hero p {
    font-size: 1.25rem;
    color: hsla(0, 0%, 100%, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   THE ORIGIN SECTION
============================================ */
.origin {
    background-color: var(--clr-bg);
    padding: var(--space-lg) var(--space-md);
    color: var(--clr-text);
}

.origin-grid {
    display: grid;
    grid-template-columns: 3fr 2fr; /* text gets 60%, image gets 40% */
    gap: var(--space-md);
    align-items: center; /* image vertically centers against the text column */
}

.origin-text h2 {
    font-family: var(--ff-heading);
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: var(--space-sm);
}

.origin-text p {
    margin: 0 0 1.25rem 0; /* overrides .container p's 1.5rem on all sides */
    line-height: 1.7;
}

.origin-image {
    margin: 0;
}

/* Cropping frame: owns the fallback color, radius, and clipping */
.origin-photo {
    position: relative;
    min-height: 420px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--clr-primary);
}

/* Absolute-fill: immune to the percentage-height ambiguity */
.origin-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Caption: dark text on cream — readable, plaque-like */
.origin-image figcaption {
    margin-top: var(--space-sm);
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--clr-text);
    opacity: 0.8;
}

@media (max-width: 800px) {
    .origin-grid {
        grid-template-columns: 1fr; /* stack: text first, image below */
    }
    .origin-photo {
        min-height: 360px;
    }
}

/* ============================================
   THE KEEPERS OF THE DASTARKHWAN SECTION
============================================ */
.keepers {
    background-color: var(--clr-primary);
    color: var(--clr-pure-white);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.keepers h2 {
    font-family: var(--ff-heading);
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.keepers .section-intro {
    font-size: 1.125rem;
    color: hsla(0, 0%, 100%, 0.8);
    max-width: 600px;
    margin: 0 auto var(--space-md);
}

/* The creed: the centerpiece quote, framed like a plaque */
.keeper-creed {
    max-width: 700px;
    margin: 0 auto var(--space-md);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--clr-accent);
    border-bottom: 1px solid var(--clr-accent);
}

.keeper-creed p {
    font-family: var(--ff-heading);
    font-size: 1.6rem;
    font-style: italic;
    line-height: 1.5;
    margin: 0; /* overrides .container p's 1.5rem on all sides */
}

.keeper-creed cite {
    display: block;
    margin-top: var(--space-sm);
    font-size: 0.9rem;
    font-style: normal; /* cite defaults to italic; a name shouldn't be */
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-accent);
}

/* Supporting narrative: centered block, left-aligned prose */
.keepers-text {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.keepers-text p {
    margin: 0 0 1.25rem 0;
    line-height: 1.8;
    color: hsla(0, 0%, 100%, 0.85);
}

/* ============================================
   GALLERY SECTION — the "museum wall"
============================================ */
.gallery {
    background-color: var(--clr-pure-white);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.gallery h2 {
    font-family: var(--ff-heading);
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: var(--space-sm);
}

.gallery .section-intro {
    font-size: 1.125rem;
    color: var(--clr-text);
    max-width: 600px;
    margin: 0 auto var(--space-md);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    margin: 0; /* reset figure default */
}

.gallery-frame {
    overflow: hidden;
    border-radius: var(--radius-md);
    background-color: var(--clr-primary); /* burgundy fallback while loading */
    box-shadow: var(--shadow-sm);
}

.gallery-frame img {
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-base);
}

.gallery-frame:hover img {
    transform: scale(1.05);
}

.gallery-item figcaption {
    font-size: 0.9rem;
    color: var(--clr-text);
    opacity: 0.8;
    padding-top: var(--space-sm);
    letter-spacing: 0.02em;
}

/* ============================================
   ABOUT CTA SECTION — the closing invitation
============================================ */
.about-cta {
    background-color: var(--clr-text); /* dark slate bookend */
    color: var(--clr-pure-white);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.about-cta h2 {
    font-family: var(--ff-heading);
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.about-cta .section-intro {
    font-size: 1.125rem;
    color: hsla(0, 0%, 100%, 0.8);
    max-width: 600px;
    margin: 0 auto var(--space-md);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap; /* stack gracefully on narrow screens */
}

/* Neutralize the base buttons' differing top-margins so the row aligns */
.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    margin-top: 0;
}

/* ============================================
   MOBILE NAVIGATION (hamburger menu)
============================================ */

/* Hamburger button — hidden on desktop, revealed on mobile */
.nav-toggle {
    display: none;                 /* hidden by default (desktop) */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    color: inherit;                /* bars pick up the header's text color */
}

.nav-toggle-bar {
    display: block;
    width: 26px;
    height: 3px;
    background-color: currentColor;
    border-radius: 2px;
    transition: var(--transition-base);
}

/* When the menu is open, morph the bars into an X */
.site-header.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    /* Show the hamburger; push it and the badge to the right */
    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
        margin-right: var(--space-sm);
    }

    /* Hide the horizontal nav and clear its desktop auto-margins */
    .site-header .main-nav {
        display: none;
        margin: 0;
    }

    /* When .nav-open is added (by JS), show the nav as a dropdown panel */
    .site-header.nav-open .main-nav {
        display: block;
        position: absolute;
        top: 100%;                 /* sits directly below the header bar */
        left: 0;
        width: 100%;
        background-color: var(--clr-bg);
        box-shadow: var(--shadow-md);
        padding: var(--space-sm) var(--space-md);
    }

    /* Stack the links vertically inside the panel */
    .site-header.nav-open .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    /* Panel links need dark text on the cream panel */
    .site-header.nav-open .main-nav .nav-link {
        color: var(--clr-text);
    }

    /* Give the open header a solid backdrop so the panel feels connected */
    .site-header.nav-open {
        background-color: var(--clr-bg);
        color: var(--clr-text);
        box-shadow: var(--shadow-sm);
    }

    .site-header.nav-open .logo-link {
        color: var(--clr-primary);
    }
}

/* ============================================
   MENU SECTION (products page)
============================================ */
.menu {
    background-color: var(--clr-bg);
    padding: var(--space-lg) var(--space-md);
}

.menu-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background-color: var(--clr-pure-white);
    color: var(--clr-text);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    font-family: var(--ff-body);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.filter-btn:hover {
    border-color: var(--clr-accent);
    color: var(--clr-primary);
}

.filter-btn.active {
    background-color: var(--clr-primary);
    color: var(--clr-pure-white);
    border-color: var(--clr-primary);
}

.search-box {
    flex: 0 1 300px;
}

.menu-search {
    width: 100%;
    padding: 0.6rem 1rem;
    font-family: var(--ff-body);
    font-size: 1rem;
    color: var(--clr-text);
    background-color: var(--clr-pure-white);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    transition: var(--transition-base);
}

.menu-search:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px hsla(46, 65%, 52%, 0.25);
}

/* In the menu context, remove the grid's default margins so spacing is controlled here */
.menu .dishes-grid {
    margin: 0;
}

/* Empty-state message */
.menu .menu-empty {
    margin: 0;
    text-align: center;
    color: var(--clr-text);
    opacity: 0.7;
    padding: var(--space-lg) 0;
}

/* Visually hidden, but still read by screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .menu-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* ============================================
   VISIT INFO SECTION — location, hours, contact
============================================ */
.visit-info {
    background-color: var(--clr-bg);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.visit-info h2 {
    font-family: var(--ff-heading);
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: var(--space-sm);
}

.visit-info .section-intro {
    font-size: 1.125rem;
    color: var(--clr-text);
    max-width: 620px;
    margin: 0 auto var(--space-md);
}

/* Light variant of the homepage's dark-background visit cards */
.visit-info .visit-card {
    background-color: var(--clr-pure-white);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.visit-info .visit-card:hover {
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-md);
}

.visit-info .visit-card p {
    margin: 0 0 0.5rem;
    color: var(--clr-text);
}

.visit-info .visit-card a {
    color: var(--clr-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

.visit-info .visit-card a:hover {
    color: var(--clr-antique-gold);
}

/* ============================================
   RESERVATION SECTION (visit page)
============================================ */
.reservation {
    background-color: var(--clr-primary);
    color: var(--clr-pure-white);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.reservation h2 {
    font-family: var(--ff-heading);
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.reservation .section-intro {
    font-size: 1.125rem;
    color: hsla(0, 0%, 100%, 0.85);
    max-width: 600px;
    margin: 0 auto var(--space-md);
}

/* The form card */
.reservation-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--clr-pure-white);
    color: var(--clr-text);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--space-md);
    text-align: left;
}

/* Field groups */
.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-primary);
}

/* One rule styles all three field types */
.reservation-form input,
.reservation-form select,
.reservation-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-family: var(--ff-body);
    font-size: 1rem;
    color: var(--clr-text);
    background-color: var(--clr-pure-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

/* Focus ring: same pattern as the menu search box */
.reservation-form input:focus,
.reservation-form select:focus,
.reservation-form textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px hsla(46, 65%, 52%, 0.25);
}

.reservation-form textarea {
    resize: vertical; /* users may grow it downward, never sideways */
}

/* Date + time side by side, collapsing on small screens */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

/* Error messages: invisible until JavaScript fills them */
.form-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.875rem;
    color: var(--clr-error);
}

.form-error:empty {
    display: none;
}

/* Red border on the field that failed validation */
.reservation-form .input-error {
    border-color: var(--clr-error);
}

/* Submit button, full width inside the card */
.reservation-form .btn-primary {
    width: 100%;
    margin-top: var(--space-sm);
    border: none;
    font-family: var(--ff-body);
    font-size: 1rem;
    cursor: pointer;
}

/* Success panel, revealed after a valid submit */
.form-success {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--clr-pure-white);
    color: var(--clr-text);
    border-radius: var(--radius-md);
    border-top: 4px solid var(--clr-success);
    box-shadow: var(--shadow-md);
    padding: var(--space-md);
}

.form-success h3 {
    font-family: var(--ff-heading);
    font-size: 1.75rem;
    color: var(--clr-success);
    margin-bottom: var(--space-sm);
}

.reservation .form-success p {
    margin: 0;
    color: var(--clr-text);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
