/* Coffree Coffee — website
   Monochrome, photo-led, condensed display type. One accent colour (caramel). */
:root {
    --black: #0a0a0a;
    --ink: #141414;
    --bg: #ebebeb;
    --white: #fff;
    --line: #dcdcdc;
    --muted: #6b6b6b;
    --accent: #db9a52;
    --accent-dark: #b97b37;

    --container: 1024px;
    --gutter: clamp(16px, 4vw, 24px);
    --header-h: 80px;

    --font-display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
    --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: .95; color: var(--black); }
.display { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1:focus { outline: none; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--black); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }

/* Buttons — square-ish, uppercase, like a printed menu */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 46px; padding: .7rem 1.4rem; border: 1.5px solid transparent; border-radius: 4px;
       font: 900 .82rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: #2a2a2a; }
.btn-accent { background: var(--accent); color: var(--black); }
.btn-accent:hover { background: #e6ac6b; }
.btn-outline { border-color: var(--black); color: var(--black); background: transparent; }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.85); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--black); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); color: var(--white); }
.site-header.over-hero { position: absolute; left: 0; right: 0; background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent); }
.nav { display: flex; align-items: center; height: var(--header-h); gap: 1.25rem; }
.wordmark { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--white); font-family: var(--font-display); font-size: 2.3rem; letter-spacing: .08em; line-height: 1; padding-top: 4px; }
.wordmark svg { width: 22px; height: 22px; margin-top: -6px; }
.nav-divider { width: 1px; height: 26px; background: rgba(255,255,255,.7); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 900; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--white); padding: .5rem 0; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.new-badge { font-size: .62rem; font-weight: 900; color: var(--accent); vertical-align: super; margin-left: .2rem; letter-spacing: .04em; }
.nav-mobile { display: none; margin-left: auto; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; color: var(--white); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary svg { width: 28px; height: 28px; }
.mobile-panel { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--black); padding: .5rem var(--gutter) 1.5rem; border-top: 1px solid #222; }
.mobile-panel a { display: block; padding: 1rem 0; border-bottom: 1px solid #222; text-decoration: none; font-family: var(--font-display); font-size: 1.7rem; letter-spacing: .04em; color: var(--white); }
.mobile-panel a:hover { color: var(--accent); }
@media (max-width: 980px) {
    .nav-links, .nav-divider { display: none; }
    .nav-mobile { display: block; }
}

/* Hero */
.hero { position: relative; min-height: min(100vh, 900px); display: grid; place-items: center; text-align: center; color: var(--white);
        background: #1a120c url("img/hero-beans.jpg") center/cover no-repeat; padding: calc(var(--header-h) + 3rem) 0 9rem; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.35), rgba(0,0,0,.72)); }
.hero > * { position: relative; }
.hero h1 { font-family: var(--font-display); color: var(--white); font-size: clamp(3.6rem, 10.5vw, 9.5rem); letter-spacing: .01em; line-height: .9; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero h1 .accent { color: var(--accent); }
.hero .sub { margin-top: 1.3rem; font-size: clamp(1.05rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.35; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero .sub b { display: block; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2.3rem; }
.hero-mark { margin-top: 3.5rem; font-family: var(--font-display); font-size: 2.6rem; letter-spacing: .1em; opacity: .95; }

/* Split blocks — text panel + photo, alternating */
.splits { position: relative; z-index: 2; margin-top: -6rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); margin-bottom: 1.6rem; min-height: 470px; }
.split:nth-child(even) .split-text { order: 2; }
.split-text { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(2.2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3.5rem); gap: 1.1rem; }
.split-text .kicker { font-weight: 900; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-dark); }
.split-text h2 { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); text-transform: uppercase; }
.split-text p { max-width: 40ch; color: #333; }
.split-media { position: relative; min-height: 320px; background: #222 center/cover no-repeat; }
@media (max-width: 760px) {
    .split { grid-template-columns: 1fr; min-height: 0; }
    .split:nth-child(even) .split-text { order: 0; }
    .split-media { min-height: 280px; order: -1; }
}

/* Section titles */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-white { background: var(--white); }
.section-black { background: var(--black); color: #d8d8d8; }
.section-title { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4.6rem); text-transform: uppercase; text-align: center; color: var(--black); }
.section-black .section-title { color: var(--white); }
.section-lead { text-align: center; max-width: 54ch; margin: 1rem auto 0; color: var(--muted); }
.section-black .section-lead { color: #a8a8a8; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.center { text-align: center; }

/* Product cards (white card, photo area, bold name, grey description) */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.product { background: var(--white); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.product:hover { box-shadow: 0 10px 30px -18px rgba(0,0,0,.45); transform: translateY(-2px); }
.product-media { aspect-ratio: 1 / 1; background: var(--white); display: grid; place-items: center; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .art { width: 46%; color: #c9c9c9; }
.product-body { padding: 1rem 1rem 1.15rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product h3 { font-family: var(--font-body); font-weight: 900; font-size: 1.02rem; line-height: 1.25; color: var(--black); }
.product p { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.product-foot { margin-top: auto; padding-top: .5rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.price { font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stamp-tag { font-size: .66rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); white-space: nowrap; }
@media (max-width: 720px) {
    .product-body { padding: .75rem .8rem .9rem; }
    .product h3 { font-size: .95rem; }
    .product p { font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .product-foot { flex-direction: column; align-items: flex-start; gap: .15rem; }
}

/* Black loyalty band with big numbers */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #262626; margin-top: 2.5rem; }
.figure { background: var(--black); padding: 2.2rem 1.5rem; text-align: center; }
.figure .big { font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 6rem); line-height: .9; color: var(--white); }
.figure .big em { font-style: normal; color: var(--accent); }
.figure .label { margin-top: .6rem; font-weight: 900; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.figure p { margin-top: .7rem; color: #a8a8a8; font-size: .95rem; }
@media (max-width: 760px) { .figures { grid-template-columns: 1fr; } }

/* Stamp card visual (loyalty page) */
.stamp-card { background: var(--black); color: var(--white); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2rem); max-width: 440px; width: 100%; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.stamp-card .row { display: flex; justify-content: space-between; align-items: center; }
.stamp-card .brand { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: .08em; }
.stamp-card .tier { font-size: .68rem; font-weight: 900; letter-spacing: .2em; border: 1px solid var(--accent); color: var(--accent); padding: .3rem .6rem; border-radius: 3px; }
.stamp-card .count { font-family: var(--font-display); font-size: 3rem; margin-top: 1rem; line-height: 1; }
.stamp-card .count span { color: #777; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .65rem; margin-top: 1.1rem; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed #555; display: grid; place-items: center; }
.stamp.on { background: var(--accent); border: 0; color: var(--black); }
.stamp.on svg { width: 55%; height: 55%; }
.stamp-card .note { margin-top: 1.2rem; font-weight: 700; color: #cfcfcf; font-size: .95rem; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem 1.5rem; text-align: center; }
.tier-card h3 { font-family: var(--font-display); font-size: 2.6rem; text-transform: uppercase; }
.tier-card .mult { font-family: var(--font-display); font-size: 4.2rem; line-height: 1; margin: .6rem 0 .2rem; color: var(--accent-dark); }
.tier-card p { color: var(--muted); font-size: .95rem; }
.tier-card.Gold { background: var(--black); border-color: var(--black); }
.tier-card.Gold h3 { color: var(--white); }
.tier-card.Gold .mult { color: var(--accent); }
.tier-card.Gold p { color: #a8a8a8; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }

.rewards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.reward { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .35rem; }
.reward .cost { font-family: var(--font-display); font-size: 2.3rem; line-height: 1; color: var(--accent-dark); }
.reward b { font-weight: 900; }
.reward span { color: var(--muted); font-size: .9rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem 1.6rem; }
.step .no { font-family: var(--font-display); font-size: 3.6rem; line-height: 1; color: var(--accent); }
.step h3 { font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; margin: .4rem 0 .5rem; }
.step p { color: var(--muted); font-size: .97rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Campaigns */
.campaigns { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.campaign { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.campaign-media { position: relative; aspect-ratio: 16 / 10; background: #1a120c url("img/scoop-dark.jpg") center/cover; }
.campaign-media img { width: 100%; height: 100%; object-fit: cover; }
.campaign-media .badge { position: absolute; left: 1rem; top: 1rem; background: var(--accent); color: var(--black); font-weight: 900; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: .45rem .7rem; border-radius: 3px; }
.campaign-body { padding: 1.3rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; }
.campaign-body h3 { font-family: var(--font-display); font-size: 2.1rem; text-transform: uppercase; }
.campaign-body .sub { font-weight: 900; color: var(--accent-dark); }
.campaign-body p { color: #333; white-space: pre-line; font-size: .97rem; }
.campaign-body .dates { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; color: var(--muted); margin-top: .3rem; }

/* App download */
.app-block { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.6rem; }
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.store-badge { display: inline-flex; align-items: center; gap: .75rem; background: var(--black); color: var(--white); border: 1.5px solid #3a3a3a; border-radius: 10px; padding: .6rem 1.3rem .6rem 1rem; min-width: 210px; text-decoration: none; transition: border-color .2s; }
.store-badge:hover { border-color: var(--accent); }
.store-badge svg { width: 30px; height: 30px; flex: none; }
.store-badge small { display: block; font-size: .7rem; letter-spacing: .04em; opacity: .85; line-height: 1.1; }
.store-badge b { display: block; font-size: 1.35rem; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.store-badge[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.qr-box { background: var(--white); padding: 18px; border-radius: 6px; width: 220px; }
.qr-box svg { width: 100%; height: auto; display: block; }

/* Page header (inner pages) */
.page-head { padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); text-align: center; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(3.2rem, 8vw, 5.6rem); text-transform: uppercase; }
.page-head p { max-width: 56ch; margin: 1rem auto 0; color: var(--muted); }
.page-photo { height: clamp(220px, 36vw, 380px); background: #1a120c center/cover no-repeat; position: relative; display: grid; place-items: center; text-align: center; color: var(--white); }
.page-photo::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.page-photo h1 { position: relative; font-family: var(--font-display); font-size: clamp(3.4rem, 9vw, 6.5rem); color: var(--white); text-transform: uppercase; }
.page-photo p { position: relative; margin-top: .8rem; font-weight: 700; max-width: 52ch; padding: 0 1rem; }

/* Menu page */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { display: inline-block; text-decoration: none; padding: .45rem .95rem; border: 1px solid #c9c9c9; border-radius: 999px; background: #f4f4f4; font-size: .95rem; color: var(--ink); transition: background .15s, color .15s, border-color .15s; }
.chip:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.menu-cat { padding-top: clamp(2.5rem, 5vw, 3.5rem); scroll-margin-top: calc(var(--header-h) + 16px); }
.menu-cat h2 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.2rem); text-transform: uppercase; }
.menu-cat .desc { color: var(--muted); margin: .3rem 0 1.2rem; }
.note { margin-top: 3rem; font-size: .9rem; color: var(--muted); text-align: center; }

/* Forms */
.form-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; align-items: stretch; }
@media (max-width: 880px) { .form-wrap { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.panel-dark { background: var(--black); color: #d8d8d8; border-color: var(--black); }
.panel h2 { font-family: var(--font-display); font-size: 2.6rem; text-transform: uppercase; margin-bottom: 1.2rem; }
.panel-dark h2 { color: var(--white); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 900; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .4rem; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 1rem; padding: .8rem .9rem; border-radius: 4px; border: 1.5px solid #cfcfcf; background: #fafafa; color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--black); background: var(--white); }
.validation-message { color: #b42318; font-size: .82rem; margin-top: .3rem; font-weight: 700; }
.invalid { border-color: #e07070 !important; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--black); flex: none; }
.alert { border-radius: 4px; padding: .9rem 1.1rem; font-weight: 700; margin-bottom: 1.2rem; background: #fdecea; color: #8c1d18; }
.success { text-align: center; padding: 2rem 0; }
.success h2 { margin-bottom: .6rem; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.perks b { display: block; font-family: var(--font-display); font-size: 1.7rem; letter-spacing: .02em; color: var(--white); line-height: 1; margin-bottom: .3rem; }
.perks span { color: #a8a8a8; font-size: .95rem; }

/* Contact */
.branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.branch h3 { font-family: var(--font-display); font-size: 2.2rem; text-transform: uppercase; margin-bottom: .8rem; }
.branch .row { display: flex; gap: .6rem; align-items: flex-start; color: #333; margin-bottom: .45rem; }
.branch .row svg { width: 18px; height: 18px; flex: none; margin-top: .25rem; color: var(--accent-dark); }
.branch .row a { text-decoration: none; }
.branch .row a:hover { text-decoration: underline; }
.branch .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

/* Legal */
.prose { max-width: 760px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.5rem, 4vw, 3rem); }
.prose h2 { font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; margin: 2rem 0 .7rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #333; margin-bottom: .8rem; }
.prose ul { padding-left: 1.2rem; }
.prose .callout { background: var(--bg); padding: 1rem 1.2rem; border-left: 3px solid var(--accent); font-size: .92rem; color: var(--muted); margin-bottom: 1.5rem; }

/* Footer */
.site-footer { background: var(--black); color: #bdbdbd; padding: 3.5rem 0 1.6rem; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid #222; }
.site-footer .wordmark { font-size: 2.6rem; }
.site-footer h4 { font-family: var(--font-body); font-weight: 900; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .95rem; }
.site-footer a { color: #bdbdbd; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-about { margin-top: .9rem; max-width: 30ch; font-size: .92rem; color: #8f8f8f; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; font-size: .9rem; color: #e0e0e0; }
.footer-bottom em { font-weight: 900; }
.socials { display: flex; gap: 1rem; }
.socials a { color: var(--white); }
.socials svg { width: 20px; height: 20px; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

.empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); background: var(--white); border: 1px dashed #c9c9c9; border-radius: 6px; }

/* No photo yet: a shorter, quieter media area */
.product-media.no-photo { aspect-ratio: 4 / 3; background: #f5f5f5; }
.product-media.no-photo .art { width: 34%; }
@media (max-width: 520px) { .hero-actions .btn { min-width: 240px; } }
