/* ==========================================================================
   SEITEL — Components (DESIGN.md §6, §11)
   ========================================================================== */

/* ---------- Buttons (§6.1 v2.1): one shape, no glow, no typed arrows ----------
   All buttons: radius --r-btn (14px), Montserrat 600, no shadow.
   Icon: inline Phosphor Bold ArrowRight (.btn__icon, 18px) — never a typed "→".
   Variants: --xl · --primary · --secondary · --ghost-dark · --light · --link */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--r-btn);
  font-family: var(--font);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease),
    background-size var(--dur-base) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.btn__icon {
  flex: none;
  width: 18px;
  height: 18px;
  transition: transform var(--dur-fast) var(--ease);
}
.btn:hover .btn__icon,
.btn:focus-visible .btn__icon { transform: translateX(3px); }

/* XL: main CTA. Navy fill sweeps in from the left (400ms) and the button rises 2px. No shadow. */
.btn--xl {
  height: 64px;
  padding: 0 36px;
  font-size: 17px;
  color: var(--white);
  background-color: var(--blue-600);
  background-image: linear-gradient(var(--navy-700), var(--navy-700));
  background-repeat: no-repeat;
  background-size: 0% 100%;
}
.btn--xl:hover,
.btn--xl:focus-visible { background-size: 100% 100%; transform: translateY(-2px); }
.btn--xl:active { transform: none; }

/* Primary: blue, navy on hover */
.btn--primary {
  height: 52px;
  padding: 0 28px;
  font-size: 16px;
  color: var(--white);
  background: var(--blue-600);
}
.btn--primary:hover { background: var(--navy-700); }
.btn--sm { height: 44px; padding: 0 22px; font-size: 15px; }

/* Secondary: 1px line, ink text + arrow; hover fills ink */
.btn--secondary {
  min-height: 52px;
  height: auto;
  padding: 14px 24px;
  white-space: normal; /* long labels wrap instead of overflowing on phones */
  text-align: left;
  line-height: 1.3;
  border: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-900);
  background: transparent;
}
.btn--secondary:hover,
.btn--secondary:focus-visible { border-color: var(--ink-900); background: var(--ink-900); color: var(--white); }

/* Ghost on dark blocks (Solutions): white on 8% white, 24% border; hover sky fill */
.btn--ghost-dark {
  min-height: 44px;
  height: auto;
  padding: 10px 18px;
  white-space: normal; /* long labels wrap on phones */
  text-align: left;
  line-height: 1.3;
  font-size: 15px;
  color: var(--white);
  background: var(--on-dark-08);
  border: 1px solid var(--on-dark-24);
}
.btn--ghost-dark:hover,
.btn--ghost-dark:focus-visible { background: var(--sky-400); border-color: var(--sky-400); color: var(--ink-900); }

/* Light: on photo cards (featured card) — ink text on white; hover sky-50 */
.btn--light {
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
  color: var(--ink-900);
  background: var(--white);
}
.btn--light:hover,
.btn--light:focus-visible { background: var(--sky-50); }

/* Link: underlined text, only inside paragraphs (policy links, inline references) */
.btn--link,
.link {
  display: inline;
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.btn--link { height: auto; padding: 0; border-radius: 0; font-size: inherit; background: none; }

.btn--block { display: flex; width: 100%; }

/* CTA + microcopy below (form submit only): small slate-600 text with a 6px sky dot */
.btn-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
}
.btn-cta--block { display: flex; align-items: stretch; }
.btn-cta__micro {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--slate-600);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
}
.btn-cta__micro::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky-400);
}

@media (max-width: 767px) {
  .btn--xl { height: 56px; padding: 0 28px; }
}

/* ---------- Floating data card (§6.4) ---------- */
.float-card {
  background: var(--white);
  border-radius: var(--r-float);
  padding: var(--s-4) 20px;
  box-shadow: var(--shadow-2);
  color: var(--ink-900);
}

.float-card__label { color: var(--slate-600); }

