/* =============================================================
   sirrapa.com revamp — corporate overrides
   Loaded AFTER tokens.v2.css + app/styles.css. Tokens only,
   no new colours. Implements the fusion-council decisions:
   - corporate umbrella nav + trust band (slot 2)
   - the three verified brand-compliance fixes
   - WCAG teal-contrast remedy on primary buttons
   ============================================================= */

/* accent safety net (in case .accent-teal var is not pre-defined) */
.accent-teal { --c-accent: var(--teal-600); }

/* ---- FIX 1: de-glass the nav (was backdrop-filter blur at styles.css:86) ---- */
.site-nav {
  background: var(--paper-0);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ---- FIX 2: stray 3px radii -> token scale (styles.css:119, 469) ---- */
.lang-toggle button,
.ladder-mode button { border-radius: var(--r-md); }

/* ---- FIX 3: reduce bronze over-spend on scored views ----
   Keep bronze for the donut gauge + verdict word only; neutralise the
   mid score-bar fills so the scorecard reads with ONE bronze accent. */
.rm-bar.is-mid .fill { background: var(--stone-300); }

/* ---- WCAG remedy: teal-600 fails AA as normal text; primary CTA uses
   teal-700 fill + bold label (white-on-teal-700 clears contrast) ---- */
.btn--primary { background: var(--teal-700); font-weight: 600; }
.btn--primary:hover { background: var(--teal-900); }

/* ---- Skip link (a11y) ---- */
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--ink-900); color: var(--paper-0);
  padding: 10px 16px; border-radius: var(--r-md);
  font-size: var(--fs-small); font-weight: 600;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 8px; text-decoration: none; outline: 2px solid var(--teal-500); outline-offset: 2px; }

/* ---- Corporate nav: house mark + descriptor caption + product link ---- */
.corp-brand { display: flex; align-items: center; gap: var(--space-3); }
.corp-brand img { width: 28px; height: 28px; }
.corp-brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.corp-brand .wordmark { font-weight: 600; letter-spacing: 0.02em; color: var(--ink-900); }
.corp-brand .wordmark .dot { color: var(--teal-600); }
.corp-brand .brand-desc { font-size: 11px; color: var(--stone-500); letter-spacing: 0.02em; }
.nav-product {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 600 !important; color: var(--ink-900) !important;
}
.nav-product img { width: 16px; height: 16px; }
.nav-product:hover { color: var(--teal-700) !important; text-decoration: none; }

/* ---- Trust band (slot 2) — the evidence sheet ---- */
.trust-band { background: var(--paper-50); padding: var(--space-8) 0; border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-7); align-items: center; }
.trust-headline { font-size: var(--fs-h3); line-height: var(--lh-h3); color: var(--fg-1); font-weight: 600; margin: 0; text-wrap: balance; }
.trust-plates { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); }
.trust-plate {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3);
  background: var(--paper-0); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--space-4);
}
.trust-plate svg { width: 22px; height: 22px; color: var(--stone-700); }
.trust-plate span { font-size: var(--fs-small); font-weight: 600; color: var(--ink-900); }
.trust-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
  margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border);
}
.trust-insured { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-small); color: var(--stone-700); }
.trust-insured svg { width: 18px; height: 18px; color: var(--teal-600); }
.trust-sample { font-weight: 600; }

/* ---- Final CTA + TidyCal ---- */
.final-cta { padding: var(--space-9) 0; }
.final-grid { display: grid; grid-template-columns: 3fr 2fr; gap: var(--space-8); align-items: start; }
.cta-router { color: rgba(255,255,255,0.78); margin-bottom: var(--space-5); }
.tidycal-embed { background: var(--paper-0); border-radius: var(--r-lg); min-height: 420px; padding: var(--space-2); }
.cta-fallback { color: rgba(255,255,255,0.6); margin-top: var(--space-3); }
.cta-fallback a { color: var(--teal-400); }
.cta-side { border-left: 2px solid var(--bronze-500); padding-left: var(--space-5); }
.cta-list { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-direction: column; gap: var(--space-3); }
.cta-list li { display: flex; gap: var(--space-3); color: rgba(255,255,255,0.85); font-size: var(--fs-small); line-height: var(--lh-small); }
.cta-list .n { font-family: var(--font-mono); font-size: 12px; color: var(--teal-400); }

/* ---- Reduced motion: kill the gauge sweep + bar grow ---- */
@media (prefers-reduced-motion: reduce) {
  .rm-bar .fill, .donut .ring-fg { transition: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .trust-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .trust-plates { grid-template-columns: repeat(2, 1fr); }
  .final-grid { grid-template-columns: 1fr; }
  .cta-side { border-left: 0; border-top: 2px solid var(--bronze-500); padding-left: 0; padding-top: var(--space-5); }
  .corp-brand .brand-desc { display: none; }
}
