/* ==========================================================================
   components.css — every reusable component, defined once.
   Loads after layout.css.
   ========================================================================== */

/* ================================================================ EYEBROW */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: '';
  width: var(--sp-5);
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

/* ================================================================= BUTTON
   All variants share one geometry; they differ only in fill and border.
   Minimum target 44px (WCAG 2.5.8). */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-bd: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-3) var(--sp-5);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  letter-spacing: 0.005em;
  text-decoration: none;
  /* Labels may wrap rather than overflow a phone (audit: a 399px label on
     a 320px screen). Balanced so a wrapped label splits evenly. */
  white-space: normal;
  text-wrap: balance;
  text-align: center;
  max-width: 100%;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-out),
              background-color var(--dur-1) var(--ease-inout),
              border-color var(--dur-1) var(--ease-inout),
              box-shadow var(--dur-2) var(--ease-out),
              color var(--dur-1) var(--ease-inout);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn[disabled], .btn[aria-disabled='true'] {
  opacity: .55;
  pointer-events: none;
  transform: none;
}
.btn__icon { width: 1.125em; height: 1.125em; flex: none; }

.btn--primary {
  --btn-bg: var(--coral-500);
  --btn-fg: var(--on-accent); /* 4.70:1 on --coral-500 (measured) */
  --btn-bd: var(--coral-500);
  box-shadow: var(--sh-1);
}
.btn--primary:hover { --btn-bg: var(--coral-600); --btn-bd: var(--coral-600); box-shadow: var(--sh-2); }
.btn--primary:active { --btn-bg: var(--coral-700); --btn-bd: var(--coral-700); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-bd: var(--fg-3);
}
.btn--ghost:hover { --btn-bd: var(--fg); --btn-bg: var(--wash-ink); }
.on-studio .btn--ghost { --btn-bd: var(--on-studio-2); }
.on-studio .btn--ghost:hover { --btn-bd: var(--on-studio); --btn-bg: var(--wash-light); }

/* WhatsApp. White, outlined, with the green mark (ADR-014): the coral CTA
   stays the single loudest control, WhatsApp is the calm alternative. The
   label is ink (17:1), so the outline is decorative; the green icon is the
   recognition cue. The floating button (.fab) stays solid green. */
.btn--whatsapp {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-bd: var(--rule-strong);
}
.btn--whatsapp .btn__icon { color: var(--wa-green); }
.btn--whatsapp:hover { --btn-bg: var(--wa-wash); --btn-bd: var(--wa-green); }
.btn--whatsapp:active { --btn-bd: var(--wa-green-dark); }
.on-studio .btn--whatsapp { --btn-bg: transparent; --btn-fg: var(--on-studio); --btn-bd: var(--border-control-dark); }

.btn--lg { min-height: 52px; padding: var(--sp-4) var(--sp-6); font-size: var(--fs-body); }
.btn--sm { min-height: 44px; padding: var(--sp-2) var(--sp-4); font-size: var(--fs-xs); white-space: nowrap; }
.btn--block { width: 100%; }
@media (min-width: 30rem) { .btn--block { width: auto; } }

/* Text-only CTA, used after Industries so a third identical button is
   avoided (docs/UX-STRATEGY.md §2). */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  font-weight: var(--fw-semi);
  font-size: var(--fs-body);
  color: var(--accent-text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.cta-link__arrow { transition: transform var(--dur-2) var(--ease-out); }
.cta-link:hover .cta-link__arrow { transform: translateX(3px); }

/* ================================================================== BRAND */

.brand {
  display: inline-grid;
  justify-items: start;
  line-height: 1;
  color: var(--fg);
  text-decoration: none;
}
.brand__word {
  font-size: 1.5rem;
  font-weight: var(--fw-heavy);
  letter-spacing: -0.045em;
}
.brand__pro { color: var(--blue-600); }
.site-footer .brand__pro { color: var(--blue-400); }
.brand__endorse {
  white-space: nowrap;
  margin-top: var(--sp-1);
  font-size: 0.6875rem;
  font-weight: var(--fw-medium);
  letter-spacing: .01em;
  color: var(--ink-2);
}
.site-header .brand { color: var(--ink); }

/* ================================================================= HEADER */

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--rule);
  box-shadow: var(--sh-1);
}
.site-nav__link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--ink-2);
  text-decoration: none;
  padding-block: var(--sp-2);
}
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--blue-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.site-nav__link:hover::after,
.site-nav__link[aria-current='true']::after { transform: scaleX(1); }
.site-nav__link:hover,
.site-nav__link[aria-current='true'] { color: var(--ink); }
.site-header .btn--primary { box-shadow: none; }