.float-card__value {
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--ls-stat);
  font-variant-numeric: tabular-nums;
}

/* ---------- Logo ----------
   Inline <use href="#seitel-logo"> (emblem + wordmark), vectorised from the
   client PNGs. Colors are driven by these properties so one symbol serves
   the full-color, on-dark and single-color (placeholder) versions. */
.logo {
  --logo-navy: var(--navy-700);
  --logo-blue: var(--blue-600);
  --logo-sky:  var(--sky-400);
  --logo-word: var(--navy-700);
  display: inline-flex;
  align-items: center;
}

/* On dark backgrounds: navy dots and wordmark switch to white */
.logo--on-dark {
  --logo-navy: var(--white);
  --logo-word: var(--white);
}

.logo__svg {
  height: 30px;
  width: auto;
  aspect-ratio: 937.4 / 353.7;
}

/* Symbol only (nav, mobile menu — §6.7 v1.2): the dot spiral, 38px tall */
.logo__svg--emblem {
  height: 38px;
  aspect-ratio: 97.36 / 100;
}

/* ---------- Placeholder (§11) ----------
   Stand-in for a real photo/video. Replace the whole element with an <img>.
   <div class="placeholder">
     <svg class="placeholder__mark"><use href="#seitel-spiral"/></svg>
     <span class="placeholder__label t-osd">Foto pendiente · Nombre</span>
   </div>
*/
.placeholder {
  --logo-navy: currentColor;
  --logo-blue: currentColor;
  --logo-sky:  currentColor;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--mist);
  color: var(--line);
  border-radius: inherit;
}

.placeholder__mark {
  width: min(32%, 220px);
  height: auto;
  aspect-ratio: 1;
}

.placeholder__label {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  color: var(--slate-400);
}

.placeholder--dark {
  background: var(--ink-900);
  color: var(--navy-700);
}
.placeholder--dark .placeholder__label { color: rgba(var(--white-rgb), .8); }

/* ---------- Navigation (§6.7 v2.0) ----------
   A white pill exactly as wide as the container (§5.1), 64px tall, 16px from the
   top. Same style over the hero and on scroll. No blur, no arrow circle. */
.site-header {
  position: fixed;
  top: var(--nav-top);
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
  transition: transform var(--dur-base) var(--ease);
}
/* Scrolling down: the pill slides out (shadow included); scrolling up brings it back. */
.site-header.is-hidden { transform: translateY(calc(-100% - var(--nav-top) - 12px)); }

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: var(--nav-h);
  padding: 0 12px 0 14px; /* the spiral sits as close to the edge as the CTA */
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-1);
  color: var(--ink-900);
}

.nav__logo .logo__svg--emblem { height: 48px; }

.nav__links {
  display: flex;
  gap: var(--s-4); /* 12 + 16 + 12 = 40px between labels */
}

.nav__link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--r-btn);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-900);
  transition: color var(--dur-fast) var(--ease);
}
.nav__link:hover,
.is-current > .nav__link { color: var(--blue-600); }

.nav__cta.btn--primary { height: 48px; padding: 0 24px; font-size: 16px; }

.nav__toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--white);
}

@media (max-width: 959px) {
  .nav { padding: 0 9px 0 10px; }
  .nav__links,
  .nav__cta { display: none; }
  .nav__toggle { display: grid; }
}

