/* =========================================================================
   Rbply — homepage stylesheet
   Source of truth: docs/01_DESIGN_SYSTEM_AND_TOKENS.md (v3.1) + docs/03 (v4.3)
   Layout concept: calm editorial pages on warm grey with the brochure's
   triangle lattice; one orange action per screen; the compass needle (▲)
   is the only decoration and the only thing that moves.
   ========================================================================= */

:root {
  /* Brand colours (brand book folio 15) */
  --rb-tangerine: #FF4400;
  --rb-coffee: #310F02;
  --rb-grey: #ECE5E2;
  --rb-sand: #DACEB6;
  --rb-sky: #5FBFFF;
  --rb-sun: #FFE043;
  --rb-white: #FFFFFF;
  --rb-black: #000000;

  /* Functional shades — web extension (doc 01 §2.4) */
  --rb-tangerine-hover: #E03C00;
  --rb-coffee-75: rgba(49, 15, 2, 0.75);
  --rb-coffee-08: rgba(49, 15, 2, 0.08);
  --rb-line: rgba(49, 15, 2, 0.14);
  --rb-on-dark-line: rgba(236, 229, 226, 0.22);

  /* Type (DM Sans only; Malayalam fallback face) */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ml: 'Noto Sans Malayalam', 'DM Sans', sans-serif;

  /* Radius, motion, layout */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --shadow-soft: 0 4px 12px rgba(49, 15, 2, 0.05);
  --shadow-lift: 0 10px 28px rgba(49, 15, 2, 0.10);
  --ease-settle: cubic-bezier(.34, 1.4, .64, 1);
  --container: 1200px;
  --section-y: clamp(64px, 9vw, 104px);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--rb-white);
  color: var(--rb-coffee);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rb-coffee); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--rb-white); padding: 10px 16px; z-index: 100; border-radius: var(--r-md); }
.skip-link:focus { left: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[lang="ml"], .ml { font-family: var(--font-ml); }

.wrap {
  max-width: calc(var(--container) + 48px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 768px) {
  .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
}
.section { padding-block: var(--section-y); }
.section--grey {
  background-color: var(--rb-grey);
  background-image: url('../img/pattern-triangles.svg');
  background-size: 48px 41.57px;
}
.section--white { background: var(--rb-white); }

/* ---------- Type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rb-coffee);
}
.needle {
  display: inline-block; flex: none; width: 12px; height: 10px;
  background: var(--rb-tangerine);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform-origin: 50% 70%;
}
.h-display, .h-section {
  font-weight: 600; letter-spacing: -0.025em; color: var(--rb-coffee);
}
.h-display { font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02; }
.h-section { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; }
.h-display .light, .h-section .light { font-weight: 400; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; max-width: 34em; }
.muted { color: var(--rb-coffee-75); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.section-head--split { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head--split > div { display: flex; flex-direction: column; gap: 16px; }

/* Editorial label column (brand book layout) */
@media (min-width: 1024px) {
  .editorial { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 48px; }
  .editorial > .eyebrow { border-right: 1px dashed var(--rb-sand); padding-right: 24px; align-self: start; min-height: 100%; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 26px; border-radius: var(--r-md);
  font-weight: 600; text-decoration: none; cursor: pointer; border: 0;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--primary { background: var(--rb-tangerine); color: var(--rb-white); font-size: 19px; }
.btn--primary:hover { background: var(--rb-tangerine-hover); }
.btn--outline { background: var(--rb-white); color: var(--rb-coffee); border: 1.5px solid var(--rb-coffee); font-size: 17px; }
.btn--outline:hover { background: var(--rb-grey); }
.btn--dark { background: var(--rb-coffee); color: var(--rb-white); font-size: 15px; min-height: 44px; padding: 10px 18px; }
.btn--dark:hover { background: rgba(49, 15, 2, 0.88); }
.btn--sm { min-height: 48px; padding: 10px 18px; font-size: 15px; }
.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 15px; text-decoration: underline;
  text-decoration-color: var(--rb-tangerine); text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.link .arrow { transition: transform .2s ease; }
.link:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--rb-white); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rb-line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; padding-block: 12px; margin-right: auto; }
.brand img { height: 30px; width: auto; }
.main-nav { display: none; }
.main-nav > ul { display: flex; gap: 6px; align-items: center; }
.main-nav a, .main-nav summary { display: block; padding: 10px 12px; font-size: 15px; font-weight: 500; text-decoration: none; border-radius: var(--r-md); cursor: pointer; }
.main-nav a:hover, .main-nav summary:hover { background: var(--rb-grey); }
.main-nav summary { list-style: none; }
.main-nav summary::-webkit-details-marker { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.dropdown { position: relative; }
.dropdown > summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown__panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px;
  background: var(--rb-white); border: 1px solid var(--rb-line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift); padding: 8px; z-index: 70;
}
.dropdown__panel a { display: flex; flex-direction: column; padding: 12px 14px; border-radius: var(--r-md); text-decoration: none; }
.dropdown__panel a:hover { background: var(--rb-grey); }
.dropdown__panel small { font-size: 13px; color: var(--rb-coffee-75); }
.dropdown__panel strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.call-toggle { padding: 10px 12px; border-radius: var(--r-md); font-size: 15px; font-weight: 600; }
.call-toggle:hover { background: var(--rb-grey); }
.call-toggle svg, .icon-btn svg { width: 20px; height: 20px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-md); background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--rb-grey); }
.header-wa { display: none; }
.call-label { display: none; }

