/* ============================================
   Taqueria El Puesto — Custom Styles
   Classic & Elegant | Navy + Gold Palette
   ============================================ */

/* CSS Custom Properties */
:root {
    --navy-900: #0a1628;
    --navy-800: #1e3a5f;
    --navy-700: #2a4a6f;
    --navy-600: #3d5a7f;
    --gold-500: #c9a84c;
    --gold-400: #d4b85e;
    --gold-300: #e0c970;
    --gold-200: #ebd990;
    --cream-50: #faf8f4;
    --cream-100: #f5f0e8;
    --cream-200: #ede5d8;
    --warm-gray-50: #f9f7f4;
    --warm-gray-100: #f2ede5;
    --warm-gray-200: #e8e0d4;
    --warm-gray-600: #6b6058;
    --warm-gray-700: #4a423a;
    --warm-gray-800: #2d2822;
    --warm-gray-900: #1a1612;
    
    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 4px 20px rgba(10, 22, 40, 0.1);
    --shadow-lg: 0 10px 40px rgba(10, 22, 40, 0.12);
    --shadow-xl: 0 20px 60px rgba(10, 22, 40, 0.15);
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--warm-gray-800);
    background-color: var(--cream-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy-800);
}

.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 16px;
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 1.5px;
    background: var(--gold-500);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--navy-800);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--warm-gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.logo-icon {
    color: var(--gold-500);
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
    position: relative;
}

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

.nav-link:hover {
    color: #fff;
}

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

.nav-cta {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy-800);
    background: var(--gold-500);
    padding: 10px 22px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.nav-cta:hover {
    background: var(--gold-400);
    transform: translateY(-1px);
}

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

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all var(--transition-base);
}

.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 Section
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    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(
        135deg,
        rgba(10, 22, 40, 0.88) 0%,
        rgba(30, 58, 95, 0.82) 50%,
        rgba(10, 22, 40, 0.85) 100%
    );
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.badge-line {
    width: 40px;
    height: 1px;
    background: var(--gold-500);
}

.hero-badge span {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-400);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 24px;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 40px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 4px;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gold-500);
    color: var(--navy-800);
}

.btn-primary:hover {
    background: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    border-color: var(--gold-500);
    color: var(--gold-400);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 0.9375rem;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-indicator {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold-500);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ============================================
   Features Strip
   ============================================ */
.features-strip {
    background: var(--navy-800);
    padding: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 40px 32px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: background var(--transition-base);
}

.feature-item:last-child {
    border-right: none;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.feature-icon {
    flex-shrink: 0;
    color: var(--gold-500);
    margin-top: 2px;
}

.feature-text h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.feature-text p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ============================================
   About Section
   ============================================ */
.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: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

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

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

.about-accent {
    position: absolute;
    top: -20px;
    right: 40px;
    opacity: 0.6;
}

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

.about-content .section-label {
    padding-left: 0;
}

.about-content .section-label::before {
    display: none;
}

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

.about-highlights {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--warm-gray-200);
}

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

.highlight-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy-800);
    line-height: 1;
}

.highlight-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--warm-gray-600);
    letter-spacing: 0.04em;
}

/* ============================================
   Menu Section
   ============================================ */
.menu {
    padding: 120px 0;
    background: var(--warm-gray-100);
}

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

.menu-tab {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 100px;
    color: var(--warm-gray-600);
    background: transparent;
    border: 1.5px solid var(--warm-gray-200);
    transition: all var(--transition-fast);
}

.menu-tab:hover {
    border-color: var(--navy-700);
    color: var(--navy-800);
}

.menu-tab.active {
    background: var(--navy-800);
    border-color: var(--navy-800);
    color: #fff;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.menu-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.menu-card-img {
    height: 200px;
    overflow: hidden;
}

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

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

.menu-card-content {
    padding: 24px;
}

.menu-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.menu-card-header h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy-800);
}

.menu-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-500);
    background: rgba(201, 168, 76, 0.12);
    padding: 4px 10px;
    border-radius: 100px;
}

.menu-card-desc {
    font-size: 0.9rem;
    color: var(--warm-gray-600);
    line-height: 1.7;
}

.menu-note {
    padding: 24px;
    background: var(--navy-800);
    border-radius: 8px;
    margin-top: 40px;
}

.menu-note p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 16px;
    margin-top: 60px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

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

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

/* ============================================
   Visit Section
   ============================================ */
.visit {
    padding: 120px 0;
    background: var(--navy-800);
}

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

.visit .section-label {
    color: var(--gold-500);
    padding-left: 0;
}

.visit .section-label::before {
    display: none;
}

.visit .section-title {
    color: #fff;
    margin-bottom: 20px;
}

.visit-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.9;
    margin-bottom: 40px;
}

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

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

.detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(201, 168, 76, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-500);
}

.detail-text h4 {
    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: 4px;
}

.detail-text p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.detail-text a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.detail-text a:hover {
    color: var(--gold-400);
}

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

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

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--navy-900);
    padding: 80px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

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

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy-800);
    color: var(--gold-500);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--transition-base);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gold-500);
    color: var(--navy-800);
    transform: translateY(-2px);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .feature-item:nth-child(2),
    .feature-item:nth-child(4) {
        border-right: none;
    }
    
    .about-grid {
        gap: 60px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 240px);
    }
    
    .gallery-item--large {
        grid-row: span 1;
    }
    
    .gallery-item--wide {
        grid-column: span 1;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--navy-900);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: right var(--transition-base);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: clamp(2.25rem, 8vw, 3.5rem);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .feature-item:last-child {
        border-bottom: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-img-secondary {
        right: 0;
    }
    
    .about-highlights {
        gap: 24px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item {
        height: 240px;
    }
    
    .gallery-item--large {
        height: 300px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .menu {
        padding: 80px 0;
    }
    
    .gallery {
        padding: 80px 0;
    }
    
    .visit {
        padding: 80px 0;
    }
    
    .about-img-secondary img {
        width: 200px;
        height: 160px;
    }
    
    .about-highlights {
        flex-direction: column;
        gap: 20px;
    }
    
    .menu-categories {
        gap: 6px;
    }
    
    .menu-tab {
        padding: 10px 20px;
        font-size: 0.75rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-line {
        animation: none;
    }
    
    .menu-card,
    .gallery-item img,
    .btn,
    .back-to-top,
    .nav-cta {
        transition: none;
    }
}
