/* ============================================
   Z TWO LOUNGE — Editorial Bakery & Grocer
   Forest Green + Off-White
   ============================================ */

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

:root {
    --green-900: #0B2218;
    --green-800: #1B4332;
    --green-700: #2D6A4F;
    --green-600: #40916C;
    --green-500: #52B788;
    --gold-400: #D4A373;
    --gold-500: #C49A6C;
    --cream-100: #FEFAE0;
    --cream-200: #FAF0D0;
    --cream-300: #F5E6C8;
    --off-white: #F8F6F0;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-muted: #555555;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-dark);
    background-color: var(--off-white);
    overflow-x: hidden;
}

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

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

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

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--green-800);
    margin-bottom: 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 67, 50, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--green-800);
    color: var(--white);
    transform: translateY(-2px);
}

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

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--green-800);
    transform: translateY(-2px);
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 246, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
    transition: all 0.4s var(--ease-out);
}

.site-header.scrolled {
    background: rgba(248, 246, 240, 0.97);
    box-shadow: 0 4px 32px rgba(27, 67, 50, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
}

.logo-mark {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-800);
    background: var(--green-800);
    color: var(--cream-100);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-800);
    letter-spacing: -0.02em;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.main-nav a:not(.btn) {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-500);
    transition: width 0.3s var(--ease-out);
}

.main-nav a:not(.btn):hover {
    color: var(--green-700);
}

.main-nav a:not(.btn):hover::after {
    width: 100%;
}

.main-nav .btn {
    padding: 10px 22px;
    font-size: 0.8125rem;
}

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

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--green-800);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--green-900) 0%,
        var(--green-800) 30%,
        var(--green-700) 60%,
        var(--green-600) 100%
    );
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(212, 163, 115, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(82, 183, 136, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 120px 24px 80px;
    max-width: 800px;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2.75rem, 8vw, 5.5rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.05;
}

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

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

.hero-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

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

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,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(--off-white);
}

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

.about-image-wrap {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 32px 64px rgba(27, 67, 50, 0.15);
}

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

.about-image-wrap:hover img {
    transform: scale(1.03);
}

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

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

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(27, 67, 50, 0.1);
}

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

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

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Offerings --- */
.offerings {
    padding: 120px 0;
    background: var(--green-900);
}

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

.offerings .section-title {
    color: var(--white);
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.offering-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.offering-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.offering-icon {
    padding: 32px 32px 0;
    width: 56px;
    height: 56px;
    color: var(--gold-400);
}

.offering-title {
    font-size: 1.5rem;
    color: var(--white);
    margin: 0 32px 12px;
}

.offering-card p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    padding: 0 32px 24px;
}

.offering-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0 0 20px 20px;
}

/* --- Gallery --- */
.gallery {
    padding: 120px 0;
    background: var(--cream-100);
}

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

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

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

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

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

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

.gallery-item--wide {
    grid-column: 7 / 13;
    grid-row: 2 / 3;
}

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

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

.visit-info {
    padding: 16px 0;
}

.visit-address {
    font-style: normal;
    margin: 32px 0;
    line-height: 1.8;
}

.visit-address strong {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--green-800);
    display: block;
    margin-bottom: 4px;
}

.visit-address span {
    color: var(--text-muted);
    font-size: 1.0625rem;
}

.visit-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--green-700);
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

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

.visit-phone svg {
    width: 22px;
    height: 22px;
}

.visit-hours {
    margin-bottom: 40px;
}

.visit-hours h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--green-800);
    margin-bottom: 16px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
    font-size: 0.9375rem;
}

.hours-row span:first-child {
    color: var(--text-dark);
    font-weight: 500;
}

.hours-row span:last-child {
    color: var(--text-muted);
}

.btn-directions {
    width: 100%;
    justify-content: center;
}

.visit-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(27, 67, 50, 0.12);
    aspect-ratio: 1;
}

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

/* --- CTA --- */
.cta {
    padding: 120px 0;
    background: linear-gradient(
        135deg,
        var(--green-800) 0%,
        var(--green-700) 100%
    );
    text-align: center;
}

.cta-inner {
    max-width: 640px;
    margin: 0 auto;
}

.cta .section-eyebrow {
    color: var(--gold-400);
}

.cta .section-title {
    color: var(--white);
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Footer --- */
.site-footer {
    background: var(--green-900);
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-mark {
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 280px;
}

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

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-400);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-400);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--gold-500);
}

.footer-contact span {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    }

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offerings-grid .offering-card:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}

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

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--off-white);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 24px;
        transition: right 0.4s var(--ease-out);
        box-shadow: -16px 0 48px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .main-nav a:not(.btn) {
        font-size: 1.125rem;
    }

    .main-nav .btn {
        width: 100%;
        justify-content: center;
        margin-top: 16px;
    }

    .hero-headline {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
    }

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

    .about-image-wrap {
        aspect-ratio: 16/10;
    }

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

    .offerings-grid .offering-card:last-child {
        max-width: 100%;
    }

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

    .gallery-item--large {
        grid-column: 1 / -1;
        grid-row: auto;
        aspect-ratio: 16/9;
    }

    .gallery-item--wide {
        grid-column: 1 / -1;
        grid-row: auto;
        aspect-ratio: 16/9;
    }

    .gallery-item {
        aspect-ratio: 16/10;
    }

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

    .visit-map {
        aspect-ratio: 4/3;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .about-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

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

    .gallery-item--large,
    .gallery-item--wide {
        grid-column: auto;
    }
}

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
}

.nav-overlay.active {
    display: block;
}
