/* Beautech — page styles: Home. Loaded after assets/site.css. */
/* ---- Home-specific ---- */
.hero { padding: var(--gap-2xl) 0 var(--gap-xl); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--gap-lg); align-items: end; }
.hero-head .display { margin: 20px 0 0; font-size: var(--ds-3xl); font-weight: var(--fw-head); line-height: var(--lh-display); letter-spacing: var(--track-tight); }
.hero-head .lead { margin-top: 24px; max-width: 30ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual image-slot { width: 100%; height: clamp(440px, 44vw, 600px); aspect-ratio: auto; }
.hero-spec { position: absolute; left: 0; bottom: 0; transform: translate(-14px, 14px); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow-md); }
.hero-spec .k { font-family: var(--f-mono); font-size: var(--fs-nano); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.hero-spec .v { font-family: var(--f-display); font-size: var(--fs-2xl); font-weight: var(--fw-med); line-height: var(--lh-none); margin-top: 4px; }
.hero-meta { display: flex; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta .m { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .m b { font-family: var(--f-display); font-size: var(--ds-xl); font-weight: var(--fw-med); font-variant-numeric: tabular-nums; line-height: var(--lh-none); }
@media (max-width: 880px){ .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; max-width: 420px; } }

/* marquee certifications */
.certbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.certbar .wrap { display: flex; align-items: center; gap: var(--gap-lg); flex-wrap: wrap; padding-block: 20px; }
.certbar .cl { display: flex; align-items: center; gap: 10px; font-family: var(--f-sans); font-size: var(--fs-base); font-weight: var(--fw-med); letter-spacing: var(--track-wide); color: var(--ink-soft); text-transform: uppercase; }
.certbar .cl .df { color: var(--accent); font-size: var(--fs-base); flex: none; line-height: var(--lh-none); }


/* capability list */
.cap { border-top: 1px solid var(--line); }
.cap-row { display: grid; grid-template-columns: 64px 1.1fr 1.4fr auto; gap: 24px; align-items: baseline; padding: 32px 0; border-bottom: 1px solid var(--line); transition: background var(--dur-slow), padding var(--dur-slow); }
.cap-row:hover { background: var(--surface); padding-inline: 16px; }
.cap-row .num { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--accent); }
.cap-row h3 { font-size: var(--ds-lg); font-weight: var(--fw-head); }
.cap-row .zh-sub { font-family: var(--f-display); color: var(--muted); font-size: var(--fs-base); margin-top: 4px; }
.cap-row p { color: var(--ink-soft); font-size: var(--fs-base); }
.cap-row .go { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--muted); display: inline-flex; gap: 8px; align-items: center; transition: color var(--dur-base); }
.cap-row:hover .go { color: var(--accent); }
@media (max-width: 820px){ .cap-row { grid-template-columns: 40px 1fr; } .cap-row p, .cap-row .go { grid-column: 2; } }

/* product categories */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.prod-cell { background: var(--surface-2); padding: 24px 20px 20px; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; transition: background var(--dur-slow); }
.prod-cell:hover { background: var(--accent-tint); }
.prod-cell .pn { font-family: var(--f-mono); font-size: var(--fs-micro); color: var(--muted); }
.prod-cell h4 { font-family: var(--f-display); font-weight: var(--fw-head); font-size: var(--fs-xl); line-height: var(--lh-heading); }
.prod-cell h4 .zh { display:block; font-size: var(--fs-base); color: var(--ink-soft); margin-top:4px; }
.prod-cell .pl { font-size: var(--fs-sm); color: var(--ink-soft); }
@media (max-width: 900px){ .prod-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .prod-grid { grid-template-columns: 1fr; } }

/* process */
.proc { background: var(--ink); color: var(--paper); }
:root[data-theme="dark"] .proc { background: var(--surface-dark); }
.proc .eyebrow { color: var(--accent-d); }
.proc .h-xl { color: var(--paper); }
.proc-steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 1px; margin-top: 56px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.13); }
.proc-step { background: var(--ink); padding: 24px 20px 32px; min-height: 200px; display: flex; flex-direction: column; gap: 12px; transition: background var(--dur-slow); }
:root[data-theme="dark"] .proc-step { background: var(--surface-dark); }
.proc-step:hover { background: var(--surface-dark-hover); }
.proc-step .ps-n { font-family: var(--f-mono); font-size: var(--fs-micro); letter-spacing: var(--track-label); color: var(--accent-d); }
.proc-step h4 { font-family: var(--f-display); font-weight: var(--fw-head); font-size: var(--fs-lg); color: var(--paper); }
.proc-step p { font-size: var(--fs-sm); color: rgba(255,255,255,.72); }
@media (max-width: 960px){
  .proc-steps { grid-template-columns: 1fr 1fr; }
  /* Same dead-cell fix as .metric-grid — five steps, two columns. */
  .proc-steps .proc-step:last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px){
  .proc-steps { grid-template-columns: 1fr; }
  .proc-steps .proc-step:last-child { grid-column: auto; }
}

