/* ==========================================================================
   Nexus HVAC Solutions — site styles
   Shared by the static site (index.html) and the WordPress theme.
   ========================================================================== */

:root {
  --red: #D6212A;
  --red-deep: #B3151E;
  --blue: #00A0DA;
  --blue-deep: #0082B4;
  --blue-light: #4CC3EF;
  --blue-tint: #EAF6FC;
  --navy: #0A1628;
  --navy-2: #0F2038;
  --ink: #0B1424;
  --text: #445065;
  --mute: #6B7588;
  --line: #E2E7EE;
  --soft: #F4F6F9;
  --white: #FFFFFF;

  --font-display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --header-h: 88px;
  --gutter: clamp(20px, 4vw, 40px);
  --frame: clamp(0px, 1.2vw, 16px);
  --shadow: 0 1px 2px rgba(11, 20, 36, .04), 0 10px 28px -14px rgba(11, 20, 36, .16);
  --shadow-lg: 0 34px 64px -32px rgba(11, 20, 36, .38);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 110%;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--ink);
}
p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 10vw, 136px) 0; }
.bg-soft { background: var(--soft); }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-box { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-tint); color: var(--blue-deep); }
.ic-box .ic { width: 22px; height: 22px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12.5px/1 var(--font-body);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink);
}
.eyebrow b { font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; color: var(--red); }
.eyebrow i { width: 28px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--red) 50%, var(--blue) 50%); }
.on-dark .eyebrow, .eyebrow.light { color: #fff; }

.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2.1rem, 1.3rem + 2.9vw, 3.6rem); max-width: 17ch; }
.section-head.split { grid-template-columns: 1.15fr .85fr; align-items: end; gap: 48px; }
.section-head.center { justify-items: center; text-align: center; }
.section-head.center h2 { max-width: 20ch; }
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.6; color: var(--text); max-width: 52ch; }
.accent { color: var(--blue-deep); }
.on-dark .accent { color: var(--blue-light); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px;
  border: 1.5px solid var(--bd); border-radius: var(--r-sm);
  background: var(--bg); color: var(--fg);
  font: 600 15.5px/1 var(--font-body); letter-spacing: .005em; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, box-shadow .3s, transform .25s var(--ease);
}
.btn .ic { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ic-arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-red { --bg: var(--red); }
.btn-red:hover { --bg: var(--red-deep); box-shadow: 0 14px 30px -14px rgba(214, 33, 42, .7); }
.btn-dark:hover { --bg: #1b2740; }
.btn-ghost { --bg: rgba(255, 255, 255, .08); --bd: rgba(255, 255, 255, .38); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn-outline { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn-outline:hover { --bd: var(--ink); }
.btn-white { --bg: #fff; --fg: var(--ink); }
.btn-white:hover { --bg: var(--blue-tint); }
.btn-sm { height: 46px; padding: 0 20px; font-size: 14.5px; }
.btn[disabled] { opacity: .7; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow .3s, background .3s;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .97); box-shadow: 0 1px 0 var(--line), 0 12px 30px -22px rgba(11, 20, 36, .3); }
.admin-bar .site-header { top: 32px; }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { flex: none; display: block; }
.brand img { height: 64px; width: auto; }
.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a { position: relative; padding: 10px 14px; font-size: 15px; font-weight: 550; color: var(--ink); }
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; color: var(--ink); line-height: 1.25; }
.header-phone .ic-box { width: 42px; height: 42px; border-radius: 50%; }
.header-phone .ic-box .ic { width: 19px; height: 19px; }
.header-phone small { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .02em; color: var(--mute); }
.header-phone:hover .ic-box { background: var(--blue); color: #fff; }
.nav-toggle {
  display: none; position: relative; width: 46px; height: 46px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff;
}
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--header-h); z-index: 59;
  display: flex; flex-direction: column; overflow-y: auto;
  padding: 12px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: #fff;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .35s var(--ease); }
.m-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font: 700 26px/1.1 var(--font-display); font-stretch: 110%; letter-spacing: -.02em; color: var(--ink);
}
.m-link .ic { color: var(--red); }
.m-actions { display: grid; gap: 12px; margin-top: auto; padding-top: 32px; }
.m-meta { margin-top: 18px; font-size: 14px; color: var(--mute); text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  margin: 0 var(--frame); border-radius: clamp(0px, 1.6vw, 22px);
  min-height: clamp(660px, calc(100svh - var(--header-h) - var(--frame)), 920px);
  background: var(--navy); color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: -2; animation: heroZoom 2.4s var(--ease) both; }
.hero-media img { width: 100%; height: 118%; object-fit: cover; object-position: 60% 40%; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 17, 32, .93) 0%, rgba(8, 17, 32, .8) 34%, rgba(8, 17, 32, .3) 66%, rgba(8, 17, 32, .08) 100%),
    linear-gradient(0deg, rgba(8, 17, 32, .8) 0%, rgba(8, 17, 32, 0) 40%);
}
/* Copy left, quick-quote form right. */
.hero-inner { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 430px); gap: clamp(32px, 4vw, 72px); align-items: center; padding-top: 56px; padding-bottom: 40px; }
.hero-copy { max-width: 720px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13.5px; font-weight: 550; letter-spacing: .01em; color: rgba(255, 255, 255, .92);
}
.flag { flex: none; width: 24px; height: 13px; border-radius: 3px; background: linear-gradient(115deg, var(--red) 52%, var(--blue) 52%); }
.hero h1 { margin-top: 26px; font-size: clamp(2.3rem, 1rem + 3vw, 4.1rem); line-height: 1; letter-spacing: -.038em; font-weight: 780; color: #fff; }
.hero h1 .accent { color: var(--blue-light); }
.hero-lede { margin-top: 26px; max-width: 54ch; font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); line-height: 1.6; color: rgba(255, 255, 255, .84); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-trust { position: relative; padding-bottom: clamp(16px, 2vw, 28px); }
.trust-bar {
  /* auto: each column starts at its content width and they share the spare room. */
  display: grid; grid-template-columns: repeat(5, auto);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px;
  background: rgba(10, 22, 40, .55);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.trust-item { display: flex; align-items: center; gap: 12px; padding: 20px 18px; }
.trust-item + .trust-item { border-left: 1px solid rgba(255, 255, 255, .12); }
.trust-item .ic { width: 28px; height: 28px; color: var(--blue-light); stroke-width: 1.6; }
.trust-item strong { display: block; font-size: 15px; font-weight: 650; line-height: 1.3; color: #fff; }
.trust-item span { display: block; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .66); }
/* Laptops: five in a row would wrap, so 3 on top and 2 below (6-column grid). */
@media (min-width: 1025px) and (max-width: 1319px) {
  .trust-bar { grid-template-columns: repeat(6, 1fr); }
  .trust-item { grid-column: span 2; }
  .trust-item:nth-child(n+4) { grid-column: span 3; border-top: 1px solid rgba(255, 255, 255, .12); }
  .trust-item:nth-child(4) { border-left: 0; }
}

/* Hero quick-quote form */
.hero-form.form-card { padding: 26px 26px 22px; border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 34px 70px -26px rgba(0, 0, 0, .6); }
.hf-title { font-size: clamp(1.45rem, 1.25rem + .5vw, 1.75rem); letter-spacing: -.02em; color: var(--ink); }
.hf-sub { margin-top: 6px; font-size: 15px; color: var(--mute); }
.hero-form .form-grid { gap: 12px; margin-top: 18px; }
.hero-form .field { gap: 6px; }
.hero-form .field > label, .hero-form .field > .label { font-size: 13px; }
.hero-form .input { height: 48px; font-size: 15.5px; }
.hero-form .seg span { height: 46px; }
.hero-form .form-foot { gap: 10px; margin-top: 16px; }
.hero-form .form-submit { height: 54px; }

.hero [data-anim] { opacity: 0; animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 200ms); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }

/* ---------- Brand marquee ---------- */
.marquee {
  --mq-bg: #070D18;
  --mq-fade: clamp(64px, 12vw, 220px);
  position: relative; overflow: hidden;
  margin: 12px var(--frame) 0; border-radius: clamp(0px, 1.6vw, 22px);
  background: var(--mq-bg);
}
/* Left/right ends: fade to black with a soft blur. */
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: var(--mq-fade); pointer-events: none;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--mq-bg) 15%, rgba(7, 13, 24, 0));
  -webkit-mask-image: linear-gradient(90deg, #000 35%, transparent); mask-image: linear-gradient(90deg, #000 35%, transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--mq-bg) 15%, rgba(7, 13, 24, 0));
  -webkit-mask-image: linear-gradient(270deg, #000 35%, transparent); mask-image: linear-gradient(270deg, #000 35%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; }
.marquee-group li { --mq-px: clamp(28px, 3.4vw, 52px); position: relative; display: grid; place-items: center; height: 100px; padding: 0 var(--mq-px); }
/* Hover: full-colour logo on a white plate (black wordmarks would vanish on the dark band). */
.marquee-group li::before { content: ""; position: absolute; inset: 20px calc(var(--mq-px) - 20px); border-radius: 12px; background: #fff; opacity: 0; transform: scale(.9); transition: opacity .3s, transform .35s var(--ease); }
.marquee-group li:hover::before { opacity: 1; transform: none; }
.marquee-group img { position: relative; width: auto; height: var(--h, 28px); max-width: none; filter: brightness(0) invert(1); opacity: .82; transition: filter .3s, opacity .3s; }
.marquee-group li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 720px) {
  .marquee { margin: 8px 8px 0; border-radius: 16px; }
  .marquee-group li { height: 76px; }
  .marquee-group li::before { inset: 14px calc(var(--mq-px) - 16px); }
  .marquee-group img { height: calc(var(--h, 28px) * .8); }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-media { position: relative; isolation: isolate; }
.about-media .frame { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 580 / 470; background: var(--soft); }
.about-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; left: clamp(-20px, -1.5vw, -8px); bottom: 28px;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 24px 16px 22px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-lg);
}
.verified { flex: none; width: 42px; height: 42px; color: var(--blue); filter: drop-shadow(0 4px 10px rgba(0, 160, 218, .35)); }
.about-badge strong { display: block; font-size: 15px; color: var(--ink); line-height: 1.3; }
.about-badge div > span { display: block; font-size: 13px; color: var(--mute); }
.about-stripe { position: absolute; right: -14px; top: -14px; width: 120px; height: 120px; border-radius: 18px; background: repeating-linear-gradient(135deg, var(--blue) 0 2px, transparent 2px 12px); opacity: .35; z-index: -1; }
.about-copy h2 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem); margin-top: 22px; }
.about-copy p { margin-top: 20px; }
.about-copy .lede { margin-top: 24px; color: var(--ink); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pill-list li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--ink); }
.about-copy .link-arrow { margin-top: 32px; }

