/* ==========================================================================
   Barstoni Insurance Agency Limited - Marine Cargo Insurance
   Editorial layout with Barstoni navy/red/gold.
   Display: Newsreader (marine/editorial serif). UI: Inter.
   ========================================================================== */

/* ---------------------------------------------------------------------
   These names are now ALIASES onto assets/css/tokens.css — the single
   source shared with the portal. Every existing rule keeps working; new
   work should use the token names directly.

   Names that tokens.css already defines identically (--radius-sm,
   --shadow-sm, --font-display, --font-body, --ease) are DELETED here
   rather than re-declared: aliasing a name to itself is circular and
   resolves to nothing.

   Three values change, each because it failed contrast on the surface it
   is actually used on:
     --muted     #6b7681 -> #66717c  (was 4.23:1 on the portal background)
     --gold-deep #8a6f14 -> #886d12  (was 4.39:1 on the portal background)
     --line      #e3e9ee -> #e4e9ee  (converges with the portal's border)
   Plus --radius 14px -> 16px, folding a one-off into the shared scale.
   --------------------------------------------------------------------- */
:root {
  /* Barstoni brand — same colours, now sourced from tokens.css */
  --navy:      var(--brand-navy);
  --navy-mid:  var(--brand-navy-mid);
  --navy-deep: var(--brand-navy-deep);
  --navy-soft: #0a6d9c;
  --red:       var(--danger);
  --red-dark:  var(--danger-hover);
  --gold:      var(--highlight);
  --gold-pale: var(--highlight-pale);
  --gold-deep: var(--highlight-text);   /* accessible gold for text on light */

  --ink:      var(--text-primary);
  --ink-soft: var(--text-secondary);
  --muted:    var(--text-muted);
  --paper:    var(--surface);
  --off:      var(--surface-sunken);
  --line:     var(--border);

  --radius: var(--radius-lg);
  --shadow: var(--shadow-lg);
  --header-h: 84px;   /* public header is taller than the portal's */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
main { flex: 1; }
::selection { background: rgba(0, 95, 138, 0.16); }
/* Focus indicator now lives in tokens.css: navy at 6.99:1 with a halo,
   replacing gold at 2.10:1 which failed WCAG 1.4.11 (3:1 minimum). */

.container { width: min(1180px, 92%); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--navy-deep); padding: .6rem 1.2rem;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------- Typography ------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600; line-height: 1.14; color: var(--navy-deep);
  text-wrap: balance; letter-spacing: -.015em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.75rem); }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; color: var(--navy); }
p { margin-bottom: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 1rem;
}
/* Barstoni signature: gold rule + small red dot */
.eyebrow::before {
  content: ""; width: 2rem; height: 2px; flex: 0 0 auto;
  background: linear-gradient(90deg, var(--gold) 68%, var(--red) 68%);
}
/* The eyebrow uses --gold-deep, which is tuned for LIGHT surfaces (4.95:1 on
   white). On the navy bands it measured 2.79:1 — a pre-existing failure, not
   introduced here. On dark surfaces it takes the pale gold instead: 9.73:1. */
.section-navy .eyebrow,
.cta-band .eyebrow,
.page-hero .eyebrow,
.page-band .eyebrow,
.surface-inverse .eyebrow { color: var(--highlight-pale); }

/* ------- Buttons -------------------------------------------------------
   One base, seven variants, six states. Previously: hover only — no
   :active, no :disabled anywhere in either stylesheet, and no loading
   affordance, so a submit button gave no feedback at the moment of
   payment. All class names are unchanged; markup and JS are untouched.
   ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  min-height: var(--tap-min);
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: var(--weight-semibold);
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius-sm); cursor: pointer;
  position: relative;
  transition: background-color var(--transition-base), color var(--transition-base),
              border-color var(--transition-base), transform var(--transition-fast),
              box-shadow var(--transition-base), opacity var(--transition-fast);
}
.btn:hover { transform: translateY(-2px); }

/* Pressed — was missing entirely. Reverses the hover lift so the control
   acknowledges the press. */