/* WhatsApp number in the header: only where there is room for it. */
.header-phone { display: none; }
@media (min-width: 72rem) {
  .header-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    min-height: 44px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
  }
  .header-phone:hover { color: var(--blue-700); }
}
.header-phone__icon { width: 1.35em; height: 1.35em; color: var(--wa-green); }

/* The header CTA label shortens below the desktop breakpoint. At 390px the
   full label pushed the nav toggle off-screen entirely. */
.cta-label-full { display: none; }
.cta-label-short { display: inline; }
/* Full label from 64rem: between 48 and 64rem it wrapped onto two lines. */
@media (min-width: 64rem) {
  .cta-label-full { display: inline; }
  .cta-label-short { display: none; }
}

/* Mobile nav trigger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  color: var(--ink);
  border-radius: var(--r-md);
}
/* Desktop shows a real navigation bar, never a hamburger (brief 13).
   This rule MUST live here, not in layout.css: components.css loads later,
   and at equal specificity the later declaration wins. */
@media (min-width: 48rem) {
  .nav-toggle { display: none; }
}
.nav-toggle__bars { display: block; width: 20px; height: 12px; position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before { transform: translateY(5.25px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after { transform: translateY(-5.25px) rotate(-45deg); }

/* ============================================================ NAV DRAWER */

.nav-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(23rem, 88vw);
  z-index: var(--z-drawer);
  background: var(--studio-2);
  color: var(--on-studio);
  padding: calc(var(--header-h) + var(--sp-6)) var(--sp-6) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  transform: translateX(100%);
  transition: transform var(--dur-3) var(--ease-out);
  overflow-y: auto;
}
.nav-drawer[data-open='true'] { transform: translateX(0); }
.nav-drawer__list { display: grid; gap: var(--sp-1); }
.nav-drawer__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-inline: var(--sp-3);
  font-size: 1.0625rem;
  font-weight: var(--fw-semi);
  color: var(--on-studio);
  text-decoration: none;
  border-radius: var(--r-md);
  border-bottom: 1px solid var(--rule-dark);
}
.nav-drawer__link:hover { background: var(--wash-drawer); color: var(--on-studio); }
.nav-drawer__actions { display: grid; gap: var(--sp-3); margin-top: auto; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: var(--scrim);
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-inout);
}
.nav-backdrop[data-open='true'] { opacity: 1; }

/* ================================================================== HERO
   V4 editorial hero on the paper surface. The photograph is the hero of the
   composition (CLAUDE.md §4): the frame adds a radius and the shared shadow
   language, nothing else — no glass chip, no glow. */

.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--blue-600); }
.hero .eyebrow { line-height: 1.5; }
.hero__eyebrow { text-wrap: balance; }

/* Hero CTAs: slightly narrower padding so both fit one row at 1024px. */
.hero__actions .btn--lg { padding-inline: var(--sp-5); }
/* 320px: the full-width primary CTA wrapped onto two lines; a tighter inset
   keeps 'Demander un devis gratuit' and its arrow on one line. */
@media (max-width: 22.49rem) {
  .hero__actions .btn--lg { padding-inline: var(--sp-4); gap: var(--sp-2); }
}

.btn__icon--trail { transition: transform var(--dur-2) var(--ease-out); }

