/* CSS changed? Bump ?v=N on the matching <link> in index.html — these files are cached independently of the HTML. */

/* ============================================================
   components.css — reusable pieces: section shells, grids, buttons, cards
   Loaded by: every page
   Depends on: base.css
   ============================================================ */

/* ---------- SECTION SHELLS ----------
   One base class for the shared vertical rhythm, plus a modifier per surface.
   Applied as: <section class="section section--navy">
   Two of the old shells (.section-slim, .section-dark2 on #expertise) had a
   background that an ID rule silently overrode, so their declared surface never
   rendered. The modifiers below record what each section actually draws. */
.section              { padding: var(--section-padding) 0; }
.section--light       { background: var(--bone); color: var(--ink); }
.section--bone2       { background: var(--bone-2); border-top: 1px solid var(--line-dark); }
.section--navy        { background: var(--navy); }
.section--white       { background: var(--white); color: var(--ink); overflow: hidden; }
/* NOTE: no `color` here. The old #expertise rule set background only, so this
   section inherits the page's light-on-dark text colour and every visible child
   overrides it locally. Adding color:var(--ink) here changes rendering. */
.section--mist        { background: #eef0f3; }
.section--gradient    {
  background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 42%, var(--ink) 58%,
                              rgba(var(--accent-red-rgb), 0.32) 100%);
}

/* clips a decorative child (glow, gradient blob) to the section box */
.is-clipped           { position: relative; overflow: hidden; }
.is-clipped > .wrap   { position: relative; z-index: 1; }

/* off-centre radial glow; opt in per section */
.has-glow             { position: relative; overflow: hidden; }
.has-glow::after{
  content:'';position:absolute;right:-10%;top:-20%;width:600px;height:600px;
  background:radial-gradient(circle, rgba(var(--accent-red-rgb), 0.18), transparent 70%);
  pointer-events:none;
}

/* ---------- SECTION TITLE ---------- */
.section-title{font-size:clamp(1.9rem,3.4vw,2.9rem);font-weight:600;max-width:16ch;}

/* ---------- TWO-COLUMN GRIDS ----------
   Ratio is per-instance via --cols; everything else is shared.
   .proof-split-row, .close-grid and .reframe-cols are deliberately NOT folded in
   here — they collapse at different breakpoints (800 and 900) and use different
   gaps, so they keep their own rules in home.css / layout.css. */
.grid-2{
  display:grid;
  grid-template-columns:var(--cols, 1fr 1fr);
  gap:70px;
  align-items:center;
}
@media (max-width:850px){
  .grid-2{grid-template-columns:minmax(0,1fr);gap:40px;}
}

/* ---------- EYEBROWS ---------- */
.eyebrow{color:var(--red);margin-bottom:26px;display:flex;align-items:flex-start;gap:10px;line-height:1.3;}
.eyebrow::before{content:'';flex:none;width:7px;height:7px;margin-top:calc((1.3em - 7px) / 2);border-radius:50%;background:var(--red);box-shadow:0 0 12px var(--red);}
.eyebrow-loud{font-size:0.92rem;font-weight:700;letter-spacing:0.14em;color:var(--logo-red);}
.eyebrow-loud::before{width:9px;height:9px;margin-top:calc((1.3em - 9px) / 2);background:var(--logo-red);box-shadow:0 0 14px var(--logo-red);}
/* ---------- eyebrow with dash instead of dot (used in close section) ---------- */
.eyebrow-dash{display:flex;align-items:center;gap:10px;}
.eyebrow-dash span{width:16px;height:2px;background:var(--logo-red);display:inline-block;}