.mega { left: 0; right: auto; min-width: min(640px, 92vw); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 16px; }
.mega h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 14px; color: var(--rb-coffee-75); }
.mega a { padding: 8px 14px; font-size: 15px; }

.mobile-nav { border-top: 1px solid var(--rb-line); background: var(--rb-white); padding-block: 12px 24px; }
.mobile-nav a { display: block; padding: 14px 0; font-size: 18px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rb-line); }
.mobile-nav .btn-row { margin-top: 20px; }

/* Small screens: keep the call menu inside the viewport */
@media (max-width: 1023px) {
  .header-actions .dropdown__panel { right: -52px; min-width: min(260px, calc(100vw - 32px)); }
}
@media (min-width: 1024px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .header-wa { display: inline-flex; }
  .call-label { display: inline; }
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 64px; } }
.hero-copy { display: flex; flex-direction: column; gap: 26px; position: relative; z-index: 1; min-width: 0; }
.offer {
  background: var(--rb-white); border-radius: var(--r-lg); box-shadow: var(--shadow-soft);
  padding: 22px 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; max-width: 560px;
}
.offer .needle { margin-top: 9px; grid-row: span 3; }
.offer__title { font-size: clamp(19px, 2vw, 23px); font-weight: 600; line-height: 1.3; }
.offer__sub { font-size: 15px; color: var(--rb-coffee-75); }
.offer__ml { font-size: clamp(16px, 1.6vw, 18px); font-weight: 600; line-height: 1.55; margin-top: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--rb-white); border-radius: 999px; padding: 9px 16px; font-size: 15px; font-weight: 500; }
.pill .needle { width: 9px; height: 8px; }

