/* ============================================
   Catrina Lounge — Editorial Bakery & Grocery
   Forest Green + Off-White
   ============================================ */

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

:root {
    --green-900: #0d1f14;
    --green-800: #1a3a2a;
    --green-700: #234d38;
    --green-600: #2d6348;
    --green-500: #3a7d5c;
    --green-400: #5a9e7a;
    --green-300: #8fc0a4;
    --green-200: #c2dec9;
    --green-100: #e2f0e9;
    --green-50:  #f0f7f4;
    
    --cream-900: #1a1814;
    --cream-800: #2e2a24;
    --cream-700: #4a443a;
    --cream-600: #6b6358;
    --cream-500: #8e8478;
    --cream-400: #b0a698;
    --cream-300: #d4c8b8;
    --cream-200: #e8dfd4;
    --cream-100: #f2ece2;
    --cream-50:  #f8f4ee;
    --cream-25:  #fbf8f4;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 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.6;
    color: var(--cream-900);
    background-color: var(--cream-50);
    overflow-x: hidden;
}

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

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
    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(--green-600);
    margin-bottom: 16px;
}

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background-color: rgba(251, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 58, 42, 0.08);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--cream-50);
    transition: color 0.3s ease;
}

.nav.scrolled .nav-logo {
    color: var(--green-800);
}

.nav-logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-size: 1rem;
    font-style: italic;
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(251, 248, 244, 0.85);
    transition: color 0.3s ease;
    position: relative;
}

.nav.scrolled .nav-links a {
    color: var(--cream-700);
}

.nav-links a:hover {
    color: var(--cream-50);
}

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

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

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

.nav-cta {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    padding: 8px 20px;
    border: 1.5px solid rgba(251, 248, 244, 0.5);
    border-radius: 100px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}

.nav.scrolled .nav-cta {
    border-color: var(--green-700);
    color: var(--green-700) !important;
}

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

.nav.scrolled .nav-cta:hover {
    background-color: var(--green-700);
    border-color: var(--green-700);
    color: var(--cream-50) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--cream-50);
    transition: color 0.3s ease;
}

.nav.scrolled .nav-toggle {
    color: var(--green-800);
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: var(--green-900);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--cream-200);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--cream-200);
    padding: 12px 24px;
    display: block;
    transition: color 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.mobile-link:hover {
    color: var(--cream-50);
    transform: translateX(4px);
}

.mobile-link--cta {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 16px;
    padding: 14px 32px;
    border: 1.5px solid var(--cream-300);
    border-radius: 100px;
    color: var(--cream-50) !important;
}