.hero__frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--sh-3);
  /* Never upscale past the asset's intrinsic 630px: beyond that the
     photograph softens visibly (docs/DESIGN-SYSTEM.md, hero asset). */
  max-width: var(--hero-art-max);
  margin-inline: auto;
}
.hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
}
.hero__caption {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  max-width: 100%;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.hero__reassure {
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.hero h1 .w { display: inline-block; }

/* ---- sector strip: closes the hero, one tap to the right section ---- */
.sector-strip {
  border-block: 1px solid var(--hairline);
  background: var(--paper);
}
.sector-strip__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sector-strip__list a {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: var(--sp-2);
  min-height: 6.5rem;
  padding: var(--sp-4) var(--sp-2);
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}
.sector-strip__list svg { width: 30px; height: 30px; color: var(--blue-600); }
@media (min-width: 48rem) {
  .sector-strip__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sector-strip__list li + li a::before {
    content: '';
    position: absolute;
    left: 0; top: 22%; bottom: 22%;
    width: 1px;
    background: var(--hairline);
  }
  .sector-strip__list a { font-size: var(--fs-sm); min-height: 7.5rem; }
}
@media (max-width: 47.99rem) {
  .sector-strip__list li:nth-child(n+4) a { border-top: 1px solid var(--hairline); }
  .sector-strip__list li:not(:nth-child(3n+1)) a { border-left: 1px solid var(--hairline); }
}

/* ---- reading progress: CSS scroll-driven, no JavaScript --------------- */
.scroll-progress { display: none; }
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    display: block;
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: calc(var(--z-header) + 1);
    background: linear-gradient(90deg, var(--blue-500), var(--blue-600));
    transform-origin: left center;
    transform: scaleX(0);
    animation: progress-grow linear both;
    animation-timeline: scroll(root block);
    pointer-events: none;
  }
}

/* ============================================================ CARD / BASE */

.card {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  align-content: start;
  padding: var(--sp-5);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  contain: layout paint;
  transition: transform var(--dur-2) var(--ease-spring),
              box-shadow var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-inout);
}
.section--alt .card { background: var(--paper); }
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--rule); }
.card__body { color: var(--fg-2); font-size: var(--fs-sm); }

/* ========================================================= PRODUCT CARD
   A studio render on top (4:3, intrinsic size set, lazy), the text below, and
   a CTA that preselects the matching badge type in the form. The whole card
   is the hit area: the CTA's ::after stretches over it. */

.product-card { padding: 0; overflow: hidden; }
.product-card__visual {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
  border-bottom: 1px solid var(--hairline);
}
.product-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card { grid-template-rows: auto 1fr; }
.product-card__text { display: grid; gap: var(--sp-3); padding: var(--sp-5); grid-template-rows: auto auto 1fr auto; }
.product-card__tech {
  display: inline-flex;
  /* justify-self, not align-self: inside a grid the pill must hug its text
     on the INLINE axis, otherwise it stretches to the full card width. */
  justify-self: start;
  padding: 0.25em 0.7em;
  background: var(--blue-100);
  color: var(--blue-600);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.02em;
}
.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  justify-self: start;
  min-height: 44px;
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--blue-600);
  text-decoration: none;
}
.product-card__cta::after { content: ''; position: absolute; inset: 0; z-index: 1; }
/* Secondary link to the product's dedicated page. Sits ABOVE the card-wide
   overlay of the CTA (z-index 2), so both links stay clickable. */
.product-card__more {
  position: relative;
  z-index: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-card__more:hover { color: var(--blue-700); }
.product-card:has(.product-card__cta:focus-visible) { outline: var(--focus-ring) solid var(--focus-color); outline-offset: var(--focus-offset); }
.product-card__cta:focus-visible { outline: none; }

/* ============================================================ CTA BAND
   Owner-requested "Impression de badges" band: navy panel, coral CTA, and a
   5-star hotel badge hanging from its lanyard (it swings in, motion.css). */

.cta-band { padding-block: var(--section-y); }
.cta-band__panel {
  position: relative;
  display: grid;
  gap: var(--sp-6);
  padding: var(--sp-7) var(--sp-5) 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  color: var(--fg);
  background:
    radial-gradient(80% 70% at 78% 35%, var(--studio-3) 0%, transparent 70%),
    var(--studio);
}
.cta-band__copy { display: grid; gap: var(--sp-4); justify-items: start; }
.cta-band__copy h2 { max-width: 16ch; }
.cta-band__lead { color: var(--fg-2); font-size: var(--fs-lead); line-height: var(--lh-lead); max-width: var(--measure-tight); }
.cta-band__points { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: var(--fs-sm); font-weight: var(--fw-semi); }
.cta-band__points li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.cta-band__points svg { width: 1em; height: 1em; color: var(--blue-400); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }
.cta-band__note { font-size: var(--fs-xs); color: var(--fg-2); }
.cta-band__art { justify-self: center; width: min(100%, 22rem); }
.cta-band__art img { display: block; width: 100%; height: auto; }
.cta-band__caption { margin-top: var(--sp-2); padding-bottom: var(--sp-5); text-align: center; font-size: var(--fs-xs); color: var(--fg-2); }
@media (max-width: 29.99rem) {
  .cta-band__actions { display: grid; width: 100%; }
}
@media (min-width: 64rem) {
  .cta-band__panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    padding: var(--sp-8) var(--sp-8) 0;
  }
  .cta-band__copy { padding-bottom: var(--sp-8); }
  /* The lanyard must leave from the panel's top edge, like a badge actually
     hanging: pull the figure up through the panel padding. */
  .cta-band__art { width: min(100%, 26.25rem); align-self: start; margin-top: calc(-1 * var(--sp-8)); }
  .cta-band__actions .btn--lg { padding-inline: var(--sp-5); }
}

