/* ============================================
   Chico's Mexican Restaurant — Styles
   Color Palette: Midnight Blue + Mint
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
    --color-midnight: #0F172A;
    --color-midnight-light: #1E293B;
    --color-midnight-dark: #020617;
    --color-mint: #34D399;
    --color-mint-light: #6EE7B7;
    --color-mint-dark: #059669;
    --color-warm-white: #FFFBF5;
    --color-cream: #FEF3E2;
    --color-warm-gray: #78716C;
    --color-light-gray: #F5F5F4;
    --color-text: #1C1917;
    --color-text-light: #57534E;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Lora', serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.15);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-warm-white);
    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;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--color-mint);
    color: var(--color-midnight);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 16px;
}

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

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-midnight);
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-mint-dark);
    background: rgba(52, 211, 153, 0.12);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.text-mint {
    color: var(--color-mint-dark);
}

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

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-mint);
    color: var(--color-midnight);
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.35);
}

.btn-primary:hover {
    background: var(--color-mint-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 211, 153, 0.45);
}

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

.btn-outline:hover {
    background: var(--color-midnight);
    color: var(--color-warm-white);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-warm-white);
    border: 2px solid var(--color-warm-white);
}

.btn-outline-light:hover {
    background: var(--color-warm-white);
    color: var(--color-midnight);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 251, 245, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-midnight);
}

.logo-icon {
    font-size: 1.75rem;
}

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

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
    color: var(--color-text);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--color-mint-dark);
    background: rgba(52, 211, 153, 0.1);
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(15, 23, 42, 0.05);
}

.mobile-menu-btn svg {
    color: var(--color-midnight);
}

/* ---- Hero Section ---- */
.hero {
    padding: 120px 0 80px;
    background: var(--color-warm-white);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-midnight);
    background: rgba(52, 211, 153, 0.1);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-mint);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-midnight);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.trust-item svg {
    color: var(--color-mint-dark);
    flex-shrink: 0;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
}

.hero-img-main {
    width: 100%;
    height: 520px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.hero-img-float {
    position: absolute;
    bottom: 0;
    left: -40px;
    width: 260px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-warm-white);
}

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

.hero-badge-float {
    position: absolute;
    top: 40px;
    right: -20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-midnight);
    color: var(--color-warm-white);
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-badge-float .badge-icon {
    font-size: 1.5rem;
}

.hero-badge-float strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
}

.hero-badge-float span {
    display: block;
    font-size: 12px;
    opacity: 0.7;
}

/* ---- About Section ---- */
.about {
    padding: 100px 0;
    background: var(--color-cream);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

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

.about-image-wrapper img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.about-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--color-mint);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content {
    max-width: 520px;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

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

.feature-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-warm-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

/* ---- Specialties Section ---- */
.specialties {
    padding: 100px 0;
    background: var(--color-warm-white);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.specialty-card {
    background: var(--color-warm-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.specialty-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

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

.specialty-card:hover .specialty-img img {
    transform: scale(1.08);
}

.specialty-content {
    padding: 28px;
}

.specialty-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-mint-dark);
    background: rgba(52, 211, 153, 0.12);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.specialty-content h3 {
    font-size: 1.375rem;
    margin-bottom: 12px;
}

.specialty-content p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ---- Menu Preview Section ---- */
.menu-preview {
    padding: 100px 0;
    background: var(--color-midnight);
}

.menu-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.menu-info .section-label {
    background: rgba(52, 211, 153, 0.2);
    color: var(--color-mint);
}

.menu-info .section-title {
    color: var(--color-warm-white);
}

.menu-description {
    font-size: 1.0625rem;
    color: rgba(255, 251, 245, 0.7);
    line-height: 1.8;
    margin-bottom: 32px;
}

.menu-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-warm-white);
}

.highlight svg {
    flex-shrink: 0;
}

.menu-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.menu-card {
    display: flex;
    background: var(--color-midnight-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

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

.menu-card-img {
    width: 160px;
    flex-shrink: 0;
    overflow: hidden;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-card-body h4 {
    color: var(--color-warm-white);
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.menu-card-body p {
    font-size: 0.9375rem;
    color: rgba(255, 251, 245, 0.65);
    line-height: 1.6;
}

/* ---- Gallery Section ---- */
.gallery {
    padding: 100px 0;
    background: var(--color-warm-white);
}

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

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

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

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

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

/* ---- Testimonials Section ---- */
.testimonials {
    padding: 100px 0;
    background: var(--color-cream);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--color-warm-white);
    padding: 36px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.testimonial-stars {
    font-size: 1.25rem;
    color: #FBBF24;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: var(--color-mint);
    color: var(--color-midnight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-author strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
}

.testimonial-author span {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

/* ---- CTA Section ---- */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-mint-dark) 0%, var(--color-mint) 100%);
}

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

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

.cta-text {
    font-size: 1.125rem;
    color: rgba(15, 23, 42, 0.7);
    margin-bottom: 40px;
}

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

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

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

.contact-description {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: rgba(52, 211, 153, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-mint-dark);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.contact-item a {
    color: var(--color-mint-dark);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--color-mint);
    text-decoration: underline;
}

.contact-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

/* ---- Footer ---- */
.footer {
    background: var(--color-midnight);
    padding: 80px 0 0;
}

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

.footer-brand .logo {
    color: var(--color-warm-white);
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.9375rem;
    color: rgba(255, 251, 245, 0.6);
    line-height: 1.7;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-warm-white);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 251, 245, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-mint);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.9375rem;
    color: rgba(255, 251, 245, 0.6);
    line-height: 1.8;
    margin-bottom: 4px;
}

.footer-contact a {
    color: var(--color-mint);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--color-mint-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 251, 245, 0.1);
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 251, 245, 0.4);
    text-align: center;
}

/* ---- Scroll Animations (Progressive Enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        height: 450px;
        order: -1;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

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

    .hero-trust {
        justify-content: center;
    }

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

    .about-image-wrapper img {
        height: 400px;
    }

    .about-content {
        max-width: 100%;
    }

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

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

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

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

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

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 251, 245, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 24px;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 12px 16px;
        width: 100%;
        text-align: center;
    }

    .nav-menu .btn {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-visual {
        height: 350px;
    }

    .hero-img-float {
        left: -10px;
        width: 180px;
    }

    .hero-badge-float {
        right: 0;
        top: 20px;
    }

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

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

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

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

    .gallery-item {
        height: 200px;
    }

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

    .menu-card-img {
        width: 120px;
    }

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

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

    .hero-visual {
        height: 280px;
    }

    .hero-img-float {
        width: 140px;
        left: -5px;
    }

    .hero-badge-float {
        padding: 10px 14px;
    }

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

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

    .hero-trust {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .specialty-img {
        height: 180px;
    }

    .menu-card {
        flex-direction: column;
    }

    .menu-card-img {
        width: 100%;
        height: 140px;
    }

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

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