/* =============================================================================
   TRADEBRIDGE WORKFORCE — WEBSITE STYLES  ·  site/css/site.css
   Web expression of the brand system in templates/tokens.css.

   Design language: "structural blueprint" — steel-navy ink on off-white paper,
   thin steel-blue hairlines and truss geometry echoing the TB wordmark, big
   condensed display type. Amber is scarce: it appears ONLY on the two actions
   we want clicked (the builder CTA and the candidate CTA).

   Palette:
     steel navy        #1B2A41   display ink · dark bands
     safety amber      #F5A623   CTA buttons ONLY
     bridge steel blue #4A90D9   accents · rules · numerals
     off-white         #F7F5F2   canvas
     charcoal          #2D2D2D   body text
   Type: Barlow Condensed 600 display · Inter 400/500 body (LOCAL woff2).
   Mobile-first; motion respects prefers-reduced-motion.
   ========================================================================== */

/* ---- local fonts (self-hosted; preloaded from the HTML head) ---- */
@font-face{
  font-family:'Barlow Condensed';
  font-weight:600;
  font-style:normal;
  font-display:swap;
  src:url('../fonts/barlow-condensed-600.woff2') format('woff2');
}
@font-face{
  font-family:'Inter';
  font-weight:400 500;
  font-style:normal;
  font-display:swap;
  src:url('../fonts/inter-latin.woff2') format('woff2');
}

:root{
  --color-primary:   #1B2A41;
  --color-accent:    #F5A623;
  --color-secondary: #4A90D9;
  --color-bg:        #F7F5F2;
  --color-text:      #2D2D2D;
  --ink-soft:        #5A6472;   /* muted steel — secondary text */
  --steel-on-navy:   #8FBCEB;   /* steel tint that reads on navy */
  --paper:           #FFFFFF;
  --line:            #E4E0D8;   /* hairline on off-white */
  --line-strong:     #CFC9BE;   /* input strokes */
  --ok:              #1E8E5A;
  --err:             #C0392B;

  --font-display:'Barlow Condensed','Arial Narrow',system-ui,sans-serif;
  --font-body:'Inter',system-ui,-apple-system,sans-serif;

  /* two-tier radius system: controls 8px · surfaces 14px · buttons pill */
  --r:        8px;
  --r-lg:     14px;
  --r-pill:   999px;

  --maxw:      680px;    /* reading / form column */
  --maxw-wide: 1160px;   /* hero · editorial bands */
  --pad:       clamp(22px, 5.5vw, 40px);

  --tick:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>");
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }

body{
  font-family:var(--font-body);
  font-weight:400;
  font-size:1.0625rem;            /* 17px */
  line-height:1.65;
  color:var(--color-text);
  background:var(--color-bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

::selection{ background:var(--color-primary); color:var(--color-bg); }

:focus-visible{
  outline:2px solid var(--color-secondary);
  outline-offset:3px;
  border-radius:2px;
}

/* ---- display type ---- */
h1,h2,h3{
  font-family:var(--font-display);
  font-weight:600;
  color:var(--color-primary);
  text-wrap:balance;
}
h1{ font-size:clamp(2.75rem, 11.5vw, 5rem);  line-height:.98;  letter-spacing:.002em; }
h2{ font-size:clamp(1.95rem, 6.5vw, 2.8rem); line-height:1.04; }
h3{ font-size:1.3rem; line-height:1.15; letter-spacing:.01em; }

p{ margin:0 0 1em; max-width:62ch; }
a{ color:var(--color-secondary); text-underline-offset:3px; }

/* ---- layout shell ---- */
.wrap{
  width:100%;
  max-width:var(--maxw);
  margin:0 auto;
  padding-left:var(--pad);
  padding-right:var(--pad);
}
.wrap--wide{ max-width:var(--maxw-wide); }
section{ padding:clamp(60px, 10vw, 112px) 0; }

/* editorial rule above section headings — echoes the asset lane's .rule */
.how h2::before,
.band-alt h2::before,
#enquiry h2::before,
#registro h2::before{
  content:"";
  display:block;
  width:52px;
  height:3px;
  background:var(--color-secondary);
  border-radius:2px;
  margin-bottom:22px;
}

#enquiry,#registro{ scroll-margin-top:24px; }

/* =============================================================================
   Header
   ========================================================================== */
.site-header{
  background:var(--color-primary);
  color:var(--paper);
  border-bottom:1px solid rgba(247,245,242,.08);
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:66px;
}
.brandmark{
  display:flex;
  align-items:center;
  gap:11px;
  color:var(--paper);
  text-decoration:none;
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.32rem;
  letter-spacing:.025em;
  line-height:1;
}
.brandmark svg{ width:36px; height:auto; display:block; color:var(--color-accent); }
.brandmark .amber{ color:inherit; }   /* wordmark stays quiet; the truss mark carries the amber */
.lang-switch{
  font-family:var(--font-body);
  font-weight:600;
  font-size:.78rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--paper);
  text-decoration:none;
  border:1px solid rgba(247,245,242,.35);
  border-radius:var(--r-pill);
  padding:8px 15px;
  white-space:nowrap;
  transition:background .2s ease, border-color .2s ease;
}
.lang-switch:hover{ background:rgba(247,245,242,.10); border-color:rgba(247,245,242,.6); }