/* ---------- BUTTONS ---------- */
.btn{
  font-family:var(--font-display);
  font-weight:600;
  padding:16px 30px;
  border:none;
  border-radius:var(--radius-pill);
  cursor:pointer;
  font-size:0.95rem;
  display:inline-flex;align-items:center;gap:8px;
  transition:transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background .3s ease, border-color .3s ease;
}
.btn:disabled{cursor:not-allowed;}
.btn-primary{background:var(--red);color:var(--white);}
.btn-primary:hover:not(:disabled){transform:translateY(-3px) scale(1.015);box-shadow:0 18px 40px rgba(var(--accent-red-rgb), 0.32);}
.btn-ghost{border:1px solid rgba(255,255,255,0.28);color:var(--white);background:transparent;}
.btn-ghost:hover{border-color:rgba(255,255,255,0.6);background:rgba(255,255,255,0.06);}

/* ---------- STAT STRIP ---------- */
.proof-strip{
  display:flex;gap:32px;flex-wrap:wrap;
  border-top:1px solid var(--line);
  padding-top:26px;
  margin-top:56px;
}
.proof-strip .item{flex:1 1 0;min-width:132px;display:flex;flex-direction:column;}
.proof-strip .num{font-family:var(--font-display);font-size:3rem;font-weight:600;color:var(--white);line-height:1;font-variant-numeric:tabular-nums;}
.proof-strip .lbl{color:var(--steel);font-size:0.82rem;margin-top:8px;margin-bottom:14px;}
.proof-strip .stat-underline{
  width:100%;height:2px;margin-top:auto;
  background:var(--line);position:relative;overflow:hidden;border-radius:2px;
}
.proof-strip .stat-underline span{
  position:absolute;top:0;left:0;height:100%;width:0%;
  background:linear-gradient(90deg, var(--logo-red), var(--red));
  transition:width 1.3s var(--ease-spring);
}
.proof-strip .item.counted .stat-underline span{width:100%;}
@media (max-width:700px){
  .proof-strip{flex-wrap:nowrap;gap:14px;}
  .proof-strip .item{min-width:0;}
  .proof-strip .num{font-size:1.5rem;}
  .proof-strip .lbl{font-size:0.62rem;margin-top:6px;margin-bottom:10px;}
}

