/* ==========================================================================
   Senator Louis Omondi Ochieng (Atonga) — Campaign Website
   Brand-led, mobile-first, no gradients. Navy + Green dominant.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy: #021539;
  --green: #006B35;
  --emerald: #008F4C;
  --red: #E31B23;
  --gold: #F5B51B;
  --black: #111111;
  --white: #FFFFFF;
  --lake: #168BD0;

  --navy-90: rgba(2, 21, 57, 0.9);
  --navy-08: rgba(2, 21, 57, 0.08);
  --navy-12: rgba(2, 21, 57, 0.12);
  --green-08: rgba(0, 107, 53, 0.08);
  --gold-20: rgba(245, 181, 27, 0.2);

  --paper: #F7F8FA;
  --paper-2: #EEF1F5;
  --line: #DDE3EC;
  --muted: #5A6478;

  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Georgia", "Times New Roman", serif;

  --shadow-sm: 0 1px 2px rgba(2, 21, 57, 0.06), 0 1px 3px rgba(2, 21, 57, 0.08);
  --shadow-md: 0 4px 12px rgba(2, 21, 57, 0.1), 0 2px 4px rgba(2, 21, 57, 0.06);
  --shadow-lg: 0 18px 40px rgba(2, 21, 57, 0.16), 0 6px 12px rgba(2, 21, 57, 0.08);

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 18px;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  --focus: 0 0 0 3px var(--gold);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  font-size: clamp(16px, 1.05vw + 0.8rem, 18px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 1000;
  background: var(--gold); color: var(--navy); font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius-sm); transition: top .2s;
}
.skip-link:focus { top: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(40px, 7vw, 84px); }
.section--tight { padding-block: clamp(28px, 4vw, 48px); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--white); }
.section--green { background: var(--green); color: var(--white); }
.grid { display: grid; gap: clamp(16px, 3vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid--keep-2 { grid-template-columns: repeat(2, 1fr); }

/* Split: 2-column layout that stacks on mobile. Replaces inline styles. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 48px); align-items: start; }
.split--start { align-items: start; }
.split--center { align-items: center; }
.split--wide-left { grid-template-columns: 1.1fr 1fr; }
.split--wide-right { grid-template-columns: 1fr 1.2fr; }
.split--wider-right { grid-template-columns: 1fr 1.3fr; }
.split--form { grid-template-columns: 1fr 1.5fr; gap: clamp(20px, 4vw, 40px); align-items: center; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.75rem; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--gold); display: inline-block; }
.eyebrow--center::before { display: none; }
.eyebrow--gold { color: var(--gold); }
.eyebrow--red { color: var(--red); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.section--navy h1, .section--navy h2, .section--navy h3,
.section--green h1, .section--green h2, .section--green h3 { color: var(--white); }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.section--navy .lead, .section--green .lead { color: rgba(255,255,255,0.85); }
.section-head { max-width: 64ch; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head.center { margin-inline: auto; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy); color: var(--white); font-size: 0.82rem;
  border-bottom: 3px solid var(--green);
}
.topbar__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 18px; padding-block: 8px;
}
.topbar__contact { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.topbar__contact a { color: var(--white); display: inline-flex; align-items: center; gap: 6px; }
.topbar__contact a:hover { color: var(--gold); text-decoration: none; }
.topbar__badge {
  display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 600;
}
.topbar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* ---------- Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; height: 100%; flex: 0 0 auto; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand__logo {
  height: 100%; width: auto; max-width: none; object-fit: contain;
  padding-block: 0.25rem;
}
.brand--footer { height: auto; }
.brand--footer .brand__logo { height: auto; max-height: 56px; width: auto; padding-block: 0; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav__link {
  color: var(--navy); font-weight: 600; font-size: 0.95rem;
  padding: 10px 12px; border-radius: var(--radius-sm); position: relative;
}
.nav__link:hover { background: var(--green-08); color: var(--green); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--green); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px;
  background: var(--gold); border-radius: 2px;
}
.nav__cta { margin-left: 6px; }

.nav-toggle {
  display: none; background: var(--navy); color: var(--white); border: 0;
  width: 44px; height: 44px; border-radius: var(--radius-sm); padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--white); display: block; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 0.98rem; padding: 12px 22px; border-radius: var(--radius-sm);
  border: 2px solid transparent; text-decoration: none; transition: transform .12s, background .2s, color .2s, border-color .2s;
  min-height: 46px; line-height: 1.1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn--gold:hover { background: #e8a912; border-color: #e8a912; }
.btn--green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn--green:hover { background: #005a2c; border-color: #005a2c; }
.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy:hover { background: #011c4d; border-color: #011c4d; }
.btn--red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--red:hover { background: #c4141b; border-color: #c4141b; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn--outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 30px; font-size: 1.05rem; min-height: 54px; }
.btn--sm { padding: 8px 14px; font-size: 0.85rem; min-height: 38px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy); color: var(--white); position: relative; overflow: hidden;
  border-bottom: 4px solid var(--gold);
}
.hero__inner { display: grid; gap: clamp(28px, 5vw, 56px); padding-block: clamp(40px, 8vw, 92px); align-items: center; }
.hero__eyebrow { color: var(--gold); }
.hero__eyebrow::before { background: var(--red); }
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--gold); }
.hero__lead { color: rgba(255,255,255,0.88); font-size: clamp(1.05rem, 2.2vw, 1.35rem); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: rgba(255,255,255,0.78); font-size: 0.9rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta b { color: var(--gold); }

/* Kenyan flag accent strip */
.flagstrip { display: flex; height: 5px; width: 100%; border-radius: 3px; overflow: hidden; max-width: 220px; }
.flagstrip span { flex: 1; }
.flagstrip .f1 { background: var(--black); }
.flagstrip .f2 { background: var(--red); flex: 0.5; }
.flagstrip .f3 { background: var(--green); }