/* =============================================================================
   Hero — asymmetric copy block over a truss-line motif (echoes the TB mark)
   ========================================================================== */
.hero{
  position:relative;
  background:
    radial-gradient(110% 80% at 88% -10%, rgba(74,144,217,.17), rgba(74,144,217,0) 60%),
    var(--color-primary);
  color:var(--paper);
  padding:clamp(64px, 11vw, 128px) 0 0;
  overflow:hidden;
}
.hero-copy{ max-width:640px; min-width:0; padding-bottom:clamp(40px, 7vw, 72px); }
.hero h1{ color:var(--paper); max-width:16ch; }
.hero .kicker{
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-weight:600;
  font-size:.74rem;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--steel-on-navy);
  margin-bottom:22px;
}
.hero .kicker::before{
  content:"";
  width:30px;
  height:2px;
  background:currentColor;
}
.hero-lead{
  font-size:clamp(1.08rem, 3.2vw, 1.22rem);
  line-height:1.6;
  color:rgba(247,245,242,.86);
  margin-top:24px;
  max-width:40ch;
}
.hero .btn{ margin-top:34px; }

/* truss band — chords + diagonals, steel blue, sits in flow below the copy */
.hero-truss{
  display:block;
  width:100%;
  height:clamp(80px, 11vw, 148px);
  color:var(--color-secondary);
  opacity:.26;
}

/* large truss mark — counterweight for the hero's right half (desktop only) */
.hero-mark{
  display:none;
  position:absolute;
  right:4vw;
  top:24%;
  width:min(36vw, 500px);
  color:var(--steel-on-navy);
  opacity:.13;
  pointer-events:none;
}

/* =============================================================================
   Buttons — the ONLY amber on the site
   ========================================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.06rem;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:var(--color-primary);
  background:var(--color-accent);
  border:none;
  border-radius:var(--r-pill);
  padding:17px 34px;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(245,166,35,.28);
  transition:transform .15s ease, box-shadow .2s ease;
}
.btn:hover{ transform:translateY(-2px); box-shadow:0 14px 32px rgba(245,166,35,.36); }
.btn:active{ transform:translateY(0); }
.btn:disabled,
.btn[aria-disabled="true"]{
  background:#CDC8BF;
  color:#7B756B;
  box-shadow:none;
  cursor:not-allowed;
  transform:none;
}
.btn--block{ width:100%; }

/* =============================================================================
   How-it-works — editorial numbered rows, not cards
   ========================================================================== */
.how .sub{ color:var(--ink-soft); margin:10px 0 0; max-width:52ch; }
.steps{
  margin-top:clamp(36px, 6vw, 56px);
  border-bottom:1px solid var(--line);
}
.step{
  display:grid;
  grid-template-columns:64px 1fr;
  gap:6px 18px;
  padding:clamp(24px, 4vw, 34px) 0;
  border-top:1px solid var(--line);
}
.step .num{
  font-family:var(--font-display);
  font-weight:600;
  font-size:2.3rem;
  line-height:1;
  color:var(--color-secondary);
  padding-top:2px;
}
.step .num::before{ content:"0"; }   /* 1 → 01, set in HTML as plain digits */
.step h3{ margin-bottom:6px; }
.step p{ margin:0; color:var(--color-text); font-size:.98rem; line-height:1.6; max-width:58ch; }
.step--guarantee .num{ color:var(--color-primary); }
.step--guarantee h3{
  display:inline-block;
  border-bottom:3px solid var(--color-secondary);
  padding-bottom:3px;
}

/* =============================================================================
   Trust band
   ========================================================================== */
