/* ==========================================================================
   Za-SandBlasting — Design System v1.0
   Dark industrial · Charcoal + brand Orange (action) + brand Green (eco)
   Mobile-first. Tokens first, components second, pages last.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --bg: #fbf9f4;
  --bg-2: #f2efe6;
  --surface: #ffffff;
  --surface-2: #f1eee5;
  --line: #e1ddd0;
  --line-soft: #ebe8dd;
  --paper: #f3eee0;
  --paper-2: #e6dfcc;

  /* Text */
  --text: #161a15;
  --muted: #565c52;
  --ink: #121512;
  --ink-muted: #4a5046;

  /* Brand */
  --orange: #ff6a1a;
  --orange-600: #e85a0c;
  --orange-700: #b53d00; /* orange text on light (paper) backgrounds: 5:1 */
  --orange-100: #ffe6d6;
  --on-orange: #140b05;
  --green: #79d23c;
  --green-ink: #2b7410; /* green text/icons on light: 5.6:1 */
  --orange-ink: #b53d00; /* orange text on light: 5.3:1 */
  --on-dark: #f2f0ea;
  --green-600: #4fa626;
  --wa: #25d366;
  --wa-600: #1ebe5b;
  --danger: #c62828;

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Scale */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.15rem, 1.6vw, 1.3rem);
  --fs-h4: clamp(1.15rem, 1.8vw, 1.35rem);
  --fs-h3: clamp(1.35rem, 2.4vw, 1.75rem);
  --fs-h2: clamp(2rem, 4.6vw, 3.5rem);
  --fs-h1: clamp(2.5rem, 6.6vw, 5.4rem);

  /* Space (8pt) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;

  /* Shape + motion */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --t-fast: 160ms; --t-med: 280ms; --t-slow: 600ms;
  --shadow: 0 18px 44px -20px rgba(30, 34, 28, 0.28);

  --container: 1240px;
  --gutter: 1rem;
  --header-h: 68px;
}
@media (min-width: 768px) { :root { --gutter: 1.5rem; --header-h: 78px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 var(--s-4); font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--orange); color: var(--on-orange); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; background: var(--orange); color: var(--on-orange); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); z-index: 200; font-weight: 700; }
.skip-link:focus { top: var(--s-3); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 9vw, 7.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--alt { background: var(--bg-2); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper .muted, .section--paper p { color: var(--ink-muted); }
.section--paper h2, .section--paper h3, .section--paper h4 { color: var(--ink); }
.muted { color: var(--muted); }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 62ch; }
.section--paper .lead { color: var(--ink-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange-ink); margin-bottom: var(--s-4);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }


.h2-md { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.section-head { display: grid; gap: var(--s-4); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.2fr 1fr; align-items: end; gap: var(--s-8); } }

/* ---------- 3. Icons ---------- */
.i { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--fill { fill: currentColor; stroke: none; }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--orange); --btn-fg: var(--on-orange); --btn-bd: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 52px; padding: 0.85rem 1.6rem; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-bd);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-med);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(255, 106, 26, 0.55); background: #ff7d36; border-color: #ff7d36; }
.btn:active { transform: translateY(0); }
.btn .i { transition: transform var(--t-med) var(--ease); }
.btn:hover .i--arrow { transform: translateX(4px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: rgba(22, 26, 21, 0.35); }
.btn--ghost:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); box-shadow: none; }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--on-dark); --btn-bd: var(--ink); }
.btn--dark:hover { background: #000; border-color: #000; box-shadow: 0 12px 28px -10px rgba(0,0,0,.6); }
.btn--wa { --btn-bg: var(--wa); --btn-fg: #06210f; --btn-bd: var(--wa); }
.btn--wa:hover { background: var(--wa-600); border-color: var(--wa-600); box-shadow: 0 12px 28px -10px rgba(37, 211, 102, 0.55); }
.btn--sm { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; text-decoration: none; color: var(--orange-ink); }
.link-arrow:hover .i { transform: translateX(4px); }
.link-arrow .i { transition: transform var(--t-med) var(--ease); }

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(251, 249, 244, 0.82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--t-med), background var(--t-med);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(251, 249, 244, 0.96); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 50px; width: auto; }
@media (min-width: 768px) { .brand img { height: 62px; } }

.nav { display: none; }
.nav-list { display: flex; align-items: center; gap: var(--s-1); }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 0.95rem; border-radius: var(--r-pill);
  font-weight: 500; font-size: var(--fs-sm); text-decoration: none; color: var(--muted);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover, .nav-link[aria-current="page"], .has-sub:hover > .nav-link, .has-sub:focus-within > .nav-link { color: var(--text); background: rgba(22, 26, 21, 0.06); }
.nav-link[aria-current="page"] { color: var(--orange-ink); }
.has-sub { position: relative; }
.subnav {
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 300px; padding: var(--s-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--t-med) var(--ease);
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { display: flex; flex-direction: column; padding: 0.7rem 0.9rem; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.subnav a small { font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.subnav a:hover { background: var(--surface-2); color: var(--orange-ink); }

.header-cta { display: flex; align-items: center; gap: var(--s-2); }
.header-phone { display: none; align-items: center; gap: var(--s-2); font-family: var(--font-display); font-weight: 600; text-decoration: none; padding: 0 0.6rem; min-height: 44px; }
.header-phone .i { color: var(--orange-ink); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast); }
.icon-btn:hover { background: var(--surface-2); border-color: #b9b3a2; }
.call-btn-m { color: var(--orange-ink); }
.menu-toggle { color: var(--text); }
@media (min-width: 1040px) {
  .nav { display: block; }
  .menu-toggle, .call-btn-m { display: none; }
  .header-phone { display: inline-flex; }
}
@media (max-width: 420px) { .header-cta .btn { padding-inline: 1rem; font-size: 0.9rem; } }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 150; background: var(--bg); padding: calc(var(--header-h) + var(--s-4)) var(--gutter) var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-5); overflow-y: auto;
  transform: translateX(100%); visibility: hidden; transition: transform var(--t-med) var(--ease), visibility var(--t-med);
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-close { position: absolute; top: calc((var(--header-h) - 44px) / 2); right: var(--gutter); }
.drawer-nav a { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; text-decoration: none; letter-spacing: -0.02em; }
.drawer-nav a[aria-current="page"] { color: var(--orange-ink); }
.drawer-nav .sub a { font-size: 1.05rem; padding: 0.7rem 0 0.7rem 1rem; color: var(--muted); font-family: var(--font-body); border-bottom: 1px dashed var(--line-soft); }
.drawer-actions { display: grid; gap: var(--s-3); margin-top: auto; }
body.menu-open { overflow: hidden; }
@media (min-width: 1040px) { .drawer { display: none; } }

/* ---------- 6. Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-3); }
.wa-fab {
  position: relative; display: inline-flex; align-items: center; gap: var(--s-3); height: 60px; padding: 0 20px 0 16px; border-radius: var(--r-pill);
  background: var(--wa); color: #06210f; border: 0; cursor: pointer; font-family: var(--font-display); font-weight: 700;
  box-shadow: 0 14px 34px -8px rgba(37, 211, 102, 0.6); transition: transform var(--t-fast) var(--ease);
}
.wa-fab:hover { transform: translateY(-2px) scale(1.02); }
.wa-fab .i { width: 28px; height: 28px; }
.wa-fab .wa-label { display: none; }
@media (min-width: 640px) { .wa-fab .wa-label { display: inline; } }
@media (max-width: 639px) { .wa-fab { width: 60px; padding: 0; justify-content: center; } }
.wa-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); animation: wa-ping 2.8s infinite; pointer-events: none; }
@keyframes wa-ping { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5);} 70%,100% { box-shadow: 0 0 0 18px rgba(37,211,102,0);} }
.wa-panel {
  width: min(360px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden;
  transform-origin: bottom right; transform: scale(0.92) translateY(10px); opacity: 0; visibility: hidden; transition: all var(--t-med) var(--ease);
}
.wa-panel.is-open { transform: none; opacity: 1; visibility: visible; }
.wa-panel-head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); background: #0b3d20; }
.wa-panel-head .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--wa); color: #06210f; display: grid; place-items: center; }
.wa-panel-head strong { display: block; font-family: var(--font-display); line-height: 1.2; }
.wa-panel-head small { color: #b6e8c9; font-size: var(--fs-xs); }
.wa-panel-head .x { margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; }
.wa-panel-body { padding: var(--s-4); }
.wa-bubble { background: var(--surface-2); padding: var(--s-3) var(--s-4); border-radius: 4px var(--r-md) var(--r-md) var(--r-md); font-size: var(--fs-sm); margin-bottom: var(--s-4); }

/* ---------- 7. Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: var(--s-4); }
.field label, .field .label { font-size: var(--fs-sm); font-weight: 600; }
.field .req { color: var(--orange-ink); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 0.8rem 1rem; background: var(--bg); color: var(--text);
  border: 1.5px solid var(--line); border-radius: var(--r-md); transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  font-size: 1rem; /* >=16px prevents iOS zoom */
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23565c52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 2.6rem; }
.input:hover, .select:hover, .textarea:hover { border-color: #b9b3a2; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--orange-ink); box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.18); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea, .field.has-error .dropzone { border-color: var(--danger); }
.error-msg { color: var(--danger); font-size: var(--fs-xs); font-weight: 600; display: none; }
.field.has-error .error-msg { display: block; }
.form-grid { display: grid; gap: 0 var(--s-5); }
@media (min-width: 700px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2.25rem); }
.form-note { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s-3); }

.dropzone {
  display: grid; justify-items: center; gap: var(--s-2); text-align: center; padding: var(--s-5) var(--s-4);
  border: 2px dashed #c5bfae; border-radius: var(--r-md); background: rgba(22,26,21,0.02); cursor: pointer; transition: all var(--t-fast);
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--orange-ink); background: rgba(255,106,26,0.06); }
.dropzone .i { width: 34px; height: 34px; color: var(--orange-ink); }
.dropzone strong { font-family: var(--font-display); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:focus-within { outline: 3px solid var(--orange); outline-offset: 3px; }
.file-list { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.file-item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: var(--fs-sm); }
.file-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.file-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item small { color: var(--muted); margin-left: auto; white-space: nowrap; }
.file-item button { background: none; border: 0; color: var(--muted); cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; margin-right: -8px; }
.file-item button:hover { color: var(--danger); }
.form-success { display: none; text-align: center; padding: var(--s-6) var(--s-4); }
.form-success.is-visible { display: block; }
.form-success .tick { width: 64px; height: 64px; margin: 0 auto var(--s-4); border-radius: 50%; display: grid; place-items: center; background: rgba(121, 210, 60, 0.22); color: var(--green-ink); }
.form-success .tick .i { width: 32px; height: 32px; }

/* segmented / mode toggle */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-pill); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-3); border-radius: var(--r-pill); cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--muted); transition: all var(--t-fast); text-align: center; }
.seg input:checked + label { background: var(--orange); color: var(--on-orange); }
.seg input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- 8. Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(100svh, 920px); display: flex; align-items: flex-end; padding-top: var(--s-8); overflow: hidden; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + var(--s-8)); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform: scale(1.06); animation: hero-zoom 18s ease-out forwards; }
@keyframes hero-zoom { to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(251,249,244,0.9) 0%, rgba(251,249,244,0.82) 55%, rgba(251,249,244,0.96) 100%); }
@media (min-width: 900px) { .hero::before { background:
  linear-gradient(180deg, rgba(251,249,244,0.55) 0%, rgba(251,249,244,0) 30%, rgba(251,249,244,0) 70%, rgba(251,249,244,0.95) 100%),
  linear-gradient(90deg, rgba(251,249,244,0.97) 0%, rgba(251,249,244,0.86) 42%, rgba(251,249,244,0.15) 80%, rgba(251,249,244,0) 100%); } }
