:root {
    --bg: #FCF9F6;
    --text: #1A1A1A;
    --accent: #C2410C; /* Saffron/Burnt Orange */
    --accent-gold: #D4AF37;
    --secondary: #2C3E50;
    --white: #FFFFFF;
    --gray-light: #F3F4F6;
    --gray-mid: #9CA3AF;
    --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

/* Default cursor behavior, hidden only on desktop if desired */
@media (min-width: 1024px) {
    * {
        cursor: none;
    }
}

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- SECTION ANCHOR OFFSET (for fixed nav) --- */
section[id] {
    scroll-margin-top: 90px;
}

/* --- REVEAL ANIMATION --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1024px) {
    .container {
        max-width: 1400px;
        padding: 0 60px;
    }
}

.italic {
    font-style: italic;
    font-family: var(--font-heading);
}

.accent-text {
    color: var(--accent);
}

.cursor-outer, .cursor-inner {
    display: none; /* Hide by default for mobile/touch */
}

@media (min-width: 1024px) {
    .cursor-outer {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 30px;
        height: 30px;
        border: 1px solid var(--accent);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        transition: width 0.3s, height 0.3s, transform 0.15s ease-out;
        transform: translate(-50%, -50%);
    }

    .cursor-inner {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 6px;
        height: 6px;
        background: var(--accent);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10001;
        transform: translate(-50%, -50%);
    }
}

.cursor-hover .cursor-outer {
    width: 60px;
    height: 60px;
    background: rgba(194, 65, 12, 0.05);
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    max-width: 80%;
    height: auto;
    max-height: 80px;
    margin-bottom: 20px;
}

.loader-line {
    width: 150px;
    height: 2px;
    background: var(--gray-light);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.loader-line::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: loading 2s infinite ease-in-out;
}

@keyframes loading {
    to { left: 100%; }
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.98);
}

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

@media (min-width: 1024px) {
    .nav-container {
        padding: 0 60px;
    }
}

.logo img {
    height: 45px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.menu-toggle {
    display: none;
}

@media (max-width: 1100px) {
    .nav-links {
        display: none; /* Mobile menu logic should handle this */
    }
}

.nav-item {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1.5px;
    background: var(--accent);
    transition: 0.4s;
}

.nav-item:hover::after {
    width: 100%;
}

.nav-contact-btn {
    text-decoration: none;
    background: var(--text);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-contact-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* --- MOBILE NAV OVERLAY --- */
@media (max-width: 1100px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        display: flex; /* Always flex so children align, but right -100% hides it */
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-item {
        font-size: 24px;
        color: var(--text);
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        gap: 6px;
        background: #fff; /* White background */
        border: none;
        border-radius: 50%;
        cursor: pointer;
        z-index: 1001;
        position: relative;
        transition: var(--transition);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border: 2px solid rgba(0,0,0,0.05); /* Adds slight definition without being harsh black */
    }

    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: #000; /* Black lines */
        transition: 0.3s;
    }

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

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

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

/* ─── HERO V3 ─── */
.hero-v3 {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero-full-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-full-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* gradient: strong on left, fades to transparent right */
.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.80) 0%,
        rgba(0,0,0,0.60) 30%,
        rgba(0,0,0,0.25) 65%,
        rgba(0,0,0,0.05) 100%
    );
    z-index: 1;
}

/* content sits on left */
.hero-content-v3 {
    position: relative;
    z-index: 10;
    padding: 0 60px;
    max-width: 780px;
    text-align: left;
}

@media (max-width: 768px) {
    .hero-content-v3 {
        padding: 0 24px;
        max-width: 100%;
    }
    .hero-overlay-dark {
        background: rgba(0,0,0,0.55);
    }
}

/* ── animated entry ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.hero-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5.5vw, 5.2rem);
    line-height: 1.12;
    font-weight: 400;
    margin-bottom: 24px;
    color: var(--white);
    letter-spacing: -0.5px;
    /* no background box, no uppercase, no blur */
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.5s;
}

/* the italic accent word */
.hero-main-title .accent-text {
    color: var(--accent);
}
.hero-main-title .italic {
    font-style: italic;
    font-weight: 300;
}

.hero-subline {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 500px;
    margin-bottom: 44px;
    line-height: 1.9;
    font-weight: 400;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.75s;
}

.hero-v3-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 1s;
}

.btn-premium-v3 {
    display: inline-block;
    padding: 15px 38px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 24px rgba(194, 65, 12, 0.35);
}

.btn-premium-v3:hover {
    background: var(--white);
    color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(255,255,255,0.2);
}

.hero-v3-badge {
    padding: 8px 0 8px 24px;
    border-left: 2px solid var(--accent-gold);
    text-align: left;
}

.badge-text {
    display: block;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}

/* ─── ABOUT ─── */
.about {
    padding: 140px 0;
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 80px;
    }
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 30px;
}

.about-p {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 50px;
}

.about-p p {
    margin-bottom: 25px;
}

.about-metrics {
    display: flex;
    gap: 60px;
}