/* ---------- Mobile menu (§6.7) ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: var(--nav-top) var(--pad-x) var(--s-6);
  background: var(--ink-900);
  color: var(--white);
  overflow-y: auto;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }

.mobile-menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 9px 0 10px;
  border: 1px solid rgba(var(--white-rgb), .14);
  border-radius: var(--r-pill);
}

.mobile-menu__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink-900);
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-top: var(--s-8);
  padding-inline: var(--s-2);
}

.mobile-menu__link {
  display: inline-block;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: var(--ls-h2);
  transition: color var(--dur-fast) var(--ease);
}
.mobile-menu__link:hover { color: var(--sky-400); }

.mobile-menu__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-5);
  margin-top: auto;
  padding: var(--s-7) var(--s-2) 0;
}

.mobile-menu__contact {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  font-size: var(--fs-small);
  font-weight: 500;
}

.mobile-menu__contact a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: rgba(var(--white-rgb), .8);
}
.mobile-menu__contact a:hover { color: var(--white); }

.icon--whatsapp { color: var(--whatsapp); }

/* ---------- Chips (§6.3 v2.0) ----------
   32px pill, 13px. Inactive: 1px line. Active: ink with white text.
   Dark variant (.on-dark): translucent white border, white text. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-900);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.chip.is-active,
.chip[aria-pressed="true"] {
  border-color: var(--ink-900);
  background: var(--ink-900);
  color: var(--white);
}

.on-dark .chip { border-color: var(--on-dark-24); color: var(--white); }

/* ---------- Positive delta pill (§3.5): sky-50 + navy text, never green ---------- */
.pill-delta {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--sky-50);
  color: var(--navy-700);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- Floating card parts ---------- */
.float-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

/* ---------- Dot matrix (brand motif, §2) ---------- */
.dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dots__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}
.dots__dot.is-filled { background: var(--blue-600); }

/* ---------- Mini cards (About) ---------- */
.mini-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-5);
  margin: 0;
  padding: var(--s-5);
  border-radius: var(--r-card);
}

.mini-card--figure { background: var(--mist); }
.mini-card__value { color: var(--navy-700); }
.mini-card__caption { color: var(--slate-600); }

.mini-card--quote {
  border: 1px solid var(--line);
  background: var(--white);
}

.mini-card__quote {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-900);
}

.mini-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--slate-600);
}
.mini-card__name { color: var(--ink-900); font-weight: 600; }

/* ---------- Accordion (Solutions) ----------
   One item open at a time. Closed panels are `inert` so their links
   cannot receive focus. */
.accordion { border-bottom: 1px solid var(--line); }

.accordion__item { border-top: 1px solid var(--line); }

.accordion__heading { margin: 0; }

.accordion__trigger {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 36px;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  padding: 22px 0;
  text-align: left;
  color: var(--ink-900);
}

.accordion__num {
  color: var(--slate-400);
  font-size: var(--fs-small);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.accordion__title { transition: color var(--dur-fast) var(--ease); }
.accordion__trigger:hover .accordion__title { color: var(--blue-600); }

.accordion__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-700);
  transition: background-color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.accordion__icon .icon { width: 16px; height: 16px; }
.accordion__icon .icon--minus { display: none; }

.accordion__item.is-open .accordion__title { color: var(--ink-900); }
.accordion__item.is-open .accordion__icon {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}
.accordion__item.is-open .icon--plus { display: none; }
.accordion__item.is-open .icon--minus { display: block; }

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease);
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }

.accordion__inner { overflow: hidden; }

.accordion__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
  padding: 0 0 var(--s-6) calc(40px + var(--s-3));
}

.accordion__text { color: var(--slate-600); max-width: 52ch; }

@media (max-width: 767px) {
  .accordion__trigger { grid-template-columns: 32px minmax(0, 1fr) 36px; padding: 18px 0; }
  .accordion__content { padding-left: 0; }
}

/* ---------- Filter chips as buttons (§6.3) ---------- */
button.chip {
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
button.chip:hover { border-color: var(--slate-400); }
button.chip[aria-pressed="true"]:hover { border-color: var(--ink-900); }

/* ---------- Project card (§6.5) ----------
   The title link is stretched over the whole card (one tab stop per card). */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.project-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--mist);
  isolation: isolate; /* keeps the radius clipping the scaled image in Safari */
}

.project-card__media > img,
.project-card__media > .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.project-card:hover .project-card__media > img,
.project-card:hover .project-card__media > .placeholder { transform: scale(1.03); }

/* Placeholder label may be long ("Foto pendiente · Conjunto Residencial…") */
.project-card .placeholder__label {
  right: var(--s-4);
  line-height: 1.5;
}
.project-card .placeholder__mark { width: min(28%, 160px); }