/* ---------- Team band (About) ---------- */
.team-band {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) 0;
  border-radius: 24px; color: #fff;
  background: radial-gradient(110% 80% at 50% 100%, #173a66 0%, var(--navy) 62%);
}
.team-trust { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; }
.team-trust li { display: flex; align-items: center; gap: 18px; padding: clamp(18px, 2vw, 26px) clamp(18px, 2.2vw, 30px); }
.team-trust li + li { border-left: 1px solid rgba(255, 255, 255, .22); }
.tt-ic {
  flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 160, 218, .7);
}
.tt-ic.red { background: linear-gradient(135deg, #E5323B 0%, var(--red-deep) 100%); box-shadow: 0 10px 24px -10px rgba(214, 33, 42, .7); }
.tt-ic .ic { width: 28px; height: 28px; stroke-width: 1.9; }
.team-trust strong { display: block; font: 750 clamp(1.3rem, 1rem + .8vw, 1.75rem)/1.12 var(--font-display); font-stretch: 108%; letter-spacing: -.015em; color: #fff; }
.team-trust .tt-num { margin-bottom: 4px; font-size: clamp(2.4rem, 1.6rem + 2vw, 3.3rem); font-weight: 800; line-height: 1; font-stretch: 112%; letter-spacing: -.035em; }
.tt-num em { font-style: normal; color: var(--red); }
.tt-sub { display: block; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--blue-light); }
.team-stage { position: relative; max-width: 780px; margin: clamp(16px, 2.6vw, 32px) auto 0; }
.team-arcs { position: absolute; left: 50%; bottom: 0; z-index: -1; width: 150%; transform: translateX(-50%); overflow: visible; }
.team-photo { display: block; width: 100%; height: auto; }

/* About text under the team photo: heading left, copy right. */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: clamp(48px, 6vw, 88px); }
.about-intro h2 { margin-top: 22px; font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem); }
.about-intro-body { padding-top: 36px; }
.about-intro-body .lede { color: var(--ink); }
.about-intro-body > p + p { margin-top: 18px; }
.about-intro .pill-list { margin-top: 26px; }
.about-intro .link-arrow { margin-top: 30px; }

