/* ============================================
   OLE CHI MILL — Café & Bar
   Clean minimalist · Emerald + Cream
   ============================================ */

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

:root {
    --emerald: #0D4A3A;
    --emerald-light: #1A6B54;
    --emerald-dark: #072E24;
    --cream: #F5F0E8;
    --cream-light: #FAF7F2;
    --cream-dark: #E8E0D0;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #8A8A8A;
    --white: #FFFFFF;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* --- Loader --- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--emerald-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-text {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--cream);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 300;
    animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 3rem;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 3rem;
    border-bottom: 1px solid var(--cream-dark);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--emerald);
    transition: var(--transition-fast);
}

.nav.scrolled .nav-logo {
    color: var(--emerald);
}

.nav:not(.scrolled) .nav-logo {
    color: var(--cream);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

.nav:not(.scrolled) .nav-link {
    color: var(--cream);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--emerald);
    transition: var(--transition-fast);
}

.nav:not(.scrolled) .nav-link::after {
    background: var(--cream);
}

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

.nav-phone {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: none;
    color: var(--emerald) !important;
    font-style: italic;
}

.nav:not(.scrolled) .nav-phone {
    color: var(--cream) !important;
}

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

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--cream);
    transition: var(--transition);
    transform-origin: center;
}

.nav.scrolled .nav-toggle-line {
    background: var(--emerald);
}

.nav-toggle.active .nav-toggle-line:first-child {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active .nav-toggle-line:last-child {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(7, 46, 36, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--emerald);
    color: var(--cream);
    border-color: var(--emerald);
}

.btn-primary:hover {
    background: var(--emerald-light);
    border-color: var(--emerald-light);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--emerald);
    border-color: var(--emerald);
}

.btn-ghost:hover {
    background: var(--emerald);
    color: var(--cream);
}

.btn-map {
    margin-top: 2rem;
}

/* --- Section Labels --- */
.section-label {
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--emerald);
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-headline {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.section-dek {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
    font-weight: 300;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--cream);
    padding: 8rem 3rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    padding-right: 2rem;
}

.hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.08;
    color: var(--text-primary);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.hero-dek {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 3rem;
    max-width: 440px;
    font-weight: 300;
}

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

.hero-image {
    position: relative;
}

.hero-image-wrap {
    overflow: hidden;
    border-radius: 2px;
}

.hero-image-wrap img {
    width: 100%;
    height: 860px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.hero-accent-line {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    width: 120px;
    height: 1px;
    background: var(--emerald);
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--emerald), transparent);
    animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Story --- */
.story {
    padding: 8rem 3rem;
    background: var(--cream-light);
}

.story-layout {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 6rem;
    align-items: start;
}

.story-sticky {
    position: sticky;
    top: 8rem;
}

.story-headline {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 4.5vw, 4.2rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--text-primary);
    margin-top: 1.5rem;
}

.text-emerald {
    color: var(--emerald);
    font-style: italic;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

.story-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
}

.story-text p:first-child {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.75;
}

.story-image-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-img-main {
    overflow: hidden;
    border-radius: 2px;
}

.story-img-main img {
    width: 100%;
    height: 680px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.story-img-main:hover img {
    transform: scale(1.02);
}

.story-img-secondary {
    overflow: hidden;
    border-radius: 2px;
}

.story-img-secondary img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.story-img-secondary:hover img {
    transform: scale(1.02);
}

.story-stats {
    display: flex;
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid var(--cream-dark);
}

.stat {
    flex: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--emerald);
    font-weight: 400;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 300;
}

.stat-divider {
    width: 1px;
    background: var(--cream-dark);
    align-self: stretch;
}

/* --- Menu --- */
.menu {
    padding: 8rem 3rem;
    background: var(--cream);
}

.menu-header {
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.menu-divider {
    max-width: 1400px;
    margin: 0 auto 4rem;
    height: 1px;
    background: var(--cream-dark);
}

.menu-body {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.menu-column {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.menu-category {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--cream-dark);
}

.menu-category:last-child {
    border-bottom: none;
}

.menu-category-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--emerald);
    margin-bottom: 1.8rem;
    font-style: italic;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.menu-item {
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--cream-dark);
}

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

.menu-item-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.menu-item-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.menu-item-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}

.menu-note {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    padding-top: 1rem;
    font-weight: 300;
}

