/* ============================================
   Cafe 420 — Stylesheet
   Color Palette: Terracotta + Sand
   ============================================ */

/* ---------- Custom Properties ---------- */
:root {
    /* Terracotta */
    --terracotta-50: #fdf0ec;
    --terracotta-100: #fce4db;
    --terracotta-200: #f8c4b5;
    --terracotta-300: #f3a08a;
    --terracotta-400: #ec7558;
    --terracotta-500: #C87963;
    --terracotta-600: #b5614a;
    --terracotta-700: #9a4e3b;
    --terracotta-800: #7f4032;
    --terracotta-900: #66352a;

    /* Sand */
    --sand-50: #fefcf9;
    --sand-100: #fdf6f0;
    --sand-200: #f9e8d9;
    --sand-300: #f2d4b8;
    --sand-400: #e8bc93;
    --sand-500: #d4a574;
    --sand-600: #c4915d;
    --sand-700: #a6784e;
    --sand-800: #855f40;
    --sand-900: #6b4c34;

    /* Neutrals */
    --neutral-50: #faf9f8;
    --neutral-100: #f5f4f2;
    --neutral-200: #e8e6e2;
    --neutral-300: #d4d0ca;
    --neutral-400: #b0aaa2;
    --neutral-500: #8a847c;
    --neutral-600: #6e6860;
    --neutral-700: #524e48;
    --neutral-800: #3a3632;
    --neutral-900: #24211e;

    /* Typography */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: clamp(4rem, 10vw, 8rem);
    --border-radius: 16px;
    --border-radius-lg: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(36, 33, 30, 0.06);
    --shadow-md: 0 4px 20px rgba(36, 33, 30, 0.08);
    --shadow-lg: 0 12px 40px rgba(36, 33, 30, 0.12);
    --shadow-xl: 0 24px 60px rgba(36, 33, 30, 0.15);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--neutral-800);
    background-color: var(--sand-50);
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ---------- Utilities ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

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

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta-500);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    color: var(--neutral-900);
    margin-bottom: 1.25rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--terracotta-500), var(--sand-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-light {
    background: linear-gradient(135deg, var(--terracotta-200), var(--sand-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--neutral-600);
    max-width: 560px;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--terracotta-500), var(--terracotta-600));
    color: #fff;
    box-shadow: 0 4px 15px rgba(200, 121, 99, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 121, 99, 0.45);
    background: linear-gradient(135deg, var(--terracotta-600), var(--terracotta-700));
}

.btn-outline {
    background: transparent;
    color: var(--terracotta-600);
    border: 2px solid var(--terracotta-300);
}

.btn-outline:hover {
    background: var(--terracotta-50);
    border-color: var(--terracotta-500);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--terracotta-600);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1rem;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(254, 252, 249, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    z-index: 1001;
}

.logo-icon {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--terracotta-500);
    background: linear-gradient(135deg, var(--terracotta-500), var(--sand-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--neutral-900);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    margin-right: 0.5rem;
}

.nav-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--neutral-700);
    border-radius: 50px;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--terracotta-600);
    background: var(--terracotta-50);
}

.nav-cta {
    padding: 0.625rem 1.5rem !important;
    font-size: 0.875rem !important;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--neutral-800);
    transition: var(--transition);
    z-index: 1001;
}

.mobile-menu-btn:hover {
    background: var(--terracotta-50);
    color: var(--terracotta-600);
}

/* Mobile overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(254, 252, 249, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.mobile-close {
    position: absolute;
    top: 1.25rem;
    right: clamp(1.25rem, 4vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--neutral-800);
    transition: var(--transition);
}

.mobile-close:hover {
    background: var(--terracotta-50);
    color: var(--terracotta-600);
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mobile-nav-menu a {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--neutral-800);
    transition: var(--transition);
}

.mobile-nav-menu a:hover {
    color: var(--terracotta-500);
}

.mobile-nav-menu .btn {
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(36, 33, 30, 0.45) 0%,
        rgba(36, 33, 30, 0.55) 50%,
        rgba(36, 33, 30, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    padding-top: 5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.hero-badge svg {
    color: var(--terracotta-200);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #fff;
}

.stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ---------- About ---------- */
.about {
    padding: var(--section-padding) 0;
    background: var(--sand-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -2rem;
    right: -1rem;
    width: 55%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--sand-50);
}

.about-img-secondary img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    top: -1.5rem;
    left: -1rem;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--terracotta-500), var(--sand-600));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.about-content {
    padding: 1rem 0;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--neutral-600);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--terracotta-50);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta-600);
}

.feature-item h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.9375rem;
    color: var(--neutral-600);
    line-height: 1.6;
}

/* ---------- Menu ---------- */
.menu {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--sand-100) 0%, var(--sand-50) 100%);
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.menu-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--neutral-600);
    background: var(--sand-200);
    transition: var(--transition);
    border: 2px solid transparent;
}

.menu-tab:hover {
    color: var(--terracotta-600);
    background: var(--terracotta-50);
}

.menu-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--terracotta-500), var(--terracotta-600));
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(200, 121, 99, 0.35);
}

.menu-content {
    position: relative;
}

.menu-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.menu-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.menu-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.menu-card-img {
    height: 200px;
    overflow: hidden;
}

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

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

.menu-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.menu-card-body h4 {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    color: var(--neutral-900);
    margin-bottom: 0.375rem;
}

.menu-card-body p {
    font-size: 0.9375rem;
    color: var(--neutral-600);
    line-height: 1.6;
}

/* ---------- Gallery ---------- */
.gallery {
    padding: var(--section-padding) 0;
    background: var(--sand-50);
}

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

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

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

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

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

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

@media (min-width: 768px) {
    .gallery-item--large {
        grid-column: span 7;
    }
    .gallery-item:not(.gallery-item--large) {
        grid-column: span 5;
    }
}

/* ---------- Visit ---------- */
.visit {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--sand-50) 0%, var(--sand-100) 100%);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.visit-text {
    font-size: 1.0625rem;
    color: var(--neutral-600);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--terracotta-50);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta-600);
}

.contact-item h4 {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    font-size: 0.9375rem;
    color: var(--neutral-600);
    line-height: 1.7;
}

.contact-item a:hover {
    color: var(--terracotta-600);
    text-decoration: underline;
}

.visit-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.visit-map {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 450px;
}

/* ---------- CTA ---------- */
.cta {
    padding: clamp(5rem, 12vw, 8rem) 0;
    background: linear-gradient(135deg, var(--neutral-900) 0%, var(--neutral-800) 50%, #3a2a24 100%);
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1.25rem;
}

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

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
    padding: 4rem 0 2rem;
    background: var(--neutral-900);
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-text {
    color: #fff;
}

.footer-tagline {
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-copy {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.footer-links a:hover {
    color: var(--terracotta-300);
}

.footer-contact p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--terracotta-300);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--terracotta-200);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
    .nav-menu,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .about-images {
        max-width: 500px;
    }

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

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

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

    .hero-stats {
        gap: 1.25rem;
    }

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

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

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

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

    .gallery-item img {
        height: 220px;
    }

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

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

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-img-secondary {
        right: 0;
        bottom: -1.5rem;
    }
}