.hero-inner { width: 100%; padding-bottom: var(--s-7); }
.hero h1 { max-width: 15ch; margin-bottom: var(--s-5); }
.hero h1 em { font-style: normal; color: var(--orange-ink); }
.pill-img { display: inline-block; width: 1.9em; height: 0.78em; vertical-align: -0.02em; margin: 0 0.12em; border-radius: var(--r-pill); overflow: hidden; border: 2px solid rgba(22,26,21,0.12); }
.pill-img img { width: 100%; height: 100%; object-fit: cover; }
.hero .lead { color: #3d433a; max-width: 56ch; margin-bottom: var(--s-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero-tag { position: absolute; right: var(--gutter); top: calc(var(--header-h) + var(--s-5)); display: none; font-family: var(--font-display); font-size: clamp(5rem, 14vw, 12rem); font-weight: 700; line-height: 1; color: rgba(22,26,21,0.05); letter-spacing: -0.06em; user-select: none; }
@media (min-width: 900px) { .hero-tag { display: block; } }

.trust-bar { position: relative; z-index: 2; background: var(--surface); border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; }
.trust-item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-3); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; line-height: 1.25; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-item:nth-child(2n) { border-right: 0; }
.trust-item .i { color: var(--green-ink); width: 28px; height: 28px; }
@media (min-width: 900px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } .trust-item { border-bottom: 0; padding-inline: var(--s-5); } .trust-item:nth-child(2n) { border-right: 1px solid var(--line); } .trust-item:last-child { border-right: 0; } }

