/* ============================================
   THE BAR — Blue Springs Café & Bar
   Minimalist · Emerald & Cream
   ============================================ */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: #1A2E2A;
    background-color: #F7F3EB;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

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

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

/* ── Typography ── */
.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #064E3B;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    color: #1A2E2A;
    margin-bottom: 1.5rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    padding: 0.875rem 1.75rem;
    border-radius: 2px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #064E3B;
    color: #F7F3EB;
    border: 1px solid #064E3B;
}

.btn-primary:hover {
    background: #043829;
    border-color: #043829;
}

.btn-ghost {
    background: transparent;
    color: #F7F3EB;
    border: 1px solid rgba(247, 243, 235, 0.4);
}

.btn-ghost:hover {
    border-color: #F7F3EB;
    background: rgba(247, 243, 235, 0.08);
}

.btn-full {
    width: 100%;
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(247, 243, 235, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.nav-logo-mark {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.375rem;
    color: #064E3B;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #064E3B;
    border-radius: 2px;
}

.nav-logo-text {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.125rem;
    color: #1A2E2A;
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1A2E2A;
    transition: color 0.2s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #064E3B;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #064E3B;
}

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

.nav-cta {
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase;
    color: #064E3B !important;
    border: 1px solid #064E3B;
    padding: 0.5rem 1rem;
    border-radius: 2px;
    transition: all 0.3s ease !important;
}

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

.nav-cta:hover {
    background: #064E3B;
    color: #F7F3EB !important;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    padding: 0;
}

.nav-toggle-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background: #1A2E2A;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(6, 30, 22, 0.82) 0%,
        rgba(6, 30, 22, 0.65) 50%,
        rgba(6, 30, 22, 0.45) 100%
    );
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    padding-top: 64px;
    width: 100%;
}

.hero-card {
    max-width: 580px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(247, 243, 235, 0.6);
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.hero-headline {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.08;
    color: #F7F3EB;
    margin-bottom: 1.5rem;
}

.hero-headline em {
    font-style: italic;
    color: #A7C4B5;
}

.hero-sub {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(247, 243, 235, 0.78);
    margin-bottom: 2.25rem;
    max-width: 480px;
}

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

/* Hero stats */
.hero-stats {
    position: absolute;
    bottom: 3rem;
    right: 1.5rem;
    z-index: 1;
    display: flex;
    gap: 0.75rem;
}

.stat-card {
    background: rgba(247, 243, 235, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(247, 243, 235, 0.15);
    border-radius: 3px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 120px;
}

.stat-number {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.75rem;
    color: #F7F3EB;
    line-height: 1;
}

.stat-label {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(247, 243, 235, 0.55);
    font-weight: 400;
}

/* ── About ── */
.about {
    padding: 8rem 0;
    background: #F7F3EB;
}

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

.about-image {
    border-radius: 2px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

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

.about-image:hover img {
    transform: scale(1.02);
}

.about-text p {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.8;
    color: #3D5A52;
    margin-bottom: 1.25rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Thin divider line */
.about-text::before {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    background: #064E3B;
    margin-bottom: 2rem;
}

/* ── Menu ── */
.menu {
    padding: 8rem 0;
    background: #064E3B;
    position: relative;
}

.menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(247,243,235,0.2), transparent);
}

.menu-header {
    text-align: center;
    margin-bottom: 3rem;
}

.menu-header .section-eyebrow {
    color: rgba(247, 243, 235, 0.5);
}

.menu-header .section-title {
    color: #F7F3EB;
}

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

.menu-tab {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(247, 243, 235, 0.5);
    padding: 0.625rem 1.5rem;
    border: 1px solid rgba(247, 243, 235, 0.15);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-tab:hover {
    color: rgba(247, 243, 235, 0.8);
    border-color: rgba(247, 243, 235, 0.3);
}

.menu-tab.active {
    color: #F7F3EB;
    background: rgba(247, 243, 235, 0.1);
    border-color: rgba(247, 243, 235, 0.3);
}

.menu-panel {
    max-width: 720px;
    margin: 0 auto;
}

.menu-list {
    display: none;
}

.menu-list.active {
    display: block;
    animation: menuFade 0.3s ease;
}

@keyframes menuFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.125rem 0;
    border-bottom: 1px solid rgba(247, 243, 235, 0.08);
}

.menu-item:first-child {
    border-top: 1px solid rgba(247, 243, 235, 0.08);
}

.menu-item-name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.1875rem;
    color: #F7F3EB;
    font-weight: 400;
}

.menu-item-desc {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 0.9375rem;
    color: rgba(247, 243, 235, 0.5);
    font-weight: 300;
    margin-top: 0.25rem;
}

.menu-note {
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 243, 235, 0.3);
    margin-top: 3rem;
}