.hero-visual { position: relative; padding: 0 0 0 clamp(0px, 4vw, 56px); min-width: 0; }
.hero-photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; background: var(--rb-sand); max-height: 640px; width: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; right: 14px; bottom: 14px; background: rgba(255, 255, 255, 0.92); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.hero-dial {
  position: absolute; left: 0; top: -36px; width: clamp(170px, 20vw, 268px); aspect-ratio: 1;
  border-radius: 50%; box-shadow: 0 14px 34px rgba(49, 15, 2, 0.16), 0 0 0 1px rgba(49, 15, 2, 0.06);
}
@media (max-width: 959px) {
  .hero-visual { padding: 0; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-dial { left: auto; right: 12px; top: -48px; width: 150px; }
}

/* ---------- Compass dial (the moving brand graphic) ---------- */
.dial { width: 100%; height: 100%; display: block; overflow: visible; }
.dial__face { fill: var(--rb-white); stroke: var(--rb-sand); stroke-width: 1.2; }
.dial__ring { fill: none; stroke: var(--rb-sand); stroke-width: 0.8; }
.dial__tick { stroke: rgba(49, 15, 2, 0.35); stroke-width: 0.6; }
.dial__tick--major { stroke: rgba(49, 15, 2, 0.6); stroke-width: 1; }
.dial__letter { font: 600 11px var(--font-sans); fill: var(--rb-coffee); text-anchor: middle; }
.dial__needle { transform-box: view-box; transform-origin: 100px 100px; }
.dial__head { fill: var(--rb-tangerine); }
.dial__shaft { stroke: var(--rb-tangerine); stroke-width: 2; }
.dial__tail { stroke: var(--rb-coffee); stroke-width: 1.5; }
.dial__tail-dot { fill: var(--rb-coffee); }
.dial__hub { fill: var(--rb-white); stroke: var(--rb-coffee); stroke-width: 1.5; }

@keyframes rb-settle {
  0% { transform: rotate(-80deg); }
  22% { transform: rotate(46deg); }
  40% { transform: rotate(-24deg); }
  56% { transform: rotate(11deg); }
  70% { transform: rotate(-5deg); }
  84% { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}
@keyframes rb-dial-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
.anim-ready .dial-anim { opacity: 0; }
.anim-ready .dial-anim.is-in { animation: rb-dial-in .7s ease-out both; }
.anim-ready .dial-anim.is-in .dial__needle { animation: rb-settle 2.6s cubic-bezier(.45, .05, .35, 1) .25s both; }

/* Section markers turn upright when the section arrives */
.anim-ready .eyebrow .needle { transform: rotate(-90deg); transition: transform .9s var(--ease-settle); }
.anim-ready .eyebrow.is-in .needle { transform: rotate(0deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim-ready .rose-anim { opacity: 1; }
  .anim-ready .rose-anim.is-in, .anim-ready .rose-anim.is-in .rose__bezel, .anim-ready .rose-anim.is-in .rose__card, .anim-ready .rose-anim.is-in .rose__needle { animation: none; }
  .anim-ready .dial-anim { opacity: 1; }
  .anim-ready .dial-anim.is-in, .anim-ready .dial-anim.is-in .dial__needle { animation: none; }
  .anim-ready .eyebrow .needle { transform: none; transition: none; }
  .btn, .link .arrow { transition: none; }
}

/* ---------- Brand-book compass rose (docs/01 §5.5, doc 03 §3b) ----------
   Layers come from the sprite built by tools/build_compass_rose.py:
   bezel (degree ring) · card (rose + letters) · needle (red north / blue south). */
.rose { width: 100%; height: 100%; display: block; overflow: visible; border-radius: 50%; }
.rose__bezel, .rose__card, .rose__needle { transform-box: view-box; transform-origin: 0 0; }

@keyframes rose-bezel {
  0% { transform: rotate(-150deg); }
  55% { transform: rotate(9deg); }
  75% { transform: rotate(-3.5deg); }
  90% { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}
@keyframes rose-card {
  from { transform: rotate(35deg) scale(.86); opacity: 0; }
  to { transform: rotate(0deg) scale(1); opacity: 1; }
}
@keyframes rose-quiver {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(1.6deg); }
  60% { transform: rotate(-1.1deg); }
  82% { transform: rotate(0.5deg); }
}
.anim-ready .rose-anim { opacity: 0; }
.anim-ready .rose-anim.is-in { animation: rb-dial-in .6s ease-out both; }
.anim-ready .rose-anim.is-in .rose__bezel { animation: rose-bezel 2.6s cubic-bezier(.22, .7, .25, 1) both; }
.anim-ready .rose-anim.is-in .rose__card { animation: rose-card 1.4s cubic-bezier(.22, .7, .25, 1) .15s both; }
.anim-ready .rose-anim.is-in .rose__needle {
  animation: rb-settle 2.8s cubic-bezier(.45, .05, .35, 1) .7s both, rose-quiver 7s ease-in-out 3.6s infinite;
}

/* ---------- Logo-with-compass watermark (brand book v2 p.8 "Reasoning"; watermark use: brand book folio 12) ----------
   Sits behind §5. Wordmark at 7% so text always wins; rings at 30% so the compass reads.
   Ring layer turns into place once when the section arrives. */
.section--watermark { position: relative; overflow: hidden; isolation: isolate; }
.watermark {
  position: absolute; z-index: -1; pointer-events: none;
  width: min(720px, 56vw); aspect-ratio: 2 / 1;
  top: clamp(28px, 4vw, 56px);
  right: max(8px, calc((100% - var(--container)) / 2 - 8px));
}
.watermark img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.watermark__rings { transform-origin: 75% 49.5%; }
/* Scroll-linked "dial" turn (set by main.js); composes with the one-off spin-in transform */
.anim-ready .watermark__rings { rotate: var(--dial, 0deg); }
.anim-ready .watermark__rings { opacity: 0; transform: rotate(-50deg); transition: transform 2.6s cubic-bezier(.22, .7, .25, 1), opacity 1.2s ease; }
.anim-ready .watermark.is-in .watermark__rings { opacity: 1; transform: rotate(0deg); }
@media (max-width: 899px) {
  .watermark { width: 380px; right: -104px; top: -18px; opacity: .7; }
}
@media (prefers-reduced-motion: reduce) {
  .anim-ready .watermark__rings { opacity: 1; transform: none; transition: none; rotate: none; }
}

/* ---------- Brands ---------- */
.logo-wall {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--rb-white); border: 1px solid var(--rb-line); border-radius: var(--r-lg); overflow: hidden;
}
.logo-wall li { display: flex; align-items: center; justify-content: center; height: 104px; padding: 18px 22px; border-right: 1px solid var(--rb-line); border-bottom: 1px solid var(--rb-line); margin: 0 -1px -1px 0; }
.logo-wall img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }
.logo-wall--clients li { height: 112px; }
.logo-wall--clients img { max-height: 64px; }
/* 12 brands → 3 / 4 / 6 columns; 16 clients → 4 / 4 / 8 columns: rows always full */
.logo-wall--clients { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 600px) { .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .logo-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .logo-wall--clients { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .logo-wall--clients li { height: 104px; padding: 14px 16px; }
}
@media (max-width: 599px) {
  .logo-wall li { height: 80px; padding: 12px; }
  .logo-wall img { max-height: 40px; }
}
.split-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }

/* ---------- Compass entry cards ---------- */
.space-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.space-card {
  background: var(--rb-white); border-radius: var(--r-lg); padding: 24px; text-decoration: none;
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 6px 18px; align-items: start;
  border: 1px solid transparent; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.space-card:hover { border-color: var(--rb-coffee); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.space-card__icon { grid-row: span 3; width: 52px; height: 52px; border-radius: 50%; background: var(--rb-grey); display: flex; align-items: center; justify-content: center; }
.space-card__icon svg { width: 26px; height: 26px; stroke: var(--rb-coffee); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.space-card h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.space-card p { font-size: 15px; color: var(--rb-coffee-75); }
.space-card .link { margin-top: 6px; font-size: 14px; }
.compass-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; text-align: center; }

/* ---------- Product groups ---------- */
.group-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.group-card { border: 1px solid var(--rb-line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; background: var(--rb-white); }
.group-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--rb-sand); }
.group-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.group-card:hover .group-card__media img { transform: scale(1.03); }
.group-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.group-card__num { font-size: 52px; font-weight: 500; line-height: 1; color: var(--rb-tangerine); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.group-card h3 { font-size: 24px; font-weight: 600; }
.group-card__desc { font-size: 15px; color: var(--rb-coffee-75); }
.group-card ul { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.group-card li a { display: flex; align-items: center; gap: 10px; padding: 7px 0; text-decoration: none; font-size: 16px; border-bottom: 1px solid var(--rb-line); }
.group-card li:last-child a { border-bottom: 0; }
.group-card li a:hover { color: var(--rb-tangerine-hover); }
.group-card li .needle { width: 8px; height: 7px; }

/* ---------- Why Rbply ---------- */
.why-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .why-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.why-copy { display: flex; flex-direction: column; gap: 20px; }
.why-bottom { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .why-bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
  .why-bottom .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-bottom .why-photo { aspect-ratio: auto; height: 100%; min-height: 260px; }
}
.value-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.value { background: var(--rb-white); border-radius: var(--r-lg); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.value h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.value p { font-size: 15px; color: var(--rb-coffee-75); }

/* Photo placeholder (until the shoot) */
.photo-slot {
  border-radius: var(--r-xl); aspect-ratio: 16 / 11; width: 100%;
  background-color: var(--rb-sand);
  background-image: url('../img/pattern-triangles.svg');
  background-size: 48px 41.57px;
  display: flex; align-items: flex-end; padding: 20px;
}
.photo-slot span { background: var(--rb-white); border-radius: var(--r-md); padding: 8px 12px; font-size: 13px; line-height: 1.4; max-width: 300px; }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: step; }
.step { border-top: 2px solid var(--rb-coffee); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.step__num { width: 40px; height: 40px; border-radius: 50%; background: var(--rb-coffee); color: var(--rb-white); display: flex; align-items: center; justify-content: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 20px; font-weight: 600; }
.step p { font-size: 15px; color: var(--rb-coffee-75); }
.note {
  background: var(--rb-grey); border-radius: var(--r-lg); padding: 18px 22px;
  display: flex; gap: 14px; align-items: flex-start; font-size: 16px;
}
.note svg { width: 24px; height: 24px; flex: none; stroke: var(--rb-coffee); fill: none; stroke-width: 1.5; margin-top: 2px; }
.center-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 20px; }

/* ---------- Clients ---------- */
.project-strip { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.project-strip figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--rb-sand); }
.project-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 699px) { .project-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Professionals (dark band) ---------- */
.section--coffee { background: var(--rb-coffee); color: var(--rb-grey); }
.section--coffee .eyebrow { color: var(--rb-grey); }
.pro-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.pro-card { border: 1px solid var(--rb-on-dark-line); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.pro-card h3 { font-size: 24px; font-weight: 600; color: var(--rb-white); }
.pro-card p { font-size: 16px; }
.pro-card a { color: var(--rb-tangerine); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; margin-top: auto; }
.pro-card a:hover { color: #FF6A33; }

/* ---------- Stores ---------- */
.store-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.store { border: 1px solid var(--rb-line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; background: var(--rb-white); }
.store .photo-slot { border-radius: 0; aspect-ratio: 16 / 8; }
.store__body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 10px; }
.store__label { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; }
.badge-new { background: var(--rb-grey); border-radius: 999px; padding: 3px 10px; letter-spacing: 0.04em; font-size: 12px; }
.store address { font-style: normal; }
.store dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; font-size: 15px; }
.store dt { color: var(--rb-coffee-75); }
.store dd { margin: 0; font-variant-numeric: tabular-nums; }
.store dd a { text-decoration: none; font-weight: 600; display: inline-block; padding-block: 4px; }
.store .btn-row { margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rb-line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 22px 0; font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; line-height: 1; flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; font-size: 16px; max-width: 64ch; color: var(--rb-coffee-75); }

/* ---------- Final CTA ---------- */
.final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 760px; margin-inline: auto; }
.final .dial-wrap { width: 168px; height: 168px; border-radius: 50%; box-shadow: 0 10px 26px rgba(49, 15, 2, 0.12), 0 0 0 1px rgba(49, 15, 2, 0.06); }

/* ---------- Footer ---------- */
.site-footer { background-color: var(--rb-grey); background-image: url('../img/pattern-triangles.svg'); background-size: 48px 41.57px; }
.footer-top { padding-block: 64px 32px; display: flex; flex-direction: column; gap: 40px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.22em; }
.footer-cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); font-size: 15px; }
.footer-cols h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.footer-cols li a { display: inline-block; padding: 4px 0; text-decoration: none; }
.footer-cols li a:hover { text-decoration: underline; }
.footer-cols address { font-style: normal; line-height: 1.7; }
.footer-cols address a { display: inline-block; padding-block: 3px; }
.footer-cols address + h2 { margin-top: 18px; }
.footer-legal { border-top: 1px solid var(--rb-line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--rb-coffee-75); }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal nav a { display: inline-block; padding-block: 4px; }
.footer-band { background: var(--rb-tangerine); color: var(--rb-white); }
.footer-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding-block: 20px; font-size: 19px; font-weight: 600; }
.footer-band a { text-decoration: none; }
@media (max-width: 767px) { .footer-band .wrap { padding-bottom: calc(20px + 64px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- Mobile sticky action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1.5fr 1fr;
  background: var(--rb-white); border-top: 1px solid var(--rb-line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
  transform: translateY(110%); transition: transform .3s ease;
}
.action-bar.is-visible { transform: translateY(0); }
.action-bar a { min-height: 60px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 16px; text-decoration: none; }
.action-bar a svg { width: 20px; height: 20px; }
.action-bar .is-wa { background: var(--rb-tangerine); color: var(--rb-white); font-size: 19px; }
@media (min-width: 768px) { .action-bar { display: none; } }

/* Tablet: column counts that fill every row (no lone item) */
@media (min-width: 700px) { .group-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .group-card__body { padding: 20px 20px 24px; } }
@media (min-width: 600px) and (max-width: 1023px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Gaps between stacked blocks inside a section */
.stack { display: flex; flex-direction: column; gap: 32px; }
.stack--lg { gap: 44px; }

/* Real photo inside a photo slot (keeps the slot's size and radius) */
.photo-slot.photo { display: block; position: relative; padding: 0; margin: 0; overflow: hidden; background-image: none; }
.photo-slot.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