.btn:active { transform: translateY(0); box-shadow: none; }

/* Disabled — was missing entirely, which is why nothing could be disabled
   on submit to guard against double submission. */
.btn:disabled, .btn[disabled], .btn[aria-disabled="true"] {
  opacity: .55; cursor: not-allowed; transform: none; box-shadow: none;
  pointer-events: none;
}

/* Loading — new. Set aria-busy="true" and the label is replaced by a
   spinner, so the state is announced as well as shown. */
.btn[aria-busy="true"] { color: transparent !important; pointer-events: none; }
.btn[aria-busy="true"]::after {
  content: ""; position: absolute; width: 1em; height: 1em;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  color: var(--text-on-accent);
  animation: btn-spin .6s linear infinite;
}
.btn-outline[aria-busy="true"]::after,
.btn-grey[aria-busy="true"]::after { color: var(--accent); }
@keyframes btn-spin { to { transform: rotate(360deg); } }

.btn-gold { background: var(--highlight); color: var(--brand-navy-deep); border-color: var(--highlight); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--highlight-pale); border-color: var(--highlight-pale); }
.btn-red { background: var(--danger); color: var(--text-on-accent); border-color: var(--danger); box-shadow: var(--shadow-sm); }
.btn-red:hover { background: var(--danger-hover); border-color: var(--danger-hover); }
.btn-navy { background: var(--accent); color: var(--text-on-accent); border-color: var(--accent); }
.btn-navy:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--text-on-accent); }
.btn-outline-light { background: transparent; color: var(--text-on-inverse); border-color: rgba(255,255,255,.75); }
.btn-outline-light:hover { background: var(--surface); color: var(--brand-navy-deep); border-color: var(--surface); }
.btn-lg { padding: var(--space-4) var(--space-7); font-size: var(--text-sm); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-2xs); min-height: 0; }
.btn-grey { background: var(--surface-sunken); color: var(--text-primary); border-color: var(--border); }
.btn-grey:hover { background: var(--border); border-color: var(--border-strong); }
.btn-primary { background: var(--accent); color: var(--text-on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* Context rules above are scoped with :not(.btn) so a button never
   loses its own colour to the container it sits in. That was the cause
   of white-on-gold at 2.10:1 on the nav and footer CTAs. */

/* ------- Utility top bar ------- */
.topbar { background: var(--navy-deep); color: rgba(255,255,255,.82); font-size: .8rem; }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .5rem 0; flex-wrap: wrap;
}
.topbar-tagline { font-style: italic; letter-spacing: .02em; }
.topbar-links { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.topbar-links a:not(.btn) { color: rgba(255,255,255,.82); text-decoration: none; transition: color .2s; }
.topbar-links a:hover { color: var(--gold-pale); }

/* ------- Header ------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(212,175,55,.28);
  transition: box-shadow .25s;
}
.site-header.shrunk { box-shadow: 0 8px 26px rgba(1,48,73,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand picture, .footer-brand picture { display: inline-flex; line-height: 0; }
.brand img { height: 52px; width: auto; background: #fff; border-radius: 8px; padding: 5px 9px; transition: height .25s; }
.site-header.shrunk .brand img { height: 44px; }
.brand-name { color: #fff; line-height: 1.05; }
.brand-name b { display: block; font-family: var(--font-display); font-size: 1.28rem; font-weight: 700; letter-spacing: .01em; }
.brand-name span { display: block; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-pale); }

.site-nav ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.site-nav > ul > li > a:not(.btn) {
  color: rgba(255,255,255,.9); text-decoration: none; font-size: .92rem; font-weight: 500;
  letter-spacing: .05em; padding: .4rem 0; border-bottom: 2px solid transparent;
  white-space: nowrap; transition: color .2s, border-color .2s;
}
.site-nav > ul > li > a:hover { color: var(--gold-pale); }
.site-nav a.active { color: var(--gold-pale); font-weight: 600; border-bottom-color: var(--gold); }
.nav-cta a.btn { border-bottom: 0 !important; padding: .7rem 1.5rem; }

/* nav dropdown (Products) */
.nav-dd { position: relative; }
.nav-dd-btn {
  background: none; border: 0; color: rgba(255,255,255,.9); font-family: inherit;
  font-size: .92rem; font-weight: 500; letter-spacing: .05em; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35rem; padding: .4rem 0;
}
.nav-dd-btn:hover, .nav-dd:hover .nav-dd-btn { color: var(--gold-pale); }
.nav-dd-btn svg { width: 13px; height: 13px; fill: currentColor; transition: transform .2s; }
.nav-dd:hover .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(8px);
  top: 100%; min-width: 280px; padding: .5rem; margin-top: .4rem;
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s, transform .2s; z-index: 120;
}
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dd-menu a {
  display: block; padding: .7rem .9rem; border-radius: 6px; color: var(--navy);
  text-decoration: none; font-size: .9rem; transition: background-color .15s;
}
.nav-dd-menu a:hover { background: var(--off); color: var(--navy-deep); }

/* Language switcher */
.lang-switch { position: relative; }
.lang-dd summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .35rem;
  padding: .35rem .7rem; border: 1px solid rgba(212,175,55,.45); border-radius: 6px;
  color: rgba(255,255,255,.9); font-size: .8rem; letter-spacing: .04em; user-select: none;
}
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd summary:hover { color: var(--gold-pale); border-color: var(--gold); }
.lang-dd summary svg { width: 15px; height: 15px; fill: var(--gold); flex: 0 0 15px; }
.lang-dd summary .chev { width: 13px; height: 13px; fill: rgba(255,255,255,.6); transition: transform .2s; }
.lang-dd[open] summary .chev { transform: rotate(180deg); }
.lang-dd ul {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 130; display: block;
  min-width: 9rem; list-style: none; padding: .4rem; margin: 0;
  background: var(--navy-mid); border: 1px solid rgba(212,175,55,.45);
  border-radius: 8px; box-shadow: 0 14px 34px rgba(1,20,36,.5);
}
.lang-dd ul a { display: block; padding: .5rem .8rem; border-radius: 5px; font-size: .88rem; color: rgba(255,255,255,.85); text-decoration: none; }
.lang-dd ul a:hover { background: rgba(255,255,255,.08); color: var(--gold-pale); }
.lang-dd ul a.active { background: var(--gold); color: var(--navy-deep); font-weight: 600; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; position: relative; z-index: 110; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--gold-pale); margin: 6px auto; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ------- Hero ------- */
.hero { position: relative; min-height: min(90vh, 800px); display: flex; align-items: center; background: var(--navy-deep); overflow: hidden; }
.hero-media, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
/* Lighter, dual scrim: readable on the left, cargo image stays visible on the right */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(1,32,52,.86) 0%, rgba(1,32,52,.55) 38%, rgba(1,32,52,.18) 70%, rgba(1,32,52,.05) 100%),
    linear-gradient(180deg, rgba(1,32,52,.32) 0%, rgba(1,32,52,0) 30%, rgba(1,32,52,.30) 100%);
}
.hero-media::before {
  content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--gold), var(--red)); opacity: .9;
}
.hero-inner { position: relative; z-index: 2; padding: 7rem 0 6rem; max-width: 780px; }
.hero h1, .hero p { text-shadow: 0 2px 18px rgba(1,20,36,.45); }
.hero .eyebrow { color: var(--gold-pale); }
.hero .eyebrow::before { background: var(--gold-pale); }
.hero h1 { color: #fff; margin-bottom: 1.4rem; }
.hero h1 em { font-style: italic; color: var(--gold-pale); }
.hero p { color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 42rem; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Tertiary hero link — keeps a third destination available without adding a
   third competing button. Pale gold on the hero scrim measures 9.73:1. */
.hero-tertiary {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.85);
}
.hero-tertiary a {
  color: var(--highlight-pale);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: var(--weight-medium);
}
.hero-tertiary a:hover { color: var(--surface); }

.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.16); }
.hero-trust span { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.82); font-size: .82rem; letter-spacing: .04em; }
.hero-trust svg { width: 17px; height: 17px; color: var(--gold-pale); }
.hero-scroll { position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.7); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.hero-scroll::after { content: ""; width: 1px; height: 28px; background: rgba(255,255,255,.4); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ------- Page hero (sub pages) ------- */
.page-hero { position: relative; background: var(--navy-deep); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, var(--navy-deep), var(--navy)); opacity: .96; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--gold-pale); }
.page-hero .eyebrow::before { background: var(--gold-pale); }
.page-hero h1 { color: #fff; margin-bottom: .6rem; }
.page-hero p { color: rgba(255,255,255,.84); font-size: 1.12rem; max-width: 46rem; margin-bottom: 0; }
.page-hero .crumbs { font-size: .82rem; letter-spacing: .04em; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.page-hero .crumbs a:not(.btn) { color: rgba(255,255,255,.7); text-decoration: none; }
.page-hero .crumbs a:hover { color: var(--gold-pale); }

/* ------- Sections ------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-off { background: var(--off); }
.section-navy { background: var(--navy-deep); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255,255,255,.85); }
.section-navy .eyebrow { color: var(--gold-pale); }
.section-navy .eyebrow::before { background: var(--gold-pale); }
.section-head { max-width: 52rem; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.section-navy .section-head p { color: rgba(255,255,255,.82); }

/* two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split-media::before { content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.split-body .btn { margin-top: 1.4rem; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1rem; color: var(--ink-soft); }
.prose li { margin-bottom: .5rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ------- Stats band ------- */
.stats-band { background: var(--navy); padding: clamp(2.6rem, 6vw, 3.6rem) 0; border-top: 1px solid rgba(212,175,55,.25); border-bottom: 1px solid rgba(212,175,55,.25); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat .stat-n { font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.4rem); color: var(--gold-pale); font-weight: 700; line-height: 1; }
.stat p { color: rgba(255,255,255,.82); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: .5rem 0 0; }

/* ------- Cards ------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature-card {
  position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(212,175,55,.5); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .fc-icon {
  width: 54px; height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: var(--gold-pale); margin-bottom: 1.2rem;
}
.feature-card .fc-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.feature-card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 1rem; }
.feature-card .fc-link { margin-top: auto; font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.feature-card .fc-link:hover { color: var(--red); }
.feature-card .fc-link::after { content: "\2192"; transition: transform .2s; }
.feature-card:hover .fc-link::after { transform: translateX(4px); }

/* how it works steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; counter-reset: step; }
.step-card { position: relative; padding: 2.2rem 1.4rem 1.6rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.step-card .step-n { position: absolute; top: -1.1rem; left: 1.4rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.step-card h4 { color: #fff; margin-bottom: .4rem; font-size: 1.05rem; }
.step-card p { color: rgba(255,255,255,.78); font-size: .92rem; margin: 0; }

/* ------- Regulatory notice (elevated) ------- */
.notice-band { background: linear-gradient(120deg, #fbecee, #fff); }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-sm); }
.notice-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; }
.notice-icon svg { width: 30px; height: 30px; }
.notice h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .6rem; }
.notice p { color: var(--ink-soft); }
.notice ul { list-style: none; display: grid; gap: .6rem; margin-top: 1rem; }
.notice li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); }
.notice li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* ------- CTA band ------- */
.cta-band { position: relative; background: var(--navy-deep); color: #fff; text-align: center; padding: clamp(3.5rem, 7vw, 5.5rem) 0; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 400px at 50% -10%, rgba(212,175,55,.16), transparent 60%); }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; margin-bottom: .8rem; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 40rem; margin: 0 auto 2rem; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ------- Partners ------- */
.partners-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; align-items: center; }
.partner { display: flex; align-items: center; justify-content: center; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform .25s, box-shadow .25s; }
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.partner img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.partner:hover img { filter: grayscale(0); opacity: 1; }

