/* ========================================
   Antojitos Tapatios — Styles
   Classic & Elegant · Emerald + Cream
======================================== */

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

:root {
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --cream-50: #faf9f6;
    --cream-100: #f5f0e8;
    --cream-200: #ece4d4;
    --cream-300: #e0d5c0;
    --gold-500: #c9a84c;
    --gold-600: #b8943f;
    --text-dark: #1a2e23;
    --text-body: #2d4a3a;
    --text-muted: #5a7d6a;
    --text-light: #8fa898;
    --white: #ffffff;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', 'Segoe UI', system-ui, sans-serif;
    --shadow-sm: 0 1px 3px rgba(6, 78, 59, 0.08);
    --shadow-md: 0 4px 16px rgba(6, 78, 59, 0.10);
    --shadow-lg: 0 8px 32px rgba(6, 78, 59, 0.14);
    --shadow-xl: 0 16px 48px rgba(6, 78, 59, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* ---- Typography ---- */
.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-600);
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(5, 150, 105, 0.2);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.8;
}

.section-header.centered {
    text-align: center;
}

.section-header.centered .section-lead {
    margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald-700);
    color: var(--white);
    border-color: var(--emerald-700);
}

.btn-primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--emerald-700);
    border-color: var(--emerald-700);
}

.btn-outline:hover {
    background: var(--emerald-700);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-dark {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--cream-300);
}

.btn-outline-dark:hover {
    background: var(--cream-100);
    border-color: var(--cream-300);
    transform: translateY(-2px);
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
    transition: var(--transition);
}

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

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-icon {
    font-size: 1.5rem;
}

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

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-body);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--emerald-700);
    background: rgba(5, 150, 105, 0.08);
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    background: var(--emerald-700);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    margin-left: 8px;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--emerald-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    /* Dark emerald gradient background with light text */
    background: linear-gradient(
        135deg,
        #042e24 0%,
        #064e3b 25%,
        #075743 40%,
        #0a6e54 55%,
        #0f8a6a 70%,
        #13a07a 85%,
        #17b88a 100%
    );
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(6, 78, 59, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(16, 185, 129, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(0, 0, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-tagline {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream-300);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5.5vw, 4.25rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

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

.hero-subtitle {
    font-size: 1.1875rem;
    color: var(--cream-200);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 40px;
}

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

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

.badge {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cream-200);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--cream-300);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

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

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

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    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: 480px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--cream-50);
}

.about-img-secondary img {
    width: 240px;
    height: 240px;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--emerald-700);
    color: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-accent .accent-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
}

.about-accent .accent-text {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
}

.about-content {
    padding: 20px 0;
}

.about-content .section-lead {
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1.0625rem;
}

.about-features {
    display: flex;
    gap: 32px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.feature-icon {
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* ---- Menu Preview ---- */
.menu-preview {
    padding: 120px 0;
    background: var(--cream-100);
}

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

.menu-category {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(6, 78, 59, 0.06);
    transition: var(--transition);
}

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

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--cream-200);
}

.category-icon {
    font-size: 1.75rem;
}

.category-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-dark);
}

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

.menu-item-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.menu-item-name {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-dark);
}

.menu-item-dots {
    flex: 1;
    border-bottom: 1px dotted var(--cream-300);
    min-width: 24px;
}

.menu-item-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 0;
}

.menu-note {
    text-align: center;
    margin-top: 64px;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(6, 78, 59, 0.06);
}

.menu-note p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.0625rem;
}

.menu-note .btn {
    margin: 0 auto;
}

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

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

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

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

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

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

.gallery-item.large:first-child {
    grid-row: span 2;
}

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

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

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

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

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--emerald-700);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

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

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.contact-value {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.contact-link {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--emerald-700);
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--emerald-800);
    text-decoration: underline;
}

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

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

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

/* ---- Footer ---- */
.footer {
    background: var(--emerald-900);
    color: var(--cream-200);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 60px;
}

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

.footer-logo {
    font-size: 2rem;
}

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

.footer-desc {
    font-size: 0.9375rem;
    color: var(--cream-300);
    line-height: 1.7;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-links a {
    color: var(--cream-300);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.9375rem;
    color: var(--cream-300);
    line-height: 1.8;
    margin-bottom: 4px;
}

.footer-contact a {
    color: var(--emerald-400);
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
}

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

/* ---- 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-grid {
        gap: 48px;
    }

    .menu-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-category:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }

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

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

    .gallery-item.large:first-child {
        grid-row: span 1;
    }
}

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

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 249, 246, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid rgba(6, 78, 59, 0.08);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

    .nav-cta {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }

    .hero {
        padding: 100px 24px 80px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

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

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

    .hero-badges {
        gap: 12px;
    }

    .about {
        padding: 80px 0;
    }

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

    .about-img-secondary {
        right: -16px;
        bottom: -24px;
    }

    .about-img-secondary img {
        width: 180px;
        height: 180px;
    }

    .about-features {
        flex-wrap: wrap;
        gap: 20px;
    }

    .menu-preview {
        padding: 80px 0;
    }

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

    .menu-category:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .gallery {
        padding: 80px 0;
    }

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

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

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

    .visit {
        padding: 80px 0;
    }

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

    .visit-map {
        min-height: 320px;
    }

    .visit-map iframe {
        min-height: 320px;
    }

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

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

    .hero {
        padding: 90px 16px 60px;
    }

    .about-img-main img {
        height: 320px;
    }

    .about-img-secondary {
        right: -8px;
        bottom: -16px;
        border-width: 4px;
    }

    .about-img-secondary img {
        width: 140px;
        height: 140px;
    }

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

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

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

    .visit-actions {
        flex-direction: column;
    }

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