/* ============================================
   The Factory Bar & Grill — Styles
   Palette: Midnight Blue (#0a1628) + Mint (#a7f3d0)
   Fonts: Playfair Display (headlines) + Inter (body)
============================================ */

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

:root {
    --midnight: #0a1628;
    --midnight-light: #132238;
    --midnight-mid: #1a2d47;
    --mint: #a7f3d0;
    --mint-dark: #6ee7b7;
    --mint-muted: rgba(167, 243, 208, 0.1);
    --cream: #f8faf9;
    --cream-dark: #eef5f1;
    --white: #ffffff;
    --text-dark: #0a1628;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(10, 22, 40, 0.12);
    --shadow-lg: 0 12px 48px rgba(10, 22, 40, 0.18);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* ── Typography ── */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--midnight);
    margin-bottom: 12px;
}

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

.text-white {
    color: var(--white);
}

.text-light {
    color: var(--text-light);
}

.text-muted {
    color: var(--text-muted);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.7;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

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

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

.btn-outline:hover {
    border-color: var(--mint);
    color: var(--mint);
    transform: translateY(-2px);
}

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

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

.btn-phone {
    background: var(--mint);
    color: var(--midnight);
    border-color: var(--mint);
    padding: 10px 20px;
    font-size: 0.8125rem;
}

.btn-phone:hover {
    background: var(--mint-dark);
    border-color: var(--mint-dark);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1rem;
}

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(167, 243, 208, 0.1);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-mark {
    width: 44px;
    height: 44px;
    background: var(--mint);
    color: var(--midnight);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
}

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

.nav-desktop a:not(.btn) {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-desktop a:not(.btn):hover {
    color: var(--mint);
}

.nav-desktop a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--mint);
    transition: var(--transition);
}

.nav-desktop a:not(.btn):hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    padding: 8px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    background: var(--midnight);
    border-top: 1px solid rgba(167, 243, 208, 0.1);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-item {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.mobile-menu-item:hover {
    color: var(--mint);
}

.mobile-phone-btn {
    margin-top: 16px;
    justify-content: center;
    border-bottom: none;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.92) 0%,
        rgba(10, 22, 40, 0.80) 50%,
        rgba(10, 22, 40, 0.88) 100%
    );
}

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

.hero-eyebrow {
    color: var(--mint);
    margin-bottom: 24px;
    font-size: 0.8125rem;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 40px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(8px); }
    60% { transform: translateX(-50%) translateY(4px); }
}

/* ── About ── */
.about {
    padding: 120px 0;
    background: var(--cream);
}

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

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

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

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

.about-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(10, 22, 40, 0.1);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--midnight);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Menu ── */
.menu {
    padding: 120px 0;
    background: var(--white);
}

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

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

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

.menu-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.menu-card-image {
    height: 220px;
    overflow: hidden;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.menu-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--midnight);
    margin-bottom: 8px;
}

.menu-card-body > p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-list li {
    font-size: 0.9375rem;
    color: var(--text-dark);
    padding-left: 20px;
    position: relative;
}

.menu-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background: var(--mint);
    border-radius: 50%;
}

.menu-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.menu-footer > p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* ── Drinks ── */
.drinks {
    position: relative;
    padding: 120px 0;
    background: var(--midnight);
    overflow: hidden;
}

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

.drinks-content {
    position: relative;
    z-index: 2;
}

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

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

.drink-item {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(167, 243, 208, 0.12);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.drink-item:hover {
    background: rgba(167, 243, 208, 0.08);
    border-color: rgba(167, 243, 208, 0.3);
    transform: translateY(-4px);
}

.drink-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mint-muted);
    border-radius: 50%;
    color: var(--mint);
}

.drink-item h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.drink-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Visit ── */
.visit {
    padding: 120px 0;
    background: var(--cream);
}

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

.contact-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
}

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

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--mint-muted);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--midnight);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

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

.hours-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

.hours-block h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--midnight);
    margin-bottom: 20px;
}

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

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

.hours-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hours-row span {
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.hours-row span:last-child {
    font-weight: 500;
    color: var(--midnight);
}

.hours-note {
    margin-top: 16px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.visit-map a {
    display: block;
    position: relative;
}

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

.map-overlay {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--midnight);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.map-overlay:hover {
    background: var(--mint);
    color: var(--midnight);
}

/* ── CTA ── */
.cta {
    padding: 100px 0;
    background: var(--midnight);
    text-align: center;
}

.cta-inner h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-inner > p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ── Footer ── */
.footer {
    background: var(--midnight-light);
    padding: 64px 0 32px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand .logo-mark {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
}

.footer-brand .logo-text {
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

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

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

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .about-grid,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image {
        order: -1;
    }
    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    .drinks-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .about-stats {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .drinks-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .footer-links {
        gap: 20px;
    }
}
