/* ========================================
   Court Deli — Styles
   Forest Green + Off-White | Minimalist
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-900: #0f2618;
    --green-800: #1a3c2a;
    --green-700: #234d36;
    --green-600: #2d6a4f;
    --green-500: #40916c;
    --green-100: #b7e4c7;
    --green-50:  #d8f3dc;
    --cream:     #f5f2eb;
    --cream-light:#faf8f4;
    --cream-dark:#e8e4da;
    --text-dark:  #1a1a18;
    --text-mid:   #3d3d38;
    --text-light: #6b6b64;
    --font-body:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream-light);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Typography */
.section-eyebrow {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.body-text {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 20px;
    max-width: 520px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    border-radius: 2px;
    transition: all 0.35s var(--ease-out);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--green-800);
    color: var(--cream);
    border-color: var(--green-800);
}

.btn-primary:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(26, 60, 42, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--cream);
    border-color: rgba(245, 242, 235, 0.5);
}

.btn-outline:hover {
    background: var(--cream);
    color: var(--green-800);
    border-color: var(--cream);
}

.btn-call {
    background: var(--green-600);
    color: var(--cream);
    border-color: var(--green-600);
    margin-top: 32px;
}

.btn-call:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(45, 106, 79, 0.25);
}

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 242, 235, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(26, 60, 42, 0.08);
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    background: rgba(245, 242, 235, 0.97);
    box-shadow: 0 1px 0 rgba(26, 60, 42, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--green-800);
    color: var(--cream);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    border-radius: 2px;
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: 0.01em;
}

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

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: color 0.25s var(--ease-out);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--green-600);
    transition: width 0.35s var(--ease-out);
}

.nav-links a:hover {
    color: var(--green-600);
}

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

.nav-cta {
    font-size: 0.8125rem !important;
    color: var(--green-700) !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    color: var(--green-800) !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-dark);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

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

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

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

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: var(--green-900);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/30218903/pexels-photo-30218903.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1600&h=1000') center center / cover no-repeat;
    opacity: 0.45;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 38, 24, 0.92) 0%,
        rgba(26, 60, 42, 0.85) 50%,
        rgba(45, 106, 79, 0.7) 100%
    );
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--green-100);
    margin-bottom: 24px;
    font-weight: 400;
}

.hero-headline {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.08;
    color: var(--cream);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.hero-headline br {
    display: none;
}

.hero-sub {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(245, 242, 235, 0.75);
    margin-bottom: 40px;
    max-width: 440px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-right {
    display: flex;
    justify-content: flex-end;
}

.hero-image-wrap {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.hero-image-wrap img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
}

.hero-image-wrap::before {
    content: '';
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(183, 228, 199, 0.25);
    border-radius: 4px;
    z-index: -1;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(245, 242, 235, 0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(245, 242, 235, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ========== ABOUT ========== */
.about {
    padding: 120px 0;
    background: var(--cream-light);
}

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

.about-text .section-title {
    margin-bottom: 28px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--cream-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--green-700);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--cream-dark);
}

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

.about-img-main {
    border-radius: 4px;
    overflow: hidden;
}

.about-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.about-img-main:hover img {
    transform: scale(1.02);
}

.about-img-secondary {
    border-radius: 4px;
    overflow: hidden;
}

.about-img-secondary img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.about-img-secondary:hover img {
    transform: scale(1.02);
}

/* ========== THIN DIVIDER ========== */
.thin-divider {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.thin-line {
    flex: 1;
    height: 1px;
    background: var(--cream-dark);
}

.thin-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-light);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ========== MENU ========== */
.menu {
    padding: 120px 0;
    background: var(--cream);
}

.menu-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 72px;
}

.menu-intro {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.menu-card {
    background: var(--cream-light);
    border: 1px solid var(--cream-dark);
    border-radius: 4px;
    padding: 40px 36px;
    transition: all 0.4s var(--ease-out);
}

.menu-card:hover {
    border-color: var(--green-100);
    box-shadow: 0 12px 40px rgba(26, 60, 42, 0.08);
    transform: translateY(-2px);
}

.menu-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--green-100);
    border-radius: 50%;
    color: var(--green-700);
    margin-bottom: 24px;
}

.menu-card-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.menu-card-desc {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.75;
    font-weight: 300;
}

/* ========== GALLERY ========== */
.gallery {
    padding: 120px 0;
    background: var(--cream-light);
}

.gallery-header {
    text-align: center;
    margin-bottom: 64px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.gallery-item {
    border-radius: 4px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item.large {
    grid-column: span 7;
    grid-row: span 1;
}

.gallery-item.large img {
    height: 420px;
}

.gallery-item.tall {
    grid-column: span 5;
    grid-row: span 2;
}

.gallery-item.tall img {
    height: 100%;
    min-height: 560px;
}

.gallery-item:not(.large):not(.tall) img {
    height: 260px;
}

/* ========== VISIT ========== */
.visit {
    padding: 120px 0;
    background: var(--green-900);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.visit .section-eyebrow {
    color: var(--green-100);
}

.visit .section-title {
    color: var(--cream);
}

.visit-details {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.visit-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.visit-detail-label {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-500);
    font-weight: 400;
}

.visit-detail-value {
    font-size: 1rem;
    color: var(--cream);
    line-height: 1.7;
    font-weight: 300;
}

.visit-phone {
    transition: color 0.25s var(--ease-out);
}

.visit-phone:hover {
    color: var(--green-100);
}

.visit-map {
    border-radius: 4px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--green-900);
    border-top: 1px solid rgba(183, 228, 199, 0.1);
    padding: 48px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--green-700);
    color: var(--cream);
    font-family: var(--font-serif);
    font-size: 1rem;
    border-radius: 2px;
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--cream);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}

.footer-links a {
    font-size: 0.8125rem;
    color: rgba(245, 242, 235, 0.6);
    letter-spacing: 0.04em;
    transition: color 0.25s var(--ease-out);
}

.footer-links a:hover {
    color: var(--green-100);
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(245, 242, 235, 0.35);
    letter-spacing: 0.04em;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-inner {
        gap: 40px;
    }

    .hero-image-wrap img {
        height: 55vh;
    }

    .about-grid {
        gap: 48px;
    }

    .visit-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(245, 242, 235, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--cream-dark);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s var(--ease-out);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 100px;
        gap: 40px;
    }

    .hero-headline br {
        display: block;
    }

    .hero-right {
        justify-content: center;
        order: -1;
    }

    .hero-image-wrap {
        max-width: 400px;
    }

    .hero-image-wrap img {
        height: 45vh;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-images {
        order: -1;
    }

    .about-img-main img,
    .about-img-secondary img {
        height: 280px;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .thin-quote {
        display: none;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large,
    .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item.large img,
    .gallery-item.tall img {
        height: 320px;
    }

    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .visit-map {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 20px;
    }

    .hero-inner {
        padding: 90px 20px 60px;
    }

    .about,
    .menu,
    .gallery,
    .visit {
        padding: 80px 0;
    }

    .menu-card {
        padding: 28px 24px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        /* JS adds .revealed; default state stays visible for no-JS */
    }
}