/* ---------- Services ---------- */
/* Photo cards: only the title shows; description and quote button slide up on hover. */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card > a {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; aspect-ratio: 5 / 4;
  border-radius: 18px; background: var(--navy); color: #fff;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.svc-card > a:hover, .svc-card > a:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc-media { position: absolute; inset: 0; z-index: -1; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
/* AC sits near the ceiling: crop from the bottom only. */
#cleaning-servicing .svc-media img { object-position: 50% 0; }
/* z-index keeps the gradients above the photo while it zooms (a transformed img would otherwise paint over ::before). */
.svc-media::before, .svc-media::after { content: ""; position: absolute; inset: 0; z-index: 1; transition: opacity .5s var(--ease); }
.svc-media::before { background: linear-gradient(180deg, rgba(0, 130, 180, 0) 36%, rgba(0, 105, 160, .5) 64%, rgba(10, 22, 40, .94) 100%); }
.svc-media::after { opacity: 0; background: linear-gradient(180deg, rgba(10, 22, 40, .18) 0%, rgba(0, 92, 145, .72) 40%, rgba(10, 22, 40, .97) 100%); }
.svc-card > a:hover .svc-media img { transform: scale(1.07); }
.svc-body { width: 100%; padding: 22px 24px 24px; }
.svc-body h3 { font-size: clamp(1.3rem, 1.05rem + .6vw, 1.6rem); letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 16px rgba(8, 17, 32, .35); }
.svc-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.svc-more > div { min-height: 0; overflow: hidden; opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .5s var(--ease); }
.svc-more p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.svc-btn { margin-top: 16px; }
.svc-card > a:hover .svc-media::after, .svc-card > a:focus-visible .svc-media::after { opacity: 1; }
.svc-card > a:hover .svc-more, .svc-card > a:focus-visible .svc-more { grid-template-rows: 1fr; }
.svc-card > a:hover .svc-more > div, .svc-card > a:focus-visible .svc-more > div { opacity: 1; transform: none; transition-delay: .08s; }
/* Touch screens can't hover: show the details straight away. */
@media (hover: none) {
  .svc-more { grid-template-rows: 1fr; }
  .svc-more > div { opacity: 1; transform: none; }
  .svc-media::before { background: linear-gradient(180deg, rgba(0, 130, 180, 0) 18%, rgba(0, 96, 150, .62) 50%, rgba(10, 22, 40, .96) 100%); }
}

.sectors-head { margin-top: clamp(72px, 8vw, 112px); margin-bottom: clamp(24px, 2.4vw, 32px); gap: 12px; }
.sectors-head h2 { font-size: clamp(2rem, 1.3rem + 1.7vw, 2.6rem); max-width: 22ch; }
/* Both cards share one set of rows (subgrid), so label, heading, text, list and button line up. */
.sectors { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(190px, 1fr) repeat(5, auto); column-gap: 24px; }
.sector {
  --pad: clamp(24px, 2.8vw, 36px);
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-row: 1 / -1; grid-template-rows: subgrid;
  border-radius: var(--r-lg); color: #fff;
}
.sector > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.sector:hover > img { transform: scale(1.04); }
.sector::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 17, 32, .12) 0%, rgba(8, 17, 32, .5) 24%, rgba(8, 17, 32, .8) 44%, rgba(8, 17, 32, .96) 100%); }
.sector-body { display: contents; }
.sector-body > * { margin-inline: var(--pad); }
.sector-label { grid-row: 2; align-self: end; justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 11px; border-radius: 999px; background: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.sector-label.tone-red { background: var(--red); }
.sector-label.tone-blue { background: var(--blue-deep); }
.sector-label .ic { width: 16px; height: 16px; color: #fff; stroke-width: 2; }
.sector h3 { grid-row: 3; margin-top: 12px; font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2rem); color: #fff; }
.sector-body > p:not(.sector-label) { grid-row: 4; margin-top: 10px; max-width: 46ch; font-size: 16px; color: rgba(255, 255, 255, .82); }
.ticks { display: grid; gap: 11px; margin-top: 22px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; line-height: 1.45; }
.ticks .ic { width: 20px; height: 20px; margin-top: 1px; color: var(--blue); stroke-width: 2.4; }
.sector .ticks { grid-row: 5; align-self: start; gap: 9px; margin-top: 20px; }
.sector .ticks li { align-items: center; font-size: 15.5px; }
.sector .ticks .ic { margin-top: 0; color: var(--blue-light); }
.sector .btn { grid-row: 6; justify-self: start; align-self: end; margin-top: 24px; margin-bottom: var(--pad); }

@supports not (grid-template-rows: subgrid) {
  .sectors { grid-template-rows: none; }
  .sector { display: flex; flex-direction: column; justify-content: flex-end; grid-row: auto; min-height: 540px; }
  .sector-body { display: block; padding: var(--pad); }
  .sector-body > * { margin-inline: 0; }
  .sector .btn { display: inline-flex; margin-bottom: 0; }
}

/* ---------- Packages (kW systems) ---------- */
.pkg-grid { display: grid; grid-template-columns: 1fr 1fr .78fr; gap: 24px; align-items: stretch; }
.pkg {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.pkg:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--shadow-lg); }
.pkg-visual {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden;
  background: radial-gradient(120% 95% at 50% 15%, #fff 0%, var(--blue-tint) 58%, #d6edf8 100%);
  color: var(--blue-deep);
}
.pkg-art { width: 60%; height: auto; margin-top: 26px; overflow: visible; }
.pkg-art .flow { stroke-dasharray: 6 10; animation: flow 2.8s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -64; } }
.pkg-tag {
  position: absolute; top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow);
  font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.pkg-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.pkg-body { display: flex; flex-direction: column; flex: 1; padding: 30px 32px 32px; }
.pkg-kw { display: flex; align-items: flex-start; gap: 6px; font: 800 clamp(4.2rem, 2.8rem + 4vw, 6.6rem)/.84 var(--font-display); font-stretch: 116%; letter-spacing: -.055em; color: var(--ink); }
.pkg-kw small { margin-top: .16em; font-size: .34em; letter-spacing: -.01em; color: var(--red); }
.pkg-name { margin-top: 16px; font-size: 1.55rem; }
.pkg-desc { margin-top: 10px; }
.pkg .ticks { margin-top: 22px; color: var(--ink); }
.pkg-actions { display: flex; gap: 12px; margin-top: auto; padding-top: 30px; }
.pkg-actions .btn { flex: 1; padding: 0 18px; }
.pkg-help {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  padding: clamp(30px, 3vw, 40px); border-radius: var(--r-lg);
  background: var(--navy); color: rgba(255, 255, 255, .75);
}
.pkg-help::before { content: ""; position: absolute; right: -60px; top: -60px; z-index: -1; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 160, 218, .45), transparent); }
.pkg-help .flag { width: 40px; height: 20px; border-radius: 4px; }
.pkg-help h3 { margin-top: 26px; font-size: clamp(1.6rem, 1.3rem + .9vw, 2rem); color: #fff; }
.pkg-help p { margin-top: 14px; }
.pkg-help .btn { margin-top: auto; }
.pkg-help .help-copy { margin-bottom: 32px; }

/* ---------- Service check ---------- */
.check-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.check-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1 / 1; background: var(--line); }
/* Photo is cropped to the top unit so the cabling under it stays out of shot (client request). */
.check-media img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.check-copy h2 { margin-top: 22px; font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem); }
.check-copy .lede { margin-top: 18px; }
.signs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.signs li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; color: var(--ink); line-height: 1.3; }
.check-benefits { margin-top: 30px; }
.mini-title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.check-benefits .ticks { grid-template-columns: 1fr 1fr; gap: 11px 20px; margin-top: 14px; color: var(--ink); }
.check-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.callout { display: flex; gap: 14px; align-items: flex-start; margin-top: 30px; padding: 18px 20px; border-left: 3px solid var(--red); border-radius: 0 12px 12px 0; background: #fff; font-size: 15.5px; }
.callout .ic { margin-top: 3px; color: var(--red); }
.callout strong { color: var(--ink); }

/* ---------- Why Nexus ---------- */
.why { position: relative; overflow: hidden; background: var(--navy); color: rgba(255, 255, 255, .76); }
.why::before { content: ""; position: absolute; right: -320px; top: -420px; width: 960px; height: 960px; pointer-events: none; background: radial-gradient(closest-side, rgba(0, 160, 218, .2), transparent); }
.why::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, .06); }
.why-grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.why-copy { position: sticky; top: calc(var(--header-h) + 48px); }
.why-copy h2 { margin-top: 22px; font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem); color: #fff; }
.why-copy .lede { margin-top: 22px; color: rgba(255, 255, 255, .76); }
.why-copy p + p { margin-top: 16px; }
.why-copy .hero-ctas { margin-top: 36px; }
.why-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-lg); background: rgba(255, 255, 255, .1); }
.why-tile { padding: 34px 30px 36px; background: var(--navy); transition: background .35s; }
.why-tile:hover { background: var(--navy-2); }
.why-tile .ic-box { width: 50px; height: 50px; border: 1px solid rgba(0, 160, 218, .28); background: rgba(0, 160, 218, .12); color: var(--blue-light); }
.why-tile h3 { margin-top: 22px; font-size: 1.28rem; letter-spacing: -.015em; color: #fff; }
.why-tile p { margin-top: 8px; font-size: 15.5px; color: rgba(255, 255, 255, .66); }

/* ---------- Brands ---------- */
.brands { padding: clamp(72px, 8vw, 116px) 0; }
.brands-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.brands-head h2 { margin-top: 22px; font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); }
.brands-head .lede { margin-top: 18px; }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brand-grid li { display: grid; place-items: center; height: 136px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.brand-grid li:hover { background: var(--soft); }
.brand-grid img { width: auto; height: var(--h, 32px); max-width: 100%; transition: transform .45s var(--ease); }
.brand-grid li:hover img { transform: scale(1.06); }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, clamp(240px, 22vw, 310px)); gap: 16px; }
.work-grid figure { position: relative; overflow: hidden; border-radius: 16px; background: var(--line); }
.work-grid figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.work-grid figure:hover img { transform: scale(1.05); }
/* Soft dark fade over each photo, heavier at the bottom behind the label. z-index keeps it above the zooming img. */
.work-grid figure::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(10, 22, 40, .1) 0%, rgba(10, 22, 40, .12) 45%, rgba(10, 22, 40, .66) 100%); transition: opacity .4s; }
.work-grid figure:hover::after { opacity: .75; }
.w-a { grid-column: 1; grid-row: 1 / 3; }
.w-b { grid-column: 2 / 4; grid-row: 1; }
.w-c { grid-column: 4; grid-row: 1; }
.w-c img { object-position: 30% 50%; }
.w-d { grid-column: 2 / 4; grid-row: 2; }
.w-e { grid-column: 4; grid-row: 2; }
.work-grid figcaption {
  position: absolute; z-index: 2; left: 14px; bottom: 14px; right: 14px; width: max-content; max-width: calc(100% - 82px);
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; border-radius: 9px;
  background: rgba(10, 22, 40, .74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13.5px; font-weight: 600; color: #fff; line-height: 1.3;
}
.work-grid figcaption span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-light); }
.w-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px; border-radius: 16px; background: var(--red); color: #fff;
  transition: background .3s;
}
.w-cta:hover { background: var(--red-deep); }
.w-cta small { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.w-cta b { display: block; margin-top: 10px; font: 750 clamp(1.5rem, 1.2rem + .9vw, 1.9rem)/1.08 var(--font-display); font-stretch: 110%; letter-spacing: -.02em; }
.w-cta .round { align-self: flex-end; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--red); transition: transform .35s var(--ease); }
.w-cta:hover .round { transform: rotate(-45deg); }

