/* ===== CSS Variables ===== */
:root {
    --color-espresso: #2C1810;
    --color-brick: #7B3F2E;
    --color-walnut: #5C4A3A;
    --color-teal: #5ABFB7;
    --color-teal-dark: #489E97;
    --color-cream: #FAF6F1;
    --color-cream-dark: #F0E8DE;
    --color-white: #FFFFFF;
    --color-near-black: #1A0F0A;
    --color-muted: #9A8B7D;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-walnut);
    background-color: var(--color-cream);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

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

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

ul {
    list-style: none;
}

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

/* ===== Section Label ===== */
.section-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-teal);
    margin-bottom: 20px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background-color: var(--color-cream);
    box-shadow: 0 1px 20px rgba(44, 24, 16, 0.08);
    padding: 16px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.logo-main {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 1px;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 4px;
}

.navbar.scrolled .logo-main {
    color: var(--color-espresso);
}

.navbar.scrolled .logo-sub {
    color: var(--color-walnut);
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.navbar.scrolled .nav-links a {
    color: var(--color-walnut);
}

.nav-links a:hover {
    color: var(--color-teal);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--color-espresso);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: center;
    background-image: url('images/cozy-corner.webp');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(44, 24, 16, 0.7) 0%,
        rgba(44, 24, 16, 0.35) 50%,
        rgba(44, 24, 16, 0.15) 100%
    );
}

.hero-content {
    position: relative;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-skyline {
    width: 80px;
    height: 24px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-skyline path {
    fill: none;
    stroke: var(--color-teal);
    stroke-width: 1.5;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(52px, 8vw, 80px);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-address {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-teal);
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 1s;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Intro Statement ===== */
.intro {
    padding: 100px 24px;
    background-color: var(--color-cream);
    text-align: center;
}

.intro-inner {
    max-width: 720px;
    margin: 0 auto;
}

.intro-line {
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--color-teal);
    margin: 0 auto 40px;
}

.intro-text {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--color-walnut);
}

.intro-est {
    display: block;
    margin-top: 40px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-muted);
}

/* ===== The Space — Mosaic Grid ===== */
.the-space {
    padding: 80px 24px;
    background-color: var(--color-espresso);
}

.the-space .section-label {
    text-align: center;
    margin-bottom: 40px;
}

.space-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 8px;
}

.space-grid-item {
    overflow: hidden;
    border-radius: 4px;
}

.space-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
}

.space-grid-item:hover img {
    filter: brightness(1.1);
}

.space-grid-item:nth-child(1) {
    grid-column: 1 / 8;
    height: 380px;
}

.space-grid-item:nth-child(2) {
    grid-column: 8 / 13;
    height: 380px;
}

.space-grid-item:nth-child(3) {
    grid-column: 1 / 5;
    height: 280px;
}

.space-grid-item:nth-child(4) {
    grid-column: 5 / 9;
    height: 280px;
}

.space-grid-item:nth-child(5) {
    grid-column: 9 / 13;
    height: 280px;
}

/* ===== The Coffee — Feature Moments ===== */
.the-coffee {
    padding: 100px 24px;
    background-color: var(--color-cream);
}

.coffee-feature {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.coffee-feature + .coffee-feature {
    margin-top: 100px;
}

.coffee-feature-image {
    border-radius: 6px;
    overflow: hidden;
}

.coffee-feature-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.coffee-feature-text .section-label {
    margin-bottom: 16px;
}

.coffee-feature-text h2 {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 700;
    color: var(--color-espresso);
    margin-bottom: 24px;
    line-height: 1.2;
}

.coffee-feature-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-walnut);
    margin-bottom: 16px;
}

.coffee-feature-text .coffee-motto {
    font-family: var(--font-display);
    font-size: 18px;
    font-style: italic;
    color: var(--color-brick);
    margin-top: 24px;
}

/* ===== Menu Section ===== */
.menu {
    padding: 100px 24px;
    background-color: var(--color-espresso);
    color: var(--color-white);
}

.menu-header {
    text-align: center;
    margin-bottom: 60px;
}

.menu-header .section-label {
    margin-bottom: 16px;
}

.menu-header h2 {
    font-size: clamp(32px, 4vw, 42px);
    color: var(--color-white);
}

.menu-columns {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.menu-category h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-category h3::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-teal);
    border-radius: 50%;
    flex-shrink: 0;
}

.menu-items li {
    padding: 10px 0;
}

.menu-item-name {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    display: block;
}

.menu-item-desc {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
    display: block;
}

.menu-pastries {
    max-width: 1100px;
    margin: 50px auto 0;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-pastries h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-pastries h3::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-teal);
    border-radius: 50%;
    flex-shrink: 0;
}

