/* ============================================
   EL REFU TEX MEX — Stylesheet
   Palette: Teal (#0F766E) + Slate Grey (#334155)
   Fonts: Playfair Display (headings) + Inter (body)
   ============================================ */

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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    --white: #ffffff;
    --black: #0a0a0a;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --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);
    
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    color: var(--slate-700);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--teal-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--teal-700);
}

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

/* ---------- SECTION HELPERS ---------- */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--slate-800);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--slate-500);
    max-width: 560px;
    line-height: 1.8;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--teal-600);
    color: var(--white);
    border-color: var(--teal-600);
}

.btn-primary:hover {
    background-color: var(--teal-700);
    border-color: var(--teal-700);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--slate-800);
    border-color: var(--white);
}

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

/* ---------- HEADER / NAV ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--slate-100);
    transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--slate-800);
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--teal-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-logo-icon::after {
    content: 'E';
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

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

.nav-menu a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--slate-600);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--teal-600);
    transition: width var(--transition-base);
}

.nav-menu a:hover {
    color: var(--teal-600);
}

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

.nav-cta {
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: var(--teal-600) !important;
    background-color: var(--teal-50);
    border: 1px solid var(--teal-200);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast) !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background-color: var(--teal-600) !important;
    color: var(--white) !important;
    border-color: var(--teal-600) !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--slate-700);
    transition: all var(--transition-base);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

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

.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(
        to bottom,
        rgba(15, 23, 42, 0.55) 0%,
        rgba(15, 23, 42, 0.40) 50%,
        rgba(15, 23, 42, 0.70) 100%
    );
}

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

.hero-greeting {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-300);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

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

.hero-sub {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    max-width: 540px;
    margin: 0 auto 40px;
    font-weight: 300;
}

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

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

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

/* ---------- INTRO STRIP ---------- */
.intro-strip {
    background-color: var(--slate-50);
    border-bottom: 1px solid var(--slate-100);
    padding: 20px 0;
}

.intro-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.intro-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--slate-600);
    font-weight: 400;
}

.intro-icon {
    color: var(--teal-600);
    flex-shrink: 0;
}

/* ---------- MENU ---------- */
.menu {
    padding: 100px 0;
    background-color: var(--white);
}

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

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

.menu-categories {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.menu-cat-btn {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 24px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--slate-500);
    cursor: pointer;
    transition: all var(--transition-base);
}

.menu-cat-btn:hover {
    border-color: var(--teal-300);
    color: var(--teal-700);
}

.menu-cat-btn.active {
    background-color: var(--teal-600);
    border-color: var(--teal-600);
    color: var(--white);
}

.menu-panel {
    animation: menuFadeIn 0.3s ease;
}

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

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

.menu-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    align-items: start;
    padding: 24px;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.menu-item:hover {
    border-color: var(--teal-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.menu-item-img {
    width: 160px;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.menu-item-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--slate-800);
    margin-bottom: 6px;
}

.menu-item-desc {
    font-size: 0.875rem;
    color: var(--slate-500);
    line-height: 1.65;
}

.menu-note {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--slate-100);
}

.menu-note p {
    font-size: 0.875rem;
    color: var(--slate-400);
    font-style: italic;
}

/* ---------- ABOUT ---------- */
.about {
    padding: 100px 0;
    background-color: var(--slate-50);
    border-top: 1px solid var(--slate-100);
    border-bottom: 1px solid var(--slate-100);
}

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

.about-images {
    position: relative;
}

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

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

.about-img-secondary {
    position: absolute;
    bottom: -32px;
    right: -24px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}

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

.about-content {
    padding-top: 16px;
}

.about-text {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--slate-600);
    margin-bottom: 20px;
}

.about-signature {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--slate-200);
}

.signature-text {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--slate-700);
}

.signature-text strong {
    color: var(--teal-700);
    font-weight: 500;
}

/* ---------- GALLERY ---------- */
.gallery {
    padding: 100px 0;
    background-color: var(--white);
}

.gallery .section-header {
    margin-bottom: 48px;
}

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

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

/* ---------- VISIT ---------- */
.visit {
    padding: 100px 0;
    background-color: var(--slate-800);
}

.visit .section-eyebrow {
    color: var(--teal-400);
}

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

.visit-desc {
    font-size: 1rem;
    color: var(--slate-400);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 440px;
}

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

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

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

.visit-detail-icon {
    color: var(--teal-400);
    flex-shrink: 0;
    margin-top: 2px;
}

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

.visit-detail span,
.visit-detail a {
    font-size: 0.9375rem;
    color: var(--slate-200);
    line-height: 1.6;
}

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

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

/* ---------- FOOTER ---------- */
.site-footer {
    background-color: var(--slate-900);
    padding: 56px 0 32px;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--slate-800);
}

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

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--teal-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-logo-icon::after {
    content: 'E';
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--white);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--slate-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--teal-400);
}

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

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

.footer-bottom a {
    color: var(--slate-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--teal-400);
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .about-layout {
        gap: 48px;
    }
    
    .visit-layout {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--slate-100);
        box-shadow: var(--shadow-lg);
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu a {
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--slate-100);
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .nav-cta {
        display: inline-flex;
        justify-content: center;
        margin-top: 8px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        padding: 100px 20px 80px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .intro-grid {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-item {
        grid-template-columns: 120px 1fr;
        gap: 16px;
    }
    
    .menu-item-img {
        width: 120px;
        height: 90px;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    
    .about-img-secondary {
        right: 0;
        bottom: -24px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .visit-layout {
        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;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .menu {
        padding: 72px 0;
    }
    
    .about {
        padding: 72px 0;
    }
    
    .gallery {
        padding: 72px 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .visit {
        padding: 72px 0;
    }
    
    .menu-item {
        grid-template-columns: 1fr;
    }
    
    .menu-item-img {
        width: 100%;
        height: 160px;
    }
}