/* ---------- Review ---------- */
.review-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.qmark { display: block; height: 56px; margin-top: 30px; font: 800 132px/1 var(--font-display); color: var(--red); }
.stars { display: flex; justify-content: center; gap: 6px; margin-top: 8px; color: #F5B301; }
.stars .ic { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.review blockquote { margin-top: 28px; }
.review blockquote p { font: 500 clamp(1.45rem, 1rem + 1.6vw, 2.35rem)/1.38 var(--font-display); font-stretch: 104%; letter-spacing: -.02em; color: var(--ink); }
.review mark { padding: 0 .08em; color: inherit; background: linear-gradient(transparent 60%, rgba(214, 33, 42, .2) 60%); }
.review-by { display: inline-flex; align-items: center; gap: 14px; margin-top: 36px; text-align: left; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 16px var(--font-display); letter-spacing: .02em; }
.review-by strong { display: block; color: var(--ink); }
.review-by div > span { font-size: 14px; color: var(--mute); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 0 var(--frame); border-radius: clamp(0px, 1.6vw, 22px);
  padding: clamp(96px, 12vw, 170px) 0; color: #fff; background: var(--navy);
}
.cta-band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 17, 32, .95) 0%, rgba(8, 17, 32, .82) 45%, rgba(8, 17, 32, .35) 100%); }
.cta-band::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(180deg, var(--red) 50%, var(--blue) 50%); }
.cta-inner h2 { margin-top: 22px; max-width: 14ch; font-size: clamp(2.5rem, 1.3rem + 4vw, 5.2rem); line-height: .98; letter-spacing: -.035em; color: #fff; }
.cta-inner > p:not(.eyebrow) { margin-top: 22px; max-width: 44ch; font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); color: rgba(255, 255, 255, .82); }
.cta-inner .hero-ctas { margin-top: 38px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); }
.contact-panel { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: clamp(36px, 4.5vw, 64px); background: var(--navy); color: rgba(255, 255, 255, .76); }
.contact-panel::before { content: ""; position: absolute; left: -200px; bottom: -260px; z-index: -1; width: 620px; height: 620px; background: radial-gradient(closest-side, rgba(0, 160, 218, .28), transparent); }
.contact-panel h2 { margin-top: 22px; font-size: clamp(2.5rem, 1.6rem + 2.8vw, 4.1rem); color: #fff; }
.contact-panel .lede { margin-top: 18px; color: rgba(255, 255, 255, .76); }
.contact-list { margin-top: 36px; }
.c-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.contact-list li:last-child .c-row { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.c-row .ic-box { width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: var(--blue-light); }
.c-row small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.c-row b { display: block; font-size: 1.08rem; font-weight: 600; color: #fff; transition: color .2s; word-break: break-word; }
a.c-row:hover b { color: var(--blue-light); }
.licence { margin-top: auto; padding-top: 32px; font-size: 13px; color: rgba(255, 255, 255, .5); }

.form-card { position: relative; padding: clamp(30px, 4.5vw, 64px); background: #fff; transition: box-shadow .5s; }
.form-card.is-prefilled { box-shadow: inset 0 0 0 3px rgba(0, 160, 218, .35); }
.form-card h3 { font-size: clamp(1.6rem, 1.3rem + .9vw, 2.05rem); }
.form-card > p { margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 30px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > .label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field > label i, .field > .label i { font-style: normal; color: var(--red); }
.field > label em { font-style: normal; font-weight: 500; color: var(--mute); }
.input {
  width: 100%; height: 54px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #FBFCFD;
  font-size: 16px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea.input { height: auto; min-height: 118px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230B1424' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.input::placeholder { color: #9AA3B2; }
.input:hover { border-color: #CCD3DD; }
.input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0, 160, 218, .14); }
.field.has-error .input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(214, 33, 42, .08); }
.field-error { display: none; font-size: 13px; font-weight: 500; color: var(--red); }
.field.has-error .field-error { display: block; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; align-items: center; justify-content: center; gap: 9px; height: 54px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #FBFCFD;
  font-weight: 600; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.seg span .ic { width: 19px; height: 19px; }
.seg span:hover { border-color: #CCD3DD; }
.seg input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.seg input:focus-visible + span { box-shadow: 0 0 0 4px rgba(0, 160, 218, .25); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 14px; margin-top: 26px; }
.form-submit { width: 100%; height: 60px; font-size: 16.5px; }
.form-note { font-size: 14px; text-align: center; color: var(--mute); }
.form-note a { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form-legal { font-size: 13px; text-align: center; color: var(--mute); }
.form-legal a { text-decoration: underline; text-underline-offset: 2px; }
.form-status { display: none; padding: 14px 16px; border-radius: 10px; font-size: 14.5px; line-height: 1.5; }
.form-status.is-error { display: block; background: #FDECEC; color: #8F1119; }
.form-status.is-info { display: block; background: var(--blue-tint); color: #05506E; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(64px, 8vw, 104px); background: var(--navy); color: rgba(255, 255, 255, .66); font-size: 15.5px; }
.footer-top { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1.25fr; gap: 48px; padding-bottom: 60px; }
.footer-logo { display: inline-block; padding: 10px 14px; border-radius: 12px; background: #fff; }
.footer-logo img { height: 66px; width: auto; }
.footer-brand p { margin-top: 24px; max-width: 36ch; }
.footer-brand .btn { margin-top: 28px; }
.footer-col h4 { margin-bottom: 20px; font: 600 12.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.footer-col li + li { margin-top: 12px; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-col .f-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-col .f-contact .ic { margin-top: 3px; color: var(--blue-light); }
/* Bottom row: copyright left, agency credit centred, legal links right. */
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px 32px; padding-top: 26px; padding-bottom: 34px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.fb-left p + p { margin-top: 4px; }
.fb-credit { justify-self: center; display: block; transition: opacity .25s, transform .3s var(--ease); }
.fb-credit img { width: auto; height: 40px; }
.fb-credit:hover { opacity: .85; transform: translateY(-1px); }
.footer-bottom nav { display: flex; gap: 24px; justify-self: end; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Mobile CTA bar ---------- */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  display: none; grid-template-columns: 1fr 1.35fr; gap: 10px; padding: 10px;
  border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 44px -18px rgba(11, 20, 36, .4);
  transform: translateY(160%); transition: transform .5s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { height: 50px; padding: 0 14px; }

/* ---------- Project lightbox ---------- */
.work-grid .zoom { position: absolute; inset: 0; z-index: 3; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom-ic {
  position: absolute; right: 14px; bottom: 14px;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  background: rgba(255, 255, 255, .9); color: var(--ink); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), background .25s;
}
.zoom-ic .ic { width: 18px; height: 18px; }
.work-grid figure:hover .zoom-ic, .zoom:focus-visible .zoom-ic { transform: scale(1.08); background: #fff; }
.zoom:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; border-radius: 16px; }

.lightbox {
  --lb-out: clamp(16px, 4vw, 48px);
  --lb-in: clamp(10px, 2.4vw, 28px);
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  padding: var(--lb-out); border: 0; background: transparent; overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(10, 22, 40, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lb-panel { padding: var(--lb-in); border-radius: 18px; background: #E8EDF2; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); }
.lb-panel img {
  width: auto; height: auto; border-radius: 10px;
  max-width: calc(100vw - 2 * var(--lb-out) - 2 * var(--lb-in));
  max-height: calc(100dvh - 2 * var(--lb-out) - 2 * var(--lb-in) - 40px);
}
.lb-close {
  position: fixed; top: 16px; right: 16px; z-index: 1;
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .25s, transform .3s var(--ease);
}
.lb-close:hover { background: rgba(255, 255, 255, .3); transform: rotate(90deg); }
.lb-close .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.lightbox[open] .lb-panel { animation: lbIn .4s var(--ease); }
.lightbox[open]::backdrop { animation: lbFade .3s ease; }
@keyframes lbIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes lbFade { from { opacity: 0; } }
html.lb-open { overflow: hidden; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: clamp(64px, 8vw, 112px) 0 clamp(40px, 5vw, 64px); background: var(--soft); border-bottom: 1px solid var(--line); }
.legal-hero h1 { margin-top: 22px; font-size: clamp(2.5rem, 1.6rem + 3vw, 4.2rem); }
.legal-hero p { margin-top: 16px; color: var(--mute); }
.legal-body > * { max-width: 780px; }
.legal-body { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(80px, 10vw, 128px); }
.legal-body h2 { margin-top: 48px; font-size: 1.55rem; letter-spacing: -.02em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { margin-top: 14px; }
.legal-body ul { padding-left: 22px; list-style: disc; }
.legal-body a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Thank-you page ---------- */
.ty {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center;
  margin: 0 var(--frame) clamp(12px, 1.6vw, 24px); border-radius: clamp(0px, 1.6vw, 22px);
  min-height: clamp(560px, calc(100svh - var(--header-h) - 24px), 820px);
  padding: clamp(72px, 9vw, 112px) 0;
  background: linear-gradient(105deg, #08111E 0%, var(--navy) 38%, #0F2A4C 100%);
  color: rgba(255, 255, 255, .8); text-align: center;
}
.ty::before { content: ""; position: absolute; left: 50%; top: 8%; z-index: -1; width: 900px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0, 160, 218, .2), transparent); pointer-events: none; }
.ty::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(180deg, var(--red) 50%, var(--blue) 50%); }

/* Bold tick in a glowing badge, with faint ripples and a soft pulse around it. */
.ty-check {
  position: relative; display: grid; place-items: center; width: 108px; height: 108px; margin: 0 auto; border-radius: 50%;
  background: linear-gradient(140deg, var(--blue-light) 0%, var(--blue) 45%, var(--blue-deep) 100%);
  box-shadow: 0 0 0 12px rgba(0, 160, 218, .16), 0 26px 50px -14px rgba(0, 160, 218, .85), inset 0 2px 0 rgba(255, 255, 255, .3);
}
.ty-check::before { content: ""; position: absolute; inset: 0; border: 2px solid rgba(76, 195, 239, .7); border-radius: 50%; opacity: 0; animation: tyPulse 2.6s 1.2s ease-out infinite; }
.ty-check svg { position: relative; width: 58px; height: 58px; fill: none; stroke: #fff; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0, 60, 100, .35)); }
.ty-check path { stroke-dasharray: 40; animation: tyDraw .55s .6s var(--ease) both; }
.ty-ring {
  position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 50%; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 35%, transparent 75%); mask-image: linear-gradient(#000 35%, transparent 75%);
}
@keyframes tyPop { from { opacity: 0; transform: scale(.5); } }
@keyframes tyDraw { from { stroke-dashoffset: 40; } }
@keyframes tyPulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.2); } }

.ty h1 { margin-top: 44px; font-size: clamp(2.6rem, 1.5rem + 3.2vw, 4.6rem); line-height: 1; letter-spacing: -.035em; font-weight: 780; color: #fff; }
.ty-text { margin: 20px auto 0; max-width: 42ch; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: rgba(255, 255, 255, .8); }
.ty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.ty-meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 14px; color: rgba(255, 255, 255, .55); }
.ty-meta .ic { width: 16px; height: 16px; color: var(--blue-light); }
.ty [data-anim] { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
.ty .ty-check[data-anim] { animation-name: tyPop; animation-duration: .7s; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* A curtain that slides away. Not clip-path: a fully clipped element never counts as intersecting, so it would never reveal. */
.js .media-reveal { position: relative; isolation: isolate; }
.js .media-reveal::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--curtain, #fff); transform-origin: 50% 100%; transition: transform 1.2s var(--ease); pointer-events: none; }
.js .media-reveal img { transform: scale(1.14); transition: transform 1.6s var(--ease); }
.js .media-reveal.is-in::after { transform: scaleY(0); }
.js .media-reveal.is-in img { transform: none; }
.bg-soft { --curtain: var(--soft); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .header-phone > span:last-child { display: none; }
  .main-nav a { padding: 10px 11px; }
}

@media (max-width: 1100px) {
  .pkg-grid { grid-template-columns: 1fr 1fr; }
  .pkg-help { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 32px; }
  .pkg-help .help-copy { margin-bottom: 0; }
  .pkg-help h3 { margin-top: 0; }
  .pkg-help .flag { display: none; }
  .pkg-help .btn { margin: 0 0 0 auto; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 64px; }
  .hero-form { max-width: 560px; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-block; }
  .header-actions { margin-left: auto; gap: 12px; }
  .trust-bar { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  /* Odd one out in the 2-column grid: give it the full bottom row. */
  .trust-item:nth-child(5) { grid-column: 1 / -1; border-left: 0; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  /* Tablet/mobile: photo on top, content below on navy. */
  .sectors { grid-template-rows: none; row-gap: 24px; }
  .sector { display: flex; flex-direction: column; grid-row: auto; background: var(--navy); }
  .sector > img { position: relative; z-index: 0; flex: none; height: 220px; }
  .sector::before { display: none; }
  .sector-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 28px; }
  .sector-body > * { margin-inline: 0; align-self: stretch; }
  .sector-body > .sector-label { align-self: flex-start; }
  .sector .ticks { margin-bottom: 24px; }
  .sector-body .btn { align-self: flex-start; margin: auto 0 0; }
  .brands-inner { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .section-head.split { grid-template-columns: 1fr; gap: 20px; }
  .about-grid, .check-grid, .why-grid, .about-intro { grid-template-columns: 1fr; }
  .about-intro { gap: 20px; }
  .about-intro-body { padding-top: 0; }
  .about-media { max-width: 640px; }
  .about-badge { left: 16px; right: 16px; bottom: 16px; width: fit-content; max-width: calc(100% - 32px); margin-inline: auto; }
  .check-media { aspect-ratio: 4 / 3; }
  .check-media img { object-position: 50% 0; }
  .why-copy { position: static; }
  .team-trust li { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 18px 20px; }
  .team-trust br { display: none; }
  .tt-ic { width: 46px; height: 46px; border-radius: 12px; }
  .tt-ic .ic { width: 22px; height: 22px; }
  .work-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 280px) auto auto; }
  .w-a { grid-column: 1; grid-row: 1 / 3; }
  .w-b { grid-column: 2; grid-row: 1; }
  .w-c { grid-column: 2; grid-row: 2; }
  .w-d { grid-column: 1 / -1; grid-row: 3; height: 300px; }
  .w-e { grid-column: 1 / -1; grid-row: 4; min-height: 180px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .mobile-cta { display: grid; }
  .site-footer { padding-bottom: 84px; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 720px) {
  :root { --header-h: 70px; }
  body { font-size: 16px; }
  .brand img { height: 46px; }
  .about-badge { gap: 10px; padding: 12px 16px 12px 14px; border-radius: 12px; }
  .about-badge .verified { width: 32px; height: 32px; }
  .about-badge strong { font-size: 13.5px; white-space: nowrap; }
  .about-badge div > span { font-size: 12px; white-space: nowrap; }
  .header-actions .btn { display: none; }
  .header-phone .ic-box { width: 46px; height: 46px; border-radius: var(--r-sm); }

  .hero { margin: 0 8px; border-radius: 18px; min-height: auto; }
  .hero-media img { height: 100%; object-position: 86% 50%; transform: none; }
  .hero-shade { background: linear-gradient(180deg, rgba(8, 17, 32, .2) 0%, rgba(8, 17, 32, .62) 17%, rgba(8, 17, 32, .9) 36%, rgba(8, 17, 32, .97) 100%); }
  .hero-inner { align-items: flex-start; padding-top: 120px; padding-bottom: 28px; }
  .hero-form.form-card { padding: 22px 18px 18px; border-radius: 16px; }
  /* One line on phones: the text scales with the screen so the service area always fits. */
  .hero-kicker { gap: 8px; padding: 7px 12px 7px 8px; font-size: clamp(9px, calc(3.7vw - 4.2px), 13px); white-space: nowrap; }
  .hero-kicker .flag { width: 20px; height: 11px; }
  .hero h1 { margin-top: 20px; }
  .hero-lede { margin-top: 18px; }
  .hero-ctas { margin-top: 28px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .trust-item { padding: 16px 14px; gap: 10px; align-items: flex-start; }
  .trust-item .ic { width: 22px; height: 22px; }
  .trust-item strong { font-size: 13.5px; }
  .trust-item span { font-size: 12px; }

  .svc-grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 20px;
    scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .svc-grid::-webkit-scrollbar { display: none; }
  .svc-card { flex: 0 0 84%; scroll-snap-align: start; }
  .svc-card > a { aspect-ratio: 4 / 5; }
  .team-trust { grid-template-columns: 1fr; }
  .team-trust li { flex-direction: row; align-items: center; gap: 16px; padding: 18px 20px; }
  .team-trust li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
  .team-band { border-radius: 18px; }
  .team-arcs { width: 150%; }
  .swipe-hint { display: flex !important; }

  .sectors { grid-template-columns: 1fr; }
  .sector > img { height: 200px; }
  .sector-body { padding: 24px 22px 28px; }
  .pkg-grid { grid-template-columns: 1fr; }
  .pkg-help { flex-direction: column; align-items: flex-start; gap: 24px; }
  .pkg-help .btn { margin: 0; width: 100%; }
  .pkg-body { padding: 26px 24px 26px; }
  .pkg-actions { flex-direction: column; }
  .pkg-actions .btn { flex: none; width: 100%; }
  .signs, .check-benefits .ticks { grid-template-columns: 1fr; }
  .check-actions .btn { flex: 1 1 100%; }
  .why-tiles { grid-template-columns: 1fr; }
  .why-tile { padding: 28px 24px; }
  .why-copy .hero-ctas .btn { flex: 1 1 100%; }
  .brand-grid { grid-template-columns: 1fr 1fr; }
  .brand-grid li { height: 110px; padding: 18px; }
  .brand-grid img { height: calc(var(--h, 32px) * .82); }

  .work-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .w-a, .w-b, .w-c, .w-d, .w-e { grid-column: 1; grid-row: auto; height: auto; }
  .w-a { aspect-ratio: 4 / 5; }
  .w-b, .w-c, .w-d { aspect-ratio: 16 / 10; }
  .w-c img { object-position: 35% 50%; }

  .cta-band { margin: 0 8px; border-radius: 18px; padding: 88px 0 72px; }
  .cta-band > img { object-position: 82% 50%; }
  .cta-band::before { background: linear-gradient(180deg, rgba(8, 17, 32, .7) 0%, rgba(8, 17, 32, .92) 100%); }
  .cta-band::after { width: 6px; }
  .cta-inner .hero-ctas .btn { flex: 1 1 100%; }

  .contact-grid { border-radius: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .ty { margin: 0 8px 8px; border-radius: 18px; padding: 64px 0 56px; }
  .ty::after { width: 6px; }
  .ty-check { width: 92px; height: 92px; }
  .ty-check svg { width: 50px; height: 50px; }
  .ty h1 { margin-top: 38px; }
  .ty-actions .btn { flex: 1 1 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-bottom nav { justify-self: center; }
  .fb-credit { order: 3; margin-top: 6px; }
}

@media (max-width: 359px) {
  .about-badge strong, .about-badge div > span { white-space: normal; }
  /* Very small phones: one line would need tiny text, so the service area drops to its own line. */
  .hero-kicker { border-radius: 14px; line-height: 1.4; white-space: normal; }
  .kicker-more { display: block; }
  .kicker-sep { display: none; }
}

@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}

.swipe-hint { display: none; align-items: center; gap: 8px; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--mute); }
.swipe-hint .ic { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero [data-anim] { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
  .js .media-reveal::after { display: none; }
  .js .media-reveal img { transform: none; }
}
