/* ============================================
   Pupuseria San Luis — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #1a1a2e;
    background-color: #fefdf9;
    -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;
}

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

/* --- Section Shared --- */
.section {
    padding: 100px 0;
}

.section--light {
    background-color: #f9f5e8;
}

.section--cream {
    background-color: #fdfbf4;
}

.section--navy {
    background-color: #0f2240;
}

.section-header {
    margin-bottom: 64px;
}

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

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #b8860b;
    margin-bottom: 16px;
    position: relative;
    padding-left: 28px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: #d4a017;
}

.section-label--light {
    color: #e2b84b;
}

.section-label--light::before {
    background: #e2b84b;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: #0f2240;
    margin-bottom: 20px;
}

.section-title--light {
    color: #f0f4fa;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 600px;
    line-height: 1.8;
}

.section-subtitle--light {
    color: #a0b4cc;
    max-width: 560px;
    margin: 0 auto;
}

.text-gold-500 {
    color: #d4a017;
}

.text-gold-400 {
    color: #e2b84b;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn--gold {
    background: linear-gradient(135deg, #d4a017 0%, #e2b84b 100%);
    color: #0f2240;
    border-color: #d4a017;
}

.btn--gold:hover {
    background: linear-gradient(135deg, #b8860b 0%, #d4a017 100%);
    border-color: #b8860b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.35);
}

.btn--outline {
    background: transparent;
    color: #f0f4fa;
    border-color: rgba(226, 184, 75, 0.6);
}

.btn--outline:hover {
    background: rgba(226, 184, 75, 0.1);
    border-color: #e2b84b;
    transform: translateY(-2px);
}

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 34, 64, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 184, 75, 0.15);
    transition: background 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f0f4fa;
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #a0b4cc;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover {
    color: #f0f4fa;
    background: rgba(226, 184, 75, 0.1);
}

.nav-link--cta {
    background: linear-gradient(135deg, #d4a017, #e2b84b);
    color: #0f2240;
    font-weight: 600;
    margin-left: 8px;
}

.nav-link--cta:hover {
    background: linear-gradient(135deg, #b8860b, #d4a017);
    color: #0f2240;
}

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

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #e2b84b;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* --- Mobile Nav --- */
.mobile-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mobile-nav-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #a0b4cc;
    padding: 12px 24px;
    border-radius: 8px;
    transition: color 0.25s ease;
}

.mobile-nav-link:hover {
    color: #e2b84b;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0f2240;
}

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

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(10, 22, 40, 0.95) 0%,
        rgba(15, 34, 64, 0.88) 40%,
        rgba(27, 58, 107, 0.75) 100%
    );
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(10, 22, 40, 0.5) 100%);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e2b84b;
    background: rgba(226, 184, 75, 0.1);
    border: 1px solid rgba(226, 184, 75, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 32px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: #f0f4fa;
    margin-bottom: 24px;
}

.hero-accent {
    color: #e2b84b;
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: #a0b4cc;
    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: 56px;
}

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

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d0ddef;
}

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

.about-image-wrap {
    position: relative;
}

.about-image-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 34, 64, 0.15);
}

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

.about-image-accent {
    position: absolute;
    bottom: -32px;
    right: -24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(15, 34, 64, 0.2);
    border: 4px solid #f9f5e8;
}

.about-image-accent img {
    width: 240px;
    height: 180px;
    object-fit: cover;
}

.about-stat {
    position: absolute;
    top: -20px;
    left: -20px;
    background: linear-gradient(135deg, #0f2240, #1b3a6b);
    color: #e2b84b;
    padding: 20px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(15, 34, 64, 0.3);
}

.about-stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.about-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a0b4cc;
}

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

.about-text {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.02rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.12), rgba(226, 184, 75, 0.06));
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-feature-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f2240;
    margin-bottom: 4px;
}

.about-feature-desc {
    font-size: 0.9rem;
    color: #6b7a8d;
}

