/* ========================================
   Gordos Tacos — Styles
   Palette: Plum (#4a1a35) + Amber (#d97706)
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --plum-950: #1a0814;
    --plum-900: #2d0f24;
    --plum-800: #4a1a35;
    --plum-700: #6b2550;
    --plum-600: #8a2f66;
    --plum-500: #a83d80;
    --amber-500: #d97706;
    --amber-400: #f59e0b;
    --amber-300: #fbbf24;
    --amber-200: #fcd34d;
    --cream: #fef9f0;
    --cream-dark: #fdf0db;
    --warm-white: #fffbf5;
    --text-dark: #1a0814;
    --text-muted: #6b5a6a;
    --shadow-sm: 0 2px 8px rgba(74, 26, 53, 0.08);
    --shadow-md: 0 4px 20px rgba(74, 26, 53, 0.12);
    --shadow-lg: 0 8px 40px rgba(74, 26, 53, 0.16);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 9999px;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background: var(--warm-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka One', cursive;
    line-height: 1.2;
    color: var(--plum-900);
}

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

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

ul {
    list-style: none;
}

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

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(74, 26, 53, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: var(--shadow-lg);
}

.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: 'Fredoka One', cursive;
    font-size: 1.25rem;
    color: #fff;
}

.nav__logo-icon {
    width: 40px;
    height: 40px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber-400);
    transition: width 0.2s ease;
    border-radius: 2px;
}

.nav__links a:hover {
    color: #fff;
}

.nav__links a:hover::after {
    width: 100%;
}

.nav__cta {
    background: var(--amber-500) !important;
    color: var(--plum-950) !important;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 700 !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav__cta::after {
    display: none !important;
}

.nav__cta:hover {
    background: var(--amber-400) !important;
    transform: translateY(-1px);
}

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

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--plum-800) 0%, var(--plum-900) 100%);
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(45, 15, 36, 0.85) 0%,
        rgba(74, 26, 53, 0.7) 50%,
        rgba(45, 15, 36, 0.85) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    padding-top: 72px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(217, 119, 6, 0.2);
    border: 1px solid rgba(217, 119, 6, 0.4);
    color: var(--amber-300);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero__accent {
    color: var(--amber-400);
    display: block;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero__trust {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn--primary {
    background: var(--amber-500);
    color: var(--plum-950);
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.4);
}

.btn--primary:hover {
    background: var(--amber-400);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(217, 119, 6, 0.5);
}

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

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn--dark {
    background: var(--plum-900);
    color: #fff;
}

.btn--dark:hover {
    background: var(--plum-800);
    transform: translateY(-2px);
}

.btn--white {
    background: #fff;
    color: var(--plum-900);
}

.btn--white:hover {
    background: var(--cream);
    transform: translateY(-2px);
}

/* ========================================
   Section Shared
   ======================================== */
.section-tag {
    display: inline-block;
    background: rgba(217, 119, 6, 0.15);
    color: var(--amber-500);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 16px;
    color: var(--plum-900);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
}

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

.section-header .section-subtitle {
    margin: 0 auto;
}

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

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

.menu-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.menu-card__body {
    padding: 24px;
}

.menu-card__tag {
    display: inline-block;
    background: rgba(74, 26, 53, 0.1);
    color: var(--plum-700);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.menu-card__title {
    font-size: 1.35rem;
    margin-bottom: 8px;
    color: var(--plum-900);
}

.menu-card__desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.menu__note {
    text-align: center;
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: var(--radius-md);
    padding: 20px 32px;
    font-size: 1rem;
    color: var(--plum-800);
}

/* ========================================
   About
   ======================================== */
.about {
    padding: 100px 0;
    background: var(--warm-white);
}

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

.about__img-wrap {
    position: relative;
}

.about__img-wrap img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.about__img-float {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--amber-500);
    color: var(--plum-950);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

.about__text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

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

.about__feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(217, 119, 6, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-500);
}

.about__feature h4 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    color: var(--plum-900);
    margin-bottom: 4px;
}

.about__feature p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

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

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery__item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery__item:hover img {
    transform: scale(1.08);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-400) 100%);
}

.cta__content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--plum-950);
    margin-bottom: 16px;
}

.cta__text {
    font-size: 1.1rem;
    color: rgba(26, 8, 20, 0.7);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Contact
   ======================================== */
.contact {
    padding: 100px 0;
    background: var(--warm-white);
}

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

.contact__info {
    display: flex;
    flex-direction: column;
}

.contact__text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

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

.contact__detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(74, 26, 53, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum-700);
}

.contact__detail h4 {
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    color: var(--plum-900);
    margin-bottom: 4px;
}

.contact__detail p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact__detail a {
    color: var(--amber-500);
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact__detail a:hover {
    color: var(--amber-400);
}

.contact__map {
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-md);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--plum-950);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

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

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 16px;
}

.footer__logo-icon {
    width: 36px;
    height: 36px;
}

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

.footer__links h4,
.footer__contact h4 {
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 16px;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links a {
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: var(--amber-400);
}

.footer__contact p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 4px;
}

.footer__contact a {
    color: var(--amber-400);
    transition: color 0.2s ease;
}

.footer__contact a:hover {
    color: var(--amber-300);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
}

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

/* Fallback: always visible if JS is disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .about__grid {
        gap: 48px;
    }

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

@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(74, 26, 53, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav__links.open {
        transform: translateY(0);
    }

    .nav__toggle {
        display: flex;
    }

    .hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero__trust {
        gap: 20px;
    }

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

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

    .about__img-float {
        right: 16px;
        bottom: -16px;
    }

    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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

    .contact__map {
        min-height: 300px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta__buttons {
        flex-direction: column;
        align-items: center;
    }
}

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

    .menu, .about, .gallery, .contact {
        padding: 72px 0;
    }

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

    .hero__scroll {
        bottom: 20px;
    }
}