/* Camera-style label: only on real photos, max one per card (§14) */
.project-card__osd {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  color: rgba(var(--white-rgb), .8);
  pointer-events: none;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

/* Metadata line (§6.5 v2.1): plain text, no chips */
.project-card__place { color: var(--slate-600); }

.project-card__title { color: var(--ink-900); }

.project-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--r-card);
}

.project-card__figure {
  color: var(--blue-600); /* one figure in --blue-600 (§6.5) */
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

/* Focus: ring around the whole card, not just the title text */
@supports selector(:has(*)) {
  .project-card__link:focus-visible { outline: none; }
  .project-card:has(.project-card__link:focus-visible) .project-card__media {
    outline: 2px solid var(--focus, var(--blue-600));
    outline-offset: 2px;
  }
}


/* ---------- Dot-matrix figure card (§2, §7.06) ---------- */
.dot-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-6);
  min-width: 0;
  padding: var(--s-6);
  border-radius: var(--r-card);
  background: var(--navy-700);
  color: var(--white);
}

.dot-card__text { display: flex; flex-direction: column; gap: var(--s-3); }

.dot-card__value {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  color: var(--sky-400);
}
.dot-card__of {
  font-weight: 500;
  font-size: 0.45em;
  letter-spacing: -0.01em;
  color: var(--white);
}

.dot-card__caption {
  max-width: 24ch;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--white);
}

.dot-card .dots {
  display: grid;
  grid-template-columns: repeat(10, 10px);
  gap: 10px;
}
.dot-card .dots__dot { width: 10px; height: 10px; background: rgba(var(--white-rgb), .18); }
.dot-card .dots__dot.is-filled { background: var(--sky-400); }

/* ---------- Testimonial card (§6.6) ---------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-7);
  padding: var(--s-7);
  border-radius: var(--r-card);
  background: var(--sky-50);
}

/* Quote: Montserrat 400 20px ink, typographic quotes (§6.6) */
.testimonial-card__quote {
  margin: 0;
  font-size: clamp(1.125rem, 1.05rem + 0.33vw, 1.25rem); /* 18 → 20 */
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-900);
  max-width: 44ch;
}

.testimonial-card__author { display: block; }

.testimonial-card__name { display: block; font-weight: 600; color: var(--ink-900); }
.testimonial-card__role { display: block; color: var(--slate-600); }

/* ---------- Form (§7.10) ---------- */
.form-card {
  position: relative;
  padding: var(--s-6);
  border-radius: var(--r-card);
  background: var(--white);
  color: var(--ink-900);
}

.form { display: flex; flex-direction: column; gap: var(--s-5); }
.form__title { color: var(--ink-900); }

.form__summary {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-input);
  border: 1px solid var(--error);
  color: var(--error);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5) var(--s-4);
}
.field--full { grid-column: 1 / -1; }

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  min-width: 0;
}

.field--group { margin: 0; padding: 0; border: 0; }
.field--group .chips { gap: var(--s-2); }

.field__label {
  padding: 0;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-900);
}
.field__optional { color: var(--slate-600); font-weight: 400; }

.field__input {
  width: 100%;
  height: 48px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  background: var(--white);
  font-size: 16px; /* 16px avoids iOS zoom on focus */
  color: var(--ink-900);
  transition: border-color var(--dur-fast) var(--ease);
}
.field__input::placeholder { color: var(--slate-400); }
.field__input:hover { border-color: var(--slate-400); }
.field__input:focus-visible { outline: 2px solid var(--focus, var(--blue-600)); outline-offset: 0; border-color: var(--blue-600); }

.field__input--area {
  height: auto;
  min-height: 112px;
  padding: var(--s-3) var(--s-4);
  line-height: 1.5;
  resize: vertical;
}

.field__input[aria-invalid="true"] { border-color: var(--error); }

.field__error {
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
  color: var(--error);
}