.metric {
    display: flex;
    flex-direction: column;
}

.m-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent);
}

.m-label {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
}

.about-visuals {
    position: relative;
}

.visual-gallery {
    position: relative;
}

.v-1 img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
}

/* Small chef card overlapping bottom-left of main image */
.v-2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 55%;
    border: 4px solid var(--white);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    z-index: 3;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.v-2:hover {
    transform: scale(1.03);
}

.v-2 img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .v-2 {
        position: static;
        width: 100%;
        margin-top: 12px;
        border: none;
        box-shadow: none;
    }
}

.v-experience {
    position: absolute;
    top: -30px;
    right: -30px;
    background: var(--accent);
    color: var(--white);
    padding: 40px;
    text-align: center;
    z-index: 4;
}

.exp-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
}

.exp-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* --- PHILOSOPHY --- */
.philosophy {
    padding: 120px 0;
    background: var(--white);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .philosophy-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

.philo-card {
    padding: 50px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.philo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.philo-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.philo-icon {
    width: 60px;
    height: 60px;
    color: var(--accent);
    margin-bottom: 30px;
}

/* --- SERVICES --- */
.services {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-mid);
    max-width: 600px;
    margin: 10px auto 0;
}

.services-modern-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    background: rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .services-modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-modern-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-v2-card {
    background: var(--white);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 8px;
}

.service-v2-card:hover {
    background: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    border-color: rgba(194, 65, 12, 0.2); /* Soft accent border */
    position: relative;
    z-index: 10;
}

.s-v2-index {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent);
}

.s-v2-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

/* --- WHY TABLEWORTH --- */
.why-tableworth {
    padding: 140px 0;
    background: var(--text);
    color: var(--white);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 100px;
    }
}

.luxury-card {
    background: rgba(255,255,255,0.03);
    padding: 60px;
    border: 1px solid rgba(255,255,255,0.1);
}

.l-card-header span {
    color: var(--accent);
    letter-spacing: 4px;
    font-weight: 700;
    font-size: 11px;
}

.l-card-header h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin: 15px 0 40px;
    line-height: 1.1;
}

.reason-list {
    list-style: none;
}

.reason-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.reason-list li span {
    color: var(--accent);
    font-family: var(--font-heading);
}

.states-covered {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.state-pill {
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- TRAINING --- */
.training-v2 {
    padding: 120px 0;
    background: var(--bg);
}

.training-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 1024px) {
    .training-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 60px;
    }
}

.t-step {
    position: relative;
}



.t-step h3 {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.t-step p {
    position: relative;
    z-index: 1;
}

/* --- CERTIFICATIONS --- */
.certifications-v2 {
    padding: 100px 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .cert-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }
}

.cert-item {
    border: 1px solid var(--gray-light);
    padding: 50px;
    text-align: center;
}

.c-tag {
    display: inline-block;
    color: var(--accent);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.cert-item h4 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.compliance-marquee {
    border-top: 1px solid var(--gray-light);
    padding: 40px 0;
    overflow: hidden;
}

.c-track {
    display: flex;
    gap: 60px;
    animation: marquee 20s linear infinite;
}

.c-track span {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 3px;
    opacity: 0.4;
    white-space: nowrap;
}

/* --- MENU V2 GRID --- */
.menu-v2 {
    padding: 100px 0 0;
    background: #0f0f0f;
    color: var(--white);
}

.menu-v2 .section-heading {
    color: var(--white);
}

.menu-v2 .section-desc {
    color: rgba(255,255,255,0.45);
}

.menu-v2-intro {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

/* --- BENTO GRID (5 cards) --- */
.menu-v2-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
    gap: 3px;
    margin-top: 0;
}

@media (min-width: 600px) {
    .menu-v2-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 300px;
    }
}

@media (min-width: 1024px) {
    /* 
      Card 1: col 1, rows 1-2 (tall hero left)
      Card 2: col 2, row 1
      Card 3: col 3, row 1
      Card 4: col 2, row 2
      Card 5: col 3, row 2
    */
    .menu-v2-grid {
        grid-template-columns: 1.3fr 1fr 1fr;
        grid-template-rows: 360px 360px;
        gap: 3px;
        grid-auto-rows: unset;
    }
    .menu-card-v2:nth-child(1) {
        grid-row: 1 / 3;
        grid-column: 1;
    }
    .menu-card-v2:nth-child(2) { grid-column: 2; grid-row: 1; }
    .menu-card-v2:nth-child(3) { grid-column: 3; grid-row: 1; }
    .menu-card-v2:nth-child(4) { grid-column: 2; grid-row: 2; }
    .menu-card-v2:nth-child(5) { grid-column: 3; grid-row: 2; }
}

.menu-card-v2 {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #1a1a1a;
}

.m-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.m-card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Always-visible subtle gradient at bottom */
.m-card-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.35) 40%,
        transparent 70%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    color: var(--white);
    padding: 28px 30px;
    text-align: left;
    transition: background 0.5s ease;
}