/* ============================================================== INDUSTRY */

.industry-item {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--surface-2);
}
.industry-item__head { display: grid; gap: var(--sp-3); }
.industry-item__head h3 { font-size: var(--fs-body); }
.industry-item__icon {
  width: 44px; height: 44px;
  padding: var(--sp-2);
  border-radius: var(--r-md);
  background: var(--blue-100);
  color: var(--blue-600);
}
.industry-item__body { color: var(--fg-2); font-size: var(--fs-sm); }

/* =========================================================== CUSTOM ITEM */

.custom-item {
  display: grid;
  align-content: start;      /* stretched cards must not spread space between icon and title */
  gap: var(--sp-2);
  padding: var(--sp-5);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
}
/* Fixed icon box: every glyph sits in the same 24px square, so the titles
   below share one baseline across the grid. */
.custom-item__icon { display: block; flex: none; width: 24px; height: 24px; color: var(--blue-600); }
.custom-item__title { font-size: var(--fs-body); font-weight: var(--fw-semi); }
.custom-item__body { font-size: var(--fs-sm); color: var(--fg-2); }

/* ============================================================== COMPARE
   Three option sheets (ADR-013). Mobile: stacked. From 64rem: side by side,
   rows aligned across sheets with subgrid (falls back to unaligned rows in a
   browser without subgrid, which is still correct and readable). */

.compare { display: grid; gap: var(--sp-5); }
.compare__head { display: grid; gap: var(--sp-2); max-width: var(--measure); }
.compare__title { font-size: var(--fs-h3); }
.compare__shared { color: var(--fg-2); }
.compare__shared strong { color: var(--fg); font-weight: var(--fw-semi); }

.compare__grid { display: grid; gap: var(--sp-4); }
.compare__card {
  --key: var(--series-1);
  display: grid;
  align-content: start;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-top: 4px solid var(--key);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.compare__card--2 { --key: var(--series-2); }
.compare__card--3 { --key: var(--series-3); }

.compare__card-head {
  display: grid;
  gap: var(--sp-1);
  align-content: start;
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
}
.compare__tag {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent-text);
}
.compare__name { font-size: var(--fs-h3); }
.compare__use { font-size: var(--fs-sm); color: var(--fg-2); }
.compare__use span { color: var(--fg-3); }

.compare__list { display: grid; border-top: 1px solid var(--hairline); }
.compare__row {
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--hairline);
  font-size: var(--fs-sm);
}
.compare__row:last-child { border-bottom: 0; }
.compare__row dt { color: var(--fg-3); }
.compare__row dd { margin: 0; color: var(--fg); font-weight: var(--fw-medium); display: flex; gap: var(--sp-2); align-items: flex-start; }
.compare__icon { width: 1em; height: 1em; flex: none; margin-top: .2em; }
.compare__icon--yes { color: var(--success); }
.compare__icon--no { color: var(--ink-3); }

