/* ================================================================
   MORNING BREW — Design System
   Aesthetic: Artisan Italian coffee bar · warm, editorial, tactile
   Fonts: Cormorant Garamond (display) + Outfit (body) + DM Mono
   Palette: Deep espresso · warm cream · caramel gold
   ================================================================ */

/* ── TOKENS ────────────────────────────────────────────────────── */
:root {
  --ink:        #1a0e07;
  --roast:      #2b1508;
  --espresso:   #3d1f0d;
  --mahogany:   #6b3520;
  --caramel:    #c07c3a;
  --gold:       #d4974d;
  --gold-light: #e8b97a;
  --cream:      #faf4e8;
  --cream-dark: #f2e8d4;
  --foam:       #fdf9f2;
  --linen:      #ede5d3;

  --text:       #2b1508;
  --text-mid:   #6b4a32;
  --text-soft:  #a07850;
  --text-faint: #c4a882;

  --border:     #ddd0b8;
  --border-mid: #c8b898;

  --green:      #2d5a3d;
  --green-bg:   #eaf2ec;
  --red:        #8b2e1a;
  --red-bg:     #fdf0ed;
  --blue:       #1e3a6b;
  --blue-bg:    #edf2fd;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(26,14,7,.07);
  --shadow:    0 4px 20px rgba(26,14,7,.1);
  --shadow-lg: 0 12px 48px rgba(26,14,7,.15);
  --shadow-xl: 0 24px 80px rgba(26,14,7,.2);

  --ease: cubic-bezier(.4,0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

/* ── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
a { color: inherit; }

/* ── BASE ──────────────────────────────────────────────────────── */
body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .025;
}

/* ── TYPOGRAPHY ────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; line-height: 1.1; font-weight: 600; color: var(--ink); }

.eyebrow {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: .7rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--caramel); margin-bottom: .85rem;
}

/* ── LAYOUT ────────────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.25rem,5vw,2.5rem); }

/* ── NAV ───────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 500;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.25rem,5vw,2.5rem);
  background: rgba(250,244,232,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.nav-logo-mark {
  width: 36px; height: 36px; background: var(--espresso);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: 0 2px 8px rgba(61,31,13,.3);
}
.nav-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.nav-brand em { color: var(--caramel); font-style: italic; }

.nav-links { display: flex; align-items: center; gap: .1rem; list-style: none; }
.nav-link { font-size: .85rem; font-weight: 500; color: var(--text-mid); text-decoration: none; padding: .45rem 1rem; border-radius: var(--r-sm); transition: color .2s, background .2s; white-space: nowrap; }
.nav-link:hover { color: var(--ink); background: var(--linen); }
.nav-link.active { color: var(--caramel); }
.nav-link.nav-cta { background: var(--espresso); color: var(--cream) !important; box-shadow: 0 2px 8px rgba(61,31,13,.25); }
.nav-link.nav-cta:hover { background: var(--roast); transform: translateY(-1px); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: .5rem; border-radius: var(--r-sm); }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ───────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 2rem; border-radius: var(--r); font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .9rem; text-decoration: none; border: 2px solid transparent; transition: all .22s var(--ease); white-space: nowrap; cursor: pointer; }
.btn-primary { background: var(--espresso); color: var(--cream); border-color: var(--espresso); box-shadow: 0 4px 16px rgba(61,31,13,.25); }
.btn-primary:hover { background: var(--roast); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(61,31,13,.3); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-mid); }
.btn-secondary:hover { background: var(--linen); border-color: var(--text-mid); }
.btn-ghost { background: transparent; color: var(--text-mid); border-color: transparent; }
.btn-ghost:hover { background: var(--linen); }
.btn-sm { padding: .45rem 1.1rem; font-size: .8rem; border-radius: var(--r-sm); }
.btn-full { width: 100%; }

/* ── HERO ──────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; min-height: 92vh; display: grid; place-items: center; background: var(--ink); }

.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 25% 65%, #3d1f0d 0%, transparent 65%),
              radial-gradient(ellipse 55% 75% at 82% 28%, #2b1508 0%, transparent 68%),
              var(--ink);
}

.hero-rings { position: absolute; right: -6vw; top: 50%; transform: translateY(-50%); width: min(55vw,580px); height: min(55vw,580px); pointer-events: none; }

.hero-beans { position: absolute; inset: 0; pointer-events: none; }
.hb { position: absolute; opacity: .07; }
.hb svg { fill: var(--gold); }
.hb--1 { top: 12%; left: 68%; animation: drift 14s ease-in-out infinite; }
.hb--2 { top: 58%; left: 78%; animation: drift 11s ease-in-out 2s infinite; }
.hb--3 { top: 30%; left: 88%; animation: drift 16s ease-in-out .5s infinite; }
.hb--4 { top: 75%; left: 63%; animation: drift 13s ease-in-out 3s infinite; }
@keyframes drift { 0%,100%{transform:translateY(0) rotate(0)} 33%{transform:translateY(-20px) rotate(10deg)} 66%{transform:translateY(12px) rotate(-6deg)} }

.hero-steam { position: absolute; bottom: 0; left: 0; right: 0; height: 200px; pointer-events: none; }
.steam { position: absolute; bottom: 0; width: 2px; background: linear-gradient(to top, transparent, rgba(255,248,240,.4), transparent); border-radius: 2px; animation: steamUp 5s ease-in-out infinite; }
.steam--1 { left: 30%; height: 130px; animation-delay: 0s; }
.steam--2 { left: 50%; height: 100px; animation-delay: 1.2s; }
.steam--3 { left: 68%; height: 150px; animation-delay: 2.5s; }
@keyframes steamUp { 0%{opacity:0;transform:translateY(0) scaleX(1)} 30%{opacity:1} 70%{opacity:.4} 100%{opacity:0;transform:translateY(-90px) scaleX(3)} }

.hero-content { position: relative; z-index: 2; text-align: center; padding: clamp(5rem,12vh,8rem) clamp(1.25rem,5vw,2.5rem) clamp(4rem,8vh,6rem); max-width: 800px; }
.hero-eyebrow { animation: fadeUp .6s var(--ease) both; }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(4rem,12vw,9rem); font-weight: 300; line-height: .92; color: var(--cream); letter-spacing: -.025em; margin-bottom: 1.75rem; animation: fadeUp .6s var(--ease) .1s both; }
.hero-title em { font-style: italic; color: var(--gold-light); display: block; }
.hero-sub { font-size: clamp(1rem,2.5vw,1.2rem); color: rgba(250,244,232,.6); line-height: 1.75; margin-bottom: 2.5rem; animation: fadeUp .6s var(--ease) .2s both; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: fadeUp .6s var(--ease) .3s both; }
.hero-badge { position: absolute; bottom: clamp(1.5rem,4vw,3rem); left: 50%; transform: translateX(-50%); z-index: 2; text-align: center; white-space: nowrap; animation: fadeUp .6s var(--ease) .4s both; }
.hero-badge-label { font-family: 'DM Mono', monospace; font-size: .63rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }
.hero-badge-val { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.3rem,3vw,2rem); color: var(--cream); font-weight: 300; letter-spacing: .04em; }

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

/* ── PAGE HEADER ───────────────────────────────────────────────── */
.page-header { background: var(--espresso); padding: clamp(3.5rem,7vw,5.5rem) 0 clamp(3rem,5vw,4.5rem); position: relative; overflow: hidden; }
.page-header::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 36px; background: var(--cream); clip-path: ellipse(55% 100% at 50% 100%); }
.page-header .eyebrow { color: var(--gold-light); }
.page-title { font-size: clamp(2.8rem,7vw,5.5rem); color: var(--cream); font-weight: 300; margin-bottom: .5rem; letter-spacing: -.025em; }
.page-subtitle { color: rgba(250,244,232,.65); font-size: 1.05rem; }

