/* ============================================
   EMBER & OAK — Coffee Shop
   Warm, cozy, earthy tones
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #faf6f1;
    --cream-dark: #f0e8dd;
    --brown: #3b2f2f;
    --brown-light: #5c4a3a;
    --brown-dim: #8a7968;
    --accent: #c87941;
    --accent-dark: #a8612e;
    --accent-glow: rgba(200, 121, 65, 0.15);
    --white: #ffffff;
    --serif: 'DM Serif Display', serif;
    --sans: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

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

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

.section-tag {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--brown);
    margin-bottom: 24px;
}

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

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.nav--scrolled {
    background: rgba(250, 246, 241, 0.95);
    backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: 0 1px 20px rgba(59, 47, 47, 0.08);
}

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

.nav__logo {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--brown);
    text-decoration: none;
}

.nav__logo span {
    color: var(--accent);
}

.nav__links {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--brown-dim);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav__link:hover {
    color: var(--brown);
}

.nav__link:hover::after {
    width: 100%;
}

/* Burger */
.nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--brown);
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav__burger--open span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.nav__burger--open span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn--primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

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

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

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(59, 47, 47, 0.5) 0%,
        rgba(59, 47, 47, 0.3) 50%,
        rgba(59, 47, 47, 0.7) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 700px;
}

.hero__tag {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero__title {
    font-family: var(--serif);
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 400;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 36px;
}

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

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   STORY
   ============================================ */

.story {
    padding: 120px 0;
    background: var(--white);
}

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

.story__image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

.story__content p {
    font-size: 16px;
    color: var(--brown-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.story__stats {
    display: flex;
    gap: 40px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--cream-dark);
}

.story__stat-number {
    display: block;
    font-family: var(--serif);
    font-size: 36px;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.story__stat-label {
    font-size: 13px;
    color: var(--brown-dim);
    font-weight: 500;
}

/* ============================================
   MENU
   ============================================ */

.menu {
    padding: 120px 0;
    background: var(--cream);
}

.menu__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.menu__category-title {
    font-family: var(--serif);
    font-size: 28px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.menu__items {
    display: flex;
    flex-direction: column;
}

.menu__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid rgba(59, 47, 47, 0.08);
}

.menu__item:last-child {
    border-bottom: none;
}

.menu__item-info {
    flex: 1;
    margin-right: 16px;
}

.menu__item-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: 2px;
}

.menu__item-desc {
    display: block;
    font-size: 14px;
    color: var(--brown-dim);
    font-weight: 300;
}

.menu__item-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    padding-top: 2px;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery {
    padding: 120px 0;
    background: var(--white);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}

.gallery__item {
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery__item:hover img {
    transform: scale(1.06);
}

.gallery__item--tall {
    grid-row: span 2;
}

.gallery__item--wide {
    grid-column: span 2;
}

/* ============================================
   VISIT
   ============================================ */

.visit {
    padding: 120px 0;
    background: var(--brown);
    color: var(--cream);
}

.visit .section-tag {
    color: var(--accent);
}

.visit .section-title {
    color: var(--cream);
}

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

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 32px;
}

.visit__detail h3 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.visit__detail p {
    font-size: 16px;
    color: rgba(250, 246, 241, 0.8);
    line-height: 1.7;
}

.visit__detail a {
    color: rgba(250, 246, 241, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.visit__detail a:hover {
    color: var(--accent);
}

.visit__social {
    display: flex;
    gap: 16px;
}

.visit__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(250, 246, 241, 0.2);
    color: var(--cream);
    transition: all 0.3s ease;
}

.visit__social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.visit__map-placeholder {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 6/5;
}

.visit__map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 32px 0;
    background: var(--brown);
    border-top: 1px solid rgba(250, 246, 241, 0.08);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__logo {
    font-family: var(--serif);
    font-size: 18px;
    color: var(--cream);
    text-decoration: none;
}

.footer__logo span {
    color: var(--accent);
}

.footer__copy {
    font-size: 13px;
    color: rgba(250, 246, 241, 0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .story__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story__image img {
        height: 350px;
    }

    .menu__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .visit__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(250, 246, 241, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 36px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .nav__links--open {
        opacity: 1;
        pointer-events: all;
    }

    .nav__links--open .nav__link {
        font-size: 20px;
        color: var(--brown);
    }

    .nav__burger {
        display: flex;
    }

    .hero__title {
        font-size: clamp(36px, 10vw, 56px);
    }

    .section-title {
        font-size: clamp(28px, 6vw, 40px);
    }

    .story {
        padding: 80px 0;
    }

    .story__stats {
        gap: 24px;
    }

    .story__stat-number {
        font-size: 28px;
    }

    .menu {
        padding: 80px 0;
    }

    .gallery {
        padding: 80px 0;
    }

    .gallery__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .gallery__item--tall {
        grid-row: span 1;
    }

    .gallery__item--wide {
        grid-column: span 1;
    }

    .visit {
        padding: 80px 0;
    }

    .footer__inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 100svh;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn {
        text-align: center;
    }

    .story__stats {
        flex-wrap: wrap;
    }
}