/* page hero (inner pages) */
.page-hero { position: relative; isolation: isolate; padding: calc(var(--s-8) + var(--s-3)) 0 var(--s-8); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 10%, rgba(251,249,244,0.88) 60%, rgba(251,249,244,0.6)); }
.page-hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); max-width: 20ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--fs-sm); color: var(--muted); margin: 0 0 var(--s-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--orange-ink); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); opacity: 0.5; }
.crumbs { list-style: none; padding: 0; }

/* ---------- 9. Cards & grids ---------- */
.pillars { display: grid; gap: var(--s-4); }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.pillar { color: #fff; position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; min-height: 440px; isolation: isolate; text-decoration: none; background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 800px) { .pillar { min-height: 560px; } }
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 900ms var(--ease), filter 600ms; filter: saturate(0.9) brightness(0.85); }
.pillar::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,17,15,0.1) 20%, rgba(15,17,15,0.92) 90%); }
.pillar:hover img { transform: scale(1.06); filter: saturate(1) brightness(0.95); }
.pillar-body { position: absolute; inset: auto 0 0 0; padding: var(--s-5); }
.pillar-num { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 700; color: #ff8a4d; letter-spacing: 0.1em; }
.pillar h3 { margin: var(--s-2) 0 var(--s-3); }
.pillar p { color: #e8ebe3; font-size: var(--fs-sm); margin-bottom: var(--s-4); }
.pillar-go { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: var(--on-orange); transition: transform var(--t-med) var(--ease); }
.pillar:hover .pillar-go { transform: rotate(-45deg); }

.why-grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
.why-item { padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color var(--t-med), transform var(--t-med) var(--ease); }
.why-item:hover { border-color: var(--orange-ink); transform: translateY(-4px); }
.why-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,106,26,0.13); color: var(--orange-ink); margin-bottom: var(--s-4); }
.why-icon .i { width: 28px; height: 28px; }
.why-icon--green { background: rgba(121,210,60,0.2); color: var(--green-ink); }
.why-item h3 { font-size: 1.25rem; margin-bottom: var(--s-2); }
.why-item p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.split { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 5fr 7fr; gap: var(--s-9); } .split--rev { grid-template-columns: 7fr 5fr; } .split--rev > :first-child { order: 2; } }
.split-media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--line); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .badge-float { position: absolute; left: var(--s-4); bottom: var(--s-4); right: var(--s-4); background: rgba(15,17,15,0.82); color: var(--on-dark); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); font-size: var(--fs-sm); display: flex; gap: var(--s-3); align-items: center; }
.badge-float .i { color: var(--green); width: 26px; height: 26px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-block: 1px solid var(--line); }
.stat { padding: var(--s-6) var(--s-4); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.stat-num sup { font-size: 0.5em; color: var(--orange-ink); top: -0.6em; position: relative; vertical-align: baseline; }
.stat-label { color: var(--muted); font-size: var(--fs-sm); margin-top: var(--s-2); }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } .stat { border-bottom: 0; padding: var(--s-7) var(--s-5); } .stat:nth-child(2n) { border-right: 1px solid var(--line); } .stat:last-child { border-right: 0; } }