/* ------- Cards / panels (generic, used by sub-pages) ------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 1.6rem; }
.card-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--navy-deep); border-bottom: 1px solid var(--line); padding-bottom: .7rem; margin-bottom: 1.1rem; }
.card-title-flex { display: flex; align-items: center; gap: .8rem; border-bottom: 0; padding-bottom: 0; }
.card-title-flex .icon { color: var(--red); width: 40px; height: 40px; padding: 8px; background: #fbecee; border-radius: 10px; }
.info-box { background: linear-gradient(180deg, #eef6fa, #fff); border: 1px solid #d6e7f0; border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); }
.info-box h2 { font-size: 1.3rem; color: var(--navy-deep); margin-bottom: .6rem; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; background: #fff; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.tile .icon { color: var(--red); background: #fbecee; width: 46px; height: 46px; padding: 10px; border-radius: 11px; margin-bottom: .9rem; }
.tile h3 { font-size: 1.25rem; margin-bottom: .4rem; display: flex; align-items: center; gap: .5rem; }
.tile p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.icon { width: 24px; height: 24px; flex-shrink: 0; } .icon-sm { width: 16px; height: 16px; } .icon-lg { width: 28px; height: 28px; }

.grid { display: grid; gap: 1.6rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ------- Forms ------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.field .req { color: var(--red); }
.field .hint, .field .help { font-size: .78rem; color: var(--muted); font-weight: 400; }
/* Form controls — default, hover, focus, disabled, error, success.
   Only default and focus existed before; there was no disabled appearance
   and no way to mark the field that failed validation, so an error was
   shown only as a page-level alert and the user had to hunt for it. */