.m-card-label {
    display: inline-block;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 6px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
}

.m-card-info h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    line-height: 1.2;
    margin: 0;
    transform: translateY(6px);
    transition: transform 0.4s ease;
}

@media (min-width: 1024px) {
    /* hero card bigger text */
    .menu-card-v2:nth-child(1) .m-card-info h4 {
        font-size: 2rem;
    }
}

.menu-card-v2:hover .m-card-inner img {
    transform: scale(1.07);
}

.menu-card-v2:hover .m-card-label {
    opacity: 1;
    transform: translateY(0);
}

.menu-card-v2:hover .m-card-info h4 {
    transform: translateY(0);
}

/* --- CLIENTS / PARTNERSHIPS --- */
.clients-v2 {
    background: var(--white);
    padding: 100px 0;
    overflow: hidden;
    position: relative;
    margin-top: 60px;
}

.clients-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.clients-header {
    text-align: center;
    margin-bottom: 60px;
}

.clients-subtitle {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 5px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.clients-title {
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 2.5rem;
}

.horizontal-loop-container {
    width: 100%;
    margin: 40px auto;
    position: relative;
}

.horizontal-loop-track {
    display: flex;
    flex-direction: row;
    width: max-content;
    animation: scroll-horizontal 50s linear infinite;
    gap: 60px;
}

.loop-group-hz {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: center;
}

.client-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo:hover {
    transform: scale(1.05);
}

@keyframes scroll-horizontal {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 30px)); }
}

/* --- MOBILE TOGGLE FIX --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 1100px) {
    .menu-toggle {
        display: flex;
    }
}

/* --- MODAL RESPONSIVENESS --- */
.modal-content {
    width: 95%;
    max-width: 1000px;
    margin: 5vh auto;
    padding: 20px;
}

@media (min-width: 1024px) {
    .modal-content {
        padding: 50px;
    }
}

.viewer-container {
    height: 300px;
}

@media (min-width: 1024px) {
    .viewer-container {
        height: 500px;
    }
}

#main-viewer {
    width: 100%;
    height: 100%;
}

.footer-brand img {
    height: 60px;
    margin-bottom: 30px;
    filter: none;
}

.foot.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
}

.btn-primary {
    width: 100%;
    display: inline-block;
    padding: 18px 40px;
    background: var(--text);
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
        width: auto;
    }
    .btn-primary {
        width: auto;
    }
}

@media (min-width: 1024px) {
    .hero-actions {
        justify-content: flex-start;
    }
}

/* --- FOOTER --- */
.footer-v2 {
    background: var(--bg);
    padding: 100px 0 40px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 60px;
}

@media (min-width: 1024px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 80px;
    }
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-links {
        flex-direction: row;
        gap: 100px;
    }
}

.link-group h5 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: var(--accent);
}

.link-group a {
    display: block;
    text-decoration: none;
    color: var(--secondary);
    opacity: 0.7;
    margin-bottom: 15px;
    transition: 0.3s;
}

.link-group a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    opacity: 0.8;
    color: var(--secondary);
    font-size: 14px;
    flex-wrap: wrap;
    gap: 20px;
}

/* --- MODAL 3D --- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    padding: 40px;
}

.modal-content {
    background: var(--white);
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
}

.viewer-container {
    flex: 1;
    background: #fdfdfd;
}

#main-viewer {
    width: 100%;
    height: 100%;
}

.model-info {
    width: 400px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 40px;
    z-index: 2001;
}

/* Responsive */
@media (max-width: 1100px) {
    .hero-visual { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .hero-content { max-width: 100%; }
    .services-modern-grid { grid-template-columns: 1fr; }
}
/* --- MENU MENU SWAPPED FOR CONTACT --- */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    margin-left: 12px;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text);
    letter-spacing: 1px;
    font-weight: 600;
    line-height: 1.2;
}

.logo-subtitle {
    font-family: 'Brush Script MT', 'Comic Sans MS', cursive;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--accent-gold, #c08e5e);
    letter-spacing: 0.5px;
    line-height: 1;
}

.contact-section {
    padding: 120px 0;
    background: #111; /* Dark premium background */
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255,255,255,0.03);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    border-radius: 4px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.menu-card-v2.hide {
    display: none;
}

/* Modal AR adjustments */
model-viewer {
    --ar-button-display: block;
}

/* Ensure modal is centered on all screens */
.modal {
    padding: 20px;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1100px) {
    .modal-content {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .viewer-container {
        height: 40vh;
        min-height: 300px;
    }
    
    .model-info {
        width: 100%;
        padding: 40px 20px;
        text-align: center;
    }
}

/* --- MOBILE RESPONSIVENESS TWEAKS --- */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px; /* Use vertical gap instead of horizontal when stacked */
    }
}

/* --- GALLERY SECTION --- */
.photo-gallery {
    padding: 80px 0;
    background: #111;
}

.photo-gallery .section-heading {
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.g-img-wrap {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.g-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.g-img-wrap:hover img {
    transform: scale(1.1);
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