.hero__card {
  background: var(--white); color: var(--navy); border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--green);
}
.hero__card h3 { color: var(--navy); }
.hero__card .lead { color: var(--muted); }
.hero__card-list { display: grid; gap: 12px; margin-top: 16px; }
.hero__card-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.hero__card-list .tick { color: var(--green); font-weight: 800; flex: 0 0 auto; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 12px; height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--green-08); color: var(--green);
  display: grid; place-items: center; font-size: 1.4rem; font-weight: 800;
}
.card__icon--gold { background: var(--gold-20); color: #8a6300; }
.card__icon--red { background: rgba(227,27,35,0.1); color: var(--red); }
.card__icon--lake { background: rgba(22,139,208,0.12); color: var(--lake); }
.card__icon--navy { background: var(--navy-08); color: var(--navy); }
.card h3 { color: var(--navy); }
.card p { color: var(--muted); }
.card__top { border-top: 4px solid var(--green); }
.card__top--gold { border-top-color: var(--gold); }
.card__top--red { border-top-color: var(--red); }
.card__top--lake { border-top-color: var(--lake); }
.card__top--navy { border-top-color: var(--navy); }
.card__footer { margin-top: auto; }

/* ---------- Images ---------- */
.card__media { position: relative; margin: -20px -20px 16px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 16/9; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__media--portrait { aspect-ratio: 4/5; }
.card__media--square { aspect-ratio: 1/1; }
.card__media--wide { aspect-ratio: 21/9; }
.card__media .tag { position: absolute; top: 12px; left: 12px; z-index: 2; }

.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; background: var(--paper-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__media .hero__media-caption { position: absolute; bottom: 0; left: 0; right: 0; background: var(--navy-90); color: var(--white); padding: 10px 16px; font-size: 0.85rem; }

.figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--paper-2); }
.figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figure--portrait { aspect-ratio: 3/4; }
.figure--landscape { aspect-ratio: 4/3; }
.figure figcaption { padding: 10px 14px; font-size: 0.85rem; color: var(--muted); background: var(--white); border-top: 1px solid var(--line); }

.portrait-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid var(--white); outline: 1px solid var(--line); aspect-ratio: 3/4; background: var(--paper-2); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.media-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.media-strip__item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow-sm); background: var(--paper-2); }
.media-strip__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.media-strip__item:hover img { transform: scale(1.06); }