/* ---------- 10. Before / After slider ---------- */
.ba-grid { display: grid; gap: var(--s-5); }
@media (min-width: 800px) { .ba-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }
.ba { --pos: 50%; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--surface); border: 1px solid var(--line); user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: var(--pos); width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--orange); color: var(--on-orange); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.5); pointer-events: none; }
.ba-knob .i { width: 26px; height: 26px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; }
.ba:focus-within .ba-knob { outline: 3px solid #fff; outline-offset: 3px; }
.ba-tag { position: absolute; top: var(--s-4); padding: 0.35rem 0.8rem; border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; background: rgba(15,17,15,0.78); color: #fff; backdrop-filter: blur(6px); }
.ba-tag--b { left: var(--s-4); }
.ba-tag--a { right: var(--s-4); background: var(--green); color: #0c1a05; }
.ba-cap { margin-top: var(--s-3); display: flex; justify-content: space-between; gap: var(--s-3); color: var(--muted); font-size: var(--fs-sm); }
.ba-cap strong { color: var(--text); font-family: var(--font-display); }

/* ---------- 11. Process ---------- */
.steps { display: grid; gap: var(--s-4); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); position: relative; } }
.step { position: relative; padding: var(--s-6) var(--s-5); background: #fff; border-radius: var(--r-lg); border: 1px solid var(--paper-2); box-shadow: 0 10px 30px -20px rgba(30,34,28,0.35); }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.4rem, 7vw, 5.5rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--orange-700); }
.step h3 { margin: var(--s-4) 0 var(--s-2); font-size: 1.5rem; }
.step p { margin: 0; color: var(--ink-muted); font-size: var(--fs-sm); }
.step .i-arrow { display: none; }
@media (min-width: 900px) { .step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -26px; width: 28px; height: 28px; background: var(--orange); border-radius: 50%; z-index: 2; transform: translateY(-50%); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23140b05' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); background-size: 16px; background-repeat: no-repeat; background-position: center; } }

/* ---------- 12. Marquee / chips ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding-block: var(--s-4); }
.marquee-track { display: flex; gap: var(--s-7); width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: var(--s-7); font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 500; letter-spacing: -0.02em; color: var(--muted); white-space: nowrap; }
.marquee-item::after { content: "✦"; color: var(--orange); font-size: 0.7em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-sm); font-weight: 500; }
.chip--green { border-color: rgba(43,116,16,0.3); color: var(--green-ink); background: rgba(121,210,60,0.12); }

/* ---------- 14. CTA band + lead capture ---------- */
.cta-band { background: var(--orange); color: var(--on-orange); border-radius: var(--r-lg); padding: clamp(2rem, 6vw, 4.5rem); display: grid; gap: var(--s-5); position: relative; overflow: hidden; }
.cta-band h2 { margin: 0; max-width: 18ch; }
.cta-band p { margin: 0; max-width: 52ch; font-weight: 500; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 56px solid rgba(20,11,5,0.1); pointer-events: none; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); position: relative; z-index: 1; }
.lead-grid { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .lead-grid { grid-template-columns: 1fr 1fr; gap: var(--s-9); align-items: start; } }
.hours { display: grid; gap: var(--s-2); margin-top: var(--s-5); max-width: 420px; }
.hours-row { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-2) 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.hours-row.is-today { color: var(--orange-ink); font-weight: 700; }
.open-pill { display: inline-flex; align-items: center; gap: var(--s-2); padding: 0.4rem 0.9rem; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; background: var(--surface); border: 1px solid var(--line); }
.open-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.open-pill.is-open::before { background: #3fae1f; box-shadow: 0 0 0 4px rgba(121,210,60,0.2); }
.open-pill.is-closed::before { background: var(--danger); }

/* ---------- 15. Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: var(--s-8); }
.footer-grid { display: grid; gap: var(--s-7); padding-bottom: var(--s-7); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: var(--s-6); } }
.footer-brand img { height: 64px; width: auto; margin-bottom: var(--s-4); }
.footer-brand p { color: var(--muted); font-size: var(--fs-sm); max-width: 36ch; }
.site-footer h4 { font-size: 1rem; letter-spacing: 0.02em; margin-bottom: var(--s-4); color: var(--text); }
.footer-links li { margin-bottom: 2px; }
.footer-links a { display: inline-flex; min-height: 36px; align-items: center; color: var(--muted); text-decoration: none; font-size: var(--fs-sm); }
.footer-links a:hover { color: var(--orange-ink); }
.contact-list li { display: flex; gap: var(--s-3); margin-bottom: var(--s-3); color: var(--muted); font-size: var(--fs-sm); align-items: flex-start; }
.contact-list .i { color: var(--orange-ink); margin-top: 2px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--text); }
.social { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); }
.wdm-credit { font-size: 0.8125rem; opacity: 0.75; margin: 0; }
.wdm-credit a { color: inherit; text-decoration: none; font-weight: 600; }
.wdm-credit a:hover, .wdm-credit a:focus-visible { text-decoration: underline; opacity: 1; }
.site-footer { padding-bottom: 84px; } /* clear floating WhatsApp on mobile */
@media (min-width: 640px) { .site-footer { padding-bottom: 72px; } }

/* ---------- 16. Services pages ---------- */
.svc-grid { display: grid; gap: var(--s-4); }
@media (min-width: 700px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; transition: border-color var(--t-med), transform var(--t-med) var(--ease); }
.svc-card:hover { border-color: var(--orange-ink); transform: translateY(-4px); }
.svc-card figure { margin: 0; aspect-ratio: 16/10; overflow: hidden; }
.svc-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.svc-card:hover figure img { transform: scale(1.06); }
.svc-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.svc-body h3 { font-size: 1.35rem; margin: 0; }
.svc-body p { color: var(--muted); font-size: var(--fs-sm); margin: 0; flex: 1; }
.svc-body ul { display: grid; gap: 4px; color: var(--muted); font-size: var(--fs-sm); }
.svc-body li { display: flex; gap: var(--s-2); }
.svc-body li .i { color: var(--green-ink); width: 18px; height: 18px; margin-top: 4px; }
.tick-list { display: grid; gap: var(--s-3); }
.tick-list li { display: flex; gap: var(--s-3); align-items: flex-start; }
.tick-list .i { color: var(--green-ink); margin-top: 3px; width: 22px; height: 22px; }
.section--paper .tick-list .i { color: var(--green-600); }

.mini-icons { display: grid; gap: var(--s-4); }
@media (min-width: 700px) { .mini-icons { grid-template-columns: repeat(3, 1fr); } }

.with-aside { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .with-aside { grid-template-columns: 1fr 380px; align-items: start; gap: var(--s-8); } .aside-sticky { position: sticky; top: calc(var(--header-h) + var(--s-5)); } }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); }
.aside-card h3 { font-size: 1.4rem; }
.prose h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: var(--s-8); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3d433a; }
.prose ul.tick-list { margin-bottom: var(--s-5); }