/* ── SECTIONS ──────────────────────────────────────────────────── */
.section { padding: clamp(4rem,8vw,7rem) 0; }
.section--dark { background: var(--espresso); }
.section--tinted { background: var(--foam); }
.section--linen { background: var(--linen); }
.section-title { font-size: clamp(2rem,4.5vw,3.2rem); font-weight: 300; letter-spacing: -.02em; margin-bottom: .75rem; }
.section-lead { font-size: 1.05rem; color: var(--text-mid); line-height: 1.8; max-width: 580px; margin-bottom: clamp(2rem,4vw,3rem); }

/* ── MISSION ───────────────────────────────────────────────────── */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem,6vw,6rem); align-items: start; }
.mission-body p { color: var(--text-mid); line-height: 1.9; font-size: 1.05rem; margin-bottom: 1.4rem; }
.mission-body p:last-child { margin-bottom: 0; }

.pillars { display: flex; flex-direction: column; gap: 1.1rem; }
.pillar { display: flex; gap: 1.1rem; align-items: flex-start; background: white; border: 1px solid var(--border); border-radius: var(--r); padding: 1.4rem; transition: transform .22s var(--ease), box-shadow .22s; }
.pillar:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.pillar-glyph { flex-shrink: 0; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pillar-glyph img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.pillar h3 { font-size: 1rem; margin-bottom: .3rem; }
.pillar p { font-size: .86rem; color: var(--text-mid); line-height: 1.7; }

/* ── QUOTE ─────────────────────────────────────────────────────── */
.quote-band { padding: clamp(3.5rem,7vw,5.5rem) 0; text-align: center; }
.quote-band blockquote { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; font-size: clamp(1.5rem,3.5vw,2.2rem); color: var(--cream); line-height: 1.45; max-width: 640px; margin: 0 auto; }
.quote-band cite { display: block; margin-top: 1.2rem; font-style: normal; font-family: 'DM Mono', monospace; font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }

/* ── CTA ───────────────────────────────────────────────────────── */
.cta-section { text-align: center; }
.cta-section h2 { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 300; margin-bottom: 1rem; }
.cta-section p { color: var(--text-mid); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── DRINKS GRID ───────────────────────────────────────────────── */
.drinks-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.drink-card { background: white; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; display: flex; flex-direction: column; }
.drink-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.drink-art { height: 160px; background: var(--espresso); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.drink-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 40% 60%, var(--mahogany), var(--espresso)); }
.drink-art-inner { position: relative; z-index: 1; width: 100%; height: 100%; }
.drink-art-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drink-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.drink-body h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .5rem; }
.drink-desc { font-size: .88rem; color: var(--text-mid); line-height: 1.75; flex: 1; margin-bottom: 1rem; }
.drink-specs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.spec-tag { font-family: 'DM Mono', monospace; font-size: .68rem; background: var(--linen); border: 1px solid var(--border); color: var(--text-soft); border-radius: 4px; padding: .2rem .55rem; }
.drink-price { display: flex; justify-content: space-between; align-items: baseline; padding-top: .75rem; border-top: 1px solid var(--border); }
.price-main { font-family: 'Cormorant Garamond', serif; font-size: 1.75rem; font-weight: 600; color: var(--ink); }
.price-note { font-size: .78rem; color: var(--text-faint); }

