/* ============================================
   CAFE 47 — Clean Minimalist Restaurant Site
   Color Palette: Emerald Green + Cream
   ============================================ */

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

:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --emerald-950: #022c22;

    --cream-50: #fefdf8;
    --cream-100: #fefce8;
    --cream-200: #fef9c3;
    --cream-300: #fef08a;
    --cream-400: #fde047;

    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --stone-950: #0c0a09;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--stone-800);
    background-color: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--stone-900);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--stone-500);
    max-width: 560px;
}

.section-subtitle.light {
    color: var(--stone-300);
}

.lead {
    font-size: 1.125rem;
    color: var(--stone-600);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.lead.light {
    color: var(--stone-300);
}

/* ---------- Label ---------- */
.label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: var(--space-sm);
}

.label.light {
    color: var(--emerald-300);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald-700);
    color: #ffffff;
    border-color: var(--emerald-700);
}

.btn-primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    border-color: var(--emerald-600);
    color: var(--emerald-700);
    transform: translateY(-2px);
}

.btn-nav {
    background: var(--emerald-700);
    color: #ffffff;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--emerald-800);
    transform: translateY(-1px);
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--stone-200);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--stone-900);
    letter-spacing: -0.01em;
}

.logo:hover {
    color: var(--emerald-700);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--stone-600);
    transition: color 0.2s ease;
    position: relative;
}

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

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

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--stone-700);
    transition: all 0.3s ease;
}

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

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

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

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

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(6, 95, 70, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 50% 50%, rgba(2, 44, 34, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 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-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--space-4xl) var(--space-lg);
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-300);
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--emerald-200);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    background: #ffffff;
    color: var(--emerald-900);
    border-color: #ffffff;
}

.hero-actions .btn-primary:hover {
    background: var(--cream-100);
    border-color: var(--cream-100);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hero-actions .btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: #ffffff;
}

.hero-actions .btn-outline:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255,255,255,0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--emerald-300);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Sections ---------- */
.section {
    padding: var(--space-4xl) 0;
}

.section-dark {
    background: var(--stone-900);
    color: var(--stone-100);
}

.section-cream {
    background: var(--cream-100);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

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

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
}

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

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

.about-content .label {
    margin-bottom: var(--space-sm);
}

.about-content .section-title {
    margin-bottom: var(--space-lg);
}

.about-content p {
    color: var(--stone-600);
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--stone-200);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

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

.stat-label {
    font-size: 0.8125rem;
    color: var(--stone-500);
    letter-spacing: 0.02em;
}

/* ---------- Menu ---------- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.menu-card {
    background: var(--stone-800);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--stone-700);
    transition: all 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--emerald-700);
}

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

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.menu-card-content {
    padding: var(--space-xl);
}

.menu-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-400);
    margin-bottom: var(--space-sm);
}

.menu-card-content h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: var(--space-sm);
}

.menu-card-content p {
    font-size: 0.9375rem;
    color: var(--stone-400);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.menu-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.menu-highlights li {
    font-size: 0.875rem;
    color: var(--stone-300);
    padding-left: var(--space-md);
    position: relative;
}

.menu-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 1px;
    background: var(--emerald-500);
}

.menu-footer {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--stone-700);
}

.menu-footer p {
    color: var(--stone-400);
    font-size: 0.9375rem;
    margin-bottom: var(--space-lg);
}

.menu-footer .btn-primary {
    background: var(--emerald-600);
    border-color: var(--emerald-600);
}

.menu-footer .btn-primary:hover {
    background: var(--emerald-500);
    border-color: var(--emerald-500);
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: var(--space-md);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.15) 0%, transparent 40%);
    pointer-events: none;
}

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

.gallery-item.wide {
    grid-column: span 8;
    grid-row: span 1;
}

.gallery-item:not(.tall):not(.wide) {
    grid-column: span 4;
    grid-row: span 1;
}

/* ---------- Visit ---------- */
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.visit-info .section-title {
    margin-bottom: var(--space-md);
}

.visit-info .lead {
    margin-bottom: var(--space-2xl);
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--stone-200);
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--emerald-300);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.contact-card a:hover {
    color: var(--emerald-700);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border-radius: var(--radius-md);
    color: var(--emerald-700);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stone-400);
    margin-bottom: 2px;
}

.contact-value {
    display: block;
    font-size: 0.9375rem;
    color: var(--stone-800);
    line-height: 1.5;
}

.contact-card[href^="tel"]:hover .contact-value {
    color: var(--emerald-700);
}

.contact-card[href^="mailto"]:hover .contact-value {
    color: var(--emerald-700);
}

.hours {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    border: 1px solid var(--stone-200);
}

.hours h3 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--stone-400);
    margin-bottom: var(--space-md);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--stone-100);
    font-size: 0.9375rem;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row span:first-child {
    color: var(--stone-600);
}

.hours-row span:last-child {
    color: var(--stone-800);
    font-weight: 400;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--stone-200);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--stone-900);
    color: var(--stone-400);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
    color: #ffffff;
    display: inline-block;
    margin-bottom: var(--space-md);
}

.footer-brand .logo:hover {
    color: var(--emerald-400);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--stone-500);
    max-width: 300px;
}

.footer-nav h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--stone-300);
    margin-bottom: var(--space-md);
}

.footer-nav ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-nav a,
.footer-contact a {
    font-size: 0.9375rem;
    color: var(--stone-500);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--stone-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--stone-600);
}

/* ---------- Scroll Reveal (Progressive Enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .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: 1024px) {
    .about-grid {
        gap: var(--space-2xl);
    }

    .menu-grid {
        gap: var(--space-md);
    }

    .gallery-grid {
        grid-template-rows: repeat(3, 220px);
    }

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

    .gallery-item.wide {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    :root {
        --space-4xl: 5rem;
        --space-3xl: 4rem;
        --space-2xl: 3rem;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream-50);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-lg);
        padding: var(--space-xl);
        border-left: 1px solid var(--stone-200);
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

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

    .nav-links a {
        font-size: 1.125rem;
    }

    .btn-nav {
        display: inline-flex;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.75rem);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

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

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

    .about-stats {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }

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

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

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

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

    .visit-map {
        aspect-ratio: 16/9;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

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

    .hero-content {
        padding: var(--space-3xl) var(--space-md);
    }

    .section {
        padding: var(--space-3xl) 0;
    }

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

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

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

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