.pastry-items {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.pastry-items li {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.menu-drink-accents {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 60px;
}

.menu-drink-accent {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.menu-drink-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Community — Your Table is Waiting ===== */
.community {
    padding: 80px 0;
    background-color: var(--color-cream);
    overflow: hidden;
}

.community-header {
    text-align: center;
    padding: 0 24px;
    margin-bottom: 48px;
}

.community-header .section-label {
    margin-bottom: 16px;
}

.community-header h2 {
    font-size: clamp(28px, 4vw, 38px);
    color: var(--color-espresso);
}

.community-scroll {
    display: flex;
    gap: 24px;
    padding: 0 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.community-scroll::-webkit-scrollbar {
    display: none;
}

.community-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-white);
    box-shadow: 0 4px 20px rgba(44, 24, 16, 0.06);
}

.community-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.community-card figcaption {
    padding: 20px 24px;
    font-family: var(--font-display);
    font-size: 15px;
    font-style: italic;
    line-height: 1.5;
    color: var(--color-walnut);
}

/* ===== Visit Section ===== */
.visit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.visit-image {
    background-image: url('images/storefront.webp');
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.visit-info {
    background-color: var(--color-espresso);
    color: var(--color-white);
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visit-info .section-label {
    margin-bottom: 24px;
}

.visit-info h2 {
    font-size: clamp(28px, 3.5vw, 38px);
    color: var(--color-white);
    margin-bottom: 40px;
}

.visit-block {
    margin-bottom: 36px;
}

.visit-block h3 {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-teal);
    margin-bottom: 12px;
}

.visit-block p,
.visit-block a {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.visit-block a:hover {
    color: var(--color-teal);
}

.visit-directions {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-teal);
    border-bottom: 1px solid var(--color-teal);
    padding-bottom: 2px;
}

.visit-directions:hover {
    color: var(--color-white);
    border-color: var(--color-white);
}

.visit-note {
    margin-top: 40px;
    font-family: var(--font-display);
    font-size: 15px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Footer ===== */
.footer {
    padding: 48px 24px;
    background-color: var(--color-near-black);
    color: var(--color-white);
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
}

.footer-logo .logo-main {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
}

.footer-logo .logo-sub {
    font-family: var(--font-body);
    font-size: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 4px;
}

.footer-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 24px;
}

.footer .copyright {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 12px;
}

.site-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.credit-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
}

.creator-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    transition: var(--transition);
}

.creator-link:hover {
    color: #0077b5;
    transform: scale(1.1);
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== Responsive — Tablet (max-width: 1024px) ===== */
@media (max-width: 1024px) {
    .space-grid-item:nth-child(1) {
        grid-column: 1 / 7;
        height: 300px;
    }

    .space-grid-item:nth-child(2) {
        grid-column: 7 / 13;
        height: 300px;
    }

    .space-grid-item:nth-child(3) {
        grid-column: 1 / 5;
        height: 220px;
    }

    .space-grid-item:nth-child(4) {
        grid-column: 5 / 9;
        height: 220px;
    }

    .space-grid-item:nth-child(5) {
        grid-column: 9 / 13;
        height: 220px;
    }

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

    .coffee-feature-image img {
        height: 380px;
    }

    .visit-info {
        padding: 60px 40px;
    }
}

/* ===== Responsive — Mobile (max-width: 768px) ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-espresso);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transform: translateX(100%);
        transition: transform 0.4s ease;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        color: var(--color-white) !important;
        font-size: 18px;
        letter-spacing: 2px;
    }

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

    .mobile-menu-btn.active span {
        background-color: var(--color-white) !important;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero */
    .hero {
        background-attachment: scroll;
    }

    .hero-content {
        padding: 0 24px;
    }

    .hero-title {
        font-size: clamp(40px, 10vw, 56px);
    }

    /* Space grid — stack */
    .space-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .space-grid-item:nth-child(1) {
        grid-column: 1 / 3;
        height: 240px;
    }

    .space-grid-item:nth-child(2) {
        grid-column: 1 / 3;
        height: 200px;
    }

    .space-grid-item:nth-child(3) {
        grid-column: 1 / 2;
        height: 180px;
    }

    .space-grid-item:nth-child(4) {
        grid-column: 2 / 3;
        height: 180px;
    }

    .space-grid-item:nth-child(5) {
        grid-column: 1 / 3;
        height: 200px;
    }

    /* Coffee features — stack */
    .coffee-feature {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .coffee-feature-image img {
        height: 300px;
    }

    .coffee-feature.reverse .coffee-feature-image {
        order: -1;
    }

    /* Menu */
    .menu-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pastry-items {
        gap: 24px;
    }

    /* Community cards */
    .community-card {
        flex: 0 0 280px;
    }

    .community-card img {
        height: 200px;
    }

    /* Visit — stack */
    .visit {
        grid-template-columns: 1fr;
    }

    .visit-image {
        min-height: 300px;
        background-image: url('images/window-view.webp');
    }

    .visit-info {
        padding: 48px 24px;
    }
}

/* ===== Responsive — Small (max-width: 480px) ===== */
@media (max-width: 480px) {
    .intro {
        padding: 72px 20px;
    }

    .intro-text {
        font-size: 20px;
    }

    .the-space {
        padding: 48px 12px;
    }

    .the-coffee {
        padding: 64px 20px;
    }

    .menu {
        padding: 64px 20px;
    }

    .community {
        padding: 48px 0;
    }

    .community-card {
        flex: 0 0 260px;
    }

    .space-grid-item:nth-child(1),
    .space-grid-item:nth-child(2),
    .space-grid-item:nth-child(5) {
        height: 180px;
    }

    .space-grid-item:nth-child(3),
    .space-grid-item:nth-child(4) {
        height: 150px;
    }

    .menu-drink-accents {
        gap: 16px;
    }

    .menu-drink-accent {
        width: 60px;
        height: 60px;
    }
}