/* ── BLENDS ────────────────────────────────────────────────────── */
.blends-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.blend-card { border-radius: var(--r-lg); border: 1.5px solid var(--border); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; background: white; }
.blend-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blend-card.featured { border-color: var(--caramel); }
.blend-card-stripe { height: 8px; }
.blend-card-stripe--choc { background: linear-gradient(90deg, var(--mahogany), var(--caramel)); }
.blend-card-stripe--gold { background: linear-gradient(90deg, var(--caramel), var(--gold-light)); }
.blend-card-stripe--floral { background: linear-gradient(90deg, #4a1e6b, #9b59b6); }
.blend-card-stripe--fruit { background: linear-gradient(90deg, #7b2d42, #c0392b); }
.blend-body { padding: 1.75rem; }
.blend-origin { font-family: 'DM Mono', monospace; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--caramel); margin-bottom: .4rem; }
.blend-name { font-size: 1.3rem; margin-bottom: .75rem; }
.flavor-row { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.flavor-chip { font-size: .75rem; padding: .2rem .65rem; border-radius: 20px; font-weight: 500; }
.flavor-chip--choc { background: var(--espresso); color: var(--cream); }
.flavor-chip--floral { background: #4a1e6b; color: #f0e8ff; }
.flavor-chip--fruit { background: #7b2d42; color: #fde8f0; }
.flavor-chip--default { background: var(--linen); color: var(--text-mid); }
.blend-desc { font-size: .88rem; color: var(--text-mid); line-height: 1.75; margin-bottom: .5rem; }
.blend-score { font-family: 'DM Mono', monospace; font-size: .72rem; color: var(--text-soft); margin-bottom: 1rem; }
.blend-badge { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 600; padding: .25rem .7rem; border-radius: 20px; }
.blend-badge--std { background: var(--linen); color: var(--text-mid); }
.blend-badge--spec { background: var(--caramel); color: white; }

/* ── EQUIPMENT ─────────────────────────────────────────────────── */
.equipment-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.equip-card { background: white; border: 1px solid var(--border); border-radius: var(--r); padding: 2rem; text-align: center; transition: transform .25s var(--ease), box-shadow .25s; }
.equip-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.equip-icon { margin-bottom: 1rem; }
.equip-icon img { width: 100%; max-height: 180px; object-fit: contain; border-radius: var(--r-sm); }
.equip-card h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.equip-card p { font-size: .88rem; color: var(--text-mid); line-height: 1.75; margin-bottom: .75rem; }
.equip-tag { display: inline-block; font-family: 'DM Mono', monospace; font-size: .68rem; background: var(--linen); border: 1px solid var(--border); color: var(--text-soft); border-radius: 4px; padding: .2rem .6rem; }

/* ── ORDER FORM ────────────────────────────────────────────────── */
.order-section { padding: clamp(2.5rem,5vw,4rem) 0 clamp(4rem,8vw,6rem); }
.order-form-wrap { max-width: 680px; margin: 0 auto; }

.form-group { margin-bottom: 2rem; }
.form-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .6rem; color: var(--ink); }
.form-hint { font-weight: 400; color: var(--text-faint); font-size: .82rem; }
.form-req { color: var(--caramel); }
.form-input { width: 100%; padding: .8rem 1.1rem; background: white; border: 1.5px solid var(--border); border-radius: var(--r-sm); color: var(--text); font-family: 'Outfit', sans-serif; font-size: .95rem; transition: border-color .18s, box-shadow .18s; appearance: none; }
.form-input:focus { outline: none; border-color: var(--caramel); box-shadow: 0 0 0 3px rgba(192,124,58,.14); }
.form-input::placeholder { color: var(--text-faint); }
.form-textarea { resize: vertical; min-height: 80px; }
.char-count { display: block; text-align: right; font-size: .75rem; color: var(--text-faint); margin-top: .3rem; }

.time-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: .4rem; }
.time-btn { padding: .6rem .2rem; text-align: center; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: white; cursor: pointer; font-family: 'DM Mono', monospace; font-size: .78rem; font-weight: 500; color: var(--text-mid); transition: all .18s var(--ease); }
.time-btn:hover:not(:disabled) { border-color: var(--caramel); background: var(--foam); color: var(--ink); }
.time-btn.selected { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.time-btn:disabled { opacity: .32; cursor: not-allowed; }

.choice-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; }
.choice-card { cursor: pointer; }
.choice-card input[type="radio"] { display: none; }
.choice-card-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: 1.25rem .75rem; border: 1.5px solid var(--border); border-radius: var(--r); background: white; transition: all .2s var(--ease); position: relative; }
.choice-card:hover .choice-card-inner { border-color: var(--caramel); background: var(--foam); }
.choice-card input:checked + .choice-card-inner { border-color: var(--espresso); background: var(--espresso); box-shadow: 0 4px 16px rgba(61,31,13,.2); }
.choice-card input:checked + .choice-card-inner .choice-name,
.choice-card input:checked + .choice-card-inner .choice-flavor,
.choice-card input:checked + .choice-card-inner .choice-origin { color: var(--cream) !important; opacity: .85; }
.choice-icon { font-size: 1.75rem; }
.choice-name { font-weight: 600; font-size: .88rem; color: var(--ink); }
.choice-origin { font-family: 'DM Mono', monospace; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--caramel); }
.choice-flavor { font-size: .78rem; color: var(--text-mid); }
.choice-badge { position: absolute; top: .6rem; right: .6rem; font-size: .62rem; font-weight: 600; padding: .15rem .45rem; border-radius: 10px; }
.badge--std { background: var(--linen); color: var(--text-mid); }
.badge--spec { background: var(--caramel); color: white; }
.choice-card input:checked + .choice-card-inner .badge--std { background: rgba(255,255,255,.15); color: var(--cream); }
.choice-card input:checked + .choice-card-inner .badge--spec { background: var(--gold); }

.price-preview { background: var(--foam); border: 1.5px solid var(--border-mid); border-radius: var(--r); padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.price-desc { font-size: .88rem; color: var(--text-mid); }
.price-amount { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--ink); white-space: nowrap; flex-shrink: 0; }
.form-error { text-align: center; font-size: .85rem; color: var(--red); margin-top: .75rem; min-height: 1.2em; }

/* ── MODAL ─────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 800; background: rgba(26,14,7,.72); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal { background: var(--cream); border-radius: var(--r-xl); max-width: 520px; width: 100%; padding: clamp(1.75rem,4vw,2.5rem); max-height: 90vh; overflow-y: auto; transform: translateY(28px) scale(.97); transition: transform .3s var(--ease-spring); box-shadow: var(--shadow-xl); }
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-icon { font-size: 3rem; text-align: center; margin-bottom: .75rem; }
.modal-title { font-size: 2rem; text-align: center; margin-bottom: .25rem; font-weight: 300; }
.modal-sub { text-align: center; color: var(--text-mid); margin-bottom: 1.75rem; font-size: .9rem; }
.summary-box { background: white; border: 1px solid var(--border); border-radius: var(--r); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; padding: .35rem 0; font-size: .9rem; }
.summary-row .lbl { color: var(--text-mid); }
.summary-row .val { font-weight: 500; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .75rem; margin-top: .5rem; border-top: 1px solid var(--border); font-weight: 600; }
.summary-total-price { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--ink); }
.payment-section h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.payment-opts { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; }
.payment-opt { display: flex; align-items: flex-start; gap: .9rem; background: white; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1rem; }
.pay-icon { font-size: 1.4rem; flex-shrink: 0; padding-top: .1rem; }
.pay-name { font-weight: 600; font-size: .9rem; margin-bottom: .15rem; }
.pay-desc { font-size: .8rem; color: var(--text-mid); }
.qr-box { margin-top: .5rem; background: var(--linen); border: 1px dashed var(--border-mid); border-radius: 6px; padding: .75rem 1rem; font-family: 'DM Mono', monospace; font-size: .75rem; text-align: center; color: var(--text-mid); }
.qr-box small { display: block; color: var(--caramel); margin-top: .2rem; font-weight: 600; }

/* ── MANAGE ────────────────────────────────────────────────────── */
.manage-section { padding: clamp(2.5rem,5vw,4rem) 0 clamp(4rem,8vw,6rem); }
.manage-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.75rem; }
.stat-chips { display: flex; gap: .6rem; flex-wrap: wrap; }
.stat-chip {
  font-family: 'DM Mono', monospace; font-size: .75rem; font-weight: 500;
  padding: .3rem .85rem; border-radius: 20px; border: 1px solid var(--border);
  background: white; color: var(--text-mid); cursor: pointer;
  transition: all .18s var(--ease);
}
.stat-chip:hover { border-color: var(--text-mid); background: var(--linen); }
.stat-chip.active { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.stat-chip--ready { background: var(--green-bg); border-color: #b8dac4; color: var(--green); }
.stat-chip--ready:hover { background: #d4edda; border-color: var(--green); }
.stat-chip--ready.active { background: var(--green); border-color: var(--green); color: white; }
.orders-empty { text-align: center; padding: 5rem 2rem; color: var(--text-mid); }
.orders-empty-icon { font-size: 3.5rem; display: block; margin-bottom: 1rem; }
.order-card { background: white; border: 1px solid var(--border); border-radius: var(--r); padding: 1.4rem 1.6rem; margin-bottom: .85rem; transition: box-shadow .2s; }
.order-card:hover { box-shadow: var(--shadow); }
.order-card-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.order-name { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; }
.order-id { font-family: 'DM Mono', monospace; font-size: .68rem; color: var(--text-faint); }
.order-pickup { font-family: 'DM Mono', monospace; font-size: .85rem; color: var(--caramel); font-weight: 500; text-align: right; }
.order-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.order-tag { font-size: .75rem; font-weight: 500; padding: .2rem .65rem; border-radius: 6px; }
.order-tag--drink { background: var(--espresso); color: var(--cream); }
.order-tag--blend { background: var(--linen); color: var(--text-mid); }
.order-tag--price { background: var(--caramel); color: white; font-family: 'DM Mono', monospace; }
.order-tag--comment { background: var(--blue-bg); color: var(--blue); }
.order-actions {
  display: flex; align-items: center; gap: .5rem;
  padding-top: .85rem; margin-top: .25rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.oa-left { flex: 0 0 auto; }
.oa-center { display: flex; gap: .5rem; align-items: center; flex: 1; justify-content: center; flex-wrap: wrap; }
.oa-right { display: flex; gap: .5rem; align-items: center; margin-left: auto; }
.action-btn { font-size: .78rem; padding: .38rem .85rem; border-radius: var(--r-sm); border: 1.5px solid transparent; font-weight: 600; transition: all .18s; font-family: 'Outfit', sans-serif; background: transparent; white-space: nowrap; }
.action-btn--made { border-color: var(--caramel); color: var(--caramel); }
.action-btn--made.on,.action-btn--made:hover { background: var(--caramel); color: white; border-color: var(--caramel); }
.action-btn--paid { border-color: var(--green); color: var(--green); }
.action-btn--paid.on,.action-btn--paid:hover { background: var(--green); color: white; }
.action-btn--picked { border-color: var(--blue); color: var(--blue); }
.action-btn--picked.on,.action-btn--picked:hover { background: var(--blue); color: white; }
.action-btn--done { border-color: var(--ink); color: var(--ink); }
.action-btn--done:hover { background: var(--ink); color: var(--cream); }
.pay-select { font-size: .78rem; padding: .35rem .65rem; border-radius: var(--r-sm); border: 1.5px solid var(--border); background: white; color: var(--text); font-family: 'Outfit', sans-serif; }

/* ── ADMIN LOCK ────────────────────────────────────────────────── */
.lock-screen { position: fixed; inset: 0; z-index: 600; display: flex; align-items: center; justify-content: center; background: var(--ink); padding: 1.5rem; }
.lock-card { background: var(--cream); border-radius: var(--r-xl); padding: clamp(2rem,5vw,3rem) clamp(1.5rem,4vw,2.5rem); text-align: center; max-width: 360px; width: 100%; box-shadow: var(--shadow-xl); }
.lock-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.lock-title { font-size: 1.9rem; font-weight: 300; margin-bottom: .5rem; }
.lock-desc { color: var(--text-mid); margin-bottom: 2rem; font-size: .9rem; }
.pin-dots { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.75rem; }
.pin-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-mid); background: transparent; transition: all .15s; }
.pin-dot.filled { background: var(--espresso); border-color: var(--espresso); transform: scale(1.15); }
.pin-dot.error { background: var(--red); border-color: var(--red); }
.pin-pad { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; max-width: 210px; margin: 0 auto 1rem; }
.pin-key { aspect-ratio: 1; border-radius: var(--r-sm); border: 1.5px solid var(--border); background: white; font-family: 'DM Mono', monospace; font-size: 1.1rem; font-weight: 500; color: var(--ink); transition: all .15s; }
.pin-key:hover { background: var(--linen); border-color: var(--border-mid); }
.pin-key:active { transform: scale(.92); }
.pin-key--del { font-size: .95rem; color: var(--text-mid); }
.pin-key--enter { background: var(--espresso); color: var(--cream); border-color: var(--espresso); font-size: 1rem; }
.pin-key--enter:hover { background: var(--roast); }
.lock-error { font-size: .82rem; color: var(--red); min-height: 1.2em; }

/* ── ADMIN DASHBOARD ───────────────────────────────────────────── */
.admin-hidden { display: none; }
.admin-visible { display: block; }
.admin-tabs-bar { position: sticky; top: 68px; z-index: 100; background: var(--foam); border-bottom: 1px solid var(--border); }
.admin-tabs { display: flex; overflow-x: auto; }
.admin-tab { padding: 1rem 1.5rem; background: none; border: none; font-family: 'Outfit', sans-serif; font-weight: 500; font-size: .88rem; color: var(--text-mid); border-bottom: 2.5px solid transparent; white-space: nowrap; transition: all .2s; }
.admin-tab:hover { color: var(--ink); }
.admin-tab.active { color: var(--caramel); border-bottom-color: var(--caramel); }
.admin-tab-content { display: none; padding: clamp(2rem,5vw,3.5rem) 0 clamp(3rem,6vw,5rem); }
.admin-tab-content.active { display: block; }
.tab-title { font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 300; margin-bottom: .5rem; }
.tab-desc { color: var(--text-mid); margin-bottom: 2rem; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.75rem; }
.lock-btn { margin-left: auto; }
.filter-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.completed-card { background: white; border: 1px solid var(--border); border-radius: var(--r); padding: 1.25rem 1.5rem; margin-bottom: .75rem; display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.completed-info { flex: 1; min-width: 200px; }
.completed-name { font-weight: 600; margin-bottom: .25rem; }
.completed-detail { font-size: .84rem; color: var(--text-mid); }
.completed-badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.status-badge { font-size: .7rem; font-weight: 600; padding: .18rem .6rem; border-radius: 20px; }
.badge--paid { background: var(--green-bg); color: var(--green); }
.badge--unpaid { background: var(--red-bg); color: var(--red); }
.badge--picked { background: var(--blue-bg); color: var(--blue); }
.badge--not-picked { background: var(--linen); color: var(--text-faint); }
.badge--pm { background: var(--linen); color: var(--text-mid); }
.completed-price { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; white-space: nowrap; }
.completed-date { font-family: 'DM Mono', monospace; font-size: .68rem; color: var(--text-faint); }

.prices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.price-group-title { font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.price-row-item { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.price-row-label { font-size: .9rem; color: var(--text-mid); }
.price-input-wrap { display: flex; align-items: center; gap: .4rem; }
.price-num-input { width: 65px; padding: .38rem .6rem; text-align: right; border: 1.5px solid var(--border); border-radius: 6px; font-family: 'DM Mono', monospace; font-size: .9rem; font-weight: 600; color: var(--ink); background: white; }
.price-num-input:focus { outline: none; border-color: var(--caramel); }
.price-currency { font-size: .82rem; color: var(--text-mid); }
.save-confirm { margin-top: .75rem; color: var(--green); font-size: .88rem; }

.period-tabs { display: flex; gap: .4rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.period-tab { padding: .4rem 1.1rem; border-radius: 8px; border: 1.5px solid var(--border); background: white; color: var(--text-mid); font-size: .84rem; font-family: 'Outfit', sans-serif; transition: all .18s; }
.period-tab:hover { border-color: var(--caramel); color: var(--caramel); }
.period-tab.active { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.stats-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-bottom: 3rem; }
.kpi-card { background: var(--foam); border: 1px solid var(--border); border-radius: var(--r); padding: 1.75rem; text-align: center; }
.kpi-value { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 300; color: var(--ink); display: block; }
.kpi-label { font-family: 'DM Mono', monospace; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.stats-charts { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.chart-group h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1.1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.bar-list { display: flex; flex-direction: column; gap: .7rem; }
.bar-meta, .stat-bar-label { display: flex; justify-content: space-between; margin-bottom: .3rem; font-size: .8rem; }
.bar-name, .stat-bar-name { color: var(--text-mid); }
.bar-val, .stat-bar-val { font-weight: 600; font-family: 'DM Mono', monospace; color: var(--ink); }
.bar-track, .stat-bar-track { height: 5px; background: var(--linen); border-radius: 3px; overflow: hidden; }
.bar-fill, .stat-bar-fill { height: 100%; background: var(--caramel); border-radius: 3px; transition: width .6s var(--ease); }

/* ── FOOTER ────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--cream); padding: clamp(2rem,4vw,3rem); text-align: center; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 300; margin-bottom: .5rem; }
.footer-logo em { color: var(--gold); font-style: italic; }
.footer-line { font-size: .82rem; color: rgba(250,244,232,.45); }
.footer-line + .footer-line { margin-top: .3rem; }

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; z-index: 499; background: var(--foam); border-bottom: 1px solid var(--border); padding: .75rem; gap: .15rem; }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; padding: .65rem 1rem; }
  .mission-grid { grid-template-columns: 1fr; }
  .drinks-grid { grid-template-columns: 1fr; }
  .blends-grid { grid-template-columns: 1fr; }
  .equipment-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .hero-badge { display: none; }
  .page-header::after { height: 22px; }
  .stats-charts { grid-template-columns: 1fr; }
  .stats-kpis { grid-template-columns: 1fr; }
  .prices-grid { grid-template-columns: 1fr; }
  .time-grid { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 480px) {
  .choice-grid { grid-template-columns: 1fr; }
  .time-grid { grid-template-columns: repeat(3,1fr); }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* ─── PAGE HEADER BEANS ──────────────────────────────────────────────────── */
.page-header-beans { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.phb { position: absolute; opacity: .12; }
.phb svg { fill: var(--gold-light); }
.phb--1 { top: 10%; right: 4%;  animation: drift 14s ease-in-out infinite; }
.phb--2 { top: 55%; right: 12%; animation: drift 11s ease-in-out 2s infinite; }
.phb--3 { top: 25%; right: 22%; animation: drift 16s ease-in-out .5s infinite; }
.phb--4 { top: 70%; left: 3%;  animation: drift 13s ease-in-out 3s infinite; }
.phb--5 { top: 15%; left: 18%; animation: drift 15s ease-in-out 1s infinite; }
.phb--6 { top: 45%; left: 8%;  animation: drift 12s ease-in-out 4s infinite; }

/* ─── ORDER STATUS (non-admin view) ──────────────────────────────────────── */
.order-status { padding: .75rem 1rem; border-radius: var(--r-sm); font-weight: 600; font-size: .85rem; margin-top: .85rem; border-top: 1px solid var(--border); padding-top: .85rem; }
.order-status--pending { color: var(--caramel); }
.order-status--ready { color: var(--green); }

/* ─── DRINK CHOICE IMAGES ─────────────────────────────────────────────────── */
.choice-drink-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform .2s cubic-bezier(.4,0,.2,1);
}
.choice-card:hover .choice-drink-img {
  transform: scale(1.06);
}
/* Subtle darken when card is selected so text on dark bg stays readable */
.choice-card input:checked ~ .choice-card-inner .choice-drink-img,
.choice-card input:checked + .choice-card-inner .choice-drink-img {
  filter: brightness(.82) saturate(.75);
}

/* ── CR-1: Name + Phone inline row ─────────────────────────────── */
.name-phone-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.name-phone-col { display: flex; flex-direction: column; }

.field-error {
  display: block;
  font-size: .78rem;
  color: var(--red);
  margin-top: .3rem;
  min-height: 1.1em;
}

/* ── CR-2: After hours button ───────────────────────────────────── */
.time-btn--ah {
  margin-top: .5rem;
  width: 100%;
  font-size: .82rem;
  letter-spacing: .04em;
  border-style: dashed;
  color: var(--text-mid);
}
.time-btn--ah.selected {
  background: var(--espresso);
  border-color: var(--espresso);
  border-style: solid;
  color: var(--cream);
}

/* ── CR-2: After hours sub-section ─────────────────────────────── */
.ah-section {
  margin-top: .85rem;
  padding: 1rem 1.25rem;
  background: var(--foam);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r);
}
.ah-note {
  font-size: .84rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0 0 .5rem;
}
.ah-note em {
  font-style: italic;
  color: var(--ink);
  font-weight: 600;
}
.ah-time-hint {
  display: block;
  font-size: .78rem;
  color: var(--caramel);
  margin-top: .3rem;
  font-style: italic;
}

/* ── CR-5: After hours modal confirmation note ──────────────────── */
.ah-confirm-msg {
  background: var(--foam);
  border: 1.5px solid var(--border-mid);
  border-left: 4px solid var(--caramel);
  border-radius: var(--r-sm);
  padding: .9rem 1.1rem;
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.ah-confirm-msg em {
  font-style: italic;
  color: var(--ink);
  font-weight: 600;
}

/* ── CR-1 responsive: stack on narrow screens ───────────────────── */
@media (max-width: 480px) {
  .name-phone-row { grid-template-columns: 1fr; }
}

/* ── BLEND RANGE BADGES ─────────────────────────────────────────── */
.blend-badge { display: inline-block; font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 20px; }
.blend-badge--specialty { background: var(--espresso); color: var(--cream); }
.blend-badge--premium   { background: var(--caramel); color: white; }
.blend-badge--microlot  { background: var(--ink); color: var(--gold); }
.blend-badge--inactive  { background: var(--linen); color: var(--text-faint); }
.blend-badge--archived  { background: var(--linen); color: var(--text-faint); }

/* badge used inside choice cards on order page */
.choice-badge.blend-badge--specialty { background: var(--espresso); color: var(--cream); }
.choice-badge.blend-badge--premium   { background: var(--caramel); color: white; }
.choice-badge.blend-badge--microlot  { background: var(--ink); color: var(--gold); }

/* ── ADMIN BLEND LIST ───────────────────────────────────────────── */
.blend-row { background: white; border: 1px solid var(--border); border-radius: var(--r); padding: 1.1rem 1.4rem; margin-bottom: .65rem; transition: box-shadow .2s; }
.blend-row:hover { box-shadow: var(--shadow); }
.blend-row--inactive { opacity: .65; }
.blend-row--archived { opacity: .55; background: var(--foam); }
.blend-row-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.blend-row-info { flex: 1; min-width: 0; }
.blend-row-title { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.blend-row-origin { font-size: .75rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: .07em; font-family: 'DM Mono', monospace; }
.blend-row-name { font-weight: 600; font-size: 1rem; }
.blend-row-prices { display: flex; gap: .4rem; flex-wrap: wrap; }
.blend-row-actions { display: flex; gap: .4rem; align-items: center; flex-shrink: 0; }
.blend-price-chip { font-size: .76rem; background: var(--linen); border-radius: 6px; padding: .2rem .55rem; color: var(--text-mid); white-space: nowrap; }
.blend-price-chip strong { color: var(--ink); }

/* ── BLEND EDITOR ───────────────────────────────────────────────── */
.blend-editor { background: var(--foam); border: 1.5px solid var(--border-mid); border-radius: var(--r-lg); padding: clamp(1.25rem,3vw,2rem); margin-bottom: 2rem; }
.blend-editor-title { font-size: 1.3rem; font-weight: 600; margin-bottom: .5rem; }
.blend-editor-error { font-size: .84rem; color: var(--red); min-height: 1.2em; margin-bottom: .75rem; }
.blend-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.blend-editor-col { display: flex; flex-direction: column; gap: .1rem; }
.blend-editor-actions { display: flex; gap: .75rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.toggle-label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--text-mid); cursor: pointer; }

/* ── FLAVOUR TAG INPUT ──────────────────────────────────────────── */
.flavour-tag-input { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; padding: .45rem .75rem; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: white; min-height: 42px; cursor: text; }
.flavour-tag-input:focus-within { border-color: var(--caramel); }
.flavour-chips { display: contents; }
.flavour-text-input { border: none; outline: none; font-size: .88rem; font-family: 'Outfit', sans-serif; background: transparent; min-width: 100px; flex: 1; color: var(--ink); }
.chip-remove { background: none; border: none; cursor: pointer; color: var(--text-faint); font-size: .9rem; padding: 0 0 0 .2rem; line-height: 1; }
.chip-remove:hover { color: var(--red); }

/* ── MENU BLEND PRICES ROW ──────────────────────────────────────── */
.blend-prices-row { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .75rem; }
.blend-card-stripe { height: 4px; background: var(--caramel); border-radius: 2px 2px 0 0; margin: -1px -1px 0; border-radius: var(--r) var(--r) 0 0; }

@media (max-width: 768px) {
  .blend-editor-grid { grid-template-columns: 1fr; }
  .blend-row-main { flex-direction: column; }
}
