/* ========================================
   Tacomayo — Café & Bar
   Bold Editorial Style
   Deep Navy + Warm Gold
   ======================================== */

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

:root {
    --navy-950: #0a1128;
    --navy-900: #0f1c3f;
    --navy-800: #162a5c;
    --navy-700: #1e3a7b;
    --gold-500: #c9a84c;
    --gold-400: #d4b85e;
    --gold-300: #e0c970;
    --gold-200: #ebd990;
    --cream-50: #faf8f4;
    --cream-100: #f5f0e8;
    --cream-200: #ede6d8;
    --warm-gray: #6b6560;
    --warm-gray-light: #9e9690;
    --white: #ffffff;
    --black: #0a0a0a;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--navy-900);
    background-color: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ---------- Skip Link ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--navy-900);
    color: var(--gold-400);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-size: 0.875rem;
    font-weight: 500;
}

.skip-link:focus {
    top: var(--space-sm);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: var(--space-sm);
}

.section-label-light {
    color: var(--gold-400);
}

.section-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--navy-900);
    margin-bottom: var(--space-md);
}

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

.accent {
    color: var(--gold-500);
    font-style: italic;
}

.section-heading-light .accent {
    color: var(--gold-400);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-gold {
    background: var(--gold-500);
    color: var(--navy-950);
    border-color: var(--gold-500);
}

.btn-gold:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
}

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

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

.btn-outline-dark {
    background: transparent;
    color: var(--navy-900);
    border-color: var(--navy-900);
}

.btn-outline-dark:hover {
    background: var(--navy-900);
    color: var(--white);
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 17, 40, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    transition: background var(--transition);
}

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

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

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold-500);
    line-height: 1;
}

.logo-word {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.03em;
    transition: color var(--transition);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold-500);
    transition: width var(--transition);
}

.main-nav a:hover {
    color: var(--white);
}

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

.main-nav .btn-small {
    color: var(--navy-950);
}

.main-nav .btn-small::after {
    display: none;
}

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

.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 22px;
    height: 14px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--white);
    transition: all var(--transition);
}

.hamburger::before {
    top: 0;
}

.hamburger::after {
    bottom: 0;
}

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

.nav-toggle[aria-expanded="true"] .hamburger::after {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger {
    width: 22px;
    height: 14px;
}

/* ---------- 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-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 17, 40, 0.72) 0%,
        rgba(15, 28, 63, 0.82) 50%,
        rgba(10, 17, 40, 0.88) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    padding: var(--space-xl) var(--space-md);
}

.hero-tagline {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: var(--space-lg);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
}

.hero-headline .accent {
    color: var(--gold-400);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto var(--space-lg);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--gold-400), 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); }
}

/* ---------- Sections ---------- */
.section {
    padding: var(--space-3xl) 0;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-text p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--warm-gray);
    margin-bottom: var(--space-md);
}

.about-text p:first-of-type {
    font-size: 1.125rem;
    color: var(--navy-800);
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
}

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

/* ---------- Features ---------- */
.features-dark {
    background: var(--navy-900);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.feature-card {
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(201, 168, 76, 0.35);
    transform: translateY(-4px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(201, 168, 76, 0.12);
    margin-bottom: var(--space-md);
    color: var(--gold-400);
}

.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.feature-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Menu ---------- */
.menu-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-xl);
}

.menu-intro {
    font-size: 1.0625rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.menu-category h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--gold-500);
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.menu-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--cream-200);
}

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

.menu-item-desc {
    font-size: 0.875rem;
    color: var(--warm-gray-light);
    font-style: italic;
}

.menu-note {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 0.875rem;
    color: var(--warm-gray-light);
    font-style: italic;
}

/* ---------- Gallery ---------- */
.gallery-dark {
    background: var(--navy-950);
    padding: var(--space-3xl) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

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

.gallery-item:nth-child(1) {
    grid-column: 1 / 6;
    grid-row: 1 / 3;
}

.gallery-item:nth-child(2) {
    grid-column: 6 / 9;
    grid-row: 1;
}

.gallery-item:nth-child(3) {
    grid-column: 9 / 13;
    grid-row: 1;
}

.gallery-item:nth-child(4) {
    grid-column: 6 / 13;
    grid-row: 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---------- Hours ---------- */
.hours-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.hours-table {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15, 28, 63, 0.08);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    border-bottom: 1px solid var(--cream-200);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-day {
    font-weight: 500;
    color: var(--navy-900);
    font-size: 0.9375rem;
}

.hours-time {
    color: var(--warm-gray);
    font-size: 0.9375rem;
}

.hours-row:nth-child(5),
.hours-row:nth-child(6) {
    background: rgba(201, 168, 76, 0.06);
}

.hours-row:nth-child(5) .hours-day,
.hours-row:nth-child(6) .hours-day {
    color: var(--gold-500);
}

/* ---------- Visit ---------- */
.visit-dark {
    background: var(--navy-900);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.visit-details {
    font-style: normal;
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.visit-details p {
    font-size: 1rem;
    line-height: 1.7;
}

.visit-details strong {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 0.25rem;
}

.visit-details a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition);
}

.visit-details a:hover {
    color: var(--gold-400);
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

/* ---------- CTA ---------- */
.cta {
    background: linear-gradient(135deg, var(--cream-100) 0%, var(--cream-50) 100%);
    text-align: center;
    padding: var(--space-3xl) 0;
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
}

.cta-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--navy-900);
    margin-bottom: var(--space-md);
}

.cta-heading .accent {
    color: var(--gold-500);
}

.cta-text {
    font-size: 1.125rem;
    color: var(--warm-gray);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-950);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-xl);
    align-items: start;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

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

.footer-brand .logo-word {
    font-size: 1.125rem;
}

.footer-brand p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    text-align: right;
}

.footer-contact a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

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

.footer-bottom {
    padding-top: var(--space-md);
    text-align: center;
}

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

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .gallery-item:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1;
    }

    .gallery-item:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 1;
    }

    .gallery-item:nth-child(3) {
        grid-column: 1 / 2;
        grid-row: 2;
    }

    .gallery-item:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 2;
    }

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

    .footer-contact {
        text-align: left;
    }
}

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

    .main-nav {
        position: fixed;
        inset: 0;
        background: rgba(10, 17, 40, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .main-nav a {
        font-size: 1.25rem;
        color: rgba(255, 255, 255, 0.85);
    }

    .main-nav .btn-small {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }

    .about-grid,
    .hours-content,
    .visit-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        aspect-ratio: 16/9;
        order: -1;
    }

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

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

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

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4) {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .hero-headline {
        font-size: clamp(2rem, 10vw, 3rem);
    }

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

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .footer-contact {
        text-align: left;
    }

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

    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

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

    .section {
        padding: var(--space-2xl) 0;
    }

    .hero-content {
        padding: var(--space-lg) var(--space-sm);
    }
}