.band-alt{ background:var(--paper); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.trust-list{
  list-style:none;
  display:grid;
  gap:18px;
  margin-top:clamp(28px, 5vw, 44px);
}
.trust-list li{
  position:relative;
  padding-left:34px;
  font-size:1rem;
  line-height:1.6;
  max-width:58ch;
}
.trust-list li::before{
  content:"";
  position:absolute; left:0; top:4px;
  width:20px; height:20px;
  background:var(--color-secondary);
  -webkit-mask:var(--tick) center/contain no-repeat;
  mask:var(--tick) center/contain no-repeat;
}

/* =============================================================================
   Forms — calm, sectioned, engineered
   ========================================================================== */
.form-intro{ margin:14px 0 30px; color:var(--ink-soft); max-width:52ch; }

/* mandatory disclaimer header (verbatim ES + smaller EN) — quiet, official */
.disclaimer{
  background:var(--paper);
  border:1px solid var(--line);
  border-left:4px solid var(--color-primary);
  border-radius:var(--r-lg);
  padding:20px 22px;
  margin-bottom:38px;
}
.disclaimer .es{ font-size:.95rem; line-height:1.6; color:var(--color-primary); margin:0 0 10px; }
.disclaimer .en{ font-size:.8rem;  line-height:1.55; color:var(--ink-soft); margin:0; }

form{ display:flex; flex-direction:column; }

/* candidate form: numbered sections give a quiet progress feel (01 / 06 …) */
#candidate-form{ counter-reset:sec; }
#candidate-form fieldset{ counter-increment:sec; }
#candidate-form legend::before{
  display:block;
  content:"0" counter(sec) " / 06";
  font-family:var(--font-body);
  font-weight:600;
  font-size:.72rem;
  letter-spacing:.22em;
  color:var(--color-secondary);
  margin-bottom:10px;
}

fieldset{
  border:none;
  border-top:1px solid var(--line);
  padding:34px 0 4px;
  margin:16px 0 0;
}
fieldset:first-of-type{ border-top:none; padding-top:8px; margin-top:0; }
legend{
  float:left;                     /* removes legend's in-border quirk */
  width:100%;
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.5rem;
  color:var(--color-primary);
  margin:0 0 20px;
}
legend .en{
  display:block;
  font-family:var(--font-body);
  font-weight:500;
  font-size:.74rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--ink-soft);
  margin-top:3px;
}

.field{ margin-bottom:20px; }
label{
  display:block;
  font-weight:600;
  font-size:.95rem;
  color:var(--color-primary);
  margin-bottom:7px;
}
label .en{ font-weight:400; font-size:.8rem; color:var(--ink-soft); }
label .req{ color:var(--err); }
.hint{ font-size:.8rem; line-height:1.5; color:var(--ink-soft); margin:6px 0 0; }

