/* ========================================
   Fernando's Place — Styles
   Palette: Charcoal (#1A1A1A) + Coral (#B85450)
   Typography: Playfair Display + Inter
   ======================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --charcoal: #1A1A1A;
    --charcoal-light: #2D2D2D;
    --charcoal-mid: #3A3A3A;
    --coral: #B85450;
    --coral-dark: #9A4440;
    --coral-light: #D47672;
    --cream: #FDF6F0;
    --cream-dark: #F5E6DA;
    --warm-gray: #6B6560;
    --warm-gray-light: #9B9590;
    --white: #FFFFFF;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--charcoal);
    background-color: var(--cream);
    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;
}

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

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

/* ========================================
   Typography
   ======================================== */

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

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 24px;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn-coral {
    background-color: var(--coral);
    color: var(--white);
    border: 2px solid var(--coral);
}

.btn-coral:hover {
    background-color: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 84, 80, 0.3);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

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

.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

/* ========================================
   Header / Navigation
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background-color 0.3s var(--ease-out);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--coral);
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 6px;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.01em;
}

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

.nav-links a:not(.btn) {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.25s ease;
    letter-spacing: 0.02em;
}

.nav-links a:not(.btn):hover {
    color: var(--white);
}

.btn-nav {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.nav-toggle {
    display: none;
    color: var(--white);
    padding: 8px;
}

/* Mobile overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: var(--charcoal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
}

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

.nav-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: var(--white);
    padding: 8px;
}

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

.nav-overlay-links a {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    transition: color 0.25s ease;
}

.nav-overlay-links a:hover {
    color: var(--coral);
}

.nav-overlay-links .btn {
    margin-top: 8px;
}

/* ========================================
   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(26, 26, 26, 0.72) 0%,
        rgba(26, 26, 26, 0.82) 50%,
        rgba(26, 26, 26, 0.88) 100%
    );
}

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

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

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5.5vw, 4.25rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
}

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

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    animation: float 2.5s ease-in-out infinite;
}

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

/* ========================================
   About
   ======================================== */

.about {
    padding: 120px 0;
    background-color: var(--cream);
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(26, 26, 26, 0.15);
}

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

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(26, 26, 26, 0.2);
    border: 4px solid var(--cream);
}

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

.about-text {
    padding: 24px 0;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--warm-gray);
    margin-bottom: 20px;
}

.about-text p:first-of-type {
    font-size: 1.15rem;
    color: var(--charcoal);
}

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

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

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

.stat-label {
    font-size: 0.85rem;
    color: var(--warm-gray);
    line-height: 1.4;
}

/* ========================================
   Menu
   ======================================== */

.menu {
    padding: 120px 0;
    background-color: var(--charcoal);
    color: var(--white);
}

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

.menu-header .section-eyebrow {
    color: var(--coral-light);
}

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

.menu-intro {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.menu-category {
    background-color: var(--charcoal-light);
    border-radius: 8px;
    padding: 36px 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.menu-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.category-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--coral);
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.menu-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
}

.item-desc {
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.menu-note {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    margin-bottom: 40px;
}

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

/* ========================================
   Gallery
   ======================================== */

.gallery {
    padding: 120px 0;
    background-color: var(--cream);
}

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

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

.gallery-item {
    border-radius: 8px;
    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--wide {
    grid-column: span 6;
}

.gallery-item:not(.gallery-item--wide) {
    grid-column: span 3;
}

/* ========================================
   Visit
   ======================================== */

.visit {
    padding: 120px 0;
    background-color: var(--cream-dark);
}

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

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

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

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

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

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

.visit-detail strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 4px;
}

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

.visit-detail a {
    color: var(--charcoal);
    font-weight: 500;
    transition: color 0.25s ease;
}

.visit-detail a:hover {
    color: var(--coral);
}

.visit-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(26, 26, 26, 0.12);
    position: relative;
}

.map-link {
    display: block;
    position: relative;
}

.map-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: rgba(26, 26, 26, 0.5);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: background-color 0.3s ease;
}

.map-link:hover .map-overlay {
    background-color: rgba(184, 84, 80, 0.7);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: var(--charcoal);
    color: var(--white);
    padding: 64px 0 0;
}

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

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

.footer-brand .logo-mark {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
}

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

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

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

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

.footer-links a:hover {
    color: var(--coral-light);
}

.footer-contact {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.footer-contact a {
    color: var(--coral-light);
    transition: color 0.25s ease;
}

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

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

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

/* ========================================
   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.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .menu-categories {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .gallery-item:not(.gallery-item--wide) {
        grid-column: span 3;
    }
}

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

    .about-img-secondary {
        right: 0;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 100svh;
    }

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

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

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

    .about {
        padding: 80px 0;
    }

    .about-img-secondary {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 16px;
    }

    .about-stats {
        flex-direction: column;
        gap: 24px;
    }

    .menu {
        padding: 80px 0;
    }

    .menu-categories {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gallery {
        padding: 80px 0;
    }

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

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

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

    .visit {
        padding: 80px 0;
    }

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

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

    .hero-content {
        padding-top: 56px;
    }

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

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