/* Theme switch and dark-mode refinements. */
:root {
  --page-bg: #ffffff;
  --page-surface: #ffffff;
  --page-surface-soft: #f8f7f3;
  --page-text: #181818;
  --page-text-soft: #5b6670;
  --transition-layer: #10202a;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #07141b;
  --page-surface: #0d1d26;
  --page-surface-soft: #0a1820;
  --page-text: #edf3f5;
  --page-text-soft: #aebdc4;
  --transition-layer: #061119;
}

body {
  background: var(--page-bg);
  color: var(--page-text);
  transition: background-color 280ms ease, color 280ms ease;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(16,32,42,.14);
  border-radius: 50%;
  background: #fff9dc;
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 9px 24px rgba(16,32,42,.09), inset 0 -3px 0 rgba(16,32,42,.08);
  transition: transform 200ms ease, background 240ms ease, color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.theme-toggle:hover { transform: translateY(-2px) rotate(-3deg); }
.theme-toggle:active { transform: translateY(0) scale(.94); }
.theme-toggle:focus-visible { outline: 3px solid rgba(255,205,0,.34); outline-offset: 3px; }
.theme-toggle svg {
  width: 27px;
  height: 27px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle__bulb {
  fill: var(--yellow);
  stroke: var(--navy);
  filter: drop-shadow(0 0 7px rgba(255,205,0,.65));
  transition: fill 240ms ease, filter 240ms ease, transform 240ms ease;
  transform-origin: 16px 14px;
}
.theme-toggle__rays {
  opacity: 1;
  transform-origin: 16px 16px;
  transition: opacity 220ms ease, transform 320ms ease;
}
.theme-toggle__base { stroke-width: 2; }
.theme-toggle.is-switching .theme-toggle__rays { transform: rotate(35deg) scale(1.12); }

html[data-theme="dark"] .theme-toggle {
  border-color: rgba(255,255,255,.14);
  background: #102631;
  color: #98aab3;
  box-shadow: 0 9px 24px rgba(0,0,0,.25), inset 0 -3px 0 rgba(255,255,255,.06);
}
html[data-theme="dark"] .theme-toggle__bulb {
  fill: #243942;
  stroke: #9aabb3;
  filter: none;
  transform: scale(.93);
}
html[data-theme="dark"] .theme-toggle__rays { opacity: 0; transform: scale(.82); }

/* Active main navigation: text emphasis and shadow, not a filled pill. */
.primary-nav__link {
  background: transparent;
  border-color: transparent;
  transform-origin: center;
}
.primary-nav__link:hover,
.primary-nav__link:focus-visible {
  background: transparent;
  border-color: transparent;
  color: var(--gold-dark);
  transform: scale(1.025);
  text-shadow: 0 7px 18px rgba(16,32,42,.18);
}
.primary-nav__link.is-active,
.primary-nav__link[aria-current="page"] {
  background: transparent;
  border-color: transparent;
  color: var(--navy);
  transform: scale(1.055);
  text-shadow: 0 8px 18px rgba(16,32,42,.28), 0 0 22px rgba(255,205,0,.2);
  box-shadow: none;
}
.primary-nav__link.is-active::after,
.primary-nav__link[aria-current="page"]::after { display: none; }
.header-cta .btn.is-active {
  transform: scale(1.035);
  box-shadow: 0 14px 34px rgba(255,205,0,.34), 0 9px 22px rgba(16,32,42,.18);
}

/* Filter controls: selected state uses a lighter shade of the same colour. */
.filter-btn.is-active,
.filter-btn[aria-pressed="true"] {
  border-color: #213b49;
  background: var(--navy);
  color: #fff;
  box-shadow: inset 0 -3px 0 #294958, 0 10px 24px rgba(16,32,42,.14);
}
.service-nav a.is-active,
.service-nav a[aria-current="location"] {
  border-color: #355465;
  background: #1d3a49;
  color: #fff;
  box-shadow: inset 0 -3px 0 #365c6f, 0 10px 24px rgba(0,0,0,.18);
}
.service-nav a.is-active::after,
.service-nav a[aria-current="location"]::after { display: none; }
.service-nav a.is-active .service-nav__number,
.service-nav a[aria-current="location"] .service-nav__number {
  background: #284b5d;
  color: var(--yellow);
}

/* Keep roadmap connectors outside cards without clipping. */
.process-stage { overflow: visible; }
.process-stage::before { border-radius: 20px 20px 0 0; }

/* Dark mode surfaces. */
html[data-theme="dark"] .site-header {
  background: rgba(7,20,27,.96);
  border-bottom-color: rgba(255,255,255,.07);
}
html[data-theme="dark"] .site-header.is-scrolled { box-shadow: 0 14px 42px rgba(0,0,0,.34); }
html[data-theme="dark"] .site-logo img { filter: drop-shadow(0 3px 10px rgba(0,0,0,.25)); }
html[data-theme="dark"] .primary-nav__link { color: #dbe5e9; }
html[data-theme="dark"] .primary-nav__link:hover,
html[data-theme="dark"] .primary-nav__link:focus-visible { color: var(--yellow); text-shadow: 0 7px 18px rgba(0,0,0,.48); }
html[data-theme="dark"] .primary-nav__link.is-active,
html[data-theme="dark"] .primary-nav__link[aria-current="page"] {
  color: #fff;
  text-shadow: 0 8px 20px rgba(0,0,0,.72), 0 0 25px rgba(255,205,0,.32);
}
html[data-theme="dark"] .menu-toggle { background: #18303c; }
html[data-theme="dark"] .nav-backdrop { background: rgba(0,0,0,.72); }
html[data-theme="dark"] .primary-nav.is-open { background: #0b1b23; }

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] .contact-heading,
html[data-theme="dark"] .project-title,
html[data-theme="dark"] .news-title { color: #f1f6f7; }
html[data-theme="dark"] p,
html[data-theme="dark"] li { color: var(--page-text-soft); }
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .service-block__number,
html[data-theme="dark"] .process-stage__eyebrow,
html[data-theme="dark"] .partner-card__index { color: #ffcd00; }
html[data-theme="dark"] .section--warm,
html[data-theme="dark"] .values-section,
html[data-theme="dark"] .process-section,
html[data-theme="dark"] .contact-section { background: #091820; }
html[data-theme="dark"] .section:not(.section--navy):not(.section--warm),
html[data-theme="dark"] main { background-color: var(--page-bg); }

html[data-theme="dark"] .surface,
html[data-theme="dark"] .card,
html[data-theme="dark"] .business-card,
html[data-theme="dark"] .service-block .split,
html[data-theme="dark"] .process-stage,
html[data-theme="dark"] .about-fact,
html[data-theme="dark"] .integrator-panel,
html[data-theme="dark"] .integrator-card,
html[data-theme="dark"] .mission-card:not(.mission-card--dark),
html[data-theme="dark"] .partner-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .detail-fact,
html[data-theme="dark"] .article-sidebar__box,
html[data-theme="dark"] .cert-image {
  border-color: #233640;
  background: var(--page-surface);
  color: var(--page-text);
  box-shadow: 0 18px 46px rgba(0,0,0,.2);
}
html[data-theme="dark"] .partner-card { background: linear-gradient(150deg, #0e202a, #14272f); }
html[data-theme="dark"] .business-card p,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .contact-card small,
html[data-theme="dark"] .article-sidebar__box,
html[data-theme="dark"] .detail-fact span,
html[data-theme="dark"] .text-muted { color: var(--page-text-soft); }
html[data-theme="dark"] .contact-card strong,
html[data-theme="dark"] .detail-fact strong,
html[data-theme="dark"] .btn--text { color: #f1f6f7; }
html[data-theme="dark"] .service-block:nth-of-type(even) { background: #0a1921; }
html[data-theme="dark"] .service-block__media,
html[data-theme="dark"] .image-panel,
html[data-theme="dark"] .card__image,
html[data-theme="dark"] .business-card__media { background: #10232c; }
html[data-theme="dark"] .service-block__media--contain { background: #d9e0e3; }
html[data-theme="dark"] .inline-list li { background: #122630; color: #cad6db; }
html[data-theme="dark"] .value-item { border-color: rgba(255,255,255,.08); }

html[data-theme="dark"] .filter-btn {
  border-color: #29404b;
  background: #10232c;
  color: #dce6ea;
}
html[data-theme="dark"] .filter-btn:hover { background: #17303c; }
html[data-theme="dark"] .filter-btn.is-active,
html[data-theme="dark"] .filter-btn[aria-pressed="true"] {
  border-color: #436575;
  background: #1b3b4b;
  color: #fff;
  box-shadow: inset 0 -3px 0 #31586b, 0 11px 28px rgba(0,0,0,.25);
}
html[data-theme="dark"] .project-search input,
html[data-theme="dark"] .news-search input,
html[data-theme="dark"] .form-field input,
html[data-theme="dark"] .form-field select,
html[data-theme="dark"] .form-field textarea {
  border-color: #304650;
  background: #0a1820;
  color: #eef4f6;
}
html[data-theme="dark"] .form-field input:focus,
html[data-theme="dark"] .form-field select:focus,
html[data-theme="dark"] .form-field textarea:focus {
  background: #10232c;
}
html[data-theme="dark"] .form-field label { color: #e7eef1; }
html[data-theme="dark"] .checkbox input { border-color: #4e626b; background: #0b1921; }
html[data-theme="dark"] .checkbox input:checked { background: var(--yellow); border-color: var(--yellow); }
html[data-theme="dark"] .contact-card__icon { background: #183540; color: var(--yellow); }
html[data-theme="dark"] .badge { background: #3b3518; color: #ffe783; }
html[data-theme="dark"] .badge--green { background: #123a2a; color: #9de4bf; }
html[data-theme="dark"] .notice { background: #282511; color: #f5e9aa; }

html[data-theme="dark"] .btn--secondary {
  border-color: #3b515b;
  background: #10232c;
  color: #f1f6f7;
}
html[data-theme="dark"] .btn--secondary:hover { border-color: #6d8996; }
html[data-theme="dark"] .cta-band { background: #ffcd00; }
html[data-theme="dark"] .cta-band h2,
html[data-theme="dark"] .cta-band p { color: #10202a; }
html[data-theme="dark"] .site-footer { border-top: 1px solid rgba(255,255,255,.06); }

@media (max-width: 920px) {
  .theme-toggle { width: 46px; height: 46px; }
  .theme-toggle svg { width: 25px; height: 25px; }
  html[data-theme="dark"] .primary-nav { background: #0b1b23; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .theme-toggle__bulb,
  .theme-toggle__rays,
  body { transition: none; }
}

.primary-nav__link:active { transform: scale(.94); }
.primary-nav__link.is-active:active,
.primary-nav__link[aria-current="page"]:active { transform: scale(.985); }

@media (max-width: 920px) {
  .primary-nav__link--contact {
    background: var(--yellow);
    color: var(--navy);
    text-shadow: none;
  }
  .primary-nav__link--contact:hover,
  .primary-nav__link--contact:focus-visible {
    background: #ffe05d;
    color: var(--navy);
  }
  .primary-nav__link--contact.is-active,
  .primary-nav__link--contact[aria-current="page"] {
    background: var(--yellow);
    color: var(--navy);
    box-shadow: 0 12px 30px rgba(255,205,0,.22);
  }
}


/* V8: refined navigation emphasis and minimal energy toggle. */
.theme-toggle {
  width: 46px;
  height: 46px;
  margin-left: 14px;
  margin-right: 2px;
  border-color: rgba(16,32,42,.12);
  background: rgba(255,205,0,.11);
  box-shadow: 0 8px 20px rgba(16,32,42,.08);
}
.theme-toggle:hover {
  transform: translateY(-1px) scale(1.035);
  background: rgba(255,205,0,.17);
  box-shadow: 0 11px 25px rgba(16,32,42,.12);
}
.theme-toggle svg {
  width: 30px;
  height: 30px;
}
.theme-toggle__bulb {
  fill: var(--yellow);
  stroke: var(--navy);
  filter: drop-shadow(0 0 5px rgba(255,205,0,.56));
  transform-origin: 20px 19px;
}
.theme-toggle__rays {
  opacity: 1;
  transform: scale(1);
  transform-origin: 20px 20px;
  transition: opacity 180ms ease, transform 300ms cubic-bezier(.2,.8,.2,1);
}
.theme-toggle.is-switching .theme-toggle__rays {
  transform: rotate(22deg) scale(1.08);
}
html[data-theme="dark"] .theme-toggle {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}
html[data-theme="dark"] .theme-toggle__bulb {
  fill: #243942;
  stroke: #91a4ad;
  filter: none;
  transform: scale(.94);
}
html[data-theme="dark"] .theme-toggle__rays {
  opacity: 0;
  visibility: hidden;
  transform: scale(.72);
}

.primary-nav__link {
  position: relative;
  z-index: 0;
  transition: color 190ms ease, transform 190ms cubic-bezier(.2,.8,.2,1), text-shadow 190ms ease, filter 190ms ease;
}
.primary-nav__link::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14px 8px 10px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(16,32,42,.16), rgba(16,32,42,0) 72%);
  filter: blur(7px);
  opacity: 0;
  transform: scale(.72);
  transition: opacity 190ms ease, transform 190ms cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.primary-nav__link:hover,
.primary-nav__link:focus-visible {
  transform: scale(1.045);
}
.primary-nav__link:hover::before,
.primary-nav__link:focus-visible::before {
  opacity: .55;
  transform: scale(1);
}
.primary-nav__link.is-active,
.primary-nav__link[aria-current="page"] {
  font-weight: 800;
  letter-spacing: .005em;
  transform: scale(1.075);
  filter: drop-shadow(0 7px 8px rgba(16,32,42,.24));
  text-shadow: 0 0 18px rgba(255,205,0,.24);
}
.primary-nav__link.is-active::before,
.primary-nav__link[aria-current="page"]::before {
  opacity: .82;
  transform: scale(1.08);
}
.primary-nav__link:active {
  transform: scale(.96);
}
.primary-nav__link.is-active:active,
.primary-nav__link[aria-current="page"]:active {
  transform: scale(1.015);
}
html[data-theme="dark"] .primary-nav__link::before {
  background: radial-gradient(ellipse at center, rgba(0,0,0,.72), rgba(0,0,0,0) 72%);
}
html[data-theme="dark"] .primary-nav__link.is-active,
html[data-theme="dark"] .primary-nav__link[aria-current="page"] {
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.72));
  text-shadow: 0 0 20px rgba(255,205,0,.32);
}

/* The previous side connectors were decorative and have been removed. */
.process-stage::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 1120px) {
  .theme-toggle { margin-left: 9px; }
}

@media (max-width: 920px) {
  .theme-toggle {
    width: 44px;
    height: 44px;
    margin-left: auto;
    margin-right: 4px;
  }
  .theme-toggle svg { width: 28px; height: 28px; }
  .primary-nav__link.is-active,
  .primary-nav__link[aria-current="page"] {
    transform: scale(1.025);
  }
  .primary-nav__link.is-active::before,
  .primary-nav__link[aria-current="page"]::before {
    opacity: .52;
    transform: scale(1);
  }
}

/* V9: mobile navigation, fixed support controls and dark-mode contrast. */
.mobile-theme-item { display: none; }
.theme-toggle--desktop { display: inline-grid; }
.theme-toggle__icon { display: grid; place-items: center; flex: 0 0 auto; }
.theme-toggle__label { font-family: var(--font-display); font-size: .94rem; font-weight: 750; }

.whatsapp-fab {
  z-index: 1350;
  opacity: 1 !important;
  visibility: visible !important;
  isolation: isolate;
  mix-blend-mode: normal;
  filter: none;
}
.whatsapp-fab__icon svg { width: 22px; height: 22px; display: block; }

.filter-scroll-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.filter-scroll-btn {
  display: none;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(16,32,42,.08);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.filter-scroll-btn svg { width: 19px; height: 19px; }
.filter-scroll-btn:hover { transform: translateY(-1px); background: var(--gray-100); }
.filter-scroll-btn:disabled { opacity: .32; cursor: default; transform: none; }

html[data-theme="dark"] .about-fact strong { color: #f5f8f9; }
html[data-theme="dark"] .about-fact span,
html[data-theme="dark"] .card__meta,
html[data-theme="dark"] .section-head p,
html[data-theme="dark"] .lead,
html[data-theme="dark"] .service-block p,
html[data-theme="dark"] .process-stage p:last-child { color: #b9c8ce; }

/* Contact information stays light and readable even when the page is dark. */
html[data-theme="dark"] .contact-card {
  border-color: #b8c5ca;
  background: #d7dfe2;
  color: #10202a;
  box-shadow: 0 15px 36px rgba(0,0,0,.2);
}
html[data-theme="dark"] .contact-card:hover {
  border-color: #9eafb6;
  background: #e0e6e8;
}
html[data-theme="dark"] .contact-card small { color: #586970; }
html[data-theme="dark"] .contact-card strong { color: #10202a; }
html[data-theme="dark"] .contact-card__icon {
  background: #eef2f3;
  color: #10202a;
}
html[data-theme="dark"] .contact-card[href*="maps"] .contact-card__icon {
  background: #10202a;
  color: var(--yellow);
}
html[data-theme="dark"] .filter-scroll-btn {
  border-color: #36505d;
  background: #132731;
  color: #f2f6f7;
  box-shadow: 0 7px 18px rgba(0,0,0,.24);
}

@media (max-width: 920px) {
  .theme-toggle--desktop { display: none !important; }
  .mobile-theme-item { display: block; margin-top: 7px; }
  .theme-toggle--mobile {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    width: 100%;
    height: auto;
    min-height: 54px;
    margin: 0;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255,205,0,.1);
    box-shadow: none;
  }
  .theme-toggle--mobile svg { width: 29px; height: 29px; }
  html[data-theme="dark"] .theme-toggle--mobile { background: #142a35; }

  .filter-toolbar { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; }
  .filter-scroll-shell { width: 100%; }
  .filter-scroll-btn { display: grid; }
  .filter-group {
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 3px 1px 7px;
  }
  .filter-group::-webkit-scrollbar { display: none; }
  .filter-btn { flex: 0 0 auto; }
  .project-search,
  .news-search { width: 100%; }

  /* All six service selectors remain visible on phones and tablets. */
  .service-nav__inner {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 6px;
    width: min(calc(100% - 20px), var(--container));
    overflow: visible;
    padding: 9px 0;
  }
  .service-nav a {
    min-width: 0;
    min-height: 48px;
    justify-content: center;
    padding: 5px;
    border-radius: 12px;
  }
  .service-nav__label { display: none; }
  .service-nav__number {
    width: 35px;
    height: 35px;
    margin: 0;
    font-size: .76rem;
  }
}

@media (max-width: 680px) {
  /* The six company figures fit in a compact 2 × 3 grid without swiping. */
  .stats-band { padding: 8px 0; }
  .stats-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    overflow: visible;
    scroll-snap-type: none;
  }
  .stat {
    flex: initial;
    min-width: 0;
    min-height: 122px;
    padding: 18px 15px;
    border: 0;
    border-right: 1px solid rgba(255,255,255,.11);
    border-bottom: 1px solid rgba(255,255,255,.11);
  }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .stat:first-child { border-left: 0; }
  .stat__value { font-size: clamp(2rem, 10vw, 2.75rem); }
  .stat__label { margin-top: 8px; padding-bottom: 10px; font-size: .76rem; line-height: 1.3; }
  .stat::after { left: 15px; bottom: 12px; width: 27px; }
  .stats-nav { display: none !important; }

  .whatsapp-fab {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    justify-content: center;
  }
  .whatsapp-fab__icon {
    width: 34px;
    height: 34px;
    background: transparent;
  }
  .whatsapp-fab__icon svg { width: 27px; height: 27px; }

  .filter-scroll-btn { width: 40px; height: 40px; }
  .filter-btn { min-height: 44px; padding-inline: 15px; }
}

/* V10: dark-mode version of the muted energy form surface. */
html[data-theme="dark"] .contact-form {
  border-color: #35515c;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 205, 0, .09), transparent 32%),
    linear-gradient(145deg, #17303a 0%, #112731 58%, #182f38 100%);
  box-shadow: 0 26px 64px rgba(0,0,0,.3);
}
html[data-theme="dark"] .contact-form::before {
  background: linear-gradient(90deg, #6f8b98 0 34%, var(--yellow) 34% 58%, rgba(255,205,0,0) 88%);
}
html[data-theme="dark"] .contact-form::after {
  border-color: rgba(255,255,255,.055);
  box-shadow: 0 0 0 34px rgba(255,255,255,.018), 0 0 0 68px rgba(255,205,0,.012);
}
html[data-theme="dark"] .contact-form .form-field input,
html[data-theme="dark"] .contact-form .form-field select,
html[data-theme="dark"] .contact-form .form-field textarea {
  border-color: #405b65;
  background: rgba(7, 22, 29, .76);
  color: #eef5f6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
html[data-theme="dark"] .contact-form .form-field input:hover,
html[data-theme="dark"] .contact-form .form-field select:hover,
html[data-theme="dark"] .contact-form .form-field textarea:hover { border-color: #59737d; }
html[data-theme="dark"] .contact-form .form-field input:focus,
html[data-theme="dark"] .contact-form .form-field select:focus,
html[data-theme="dark"] .contact-form .form-field textarea:focus {
  border-color: #7c98a3;
  background: #0b2029;
  box-shadow: 0 0 0 4px rgba(124,152,163,.13), 0 9px 24px rgba(0,0,0,.18);
}

/* V10 mobile service selector overrides the earlier single-row layout. */
@media (max-width: 920px) {
  .service-nav {
    position: relative;
    top: auto;
    overflow: visible;
    padding-block: 11px;
  }
  .service-nav__inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    width: min(calc(100% - 24px), var(--container));
    padding: 0;
  }
  .service-nav a {
    min-width: 0;
    min-height: 72px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 8px 7px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 7px 18px rgba(0,0,0,.1);
  }
  .service-nav__number {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    margin: 0;
    font-size: .69rem;
  }
  .service-nav .service-nav__label--full { display: none; }
  .service-nav .service-nav__label--compact {
    display: block;
    max-width: 100%;
    white-space: normal;
    font-size: .72rem;
    line-height: 1.13;
    text-wrap: balance;
  }
}

@media (max-width: 430px) {
  .service-nav__inner { gap: 7px; width: min(calc(100% - 16px), var(--container)); }
  .service-nav a { min-height: 70px; padding-inline: 4px; }
  .service-nav .service-nav__label--compact { font-size: .67rem; }
}

/* V14: contrast-safe cards in both colour modes. */
:root {
  --light-card-title: #10202a;
  --light-card-copy: #46565e;
}

/* The five operating steps intentionally remain light in dark mode. */
.process-step {
  color: var(--light-card-title);
}
.process-step h3 {
  color: var(--light-card-title);
}
.process-step p {
  color: var(--light-card-copy);
}
html[data-theme="dark"] .process-step {
  border-color: #cbd4d1;
  background: #f4f5f1;
  color: var(--light-card-title);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}
html[data-theme="dark"] .process-step h3 {
  color: var(--light-card-title);
}
html[data-theme="dark"] .process-step p {
  color: #425159;
}
html[data-theme="dark"] .process-step::before {
  color: #ffcd00;
}

/* Light partnership cards sit inside a navy section: keep their own text dark. */
.section--navy .partner-card {
  color: var(--light-card-title);
}
.section--navy .partner-card h3 {
  color: var(--light-card-title);
}
.section--navy .partner-card p {
  color: var(--light-card-copy);
}
.section--navy > .container > .section-head h2,
.section--navy > .container > .section-head h3 {
  color: #ffffff;
}
.section--navy > .container > .section-head p {
  color: rgba(255, 255, 255, .78);
}
html[data-theme="dark"] .section--navy .partner-card {
  color: #f1f6f7;
}
html[data-theme="dark"] .section--navy .partner-card h3 {
  color: #f1f6f7;
}
html[data-theme="dark"] .section--navy .partner-card p {
  color: #bdcbd1;
}

/* Explicit component colours prevent global theme rules from reducing contrast. */
.card h2,
.card h3,
.business-card h3,
.team-card h3,
.difference-card h3,
.municipality-card h3,
.detail-fact strong,
.article-sidebar__box h2,
.article-sidebar__box h3 {
  color: var(--navy);
}
.card p,
.business-card p,
.team-card p,
.difference-card p,
.municipality-card p,
.detail-fact span,
.article-sidebar__box p {
  color: var(--ink-soft);
}
html[data-theme="dark"] .card h2,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .business-card h3,
html[data-theme="dark"] .team-card h3,
html[data-theme="dark"] .difference-card h3,
html[data-theme="dark"] .municipality-card h3,
html[data-theme="dark"] .detail-fact strong,
html[data-theme="dark"] .article-sidebar__box h2,
html[data-theme="dark"] .article-sidebar__box h3 {
  color: #f1f6f7;
}
html[data-theme="dark"] .card p,
html[data-theme="dark"] .business-card p,
html[data-theme="dark"] .team-card p,
html[data-theme="dark"] .difference-card p,
html[data-theme="dark"] .municipality-card p,
html[data-theme="dark"] .detail-fact span,
html[data-theme="dark"] .article-sidebar__box p {
  color: #b9c8ce;
}

/* Form hints, metadata and secondary copy remain readable. */
.card__meta,
.form-field small,
.form-hint,
.text-muted {
  color: #526169;
}
html[data-theme="dark"] .card__meta,
html[data-theme="dark"] .form-field small,
html[data-theme="dark"] .form-hint,
html[data-theme="dark"] .text-muted {
  color: #b9c8ce;
}

/* Light-theme accent text uses a deeper gold for accessible contrast. */
html:not([data-theme="dark"]) .eyebrow,
html:not([data-theme="dark"]) .process-step::before,
html:not([data-theme="dark"]) .partner-card__index,
html:not([data-theme="dark"]) .business-card__number,
html:not([data-theme="dark"]) .difference-card > span {
  color: #ffcd00;
}
html:not([data-theme="dark"]) .service-block__number {
  color: #ffcd00;
  background: #fff0a6;
}

/* Gold accents on dark photographic/navy surfaces remain bright. */
html:not([data-theme="dark"]) .page-hero .eyebrow,
html:not([data-theme="dark"]) .about-hero .eyebrow,
html:not([data-theme="dark"]) .hero-slider .eyebrow,
html:not([data-theme="dark"]) .section--navy .eyebrow,
html:not([data-theme="dark"]) .integrator-panel .eyebrow {
  color: #ffdc4d;
}
html[data-theme="dark"] .eyebrow {
  color: #ffcd00;
}


/* V19: official Energyco lamp artwork for the theme switch. */
.theme-toggle__icon {
  width: 24px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.theme-toggle__lamp {
  display: block;
  width: 24px;
  height: 36px;
  background: center / contain no-repeat url("../img/icons/lamp-light.png");
  transform-origin: center;
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), filter 220ms ease, opacity 180ms ease;
  filter: drop-shadow(0 0 7px rgba(255,205,0,.34));
}
.theme-toggle:hover .theme-toggle__lamp {
  transform: translateY(-1px) scale(1.055);
  filter: drop-shadow(0 0 10px rgba(255,205,0,.48));
}
.theme-toggle.is-switching .theme-toggle__lamp {
  background-image: url("../img/icons/lamp-switching.png");
  transform: rotate(8deg) scale(.92);
  filter: none;
}
html[data-theme="dark"] .theme-toggle__lamp {
  background-image: url("../img/icons/lamp-dark.png");
  filter: drop-shadow(0 0 5px rgba(255,255,255,.14));
}
html[data-theme="dark"] .theme-toggle:hover .theme-toggle__lamp {
  filter: drop-shadow(0 0 8px rgba(255,255,255,.24));
}
.theme-toggle > .theme-toggle__icon {
  width: 24px;
  height: 36px;
}
@media (max-width: 920px) {
  .theme-toggle--mobile .theme-toggle__icon {
    width: 23px;
    height: 37px;
  }
  .theme-toggle--mobile .theme-toggle__lamp {
    width: 23px;
    height: 37px;
  }
}

/* V20: compact theme switch with detached light rays. */
.theme-toggle--desktop {
  width: 43px;
  height: 43px;
  margin-left: 5px;
}
.theme-toggle--desktop .theme-toggle__icon {
  position: relative;
  width: 34px;
  height: 38px;
  isolation: isolate;
}
.theme-toggle--desktop .theme-toggle__icon::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 43%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -2deg,
    rgba(232, 185, 35, .92) 0deg 5deg,
    transparent 5deg 45deg
  );
  -webkit-mask: radial-gradient(circle, transparent 0 16px, #000 17px 21px, transparent 22px);
  mask: radial-gradient(circle, transparent 0 16px, #000 17px 21px, transparent 22px);
  opacity: .9;
  pointer-events: none;
  transition: opacity 180ms ease, transform 280ms ease;
}
.theme-toggle--desktop .theme-toggle__lamp {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 31px;
  filter: drop-shadow(0 0 5px rgba(255,205,0,.28));
}
.theme-toggle--desktop:hover .theme-toggle__icon::before {
  transform: translate(-50%, -50%) rotate(9deg) scale(1.06);
}
.theme-toggle--desktop.is-switching .theme-toggle__icon::before {
  opacity: .35;
  transform: translate(-50%, -50%) rotate(24deg) scale(.88);
}
html[data-theme="dark"] .theme-toggle--desktop .theme-toggle__icon::before {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.7);
}
html[data-theme="dark"] .theme-toggle--desktop .theme-toggle__lamp {
  filter: none;
}

@media (max-width: 920px) {
  .theme-toggle--mobile .theme-toggle__icon {
    position: relative;
    width: 32px;
    height: 38px;
    isolation: isolate;
  }
  .theme-toggle--mobile .theme-toggle__icon::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 43%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: repeating-conic-gradient(from -2deg, rgba(232,185,35,.9) 0deg 5deg, transparent 5deg 45deg);
    -webkit-mask: radial-gradient(circle, transparent 0 15px, #000 16px 20px, transparent 21px);
    mask: radial-gradient(circle, transparent 0 15px, #000 16px 20px, transparent 21px);
    opacity: .88;
    pointer-events: none;
    transition: opacity 180ms ease, transform 280ms ease;
  }
  .theme-toggle--mobile .theme-toggle__lamp {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 31px;
  }
  html[data-theme="dark"] .theme-toggle--mobile .theme-toggle__icon::before {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle__icon::before { transition: none !important; }
}
