/* ============================================
   CATRINAS TACOS Y MAS — STYLESHEET
   Classic & Elegant · Plum + Amber Palette
   ============================================ */

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

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

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #2D1F2D;
    background-color: #FDF8F4;
    -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;
}

/* ---------- UTILITY ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #5B2C6F;
    color: #FFF8F0;
    padding: 0.5rem 1rem;
    border-radius: 0 0 4px 4px;
    z-index: 9999;
    font-weight: 500;
}

.skip-link:focus {
    top: 0;
}

/* ---------- SECTION HEADERS ---------- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C07D3B;
    margin-bottom: 0.75rem;
}

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

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: #2D1F2D;
    margin-bottom: 1rem;
}

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

.section-subtitle {
    font-size: 1.05rem;
    color: #5C4A5C;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #5B2C6F;
    color: #FFF8F0;
    border-color: #5B2C6F;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #4A235A;
    border-color: #4A235A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 44, 111, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: #FFF8F0;
    border-color: rgba(255, 248, 240, 0.6);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: rgba(255, 248, 240, 0.1);
    border-color: #FFF8F0;
    transform: translateY(-2px);
}

.btn-light {
    background-color: #C07D3B;
    color: #2D1F2D;
    border-color: #C07D3B;
}

.btn-light:hover,
.btn-light:focus {
    background-color: #A86930;
    border-color: #A86930;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 125, 59, 0.4);
}

.btn-outline-light {
    background-color: transparent;
    color: #FFF8F0;
    border-color: rgba(255, 248, 240, 0.7);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: rgba(255, 248, 240, 0.12);
    border-color: #FFF8F0;
    transform: translateY(-2px);
}

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

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(45, 31, 45, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(192, 125, 59, 0.2);
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(45, 31, 45, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

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

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #FFF8F0;
}

.nav-logo-accent {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    font-weight: 400;
    font-style: italic;
    color: #C07D3B;
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 248, 240, 0.8);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #C07D3B;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: #C07D3B;
}

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

.nav-cta {
    padding: 0.5rem 1.25rem;
    background-color: #C07D3B;
    color: #2D1F2D !important;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.nav-cta:hover,
.nav-cta:focus {
    background-color: #D4944A;
    transform: translateY(-1px);
}

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

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

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #FFF8F0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2D1F2D 0%, #3D2540 50%, #4A235A 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(192, 125, 59, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(192, 125, 59, 0.15);
    border: 1px solid rgba(192, 125, 59, 0.4);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #E8C97A;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: #FFF8F0;
    margin-bottom: 1.5rem;
}

.hero-headline br {
    display: none;
}

.hero-subheadline {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 248, 240, 0.75);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.hero-image-frame {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(192, 125, 59, 0.4);
    border-radius: 8px;
    z-index: -1;
}

/* ---------- ABOUT ---------- */
.about {
    padding: 7rem 0;
    background-color: #FDF8F4;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrap {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(45, 31, 45, 0.12);
}

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

.about-content .section-label {
    margin-bottom: 0.75rem;
}

.about-text {
    font-size: 1.025rem;
    color: #5C4A5C;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2D1F2D;
}

.feature-icon {
    color: #C07D3B;
    flex-shrink: 0;
}

/* ---------- MENU ---------- */
.menu {
    padding: 7rem 0;
    background-color: #F5EDE6;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.menu-card {
    background-color: #FFF8F0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(45, 31, 45, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(45, 31, 45, 0.15);
}

.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: 1.75rem;
}

.menu-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2D1F2D;
    margin-bottom: 0.75rem;
}

.menu-card-desc {
    font-size: 0.95rem;
    color: #6B5568;
    line-height: 1.7;
}

/* ---------- GALLERY ---------- */
.gallery {
    padding: 7rem 0;
    background-color: #FDF8F4;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

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

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

/* ---------- CTA SECTION ---------- */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #5B2C6F 0%, #3D2540 100%);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(192, 125, 59, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.cta-content {
    flex: 1;
}

.cta-text {
    font-size: 1.05rem;
    color: rgba(255, 248, 240, 0.75);
    line-height: 1.8;
    max-width: 500px;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ---------- CONTACT ---------- */
.contact {
    padding: 7rem 0;
    background-color: #F5EDE6;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info .section-label {
    margin-bottom: 0.75rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    color: #C07D3B;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2D1F2D;
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 1rem;
    color: #5C4A5C;
    line-height: 1.6;
}

.contact-item a {
    color: #5B2C6F;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover,
.contact-item a:focus {
    color: #C07D3B;
}

.contact-hours {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(91, 44, 111, 0.15);
}

.contact-hours strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2D1F2D;
    margin-bottom: 0.5rem;
}

.contact-hours p {
    font-size: 1rem;
    color: #5C4A5C;
}

.contact-map-link {
    margin-top: 1.5rem;
}

.contact-map-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #5B2C6F;
    transition: color 0.3s ease;
}

.contact-map-link a:hover,
.contact-map-link a:focus {
    color: #C07D3B;
}

/* Contact Form */
.contact-form-wrap {
    background-color: #FFF8F0;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(45, 31, 45, 0.08);
}

.contact-form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D1F2D;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2D1F2D;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(91, 44, 111, 0.2);
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: #2D1F2D;
    background-color: #FDF8F4;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C07D3B;
    box-shadow: 0 0 0 3px rgba(192, 125, 59, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #A8909E;
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(91, 44, 111, 0.08);
    border-radius: 4px;
    color: #5B2C6F;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ---------- FOOTER ---------- */
.footer {
    background-color: #2D1F2D;
    color: rgba(255, 248, 240, 0.7);
    padding: 4rem 0 0;
}

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

.footer-logo {
    display: block;
    margin-bottom: 1rem;
}

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

.footer-logo-accent {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-style: italic;
    color: #C07D3B;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links strong,
.footer-contact strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C07D3B;
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 248, 240, 0.65);
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #E8C97A;
}

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.25rem;
}

.footer-contact a {
    color: rgba(255, 248, 240, 0.65);
    transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-contact a:focus {
    color: #E8C97A;
}

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

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 248, 240, 0.4);
}

/* ---------- 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);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 3rem;
    }

    .about-grid {
        gap: 3rem;
    }

    .menu-grid {
        gap: 1.5rem;
    }

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

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-text {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: rgba(45, 31, 45, 0.98);
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem 2rem;
        gap: 0;
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid rgba(192, 125, 59, 0.2);
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .nav-link {
        padding: 0.875rem 0;
        border-bottom: 1px solid rgba(255, 248, 240, 0.08);
    }

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

    .nav-cta {
        margin-top: 0.5rem;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    /* Hero mobile: stack */
    .hero {
        padding: 7rem 0 3rem;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-headline br {
        display: block;
    }

    .hero-subheadline {
        margin-bottom: 2rem;
    }

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

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

    .hero-image-wrap {
        order: -1;
    }

    .hero-image-accent {
        display: none;
    }

    /* About mobile: stack */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-wrap {
        order: -1;
    }

    .about-features {
        flex-direction: column;
        gap: 1rem;
    }

    /* Menu mobile: single column */
    .menu-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery mobile: 2x2 */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact mobile: stack */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

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

    .hero-headline {
        font-size: 1.85rem;
    }

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

    .contact-form-wrap {
        padding: 1.5rem;
    }
}