.input, .select, .textarea {
  width: 100%;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base); font-family: inherit;
  background: var(--surface); color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
              background-color var(--transition-fast);
}
.input:hover:not(:disabled), .select:hover:not(:disabled), .textarea:hover:not(:disabled) {
  border-color: var(--border-strong);
}
/* Focus keeps the existing navy ring; :focus-visible additionally gets the
   global token ring, so keyboard focus is unambiguous. */
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,95,138,.15);
}
.input:disabled, .select:disabled, .textarea:disabled,
.input[readonly], .textarea[readonly] {
  background: var(--surface-sunken); color: var(--text-muted);
  border-color: var(--border); cursor: not-allowed;
}
/* Error: set aria-invalid="true" on the control (and describe it with the
   existing page-level alert). Colour is not the only signal — the border
   weight changes too, for users who cannot distinguish it. */
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"],
.input.is-invalid, .select.is-invalid, .textarea.is-invalid {
  border-color: var(--danger); border-width: 2px; background: var(--danger-subtle);
}
.input[aria-invalid="true"]:focus, .select[aria-invalid="true"]:focus, .textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(200,16,46,.18);
}
.field .error-text { display: block; margin-top: var(--space-1); font-size: var(--text-xs); color: var(--danger); font-weight: var(--weight-medium); }
.input.is-valid, .select.is-valid, .textarea.is-valid { border-color: var(--success); }
.textarea { resize: vertical; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.alert { border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .95rem; margin-bottom: 1.2rem; }
.alert-success { background: #e9f7ef; border: 1px solid #bfe6cf; color: #10603a; }
.alert-error { background: #fdecee; border: 1px solid #f3c2c9; color: #8f1024; }
.quote-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.quote-table td { padding: .7rem .3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.quote-table td:first-child { font-weight: 600; width: 52%; color: var(--navy); }
.quote-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.quote-table tr.sub td:first-child { font-weight: 400; color: var(--ink-soft); padding-left: 1rem; }
.quote-table tr.sub td:last-child { font-weight: 500; color: var(--ink-soft); }
.quote-table .total { color: var(--red); font-weight: 800; font-size: 1.15rem; border-top: 2px solid var(--navy-deep); }
.estimate-note { font-size: .82rem; color: var(--muted); margin: .9rem 0 1.1rem; line-height: 1.5; }
.print-only { display: none; }

/* contact items */
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.contact-item .icon { color: var(--red); background: #fbecee; width: 44px; height: 44px; padding: 10px; border-radius: 11px; }
.contact-item .ci-title { font-weight: 600; color: var(--navy); }
.contact-item p { color: var(--ink-soft); margin: 0; font-size: .96rem; }
.contact-item .ci-closed { color: var(--red); font-weight: 600; }

/* risk categories */
.filters { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.6rem; }
.filters .search-wrap, .filters .filter-wrap { position: relative; flex: 1; }
.filters .search-wrap .icon, .filters .filter-wrap .icon { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.filters .input, .filters .select { padding-left: 2.5rem; }
@media (min-width: 640px) { .filters { flex-direction: row; align-items: center; } .filters .filter-wrap { flex: 0 0 260px; } }
.risk-cat { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.2rem; overflow: hidden; box-shadow: var(--shadow-sm); }
.risk-cat-head { display: flex; flex-direction: column; gap: .6rem; background: linear-gradient(180deg, #eef6fa, #fff); border-bottom: 1px solid var(--line); padding: 1rem 1.3rem; }
.risk-cat-head h2 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.risk-cat ul { list-style: none; }
.risk-cat li { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .8rem 1.3rem; font-size: .95rem; border-bottom: 1px solid var(--off); }
.risk-cat li:hover { background: #eef6fa; }
.risk-cat li:last-child { border-bottom: 0; }
.risk-cat li a.quote-link { flex-shrink: 0; color: var(--navy); font-size: .82rem; font-weight: 600; }
.risk-cat li a.quote-link:hover { color: var(--red); }
@media (min-width: 640px) { .risk-cat-head { flex-direction: row; align-items: center; justify-content: space-between; } }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-of-type { border-bottom: 0; }
.faq-item summary { cursor: pointer; font-size: 1.1rem; font-weight: 500; color: var(--navy-deep); font-family: var(--font-display); padding: 1.1rem .2rem; list-style: none; position: relative; padding-right: 2.2rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--red); background: #fbecee; border-radius: 8px; font-family: var(--font-body); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--ink-soft); padding: 0 .2rem 1.1rem; margin: 0; }

.hidden { display: none !important; }
.no-results { color: var(--muted); font-style: italic; }

/* legacy page-band -> styled like page-hero for any pages still using it */
.page-band { background: linear-gradient(120deg, var(--navy-deep), var(--navy)); color: #fff; padding: clamp(3rem,7vw,4.5rem) 0 clamp(2.4rem,5vw,3.4rem); }
.page-band .crumbs { font-size: .82rem; opacity: .8; margin-bottom: .6rem; }
.page-band .crumbs a:not(.btn) { color: #fff; text-decoration: none; }
.page-band h1 { color: #fff; }
.band-slim { background: linear-gradient(120deg, var(--navy-deep), var(--navy)); color: #fff; }
.band-slim .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; }
.band-slim a:not(.btn) { color: #fff; text-decoration: none; font-weight: 500; }
.band-slim a:hover { color: var(--gold-pale); }
.band-slim span { opacity: .82; }
.section-white { background: #fff; }
.section-grey { background: var(--off); }
.section-title { font-family: var(--font-display); color: var(--navy-deep); }

/* ------- Footer ------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.72); margin-top: auto; }
.footer-main { padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer-brand img { height: 58px; width: auto; background: #fff; border-radius: 10px; padding: 7px 12px; margin-bottom: 1rem; }
.footer-brand img.footer-logo-full { height: auto; width: 290px; max-width: 100%; padding: 12px 16px; }
.footer-brand p { font-size: .92rem; color: rgba(255,255,255,.7); max-width: 20rem; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a:not(.btn) { display: block; color: rgba(255,255,255,.72); text-decoration: none; font-size: .95rem; padding: .3rem 0; transition: color .2s; }
.footer-col a:hover { color: var(--gold-pale); }
.footer-contact li { list-style: none; display: flex; gap: .6rem; margin-bottom: .7rem; font-size: .92rem; color: rgba(255,255,255,.72); }
.footer-contact svg { width: 17px; height: 17px; fill: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(212,175,55,.28); padding: 1.3rem 0; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; align-items: center; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-cards { display: flex; gap: .5rem; }
.card-badge { background: #fff; font-weight: 700; font-size: .68rem; padding: .3rem .6rem; border-radius: 5px; }
.card-visa { color: var(--navy); } .card-mc { color: var(--red); } .card-mpesa { color: #0f7a3d; }
.footer-ira { display: block; margin-top: .3rem; opacity: .8; }

/* floating helpers */
.wa-chat { position: fixed; bottom: var(--space-5); right: var(--space-5); z-index: 90; width: 54px; height: 54px; border-radius: var(--radius-pill); background: #1faa53; color: var(--text-on-accent); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); transition: transform var(--transition-fast); }
.wa-chat:hover { transform: translateY(-3px) scale(1.05); }
.wa-chat svg { width: 28px; height: 28px; }

/* On phones a full-width CTA runs the width of the viewport, so the fixed
   chat float was sitting on top of it — measured at 61px of the primary
   button's tap area. Reserving a lane on the right keeps the float clear of
   any full-width button while staying inside the thumb zone, and the float
   itself stays at 48px, above the 44px minimum. */
@media (max-width: 560px) {
  .wa-chat { width: 48px; height: 48px; bottom: var(--space-4); right: var(--space-3); }
  .wa-chat svg { width: 24px; height: 24px; }
  .hero-actions .btn,
  .cta-band .btn { max-width: calc(100% - 64px); }
  .hero-actions, .cta-band .btn-row { align-items: flex-start; }
  /* Reserving that lane makes the buttons narrower, and .16em tracking on a
     long uppercase label then wraps it onto two lines. Tightening tracking
     and horizontal padding at this width keeps the label on one line without
     shortening copy that earns its place. */
  .btn { letter-spacing: .08em; }
  .btn-lg { padding-left: var(--space-4); padding-right: var(--space-4); }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* Google Translate suppression + legacy lang-inline */
.goog-te-banner-frame, .skiptranslate iframe { display: none !important; }
body { top: 0 !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
font { background: transparent !important; box-shadow: none !important; }
.gt-hidden { position: absolute; left: -9999px; top: -9999px; }
.lang-inline { display: none; }
.lang-switcher { display: none; }

/* ==================== Responsive ==================== */
@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.4rem; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 0; background: var(--navy-deep); flex-direction: column; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 105; overflow-y: auto; }
  .site-nav.open { opacity: 1; visibility: visible; }
  .site-nav > ul { flex-direction: column; gap: 1.3rem; text-align: center; padding: 5rem 1.5rem; }
  .site-nav > ul > li > a, .nav-dd-btn { font-size: 1.2rem; }
  .nav-dd-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; background: rgba(255,255,255,.06); margin-top: .6rem; min-width: 240px; }
  .nav-dd-menu a { color: rgba(255,255,255,.85); text-align: center; }
  .nav-dd-menu a:hover { background: rgba(255,255,255,.1); color: var(--gold-pale); }
  .lang-dd summary { justify-content: center; }
  .lang-dd ul { position: static; margin: .5rem auto 0; }
  .card-grid, .card-grid.cols-2, .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split-media::before { display: none; }
  .split-media { order: -1; }
  .hero { min-height: 82vh; }
  .hero-scroll { display: none; }
  .notice { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-tagline { display: none; }
  .card-grid, .card-grid.cols-2, .steps-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; text-align: center; }
  .brand-name b { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; }
}
