/* ============================================
   El Viejon Bar & Grill — Styles
   Palette: Midnight Blue (#0A2342) + Mint (#A8D5BA)
   Typography: Playfair Display + Lato
   ============================================ */

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

:root {
    --midnight: #0A2342;
    --midnight-light: #143A5C;
    --midnight-dark: #061829;
    --mint: #A8D5BA;
    --mint-light: #C5E8D5;
    --mint-dark: #7BB892;
    --cream: #F5F1EB;
    --cream-light: #FAF7F3;
    --warm-gray: #6B6560;
    --warm-gray-light: #9B9590;
    --gold: #C9A84C;
    --gold-light: #D4B96A;
    --white: #FFFFFF;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(10, 35, 66, 0.08);
    --shadow-md: 0 4px 20px rgba(10, 35, 66, 0.12);
    --shadow-lg: 0 8px 40px rgba(10, 35, 66, 0.16);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--midnight);
    background-color: var(--cream-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

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

/* --- Section Shared --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mint-dark);
    background: rgba(168, 213, 186, 0.2);
    border: 1px solid rgba(168, 213, 186, 0.4);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--midnight);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--warm-gray);
    max-width: 560px;
    line-height: 1.7;
}

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

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

/* --- Header / Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 243, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 35, 66, 0.06);
    transition: box-shadow var(--transition);
}

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

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

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

.nav-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--midnight);
    color: var(--mint);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--midnight);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--mint-dark);
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--midnight) !important;
    color: var(--mint) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: background var(--transition), transform var(--transition) !important;
}

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

.nav-cta:hover {
    background: var(--midnight-light) !important;
    transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--midnight);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--midnight-dark);
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/28097271/pexels-photo-28097271.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 24, 41, 0.92) 0%,
        rgba(10, 35, 66, 0.88) 50%,
        rgba(20, 58, 92, 0.85) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-accent {
    font-style: italic;
    color: var(--mint);
}

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

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

.hero-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

.hero-phone {
    color: var(--mint);
    font-weight: 600;
}

.hero-phone:hover {
    color: var(--mint-light);
}

.hero-detail-divider {
    color: rgba(255, 255, 255, 0.3);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--mint-dark);
    color: var(--midnight-dark);
    border-color: var(--mint-dark);
}

.btn-primary:hover {
    background: var(--mint);
    border-color: var(--mint);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 213, 186, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

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

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

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

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

.btn-icon {
    width: 18px;
    height: 18px;
}

/* --- Divider --- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--cream-light);
}

.divider-icon {
    width: 20px;
    height: 20px;
    color: var(--mint-dark);
    opacity: 0.5;
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.menu-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10, 35, 66, 0.06);
    transition: box-shadow var(--transition), transform var(--transition);
}

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

.menu-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--midnight);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    color: var(--mint);
}

.menu-card-icon svg {
    width: 24px;
    height: 24px;
}

.menu-card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--midnight);
    margin-bottom: 20px;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.menu-items li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(10, 35, 66, 0.06);
}

.menu-items li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--midnight);
}

.menu-item-desc {
    font-size: 0.85rem;
    color: var(--warm-gray-light);
    white-space: nowrap;
}

.menu-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--warm-gray-light);
    font-style: italic;
}

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

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

.about-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-content .section-title {
    margin-bottom: 24px;
}

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

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 36px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-feature-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--mint-dark);
}

.about-feature span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--midnight);
}

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

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

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 35, 66, 0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

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

/* --- Hours Section --- */
.hours-section {
    padding: 100px 0;
    background: var(--midnight);
}

.hours-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--midnight-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hours-content {
    padding: 64px 56px;
}

.hours-content .section-tag {
    background: rgba(168, 213, 186, 0.15);
    border-color: rgba(168, 213, 186, 0.3);
    color: var(--mint);
}

.hours-content .section-title {
    color: var(--white);
    margin-bottom: 40px;
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hours-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mint);
    margin-bottom: 20px;
}

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

.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-day {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.hours-time {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
}

.hours-address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.hours-address p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.hours-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mint);
    transition: color var(--transition);
}

.hours-phone:hover {
    color: var(--mint-light);
}

.hours-phone-icon {
    width: 20px;
    height: 20px;
}

.hours-map {
    min-height: 400px;
    background: var(--midnight);
}

.hours-map iframe {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
    background: var(--cream);
}

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

.cta-card .section-title {
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--warm-gray);
    margin-bottom: 40px;
    line-height: 1.7;
}

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

/* --- Footer --- */
.site-footer {
    background: var(--midnight-dark);
    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;
    margin-bottom: 16px;
}

.footer-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--midnight-light);
    color: var(--mint);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white);
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
    line-height: 1.6;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--mint);
    margin-bottom: 20px;
}

.footer-info address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-info p,
.footer-info a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

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

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

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

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

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

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

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

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

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

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

    .about-image-wrap {
        max-width: 500px;
        margin: 0 auto;
    }

    .hours-card {
        grid-template-columns: 1fr;
    }

    .hours-map {
        min-height: 300px;
    }

    .hours-map iframe {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .hours-content {
        padding: 48px 36px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream-light);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
        z-index: 1000;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    .hero-details {
        flex-direction: column;
        gap: 8px;
    }

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

    .about-features {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .menu-card {
        padding: 28px 24px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 16px;
    }

    .hours-content {
        padding: 36px 24px;
    }
}

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 24, 41, 0.5);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}