@media (min-width: 64rem) {
  .compare__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 0; }
  /* Header + 5 rows shared across the three sheets. */
  .compare__card { grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
  .compare__list { grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
}

/* Small print under a section (e.g. lead times depend on the quote). */
.section-note {
  margin-top: var(--sp-6);
  font-size: var(--fs-xs);
  color: var(--fg-3);
}

/* ============================================================== CALLOUT */

.callout {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-6);
  background: var(--blue-100);
  border-left: 3px solid var(--blue-500);
  border-radius: var(--r-md);
}
.callout__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-h3);
}
.callout__body { color: var(--ink-2); font-size: var(--fs-sm); }
.callout--neutral {
  background: var(--paper-2);
  border-left-color: var(--ink-3);
}

/* ================================================================= STEPS */

.step { display: grid; gap: var(--sp-3); align-content: start; }
.step__num {
  counter-increment: step;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--blue-500);
  border-radius: var(--r-pill);
  color: var(--blue-600);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step__body { color: var(--fg-2); font-size: var(--fs-sm); }

/* ============================================================== TRUST */

.trust-item {
  display: grid;
  gap: var(--sp-3);
  align-content: start;
  padding-top: var(--sp-5);
  border-top: 2px solid var(--blue-500);
}
.trust-item__body { color: var(--fg-2); font-size: var(--fs-sm); }

/* ================================================================== FAQ
   Native <details>/<summary>. The panel is not height-animated (that would
   mean animating layout); only the chevron moves. See MOTION-GUIDELINES §3. */

.faq-list { display: grid; border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 44px;
  padding: var(--sp-5) 0;
  font-size: var(--fs-h3);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-h3);
  line-height: var(--lh-h3);
  list-style: none;
}
.faq-item__q:hover { color: var(--blue-600); }
.faq-item__chev {
  width: 20px; height: 20px;
  flex: none;
  margin-top: 0.15em;
  color: var(--blue-600);
  transition: transform var(--dur-2) var(--ease-out);
}
.faq-item[open] .faq-item__chev { transform: rotate(180deg); }
.faq-item__a {
  padding-bottom: var(--sp-5);
  max-width: var(--measure);
  color: var(--fg-2);
}
.faq-item__a p + p { margin-top: var(--sp-3); }

/* ================================================================= FORM */

.quote-form { display: grid; gap: var(--sp-5); }
.form-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.field {
  display: grid;
  gap: var(--sp-2);
  /* Without this, a field sharing a row with a taller field (one carrying a
     hint line) stretches its auto rows, so the two inputs end up different
     heights. */
  align-content: start;
}
.field--full { grid-column: 1 / -1; }
.field__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  color: var(--fg);
}
.field__req { color: var(--blue-600); margin-left: 0.15em; }
.field__opt { color: var(--fg-3); font-weight: var(--fw-regular); }
.field__hint { font-size: var(--fs-xs); color: var(--fg-3); }

.field__control {
  min-height: 48px;
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink-3);
  border-radius: var(--r-md);
  transition: border-color var(--dur-1) var(--ease-inout),
              box-shadow var(--dur-1) var(--ease-inout);
}
.field__control::placeholder { color: var(--ink-3); opacity: .85; }
.field__control:hover { border-color: var(--ink-2); }
.field__control:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 1px var(--blue-600);
  outline: none;
}
.field__control:focus-visible {
  outline: var(--focus-ring) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}
textarea.field__control { min-height: 7rem; resize: vertical; line-height: 1.55; }

/* Native select, with a CSS chevron. No custom listbox (ACCESSIBILITY §5). */
select.field__control {
  appearance: none;
  padding-right: var(--sp-8);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position:
    calc(100% - 1.25rem) calc(50% + 2px),
    calc(100% - 0.9rem) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field[data-invalid='true'] .field__control {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}
.field__error {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--danger);
}
.field__error svg { width: 14px; height: 14px; flex: none; margin-top: 0.15em; }

/* Honeypot. Hidden from sight AND from assistive technology, so it is not a
   trap for screen-reader users (docs/SECURITY.md §2.6). */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-summary {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-5);
  background: var(--danger-wash);
  border-left: 3px solid var(--danger);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--danger);
}
.form-summary__list { display: grid; gap: var(--sp-1); }
.form-summary a { color: var(--danger); }

.form-footer { display: grid; gap: var(--sp-4); }
.form-footer > .btn { justify-self: start; }
.form-privacy { font-size: var(--fs-xs); color: var(--fg-3); max-width: var(--measure); }

