/* ============================================
   Fandango's II — Editorial Restaurant Website
   Colors: Emerald Green + Cream
   Fonts: Playfair Display + Inter
   ============================================ */

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

:root {
    --emerald-900: #042f23;
    --emerald-800: #064e3b;
    --emerald-700: #065f46;
    --emerald-600: #047857;
    --emerald-500: #059669;
    --emerald-400: #10b981;
    --cream-50: #fff7ed;
    --cream-100: #fff1e0;
    --cream-200: #ffe4c4;
    --cream-300: #ffd6a8;
    --cream-400: #ffc98a;
    --text-dark: #1a1a1a;
    --text-muted: #4a4a4a;
    --text-light: #6b6b6b;
    --white: #ffffff;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--cream-50);
    line-height: 1.6;
    -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;
}

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 247, 237, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 95, 70, 0.08);
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    background: rgba(255, 247, 237, 0.97);
    box-shadow: 0 4px 30px rgba(4, 47, 35, 0.06);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-mark {
    width: 40px;
    height: 40px;
    background: var(--emerald-700);
    color: var(--cream-50);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: transform 0.3s var(--ease-out);
}

.nav-logo:hover .nav-logo-mark {
    transform: rotate(-5deg) scale(1.05);
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--emerald-800);
    letter-spacing: -0.01em;
}

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

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

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

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

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

.nav-cta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cream-50);
    background: var(--emerald-700);
    padding: 10px 20px;
    border-radius: 50px;
    letter-spacing: 0.02em;
    transition: all 0.3s var(--ease-out);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-cta:hover {
    background: var(--emerald-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(6, 78, 59, 0.25);
}

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

.nav-toggle-bar {
    width: 22px;
    height: 2px;
    background: var(--emerald-800);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--cream-50);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.nav-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.nav-overlay-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--emerald-800);
    transition: color 0.3s ease;
}

.nav-overlay-link:hover {
    color: var(--emerald-500);
}

.nav-overlay-cta {
    margin-top: 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cream-50);
    background: var(--emerald-700);
    padding: 14px 32px;
    border-radius: 50px;
    letter-spacing: 0.02em;
    transition: all 0.3s var(--ease-out);
}

.nav-overlay-cta:hover {
    background: var(--emerald-800);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 72px;
    background: var(--cream-50);
    overflow: hidden;
}

.hero-text {
    display: flex;
    align-items: center;
    padding: 60px 0 60px 8%;
    position: relative;
}

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

.hero-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-tagline::before {
    content: '';
    width: 32px;
    height: 1.5px;
    background: var(--emerald-500);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4.5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.08;
    color: var(--emerald-900);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

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

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

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.hero-detail svg {
    color: var(--emerald-500);
    flex-shrink: 0;
}

.hero-image {
    position: relative;
    overflow: hidden;
}

.hero-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 100vh;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero-image-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, var(--cream-50), transparent);
    pointer-events: none;
}

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

.btn-primary {
    background: var(--emerald-700);
    color: var(--cream-50);
}

.btn-primary:hover {
    background: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--emerald-700);
    border: 1.5px solid var(--emerald-300);
}

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

.btn-large {
    padding: 16px 32px;
    font-size: 0.9375rem;
}

/* --- Section Tags & Titles --- */
.section-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-tag::before {
    content: '';
    width: 24px;
    height: 1.5px;
    background: var(--emerald-400);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--emerald-900);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

/* --- Experience Section --- */
.experience {
    padding: 120px 0;
    background: var(--cream-50);
}

.experience .section-header {
    margin-bottom: 64px;
}

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

.experience-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 32px;
    border: 1px solid rgba(6, 95, 70, 0.06);
    transition: all 0.4s var(--ease-out);
}

.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(4, 47, 35, 0.08);
    border-color: rgba(6, 95, 70, 0.12);
}

.experience-card-icon {
    width: 56px;
    height: 56px;
    background: var(--emerald-50);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
    margin-bottom: 24px;
    transition: all 0.3s var(--ease-out);
}

.experience-card:hover .experience-card-icon {
    background: var(--emerald-700);
    color: var(--cream-50);
    transform: scale(1.05);
}

