/* 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; }
}


/* ============================ 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; }


/* Responsive refresh 20261116r4 */
html, body { max-width: 100%; overflow-x: hidden; }
.mega { max-height: min(72vh, 620px); overflow-y: auto; overscroll-behavior: contain; }
.nav .has-menu.menu-open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
@media (max-width: 1000px) {
  .nav .has-menu.menu-open .mega { transform: none; }
}
@media (max-width: 760px) {
  .site-header .container { gap: 0.4rem; }
  .brand img { height: 38px; max-width: 108px; object-fit: contain; }
  .header-tools { gap: 0.2rem; margin-left: auto; }
  .search-toggle-text { display: none; }
  .search-toggle, .theme-toggle { width: 36px; height: 36px; min-height: 36px; padding: 0; justify-content: center; }
  .lang-switch a { padding-inline: 0.5rem; }
  .hero > .container { grid-template-columns: 1fr; }
  .hero-art { min-height: 240px; }
  .explorer-bar { align-items: stretch; }
  .segmented { width: 100%; }
  .segmented button { flex: 1 1 auto; }
  .search-field { width: 100%; min-width: 0 !important; }
}
@media (max-width: 520px) {
  .nav-toggle { padding: 0.45rem 0.55rem; font-size: 0.86rem; }
  .brand img { height: 34px; max-width: 96px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-media { min-height: 190px; }
  .svc-photo { min-height: 190px; }
  .modal { padding: 0.6rem; align-items: end; }
  .modal .modal-panel { max-height: 92vh; border-radius: 1.2rem 1.2rem 0 0; padding: 1rem; }
}


/* Header refresh 20261116r5 */
.home-link > a { gap: 0.38rem; }
.home-icon { width: 1.25rem; height: 1.25rem; flex: none; }
@media (min-width: 1001px) {
  .site-header .container { min-height: 82px; gap: 0.85rem; }
  .brand img { height: 48px; }
  .nav > ul { gap: 0.08rem; }
  .nav a { font-size: 0.98rem; padding: 0.54rem 0.58rem; gap: 0.3rem; }
  .header-tools { gap: 0.42rem; }
  .header-tools .btn { padding-inline: 0.9rem; }
}
@media (min-width: 1001px) and (max-width: 1220px) {
  .nav a { font-size: 0.9rem; padding-inline: 0.4rem; }
  .brand img { height: 44px; }
  .header-tools .btn { padding-inline: 0.7rem; font-size: 0.9rem; }
}


/* Service centre search and image refresh 20261116r6 */
.locator-go { align-self: end; min-height: 44px; white-space: nowrap; }
.estimate-media { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--muted); font-weight: 700; }
.estimate-media img { width: clamp(72px, 16vw, 128px); height: auto; object-fit: contain; }
@media (max-width: 720px) { .locator-go { width: 100%; } .estimate-media { min-height: 220px; } }