.form-panel {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
}
.form-panel__title { font-size: var(--fs-h3); font-weight: var(--fw-bold); }
.form-panel__body { color: var(--fg-2); font-size: var(--fs-sm); }
.form-panel--success { background: var(--success-wash); border-color: var(--success); }
.form-panel--success .form-panel__title { color: var(--success); }
.form-panel--notice { background: var(--paper-2); border-color: var(--ink-3); }

/* CSS-only busy spinner on the submit button. */
.btn__spinner {
  width: 1.05em; height: 1.05em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: var(--r-pill);
  animation: spin var(--dur-spin) linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Turnstile slot (ADR-015). Hidden in the no-JS HTML; turnstile.js unhides
   it at init when a site key is set, so this min-height (the managed
   widget's 65px) is reserved BEFORE the lazy render and the submit button
   never moves. Focusable by script when a token is missing; the ring uses
   the shared focus tokens. */
.turnstile {
  min-height: var(--turnstile-h);
  margin-top: var(--sp-5);
  border-radius: var(--r-sm);
}
.turnstile:focus-visible {
  outline: var(--focus-ring) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

/* =============================================================== FOOTER */

.site-footer__title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--on-studio);
}
.site-footer a { color: var(--on-studio-2); text-decoration: none; }
.site-footer a:hover { color: var(--on-studio); text-decoration: underline; }
.site-footer .brand { color: var(--on-studio); }
/* Discreet endorsement under the wordmark: present, never competing. */
.site-footer__endorse {
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  color: var(--on-studio-2);
  margin-top: calc(var(--sp-2) * -1);
}
.site-footer__loc {
  font-size: var(--fs-sm);
  color: var(--on-studio-2);
}
.site-footer__note {
  padding: var(--sp-3) var(--sp-4);
  border: 1px dashed var(--border-control-dark);
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  color: var(--on-studio-2);
}
.site-footer details > summary {
  display: flex;
  align-items: center;
  min-height: 44px;            /* WCAG 2.5.8 target size */
  font-weight: var(--fw-semi);
  color: var(--on-studio);
  padding-block: var(--sp-2);
}
.site-footer details[open] > summary { margin-bottom: var(--sp-3); }
.privacy-body { display: grid; gap: var(--sp-3); max-width: var(--measure); font-size: var(--fs-xs); }
.privacy-body ul { display: grid; gap: var(--sp-1); padding-left: var(--sp-4); list-style: disc; }

/* =================================================== FLOATING WHATSAPP FAB
   Present on desktop AND mobile. Collision handling lives in contact.js:
   suppressed over the quote form, while the drawer is open, deep in the
   footer, and while the hero (which has its own WhatsApp CTA) is in view. */

.fab {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  height: 56px;
  padding-inline: var(--sp-5);
  background: var(--wa-green);
  color: var(--on-accent);     /* 5.04:1 on --wa-green (measured) */
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--sh-fab);
  transition: transform var(--dur-2) var(--ease-spring),
              background-color var(--dur-1) var(--ease-inout),
              box-shadow var(--dur-2) var(--ease-out);
}
.fab:hover {
  background: var(--wa-green-dark);
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: var(--sh-fab-hover);
}
.fab:active { transform: translateY(0) scale(.97); }
.fab:focus-visible {
  outline: var(--focus-ring) solid var(--on-studio);
  outline-offset: var(--focus-offset);
}
.fab__icon { display: grid; place-items: center; width: 26px; height: 26px; flex: none; }
.fab__icon svg { width: 100%; height: 100%; fill: currentColor; }


/* Label collapses to an icon-only 56px circle unless the side margin beside
   the 1240px container can hold the labelled pill (~1744px viewport): the
   pill otherwise sat over card text at 1440. The accessible name lives on
   the anchor, so nothing is lost. */
@media (max-width: 108.99rem) {
  .fab { width: 56px; padding-inline: 0; justify-content: center; }
  .fab__label {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}

/* ==================================================== 404 PAGE (shared) */

.page-404 {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: var(--sp-5);
  padding-block: var(--sp-10);
}
.page-404 .btn { justify-self: center; }