details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; min-height: 56px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .i { transition: transform var(--t-med) var(--ease); color: var(--orange-ink); }
details.faq[open] summary .i { transform: rotate(45deg); }
details.faq p { color: var(--muted); padding-bottom: var(--s-4); margin: 0; }

.media-grid { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .media-grid { grid-template-columns: 1fr 1fr; } }
.media-card { padding: var(--s-6) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); position: relative; overflow: hidden; }
.media-card .num { position: absolute; right: var(--s-4); top: var(--s-2); font-family: var(--font-display); font-weight: 700; font-size: 5rem; letter-spacing: -0.05em; color: rgba(22,26,21,0.06); line-height: 1; }
.media-card dl { display: grid; gap: var(--s-3); margin: var(--s-4) 0 0; }
.media-card dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--orange-ink); font-weight: 700; }
.media-card dd { margin: 2px 0 0; color: #3d433a; font-size: var(--fs-sm); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: var(--fs-sm); }
.cmp th, .cmp td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp th { background: var(--surface); font-family: var(--font-display); }
.cmp tr:last-child td { border-bottom: 0; }

/* On-site vs workshop tool */
.mode-tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2.5rem); }
.mode-panel { display: none; margin-top: var(--s-6); gap: var(--s-6); }
.mode-panel.is-active { display: grid; animation: fade-up 420ms var(--ease); }
@media (min-width: 900px) { .mode-panel.is-active { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.mode-panel .split-media { aspect-ratio: 4/3; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.mode-meta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin: var(--s-5) 0; }
.mode-meta div { padding: var(--s-3) var(--s-4); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); }
.mode-meta small { display: block; color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; }
.mode-meta strong { font-family: var(--font-display); }

/* ---------- 17. Gallery ---------- */
.filter-bar { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: var(--s-2); margin-bottom: var(--s-6); scrollbar-width: none; position: sticky; top: var(--header-h); z-index: 20; background: var(--bg); padding-top: var(--s-3); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn { flex: none; min-height: 44px; padding: 0 1.2rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: var(--fs-sm); transition: all var(--t-fast); }
.filter-btn:hover { border-color: #b9b3a2; }
.filter-btn[aria-pressed="true"] { background: var(--orange); border-color: var(--orange-ink); color: var(--on-orange); }
.gallery { columns: 2; column-gap: var(--s-3); }
@media (min-width: 760px) { .gallery { columns: 3; column-gap: var(--s-4); } }
@media (min-width: 1100px) { .gallery { columns: 4; } }
.g-item { break-inside: avoid; margin: 0 0 var(--s-3); position: relative; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; background: var(--surface); border: 1px solid var(--line); display: block; width: 100%; padding: 0; text-align: left; }
@media (min-width: 760px) { .g-item { margin-bottom: var(--s-4); } }
.g-item img { width: 100%; transition: transform 700ms var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption { position: absolute; inset: auto 0 0 0; padding: var(--s-6) var(--s-3) var(--s-3); font-size: var(--fs-xs); font-weight: 600; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85)); color: #fff; opacity: 0; transform: translateY(8px); transition: all var(--t-med); }
.g-item:hover figcaption, .g-item:focus-visible figcaption { opacity: 1; transform: none; }
@media (hover: none) { .g-item figcaption { opacity: 1; transform: none; } }
.g-item[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(5,6,5,0.94); display: none; place-items: center; padding: var(--s-5); }
.lightbox.is-open { display: grid; }
.lightbox figure { margin: 0; max-width: min(900px, 100%); max-height: 100%; display: grid; gap: var(--s-3); justify-items: center; }
.lightbox img { max-height: 78vh; width: auto; border-radius: var(--r-md); }
.lightbox figcaption { color: var(--muted); font-size: var(--fs-sm); text-align: center; }
.lightbox .icon-btn { position: absolute; top: var(--s-4); right: var(--s-4); }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: var(--s-3); } .lightbox .lb-next { right: var(--s-3); }

.case { display: grid; gap: var(--s-5); padding-block: var(--s-7); border-top: 1px solid var(--line); }
@media (min-width: 960px) { .case { grid-template-columns: 5fr 7fr; gap: var(--s-8); } .case--rev { grid-template-columns: 7fr 5fr; } .case--rev .case-media { order: 2; } }
.case-media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/5; }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-steps { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.case-step { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); }
.case-step .n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: var(--surface-2); color: var(--orange-ink); border: 1px solid var(--line); }
.case-step:last-child .n { background: var(--green); color: #0c1a05; border-color: var(--green-ink); }
.case-step h4 { margin: 0 0 2px; font-size: 1.1rem; }
.case-step p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- 18. Contact ---------- */
.contact-layout { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: 1.35fr 1fr; gap: var(--s-8); align-items: start; } }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); display: grid; gap: var(--s-5); }
.info-row { display: flex; gap: var(--s-4); align-items: flex-start; }
.info-row .why-icon { width: 48px; height: 48px; border-radius: 14px; margin: 0; flex: none; }
.info-row .why-icon .i { width: 22px; height: 22px; }
.info-row h4 { margin: 0 0 2px; font-size: 1rem; }
.info-row p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.info-row a { text-decoration: none; font-weight: 600; color: var(--text); }
.info-row a:hover { color: var(--orange-ink); }
.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--surface); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.15); }