input[type=text],
input[type=tel],
input[type=email],
input[type=date],
input[type=number],
select,
textarea{
  width:100%;
  font-family:var(--font-body);
  font-size:16px;                 /* 16px stops iOS zoom-on-focus */
  color:var(--color-text);
  background:var(--paper);
  border:1px solid var(--line-strong);
  border-radius:var(--r);
  padding:13px 15px;
  appearance:none;
  -webkit-appearance:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
textarea{ min-height:96px; resize:vertical; }
select{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%235A6472' d='M7 10l5 5 5-5z'/></svg>");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:22px;
  padding-right:42px;
}
input:focus,
select:focus,
textarea:focus{
  outline:none;
  border-color:var(--color-secondary);
  box-shadow:0 0 0 3px rgba(74,144,217,.20);
}
::placeholder{ color:#A9A294; }

/* radio / checkbox pill groups */
.choice-group{ display:flex; flex-wrap:wrap; gap:10px; }
.choice{
  display:inline-flex;
  align-items:center;
  gap:9px;
  border:1px solid var(--line-strong);
  border-radius:var(--r);
  padding:12px 14px;
  background:var(--paper);
  cursor:pointer;
  font-size:.93rem;
  font-weight:500;
  color:var(--color-text);
  flex:1 1 auto;
  min-width:44%;
  transition:border-color .15s ease, background .15s ease;
}
.choice:hover{ border-color:var(--color-secondary); }
.choice input{ width:19px; height:19px; accent-color:var(--color-secondary); margin:0; flex:0 0 auto; }
.choice:has(input:checked){
  border-color:var(--color-secondary);
  background:rgba(74,144,217,.07);
}

/* consent blocks (VEVO + data-sharing) */
.consent{
  display:flex;
  gap:13px;
  align-items:flex-start;
  border:1px solid var(--line-strong);
  border-radius:var(--r);
  padding:16px;
  background:var(--paper);
  transition:border-color .15s ease, background .15s ease;
}
.consent input{
  width:21px; height:21px; flex:0 0 auto; margin-top:2px;
  accent-color:var(--color-secondary);
}
.consent label{ margin:0; font-weight:500; font-size:.93rem; line-height:1.55; }
.consent--vevo{ border:1.5px solid var(--color-primary); border-left-width:4px; }
.consent--vevo:has(input:checked),
.consent:has(input:checked){ border-color:var(--ok); background:rgba(30,142,90,.05); }

/* VEVO gate message (form.js swaps warn ↔ ok markup) */
.gate-msg{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:14px 0 4px;
  padding:14px 16px;
  border-radius:var(--r);
  background:rgba(192,57,43,.07);
  border:1px solid rgba(192,57,43,.32);
  color:#8A2B20;
  font-size:.88rem;
  line-height:1.55;
}
.gate-msg.is-ok{
  background:rgba(30,142,90,.07);
  border-color:rgba(30,142,90,.32);
  color:#15603D;
}
.gate-msg svg{ flex:0 0 auto; width:20px; height:20px; margin-top:1px; }
.gate-msg .en{ color:inherit; opacity:.75; }

.form-actions{ margin-top:32px; }

/* post-submit status */
.form-status{ margin-top:18px; }
.form-status[hidden]{ display:none; }
.alert{
  border-radius:var(--r);
  padding:16px 18px;
  font-size:.95rem;
  line-height:1.55;
}
.alert--ok{  background:rgba(30,142,90,.09);  border:1px solid var(--ok);  color:#12603C; }
.alert--err{ background:rgba(192,57,43,.08);  border:1px solid var(--err); color:#8A2B20; }

/* =============================================================================
   Footer
   ========================================================================== */
.site-footer{
  background:var(--color-primary);
  color:rgba(247,245,242,.72);
  font-size:.82rem;
  line-height:1.6;
  padding:44px 0 48px;
}
.site-footer .wrap{ display:flex; flex-direction:column; gap:10px; }
.site-footer a{ color:var(--steel-on-navy); text-decoration:underline; text-underline-offset:3px; }
.site-footer .legal{
  font-size:.64rem;
  line-height:1.5;
  color:rgba(247,245,242,.5);
  max-width:78ch;
  border-top:1px solid rgba(247,245,242,.10);
  padding-top:12px;
  margin-top:8px;
}

/* =============================================================================
   Policy page (privacy.html) — plain prose layout
   ========================================================================== */
.policy{ padding:56px 0 72px; }
.policy .wrap{ max-width:72ch; }
.policy h1{ font-family:var(--font-display,'Barlow Condensed',sans-serif); font-size:2.2rem; line-height:1.1; margin:0 0 6px; }
.policy h2{ font-size:1.15rem; margin:34px 0 10px; }
.policy p, .policy ul{ margin:0 0 14px; line-height:1.65; }
.policy ul{ padding-left:22px; }
.policy li{ margin-bottom:6px; }
.policy .updated{ color:var(--ink-soft); font-size:.85rem; margin-bottom:22px; }
.draft-flag{
  display:inline-block;
  background:rgba(192,57,43,.08);
  border:1px solid var(--err);
  color:#8A2B20;
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:4px 10px;
  border-radius:4px;
  margin-bottom:14px;
}

/* =============================================================================
   Motion — scroll reveals (js/reveal.js adds .reveal, then .in). Respectful:
   reduced-motion users and no-JS visitors never see hidden content.
   ========================================================================== */
.reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .55s cubic-bezier(.2,.6,.2,1), transform .55s cubic-bezier(.2,.6,.2,1);
}
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
  .btn, .lang-switch, .choice, .consent, input, select, textarea{ transition:none !important; }
}

/* =============================================================================
   ≥560px — paired fields
   ========================================================================== */
@media (min-width:560px){
  .row-2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  .row-2 .field{ margin-bottom:4px; }
}

/* =============================================================================
   ≥900px — editorial two-column rhythm, one consistent left axis
   ========================================================================== */
@media (min-width:900px){
  .steps{
    display:grid;
    grid-template-columns:1fr 1fr;
    column-gap:72px;
  }
  .step{ padding:36px 0; }
  .trust-list{ grid-template-columns:1fr 1fr; gap:20px 56px; }
  .hero-copy{ padding-bottom:104px; }
  .hero-mark{ display:block; }

  /* form sections share the wide gutter (same left axis as every other band),
     with the reading/form column capped inside it */
  #enquiry .wrap,
  #registro .wrap{ max-width:var(--maxw-wide); }
  #enquiry h2, #enquiry .form-intro, #enquiry form,
  #registro h2, #registro .form-intro, #registro .disclaimer, #registro form{
    max-width:660px;
  }

  /* a full-width pill reads clumsy at desktop — cap it, keep the tap target */
  .btn--block{ width:auto; min-width:320px; padding-left:48px; padding-right:48px; }
}

/* =============================================================================
   PATCH 7 Jul 2026 — phone number (header/hero/footer) + hero proof panel
   ========================================================================== */

/* Header phone */
.header-phone{display:flex;flex-direction:column;align-items:flex-end;text-decoration:none;line-height:1.15;margin-left:1.5rem}
.header-phone__label{font-family:'Barlow Condensed',sans-serif;font-weight:600;font-size:.7rem;letter-spacing:.12em;color:#4A90D9}
.header-phone__number{font-family:'Barlow Condensed',sans-serif;font-weight:700;font-size:1.25rem;letter-spacing:.04em;color:#F7F5F2}
.header-phone:hover .header-phone__number{color:#F5A623}

/* Hero CTA row */
.hero-cta-row{display:flex;flex-wrap:wrap;gap:1rem;align-items:center}
.btn--call{display:inline-flex;align-items:center;gap:.55rem;background:transparent;border:2px solid #F5A623;color:#F5A623;border-radius:999px;padding:.85rem 1.6rem;font-family:'Barlow Condensed',sans-serif;font-weight:600;letter-spacing:.08em;text-decoration:none;white-space:nowrap}
.btn--call:hover{background:rgba(245,166,35,.12)}
.hero-cta-note{margin-top:.75rem;font-size:.85rem;color:rgba(247,245,242,.55)}

/* Hero proof panel (replaces the empty box) */
.hero-proof{border:1px solid rgba(74,144,217,.45);background:linear-gradient(160deg,rgba(74,144,217,.08),rgba(27,42,65,0) 65%);border-radius:6px;padding:2rem 2.25rem;display:flex;flex-direction:column;gap:1.4rem;max-width:420px;
  /* When you have a no-face site photo, uncomment:
  background-image:linear-gradient(rgba(27,42,65,.82),rgba(27,42,65,.82)),url('../img/hero-site.jpg');
  background-size:cover;background-position:center; */
}
.hero-proof__row{display:flex;align-items:baseline;gap:1.1rem;padding-bottom:1.4rem;border-bottom:1px solid rgba(247,245,242,.12)}
.hero-proof__row--last{border-bottom:none;padding-bottom:0}
.hero-proof__stat{font-family:'Barlow Condensed',sans-serif;font-weight:700;font-size:2.6rem;color:#F5A623;line-height:1;min-width:5.25rem;flex-shrink:0}
.hero-proof__unit{font-size:1.3rem;margin-left:.1rem}
.hero-proof__desc{font-family:'Inter',sans-serif;font-size:.92rem;color:rgba(247,245,242,.85);line-height:1.45}

/* Footer phone */
.footer-phone{font-size:.95rem;color:rgba(247,245,242,.85)}
.footer-phone a{color:#F5A623;text-decoration:none;font-weight:600}
.footer-phone a:hover{text-decoration:underline}

/* Mobile: call button becomes the hero action (builders are on phones) */
@media (max-width:640px){
  .hero-cta-row{flex-direction:column;align-items:stretch}
  .btn--call{justify-content:center}
  .header-phone__label{display:none}
}

/* Integration (layout only, no copy): header grouping + hero two-column placement */
.header-actions{display:flex;align-items:center}
.hero .wrap--wide{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:clamp(2rem,5vw,4.5rem)}
.hero-proof{margin-bottom:clamp(40px,7vw,72px)}
@media (min-width:900px){ .hero-proof{margin-top:8px} }

/* Small screens: brandmark + lang pill + phone can't share one 390px row —
   let the header wrap instead of forcing horizontal page scroll */
@media (max-width:640px){
  .site-header .wrap{flex-wrap:wrap;row-gap:2px;padding-top:10px;padding-bottom:10px}
  .header-actions{margin-left:auto}
  .lang-switch{padding:7px 10px}
  .header-phone{margin-left:1rem}
}

/* ≤360px: the nowrap call button is the widest thing in the hero column —
   tighten it so it still fits on one line inside a 320px viewport */
@media (max-width:360px){
  .btn--call{padding:.85rem .9rem;letter-spacing:.03em;font-size:1rem}
}