/* why / split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-xl); align-items: center; }
.split image-slot { width: 100%; height: clamp(440px, 42vw, 580px); aspect-ratio: auto; }
.why-list { margin-top: 24px; }
.why-list .wi { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.why-list .wi:last-child { border-bottom: 1px solid var(--line); }
.why-list .wi .wn { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--accent); padding-top: 4px; }
.why-list .wi h4 { font-family: var(--f-sans); font-weight: var(--fw-head); font-size: var(--fs-md); letter-spacing: var(--track-tight); }
.why-list .wi p { font-size: var(--fs-base); color: var(--ink-soft); margin-top: 4px; }
@media (max-width: 820px){ .split { grid-template-columns: 1fr; } .split .split-media { max-width: 440px; } }

/* CTA band */
/* ===== July 14 edits ===== */
.hero-meta .m b .pl { color: var(--accent); }
/* ===== July 18 design feedback =====
   "Above '4 advantages' looks very plain, can do a bit design on it. Can do
   some different colors or artworks on the icons?" — each trust badge and each
   hero statistic now carries its icon in a tinted chip, cycling the four
   brand-derived icon colours defined in site.css. */
.certbar .cl svg {
  width: 34px; height: 34px; flex: none; padding: 8px; border-radius: 50%;
  background: var(--ic-navy-bg); color: var(--ic-navy);
  transition: transform var(--dur-base);
}
.certbar .cl:hover svg { transform: translateY(-1px) scale(1.04); }
.certbar .cl:nth-child(4n+2) svg { background: var(--ic-purple-bg); color: var(--ic-purple); }
.certbar .cl:nth-child(4n+3) svg { background: var(--ic-green-bg);  color: var(--ic-green); }
.certbar .cl:nth-child(4n+4) svg { background: var(--ic-blue-bg);   color: var(--ic-blue); }

/* hero statistic strip — icon chip + value + label, instead of a bare row.
   Four chips do not fit one line inside the hero's text column, and wrapping
   left a lone 3+1 orphan, so they sit in a deliberate 2x2. */
.hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 460px; }
.hero-meta .m {
  flex-direction: row; align-items: center; gap: 12px;
  padding: 12px 20px 12px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface-2);
  transition: border-color var(--dur-base), box-shadow var(--dur-base), transform var(--dur-base);
}
.hero-meta .m:hover { border-color: var(--ic-navy); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hero-meta .mi {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ic-navy-bg); color: var(--ic-navy);
}
.hero-meta .mi svg { width: 21px; height: 21px; display: block; }
.hero-meta .m:nth-child(2) .mi { background: var(--ic-purple-bg); color: var(--ic-purple); }
.hero-meta .m:nth-child(3) .mi { background: var(--ic-green-bg);  color: var(--ic-green); }
.hero-meta .m:nth-child(4) .mi { background: var(--ic-blue-bg);   color: var(--ic-blue); }
.hero-meta .mv { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .m .ml { font-family: var(--f-sans); font-size: 12px; font-weight: var(--fw-med); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 380px){ .hero-meta { grid-template-columns: 1fr; } }
.cap-row .go:active, .cap-row .go:focus-visible { color: var(--accent); }
/* This band paints its own navy (#16255A), lighter than --ink, so the global
   --accent-on-dark (#5C8AE6) only reaches 4.31:1 here — fine for the large
   metric numerals, but a fail for the 12.5px .eyebrow label. Lift the token
   locally rather than lightening it site-wide: #7AA0EA gives 5.56:1 on this
   background. --focus-ring is remapped too, since site.css's dark-band remap
   list doesn't include .metrics and a navy ring would vanish against it. */
.metrics { background: #16255A; color: #fff; --accent-on-dark: #7AA0EA; --focus-ring: #7AA0EA; }
:root[data-theme="dark"] .metrics { background: #0f1a3a; }
.metrics .eyebrow { color: var(--accent-on-dark); }
.metrics .eyebrow .idx { color: rgba(255,255,255,.5); }
.metrics .h-xl { color: #fff; }
.metrics .sec-head p { color: rgba(255,255,255,.72); }
.metric-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1px; margin-top: var(--gap-md); background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.15); }
.metric-cell { background: #16255A; padding: 32px 24px; }
:root[data-theme="dark"] .metric-cell { background: #0f1a3a; }
.metric-cell b { display: block; font-family: var(--f-display); font-weight: var(--fw-med); font-variant-numeric: tabular-nums; font-size: var(--ds-2xl); line-height: var(--lh-none); letter-spacing: var(--track-tight); }
/* The unit suffix must stay inline and scale with the numeral. It sits inside
   <b>, so the label rule below has to be a direct-child selector — as a bare
   `.metric-cell span` it also caught .u, dropping it onto its own line at 13px.
   That, not the caption, is what the client saw on 18 Jul: "the letters below
   the nos are too small to be visible". */
.metric-cell b .u { display: inline; font-size: .5em; font-weight: var(--fw-med); letter-spacing: 0; margin-left: 3px; color: var(--accent-on-dark); }
/* Client note (18 Jul): "the letters below the nos are too small to be visible."
   They were 11px mono uppercase at 62% — legible by contrast (6.4:1) but far
   too small at that tracking. Set in the sans at 13px/78% instead. */
.metric-cell > span { display: block; margin-top: 14px; font-family: var(--f-sans); font-size: 13px; font-weight: var(--fw-med); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,.82); line-height: var(--lh-snug); }
@media (max-width: 900px){
  .metric-grid { grid-template-columns: 1fr 1fr; }
  /* Five cells in two columns left a dead sixth box — the client flagged it
     twice ("the last one is empty box?"). Let the last cell span the row. */
  .metric-grid .metric-cell:last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px){
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid .metric-cell:last-child { grid-column: auto; }
}
.prod-cell { justify-content: flex-start; overflow: hidden; }
/* Client note (18 Jul): "can you make the icons look more artistic, colorful,
   bigger…?" Icons go 38px -> 56px, sit on a filled disc, and each tile takes a
   different brand-derived tint band rather than one flat grey strip. */
.prod-cell .macro { width: calc(100% + 44px); height: 132px; margin: -24px -20px 16px; display: flex; align-items: center; justify-content: center; background: var(--ic-navy-bg); transition: background var(--dur-slow); }
.prod-cell .macro svg { width: 56px; height: 56px; color: var(--ic-navy); stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 1; transition: transform var(--dur-slow); }
.prod-cell .macro::before { content: ""; position: absolute; width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.72); transition: transform var(--dur-slow); }
.prod-cell .macro { position: relative; }
.prod-cell:hover .macro svg { transform: scale(1.06); }
.prod-cell:hover .macro::before { transform: scale(1.06); }
.prod-grid .prod-cell:nth-child(4n+2) .macro { background: var(--ic-purple-bg); }
.prod-grid .prod-cell:nth-child(4n+2) .macro svg { color: var(--ic-purple); }
.prod-grid .prod-cell:nth-child(4n+3) .macro { background: var(--ic-green-bg); }
.prod-grid .prod-cell:nth-child(4n+3) .macro svg { color: var(--ic-green); }
.prod-grid .prod-cell:nth-child(4n+4) .macro { background: var(--ic-blue-bg); }
.prod-grid .prod-cell:nth-child(4n+4) .macro svg { color: var(--ic-blue); }
.prod-cell .pl { margin-top: auto; padding-top: 12px; }
.timeline .weeks { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin-top: var(--gap-md); background: var(--line); border: 1px solid var(--line); }
.wk { background: var(--surface-2); padding: 24px 20px 32px; display: flex; flex-direction: column; gap: 12px; }
.wk .wk-n { font-family: var(--f-mono); font-size: var(--fs-micro); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--accent); }
.wk h4 { font-family: var(--f-display); font-weight: var(--fw-head); font-size: var(--fs-md); letter-spacing: var(--track-tight); }
.wk p { font-size: var(--fs-base); color: var(--ink-soft); }
.timeline .tl-foot { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--muted); margin-top: 20px; }
@media (max-width: 820px){ .timeline .weeks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px){ .timeline .weeks { grid-template-columns: 1fr; } }
/* Home #7 photo (client, 20 Jul: "under para #7 pls replace the photo with this
   one") — the accreditation panel had taken the whole media column, so the
   supplied microbiology shot sits above it rather than displacing it. */
.why-photo { margin-bottom: 16px; }
.why-photo image-slot { width: 100%; height: clamp(220px, 20vw, 300px); aspect-ratio: auto; }

/* accreditation panel (Why section) */
