/* EAST CONSULTANTS — production additions for the landing engine v1 (form states, approved-facts grid, G-VISUAL fixes).
   Loaded after brand-tokens.css, landing-base.css, landing-brand.css. Uses only official tokens. */
.req1{font-size:14px;color:var(--ec-ink-2);margin:0 0 14px}
.hp{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.f-alert{display:flex;gap:8px;align-items:center;color:var(--ec-error);font-weight:700;font-size:15px;margin:4px 0 12px}
.btn-send{position:relative}
.btn-send[disabled]{cursor:progress;opacity:.86}
.btn-send .spin{display:none;width:18px;height:18px;border:2.5px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%}
.form.is-busy .btn-send .ic{display:none}
.form.is-busy .btn-send .spin{display:inline-block;animation:ecspin .8s linear infinite}
@keyframes ecspin{to{transform:rotate(360deg)}}
.form.is-sent .fld,.form.is-sent .warn,.form.is-sent .req1,.form.is-sent .btn-send{opacity:.55}
.ok h3,.fail h3{display:flex;align-items:center;gap:8px;font-size:17px;margin:0 0 4px}
.ok .ref{font-size:14px;color:#14532d;margin-top:6px;direction:ltr;text-align:start}
.fail{margin-top:16px;background:#fdecea;border:1px solid var(--ec-error);color:#7a1b12;padding:14px 16px;border-radius:var(--ec-r-ctl)}
.fail p{font-size:15px;margin:0}
.fail .retry{margin-top:6px;color:#7a1b12}
.ok:focus,.fail:focus{outline:3px solid var(--ec-focus);outline-offset:3px}
/* phone numbers never wrap and always read LTR */
bdi[dir=ltr],.num{white-space:nowrap;unicode-bidi:isolate;font-variant-numeric:tabular-nums}
/* approved facts grid adapts to how many facts the owner approved (0 → section not rendered) */
.tr-g.n1{grid-template-columns:minmax(0,560px)}
.tr-g.n3{grid-template-columns:repeat(3,minmax(0,1fr))}
.phc.fact{border-style:solid}
@media (max-width:820px){.tr-g.n3,.tr-g.n2{grid-template-columns:1fr}}
/* select and inputs: consistent height and text clipping */
.fld select{min-height:50px;text-overflow:ellipsis}
.fld textarea{min-height:96px;resize:vertical}
/* ---- G-VISUAL fixes, run "before" (2026-11-20) ---- */
/* V-01 grid tracks may shrink below min-content → no horizontal overflow at 320px */
.top-in{grid-template-columns:minmax(0,1fr)}
@media (min-width:1021px){.top-in{grid-template-columns:minmax(0,1.02fr) minmax(0,1fr)}}
/* V-02 small text raised to ≥13px */
.fld small{font-size:13.5px}
.badge{font-size:13.5px}
/* V-03 narrow phones: large call button becomes an intentional two-line button (label + full number), never a broken wrap */
@media (max-width:400px){
  .btn-call.xl,.btn-call.lg,.sec-h .btn-call{flex-wrap:wrap;row-gap:2px;column-gap:8px;padding:10px 16px}
  .btn-call.xl .num,.btn-call.lg .num,.sec-h .btn-call .num{flex-basis:100%;text-align:center;border:0;padding:0}
  .btn-call.xl .num{font-size:18px}
  .srv{flex-wrap:wrap}.srv-t{flex:1 1 100%}.srv-a{flex-direction:row;width:100%}.srv-a .mini.call{flex:0 0 auto}.srv-a .mini.req{flex:1 1 auto}
}
/* ---- G-VISUAL fixes, manual review of run "after2" ---- */
/* V-04 the hidden attribute always wins (Back button was visible on step 1 because .back sets display) */
[hidden]{display:none!important}
/* V-05 kicker rule aligns with the first text line when the kicker wraps */
.hero .kicker,.sec-h .kicker{align-items:flex-start}.hero .kicker::before,.sec-h .kicker::before{flex:none;margin-top:.62em}
/* V-06 call note: icon aligned to the first line */
.call-note{align-items:flex-start}.call-note .ic{flex:none;margin-top:.3em}
/* V-07 progress steps never wrap; on narrow phones only the current step shows its name */
#prog{flex-wrap:nowrap}
@media (max-width:400px){#prog{gap:4px}#prog li:not(:last-child)::after{width:14px;margin-inline:2px}#prog li:not([aria-current]) .nm{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}}
/* V-08 keyboard focus / scrolled-to targets never hidden under the sticky header or the fixed mobile dock (WCAG 2.4.11) */
html{scroll-padding-top:80px}
@media (max-width:820px){html{scroll-padding-top:72px;scroll-padding-bottom:88px}}
/* V-09 1021–1180px: the guide column is narrow → only the current step shows its name (step indicator never wider than the card) */
@media (min-width:1021px) and (max-width:1180px){#prog li:not([aria-current]) .nm{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}}
/* V-10 1021–1180px: guide options one per row (titles were wrapping onto three lines in a two-column grid) */
@media (min-width:1021px) and (max-width:1180px){.opts{grid-template-columns:1fr}}
/* V-11 closest-match card: call button takes the full first row; WhatsApp + request share the second row equally (no orphan button) */
@media (min-width:401px){.res.best .res-a{display:flex;flex-wrap:wrap;gap:10px}.res.best .res-a .btn-call{flex:1 1 100%}.res.best .res-a .btn-wa,.res.best .res-a .btn-req{flex:1 1 0}}
/* V-12 logo never shrinks (was squeezed to 28–67 px by the nav); the navigation gives way instead */
.logo{flex:none}.logo img{flex:none;max-width:none;width:auto}
.hnav{min-width:0}
.hnav a:last-child{display:none} /* "Main website" in the header nav: the logo (aria-label "… — main website") and the footer link already lead there; keeps the nav from squeezing the logo or colliding */
@media (min-width:1021px) and (max-width:1180px){.hdr-call .num{display:none}}
@media (max-width:360px){.logo img{height:32px}.hdr-in{gap:4px}.hdr-call{padding:8px 10px;gap:6px}.lang{padding:10px 4px}}
/* V-13 English labels are longer: tighter nav padding in LTR so the nav never overflows its box beside the full-size logo */
.l-en .hnav{gap:2px}.l-en .hnav a{padding:10px 7px;font-size:14.5px}
@media (min-width:1281px) and (max-width:1500px){.l-en.lp-arbit .lp-tag{display:none}}
