/* ============================================
   KAFFA. Demo case study (v2: terracotta / cream / green)
   ============================================ */

:root {
  --terracotta: #d97a4f;
  --terracotta-deep: #b85f38;
  --cream: #f5ede0;
  --cream-warm: #ede0ca;
  --green: #1f3d2e;
  --green-deep: #16291e;
  --green-bright: #2f5943;

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Onest', -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --wrap: min(1180px, 92vw);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--green);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: var(--wrap); margin: 0 auto; }

::selection { background: var(--green); color: var(--cream); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb {
  background: var(--terracotta);
  border-radius: 0;
  border: 3px solid var(--cream);
}
html { scrollbar-color: var(--terracotta) var(--cream); scrollbar-width: thin; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

#menu, #about, #locations, #booking {
  scroll-margin-top: 96px;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- Type ---------- */

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 2.6rem;
  max-width: 16ch;
}
.section-title-light { color: var(--cream); }

p { line-height: 1.6; max-width: 60ch; }

/* ---------- Buttons ---------- */

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  padding: 0.95em 1.8em;
  border-radius: 999px;
  border: none;
  background: var(--green);
  color: var(--cream);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.btn-cta:hover { background: var(--green-bright); }
.btn-cta:active { transform: scale(0.97); }

.btn-cta-lg { font-size: 1.05rem; padding: 1.05em 2.1em; }
.btn-cta-block { width: 100%; }
.btn-cta-ghost {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-cta-ghost:hover { background: var(--green); color: var(--cream); }

/* ============================================
   Header. Always-on cream bar so the green CTA pops
   ============================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 237, 224, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(31, 61, 46, 0.1);
}

.site-header .wrap { width: min(1440px, 95vw); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 1.6rem 0;
  min-height: 88px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
  color: var(--green);
}

.nav {
  display: flex;
  gap: 3.2rem;
  margin-right: auto;
  margin-left: 5rem;
}

.nav-link {
  position: relative;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green);
  opacity: 0.72;
  transition: opacity 180ms ease;
  padding: 0.3rem 0;
}
.nav-link:hover { opacity: 1; }

.header-cta {
  flex-shrink: 0;
  font-size: 1.02rem;
  padding: 1em 2em;
  background: var(--terracotta);
  color: var(--green-deep);
}
.header-cta:hover { background: var(--terracotta-deep); }

.lang-switch {
  display: flex;
  flex-shrink: 0;
  background: rgba(31, 61, 46, 0.06);
  border: 1px solid rgba(31, 61, 46, 0.14);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 7px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--green);
  opacity: 0.75;
  cursor: pointer;
  transition: background 200ms ease, opacity 200ms ease, color 200ms ease;
}
.lang-btn:hover { opacity: 0.9; }
.lang-btn.active {
  background: var(--terracotta);
  color: var(--cream);
  opacity: 1;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 95;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--green);
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  container-type: inline-size;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(255,255,255,0.14), transparent 55%),
    radial-gradient(140% 100% at 20% 100%, rgba(22,41,30,0.22), transparent 60%),
    var(--terracotta);
}

.hero-bgword {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4.5rem, 21cqw, 26rem);
  letter-spacing: -0.03em;
  color: rgba(245, 237, 224, 0.24);
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  opacity: 0;
  transform: scale(0.94, 1.36);
  animation: bgword-in 950ms var(--ease-out) 100ms forwards;
}

@keyframes bgword-in {
  to { opacity: 1; transform: scale(1, 1.45); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bgword { animation: none; opacity: 1; transform: none; }
}

/* ============================================
   Hero bottom band (headline + stat + CTA), scrolls with the hero
   ============================================ */

.hero-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  background: var(--cream);
  border-top: 1px solid rgba(31, 61, 46, 0.12);
  box-shadow: 0 -30px 60px rgba(22, 15, 6, 0.16);
}

.hero-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 2.5rem 0;
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  animation: copy-in 720ms var(--ease-out) 1.7s forwards;
}

@keyframes copy-in { to { opacity: 1; transform: translateY(0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .hero-copy { animation: none; opacity: 1; transform: none; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--green);
  margin: 0;
  flex: 1 1 260px;
}
.hero-title em {
  font-style: normal;
  font-weight: 800;
  color: var(--terracotta-deep);
}

.hero-sub {
  font-size: 0.98rem;
  color: var(--green);
  opacity: 0.78;
  max-width: 32ch;
  margin: 0;
  flex: 1 1 300px;
}

.hero-copy .btn-cta { flex-shrink: 0; }

/* ============================================
   Shared: eyebrow, icon badge, generic stagger-reveal items
   ============================================ */

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin: 0 0 1rem;
}
.eyebrow-light { color: rgba(245, 237, 224, 0.7); }

.icon-badge {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(217, 122, 79, 0.12);
}
.icon-badge svg { width: 22px; height: 22px; stroke: var(--terracotta-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-badge-light { background: rgba(245, 237, 224, 0.12); }
.icon-badge-light svg { stroke: var(--cream); }

/* generic stagger-in item, shared by menu list / product grid / why grid / steps / reviews */
.stagger-item { opacity: 0; transform: translateY(22px) scale(0.985); }
.stagger-item.is-visible { animation: item-in 620ms var(--ease-out) forwards; }

/* ============================================
   Hero product card + cup illustration
   ============================================ */

.hero-top {
  position: relative;
  z-index: 6;
  padding-top: clamp(6rem, 14vh, 9rem);
  text-align: center;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin: 0 auto;
  max-width: 16ch;
}
.hero-headline em {
  font-style: normal;
  color: var(--green-deep);
}


/* ============================================
   Our coffee (product cards)
   ============================================ */

.our-coffee { padding: 8rem 0; background: var(--cream); }

.product-grid {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.product-card {
  background: var(--cream-warm);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.product-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  color: var(--green-deep);
  margin: 0;
}

.product-card p { color: var(--green); opacity: 0.78; font-size: 0.94rem; margin: 0; max-width: none; }

/* ============================================
   Why KAFFA (numbered reasons)
   ============================================ */

.why { padding: 8rem 0; background: var(--green-deep); color: var(--cream); }

.why-grid {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.why-card:nth-child(4), .why-card:nth-child(5) { grid-column: span 1; }

.why-card {
  border-radius: var(--radius);
  padding: 2rem 1.8rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(245, 237, 224, 0.06);
}
.why-card-terracotta { background: var(--terracotta); }
.why-card-cream { background: var(--cream); }

.why-card-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(245, 237, 224, 0.3);
}
.why-card-terracotta .why-card-num { color: rgba(22, 41, 30, 0.35); }
.why-card-cream .why-card-num { color: rgba(31, 61, 46, 0.22); }

.why-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin: 0;
}
.why-card-terracotta .why-card-title,
.why-card-cream .why-card-title { color: var(--green-deep); }

.why-card p { font-size: 0.92rem; opacity: 0.72; margin: 0; max-width: none; }
.why-card-terracotta p, .why-card-cream p { color: var(--green-deep); opacity: 0.72; }

/* ============================================
   How it works (3 steps)
   ============================================ */

.how { padding: 8rem 0; background: var(--cream-warm); }
.how-head { text-align: center; }
.how-head .section-title { margin-left: auto; margin-right: auto; }

.steps-grid {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.step-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2.2rem;
  text-align: center;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--terracotta-deep);
  margin-bottom: 1rem;
}

.step-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  color: var(--green-deep);
  margin: 0 0 0.6rem;
}

.step-card p { color: var(--green); opacity: 0.78; font-size: 0.94rem; margin: 0 auto; max-width: 32ch; }

/* ============================================
   Reviews
   ============================================ */

.reviews { padding: 8rem 0; background: var(--cream); }

.reviews-grid {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.review-card {
  background: var(--green-deep);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  min-height: 220px;
}

.review-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
  flex: 1;
}

.review-author { font-size: 0.86rem; color: var(--terracotta); font-weight: 600; }

/* ============================================
   About / founders story
   ============================================ */

.about { padding: 8rem 0; background: var(--cream); }

.about-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4.5rem;
  align-items: start;
}

.about-year {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.85;
  color: var(--terracotta);
  letter-spacing: -0.035em;
}

.about-copy p { color: var(--green); opacity: 0.86; font-size: 1.06rem; }
.about-copy p:first-of-type { opacity: 1; }
.about-copy[data-reveal="fade"] { transition-delay: 120ms; }

/* ============================================
   Menu
   ============================================ */

.menu { padding: 8rem 0; background: var(--green-deep); color: var(--cream); }

.menu-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.menu-head .section-title { margin-bottom: 0; }
.menu-hint { color: rgba(245,237,224,0.6); font-size: 0.92rem; max-width: 30ch; margin: 0; }

.menu-tabs { display: flex; gap: 0.6rem; margin-bottom: 2rem; }

.menu-tab {
  padding: 10px 22px;
  border: 1.5px solid rgba(245, 237, 224, 0.3);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cream);
  opacity: 0.65;
  cursor: pointer;
  transition: background 200ms ease, opacity 200ms ease, border-color 200ms ease;
}
.menu-tab:hover { opacity: 0.9; }
.menu-tab.is-active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--cream);
  opacity: 1;
}

