/* ========================================
   Express Caffe — Custom Styles
   Bold editorial · Burgundy & Blush
   ======================================== */

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

:root {
    --burgundy: #701A22;
    --burgundy-deep: #4A1016;
    --burgundy-light: #8B2530;
    --blush: #F5D5C8;
    --blush-light: #FDEEE8;
    --blush-pale: #FFF5F0;
    --cream: #FFFAF7;
    --charcoal: #1A1A1A;
    --charcoal-light: #2D2D2D;
    --warm-gray: #6B6560;
    --warm-gray-light: #9B9590;
    --white: #FFFFFF;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    --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(--charcoal);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 250, 247, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(112, 26, 34, 0.08);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 250, 247, 0.97);
    box-shadow: 0 4px 30px rgba(112, 26, 34, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--charcoal);
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--burgundy);
    color: var(--white);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    letter-spacing: 0.05em;
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.logo-text .accent {
    color: var(--burgundy);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--charcoal);
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--burgundy);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--burgundy);
}

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

.nav-close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--charcoal);
    padding: 0.5rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--charcoal);
    padding: 0.5rem;
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--burgundy-deep) 0%,
        var(--burgundy) 35%,
        var(--burgundy-light) 65%,
        #A83D4A 100%
    );
    z-index: 2;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(74, 16, 22, 0.3) 0%,
        rgba(74, 16, 22, 0.1) 40%,
        rgba(74, 16, 22, 0.4) 100%
    );
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 820px;
    padding: var(--space-xl) var(--space-md);
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto var(--space-lg);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--white);
    color: var(--burgundy);
}

.btn-primary:hover {
    background: var(--blush);
    color: var(--burgundy-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

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

.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.7); }
}

/* ---------- Section Labels & Titles ---------- */
.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* ---------- Intro / About ---------- */
.intro {
    padding: var(--space-2xl) 0;
    background: var(--cream);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.intro-image-wrap {
    position: relative;
}

.intro-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 2px;
}

.intro-image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--blush);
    border-radius: 2px;
    z-index: -1;
}

.intro-text {
    padding: var(--space-md) 0;
}

.intro-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--warm-gray);
    margin-bottom: var(--space-md);
}

.intro-stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(112, 26, 34, 0.12);
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--warm-gray-light);
    letter-spacing: 0.04em;
}

/* ---------- Divider / Quote ---------- */
.divider-section {
    padding: var(--space-xl) 0;
    background: var(--burgundy);
}

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

.divider-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-style: italic;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.divider-source {
    font-size: 0.85rem;
    color: var(--blush);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Menu ---------- */
.menu {
    padding: var(--space-2xl) 0;
    background: var(--blush-pale);
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.menu-category {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(112, 26, 34, 0.04);
    transition: transform var(--transition), box-shadow var(--transition);
}

.menu-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(112, 26, 34, 0.08);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--blush);
}

.category-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--charcoal);
    flex: 1;
}

.category-icon {
    color: var(--burgundy);
    opacity: 0.6;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.menu-item {
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(112, 26, 34, 0.06);
}

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

.menu-item-name {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.2rem;
}

.menu-item-desc {
    font-size: 0.875rem;
    color: var(--warm-gray);
    line-height: 1.5;
}

.menu-note {
    text-align: center;
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: rgba(112, 26, 34, 0.04);
    border-radius: 2px;
}

.menu-note p {
    font-size: 0.9rem;
    color: var(--warm-gray);
    font-style: italic;
}

/* ---------- Gallery ---------- */
.gallery {
    padding: var(--space-2xl) 0;
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: var(--space-sm);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
}

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

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(112, 26, 34, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

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

.gallery-item-overlay span {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--white);
    font-style: italic;
}

.gallery-item--tall {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
    height: 100%;
    min-height: 500px;
}

.gallery-item--wide {
    grid-column: 5 / 13;
    height: 240px;
}

.gallery-item:not(.gallery-item--tall) {
    height: 240px;
}

/* ---------- Visit ---------- */
.visit {
    padding: var(--space-2xl) 0;
    background: var(--white);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.visit-info {
    padding-right: var(--space-lg);
}

.visit-details {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.detail-icon {
    width: 44px;
    height: 44px;
    background: var(--blush-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    flex-shrink: 0;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--warm-gray-light);
    margin-bottom: 0.25rem;
}

.detail-text p {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.detail-text a {
    color: var(--burgundy);
    transition: color var(--transition);
}

.detail-text a:hover {
    color: var(--burgundy-deep);
    text-decoration: underline;
}

.btn-directions {
    margin-top: var(--space-lg);
    background: var(--burgundy);
    color: var(--white);
}

.btn-directions:hover {
    background: var(--burgundy-deep);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(112, 26, 34, 0.3);
}

.visit-map {
    border-radius: 2px;
    overflow: hidden;
}

.map-placeholder {
    position: relative;
    height: 100%;
    min-height: 450px;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.map-content {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    background: var(--white);
    padding: var(--space-md);
    border-radius: 2px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.map-pin {
    color: var(--burgundy);
    margin: 0 auto var(--space-sm);
}

.map-address {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--charcoal);
    color: var(--white);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: var(--space-sm);
}

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

.footer-nav-label,
.footer-contact .footer-nav-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--space-sm);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
    line-height: 1.6;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

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

/* ---------- Mobile Menu Overlay ---------- */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(255, 250, 247, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

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

.mobile-menu .nav-list {
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-menu .nav-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--charcoal);
}

.mobile-menu .nav-link:hover {
    color: var(--burgundy);
}

/* ---------- Scroll Animations ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

    .menu-category:first-child {
        grid-column: 1 / -1;
    }

    .gallery-item--tall {
        grid-column: 1 / 7;
        min-height: 400px;
    }

    .gallery-item--wide {
        grid-column: 7 / 13;
        height: 300px;
    }

    .gallery-item:not(.gallery-item--tall) {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    .nav-close,
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-container {
        height: 70px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .intro-image {
        height: 350px;
    }

    .intro-image-accent {
        top: -12px;
        left: -12px;
    }

    .intro-stats {
        gap: var(--space-md);
    }

    .menu-categories {
        grid-template-columns: 1fr;
    }

    .menu-category:first-child {
        grid-column: auto;
    }

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

    .gallery-item--tall {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 300px;
    }

    .gallery-item--wide {
        grid-column: 1 / -1;
        height: 250px;
    }

    .gallery-item:not(.gallery-item--tall) {
        height: 250px;
    }

    .visit-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .visit-info {
        padding-right: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

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

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

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-md: 1.5rem;
        --space-lg: 3rem;
        --space-xl: 4rem;
        --space-2xl: 5rem;
    }

    .intro-stats {
        flex-direction: column;
        gap: var(--space-sm);
    }

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

    .gallery-item--tall,
    .gallery-item--wide,
    .gallery-item:not(.gallery-item--tall) {
        grid-column: auto;
        height: 250px;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
