/* ============================================
   El Jardin Mexican Restaurant — Stylesheet
   Classic & Elegant | Teal + Slate Grey
   ============================================ */

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

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

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #334155;
    background-color: #fafaf9;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: #0d9488;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0f766e;
}

h1, h2, h3, h4 {
    font-family: 'Lora', serif;
    color: #0f172a;
    line-height: 1.25;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #0d9488;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    font-size: 0.875rem;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #0d9488;
    color: #fff;
    border-color: #0d9488;
}

.btn-primary:hover {
    background-color: #0f766e;
    border-color: #0f766e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #0d9488;
    border-color: #0d9488;
}

.btn-outline:hover {
    background-color: #0d9488;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.08);
    border-color: #5eead4;
    color: #fff;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

/* --- Section Shared --- */
.section-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0d9488;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: #64748b;
    max-width: 600px;
    line-height: 1.75;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

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

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: #fff;
}

.logo-icon {
    color: #5eead4;
}

.logo-text {
    font-family: 'Lora', serif;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-cta {
    background-color: #0d9488 !important;
    color: #fff !important;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background-color: #0f766e !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #0f172a;
    padding-top: 5rem;
    padding-bottom: 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(13, 148, 136, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(14, 116, 144, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 3rem 0 4rem;
}

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

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #5eead4;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-title .text-teal {
    color: #5eead4;
    font-style: italic;
}

.hero-description {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-details .detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
}

.hero-details .detail svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Hero Image */
.hero-image {
    position: relative;
}

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

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

.hero-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.3) 0%, transparent 40%);
    border-radius: 8px;
}

.hero-badge {
    position: absolute;
    bottom: -1.25rem;
    left: -1.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background-color: #0d9488;
    color: #fff;
    padding: 0.875rem 1.25rem;
    border-radius: 6px;
    font-family: 'Lora', serif;
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.4);
    z-index: 2;
}

.hero-badge svg {
    flex-shrink: 0;
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* --- About --- */
.about {
    padding: 7rem 0;
    background-color: #0f172a;
    color: #fff;
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.about-img-secondary {
    position: absolute;
    bottom: -2rem;
    right: -1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    border: 4px solid #0f172a;
    max-width: 55%;
}

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

.about-accent {
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
    width: 120px;
    height: 120px;
    background-color: #0d9488;
    border-radius: 8px;
    z-index: -1;
    opacity: 0.3;
}

.about-content .section-eyebrow {
    color: #5eead4;
}

.about-content .section-title {
    color: #fff;
}

.about-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Lora', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #5eead4;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.menu-categories {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.menu-cat {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.625rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 100px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-cat:hover {
    border-color: #0d9488;
    color: #0d9488;
}

.menu-cat.active {
    background-color: #0d9488;
    border-color: #0d9488;
    color: #fff;
}

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

.menu-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(13, 148, 136, 0.2);
}

.menu-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

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

.menu-item-content {
    flex: 1;
}

.menu-item-name {
    font-family: 'Lora', serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.375rem;
}

.menu-item-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
}

.menu-note {
    text-align: center;
    margin-top: 3rem;
    padding: 1.25rem 2rem;
    background-color: rgba(13, 148, 136, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.menu-note p {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.menu-note svg {
    flex-shrink: 0;
    color: #0d9488;
}

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

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

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.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 2;
}

.gallery-item:nth-child(2) {
    grid-column: span 5;
}

.gallery-item:nth-child(3) {
    grid-column: span 5;
}

.gallery-item:nth-child(4) {
    grid-column: span 6;
}

.gallery-item:nth-child(5) {
    grid-column: span 6;
}

/* --- Visit --- */
.visit {
    padding: 7rem 0;
    background-color: #0f172a;
    color: #fff;
}

.visit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.visit .section-eyebrow {
    color: #5eead4;
}

.visit .section-title {
    color: #fff;
}

.visit-description {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.visit-detail {
    display: flex;
    gap: 1.25rem;
}

.visit-detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 148, 136, 0.15);
    border-radius: 8px;
    color: #5eead4;
}

.visit-detail h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5eead4;
    margin-bottom: 0.375rem;
}

.visit-detail p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.visit-detail a {
    color: rgba(255, 255, 255, 0.75);
}

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

.visit-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.visit-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.map-placeholder {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 3rem;
    text-align: center;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.map-placeholder svg {
    color: #5eead4;
    opacity: 0.8;
}

.map-placeholder p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* --- Footer --- */
.site-footer {
    background-color: #080e1a;
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0 0;
}

.footer-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.75;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5eead4;
    margin-bottom: 1rem;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

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

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

.footer-contact a {
    color: rgba(255, 255, 255, 0.55);
}

.footer-contact a:hover {
    color: #5eead4;
}

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a:hover {
    color: #5eead4;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-layout {
        gap: 2.5rem;
    }
    
    .about-layout,
    .visit-layout {
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 100%;
        order: 2;
    }
    
    .hero-image {
        max-width: 480px;
        margin: 0 auto;
        order: 1;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-details {
        align-items: center;
    }
    
    .hero-badge {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-layout {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item--large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5) {
        grid-column: span 1;
    }
    
    .visit-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-layout {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background-color: #0f172a;
        padding: 5rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }
    
    .main-nav.open {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    
    .main-nav a {
        display: block;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    .nav-cta {
        margin-left: 0 !important;
        text-align: center;
        margin-top: 1rem;
    }
    
    .hero {
        padding-top: 4rem;
        min-height: auto;
        padding-bottom: 5rem;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
    
    .hero-image-frame {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about,
    .menu,
    .gallery,
    .visit {
        padding: 4rem 0;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }
    
    .menu-categories {
        gap: 0.375rem;
    }
    
    .menu-cat {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item--large {
        grid-column: span 1;
    }
    
    .gallery-item:nth-child(n) {
        grid-column: span 1;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .visit-cta {
        flex-direction: column;
    }
    
    .visit-cta .btn {
        width: 100%;
    }
    
    .footer-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.125rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-badge {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 1rem;
        display: inline-flex;
    }
    
    .about-img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        max-width: 100%;
        margin-top: 1rem;
        border: none;
    }
    
    .about-images {
        display: flex;
        flex-direction: column;
    }
    
    .about-img-main {
        border-radius: 8px;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