/* ---------- 19. Reveal + reduced motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- 20. Design-brief page (docs) ---------- */
.doc-nav { position: sticky; top: var(--header-h); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.doc-nav ul { display: flex; gap: var(--s-1); padding: var(--s-2) var(--gutter); max-width: var(--container); margin: 0 auto; }
.doc-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.9rem; border-radius: var(--r-pill); font-size: var(--fs-sm); color: var(--muted); text-decoration: none; white-space: nowrap; }
.doc-nav a:hover { background: var(--surface); color: var(--text); }
.doc-sec { padding-block: clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
.cols-2 { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .cols-2 { grid-template-columns: 1fr 1fr; } .cols-3 { grid-template-columns: repeat(3, 1fr); } }
.cols-3 { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } }
.cols-4 { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .cols-4 { grid-template-columns: repeat(4, 1fr); } }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); }
.box h3, .box h4 { margin-bottom: var(--s-3); }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--r-pill); }
.tag--bad { background: rgba(198,40,40,0.1); color: var(--danger); }
.tag--good { background: rgba(121,210,60,0.2); color: var(--green-ink); }
.tag--todo { background: rgba(255,106,26,0.16); color: var(--orange-ink); }
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
@media (min-width: 800px) { .swatches { grid-template-columns: repeat(4, 1fr); } }
.sw { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.sw i { display: block; height: 84px; }
.sw div { padding: var(--s-3); font-size: var(--fs-xs); line-height: 1.5; }
.sw b { display: block; font-family: var(--font-display); font-size: var(--fs-sm); }
.sw code, .box code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--green-ink); font-size: 0.85em; }
.type-spec { display: grid; gap: var(--s-5); }
.type-row { display: grid; gap: var(--s-2); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.type-row small { color: var(--muted); font-size: var(--fs-xs); }
.tree { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; line-height: 1.9; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); overflow-x: auto; white-space: pre; color: #3d433a; }
.tree b { color: var(--orange-ink); font-weight: 600; }
.tree i { color: var(--muted); font-style: normal; }
.flow { display: grid; gap: var(--s-3); }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(5, 1fr); } }
.flow-node { position: relative; padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--fs-sm); }
.flow-node b { display: block; font-family: var(--font-display); margin-bottom: 4px; color: var(--orange-ink); }
.mock-row { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 900px) { .mock-row { grid-template-columns: 1.5fr 1fr; } }
.device { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg); box-shadow: var(--shadow); }
.device-bar { height: 28px; background: #1c201c; display: flex; align-items: center; gap: 6px; padding-inline: 12px; }
.device-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a403a; }
.device iframe { display: block; width: 100%; border: 0; background: var(--bg); }
.device--phone { max-width: 330px; margin-inline: auto; border-radius: 34px; border-width: 6px; border-color: #2a2f2a; }
.device--phone .device-bar { justify-content: center; }
.rationale { display: grid; gap: var(--s-3); }
.rationale-row { display: grid; gap: var(--s-2); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .rationale-row { grid-template-columns: 1fr 1.4fr 1.4fr; gap: var(--s-5); } }
.rationale-row h4 { margin: 0; }
.rationale-row p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.rationale-row p b { color: var(--text); display: block; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
.spec-demo { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* ---------- 21. Grid safety: let grid children shrink (prevents wide tables/media from forcing page overflow) ---------- */
.with-aside > *, .split > *, .lead-grid > *, .contact-layout > *, .case > *, .cols-2 > *, .cols-3 > *, .cols-4 > *, .mock-row > * { min-width: 0; }

/* ---------- 22. Mobile hardening (thumb targets, narrow phones 320-374px) ---------- */
.btn { white-space: normal; text-align: center; line-height: 1.25; }
.link-arrow { min-height: 44px; }
.footer-links a { min-height: 44px; }
.contact-list a, .info-row a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-list li { margin-bottom: var(--s-1); align-items: center; }
.contact-list li > .i { margin-top: 0; }
.footer-bottom a.legal { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.mode-panel > * { min-width: 0; }
.wa-panel { max-height: calc(100svh - 120px); overflow-y: auto; overscroll-behavior: contain; }
.wa-panel-head { position: sticky; top: 0; z-index: 1; }
@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .trust-item { font-size: 0.82rem; padding: var(--s-3) var(--s-2); gap: var(--s-2); }
  .trust-item .i { width: 22px; height: 22px; }
  .seg label { font-size: 0.85rem; padding: 0 var(--s-2); gap: 6px; }
  .btn { padding-inline: 1.1rem; }
  .header-cta { gap: 6px; }
  .brand img { height: 44px; }
  .mode-tool, .form-card { padding: 1rem; }
  .filter-btn { padding: 0 1rem; }
}
.wa-panel-head { color: #fff; }
.wa-panel .field { margin-bottom: var(--s-3); }
@media (max-height: 760px) {
  .wa-bubble { display: none; }
  .wa-panel-head { padding: var(--s-3) var(--s-4); }
  .wa-panel-body { padding: var(--s-3) var(--s-4) var(--s-4); }
}
/* floating WhatsApp tucks away on phones while a form's submit buttons are on screen */
.wa-float { transition: opacity var(--t-med), transform var(--t-med) var(--ease); }
@media (max-width: 639px) { .wa-float.is-tucked { opacity: 0; transform: translateY(20px); pointer-events: none; } }

/* long uploaded file names must never stretch the form wider than the phone */
.form-grid > *, .field, .file-list, .file-item, .dropzone { min-width: 0; max-width: 100%; }
.file-item span { flex: 1 1 auto; min-width: 0; }
