/* ═══════════════════════════════════════════════════════════
   NOLI COFFEE — Classic & Elegant
   Palette: Burgundy (#6B0F1A) · Blush (#F5E6D3) · Cream (#FDF8F4)
   Fonts: Playfair Display (serif) + Inter (sans)
   ═══════════════════════════════════════════════════════════ */

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

:root {
    --burgundy:    #6B0F1A;
    --burgundy-dk: #4A0A12;
    --burgundy-lt: #8B1A26;
    --blush:       #F5E6D3;
    --blush-dk:    #E8D0B8;
    --cream:       #FDF8F4;
    --cream-dk:    #F5EDE4;
    --charcoal:    #1A1414;
    --text:        #2C1E1E;
    --text-light:  #6B5555;
    --white:       #FFFFFF;
    --radius:      12px;
    --radius-sm:   8px;
    --shadow:      0 4px 24px rgba(107,15,26,.08);
    --shadow-lg:   0 12px 48px rgba(107,15,26,.12);
    --transition:  .3s cubic-bezier(.4,0,.2,1);
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--charcoal);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

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

/* ── Typography ── */
.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 12px;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--sm { padding: 10px 22px; font-size: .875rem; }
.btn--lg { padding: 16px 36px; font-size: 1rem; }

.btn--burgundy {
    background: var(--burgundy);
    color: var(--white);
}
.btn--burgundy:hover {
    background: var(--burgundy-dk);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107,15,26,.25);
}

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

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253,248,244,.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(107,15,26,.06);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(253,248,244,.96);
    box-shadow: 0 2px 20px rgba(107,15,26,.06);
}

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--charcoal);
}

.nav__logo-mark {
    width: 36px;
    height: 36px;
    background: var(--burgundy);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-style: italic;
}

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

.nav__links a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
    transition: var(--transition);
}

.nav__links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--burgundy);
    transition: var(--transition);
}

.nav__links a:not(.btn):hover { color: var(--burgundy); }
.nav__links a:not(.btn):hover::after { width: 100%; }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26,20,20,.82) 0%,
        rgba(107,15,26,.65) 50%,
        rgba(26,20,20,.75) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    padding-top: 72px;
    width: 100%;
}

.hero__card {
    max-width: 640px;
    padding: 48px;
    background: rgba(253,248,244,.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    animation: heroCardIn .8s ease-out both;
}

@keyframes heroCardIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 16px;
}

.hero__headline {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero__headline em {
    font-style: italic;
    color: var(--blush);
}

.hero__sub {
    font-size: 1.1rem;
    color: rgba(245,230,211,.8);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

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

/* Floating stat cards */
.hero__stats {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.stat-card {
    position: absolute;
    background: rgba(253,248,244,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 16px 22px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.stat-card__number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1;
}

.stat-card__label {
    font-size: .75rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: .04em;
    margin-top: 4px;
}

.stat-card--1 {
    top: 18%;
    right: 8%;
    animation-delay: 0s;
}

.stat-card--2 {
    top: 52%;
    right: 4%;
    animation-delay: -2s;
}

.stat-card--3 {
    bottom: 18%;
    right: 12%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

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

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

.about__images {
    position: relative;
}

.about__img-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about__img-main img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.about__img-secondary {
    position: absolute;
    bottom: -40px;
    right: -30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream);
}

.about__img-secondary img {
    width: 240px;
    height: 300px;
    object-fit: cover;
}

.about__accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: var(--burgundy);
    border-radius: 20px;
    opacity: .08;
    z-index: -1;
}

.about__text { max-width: 480px; }

.about__text p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 1.025rem;
}

.about__values {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 500;
    color: var(--text);
}

.value-icon {
    width: 24px;
    height: 24px;
    color: var(--burgundy);
    flex-shrink: 0;
}

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

.menu__header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
}

.menu__sub {
    color: var(--text-light);
    font-size: 1.05rem;
}

.menu__categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.menu-cat {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-light);
    background: var(--cream);
    border: 1.5px solid transparent;
    transition: var(--transition);
}

.menu-cat:hover {
    color: var(--burgundy);
    border-color: var(--burgundy);
}

.menu-cat.active {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.menu__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.menu-item {
    background: var(--cream);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

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

.menu-item__img {
    overflow: hidden;
    height: 200px;
}

.menu-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.menu-item:hover .menu-item__img img {
    transform: scale(1.08);
}

.menu-item__body {
    padding: 20px 24px 24px;
}

.menu-item__name {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.menu-item__desc {
    font-size: .9rem;
    color: var(--text-light);
    line-height: 1.6;
}

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

.gallery__header {
    text-align: center;
    margin-bottom: 48px;
}

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

.gallery__item {
    border-radius: var(--radius);
    overflow: hidden;
}

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

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

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

.gallery__item:not(.gallery__item--wide) {
    grid-column: span 5;
}

.gallery__item:nth-child(2) { grid-row: 2; }
.gallery__item:nth-child(3) { grid-row: 1; }
.gallery__item:nth-child(4) { grid-row: 2; }
.gallery__item:nth-child(5) { grid-row: 1; }

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

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

.visit__desc {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

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

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

.visit__icon {
    width: 24px;
    height: 24px;
    color: var(--burgundy);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit__detail strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--charcoal);
}

.visit__detail span,
.visit__detail a {
    color: var(--text-light);
    font-size: .95rem;
    line-height: 1.6;
}

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

.visit__map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 420px;
}

/* ── CTA ── */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

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

.cta__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .45;
}

.cta__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(107,15,26,.88), rgba(74,10,18,.82));
}

.cta__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta__heading {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 16px;
}

.cta__text {
    color: rgba(245,230,211,.85);
    font-size: 1.1rem;
    margin-bottom: 36px;
    line-height: 1.7;
}

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

/* ── Footer ── */
.footer {
    background: var(--charcoal);
    color: rgba(245,230,211,.7);
    padding: 72px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer__logo-mark {
    width: 36px;
    height: 36px;
    background: var(--burgundy);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-style: italic;
}

.footer__brand p {
    font-size: .95rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer__nav,
.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__nav strong,
.footer__contact strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 4px;
}

.footer__nav a {
    font-size: .9rem;
    transition: var(--transition);
}

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

.footer__contact a {
    font-size: .9rem;
    transition: var(--transition);
}

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

.footer__contact span {
    font-size: .9rem;
    line-height: 1.6;
}

.footer__bottom {
    border-top: 1px solid rgba(245,230,211,.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .8rem;
    color: rgba(245,230,211,.4);
}

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

/* Fallback: content always visible */
@supports not (animation-name: reveal) {
    .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .about__grid,
    .visit__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about__text { max-width: 100%; }

    .gallery__item--wide { grid-column: span 12; }
    .gallery__item:not(.gallery__item--wide) { grid-column: span 6; }
}

@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253,248,244,.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(107,15,26,.08);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav__links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__toggle { display: flex; }

    .hero__card { padding: 32px 24px; }

    .hero__stats { display: none; }

    .about__img-secondary {
        right: 0;
        bottom: -30px;
    }

    .about__img-secondary img {
        width: 180px;
        height: 220px;
    }

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

    .gallery__item--wide,
    .gallery__item:not(.gallery__item--wide) {
        grid-column: span 1;
    }

    .gallery__item:nth-child(2),
    .gallery__item:nth-child(3),
    .gallery__item:nth-child(4),
    .gallery__item:nth-child(5) {
        grid-row: auto;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

@media (max-width: 480px) {
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }
    .cta__actions { flex-direction: column; align-items: center; }
    .cta__actions .btn { width: 100%; max-width: 280px; }
}
