/* ========================================
   STUYVESANT GOURMET DELI
   Minimalist · Forest Green · Off-White
   ======================================== */

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

:root {
    --forest: #1a3a2a;
    --forest-light: #2a5240;
    --forest-dark: #0f2419;
    --cream: #f5f2eb;
    --cream-light: #faf8f4;
    --cream-dark: #e8e4db;
    --charcoal: #1a1a1a;
    --text: #2c2c2c;
    --text-light: #5a5a5a;
    --text-muted: #8a8a8a;
    --white: #ffffff;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

/* ---------- SKIP LINK ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--forest);
    color: var(--cream);
    padding: 8px 16px;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    font-size: 14px;
}
.skip-link:focus {
    top: 0;
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(245, 242, 235, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 58, 42, 0.08);
    transition: background 0.3s var(--ease);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--forest);
}

.logo-mark {
    font-family: var(--font-display), serif;
    font-size: 28px;
    font-weight: 500;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--forest);
    border-radius: 50%;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display), serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

/* ---------- NAV ---------- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    position: relative;
    transition: color 0.2s var(--ease);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--forest);
    transition: width 0.3s var(--ease);
}

.nav-menu a:hover {
    color: var(--forest);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--forest);
    transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.3s var(--ease);
    cursor: pointer;
    border: 1.5px solid transparent;
    text-decoration: none;
}

.btn--forest {
    background: var(--forest);
    color: var(--cream);
    border-color: var(--forest);
}

.btn--forest:hover {
    background: var(--forest-light);
    border-color: var(--forest-light);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--forest);
    border-color: var(--forest);
}

.btn--outline:hover {
    background: var(--forest);
    color: var(--cream);
}

.btn--sm {
    padding: 10px 22px;
    font-size: 12px;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--cream);
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 60%, rgba(26, 58, 42, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(26, 58, 42, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--forest);
}

.hero-headline {
    font-family: var(--font-display), serif;
    font-size: clamp(42px, 5.5vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--charcoal);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.hero-headline em {
    font-style: italic;
    color: var(--forest);
}

.hero-sub {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 440px;
    margin-bottom: 40px;
}

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

/* ---------- FLOATING CARDS ---------- */
.hero-float-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.float-card {
    background: var(--white);
    border: 1px solid rgba(26, 58, 42, 0.1);
    padding: 24px 28px;
    box-shadow: 0 4px 24px rgba(26, 58, 42, 0.06), 0 1px 3px rgba(26, 58, 42, 0.04);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.float-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(26, 58, 42, 0.1), 0 2px 6px rgba(26, 58, 42, 0.06);
}

.float-card--1 {
    border-left: 3px solid var(--forest);
}

.float-card--2 {
    border-left: 3px solid var(--forest-light);
    margin-left: 24px;
}

.float-card--3 {
    border-left: 3px solid var(--cream-dark);
    margin-left: 48px;
}

.float-card-number {
    display: block;
    font-family: var(--font-display), serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--forest);
    line-height: 1;
    margin-bottom: 6px;
}

.float-card-label {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ---------- HERO SCROLL ---------- */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

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

/* ---------- SECTION COMMON ---------- */
.section-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display), serif;
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--charcoal);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.section-title em {
    font-style: italic;
    color: var(--forest);
}

.section-sub {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 520px;
}

/* ---------- ABOUT ---------- */
.about {
    padding: 140px 0;
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid var(--forest);
    border-radius: 2px;
    z-index: -1;
    opacity: 0.2;
}

.about-content {
    padding: 20px 0;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.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-display), serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--forest);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

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

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

.section-header .section-sub {
    margin: 0 auto;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.menu-card {
    background: var(--cream);
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 58, 42, 0.1);
}

.menu-card-img {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.menu-card:hover .menu-card-img img {
    transform: scale(1.04);
}

.menu-card-body {
    padding: 28px 28px 32px;
}

.menu-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--forest);
    border: 1px solid var(--forest);
    padding: 4px 10px;
    border-radius: 0;
    margin-bottom: 14px;
}