.menu-list { list-style: none; margin: 0; padding: 0; }

.menu-item-btn {
  all: unset;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  width: 100%;
  cursor: pointer;
  padding: 1.85rem 0.5rem;
  border-bottom: 1px solid rgba(245, 237, 224, 0.16);
  transition: background-color 200ms var(--ease-out), padding-left 200ms var(--ease-out);
  box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
  .menu-item-btn:hover { background: rgba(245, 237, 224, 0.05); padding-left: 1rem; }
}

.menu-item-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 237, 224, 0.4);
  position: relative;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.menu-item-check::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 6px;
  border-left: 2px solid var(--green-deep);
  border-bottom: 2px solid var(--green-deep);
  transform: translate(-50%, -60%) rotate(-45deg) scale(0.6);
  opacity: 0;
  transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out);
}

.menu-item-btn[aria-pressed="true"] .menu-item-check {
  background: var(--terracotta);
  border-color: var(--terracotta);
}
.menu-item-btn[aria-pressed="true"] .menu-item-check::after {
  opacity: 1;
  transform: translate(-50%, -60%) rotate(-45deg) scale(1);
}
.menu-item-btn[aria-pressed="true"] { background: rgba(217, 122, 79, 0.08); }

.menu-item-head {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-width: 0;
  text-align: left;
}