.experience-card h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--emerald-900);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.experience-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* --- Menu Section --- */
.menu-section {
    padding: 120px 0;
    background: var(--emerald-900);
    position: relative;
    overflow: hidden;
}

.menu-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.menu-section .section-tag {
    color: var(--emerald-400);
}

.menu-section .section-tag::before {
    background: var(--emerald-400);
}

.menu-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

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

.menu-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 247, 237, 0.6);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

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

.menu-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

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

.menu-card-content {
    padding: 28px;
}

.menu-card-content h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cream-50);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.menu-card-content p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 247, 237, 0.55);
}

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

.menu-cta p {
    font-size: 1rem;
    color: rgba(255, 247, 237, 0.6);
}

.menu-cta a {
    color: var(--emerald-400);
    font-weight: 600;
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
    transition: border-color 0.3s ease;
}

.menu-cta a:hover {
    border-color: var(--emerald-400);
}

/* --- Quote Divider --- */
.quote-divider {
    padding: 100px 0;
    background: var(--cream-100);
    text-align: center;
}

.quote-divider blockquote {
    max-width: 700px;
    margin: 0 auto;
}

.quote-divider p {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    color: var(--emerald-800);
    margin-bottom: 20px;
}

.quote-divider cite {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald-500);
}

/* --- About Section --- */
.about {
    padding: 120px 0;
    background: var(--cream-50);
}

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

.about-image {
    position: relative;
}

.about-image img:first-child {
    border-radius: 20px;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-image-secondary {
    position: absolute;
    bottom: -32px;
    right: -32px;
    border-radius: 16px;
    overflow: hidden;
    border: 6px solid var(--cream-50);
    box-shadow: 0 16px 48px rgba(4, 47, 35, 0.12);
}

.about-image-secondary img {
    width: 260px;
    height: 200px;
    object-fit: cover;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(6, 95, 70, 0.1);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--emerald-700);
}

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

/* --- Visit Section --- */
.visit {
    padding: 120px 0;
    background: var(--cream-100);
}

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

.visit-info .section-tag {
    margin-bottom: 16px;
}

.visit-info .section-title {
    margin-bottom: 40px;
}

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

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

.visit-detail-icon {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
    flex-shrink: 0;
}

.visit-detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 2px;
}

.visit-detail-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.visit-detail-value a {
    color: var(--emerald-700);
    transition: color 0.3s ease;
}

.visit-detail-value a:hover {
    color: var(--emerald-500);
}

.visit-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.visit-map {
    border-radius: 20px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 16px 48px rgba(4, 47, 35, 0.1);
}

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

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-logo-mark {
    width: 48px;
    height: 48px;
    background: var(--emerald-600);
    color: var(--cream-50);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cream-50);
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 247, 237, 0.45);
    max-width: 280px;
    line-height: 1.6;
}

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

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 247, 237, 0.55);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

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

.footer-bottom a {
    color: rgba(255, 247, 237, 0.45);
    transition: color 0.3s ease;
}

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

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .hero-text {
        padding: 100px 8% 60px;
    }
    
    .hero-image {
        display: none;
    }
    
    .experience-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .menu-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-grid {
        gap: 48px;
    }
    
    .about-image-secondary {
        right: -16px;
        bottom: -24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding-top: 72px;
    }
    
    .hero-text {
        padding: 80px 24px 60px;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .experience {
        padding: 80px 0;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .menu-section {
        padding: 80px 0;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .menu-card img {
        height: 220px;
    }
    
    .quote-divider {
        padding: 72px 0;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image img:first-child {
        height: 360px;
    }
    
    .about-image-secondary {
        right: 0;
        bottom: -20px;
    }
    
    .about-image-secondary img {
        width: 200px;
        height: 150px;
    }
    
    .visit {
        padding: 80px 0;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .visit-map {
        min-height: 300px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-text {
        padding: 72px 20px 48px;
    }
    
    .experience-card {
        padding: 28px 24px;
    }
    
    .menu-card-content {
        padding: 20px;
    }
    
    .visit-cta-group {
        flex-direction: column;
    }
    
    .visit-cta-group .btn {
        justify-content: center;
    }
}