.section--navy .figure figcaption { color: rgba(255,255,255,0.7); background: rgba(2,21,57,0.4); border-top-color: rgba(255,255,255,0.12); }

img { height: auto; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--white); padding: clamp(18px, 3vw, 28px); text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--green); font-weight: 700; line-height: 1; }
.stat__label { color: var(--muted); font-size: 0.9rem; margin-top: 6px; font-weight: 600; }

/* ---------- Pill / tag ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: var(--green-08); color: var(--green);
}
.tag--gold { background: var(--gold-20); color: #8a6300; }
.tag--red { background: rgba(227,27,35,0.1); color: var(--red); }
.tag--navy { background: var(--navy-08); color: var(--navy); }
.tag--lake { background: rgba(22,139,208,0.12); color: var(--lake); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field__label { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.field__label .req { color: var(--red); }
.field__hint { font-size: 0.82rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--navy); font: inherit; min-height: 46px; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-08); outline: none; }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23021539' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field--hidden { display: none; }
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-md); border-top: 5px solid var(--gold);
}
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.req-note { font-size: 0.82rem; color: var(--muted); }
.req-note .req { color: var(--red); }

/* ---------- Paybill panel ---------- */
.paybill {
  background: var(--navy); color: var(--white); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px); border: 1px solid #0a2a5e; box-shadow: var(--shadow-lg);
}
.paybill__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.paybill__row:last-child { border-bottom: 0; }
.paybill__label { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.paybill__value { font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 2rem); color: var(--gold); font-weight: 700; letter-spacing: 0.02em; }
.copy-btn { background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.25); border-radius: 6px; padding: 6px 10px; font-size: 0.8rem; font-weight: 600; }
.copy-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ---------- News list ---------- */
.news-item { display: grid; gap: 14px; padding: clamp(20px, 3vw, 28px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); border-left: 5px solid var(--green); box-shadow: var(--shadow-sm); }
.news-item:hover { box-shadow: var(--shadow-md); }
.news-item__meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; color: var(--muted); font-size: 0.85rem; }
.news-item h3 a { color: var(--navy); }
.news-item h3 a:hover { color: var(--green); text-decoration: none; }

/* ---------- Documents table ---------- */
.doc-list { display: grid; gap: 12px; }
.doc-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.doc-row:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.doc-row__title { font-weight: 700; color: var(--navy); }
.doc-row__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 4px; font-size: 0.84rem; color: var(--muted); }

/* ---------- Social ---------- */
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social__link {
  width: 42px; height: 42px; border-radius: 10px; background: var(--navy-08); color: var(--navy);
  display: grid; place-items: center; font-weight: 700; font-size: 0.78rem; transition: background .2s, color .2s, transform .12s;
}
.social__link:hover { background: var(--green); color: var(--white); transform: translateY(-2px); text-decoration: none; }
.social--light .social__link { background: rgba(255,255,255,0.1); color: var(--white); }
.social--light .social__link:hover { background: var(--gold); color: var(--navy); }