.menu-item-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  letter-spacing: -0.015em;
  flex-shrink: 0;
}
.menu-item-tag { font-style: normal; font-weight: 500; font-size: 0.8rem; color: var(--terracotta); margin-left: 0.4em; }

.menu-item-leader {
  flex: 1;
  border-bottom: 1px dotted rgba(245, 236, 223, 0.28);
  transform: translateY(-0.4em);
  min-width: 1.5rem;
}

.menu-item-price {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--terracotta);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.menu-item-price small { font-weight: 500; opacity: 0.7; font-size: 0.7em; }

.menu-item-note {
  flex-basis: 100%;
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: rgba(245, 237, 224, 0.62);
  text-align: left;
  max-width: 50ch;
}

/* menu scroll reveal, single stagger group */
.menu-item { opacity: 0; transform: translateY(22px) scale(0.985); }
.menu-item.is-visible { animation: item-in 620ms var(--ease-out) forwards; }
@keyframes item-in { to { opacity: 1; transform: translateY(0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .menu-item, .stagger-item { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ============================================
   Booking
   ============================================ */

.booking { padding: 8rem 0; background: var(--cream); }

.booking-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.booking-intro p { color: var(--green); opacity: 0.82; font-size: 1.04rem; }

.booking-panel {
  position: relative;
  background: var(--green-deep);
  border-radius: var(--radius);
  padding: 2.6rem;
  min-height: 480px;
}

.booking-form[hidden] { display: none; }
.booking-form { display: flex; flex-direction: column; gap: 1.3rem; }

.preorder[hidden] { display: none; }
.preorder {
  border: 1px dashed rgba(217, 122, 79, 0.5);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.preorder-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--terracotta); }
.preorder-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.preorder-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 237, 224, 0.08);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.35rem 0.4rem 0.35rem 0.8rem;
  font-size: 0.85rem;
}
.preorder-chip-remove {
  all: unset;
  cursor: pointer;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 237, 224, 0.14);
  font-size: 0.8rem;
  line-height: 1;
  transition: background-color 160ms ease;
}
.preorder-chip-remove:hover { background: var(--terracotta); }
.preorder-total { font-size: 0.85rem; color: rgba(245,237,224,0.6); font-variant-numeric: tabular-nums; }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(245, 237, 224, 0.65);
  text-transform: uppercase;
}

.field input, .field select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(217, 122, 79, 0.4);
  padding: 0.6rem 0.1rem;
  transition: border-color 200ms ease;
}
.field select option { background: var(--green-deep); color: var(--cream); }
.field input::placeholder { color: rgba(245, 237, 224, 0.4); }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--terracotta); }
.field input[type="date"], .field input[type="time"] { color-scheme: dark; }

.booking-form .btn-cta { margin-top: 0.6rem; }

.booking-success[hidden] { display: none; }
.booking-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 2rem 0;
  color: var(--cream);
}
.success-check { width: 72px; height: 72px; margin-bottom: 0.6rem; }
.success-circle { stroke: var(--terracotta); stroke-dasharray: 252; stroke-dashoffset: 252; animation: draw 550ms var(--ease-out) forwards; }
.success-tick { stroke: var(--terracotta); stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw 350ms var(--ease-out) 480ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.booking-success h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin: 0; }
.booking-success p { color: rgba(245,237,224,0.7); max-width: 34ch; }
.booking-success .btn-cta-ghost { margin-top: 1rem; border-color: var(--terracotta); color: var(--cream); }
.booking-success .btn-cta-ghost:hover { background: var(--terracotta); color: var(--green-deep); }

/* ============================================
   Locations
   ============================================ */

