/* ========================================
   Taqueria La Hacienda — Styles
   Teal + Slate Grey | Confident Corporate
   ======================================== */

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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    --teal-950: #042f2e;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(2, 6, 23, 0.07), 0 2px 4px -2px rgba(2, 6, 23, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(2, 6, 23, 0.08), 0 4px 6px -4px rgba(2, 6, 23, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(2, 6, 23, 0.08), 0 8px 10px -6px rgba(2, 6, 23, 0.04);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--slate-800);
    background: var(--slate-50);
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

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

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    [data-reveal].is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.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;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.nav__logo-icon {
    color: var(--teal-400);
}

.nav__logo-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

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

.nav__link {
    color: var(--slate-300);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.nav__link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.nav__cta {
    color: white;
    background: var(--teal-600);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    margin-left: 8px;
    transition: background 0.2s, transform 0.15s;
}

.nav__cta:hover {
    background: var(--teal-500);
    transform: translateY(-1px);
}

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

.nav__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.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 Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--slate-900);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

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

.mobile-menu__link {
    color: var(--slate-300);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: color 0.2s, background 0.2s;
}

.mobile-menu__link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.mobile-menu__cta {
    margin-top: 16px;
    color: var(--teal-400);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: var(--radius-md);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--slate-900);
}

.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(2, 6, 23, 0.88) 0%,
        rgba(15, 23, 42, 0.80) 40%,
        rgba(17, 94, 89, 0.60) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.25);
    color: var(--teal-300);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 32px;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: white;
    margin-bottom: 28px;
    max-width: 800px;
    letter-spacing: -0.02em;
}

.hero__accent {
    color: var(--teal-300);
}

.hero__subhead {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: var(--slate-300);
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
}

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

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

.hero__stat-num {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.hero__stat-label {
    font-size: 0.8rem;
    color: var(--slate-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--slate-400);
    animation: heroScroll 2s ease-in-out infinite;
}

@keyframes heroScroll {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: var(--teal-600);
    color: white;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn--primary:hover {
    background: var(--teal-500);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
}

.btn--outline {
    background: transparent;
    color: var(--teal-700);
    border: 2px solid var(--teal-600);
}

.btn--outline:hover {
    background: var(--teal-600);
    color: white;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
}

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

.section__header {
    margin-bottom: 56px;
}

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

.section__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal-700);
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.15);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section__desc {
    font-size: 1.1rem;
    color: var(--slate-500);
    max-width: 600px;
    line-height: 1.7;
}

.section__header--center .section__desc {
    margin: 0 auto;
}

/* --- Menu --- */
.menu {
    background: white;
}

.menu__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.menu__tab {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-500);
    padding: 10px 22px;
    border-radius: 50px;
    border: 1px solid var(--slate-200);
    transition: all 0.2s;
    background: white;
}

.menu__tab:hover {
    color: var(--teal-700);
    border-color: var(--teal-200);
    background: var(--teal-50);
}

.menu__tab.active {
    color: white;
    background: var(--teal-700);
    border-color: var(--teal-700);
}

.menu__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--slate-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.menu__panel {
    display: none;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.menu__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    background: white;
    transition: background 0.15s;
}

.menu__item:hover {
    background: var(--slate-50);
}

.menu__item-info {
    flex: 1;
}

.menu__item-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.menu__item-desc {
    font-size: 0.875rem;
    color: var(--slate-500);
    line-height: 1.6;
}

.menu__item-badge {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--teal-700);
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.18);
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
    align-self: center;
}

/* --- About --- */
.about {
    background: var(--slate-50);
}

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

.about__media {
    position: relative;
}

.about__image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.about__image-stack {
    position: absolute;
    bottom: -32px;
    right: -32px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--slate-50);
}

.about__image-stack img {
    width: 260px;
    height: 195px;
    object-fit: cover;
    display: block;
}

.about__content {
    max-width: 480px;
}

.about__body {
    font-size: 1.05rem;
    color: var(--slate-600);
    line-height: 1.75;
    margin-bottom: 20px;
}

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

.about__feature {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-700);
}

.about__feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: var(--radius-sm);
    color: var(--teal-700);
}

/* --- Specialties --- */
.specialties {
    background: var(--slate-900);
}

.specialties .section__tag {
    color: var(--teal-400);
    background: rgba(45, 212, 191, 0.1);
    border-color: rgba(45, 212, 191, 0.2);
}

.specialties .section__title {
    color: white;
}

.specialties .section__desc {
    color: var(--slate-400);
}

.specialties__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.specialty-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.specialty-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(45, 212, 191, 0.25);
    transform: translateY(-4px);
}

.specialty-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: var(--radius-md);
    color: var(--teal-400);
    margin-bottom: 24px;
}

.specialty-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.specialty-card__desc {
    font-size: 0.9rem;
    color: var(--slate-400);
    line-height: 1.7;
}

/* --- Visit --- */
.visit {
    background: white;
}

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

.visit__info {
    padding: 8px 0;
}

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 40px 0;
}

.visit__detail {
    display: flex;
    gap: 16px;
}

.visit__detail-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: var(--radius-sm);
    color: var(--teal-700);
}

.visit__detail-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate-400);
    margin-bottom: 4px;
}

.visit__detail-value {
    font-size: 1rem;
    color: var(--slate-700);
    line-height: 1.6;
}

.visit__phone {
    color: var(--teal-700);
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.visit__phone:hover {
    color: var(--teal-500);
}

.visit__cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.visit__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 420px;
}

.visit__map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
}

/* --- Footer --- */
.footer {
    background: var(--slate-950);
    padding: 72px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer__logo-icon {
    color: var(--teal-400);
}

.footer__tagline {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.7;
    max-width: 320px;
}

.footer__nav-title,
.footer__contact h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-500);
    margin-bottom: 20px;
}

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

.footer__links a,
.footer__links span {
    font-size: 0.9rem;
    color: var(--slate-400);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

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

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 28px 0;
}

.footer__bottom p {
    font-size: 0.8rem;
    color: var(--slate-600);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .specialties__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about__image-stack {
        right: -16px;
        bottom: -24px;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        display: none;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .hero__content {
        padding: 100px 24px 60px;
    }
    
    .hero__stats {
        gap: 24px;
    }
    
    .hero__stat-divider {
        display: none;
    }
    
    .menu__panel.active {
        grid-template-columns: 1fr;
    }
    
    .about__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about__image-stack {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 16px;
        border: none;
        box-shadow: none;
    }
    
    .about__image-stack img {
        width: 100%;
        height: 220px;
    }
    
    .specialties__grid {
        grid-template-columns: 1fr;
    }
    
    .visit__grid {
        grid-template-columns: 1fr;
    }
    
    .visit__map {
        min-height: 300px;
    }
    
    .visit__map iframe {
        min-height: 300px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .section {
        padding: 72px 0;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }
    
    .hero__actions .btn {
        justify-content: center;
        width: 100%;
    }
    
    .menu__tabs {
        gap: 6px;
    }
    
    .menu__tab {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .menu__item {
        padding: 20px 20px;
    }
    
    .btn--lg {
        width: 100%;
        justify-content: center;
    }
    
    .visit__cta-group {
        flex-direction: column;
    }
}
