/* FIXMAN site chrome (v2): header, mega-menu, footer, hero, explorer,
   process rail, sticky mobile CTAs, page hero and addendum pieces. */

/* ============================ Header ============================ */
.utility-strip { background: var(--navy-950); color: #c3d3ea; font-size: var(--step--1); }
.utility-strip .container { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between; padding-block: 0.5rem; }
.utility-strip a { color: #fff; text-decoration: none; }
.utility-strip a:hover { text-decoration: underline; }
.utility-strip .u-item { display: inline-flex; gap: 0.45rem; align-items: center; }
.utility-strip .u-right { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }

.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: var(--sh-2); }
.site-header .container { display: flex; align-items: center; gap: 0.65rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-2); text-decoration: none; flex: none; }
.brand img { height: 44px; width: auto; border-radius: 8px; }
.brand span { font-weight: 800; color: var(--navy); font-size: 1.15rem; letter-spacing: -0.02em; }

.nav { margin-left: auto; flex: 1 1 auto; min-width: 0; }
.nav > ul { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; align-items: center; justify-content: flex-end; flex-wrap: nowrap; }
.nav > ul > li { position: relative; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9rem; padding: 0.42rem 0.5rem; display: inline-flex; align-items: center; gap: 0.25rem; border-radius: var(--r-sm); white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-700); background: var(--teal-050); }
.nav a[aria-current="page"] { font-weight: 700; }
.nav .caret { width: 12px; height: 12px; opacity: 0.65; transition: transform var(--dur) var(--ease); }
.nav .has-menu:hover .caret { transform: rotate(180deg); }

/* Mega menu for Services */
.mega {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: min(720px, 90vw); background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: var(--sp-4);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.25rem;
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.mega::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.nav .has-menu:hover .mega, .nav .has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.6rem 0.7rem; border-radius: var(--r); }
.mega a .mi { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--cat-soft); color: var(--cat); }
.mega a .mi svg { width: 19px; height: 19px; }
.mega a strong { display: block; font-size: var(--step--1); color: var(--ink); }
.mega a span { font-size: var(--step--2); color: var(--fg-muted); }
.mega .mega-foot { grid-column: 1 / -1; margin-top: 0.4rem; padding-top: var(--sp-3); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }

.header-tools { display: flex; align-items: center; gap: 0.35rem; flex: none; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-pill); overflow: hidden; }
.lang-switch a { padding: 0.34rem 0.7rem; text-decoration: none; font-size: var(--step--1); font-weight: 650; color: var(--navy); }
.lang-switch a[aria-current="true"] { background: var(--navy); color: #fff; }
.theme-toggle { width: 40px; height: 40px; min-height: 0; border-radius: 50%; padding: 0; border: 1px solid var(--line-strong); background: var(--card-bg); color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 0.5rem 0.7rem; cursor: pointer; color: var(--navy); font-weight: 650; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; background: var(--header-solid); padding: var(--sp-4); border-bottom: 1px solid var(--line); display: none; box-shadow: var(--sh-3); max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .nav[data-open="true"] { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: var(--sp-1); }
  .nav a { padding: 0.7rem 0.6rem; }
  .mega { position: static; transform: none; opacity: 1; visibility: visible; width: auto; box-shadow: none; border: 0; padding: 0 0 0 var(--sp-4); grid-template-columns: 1fr; }
  .mega a { padding: 0.5rem 0.4rem; }
  .header-tools .btn { display: none; }
}

/* ============================ Hero ============================ */
.hero { position: relative; overflow: hidden; background: var(--grad-hero); color: #eaf2ff; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(90% 80% at 50% 0%, #000 0%, transparent 80%);
}
.hero > .container { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1.05fr 0.95fr; align-items: center; }
.hero h1 { color: #fff; margin-bottom: var(--sp-4); font-size: var(--step-4); }
.hero .lead { color: #c7d6ec; max-width: 48ch; }
.hero .eyebrow { color: #7fe8e2; }
.hero .eyebrow::before { background: #7fe8e2; }
.hero-art { position: relative; border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--sh-3); border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.04); min-height: 340px; }
.hero-art img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.hero-art .media-slot { aspect-ratio: auto; height: 100%; border: 0; background: rgba(255,255,255,0.05); color: #9fc0e8; }
.hero-art .ha-motif { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; color: rgba(255,255,255,0.9); }
.hero-art .ha-motif svg { width: 150px; height: 150px; }
.hero-badge {
  position: absolute; z-index: 2; background: var(--card-bg); color: var(--fg);
  border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 0.7rem 0.9rem; display: flex; gap: 0.6rem; align-items: center;
}
.hero-badge .hb-n { font-weight: 800; font-size: var(--step-1); color: var(--navy); display: block; line-height: 1; }
.hero-badge .hb-l { font-size: var(--step--2); color: var(--fg-muted); }
.hero-badge.b1 { left: -14px; bottom: 26px; animation: float 6s var(--ease) infinite; }
.hero-badge.b2 { right: -14px; top: 26px; animation: float 7s var(--ease) infinite 0.6s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .hero-badge { animation: none; } }
@media (max-width: 900px) {
  .hero > .container { grid-template-columns: 1fr; }
  .hero-badge.b1 { left: 8px; } .hero-badge.b2 { right: 8px; }
}
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-6); }
.hero-stats .hs .n { display: block; font-size: var(--step-3); font-weight: 800; color: #fff; line-height: 1; }
.hero-stats .hs .l { font-size: var(--step--1); color: #9fc0e8; }
.hero-stats .hs { border-left: 2px solid rgba(255,255,255,0.16); padding-left: var(--sp-3); }

/* ============================ Page hero ============================ */
.page-hero { position: relative; overflow: hidden; background: var(--grad-hero); color: #fff; padding-block: clamp(2.25rem, 5vw, 4rem); }
.page-hero::after { content: ""; position: absolute; inset: 0; opacity: 0.4; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 24px 24px; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c7d6ec; }
.page-hero .breadcrumb { color: #a9bdd8; }
.page-hero .breadcrumb a { color: #cfe0f5; }
.page-hero .breadcrumb .sep { color: rgba(255,255,255,0.4); }
.page-hero.with-art { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }

/* Category hero (service detail pages) */
.cat-hero { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; }
.cat-hero .cat-mark { width: 96px; height: 96px; border-radius: var(--r-xl); display: grid; place-items: center; background: var(--cat-soft); color: var(--cat); box-shadow: var(--sh-2); }
.cat-hero .cat-mark svg { width: 52px; height: 52px; }
@media (max-width: 640px) { .cat-hero { grid-template-columns: 1fr; } .cat-hero .cat-mark { width: 72px; height: 72px; } }

/* ============================ Steps (generic) ============================ */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.steps li { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--sp-4); box-shadow: var(--sh-1); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange-100); color: var(--orange-600); font-weight: 800; margin-bottom: var(--sp-3); }

/* ============================ Method cards (ways to get service) ============================ */
.method { display: flex; gap: var(--sp-4); align-items: flex-start; }

/* ============================ Footer ============================ */
.site-footer { position: relative; overflow: hidden; background: var(--navy-950); color: #b9cbe4; margin-top: var(--sp-8); }
.site-footer::before { content: ""; position: absolute; inset: 0; opacity: 0.5;
  background: radial-gradient(60% 60% at 15% 0%, rgba(18,181,176,0.16), transparent 60%), radial-gradient(50% 50% at 90% 20%, rgba(255,122,26,0.12), transparent 60%); }
.site-footer > .container { position: relative; z-index: 1; }
.site-footer h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-4); }
.site-footer a { color: #b9cbe4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); grid-template-columns: 1.5fr repeat(3, 1fr); padding-block: var(--sp-8) var(--sp-6); }
.site-footer .footer-grid ul { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-grid li { margin-bottom: var(--sp-2); }
.footer-brand img { height: 46px; border-radius: 8px; background: #fff; padding: 3px 6px; }
.footer-contact { display: grid; gap: 0.4rem; margin-top: var(--sp-4); font-size: var(--step--1); }
.footer-contact a { display: inline-flex; gap: 0.5rem; align-items: center; }
.newsletter { margin-top: var(--sp-4); }
.newsletter .nl-form { display: flex; gap: 0.4rem; margin-top: var(--sp-2); max-width: 340px; }
.newsletter input { min-height: 42px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22); color: #fff; border-radius: var(--r-pill); }
.newsletter input::placeholder { color: #8ea7c9; }
.footer-trust { display: flex; flex-wrap: wrap; gap: var(--sp-3); padding-block: var(--sp-4); border-top: 1px solid rgba(255,255,255,0.1); font-size: var(--step--2); color: #9fb4d2; }
.footer-trust .ft { display: inline-flex; gap: 0.45rem; align-items: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-block: var(--sp-4); font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; }
.social-row { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.social-row a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.08); }
.social-row a:hover { background: var(--teal); color: #04201f; }
.social-row svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }

/* ============================ Sticky mobile CTAs ============================ */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; display: none; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); background: var(--header-solid); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(11,31,58,0.08); }
.mobile-cta .btn { flex: 1; }
@media (max-width: 700px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 72px; }
  .to-top { bottom: 84px; }
}

/* ============================ Low-bandwidth mode ============================ */
body[data-low-bandwidth="true"] .media-slot,
body[data-low-bandwidth="true"] .hero-art .ha-motif,
body[data-low-bandwidth="true"] .svc-media,
body[data-low-bandwidth="true"] img[data-heavy] { display: none !important; }
body[data-low-bandwidth="true"] { --sh-1: none; --sh-2: none; --sh-3: none; }
body[data-low-bandwidth="true"] .hero { background: var(--navy); }

/* ============================ Addendum A: category icons, centres, directory ============================ */
.cat-icon, .cat-icon-lg { display: block; border-radius: 12px; margin-bottom: .6rem; }
.cat-card h3 { font-size: 1.02rem; }
.cat-card p { margin-top: .25rem; }
.type-badge { display: inline-block; margin: .1rem 0 .5rem; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: rgba(18,181,176,.14); color: #0B7F7B; }
.type-badge.partner { background: rgba(37,99,235,.14); color: #2563EB; }
.district-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; margin-top: .5rem; }
.district-item { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem .7rem; border: 1px solid var(--line-strong); border-radius: 10px; font-size: .9rem; }
.district-item.on { border-color: rgba(22,163,74,.5); background: rgba(22,163,74,.06); }
.dist-state { font-size: .72rem; font-weight: 650; white-space: nowrap; }
.dist-state.on { color: #16A34A; }
.dist-state.off { color: var(--slate); }
.directory-division { margin-top: 1rem; }
.directory-head { font-size: .95rem; margin: .8rem 0 0; }
.chip-link { text-decoration: none; }
.chip-link:hover { border-color: #12B5B0; color: #0B7F7B; }

/* Payments we accept. Each provider logo sits on its own white tile so every
   brand keeps its own colours on the dark footer. Swap a file in
   assets/img/payments/ for a better one, same filename, no code change. */
.footer-pay { display: flex; flex-direction: column; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-3); padding-block: var(--sp-4); border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.footer-pay .pay-label { font-size: var(--step--2); letter-spacing: 0.06em; text-transform: uppercase; color: #9fb4d2; }
.footer-pay .pay-tiles { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.55rem; }
.footer-pay .pay-tile { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 11px; background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.22); }
.footer-pay .pay-tile img { height: 22px; width: auto; display: block; }