.locations { padding: 8rem 0; background: var(--cream-warm); }

.locations-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.75rem;
  align-items: center;
}

.locations-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.location-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.6rem 0 1.6rem 1.2rem;
  border-left: 2px solid rgba(31, 61, 46, 0.18);
  cursor: default;
  transition: border-color 220ms ease, opacity 220ms ease;
  opacity: 0.55;
}
.location-item.is-active { border-left-color: var(--terracotta); opacity: 1; }

.location-name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.location-addr { color: var(--green); opacity: 0.7; font-size: 0.95rem; }
.location-hours { color: var(--terracotta-deep); font-size: 0.82rem; }

.locations-map { background: var(--green-deep); border-radius: var(--radius); padding: 2.2rem; }
.map-grid { opacity: 0.35; }

.map-pin { cursor: default; transition: transform 260ms var(--ease-out); }
.map-pin path, .map-pin circle { transition: fill 220ms ease; }
.map-pin path { fill: rgba(245, 237, 224, 0.3); }
.map-pin circle { fill: var(--green-deep); }
.map-pin.is-active { transform: translate(0, -6px) scale(1.14); }
.map-pin.is-active path { fill: var(--terracotta); }
.map-pin.is-active circle { fill: var(--green-deep); }

/* ============================================
   Demo notice band
   ============================================ */

.demo-band { background: var(--terracotta); padding: 2.4rem 0; }
.demo-band-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.demo-band-row p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--green-deep);
  margin: 0;
  max-width: 42ch;
  line-height: 1.25;
}
.demo-band-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-deep);
  border-bottom: 2px solid var(--green-deep);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: opacity 180ms ease;
}
.demo-band-link:hover { opacity: 0.7; }

/* ============================================
   Footer
   ============================================ */

.site-footer { background: var(--green-deep); color: rgba(245,237,224,0.6); padding: 3.5rem 0 1.6rem; }

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(217, 122, 79, 0.18);
}
.wordmark-footer { display: block; margin-bottom: 0.6rem; color: var(--cream); }
.footer-brand p { margin: 0; font-size: 0.95rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; }
.footer-contact a { font-weight: 600; color: var(--cream); transition: color 180ms ease; }
.footer-contact a:hover { color: var(--terracotta); }
.footer-meta { padding-top: 1.4rem; font-size: 0.8rem; }

/* ============================================
   Scroll reveal (About / Booking-intro / Locations-list, restrained)
   ============================================ */

[data-reveal="fade"] {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 750ms var(--ease-out), transform 750ms var(--ease-out);
}
/* The clip-path lives on an inner wrapper, not the observed [data-reveal="clip"]
   element itself -- IntersectionObserver computes ratio against the clipped
   (post-clip-path) area, so a target clipped to zero height never reports a
   nonzero intersection and can never receive .is-visible in the first place. */
[data-reveal="clip"] .locations-map-clip {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 850ms var(--ease-out);
}
[data-reveal="clip"].is-visible .locations-map-clip {
  clip-path: inset(0 0 0% 0);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .locations-map-clip { clip-path: none !important; transition: none !important; }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .about-row { grid-template-columns: 1fr; }
  .booking-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .locations-row { grid-template-columns: 1fr; }

  .hero-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.9rem 0;
  }
  .hero-title, .hero-sub { flex-basis: auto; max-width: none; }
  .hero-copy .btn-cta { align-self: flex-start; }

  .product-grid, .why-grid, .steps-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }

  .demo-band-row { text-align: center; justify-content: center; }
}

@media (max-width: 760px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .lang-switch { padding: 2px; gap: 1px; }
  .lang-btn { padding: 6px 10px; font-size: 0.8rem; }

  .nav {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--green-deep);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.8rem;
    padding: 2rem 2.5rem;
    margin: 0;
    clip-path: inset(0 0 0 100%);
    transition: clip-path 320ms var(--ease-out);
    z-index: 90;
  }
  .nav.is-open { clip-path: inset(0 0 0 0%); }
  .nav-link { font-size: 1.2rem; color: var(--cream); opacity: 0.85; }

  .hero-copy { padding: 1.6rem 0; }
  .hero-top { padding-top: 6.5rem; }
  .product-grid, .why-grid, .steps-grid, .reviews-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .booking-panel { padding: 1.8rem; }

  /* "Флэт уайт · выбор бариста" no longer fits next to the price on one
     line at phone widths — drop the tag to its own line under the name
     instead of pushing the price off the right edge. */
  .menu-item-tag { display: block; margin-left: 0; margin-top: 0.2rem; }

  .footer-row { align-items: flex-start; }
  .footer-contact { align-items: flex-start; }
}

@media (max-width: 480px) {
  .wordmark { font-size: 1.5rem; }
  .header-row { min-height: 72px; }
}