/* ---------- Floating action buttons ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  display: flex; flex-direction: column; gap: 12px;
}
.fab__btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: var(--white); box-shadow: var(--shadow-lg); transition: transform .15s, box-shadow .2s;
  border: 2px solid var(--white);
}
.fab__btn:hover { transform: translateY(-3px) scale(1.05); text-decoration: none; box-shadow: 0 14px 28px rgba(2,21,57,0.25); }
.fab__btn:active { transform: translateY(0) scale(1); }
.fab__btn--whatsapp { background: #25D366; }
.fab__btn--whatsapp:hover { background: #1fb855; }
.fab__btn--call { background: var(--green); }
.fab__btn--call:hover { background: #005a2c; }
.fab__btn svg { pointer-events: none; }
/* Pulse to draw attention */
.fab__btn--whatsapp { animation: fabPulse 2.5s ease-in-out infinite; }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5), var(--shadow-lg); }
  50% { box-shadow: 0 0 0 10px rgba(37,211,102,0), var(--shadow-lg); }
}
@media (max-width: 480px) {
  .fab { right: 14px; bottom: 14px; gap: 10px; }
  .fab__btn { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .fab__btn--whatsapp { animation: none; }
  .fab__btn:hover { transform: none; }
}

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,0.8); border-top: 4px solid var(--green); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(20px, 4vw, 40px); padding-block: clamp(36px, 6vw, 60px); }
.footer h4 { color: var(--white); font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: rgba(255,255,255,0.78); }
.footer a:hover { color: var(--gold); text-decoration: none; }
.footer__links { display: grid; gap: 8px; }
.footer__brand .brand--footer {
  background: var(--white); border-radius: 8px; padding: 6px 10px; display: inline-flex;
}
.footer__brand .brand--footer .brand__logo { max-height: 44px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 18px; font-size: 0.84rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer__bottom a { color: var(--gold); }

/* ---------- Flash banner ---------- */
.flash { border-radius: var(--radius); padding: 14px 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; border: 1.5px solid transparent; }
.flash--success { background: var(--green-08); color: #004f26; border-color: rgba(0,107,53,0.3); }
.flash__close { margin-left: auto; background: transparent; border: 0; color: inherit; font-size: 1.2rem; line-height: 1; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--navy); color: var(--white); border-bottom: 4px solid var(--gold); }
.page-hero__inner { padding-block: clamp(34px, 6vw, 64px); }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: rgba(255,255,255,0.85); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ---------- Divider ---------- */
.rule { height: 4px; width: 64px; background: var(--gold); border: 0; border-radius: 2px; }
.rule--center { margin-inline: auto; }
.rule--red { background: var(--red); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); color: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 48px); display: grid; gap: 18px; }
.cta-band h2 { color: var(--white); }
.cta-band .lead { color: rgba(255,255,255,0.9); }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 0; }
.timeline__item { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding-bottom: 24px; position: relative; }
.timeline__item::before { content: ""; position: absolute; left: 13px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline__item:last-child::before { display: none; }
.timeline__dot { width: 28px; height: 28px; border-radius: 50%; background: var(--green); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--green); margin-top: 2px; }
.timeline__dot--gold { background: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.timeline__dot--red { background: var(--red); box-shadow: 0 0 0 2px var(--red); }

/* ---------- 404 ---------- */
.err { text-align: center; padding-block: clamp(60px, 12vw, 120px); }
.err__code { font-family: var(--font-display); font-size: clamp(4rem, 16vw, 9rem); color: var(--gold); line-height: 1; }

/* ---------- Responsive ---------- */

/* Tablet landscape → tablet */
@media (max-width: 980px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet → mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 84px 18px 24px;
    box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease;
    overflow-y: auto; border-left: 1px solid var(--line);
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav__link { padding: 14px 12px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__link[aria-current="page"] { background: var(--green-08); }
  .nav__cta { margin: 14px 0 0; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(2,21,57,0.5); opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 99; }
  .nav-backdrop[data-open="true"] { opacity: 1; visibility: visible; }
  .hero__inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .brand__logo { padding-block: 0.375rem; }
  .split, .split--wide-left, .split--wide-right, .split--wider-right, .split--form { grid-template-columns: 1fr; }
}

/* Phone — compact 2-col cards, stack text-heavy grids */
@media (max-width: 620px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .topbar__inner { justify-content: center; }
  .topbar__contact { justify-content: center; }
  .doc-row { grid-template-columns: 1fr; }
  .doc-row .btn { width: 100%; }
  .paybill__row { flex-wrap: wrap; }
  .paybill__value { font-size: 1.3rem; }
  .media-strip { grid-template-columns: 1fr 1fr; }
  .news-item { padding: 16px; }
  .card { padding: 16px; }
  .card__media { margin: -16px -16px 12px; }
  .section { padding-block: clamp(32px, 8vw, 48px); }
  .hero__card { padding: 20px; }
}

/* Small phone — final collapse to single column */
@media (max-width: 400px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid--keep-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .media-strip { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .topbar__contact { font-size: 0.76rem; gap: 6px 12px; }
  .topbar__badge { display: none; }
  .brand__logo { padding-block: 0.5rem; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .card:hover, .social__link:hover { transform: none; }
}