/* Selectable chips: native checkbox/radio, visually a chip */
.chip-option { position: relative; display: inline-flex; cursor: pointer; }
.chip-option__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.chip-option .chip {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.chip-option:hover .chip { border-color: var(--slate-400); }
.chip-option__input:checked + .chip {
  border-color: var(--ink-900);
  background: var(--ink-900);
  color: var(--white);
}
.chip-option__input:focus-visible + .chip { outline: 2px solid var(--focus, var(--blue-600)); outline-offset: 2px; }
.field--group[aria-invalid="true"] .chip { border-color: var(--error); }

/* Consent checkbox */
.check {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
  cursor: pointer;
}
.check__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.check__box {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid var(--slate-400);
  border-radius: calc(var(--r-input) / 2);
  background: var(--white);
  color: var(--white);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.check__box .icon { width: 14px; height: 14px; opacity: 0; }
.check__input:checked + .check__box { background: var(--blue-600); border-color: var(--blue-600); }
.check__input:checked + .check__box .icon { opacity: 1; }
.check__input:focus-visible + .check__box { outline: 2px solid var(--focus, var(--blue-600)); outline-offset: 2px; }
.check__input[aria-invalid="true"] + .check__box { border-color: var(--error); }
.check__text { color: var(--slate-600); font-weight: 400; }
.check__text .link { font-size: inherit; }

.form__submit { align-self: flex-start; }
.form__submit[disabled] { cursor: progress; opacity: .7; }

/* Success state */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-5);
  padding: var(--s-4) 0;
}
.form-success:focus { outline: none; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sky-50);
  color: var(--navy-700);
}
.form-success__text { color: var(--slate-600); }

@media (max-width: 767px) {
  .form-card { padding: var(--s-5); }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- WhatsApp help card (§6.8 v2.1) ----------
   Fixed bottom-right, 24px from both edges. Ink card + green WhatsApp tile.
   One entrance after the hero (fade + 16px), hides over the contact section.
   No loops, no pulsing. Mobile (<768px): only the 56px tile. */
.wa-card {
  position: fixed;
  right: var(--s-5);
  bottom: var(--s-5);
  z-index: 40;
  box-sizing: border-box;
  max-width: calc(100vw - 48px); /* never clipped by the viewport edge */
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: 14px 14px 14px 20px;
  border-radius: var(--r-float);
  background: var(--ink-900);
  box-shadow: var(--shadow-2);
  color: var(--white);
  transition:
    opacity var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease),
    visibility 0s linear var(--dur-base);
}
.wa-card:hover { transform: translateY(-2px); }

/* Hidden until the hero has scrolled away, and while the contact block is in view.
   Only when JS can reveal it: without JS the card is simply visible. */
.js .wa-card:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
}
.wa-card.is-visible {
  transition:
    opacity var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease),
    visibility 0s;
}

.wa-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wa-card__title { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--white); }
.wa-card__sub { color: var(--on-dark-72); font-size: 13px; line-height: 1.3; }

.wa-card__tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-input);
  background: var(--whatsapp);
  color: var(--white);
}
.wa-card__tile .icon { width: 26px; height: 26px; }
.wa-card__glyph { fill: currentColor; }

@media (max-width: 767px) {
  .wa-card {
    right: var(--s-4);
    bottom: var(--s-4);
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .wa-card__text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .wa-card__tile {
    width: 56px;
    height: 56px;
    border-radius: var(--r-float);
    box-shadow: var(--shadow-2);
  }
}

/* The white form card sits inside the dark CTA block: restore light-surface colors
   (never sky/white text on white, never blue on dark — §3.4). */
.on-dark .form-card .chip { border-color: var(--line); color: var(--ink-900); }
.on-dark .form-card .chip-option__input:checked + .chip { border-color: var(--ink-900); background: var(--ink-900); color: var(--white); }
.on-dark .form-card .link,
.on-dark .form-card .btn--link { color: var(--blue-600); }

/* Honeypot (inc/forms.php): off-screen rather than display:none, so simple bots still fill it */
.form__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