/* --- Menu --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.menu-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(226, 184, 75, 0.15);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(226, 184, 75, 0.35);
}

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

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.menu-card-body {
    padding: 28px;
}

.menu-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.menu-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #f0f4fa;
}

.menu-card-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(226, 184, 75, 0.15);
    color: #e2b84b;
    border: 1px solid rgba(226, 184, 75, 0.3);
}

.menu-card-tag--gold {
    background: linear-gradient(135deg, #d4a017, #e2b84b);
    color: #0f2240;
    border-color: transparent;
}

.menu-card-desc {
    font-size: 0.92rem;
    color: #8fa3bb;
    line-height: 1.7;
    margin-bottom: 20px;
}

.menu-card-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.menu-option {
    font-size: 0.78rem;
    font-weight: 500;
    color: #d0ddef;
    background: rgba(15, 34, 64, 0.5);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(226, 184, 75, 0.12);
}

.menu-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(226, 184, 75, 0.08);
    border: 1px solid rgba(226, 184, 75, 0.2);
    border-radius: 12px;
    font-size: 0.875rem;
    color: #a0b4cc;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

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

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item--large img {
    height: 100%;
    min-height: 400px;
}

.gallery-item:not(.gallery-item--large) img {
    height: 220px;
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.75) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

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

.gallery-item-overlay span {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #f0f4fa;
}

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

.visit-detail {
    display: flex;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(15, 34, 64, 0.08);
}

.visit-detail:first-of-type {
    padding-top: 0;
}

.visit-detail:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.visit-detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.1), rgba(226, 184, 75, 0.05));
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visit-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f2240;
    margin-bottom: 6px;
}

.visit-detail p {
    font-size: 0.92rem;
    color: #4a5568;
    line-height: 1.7;
}

.visit-detail a {
    color: #b8860b;
    transition: color 0.2s ease;
}

.visit-detail a:hover {
    color: #d4a017;
}

.visit-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 34, 64, 0.12);
    min-height: 450px;
}

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

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-text {
    font-size: 1.02rem;
    color: #8fa3bb;
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(226, 184, 75, 0.15);
    border-radius: 12px;
    color: #d0ddef;
    font-weight: 500;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.contact-method:hover {
    background: rgba(226, 184, 75, 0.08);
    border-color: rgba(226, 184, 75, 0.35);
    color: #e2b84b;
}

.contact-method-icon {
    flex-shrink: 0;
}

.contact-form-wrap {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(226, 184, 75, 0.15);
    border-radius: 20px;
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a0b4cc;
}

.form-input {
    background: rgba(15, 34, 64, 0.6);
    border: 1px solid rgba(226, 184, 75, 0.2);
    border-radius: 10px;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #f0f4fa;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    width: 100%;
}

.form-input::placeholder {
    color: #5a6f85;
}

.form-input:focus {
    border-color: #d4a017;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23d4a017' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-select option {
    background: #0f2240;
    color: #f0f4fa;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 40px 20px;
}

.form-success.is-visible {
    display: flex;
}

.form-success-icon {
    width: 64px;
    height: 64px;
}

.form-success-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2b84b;
}

.form-success-text {
    font-size: 0.95rem;
    color: #8fa3bb;
}

/* --- Footer --- */
.footer {
    background: #0a1628;
    padding: 64px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(226, 184, 75, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f0f4fa;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #5a6f85;
    line-height: 1.7;
    max-width: 280px;
}

.footer-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #e2b84b;
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: #5a6f85;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #e2b84b;
}

.footer-address {
    font-size: 0.9rem;
    color: #5a6f85;
    line-height: 1.8;
    font-style: normal;
}

.footer-address a {
    color: #8fa3bb;
    transition: color 0.2s ease;
}

.footer-address a:hover {
    color: #e2b84b;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 0.82rem;
    color: #3d5068;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid,
    .visit-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-accent {
        right: 16px;
        bottom: -24px;
    }

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

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

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

    .gallery-item--large img {
        min-height: 280px;
    }

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

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    .hero-trust {
        gap: 20px;
    }

    .about-image-main img {
        height: 300px;
    }

    .about-image-accent img {
        width: 180px;
        height: 140px;
    }

    .about-stat {
        top: -12px;
        left: -12px;
        padding: 14px 18px;
    }

    .about-stat-number {
        font-size: 1.5rem;
    }

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

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

    .gallery-item img {
        height: 220px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 24px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

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

    .hero-title {
        font-size: 1.9rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .menu-card:hover {
        transform: none;
    }

    .menu-card:hover .menu-card-img img {
        transform: none;
    }

    .gallery-item:hover img {
        transform: none;
    }
}
