/* ============================================
   El Rinconcito De Puebla — Styles
   Midnight Blue + Mint · Editorial Bold
   ============================================ */

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

:root {
    --midnight: #0A1628;
    --midnight-light: #132240;
    --midnight-mid: #1A2D4A;
    --mint: #A8E6CF;
    --mint-light: #C8F3E2;
    --mint-dark: #7BC8A8;
    --cream: #F7F5F0;
    --cream-dark: #EDE9E0;
    --white: #FFFFFF;
    --text-dark: #0A1628;
    --text-light: #F7F5F0;
    --text-muted: #6B7F99;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 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-body);
    color: var(--text-dark);
    background: 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;
}

ul {
    list-style: none;
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(168, 230, 207, 0.1);
    transition: background 0.3s var(--ease-out);
}

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

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

.logo-mark {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    font-style: italic;
    color: var(--mint);
    letter-spacing: 0.02em;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

/* Nav */
.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.2s ease;
}

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

.nav-list a:hover {
    color: var(--mint);
}

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

/* Nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-light);
    position: relative;
    transition: background 0.2s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--text-light);
    transition: transform 0.3s var(--ease-out);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn--small {
    padding: 10px 20px;
    font-size: 0.78rem;
}

.btn--light {
    background: var(--mint);
    color: var(--midnight);
}

.btn--light:hover {
    background: var(--mint-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 230, 207, 0.3);
}

.btn--outline-light {
    background: transparent;
    color: var(--text-light);
    border: 1.5px solid rgba(247, 245, 240, 0.5);
}

.btn--outline-light:hover {
    border-color: var(--mint);
    color: var(--mint);
}

.btn--dark {
    background: var(--midnight);
    color: var(--mint);
}

.btn--dark:hover {
    background: var(--midnight-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 22, 40, 0.4);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--midnight);
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 22, 40, 0.7) 0%,
        rgba(10, 22, 40, 0.55) 50%,
        rgba(10, 22, 40, 0.85) 100%
    );
}

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

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

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

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

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(247, 245, 240, 0.75);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 40px;
}

.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;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--mint), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mint-dark);
    margin-bottom: 16px;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 120px 0;
    background: var(--cream);
}

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

.about-image-wrap {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

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

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

.about-text p:last-child {
    margin-bottom: 0;
}

/* ============================================
   MENU
   ============================================ */
.menu {
    padding: 120px 0;
    background: var(--midnight);
}

.menu .section-eyebrow {
    color: var(--mint);
}

.menu .section-heading {
    color: var(--text-light);
}

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

.menu-intro {
    font-size: 1.05rem;
    color: rgba(247, 245, 240, 0.65);
    line-height: 1.7;
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.menu-category {
    background: var(--midnight-light);
    border-radius: 8px;
    padding: 40px 32px;
    border: 1px solid rgba(168, 230, 207, 0.08);
    transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.menu-category:hover {
    border-color: rgba(168, 230, 207, 0.2);
    transform: translateY(-4px);
}

.category-icon {
    width: 48px;
    height: 48px;
    color: var(--mint);
    margin-bottom: 20px;
}

.category-icon svg {
    width: 100%;
    height: 100%;
}

.category-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 24px;
}

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

.menu-list li {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(247, 245, 240, 0.06);
}

.menu-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.item-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}

.item-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.menu-note {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 48px;
    font-style: italic;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    padding: 120px 0;
    background: var(--cream);
}

.gallery-header {
    text-align: center;
    margin-bottom: 56px;
}

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

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item--wide {
    grid-column: 1 / -1;
    aspect-ratio: 2/1;
}

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

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

/* ============================================
   VISIT
   ============================================ */
.visit {
    padding: 120px 0;
    background: var(--cream-dark);
}

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

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

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

.detail-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-icon {
    width: 44px;
    height: 44px;
    color: var(--mint-dark);
    flex-shrink: 0;
}

.detail-icon svg {
    width: 100%;
    height: 100%;
}

.detail-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-item p,
.detail-item a {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.detail-item a:hover {
    color: var(--mint-dark);
}

.visit-map {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 16px 48px rgba(10, 22, 40, 0.12);
}

.visit-map iframe {
    width: 100%;
    height: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--midnight);
    padding: 56px 0 40px;
}

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

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

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

.footer-brand p {
    font-family: var(--font-display);
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-brand p:last-child {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.footer-contact a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--mint);
    transition: color 0.2s ease;
}

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

.footer-copy {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(247, 245, 240, 0.06);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }

    .reveal-left {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }

    .reveal-right {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }
}

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-list {
        position: fixed;
        inset: 0;
        background: rgba(10, 22, 40, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s var(--ease-out);
    }

    .nav-list.is-open {
        opacity: 1;
        pointer-events: all;
    }

    .nav-list a {
        font-size: 1.1rem;
        letter-spacing: 0.1em;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .menu-categories {
        grid-template-columns: 1fr 1fr;
    }

    .menu-categories .menu-category:last-child {
        grid-column: 1 / -1;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 64px;
    }

    .logo-text {
        font-size: 0.82rem;
    }

    .hero-content {
        padding: 100px 20px 80px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

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

    .about {
        padding: 80px 0;
    }

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

    .about-image-wrap {
        aspect-ratio: 3/4;
    }

    .menu {
        padding: 80px 0;
    }

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

    .menu-categories .menu-category:last-child {
        max-width: none;
    }

    .gallery {
        padding: 80px 0;
    }

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

    .gallery-item--wide {
        aspect-ratio: 16/9;
    }

    .visit {
        padding: 80px 0;
    }

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

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

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

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

    .hero-headline {
        font-size: 2rem;
    }

    .section-heading {
        font-size: 1.8rem;
    }

    .menu-category {
        padding: 28px 24px;
    }
}