/* ---------- BIG STAT ---------- */
.big-stat{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(5rem,14vw,9.5rem);
  line-height:0.85;
  background:linear-gradient(135deg,#ffffff 30%, var(--red) 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.big-stat-label{font-size:1.1rem;color:var(--text-muted-dark);margin-top:14px;max-width:24ch;}
@media (max-width:850px){
  .big-stat-label{max-width:none;width:100%;}
}
@media (max-width:700px){
  /* !important is load-bearing: the speed-section instance carries an inline
     style="font-size:1.4rem;line-height:1.4", and only !important outranks an
     inline style. Removable once that inline style goes. */
  .big-stat-label{font-size:1rem!important;line-height:1.5!important;}
}

/* ---------- BODY COPY ---------- */
.body-lg{font-size:1.15rem;line-height:1.7;color:var(--text-muted-light);}
.body-lg + .body-lg{margin-top:22px;}
.body-lg strong{color:var(--red-2);}
@media (max-width:700px){
  .body-lg{font-size:1rem;}
}

/* ---------- CALLOUT ---------- */
.callout{
  border:1px solid var(--line);
  border-left:3px solid var(--red);
  padding:26px 28px;
  border-radius:4px;
  background:rgba(255,255,255,0.03);
  font-size:0.98rem;
  line-height:1.6;
  color:var(--text-muted-dark);
  margin-top:26px;
}
.callout .who{display:block;margin-top:12px;color:var(--steel);font-size:0.85rem;}

/* ---------- BENEFIT CARD ---------- */

.benefit-card{
  padding:30px 28px;
  border-left:3px solid var(--red-2);
  background:linear-gradient(135deg, #ffffff 0%, rgba(233,46,51,0.14) 100%);
  border-radius:4px;
  transition:transform .35s var(--ease-spring), box-shadow .35s ease, border-color .3s ease, background .3s ease;
}
.benefit-card:hover{
  transform:translateY(-6px);
  box-shadow:0 16px 32px rgba(13,21,48,0.10);
  border-left-color:var(--logo-red);
  background:linear-gradient(135deg, #ffffff 0%, rgba(233,46,51,0.24) 100%);
}
.benefit-title{font-family:var(--font-display);font-weight:600;font-size:1.15rem;margin-bottom:8px;transition:color .3s ease;}
.benefit-desc{color:var(--text-muted-light);font-size:0.95rem;line-height:1.58;}
.benefit-hl{color:inherit;font-weight:600;}

/* ---------- CAPABILITY TILE ---------- */

.cap-tile{
  background:#ffffff;
  border-radius:var(--radius-lg);
  padding:34px;
  min-height:300px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-shadow:0 20px 44px rgba(13,21,48,0.07);
  transition:background .4s var(--ease-out), box-shadow .4s var(--ease-out), transform .4s var(--ease-out);
}
.cap-tile:hover{transform:translateY(-6px);box-shadow:0 28px 56px rgba(13,21,48,0.12);}
.cap-tile-tag{
  font-family:var(--font-display);font-size:1rem;font-weight:700;
  text-transform:uppercase;letter-spacing:0.03em;
  background:linear-gradient(135deg, var(--navy) 0%, var(--logo-red) 35%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;
  margin-bottom:18px;
}
.cap-tile-body h3{font-size:1.2rem;font-weight:700;margin:0 0 16px;line-height:1.25;color:var(--navy);}
.cap-tile-body p{margin:0;font-size:0.86rem;line-height:1.48;color:#6b7086;}

/* NOTE: active/hover navy-to-red background intentionally disabled for now —
   each card will link to its own dedicated page later; restore this treatment then. */
/*
.cap-tile.active{
  background:linear-gradient(135deg, var(--navy) 0%, #7a1620 100%);
  box-shadow:0 16px 32px rgba(13,21,48,0.18);
}
.cap-tile.active .cap-tile-tag{background:none;-webkit-text-fill-color:#ffffff;color:#ffffff;}
.cap-tile.active .cap-tile-body h3{color:#ffffff;}
.cap-tile.active .cap-tile-body p{color:#dfe2ee;}
*/

/* ---------- TESTIMONIAL CARD ---------- */
.tcard{
  width:360px;flex-shrink:0;
  background:var(--bone-2,#f2f2f2);
  border:1px solid var(--line-dark);
  border-radius:18px;
  padding:30px;
}
.tcard-score-row{display:flex;align-items:center;gap:10px;margin-bottom:12px;}
.tcard-score{font-family:var(--font-display);font-weight:700;font-size:1.3rem;color:var(--ink);}
.tcard .stars{color:var(--logo-red);font-size:0.85rem;letter-spacing:2px;margin:0;}
.tcard .stars .half{background:linear-gradient(90deg,var(--logo-red) 50%,rgba(13,21,48,0.18) 50%);-webkit-background-clip:text;background-clip:text;color:transparent;}
.tcard .stars .empty{color:rgba(13,21,48,0.18);}
.tcard p{font-size:0.95rem;line-height:1.55;color:var(--text-muted-light);font-style:normal;min-height:90px;margin-bottom:16px;}
.tcard .who{margin-top:0;font-size:0.85rem;color:var(--steel);}
.tcard .who b{color:var(--ink);display:block;font-size:0.92rem;}
.tcard .who span{display:block;margin-top:2px;}
@media (max-width:700px){
  .tcard{width:calc(100vw - 88px);padding:22px;}
}
@media (max-width:600px){
  .tcard{width:calc(100vw - var(--card-peek) * 2 - var(--card-gap) * 2);}
}

/* ---------- REVEAL ---------- */
/* ---------- reveal ---------- */
.reveal{opacity:0;transform:translateY(32px);transition:opacity .9s var(--ease-out), transform .9s var(--ease-out);}
.reveal.in{opacity:1;transform:translateY(0);}