.mobile-link--cta:hover {
    background-color: var(--cream-50);
    color: var(--green-900) !important;
    transform: none;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(45, 99, 72, 0.85) 0%, rgba(26, 58, 42, 0.95) 50%, rgba(13, 31, 20, 1) 100%);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(90, 158, 122, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(143, 192, 164, 0.1) 0%, transparent 50%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

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

.hero-headline {
    font-size: clamp(3.5rem, 10vw, 7.5rem);
    font-weight: 900;
    color: var(--cream-50);
    line-height: 0.95;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
}

.hero-headline br {
    display: none;
}

@media (min-width: 640px) {
    .hero-headline br {
        display: block;
    }
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    text-decoration: none;
}

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

.btn--primary:hover {
    background-color: var(--green-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn--ghost {
    background-color: transparent;
    color: var(--cream-200);
    border: 1.5px solid rgba(248, 244, 238, 0.35);
}

.btn--ghost:hover {
    border-color: var(--cream-50);
    color: var(--cream-50);
    transform: translateY(-2px);
}

.btn--ghost-light {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--cream-100);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn--ghost-light:hover {
    background-color: var(--cream-50);
    color: var(--green-800);
    border-color: var(--cream-50);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(248, 244, 238, 0.5);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- Marquee --- */
.marquee {
    background-color: var(--green-800);
    padding: 16px 0;
    overflow: hidden;
    border-top: 1px solid rgba(248, 244, 238, 0.08);
    border-bottom: 1px solid rgba(248, 244, 238, 0.08);
}

.marquee-track {
    display: flex;
    gap: 24px;
    animation: marquee-scroll 30s linear infinite;
    width: max-content;
}

.marquee-item {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(248, 244, 238, 0.6);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.marquee-dot {
    color: var(--green-400);
    font-size: 0.625rem;
    align-self: center;
    flex-shrink: 0;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

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

/* --- About --- */
.about {
    background-color: var(--cream-50);
}

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

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

.about-image {
    border-radius: 12px;
    overflow: hidden;
}

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

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

.about-content {
    max-width: 520px;
}

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

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

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

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

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

/* --- Products --- */
.products {
    background-color: var(--cream-25);
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

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

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

.product-card {
    background-color: var(--cream-50);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(26, 58, 42, 0.1);
}

.product-card-image {
    overflow: hidden;
    aspect-ratio: 5/4;
}

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

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

.product-card-content {
    padding: 28px 28px 32px;
}

.product-card h3 {
    font-size: 1.5rem;
    color: var(--green-800);
    margin-bottom: 10px;
}

.product-card p {
    font-size: 0.9375rem;
    color: var(--cream-600);
    line-height: 1.7;
}

/* --- Gallery --- */
.gallery {
    background-color: var(--cream-50);
}

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

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 280px 280px;
        gap: 20px;
    }
    
    .gallery-item--tall {
        grid-row: 1 / 3;
    }
    
    .gallery-item--wide {
        grid-column: 2 / 4;
    }
}

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

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

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

@media (min-width: 900px) {
    .gallery-item--tall img {
        height: 100%;
    }
    
    .gallery-item--wide img {
        height: 100%;
    }
}

/* --- Visit --- */
.visit {
    background-color: var(--cream-25);
}

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

@media (min-width: 900px) {
    .visit-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.visit-info {
    max-width: 520px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 40px 0;
}

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

.visit-detail svg {
    flex-shrink: 0;
    color: var(--green-600);
    margin-top: 2px;
}

.visit-detail strong {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 4px;
}

.visit-detail p {
    font-size: 1rem;
    color: var(--cream-700);
    line-height: 1.6;
}

.visit-detail a {
    color: var(--green-600);
    transition: color 0.3s ease;
}

.visit-detail a:hover {
    color: var(--green-800);
    text-decoration: underline;
}

.visit-hours {
    padding-top: 32px;
    border-top: 1px solid var(--cream-200);
}

.visit-hours h3 {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 16px;
}

.visit-hours ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.visit-hours li {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-size: 0.9375rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cream-100);
}

.visit-hours li span:first-child {
    color: var(--cream-700);
    font-weight: 500;
}

.visit-hours li span:last-child {
    color: var(--green-600);
    font-weight: 600;
}

.visit-map {
    border-radius: 16px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 8px 32px rgba(26, 58, 42, 0.08);
}

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

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

.cta .section-eyebrow {
    color: var(--green-300);
}

.cta-headline {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    color: var(--cream-50);
    margin-bottom: 20px;
}

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

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

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

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

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

.footer-brand p {
    font-size: 0.9375rem;
    color: rgba(248, 244, 238, 0.5);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--cream-200);
}

.footer-logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(248, 244, 238, 0.3);
    border-radius: 50%;
    font-size: 1rem;
    font-style: italic;
}

.footer-nav h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-400);
    margin-bottom: 16px;
}

.footer-nav ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a,
.footer-contact a {
    font-size: 0.9375rem;
    color: rgba(248, 244, 238, 0.6);
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--cream-50);
}

.footer-contact li {
    font-size: 0.9375rem;
    color: rgba(248, 244, 238, 0.6);
    line-height: 1.6;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(248, 244, 238, 0.08);
    text-align: center;
}

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

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
    }
    
    .reveal.revealed {
        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; }
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 24px 80px;
    }
    
    .hero-headline {
        font-size: clamp(2.75rem, 12vw, 4rem);
    }
    
    .section {
        padding: 72px 0;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 24px;
    }
}

@media (min-width: 768px) and (max-width: 899px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}
