/* Kan Binuy landing pages: shared template.
   Each project page overrides the brand tokens in its own <style> block. */

:root {
  --ink: #170c10;
  --ink-2: #2b2023;
  --muted: #6d6265;
  --paper: #fbf8f4;
  --sand: #f3ece3;
  --line: rgba(23, 12, 16, .12);
  --accent: #e76939;
  --accent-deep: #c9512a;
  --gold: #c48141;
  --ok: #1f7a4d;
  --err: #b3261e;

  --font-display: "Miriam Libre", "Arial Hebrew", Arial, sans-serif;
  --font-body: "Miriam Libre", "Arial Hebrew", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(23, 12, 16, .35);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-feature-settings: "kern";
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar .logo img { height: 26px; width: auto; filter: brightness(0) invert(1); transition: filter .3s ease; }
.topbar.is-solid { background: rgba(251, 248, 244, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.topbar.is-solid .logo img { filter: none; }
.topbar nav { display: none; gap: 26px; font-size: 16px; font-weight: 600; }
.topbar nav a { text-decoration: none; color: #fff; opacity: .9; }
.topbar.is-solid nav a { color: var(--ink); }
.topbar nav a:hover { opacity: 1; color: var(--accent); }
.topbar .actions { display: flex; align-items: center; gap: 10px; }
.phone-link {
  display: none; align-items: center; gap: 8px; text-decoration: none; font-weight: 700;
  color: #fff; font-size: 17px; letter-spacing: .02em;
}
.topbar.is-solid .phone-link { color: var(--ink); }
.phone-link svg { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 18px;
  text-decoration: none; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 16px; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: var(--ink-2); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; color: #fff; isolation: isolate;
  display: flex; align-items: flex-end;
  padding: calc(var(--bar-h) + 32px) 0 40px;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(23,12,16,.92) 0%, rgba(23,12,16,.55) 42%, rgba(23,12,16,.15) 70%, rgba(23,12,16,.45) 100%);
}
.hero-grid { display: grid; gap: 28px; align-items: end; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--accent);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.hero .eyebrow { color: #fff; background: rgba(231,105,57,.92); padding: 6px 14px; border-radius: 999px; }
.hero .eyebrow::before { background: #fff; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 6.6vw, 76px); line-height: 1.1; margin: 16px 0 14px; letter-spacing: -.01em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(18px, 2.1vw, 22px); max-width: 34ch; margin: 0 0 22px; color: rgba(255,255,255,.9); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.chips li { font-size: 15px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card { display: none; }
.hero-note { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.65); }

/* ---------- Lead form ---------- */
.lead-card {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow);
}
.lead-card h2, .lead-card h3 { font-family: var(--font-display); font-size: 28px; line-height: 1.15; margin: 0 0 6px; }
.lead-card .sub { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--paper); font-size: 17px;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); background: #fff; }
.field input[type="tel"] { direction: ltr; text-align: right; }
.field.has-error input { border-color: var(--err); }
.field .err { display: none; color: var(--err); font-size: 14px; }
.field.has-error .err { display: block; }
.rooms { border: 0; padding: 0; margin: 4px 0 14px; }
.rooms legend { font-size: 15px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.rooms .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.rooms .opts label { position: relative; }
.rooms input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rooms .opts span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); font-size: 15px; font-weight: 600; background: var(--paper);
  transition: all .15s ease;
}
.rooms .opts input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.rooms .opts input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 16px; line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.consent a { color: var(--ink); }
.consent.has-error { color: var(--err); }
.lead-card .btn { width: 100%; }
.form-status { margin: 12px 0 0; font-size: 15px; min-height: 1em; }
.form-status.is-err { color: var(--err); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }
html, body { overflow-x: clip; }
.trust { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.trust svg { width: 16px; height: 16px; flex: none; }

/* ---------- Facts strip ---------- */
.facts { background: var(--ink); color: #fff; }
.facts ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
.facts li { display: grid; gap: 2px; text-align: center; }
.facts b { font-family: var(--font-display); font-size: clamp(34px, 5vw, 52px); line-height: 1; color: var(--accent); font-weight: 700; }
.facts span { font-size: 15px; color: rgba(255,255,255,.78); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.alt { background: var(--sand); }
.section h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.2vw, 50px); line-height: 1.15; margin: 12px 0 18px; font-weight: 600;
}
.section .intro { font-size: clamp(18px, 1.8vw, 21px); color: var(--ink-2); max-width: 60ch; margin: 0; }
.split { display: grid; gap: 32px; align-items: center; }
.split figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.split figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Stages */
.stages { display: grid; gap: 14px; margin-top: 36px; }
.stage {
  position: relative; border-radius: var(--radius); padding: 24px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.stage.is-now { background: var(--ink); color: #fff; box-shadow: none; }
.stage .tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--ink); }
.stage.is-now .tag { background: var(--accent); color: #fff; }
.stage h3 { font-family: var(--font-display); font-size: 26px; margin: 14px 0 4px; }
.stage p { margin: 0; color: var(--muted); font-size: 16px; }
.stage.is-now p { color: rgba(255,255,255,.78); }
.stage .units { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1; margin-top: 16px; }
.stage .units small { font-family: var(--font-body); font-size: 16px; color: inherit; font-weight: 600; }
.stage.is-now .units small { color: #fff; }

/* Gallery rail */
.rail-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rail-nav { display: none; gap: 8px; }
.rail-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; }
.rail-nav button:hover { border-color: var(--ink); }
.rail-nav svg { width: 20px; height: 20px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px var(--gutter) 8px;
  margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail figure { margin: 0; scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.rail button.shot { all: unset; display: block; cursor: zoom-in; width: 100%; }
.rail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.rail figure:hover img { transform: scale(1.03); }
.rail figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 18px 14px; color: #fff; font-weight: 600; font-size: 16px; background: linear-gradient(to top, rgba(23,12,16,.75), transparent); }
.disclaimer { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Location */
.places { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.places li { background: var(--paper); padding: 16px 18px; display: grid; gap: 2px; }
.section.alt .places li { background: var(--sand); }
.places b { font-size: 17px; }
.places span { font-size: 14px; color: var(--muted); }
.map { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.map img { width: 100%; height: auto; }

/* Transit */
.transit { display: grid; gap: 14px; margin-top: 36px; }
.transit article { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: inset 0 0 0 1px var(--line); display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; }
.transit .dot { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; }
.transit h3 { margin: 0; font-size: 20px; line-height: 1.3; }
.transit p { margin: 0; color: var(--muted); font-size: 16px; }
.transit .min { font-family: var(--font-display); font-size: 30px; color: var(--accent); font-weight: 700; }

/* Photo band */
.band { position: relative; min-height: 64vh; display: flex; align-items: flex-end; color: #fff; isolation: isolate; padding: 48px 0; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(23,12,16,.8), rgba(23,12,16,0) 65%); }
.band blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 4.2vw, 50px); line-height: 1.15; max-width: 22ch; }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin-top: 32px; }
.video button { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.video .play { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 40px rgba(0,0,0,.35); transition: transform .2s ease; }
.video button:hover .play { transform: scale(1.06); }
.video .play svg { width: 30px; height: 30px; margin-left: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Partners */
.partners { display: grid; gap: 14px; margin-top: 36px; }
.partners article { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: inset 0 0 0 1px var(--line); }
.partners img { height: 52px; width: auto; margin-bottom: 18px; }
.partners p { margin: 0; color: var(--ink-2); font-size: 17px; }

/* Final CTA */
.final { background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.final::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--accent); inset-inline-end: -180px; top: -180px; opacity: .14; z-index: -1; }
.final .split { align-items: start; }
.final.section { padding-bottom: clamp(40px, 5vw, 64px); }
.final h2 { color: #fff; }
.final .intro { color: rgba(255,255,255,.8); }
.contact-lines { display: grid; gap: 10px; margin-top: 28px; }
.contact-lines a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 20px; font-weight: 700; }
.contact-lines a:hover { color: var(--accent); }
.contact-lines svg { width: 22px; height: 22px; color: var(--accent); }

/* Footer: one slim line that closes the final section, so the form is the end of the page */
.footer { background: var(--ink); color: rgba(255,255,255,.5); font-size: 12.5px; line-height: 1.5; padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.08); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }
.footer a { color: rgba(255,255,255,.75); }
.footer .logos { display: flex; gap: 16px; align-items: center; }
.footer .logos img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .6; }
.footer .legal { flex: 1 1 320px; }
.footer .credit { text-decoration: none; font-weight: 600; }
.footer .credit:hover { color: var(--accent); }

/* Mobile action bar */
.mbar {
  position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(251,248,244,.97); backdrop-filter: blur(10px);
  box-shadow: 0 -1px 0 var(--line); transform: translateY(110%); transition: transform .3s ease;
}
.mbar.is-on { transform: none; }
.mbar a, .mbar button { border: 0; cursor: pointer; min-height: 50px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 16px; text-decoration: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.mbar a.wa { color: #128c4b; }
.mbar .primary { background: var(--accent); color: #fff; box-shadow: none; }
.mbar svg { width: 20px; height: 20px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(14,7,9,.92); }
.lightbox .lb-inner { width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 16px; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox .lb-close { position: fixed; top: 14px; inset-inline-end: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; cursor: pointer; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .facts ul { grid-template-columns: repeat(4, 1fr); }
  .rail { grid-auto-columns: 46%; }
  .places { grid-template-columns: repeat(3, 1fr); }
  .phone-link { display: inline-flex; }
}
@media (min-width: 960px) {
  :root { --bar-h: 76px; }
  .topbar .logo img { height: 32px; }
  .topbar nav { display: flex; }
  .hero { align-items: center; padding-bottom: 64px; }
  .hero-grid { grid-template-columns: 1.25fr minmax(360px, 420px); gap: 56px; }
  .hero-card { display: block; }
  .hero-ctas .btn-form { display: none; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.flip > :first-child { order: 2; }
  .stages, .transit { grid-template-columns: repeat(3, 1fr); }
  .partners { grid-template-columns: 1fr 1fr; }
  .rail { grid-auto-columns: 38%; padding-inline: 0; margin-inline: 0; }
  .rail-nav { display: flex; }
  .mbar { display: none; }
}

/* ---------- Sticky lead form ----------
   Mobile: bottom sheet opened from the action bar.
   Desktop: slim bar pinned to the bottom, visible after the hero and hidden over the final form. */
.sl-backdrop { position: fixed; inset: 0; z-index: 69; background: rgba(14,7,9,.55); }
.sl-backdrop[hidden] { display: none; }
.sticky-lead {
  position: fixed; inset: auto 0 0 0; z-index: 70;
  background: #fff; color: var(--ink); border-radius: 20px 20px 0 0;
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 60px -20px rgba(23,12,16,.45);
  transform: translateY(105%); visibility: hidden;
  transition: transform .35s ease, visibility 0s linear .35s;
  max-height: 92svh; overflow-y: auto;
}
.sticky-lead.is-open { transform: none; visibility: visible; transition: transform .35s ease; }
.sl-form { display: grid; gap: 10px; }
.sl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sl-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.2; }
.sl-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sand); font-size: 24px; line-height: 1; cursor: pointer; }
.sl-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sl-form .field { margin: 0; }
.sl-form input[type="email"] { text-align: right; }
.sl-form input[type="email"]:placeholder-shown { direction: rtl; }
.sl-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23170c10' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center / 16px;
  padding-left: 38px;
}
.sl-form select:invalid, .sl-form select.is-empty { color: #8a8083; }
.sl-form .consent { margin: 2px 0; }
.sl-form .btn { width: 100%; }
.sl-form .form-status { margin: 0; min-height: 0; }
.sl-form .form-status:empty { display: none; }
body.sl-locked { overflow: hidden; }

@media (min-width: 960px) {
  .sl-backdrop, .sl-close, .mbar [data-sticky-open] { display: none !important; }
  .sticky-lead {
    border-radius: 0; padding: 12px 0; background: rgba(23,12,16,.96); color: #fff;
    backdrop-filter: blur(10px); box-shadow: 0 -10px 40px -10px rgba(0,0,0,.4);
    max-height: none; overflow: visible;
  }
  .sticky-lead.is-shown { transform: none; visibility: visible; transition: transform .35s ease; }
  .sl-form {
    width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
    grid-template-columns: auto 1fr 1fr 1.15fr 1fr auto; align-items: center; gap: 8px 12px;
    position: relative;
  }
  .sl-head { padding-inline-end: 6px; }
  .sl-title { font-size: 18px; color: #fff; white-space: nowrap; }
  .sl-form .field input, .sl-form .field select {
    min-height: 46px; background-color: rgba(255,255,255,.12); border-color: rgba(255,255,255,.32); color: #fff; font-size: 16px;
  }
  .sl-form .field input::placeholder { color: #fff; opacity: 1; }
  .sl-form .field input:focus, .sl-form .field select:focus { background-color: rgba(255,255,255,.14); border-color: var(--accent); }
  .sl-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
  .sl-form select.is-empty { color: #fff; }
  .sl-form select option { color: var(--ink); background: #fff; }
  .sl-form .field.has-error input { border-color: #ff8a80; }
  .sl-form .consent { color: #fff; font-size: 13px; white-space: nowrap; margin: 0; align-items: center; }
  .sl-form .consent a { color: #fff; }
  .sl-form .consent.has-error { color: #ff8a80; }
  .sl-form .consent input { margin: 0; }
  .sl-form .btn { width: auto; min-height: 46px; white-space: nowrap; }
  .sl-form .btn { grid-row: 1; grid-column: 6; padding-inline: 28px; }
  .sl-form .consent { grid-row: 2; grid-column: 2 / 6; }
  .sl-form .form-status { position: absolute; bottom: calc(100% + 10px); inset-inline-end: 0; background: #fff; color: var(--err); padding: 8px 14px; border-radius: 8px; font-size: 14px; }
}
@media (min-width: 960px) and (max-width: 1180px) {
  .sl-head { display: none; }
  .sl-form { grid-template-columns: 1fr 1fr 1.1fr 1fr auto; }
  .sl-form .btn { grid-column: 5; }
  .sl-form .consent { grid-column: 1 / 5; }
}

/* ---------- Guided WhatsApp chat ----------
   Launcher floats on desktop; on mobile the bottom bar's WhatsApp button opens it. */
:root { --wa: #1fa855; --wa-deep: #168c45; --wa-paper: #efeae2; }
.wa-launch {
  position: fixed; z-index: 65; inset-inline-end: 24px; bottom: 24px;
  display: none; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 18px;
  border: 0; border-radius: 999px; background: var(--wa); color: #fff; font: inherit; font-weight: 700; font-size: 16px;
  box-shadow: 0 12px 30px -8px rgba(22,140,69,.55); cursor: pointer; transition: bottom .35s ease, background .2s ease;
}
.wa-launch:hover { background: var(--wa-deep); }
.wa-launch svg { width: 24px; height: 24px; }
body:has(.sticky-lead.is-shown) .wa-launch { bottom: 124px; }
body.wa-locked .wa-launch { opacity: 0; pointer-events: none; }

.wa-backdrop { position: fixed; inset: 0; z-index: 79; background: rgba(14,7,9,.45); }
.wa-backdrop[hidden] { display: none; }
.wa-chat {
  position: fixed; z-index: 80; inset: auto 0 0 0; height: min(86svh, 640px);
  display: flex; flex-direction: column; background: var(--wa-paper); color: var(--ink);
  border-radius: 20px 20px 0 0; overflow: hidden; box-shadow: 0 -20px 60px -20px rgba(0,0,0,.5);
  transform: translateY(105%); visibility: hidden; transition: transform .35s ease, visibility 0s linear .35s;
}
.wa-chat.is-open { transform: none; visibility: visible; transition: transform .35s ease; }
body.wa-locked { overflow: hidden; }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ink); color: #fff; }
.wa-head b { display: block; font-size: 16px; line-height: 1.3; }
.wa-head small { display: block; font-size: 13px; color: rgba(255,255,255,.65); }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; flex: none; }
.wa-avatar svg { width: 22px; height: 22px; }
.wa-x { margin-inline-start: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; cursor: pointer; }
.wa-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.wa-msg { max-width: 84%; padding: 9px 13px; border-radius: 14px; font-size: 16px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.08); animation: wa-in .25s ease; }
.wa-msg.bot { align-self: flex-start; background: #fff; border-start-start-radius: 4px; }
.wa-msg.me { align-self: flex-end; background: #d9fdd3; border-start-end-radius: 4px; }
.wa-typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.wa-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a9497; animation: wa-dot 1s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; }
.wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes wa-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wa-controls { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: #f7f4ef; border-top: 1px solid rgba(0,0,0,.06); display: grid; gap: 8px; }
.wa-controls:empty { display: none; }
.wa-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-opts button { border: 1.5px solid var(--wa); background: #fff; color: var(--wa-deep); border-radius: 999px; min-height: 40px; padding: 0 14px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.wa-opts button:hover { background: var(--wa); color: #fff; }
.wa-input { display: flex; gap: 8px; }
.wa-input input { flex: 1; min-height: 48px; border-radius: 999px; border: 1.5px solid rgba(0,0,0,.12); background: #fff; padding: 0 16px; font: inherit; font-size: 16px; }
.wa-input input:focus { outline: none; border-color: var(--wa); }
.wa-input button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--wa); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.wa-input button svg { width: 22px; height: 22px; }
.wa-err { margin: 0; color: var(--err); font-size: 14px; }
.wa-err:empty { display: none; }
.wa-note { margin: 0; font-size: 13px; color: var(--muted); }
.wa-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border-radius: 999px; border: 0; background: var(--wa); color: #fff; font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; }
.wa-go:hover { background: var(--wa-deep); }
.wa-go svg { width: 22px; height: 22px; }

@media (min-width: 960px) {
  body.past-hero .wa-launch { display: inline-flex; }
  .wa-backdrop { background: transparent; }
  .wa-chat { inset: auto auto 24px 24px; width: 380px; height: min(600px, calc(100vh - 120px)); border-radius: 18px; }
  body:has(.sticky-lead.is-shown) .wa-chat { bottom: 124px; }
  body.wa-locked { overflow: auto; }
}
@media (prefers-reduced-motion: reduce) { .wa-msg, .wa-typing i { animation: none; } }