/* Academy visual refresh 20261116r7 */
.academy-visual-refresh { background: linear-gradient(135deg, var(--navy), #20516d 58%, var(--teal-700)); color: #fff; overflow: hidden; }
.academy-refresh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.academy-refresh-grid h1 { color: #fff; font-size: clamp(2.7rem, 5vw, 5rem); margin: .4rem 0 1rem; letter-spacing: -.04em; }
.academy-refresh-grid .eyebrow { color: #7de2d9; font-weight: 800; letter-spacing: .12em; }
.academy-refresh-lead { max-width: 58ch; color: #d5e5f5; font-size: 1.15rem; line-height: 1.7; }
.academy-refresh-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.academy-refresh-actions .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.academy-refresh-stats { display: flex; flex-wrap: wrap; gap: 1rem; color: #c8d9e8; }
.academy-refresh-stats span { border-left: 2px solid rgba(255,255,255,.25); padding-left: .7rem; }
.academy-refresh-stats strong { display: block; color: #fff; font-size: 1.45rem; }
.academy-refresh-art { border: 1px solid rgba(255,255,255,.24); background: rgba(3,16,35,.4); border-radius: 1.4rem; padding: 1.2rem; box-shadow: 0 24px 60px rgba(0,0,0,.2); }
.academy-refresh-art-head { display: flex; justify-content: space-between; color: #b9cee3; font-size: .8rem; } .academy-refresh-art-head span { color: #7de2d9; }
.academy-refresh-main { display: flex; align-items: center; gap: 1rem; min-height: 210px; }
.academy-refresh-main img { width: clamp(88px, 16vw, 140px); padding: 1rem; border-radius: 1rem; background: #fff; }
.academy-refresh-main h2 { color: #fff; margin: 0 0 .4rem; } .academy-refresh-main p { color: #c8d9e8; margin: 0; }
.academy-refresh-art h3 { color: #fff; font-size: 1rem; }
.academy-track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.academy-track { display: flex; align-items: center; gap: .45rem; min-width: 0; padding: .55rem; border: 1px solid rgba(255,255,255,.16); border-radius: .7rem; color: #e6f2fa; font-size: .72rem; }
.academy-track img { width: 30px; height: 30px; padding: .3rem; border-radius: .45rem; background: #fff; flex: none; }
.academy-feature-strip { background: var(--cloud); padding-top: 0; }
.academy-feature-card { display: flex; align-items: center; gap: 1.2rem; padding: 1.3rem 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: 0 12px 28px rgba(15,39,63,.08); }
.academy-feature-card img { width: 64px; height: 64px; padding: .75rem; border-radius: .9rem; background: var(--teal-100); flex: none; }
.academy-feature-card h2 { margin: .2rem 0 .4rem; } .academy-feature-card p { margin: 0; }
@media (max-width: 900px) { .academy-refresh-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .academy-refresh-grid h1 { font-size: 2.7rem; } .academy-refresh-actions .btn { width: 100%; justify-content: center; } .academy-track-grid { grid-template-columns: repeat(2, 1fr); } .academy-track { font-size: .68rem; } .academy-feature-card { align-items: flex-start; flex-direction: column; } }


/* Header fit refresh 20261116r8 */
@media (min-width: 1001px) {
  .site-header .container { gap: .55rem; min-height: 78px; }
  .brand { flex: 0 0 150px; width: 150px; }
  .brand img { width: 150px; height: auto; max-height: 58px; object-fit: contain; }
  .nav > ul { gap: 0; }
  .nav a { font-size: .86rem; padding: .42rem .4rem; gap: .22rem; white-space: nowrap; }
  .home-icon { width: 1.1rem; height: 1.1rem; }
  .header-tools { gap: .22rem; }
  .search-toggle { width: 38px; min-width: 38px; padding: 0; justify-content: center; }
  .search-toggle-text { display: none; }
  .lang-switch a { padding-inline: .42rem; }
  .theme-toggle { width: 38px; min-width: 38px; padding: 0; justify-content: center; }
  .header-tools .btn { padding: .62rem .7rem; font-size: .82rem; white-space: nowrap; }
}
@media (min-width: 1001px) and (max-width: 1240px) {
  .brand { flex-basis: 128px; width: 128px; }
  .brand img { width: 128px; }
  .nav a { font-size: .78rem; padding-inline: .28rem; }
  .header-tools .btn { padding-inline: .55rem; font-size: .76rem; }
}


/* Academy catalogue refresh 20261116r9 */
.academy-catalog { background: var(--cloud); scroll-margin-top: 92px; }
.academy-catalog .section-head { max-width: 720px; }
.academy-course-grid { align-items: stretch; }
.academy-course-grid .card { display: flex; flex-direction: column; height: 100%; }
.academy-course-grid .card .btn { margin-top: auto; align-self: flex-start; }


/* Course details refresh 20261116r10 */
.course-card { gap: .75rem; }
.course-card-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: auto; padding-top: .75rem; }
.course-card-actions .btn { flex: 1 1 145px; justify-content: center; }
.course-details-panel { max-width: 700px; }
.course-details-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.course-details-head h2 { margin: .25rem 0 0; }
.course-details-summary { font-size: 1.05rem; line-height: 1.65; color: var(--muted); }
.course-details-list { display: grid; grid-template-columns: minmax(100px, .35fr) 1fr; gap: .6rem 1rem; margin: 1.2rem 0; padding: 1rem; border-radius: .9rem; background: var(--cloud); }
.course-details-list dt { font-weight: 800; color: var(--ink); }
.course-details-list dd { margin: 0; color: var(--muted); }
.course-details-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; margin-top: 1.2rem; }
.course-details-extra { margin-top: 1rem; }
@media (max-width: 520px) { .course-card-actions .btn { flex-basis: 100%; } .course-details-list { grid-template-columns: 1fr; gap: .2rem; } .course-details-list dd { margin-bottom: .55rem; } .course-details-actions .btn { width: 100%; justify-content: center; } }


/* Bengali image visibility refresh 20261116r10 */
img { max-width: 100%; }
.svc-photo, .hero-art img, .media-slot img { visibility: visible; opacity: 1; }


/* Professional compact system 20261116r11 */
:root {
  --header-h: 68px;
  --sp-7: 2.35rem;
  --sp-8: 3rem;
  --sp-9: 4rem;
  --step-4: clamp(1.9rem, 1.55rem + 2.3vw, 3.15rem);
  --step-5: clamp(2.25rem, 1.75rem + 3.2vw, 4rem);
}
html[lang="bn"] {
  --font-scale: .93;
  --step-1: clamp(1rem, .96rem + .35vw, 1.18rem);
  --step-2: clamp(1.28rem, 1.12rem + .7vw, 1.65rem);
  --step-3: clamp(1.55rem, 1.3rem + 1.25vw, 2.2rem);
  --step-4: clamp(1.72rem, 1.42rem + 1.75vw, 2.65rem);
  --step-5: clamp(2rem, 1.6rem + 2.4vw, 3.25rem);
}
body { font-size: 1rem; line-height: 1.58; }
.site-header .container { min-height: 68px; }
.site-header { box-shadow: 0 1px 12px rgba(15,39,63,.06); }
.brand { flex-basis: 136px; width: 136px; }
.brand img { width: 136px; max-height: 48px; }
.nav a { font-size: .82rem; padding: .36rem .38rem; }
.header-tools { gap: .18rem; }
.header-tools .btn { padding: .52rem .62rem; font-size: .78rem; }
.section { padding-block: clamp(2rem, 3.5vw, 3.75rem); }
.container-wide { max-width: 1320px; }
.footer-grid { gap: clamp(1rem, 2vw, 2rem); padding-block: 2rem 1.6rem; }
.footer-grid h4 { font-size: .86rem; margin-bottom: .65rem; letter-spacing: .05em; }
.footer-grid ul { gap: .3rem; }
.footer-grid li, .footer-grid a, .footer-contact, .footer-contact a { font-size: .88rem; line-height: 1.45; }
.footer-brand img { width: 124px; height: auto; }
.footer-pay { padding-block: 1rem; gap: .65rem; }
.footer-bottom { padding-block: .8rem; font-size: .78rem; }
.site-footer { padding-bottom: 0; }
@media (min-width: 1001px) {
  .site-header .container { gap: .42rem; }
  .nav a { font-size: .78rem; padding-inline: .3rem; }
  .brand { flex-basis: 132px; width: 132px; }
  .brand img { width: 132px; }
}
@media (max-width: 900px) {
  .section { padding-block: 2.4rem; }
  .footer-grid { padding-block: 1.7rem 1.2rem; }
}
@media (max-width: 560px) {
  .section { padding-block: 1.9rem; }
  html[lang="bn"] body { font-size: .97rem; }
  html[lang="bn"] h1 { font-size: clamp(2rem, 9vw, 2.65rem); line-height: 1.18; }
  html[lang="bn"] h2 { font-size: clamp(1.45rem, 6vw, 2rem); line-height: 1.25; }
  .footer-grid { gap: 1.35rem; }
}


/* Readable header scale 20261116r12 */
@media (min-width: 1001px) {
  .site-header .container { min-height: 70px; gap: .48rem; }
  .brand { flex-basis: 140px; width: 140px; }
  .brand img { width: 140px; max-height: 50px; }
  .nav a { font-size: .84rem; padding: .38rem .34rem; }
  .home-icon { width: 1.14rem; height: 1.14rem; }
  .header-tools { gap: .2rem; }
  .header-tools .btn { padding: .56rem .66rem; font-size: .8rem; }
}
@media (min-width: 1001px) and (max-width: 1240px) {
  .brand { flex-basis: 132px; width: 132px; }
  .brand img { width: 132px; }
  .nav a { font-size: .8rem; padding-inline: .27rem; }
  .header-tools .btn { padding-inline: .55rem; font-size: .76rem; }
}


/* Compact forms 20261116r13 */
form.grid { gap: .8rem; }
.container-narrow > .card, .container-wide > .card { padding: clamp(1rem, 2vw, 1.5rem); }
.field { margin-bottom: .55rem; }
.field > label, fieldset > legend { margin-bottom: .35rem; font-size: .88rem; line-height: 1.35; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="url"], select, textarea { min-height: 42px; padding: .62rem .72rem; font-size: .92rem; line-height: 1.35; }
textarea { min-height: 108px; resize: vertical; }
form .btn { min-height: 42px; padding: .62rem 1rem; font-size: .9rem; }
form .small, form .hint { font-size: .8rem; line-height: 1.45; }
@media (min-width: 900px) {
  .container-narrow > .card:has(form) { max-width: 940px; margin-inline: auto; }
}
@media (max-width: 680px) {
  form.grid-2, form.grid-3, form .grid-2, form .grid-3 { grid-template-columns: 1fr; }
  form [style*="grid-column:1/-1"] { grid-column: auto !important; }
  .container-narrow > .card, .container-wide > .card { padding: 1rem; }
}


/* Course visual headers 20261116r14 */
.course-card { padding: 0 0 1rem; overflow: hidden; gap: .65rem; }
.course-card-visual { min-height: 150px; display: grid; place-items: center; background: linear-gradient(135deg, var(--cloud), #d9f3f0); border-bottom: 1px solid var(--line); }
.course-card-visual img { width: 104px; height: 104px; padding: 1.1rem; object-fit: contain; border-radius: 1.2rem; background: rgba(255,255,255,.92); box-shadow: 0 10px 22px rgba(15,39,63,.1); }
.course-card > h3, .course-card > .small, .course-card > .chip, .course-card > .course-card-actions { margin-left: 1rem; margin-right: 1rem; }
.course-card > h3 { font-size: 1.2rem; line-height: 1.28; margin-top: .35rem; min-height: 3.1rem; }
.course-card > .small { min-height: 2.4rem; }
@media (max-width: 560px) { .course-card-visual { min-height: 132px; } .course-card-visual img { width: 88px; height: 88px; } .course-card > h3 { font-size: 1.1rem; min-height: auto; } }


/* Warranty notes 20261116r15 */
.warranty-notes { background: var(--cloud); }
.warranty-notes .section-head { max-width: 760px; }
.warranty-notes .card { height: 100%; }
.warranty-notes ol, .warranty-notes ul { padding-left: 1.25rem; margin-bottom: 0; }
.warranty-notes li { margin-bottom: .7rem; }
.warranty-notes li:last-child { margin-bottom: 0; }


/* Bengali warranty mobile refresh 20261116r16 */
.warranty-notes { overflow: hidden; }
.warranty-notes .grid-2 { align-items: stretch; }
.warranty-notes .card { min-width: 0; }
.warranty-notes table, .warranty-results table { display: block; max-width: 100%; overflow-x: auto; }
@media (max-width: 680px) {
  html[lang="bn"] .warranty-notes h2 { font-size: clamp(1.45rem, 6vw, 2rem); line-height: 1.3; }
  html[lang="bn"] .warranty-notes h3 { font-size: 1.08rem; line-height: 1.35; }
  html[lang="bn"] .warranty-notes p, html[lang="bn"] .warranty-notes li { font-size: .92rem; line-height: 1.65; }
  .warranty-notes .grid-2 { grid-template-columns: 1fr; }
  .warranty-notes .card { padding: 1rem; }
  .warranty-notes ol, .warranty-notes ul { padding-left: 1.15rem; }
  .warranty-app, .warranty-form, .warranty-results { max-width: 100%; overflow: hidden; }
  .warranty-app input, .warranty-app select, .warranty-app button { max-width: 100%; }
}


/* Invoice notes 20261116r17 */
.invoice-notes { padding-top: 0; }
.invoice-notes .card { padding: 1.1rem 1.25rem; }
.invoice-notes h2 { font-size: 1.25rem; margin-top: 0; }
.invoice-notes ul { margin: 0; padding-left: 1.2rem; }


/* Important Notes bullets 20261116r18 */
.important-notes-list { list-style: disc; padding-left: 1.35rem; margin: 0; }
.important-notes-list li { display: list-item; margin-bottom: .75rem; line-height: 1.6; }
.important-notes-list li:last-child { margin-bottom: 0; }
@media (max-width: 680px) { .important-notes-list { padding-left: 1.15rem; } .important-notes-list li { margin-bottom: .65rem; } }


/* Unified warranty notes UI 20261116r19 */
.warranty-notes .container-narrow { max-width: 980px; }
.important-notes-card { max-width: 920px; margin-inline: auto; }
.important-notes-card h3 { margin-top: 0; }
.important-notes-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; list-style: disc; padding-left: 1.35rem; margin: 0; }
.important-notes-list li { display: list-item; margin: 0; padding: .85rem .9rem .85rem .15rem; line-height: 1.55; }
.important-notes-list li::marker { color: var(--accent); font-size: 1.05em; }
@media (max-width: 680px) {
  .important-notes-card { padding: 1rem; }
  .important-notes-list { grid-template-columns: 1fr; gap: .45rem; padding-left: 1.15rem; }
  .important-notes-list li { padding: .65rem .5rem .65rem .1rem; }
}


/* Tracking warranty integration 20261116r21 */
.tracking-warranty { background: var(--cloud); }
.tracking-warranty .section-head { max-width: 760px; }
.tracking-warranty #warranty-app > .card { margin-top: 1rem; }
@media print { .site-header, .site-footer, .tracking-warranty .section-head, .tracking-warranty form, .tracking-warranty .btn-group { display: none !important; } .tracking-warranty { background: #fff; }
}

/* ================= Responsive compatibility layer ================= */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { min-width: 0; overflow-x: hidden; }
img, svg, video, canvas, iframe { max-width: 100%; }
img, video { height: auto; }
.container, .section > .container, .hero > .container { min-width: 0; }
.grid, .hero > .container, .split, .two-col, .columns, .media-text { min-width: 0; }
.grid > *, .hero > .container > *, .split > *, .two-col > *, .columns > *, .media-text > * { min-width: 0; }
input, select, textarea, button { max-width: 100%; font: inherit; }
textarea { resize: vertical; }
pre, code { max-width: 100%; overflow-x: auto; }

@media (max-width: 900px) {
  .container { width: min(100% - 2rem, 1180px); }
  .hero > .container { grid-template-columns: minmax(0, 1fr); }
  .hero-art { min-height: 250px; }
  .split, .two-col, .media-text { grid-template-columns: minmax(0, 1fr) !important; }
  .columns { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .page-hero .container { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 1.25rem, 1180px); }
  .section { padding-block: clamp(2rem, 7vw, 3rem); }
  .hero { padding-block: 2.25rem 2.75rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 3rem); line-height: 1.08; }
  .hero-art { min-height: 190px; }
  .columns, .form-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .btn-row, .actions, .form-actions, .svc-foot { flex-wrap: wrap; }
  .btn-row > *, .actions > *, .form-actions > * { flex: 1 1 100%; }
  .card, .panel, .notice { max-width: 100%; }
  table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; }
  .mega { max-width: 100%; }
  .site-header .container { min-height: 60px; }
  .brand img { max-height: 38px; }
  .utility-strip .container { gap: .35rem .75rem; }
}

@media (max-width: 420px) {
  .container { width: calc(100% - 1rem); }
  .nav { padding: .75rem; }
  .nav a { white-space: normal; }
  .hero h1 { font-size: clamp(1.8rem, 10vw, 2.5rem); }
  .hero .lead { font-size: 1rem; }
  .lang-switch a { padding-inline: .5rem; }
}

/* Page-specific responsive safeguards */
@media (max-width: 900px) {
  [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="width:"] { width: auto !important; max-width: 100% !important; }
  [style*="min-width:"] { min-width: 0 !important; }
  .site-header .container, .site-footer .container { flex-wrap: wrap; }
  .service-grid, .service-cards, .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 700px) {
  .service-grid, .service-cards, .price-grid { grid-template-columns: minmax(0, 1fr) !important; }
  h1, h2, h3, h4, p, a, li { overflow-wrap: anywhere; }
  .table-wrap { width: 100%; overflow-x: auto; }
}

/* Dark-theme header and surface contrast */
:root[data-theme="dark"] .site-header,
:root[data-theme="dark"] .utility-strip { color: var(--fg); }
:root[data-theme="dark"] .nav a,
:root[data-theme="dark"] .brand span,
:root[data-theme="dark"] .lang-switch a,
:root[data-theme="dark"] .search-toggle,
:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .nav-toggle { color: var(--fg); }
:root[data-theme="dark"] .nav a:hover,
:root[data-theme="dark"] .nav a[aria-current="page"] { color: #8cece4; background: #123532; }
:root[data-theme="dark"] .nav .caret { color: var(--fg-muted); }
:root[data-theme="dark"] .mega a strong { color: var(--fg); }
:root[data-theme="dark"] .mega a span { color: var(--fg-muted); }
:root[data-theme="dark"] .mega a:hover { background: #162945; }
:root[data-theme="dark"] .lang-switch { border-color: var(--line-strong); }
:root[data-theme="dark"] .lang-switch a[aria-current="true"] { background: #e7f0ff; color: #0a1120; }
:root[data-theme="dark"] .search-toggle:hover,
:root[data-theme="dark"] .theme-toggle:hover,
:root[data-theme="dark"] .nav-toggle:hover { background: var(--card-bg-2); }
:root[data-theme="dark"] .site-search input,
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea { color: var(--fg); background: var(--card-bg); border-color: var(--line-strong); }
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder { color: var(--fg-faint); }
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .notice { color: var(--fg); }
:root[data-theme="dark"] .partner-shell .field { background: #16223a; border-color: var(--line-strong); }
:root[data-theme="dark"] .partner-shell .field:focus-within { background: #1b2d49; border-color: var(--teal-600); }
:root[data-theme="dark"] .partner-shell .field label,
:root[data-theme="dark"] .partner-shell .partner-help,
:root[data-theme="dark"] .partner-shell .partner-review dt { color: var(--fg-muted); }
:root[data-theme="dark"] .partner-shell .partner-review { background: #131f36; border-color: var(--line-strong); }

/* Final dark-mode header contrast override */
:root[data-theme="dark"] .site-header .nav a,
:root[data-theme="dark"] .site-header .nav a span,
:root[data-theme="dark"] .site-header .nav .caret,
:root[data-theme="dark"] .site-header .search-toggle,
:root[data-theme="dark"] .site-header .theme-toggle,
:root[data-theme="dark"] .site-header .nav-toggle,
:root[data-theme="dark"] .site-header .lang-switch a { color: #f5f8ff !important; }
:root[data-theme="dark"] .site-header .nav a:hover,
:root[data-theme="dark"] .site-header .nav a[aria-current="page"] { color: #91eee5 !important; background: #123b38 !important; }
:root[data-theme="dark"] .site-header .mega { background: #111d31 !important; border-color: #334761 !important; }
:root[data-theme="dark"] .site-header .mega a strong { color: #f5f8ff !important; }
:root[data-theme="dark"] .site-header .mega a span { color: #b6c5d8 !important; }

/* Keep the Services mega-menu fully inside the viewport */
@media (min-width: 1001px) {
  .nav > ul > li.has-menu { position: relative; }
  .nav > ul > li.has-menu > .mega { left: 0; right: auto; width: min(720px, calc(100vw - 1.5rem)); transform: translateY(6px); }
  .nav > ul > li.has-menu:hover > .mega,
  .nav > ul > li.has-menu:focus-within > .mega { transform: translateY(0); }
}