/* ── Gallery ── */
.gallery {
    overflow: hidden;
    background: #F7F3EB;
    padding: 0;
}

.gallery-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

.gallery-item {
    aspect-ratio: 3/2;
    overflow: hidden;
}

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

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

/* ── Visit ── */
.visit {
    padding: 8rem 0;
    background: #F7F3EB;
}

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

.visit-info .section-title {
    margin-bottom: 2.5rem;
}

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

.visit-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.visit-icon {
    width: 20px;
    height: 20px;
    color: #064E3B;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.visit-detail-label {
    display: block;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #064E3B;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.visit-detail-value {
    display: block;
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.0625rem;
    color: #1A2E2A;
    line-height: 1.6;
    font-weight: 300;
}

.visit-detail-value a {
    color: #1A2E2A;
    border-bottom: 1px solid rgba(26, 46, 42, 0.2);
    transition: border-color 0.2s ease;
}

.visit-detail-value a:hover {
    border-color: #064E3B;
    color: #064E3B;
}

.visit-map {
    border-radius: 2px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid rgba(6, 78, 59, 0.1);
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Contact ── */
.contact {
    padding: 8rem 0;
    background: #0F3D2E;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(247,243,235,0.15), transparent);
}

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

.contact-text .section-title {
    color: #F7F3EB;
}

.contact-text p {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.0625rem;
    color: rgba(247, 243, 235, 0.65);
    line-height: 1.7;
    font-weight: 300;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(247, 243, 235, 0.5);
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    color: #F7F3EB;
    background: rgba(247, 243, 235, 0.06);
    border: 1px solid rgba(247, 243, 235, 0.12);
    border-radius: 2px;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(247, 243, 235, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(247, 243, 235, 0.4);
    background: rgba(247, 243, 235, 0.09);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #1A2E2A;
    color: #F7F3EB;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #A7C4B5;
    padding: 1rem;
    background: rgba(167, 196, 181, 0.08);
    border: 1px solid rgba(167, 196, 181, 0.2);
    border-radius: 2px;
}

.form-success svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Footer ── */
.footer {
    background: #0A2920;
    padding: 4rem 0 2rem;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-brand .nav-logo-mark {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
}

.footer-brand-name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.25rem;
    color: #F7F3EB;
}

.footer-tagline {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 0.9375rem;
    color: rgba(247, 243, 235, 0.4);
    font-weight: 300;
    line-height: 1.6;
    max-width: 280px;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-label {
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(247, 243, 235, 0.35);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
    font-size: 0.9375rem;
    color: rgba(247, 243, 235, 0.6);
    font-weight: 300;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #F7F3EB;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(247, 243, 235, 0.25);
    font-weight: 300;
}

/* ── 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.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(247, 243, 235, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.25rem;
        border-bottom: 1px solid rgba(6, 78, 59, 0.08);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero-stats {
        position: relative;
        bottom: auto;
        right: auto;
        padding: 0 1.5rem 2rem;
        max-width: 1200px;
        margin: 0 auto;
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1;
        min-width: 100px;
    }

    .about-grid,
    .visit-grid,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image {
        aspect-ratio: 16/9;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

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

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

    .stat-card {
        min-width: auto;
    }

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

    .menu-tab {
        width: 100%;
        text-align: center;
    }

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

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