.menu-card-title {
    font-family: var(--font-display), serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 10px;
    line-height: 1.2;
}

.menu-card-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
}

.menu-note {
    text-align: center;
    padding: 24px;
    border-top: 1px solid var(--cream-dark);
}

.menu-note p {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    font-family: var(--font-display), serif;
    font-size: 18px;
}

/* ---------- BAR ---------- */
.bar {
    padding: 140px 0;
    background: var(--forest);
    color: var(--cream);
}

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

.bar .section-eyebrow {
    color: rgba(245, 242, 235, 0.6);
}

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

.bar-title em {
    color: rgba(245, 242, 235, 0.85);
}

.bar-desc {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(245, 242, 235, 0.7);
    margin-bottom: 40px;
    max-width: 440px;
}

.bar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bar-list li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(245, 242, 235, 0.1);
}

.bar-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bar-list-label {
    font-family: var(--font-display), serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--cream);
    min-width: 80px;
}

.bar-list-detail {
    font-size: 14px;
    color: rgba(245, 242, 235, 0.6);
    line-height: 1.5;
}

.bar-image {
    border-radius: 2px;
    overflow: hidden;
}

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

/* ---------- GALLERY ---------- */
.gallery {
    padding: 120px 0;
}

.gallery .section-header {
    margin-bottom: 56px;
}

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

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

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

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

.gallery-item--tall {
    grid-column: span 4;
    aspect-ratio: 3/4;
}

.gallery-item--wide {
    grid-column: span 8;
    aspect-ratio: 16/9;
}

.gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) {
    grid-column: span 4;
    aspect-ratio: 8/5;
}

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

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

.visit-info {
    padding-top: 20px;
}

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

.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.visit-icon {
    width: 22px;
    height: 22px;
    color: var(--forest);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.visit-detail-value {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
}

.visit-detail-value a {
    color: var(--forest);
    transition: color 0.2s;
}

.visit-detail-value a:hover {
    color: var(--forest-light);
    text-decoration: underline;
}

.visit-map {
    border-radius: 2px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 4px 24px rgba(26, 58, 42, 0.08);
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--forest-dark);
    color: var(--cream);
    padding: 56px 0;
}

.footer-inner {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer .logo-mark {
    border-color: rgba(245, 242, 235, 0.4);
    color: var(--cream);
    width: 36px;
    height: 36px;
    font-size: 22px;
}

.footer-name {
    font-family: var(--font-display), serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.footer-copy {
    font-size: 13px;
    color: rgba(245, 242, 235, 0.5);
    margin-bottom: 8px;
}

.footer-copy a {
    color: rgba(245, 242, 235, 0.6);
    transition: color 0.2s;
}

.footer-copy a:hover {
    color: var(--cream);
}

.footer-copy-small {
    font-size: 12px;
    color: rgba(245, 242, 235, 0.3);
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }

    .about-grid,
    .bar-container,
    .visit-container {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        box-shadow: -8px 0 32px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.3s var(--ease);
        z-index: 105;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-float-cards {
        order: -1;
    }

    .float-card--2 {
        margin-left: 0;
    }

    .float-card--3 {
        margin-left: 0;
    }

    .hero-scroll {
        display: none;
    }

    .about-grid,
    .bar-container,
    .visit-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image {
        order: -1;
    }

    .about-image::after {
        display: none;
    }

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

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

    .gallery-item--tall,
    .gallery-item--wide,
    .gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }

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

    .bar {
        padding: 80px 0;
    }

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

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

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

    .hero-float-cards {
        gap: 12px;
    }

    .float-card {
        padding: 18px 20px;
    }

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

    .gallery-item--tall,
    .gallery-item--wide,
    .gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }

    .header-inner {
        height: 64px;
    }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
