/* ============================================================================
   E-LEC Electrical — styles.css
   Mobile-first, performance-conscious. Colours pulled from the E-LEC logo.
   ========================================================================== */

:root {
  /* Brand palette */
  --blue:        #1463d6;   /* E-LEC blue — primary CTA */
  --blue-bright: #2a7fff;   /* accent line / glow */
  --blue-soft:   #e6f0fc;   /* pastel blue */
  --navy:        #0d1b2e;   /* premium contrast sections */
  --navy-2:      #122742;

  --ink:    #141a22;        /* primary text */
  --muted:  #5a6573;        /* secondary text */
  --line:   #e3e8ef;        /* hairlines */
  --bg:     #ffffff;
  --bg-soft:#f3f6fb;        /* light grey sections */

  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 10px 30px rgba(13,27,46,.08);
  --shadow-lg:0 24px 60px rgba(13,27,46,.16);
  --maxw: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);

  /* Apple's typeface: San Francisco (SF Pro) via the system font stack — renders
     natively as SF Pro on macOS/iOS, with clean fallbacks elsewhere. SF Pro is
     Apple-proprietary, so it is referenced (not self-hosted) through -apple-system. */
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-h: 150px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(36px, 4.7vw, 62px); font-weight: 800; line-height: 1.05; letter-spacing: -0.055em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color:#fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }

.kicker { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.section__head { max-width: 760px; margin-bottom: 44px; }
.section__lead { color: var(--muted); font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 13px 24px; font-weight: 700; font-size: 13px; letter-spacing: .01em;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(20,99,214,.28); }
.btn--primary:hover { background: #1257bd; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--lg { padding: 16px 30px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Screen-reader-only text (visually hidden, still announced) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.link-arrow { display: inline-block; font-weight: 600; margin-top: 8px; }
button.link-arrow { background: none; border: 0; padding: 0; color: var(--blue); font-size: inherit; }
button.link-arrow:hover { text-decoration: underline; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #cfe0f5; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 16px; }
.topbar__hours { display: inline-flex; align-items: center; gap: 8px; }
.topbar__lic { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 600; color: #eaf2ff; }
.topbar__lic strong { color: #fff; letter-spacing: .02em; }
/* Licence takes priority in the bar; hours (also in the footer) drop first when space is tight. */
@media (max-width: 1200px){ .topbar__hours { display: none; } }
.topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: #43d17a; box-shadow: 0 0 0 3px rgba(67,209,122,.2); }
.topbar__right { display: flex; align-items: center; gap: 20px; }
.topbar__social { color: #cfe0f5; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.topbar__social:hover { color: #fff; text-decoration: none; }
.topbar__call { color: #fff; }
.topbar__ico { display: inline-grid; place-items: center; width: 15px; height: 15px; }
.topbar__ico svg { width: 15px; height: 15px; }
@media (max-width: 720px) { .topbar__social { display: none; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(13,27,46,.07); }
/* Two-tier masthead: logo on its own row, nav + buttons on the row beneath. */
.header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 14px 0 16px; }
/* Brand logo (transparent PNG, tight-cropped) — large, shrinks on scroll.
   Sized by HEIGHT with max-width:none so the global img{max-width:100%} reset
   can't collapse it against the flex-shrunk .brand anchor. */
.brand { flex: 0 0 100%; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 2px; }
.brand-logo { display: block; height: 96px; width: auto; max-width: none; object-fit: contain;
  transition: height .25s var(--ease); }
.header.is-scrolled .brand-logo { height: 80px; }
@media (max-width: 1050px) { .brand-logo { height: 84px; } }
@media (max-width: 720px) {
  :root { --header-h: 92px; }
  .brand-logo { height: 70px; }
  .header.is-scrolled .brand-logo { height: 62px; }
}
.nav { display: flex; gap: 20px; }
.nav a { color: var(--ink); font-weight: 600; font-size: 13px; position: relative; white-space: nowrap; }
.nav a::after { content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.nav a:hover { text-decoration: none; color: var(--blue); }
.nav a:hover::after { transform: scaleX(1); }
.header__cta { display: flex; gap: 8px; }
.btn--portal svg { flex: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .hamburger { display: flex; }
  /* below the two-tier breakpoint, collapse back to a single row */
  .header__inner { flex-wrap: nowrap; align-items: center; height: var(--header-h); padding: 0; }
  .brand { flex: 0 0 auto; border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
}
@media (min-width: 721px) and (max-width: 1080px) { :root { --header-h: 104px; } }

/* Mobile menu */
.mobile-menu { position: fixed; top: calc(var(--header-h) + 38px); left: 0; right: 0; z-index: 88; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 14px 20px 22px; }
.mobile-menu[hidden]{ display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { padding: 15px 6px; font-size: 1.1rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* ---------- Hero (light, two-tone) ---------- */
.hero { position: relative; background: #f7f9fc; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(20,99,214,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,99,214,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 60% 10%, #000 35%, transparent 80%);
          mask-image: radial-gradient(120% 90% at 60% 10%, #000 35%, transparent 80%);
}
.hero__bg::after { content:""; position:absolute; right:-12%; top:-20%; width:60%; height:120%;
  background: radial-gradient(circle at center, rgba(42,127,255,.10), transparent 62%); border-radius:50%; }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.18fr .82fr; gap: 44px; align-items: center; padding: clamp(48px, 7vw, 92px) 0; }
.hero__copy { max-width: 640px; }
.eyebrow { display:inline-flex; align-items:center; gap:14px; background:none; padding:0; border-radius:0;
  font-size:11px; font-weight:800; letter-spacing:.18em; text-transform:uppercase; color: var(--blue); margin-bottom:18px; }
.eyebrow__line { width: 46px; height: 3px; border-radius: 2px; background: var(--blue); }
.hero h1 { color: var(--ink); font-size: clamp(44px, 4.45vw, 64px); line-height: 1.05; letter-spacing: -0.055em; }
.hero h1 .hl { color: var(--blue); }
.hero__lead { font-size: 18px; color: #3a4452; max-width: 60ch; }
.hero__sub { color: var(--muted); font-size: 1rem; max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero__trust { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .88rem; color: var(--muted); }
.hero__trust strong { color: var(--ink); }
.hero__visual { position: relative; }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__visual { order: -1; max-width: 520px; }
}

/* ---------- Project Workflow dashboard ---------- */
.dash { position: relative; }
.dash__card {
  position: relative; background: linear-gradient(165deg, #0e1f3d, #0a1729);
  border: 1px solid rgba(120,160,220,.16); border-radius: 22px;
  padding: 22px 22px 18px; color: #cfe0f5; box-shadow: var(--shadow-lg);
}
.dash--lg .dash__card { padding: 26px 26px 22px; }
.dash__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.dash__brand { font-size: .74rem; font-weight: 700; letter-spacing: .14em; color: #7e93b4; }
.dash__brand b { color: #cfe0f5; }
.dash__badge { font-size: .68rem; font-weight: 800; letter-spacing: .12em; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(120,160,220,.4); color: #9fc2ff; white-space: nowrap; transition: color .3s, border-color .3s, background .3s; }
.dash__badge.is-done { color: #57e39a; border-color: rgba(87,227,154,.5); background: rgba(87,227,154,.08); }

.dash__stage { position: relative; aspect-ratio: 1 / .72; margin: 4px 0 12px; }
/* Atom — orbiting electrons around a glowing nucleus */
.dash__atom { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dash__atom .orbit { fill: none; stroke: #4aa0ff; stroke-width: 1.3; opacity: .4; }
.dash__atom .electron { fill: #e8f4ff; }
.dash__atom .atom__nucleus { animation: nucleus-breathe 3.6s ease-in-out infinite; transform-origin: 260px 180px; }
@keyframes nucleus-breathe { 0%,100% { opacity: .75; } 50% { opacity: 1; } }

.dash__core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 39%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(21,41,74,.72), rgba(11,26,48,.55) 72%);
  border: 1px solid rgba(120,160,220,.22); box-shadow: 0 0 0 10px rgba(63,155,255,.06), inset 0 0 34px rgba(63,155,255,.16);
  display: grid; place-content: center; text-align: center; gap: 2px;
  animation: nucleus-pulse 3.6s ease-in-out infinite; }
@keyframes nucleus-pulse {
  0%,100% { box-shadow: 0 0 0 10px rgba(63,155,255,.06), inset 0 0 30px rgba(63,155,255,.12); }
  50%     { box-shadow: 0 0 0 16px rgba(63,155,255,.10), inset 0 0 44px rgba(63,155,255,.24); }
}
.dash__corelabel { font-size: .6rem; letter-spacing: .22em; color: #7e93b4; }
.dash__count { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1; }
.dash__count b { display: inline-block; will-change: transform, opacity; }
.dash__count small { font-weight: 700; color: #7e93b4; font-size: .5em; }  /* 5.2:1 on card — AA */
.dash__steplabel, .dash__float strong { will-change: transform, opacity; }
.dash__steplabel { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #9fc2ff; }

.dash__float { position: absolute; background: #fff; color: var(--navy); border-radius: 13px; padding: 10px 14px;
  box-shadow: 0 16px 34px rgba(8,18,34,.4); display: flex; align-items: center; gap: 10px; max-width: 64%;
  transition: transform .3s var(--ease); }
.dash__float i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e5f8ee; color: #1c9c5b; font-style: normal; font-size: .8rem; flex: none; }
.dash__float strong { display: block; font-size: .86rem; line-height: 1.2; }
.dash__float span { font-size: .76rem; color: var(--muted); }
.dash__float--a { top: 2%; left: -6%; }
.dash__float--b { bottom: 8%; right: -5%; }

.dash__tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.dash__tab { background: rgba(120,160,220,.07); border: 1px solid rgba(120,160,220,.14); border-radius: 11px;
  padding: 10px 8px; transition: background .3s, border-color .3s; }
.dash__tab span { display: block; font-size: .64rem; color: #8298bd; letter-spacing: .08em; }  /* 4.9:1 on tab bg — AA */
.dash__tab b { font-size: .82rem; font-weight: 700; color: #aebfd9; }
.dash__tab.is-active { background: rgba(63,155,255,.16); border-color: rgba(63,155,255,.5); }
.dash__tab.is-active span { color: #9fc2ff; }
.dash__tab.is-active b { color: #fff; }
@media (max-width: 520px){ .dash__tab b { font-size: .72rem; } .dash__float { max-width: 58%; } }

/* ---------- Process (dark, interactive scroll) ---------- */
.section--dark { background: linear-gradient(180deg, #0b1830, #0e2142); color: #cfe0f5; }
.section__head--light h2 { color: #fff; }
.section__head--light .section__lead { color: #9fb4cd; }
.section--dark .kicker { color: #6fb0ff; }
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.flow__stage { position: sticky; top: calc(var(--header-h) + 28px); }
.flow__progress { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.flow__progress span { width: 28px; height: 4px; border-radius: 999px; background: rgba(120,160,220,.25); transition: background .3s; }
.flow__progress span.is-on { background: #3f9bff; }
.flow__steps { display: flex; flex-direction: column; }
.flow__step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center;
  border-left: 2px solid rgba(120,160,220,.18); padding-left: 28px; opacity: .35; transition: opacity .4s; }
.flow__step.is-active { opacity: 1; border-left-color: #3f9bff; }
.flow__no { font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: #6fb0ff; }
.flow__step h3 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin: 6px 0 10px; }
.flow__step p { color: #aebfd9; max-width: 46ch; margin: 0; }
@media (max-width: 880px){
  .flow { grid-template-columns: 1fr; gap: 8px; }
  .flow__stage { position: sticky; top: calc(var(--header-h) + 8px); z-index: 6; padding: 8px 0; background: linear-gradient(180deg, #0b1830 75%, transparent); }
  .flow__step { min-height: 56vh; }
}

/* ---------- Trust strip ---------- */
.trust { background: #fff; padding: clamp(40px,6vw,64px) 0; position: relative; z-index: 5; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s; }
.trust__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.trust__card h3 { margin-bottom: 6px; }
.trust__card p { color: var(--muted); margin: 0; font-size: .96rem; }
.trust__icon, .svc__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); margin-bottom: 16px; display: grid; place-items: center; color: var(--blue); }
.trust__icon svg, .svc__icon svg { width: 24px; height: 24px; }
@media (max-width: 880px) { .trust__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px) { .trust__grid { grid-template-columns: 1fr; } }

/* ---------- The E-LEC Standard ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pillar { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; background: #fff; transition: transform .2s var(--ease), border-color .2s; }
.pillar:hover { transform: translateY(-4px); border-color: var(--blue); }
.pillar__no { font-size: .82rem; font-weight: 800; color: var(--blue); letter-spacing: .06em; }
.pillar h3 { margin: 8px 0 0; font-size: 1.05rem; }
@media (max-width: 880px) { .pillars { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.svc-grid { display: grid; gap: 16px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.svc__head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: none; border: 0; text-align: left; }
.svc__title { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.svc__title strong { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.02em; }
.svc__title em { font-style: normal; color: var(--muted); font-size: .96rem; }
.svc__chev { width: 14px; height: 14px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s var(--ease); flex: none; }
.svc__head[aria-expanded="true"] .svc__chev { transform: rotate(-135deg); }
.svc__body { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); padding: 0 24px; }
.svc__body.is-open { padding-bottom: 24px; }
.svc__list { columns: 2; column-gap: 28px; margin: 6px 0 8px; padding-left: 18px; }
.svc__list li { margin-bottom: 6px; color: var(--ink); }
@media (max-width: 600px) { .svc__list { columns: 1; } .svc__title em { display:none; } }

/* ---------- Process timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 760px; }
.timeline::before { content:""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--blue), var(--blue-soft)); }
.tl { display: flex; gap: 22px; padding: 14px 0; position: relative; }
.tl__no { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; z-index: 1; box-shadow: 0 6px 16px rgba(20,99,214,.3); }
.tl__content h3 { margin-bottom: 2px; }
.tl__content p { color: var(--muted); margin: 0; }

/* ---------- Calculator ---------- */
.calc__card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 36px); max-width: 920px; margin: 0 auto; }
.calc__progress { margin-bottom: 26px; }
.calc__bar { height: 6px; background: var(--blue-soft); border-radius: 999px; overflow: hidden; }
.calc__bar span { display: block; height: 100%; width: 25%; background: var(--blue); border-radius: 999px; transition: width .35s var(--ease); }
.calc__steps { display: flex; justify-content: space-between; margin-top: 10px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.calc__steps .is-active { color: var(--blue); }
.calc__step { display: none; animation: fade .35s var(--ease); }
.calc__step.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.calc__q { font-size: 1.15rem; margin-bottom: 16px; }
.calc__q--sub { margin-top: 28px; }
.calc__help, .calc__nav + .calc__help { color: var(--muted); font-size: .92rem; margin-top: -6px; }
.calc__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }

/* Job grid */
.job-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.job-card { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 18px 12px; text-align: center; transition: border-color .18s, transform .18s var(--ease), background .18s; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.job-card:hover { transform: translateY(-3px); border-color: var(--blue-bright); }
.job-card.is-selected { border-color: var(--blue); background: var(--blue-soft); }
.job-card__ico { width: 34px; height: 34px; color: var(--blue); }
.job-card__label { font-weight: 600; font-size: .9rem; line-height: 1.25; }
@media (max-width: 820px){ .job-grid { grid-template-columns: repeat(3,1fr);} }
@media (max-width: 540px){ .job-grid { grid-template-columns: repeat(2,1fr);} }

/* Stepper */
.stepper-wrap { display: flex; align-items: center; gap: 18px; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; }
.stepper__btn { width: 56px; height: 56px; font-size: 1.6rem; background: var(--bg-soft); border: 0; color: var(--ink); }
.stepper__btn:hover { background: var(--blue-soft); color: var(--blue); }
.stepper__val { min-width: 64px; text-align: center; font-size: 1.5rem; font-weight: 800; }
.stepper__hint { color: var(--muted); margin: 0; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 11px 18px; font-weight: 600; font-size: .92rem; color: var(--ink); transition: all .16s; }
.chip:hover { border-color: var(--blue-bright); }
.chip.is-selected { border-color: var(--blue); background: var(--blue); color: #fff; }
.opt-set { border: 0; padding: 0; margin: 0 0 20px; }
.opt-set legend { font-weight: 700; font-size: .95rem; margin-bottom: 10px; padding: 0; }

/* Result */
.result__tag { display: inline-block; background: #fff4e0; color: #9a6300; border: 1px solid #f0d9ac; font-weight: 700; font-size: .82rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.result__range { font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.result__for { color: var(--muted); margin-top: 0; }
.result__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 22px 0; }
.result__col h4 { margin-bottom: 8px; }
.result__col ul { margin: 0; padding-left: 18px; color: var(--muted); }
.result__col li { margin-bottom: 6px; }
.result__note { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 16px 18px; font-size: .9rem; color: var(--muted); }
.result__note strong { color: var(--ink); }
.result__form { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; }
@media (max-width: 600px){ .result__cols { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > span { font-weight: 600; font-size: .92rem; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; padding: 14px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20,99,214,.14); outline: none; }
.field--file input { padding: 10px; }
.field__hint { font-size: .82rem; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px){ .field-row { grid-template-columns: 1fr; } }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); margin: 8px 0 18px; }
.check input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--blue); }
.check--required span::after { content: " *"; color: #c0392b; }
.form__status { font-size: .92rem; margin: 12px 0 0; min-height: 1.2em; }
.form__status.is-ok { color: #1c7a43; }
.form__status.is-err { color: #c0392b; }

/* ---------- Portal ---------- */
.portal__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.portal__docs { columns: 2; column-gap: 28px; list-style: none; padding: 0; margin: 0 0 22px; }
.portal__docs li { padding-left: 26px; position: relative; margin-bottom: 8px; color: var(--ink); }
.portal__docs li::before { content:"✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.portal__how { background: var(--bg-soft); border-left: 3px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 18px; margin-bottom: 24px; }
.portal__how h4 { margin-bottom: 6px; }
.portal__how p { margin: 0; color: var(--muted); font-size: .94rem; }
.portal__card { background: linear-gradient(160deg, var(--navy), var(--navy-2)); border-radius: 22px; padding: 34px; box-shadow: var(--shadow-lg); }
.qr { text-align: center; color: #cfe0f5; }
.qr__code { background: #fff; width: 168px; height: 168px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; }
.qr__cap { font-size: .9rem; margin: 0; }
@media (max-width: 820px){ .portal__grid { grid-template-columns: 1fr; } .portal__docs { columns: 1; } }

/* ---------- Reviews ---------- */
.reviews__inner { text-align: center; max-width: 720px; margin: 0 auto; }

/* ---------- Service area ---------- */
.area__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.area__map { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
#areaMap { width: 100%; height: 440px; background: #eef3f9; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-tooltip { font-weight: 700; font-size: 12px; color: var(--navy); border: 0; box-shadow: var(--shadow); border-radius: 8px; padding: 4px 9px; }
@media (max-width: 820px){ #areaMap { height: 340px; } }
@media (max-width: 820px){ .area__grid { grid-template-columns: 1fr; } }

/* ---------- Projects / case studies ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.proj { grid-column: span 1; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); display: flex; flex-direction: column; }
.proj:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.proj--featured { grid-column: span 2; }
.proj__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #dce9fb, #eef3f9); }
.proj--featured .proj__media { aspect-ratio: 21 / 9; }
.proj__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.proj:hover .proj__media img { transform: scale(1.05); }
.proj__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue); background:
  radial-gradient(120% 120% at 20% 10%, rgba(42,127,255,.18), transparent 55%),
  linear-gradient(135deg, #e7f0fd, #f2f6fc); }
.proj__ph svg { width: 46px; height: 46px; opacity: .6; }
.proj__ph span { position: absolute; bottom: 12px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.proj__tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(13,27,46,.82); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.proj__sample { position: absolute; top: 14px; right: 14px; z-index: 2; background: #fff4e0; color: #9a6300; border: 1px solid #f0d9ac; font-size: .68rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.proj__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.proj__loc { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.proj__body h3 { margin: 0; font-size: 1.25rem; }
.proj__summary { color: var(--muted); margin: 0; }
.proj__scope { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 0; }
.proj__scope span { font-size: .78rem; font-weight: 600; color: var(--ink); background: var(--blue-soft); border-radius: 999px; padding: 5px 11px; }
.proj__outcome { font-size: .9rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 12px; margin: 6px 0 0; }
.proj__outcome b { color: var(--blue); }
.proj-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 26px; }

/* Before / after slider */
.ba { position: absolute; inset: 0; overflow: hidden; cursor: ew-resize; user-select: none; touch-action: none; }
.ba__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__label { position: absolute; bottom: 12px; z-index: 3; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(13,27,46,.7); padding: 5px 10px; border-radius: 999px; }
.ba__label--before { left: 14px; }
.ba__label--after { right: 14px; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); z-index: 4; box-shadow: 0 0 0 1px rgba(13,27,46,.15); }
.ba__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center; color: var(--blue); font-weight: 800; }
.ba__grip::before { content: "‹ ›"; letter-spacing: -2px; }
@media (max-width: 720px){
  .proj-grid { grid-template-columns: 1fr; }
  .proj--featured { grid-column: span 1; }
  .proj--featured .proj__media { aspect-ratio: 16 / 10; }
}

/* ---------- Credentials strip ---------- */
.creds { background: var(--navy); color: #cfe0f5; }
.creds__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 30px; padding: 16px 20px; font-size: .9rem; }
.creds__item { display: inline-flex; align-items: center; gap: 8px; position: relative; }
.creds__item:not(:last-child)::after { content: ""; position: absolute; right: -16px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: rgba(159,194,224,.5); transform: translateY(-50%); }
.creds__item b { color: #fff; font-weight: 700; }
@media (max-width: 600px){ .creds__item:not(:last-child)::after { display: none; } }

/* ---------- Sectors ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sector { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.sector:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.sector__ico { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.sector__ico svg { width: 24px; height: 24px; }
.sector h3 { margin: 0 0 6px; font-size: 1.12rem; }
.sector p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 820px){ .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .sector-grid { grid-template-columns: 1fr; } }

/* ---------- Capability (navy band) ---------- */
.section--navy { background: linear-gradient(155deg, var(--navy), var(--navy-2)); color: #cfe0f5; }
.kicker--light { color: #6fb0ff; }
.cap__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cap__intro h2 { color: #fff; max-width: 14ch; }
.cap__intro p { color: #aebfd9; max-width: 46ch; }
.cap__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn--onnavy { background: transparent; color: #fff; border-color: rgba(159,194,224,.5); }
.btn--onnavy:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.cap__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cap__list li { display: flex; gap: 16px; align-items: flex-start; background: rgba(120,160,220,.08); border: 1px solid rgba(120,160,220,.16); border-radius: 14px; padding: 16px 18px; transition: border-color .2s, transform .2s var(--ease); }
.cap__list li:hover { border-color: rgba(63,155,255,.5); transform: translateX(4px); }
.cap__no { font-size: .8rem; font-weight: 800; color: #6fb0ff; letter-spacing: .06em; flex: none; padding-top: 2px; }
.cap__list strong { display: block; color: #fff; font-size: 1.05rem; }
.cap__list div span { color: #aebfd9; font-size: .92rem; }
@media (max-width: 820px){ .cap__grid { grid-template-columns: 1fr; gap: 32px; } .cap__intro h2 { max-width: none; } }

/* ---------- Standards + Compliance (cinematic expanding cards) ---------- */
.compliance { position: relative; overflow: hidden; background: #071b35; color: #fff; }
.compliance::before { content: ""; position: absolute; width: 760px; height: 760px; left: 50%; top: 58%;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(28,126,238,.18), transparent 66%); pointer-events: none; }
.compliance .section-heading { margin-bottom: 52px; position: relative; }
.compliance .split-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: end; }
.compliance .section-heading h2 { max-width: 760px; margin: 0; color: #fff; text-wrap: balance; }
.compliance .split-heading > p { margin: 0; color: #a7bdd2; font-size: 15px; }
.c-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: #83c7ff;
  font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.c-eyebrow > span { width: 46px; height: 3px; border-radius: 2px; background: currentColor; }

.compliance-grid { position: relative; display: flex; align-items: stretch; gap: 12px; min-height: 430px; }
.compliance-card { position: relative; isolation: isolate; flex: 1 1 0; min-width: 0; min-height: 430px;
  overflow: hidden; padding: 22px; border: 1px solid rgba(255,255,255,.13); border-radius: 22px;
  background: rgba(255,255,255,.035); cursor: pointer;
  transition: flex .7s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1), opacity .45s, filter .45s, border-color .45s, background .45s, box-shadow .55s; }
.compliance-card::before { content: ""; position: absolute; z-index: -1; inset: -35%;
  background: radial-gradient(circle at 70% 28%, rgba(66,165,255,.28), transparent 42%);
  opacity: 0; transform: scale(.75); transition: opacity .5s, transform .8s cubic-bezier(.16,1,.3,1); }
.compliance-card > span { color: #7fc2ff; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.compliance-card h3 { margin: 55px 0 12px; overflow-wrap: anywhere; font-size: 17px; letter-spacing: -.03em;
  transition: font-size .55s cubic-bezier(.16,1,.3,1), margin .55s cubic-bezier(.16,1,.3,1); }
/* The heading's disclosure button — visually identical to plain heading text */
.compliance-card h3 .compliance-toggle { background: none; border: 0; padding: 0; margin: 0;
  color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.compliance-card > p { color: #a8bdd1; font-size: 13px; transition: font-size .45s, max-width .45s, color .45s; }
.compliance-consumer { max-height: 0; overflow: hidden; opacity: 0; transform: translateY(24px);
  transition: max-height .65s cubic-bezier(.16,1,.3,1), opacity .4s .08s, transform .55s .08s; }
.compliance-consumer strong { display: block; margin: 24px 0 8px; color: #75c2ff; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.compliance-consumer p { max-width: 650px; margin: 0; color: #d9e9f7; font-size: 14px; line-height: 1.7; }
.compliance-consumer small { display: block; max-width: 650px; margin-top: 16px; padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.14); color: #9eb8ce; font-size: 11px; line-height: 1.6; }
.compliance-cue { position: absolute; left: 22px; bottom: 20px; color: #76bdff; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; transition: opacity .3s, transform .45s; }
.compliance-cue i { display: inline-block; margin-left: 4px; font-style: normal; transition: transform .45s; }

.compliance-grid:has(.compliance-card:hover) .compliance-card:not(:hover),
.compliance-grid:has(.compliance-card:focus-within) .compliance-card:not(:focus-within),
.compliance-grid:has(.compliance-card.active) .compliance-card:not(.active) { flex: .58; opacity: .48; filter: saturate(.45); }

.compliance-card:hover, .compliance-card:focus-within, .compliance-card.active {
  flex: 3.3; transform: translateY(-10px); border-color: rgba(91,181,255,.7);
  background: linear-gradient(145deg, rgba(33,127,235,.24), rgba(255,255,255,.055));
  box-shadow: 0 30px 70px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.08); outline: none; }
.compliance-card:hover::before, .compliance-card:focus-within::before, .compliance-card.active::before { opacity: 1; transform: scale(1); }
.compliance-card:hover h3, .compliance-card:focus-within h3, .compliance-card.active h3 { margin: 32px 0 10px; font-size: 27px; }
.compliance-card:hover > p, .compliance-card:focus-within > p, .compliance-card.active > p { max-width: 650px; color: #bdd2e5; font-size: 14px; }
.compliance-card:hover .compliance-consumer, .compliance-card:focus-within .compliance-consumer, .compliance-card.active .compliance-consumer { max-height: 340px; opacity: 1; transform: none; }
.compliance-card:hover .compliance-cue, .compliance-card:focus-within .compliance-cue, .compliance-card.active .compliance-cue { opacity: 0; transform: translateY(8px); }
.compliance-card:hover .compliance-cue i { transform: translate(4px, -4px); }

.compliance-note { max-width: 750px; margin-top: 24px; padding-left: 14px; border-left: 2px solid #42a5ff; color: #a7bdd2; font-size: 12px; }

@media (max-width: 1050px) {
  .compliance .split-heading { grid-template-columns: 1fr; gap: 22px; }
  .compliance-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
  .compliance-card { min-height: 300px; }
  .compliance-grid:has(.compliance-card:hover) .compliance-card:not(:hover),
  .compliance-grid:has(.compliance-card:focus-within) .compliance-card:not(:focus-within),
  .compliance-grid:has(.compliance-card.active) .compliance-card:not(.active) { opacity: .62; filter: saturate(.6); }
  .compliance-card:hover, .compliance-card:focus-within, .compliance-card.active { transform: translateY(-5px); }
  .compliance-card:hover .compliance-consumer, .compliance-card:focus-within .compliance-consumer, .compliance-card.active .compliance-consumer { max-height: 370px; }
}
@media (max-width: 720px) {
  .compliance-grid { grid-template-columns: 1fr; }
  .compliance-card { min-height: 230px; }
  .compliance-grid:has(.compliance-card.active) .compliance-card:not(.active) { opacity: .7; }
  .compliance-card:hover:not(.active) { transform: none; }
  .compliance-card:hover:not(.active) .compliance-consumer { max-height: 0; opacity: 0; transform: translateY(24px); }
  .compliance-card.active { min-height: 440px; transform: none; }
  .compliance-card.active h3 { margin: 28px 0 10px; font-size: 24px; }
  .compliance-card.active .compliance-consumer { max-height: 430px; }
}
@media (prefers-reduced-motion: reduce) {
  .compliance-card, .compliance-card::before, .compliance-consumer, .compliance-cue { transition: none; }
}

/* ---------- FAQ ---------- */
.acc { max-width: 800px; }
.acc__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 12px; overflow: hidden; }
.acc__item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary::after { content: "+"; font-size: 1.5rem; color: var(--blue); font-weight: 400; transition: transform .2s; }
.acc__item[open] summary::after { transform: rotate(45deg); }
.acc__body { padding: 0 22px 20px; color: var(--muted); }
.acc__body p { margin: 0; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
/* Trust reassurance block (near the enquiry form) */
.trust-assure { list-style: none; margin: 22px 0 4px; padding: 0; display: grid; gap: 12px; }
.trust-assure li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; line-height: 1.45; color: var(--ink); }
.trust-assure__ico { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; color: var(--blue); }
.trust-assure__ico svg { width: 20px; height: 20px; }
.form__reassure { margin: 12px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.contact__hours { margin-top: 20px; color: var(--muted); font-size: .9rem; max-width: 46ch; }
.contact__safety { margin-top: 24px; background: #fff6f3; border: 1px solid #f3d3c8; border-radius: var(--radius-sm); padding: 16px 18px; font-size: .9rem; color: #7a3a26; }
.contact__safety strong { color: #a23a1e; }
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px,3vw,32px); box-shadow: var(--shadow); }
@media (max-width: 860px){ .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b9cae0; padding: 56px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__logo { background: #fff; padding: 10px 14px; border-radius: 12px; height: auto; width: 170px; }
.footer__legalname { color: #fff; font-weight: 600; margin: 16px 0 8px; }
.footer__line { margin: 2px 0; font-size: .9rem; }
.footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer__col p { margin: 6px 0; font-size: .92rem; }
.footer__col a, .footer__brand a { color: #b9cae0; }
.footer__col a:hover, .footer__brand a:hover { color: #fff; }
.footer__socials { display: flex; gap: 16px; align-items: center; }
.footer__socials a { color: #cfe0f5; display: inline-flex; align-items: center; gap: 6px; }
.fsoc__ico { display: inline-grid; place-items: center; width: 15px; height: 15px; }
.fsoc__ico svg { width: 15px; height: 15px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 38px; padding-top: 20px; font-size: .85rem; color: #9db2cd; }
@media (max-width: 820px){ .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Sticky mobile bar ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none; grid-template-columns: 1fr 1.2fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(13,27,46,.1); padding-bottom: env(safe-area-inset-bottom); }
/* Two-button bars (service / location pages) split evenly instead of leaving an empty 3rd column. */
.mbar:has(.mbar__btn:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.mbar__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; background: #fff; padding: 11px 4px; font-size: .76rem; font-weight: 600; color: var(--ink); border: 0; }
.mbar__btn:hover { text-decoration: none; }
.mbar__btn--primary { background: var(--blue); color: #fff; }
.mbar__ico { width: 22px; height: 22px; display: grid; place-items: center; }
.mbar__ico svg { width: 22px; height: 22px; }
@media (max-width: 1000px){ .mbar { display: grid; } body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); } }

/* ---------- Drawer / modal ---------- */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer[hidden]{ display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(13,27,46,.5); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 22px 22px 0 0; padding: 22px 22px calc(26px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); transform: translateY(100%); transition: transform .3s var(--ease); max-height: 92vh; overflow-y: auto; }
.drawer.is-open .drawer__panel { transform: translateY(0); }
.drawer__grab { width: 44px; height: 5px; border-radius: 999px; background: var(--line); margin: 0 auto 14px; }
.drawer__x { position: absolute; top: 14px; right: 16px; background: var(--bg-soft); border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 1.4rem; color: var(--ink); }
.drawer__sub { color: var(--muted); margin-top: -2px; }
.drawer__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.copt { position: relative; display: flex; align-items: center; gap: 15px; border: 1px solid var(--line);
  border-radius: 16px; padding: 15px 18px; color: var(--ink); background: #fff;
  transition: transform .18s var(--ease), border-color .18s, box-shadow .18s; }
.copt:hover { border-color: var(--blue); text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.copt span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: .85rem; color: var(--muted); }
.copt strong { color: var(--ink); font-size: 1.02rem; font-weight: 700; }
.copt__ico { width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; transition: transform .18s var(--ease); }
.copt:hover .copt__ico { transform: scale(1.06); }
.copt__ico svg { width: 21px; height: 21px; }
/* Per-channel icon colours */
.copt[data-contact-method="whatsapp"] .copt__ico { background: #e4f8ec; color: #1fae54; }
.copt[data-contact-method="messenger"] .copt__ico { background: #e6f0ff; color: #0a7cff; }
.copt[data-contact-method="instagram"] .copt__ico { background: linear-gradient(45deg,#f9ce34,#ee2a7b 55%,#6228d7); color: #fff; }
.drawer__links { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.drawer__note { color: var(--muted); font-size: .78rem; margin: -6px 0 14px; }
.drawer__links a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink); transition: border-color .15s, color .15s, background .15s; }
.drawer__links a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); text-decoration: none; }
@media (max-width: 520px){ .drawer__opts { grid-template-columns: 1fr; } }

/* Centered modal variant on desktop */
@media (min-width: 720px){
  .drawer__panel { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, 92vw); transform: translate(-50%, -46%); border-radius: 22px; opacity: 0; transition: opacity .25s, transform .25s var(--ease); }
  .drawer.is-open .drawer__panel { transform: translate(-50%, -50%); opacity: 1; }
  .drawer__grab { display: none; }
  .drawer__panel--wide { width: min(640px, 92vw); }
}

/* ---------- Reveal animation (fallback if no GSAP) ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); }
.reveal-in [data-reveal], [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

/* =====================================================================
   PREMIUM MOTION LAYER  (preloader · scroll progress · cursor · 3D · micro)
   ===================================================================== */

/* Three.js ambient canvas in the hero */
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.hero__gl.is-ready { opacity: 1; }
.hero__bg { z-index: 0; }
.hero__inner { z-index: 2; }

/* Branded intro / preloader */
.preloader { animation: pre-kill 0s 3s forwards; }
@keyframes pre-kill { to { visibility: hidden; opacity: 0; } }
.preloader { position: fixed; inset: 0; z-index: 1000; background: #fff; display: grid; place-items: center; transition: opacity .5s ease, visibility .5s ease; }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.preloader__logo { width: 190px; height: auto; opacity: 0; transform: translateY(8px); animation: pre-in .6s var(--ease) forwards; }
.preloader__bar { display: block; width: 160px; height: 3px; border-radius: 999px; background: var(--blue-soft); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; animation: pre-load 1s ease forwards; }
@keyframes pre-in { to { opacity: 1; transform: none; } }
@keyframes pre-load { 0% { width: 0; } 100% { width: 100%; } }

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 95;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  transform: scaleX(0); transform-origin: 0 50%; }

/* Cursor follower (desktop, fine-pointer only — added by JS) */
.cursor { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; display: none; mix-blend-mode: multiply; }
body.has-cursor .cursor { display: block; }
.cursor__dot { position: fixed; top: 0; left: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--blue); }
.cursor__ring { position: fixed; top: 0; left: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 1.5px solid rgba(20,99,214,.45); transition: width .22s var(--ease), height .22s var(--ease), margin .22s var(--ease), background .22s, border-color .22s; }
body.cursor-hot .cursor__ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: rgba(20,99,214,.08); border-color: rgba(20,99,214,.7); }

/* Masked headline reveal (hero) — words rise from their own mask */
.hero h1 .line { display: inline-block; overflow: hidden; vertical-align: top; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); will-change: transform; }
/* If JS/GSAP never runs, don't leave the headline hidden */
.no-js .hero h1 .line > span { transform: none; }

/* Magnetic CTA wrapper keeps transforms tidy */
.btn[data-magnetic] { will-change: transform; }

/* Card tilt / lift polish */
.trust__card, .pillar, .svc, .job-card { will-change: transform; }
.trust__card, .pillar { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }

/* Reveal of grid children gets a soft stagger via JS; base hidden state for clip reveals */
[data-reveal-clip] { clip-path: inset(0 0 100% 0); opacity: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-reveal-clip] { clip-path: none !important; opacity: 1 !important; }
  .hero h1 .line > span { transform: none !important; }
  .hero__gl, .cursor { display: none !important; }
  .preloader { display: none !important; }
}