/* --- Space --- */
.space {
    padding: 8rem 3rem;
    background: var(--emerald-dark);
    color: var(--cream);
}

.space-header {
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.space .section-label {
    color: var(--cream-dark);
}

.space .section-headline {
    color: var(--cream);
}

.space-gallery {
    max-width: 1400px;
    margin: 0 auto 5rem;
    display: grid;
    grid-template-columns: 0.8fr 1fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 1rem;
}

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

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

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

.space-gallery-item--tall {
    grid-row: 1 / 3;
}

.space-gallery-item--wide {
    grid-column: 2 / 4;
}

.space-gallery-caption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cream);
    background: rgba(7, 46, 36, 0.7);
    padding: 0.4rem 0.8rem;
    border-radius: 1px;
    backdrop-filter: blur(4px);
}

.space-details {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(245, 240, 232, 0.15);
}

.space-detail-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 0.8rem;
}

.space-detail-text {
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.6);
    line-height: 1.7;
    font-weight: 300;
}

/* --- Visit --- */
.visit {
    padding: 8rem 3rem;
    background: var(--cream-light);
}

.visit-layout {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

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

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

.visit-icon {
    width: 22px;
    height: 22px;
    color: var(--emerald);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail-label {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.visit-detail-value {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 300;
}

.visit-detail-value a {
    color: var(--emerald);
    transition: var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.visit-detail-value a:hover {
    border-bottom-color: var(--emerald);
}

.visit-map {
    background: var(--cream-dark);
    border-radius: 2px;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visit-map-placeholder {
    text-align: center;
    padding: 3rem;
}

.visit-map-placeholder p {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 1rem 0;
    font-weight: 400;
}

.visit-map-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald);
    border-bottom: 1px solid var(--emerald);
    padding-bottom: 2px;
    transition: var(--transition-fast);
}

.visit-map-link:hover {
    color: var(--emerald-light);
    border-bottom-color: var(--emerald-light);
}

/* --- Footer --- */
.footer {
    background: var(--emerald-dark);
    color: var(--cream);
    padding: 4rem 3rem 2rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(245, 240, 232, 0.12);
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 0.6rem;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.5);
    font-weight: 300;
}

.footer-phone {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--cream);
    font-style: italic;
    border-bottom: 1px solid rgba(245, 240, 232, 0.3);
    padding-bottom: 2px;
    transition: var(--transition-fast);
}

.footer-phone:hover {
    color: var(--cream-dark);
    border-bottom-color: var(--cream-dark);
}

.footer-address {
    font-size: 0.88rem;
    color: rgba(245, 240, 232, 0.5);
    line-height: 1.6;
    font-weight: 300;
    margin-top: 0.4rem;
}

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

.footer-copy {
    font-size: 0.78rem;
    color: rgba(245, 240, 232, 0.35);
    font-weight: 300;
}

.footer-note {
    font-size: 0.78rem;
    color: rgba(245, 240, 232, 0.35);
    font-style: italic;
    font-weight: 300;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 0.7fr;
        gap: 3rem;
    }

    .story-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .story-sticky {
        position: relative;
        top: 0;
    }

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

    .space-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 280px 280px 280px;
    }

    .space-gallery-item--tall {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
    }

    .space-gallery-item--wide {
        grid-column: 1 / 3;
    }

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

    .visit-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1.2rem 1.5rem;
    }

    .nav.scrolled {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--emerald-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link,
    .nav:not(.scrolled) .nav-link {
        color: var(--cream) !important;
        font-size: 1rem;
        letter-spacing: 0.2em;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 7rem 1.5rem 4rem;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-text {
        padding-right: 0;
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-image-wrap img {
        height: 500px;
    }

    .hero-accent-line {
        display: none;
    }

    .hero-scroll {
        display: none;
    }

    .story,
    .menu,
    .space,
    .visit {
        padding: 5rem 1.5rem;
    }

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

    .space-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 240px);
    }

    .space-gallery-item--tall,
    .space-gallery-item--wide {
        grid-row: auto;
        grid-column: auto;
    }

    .story-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }

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

@media (max-width: 480px) {
    .hero {
        padding: 6rem 1.25rem 3rem;
    }

    .hero-headline {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .section-headline {
        font-size: 2rem;
    }

    .story-img-main img,
    .story-img-secondary img {
        height: 260px;
    }
}
