/* ==========================================================================
   Gas Main Installation — site stylesheet
   1. Tokens          5. Buttons & links     9. Forms
   2. Base            6. Hero / page hero   10. Footer
   3. Layout          7. Components         11. Utilities
   4. Header & nav    8. Article pages      12. Motion & print
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --navy-950: #07131f;
  --navy-900: #0b1c2c;
  --navy-800: #11283d;
  --navy-700: #1a3a56;
  --blue-700: #155f9a;
  --blue-600: #1c75bc;   /* brand blue carried over from the old site */
  --blue-400: #4aa3e0;
  --blue-100: #e4f0fa;
  --blue-50: #f1f7fc;
  --flame: #f26522;      /* flame orange from the logo */
  --flame-dark: #d4521a;
  --green: #4f9a2c;

  --ink: #14202c;
  --body: #3d4a58;
  --muted: #64748a;
  --line: #d9e1e9;
  --surface: #f4f6f9;
  --white: #fff;

  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 28, 44, .06), 0 2px 8px rgba(11, 28, 44, .05);
  --shadow-md: 0 10px 30px -12px rgba(11, 28, 44, .28);
  --shadow-lg: 0 30px 60px -28px rgba(7, 19, 31, .55);

  --container: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.75rem, 8vw, 6.75rem);
  --header-h: 78px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .005em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.18; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.25rem; }

a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }

:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--blue-600); color: #fff; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  padding: .7rem 1.1rem; background: var(--flame); color: #fff; font-weight: 600; text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--surface); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section--dark {
  position: relative;
  color: #c3d0dd;
  background-color: var(--navy-900);
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a:not(.btn) { color: #8cc8f3; }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.125rem; }
.section-head--row { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; align-items: flex-end; justify-content: space-between; max-width: none; }
.section-head--row > div { max-width: 720px; }

/* small technical label that sits above headings */
.eyebrow {
  display: flex; align-items: center; gap: .7rem;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--flame); flex: none; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: #8cc8f3; }

.lead { font-size: clamp(1.125rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--ink); }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .split--media-left { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .split--media-left .split__media { order: -1; }
  .split--top { align-items: start; }
  .split--top > .split__media { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* 4. Header & navigation --------------------------------------------------- */
.topbar { background: var(--navy-950); color: #a9b9c9; font-size: .9rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__note { margin: 0; display: flex; align-items: center; gap: .55rem; }
.topbar__note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(79, 154, 44, .25); }
.topbar__links { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.topbar a { display: inline-flex; align-items: center; gap: .45rem; color: #e6edf4; text-decoration: none; font-weight: 500; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar svg { width: 15px; height: 15px; color: var(--flame); }
@media (max-width: 700px) { .topbar__note, .topbar__links li:nth-child(2) { display: none; } .topbar__inner { justify-content: center; } }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.is-stuck { box-shadow: 0 6px 24px -14px rgba(11, 28, 44, .45); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: block; flex: none; }
.brand img { width: clamp(190px, 22vw, 250px); height: auto; }

.nav__list, .subnav { margin: 0; padding: 0; list-style: none; }
.nav__link {
  display: block; padding: .6rem .2rem;
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  background: linear-gradient(var(--flame), var(--flame)) left bottom / 0 2px no-repeat;
  transition: background-size .25s, color .2s;
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__item.is-active > .nav__link { color: var(--blue-600); background-size: 100% 2px; }
.sub-toggle { border: 0; background: none; padding: .5rem; color: var(--ink); cursor: pointer; line-height: 0; }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.subnav a { display: block; padding: .6rem .9rem; border-radius: var(--radius); color: var(--ink); font-weight: 500; font-size: 1rem; line-height: 1.3; text-decoration: none; }
.subnav a:hover, .subnav a[aria-current="page"] { background: var(--blue-50); color: var(--blue-600); }

.nav-toggle {
  display: none; align-items: center; gap: .6rem;
  padding: .6rem .85rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 20px; height: 14px; }
.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .25s, opacity .2s, top .25s; }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* desktop nav */
@media (min-width: 1000px) {
  .nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
  .nav__list { display: flex; align-items: center; gap: clamp(1rem, 1.9vw, 1.9rem); }
  .nav__item { position: relative; display: flex; align-items: center; }
  .sub-toggle { padding: .35rem .1rem .35rem .3rem; }
  .subnav {
    position: absolute; top: calc(100% + 6px); left: -1rem; width: 320px; padding: .6rem;
    background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue-600); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
  .nav__item--sub:hover .subnav, .nav__item--sub:focus-within .subnav, .nav__item--sub.is-open .subnav { opacity: 1; visibility: visible; transform: none; }
  .nav__item--sub:hover .sub-toggle svg, .nav__item--sub.is-open .sub-toggle svg { transform: rotate(180deg); }
}

/* mobile nav */
@media (max-width: 999.98px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: .5rem var(--gutter) 1.5rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
  .nav__item { display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid var(--line); }
  .nav__link { padding: .95rem 0; font-size: 1.25rem; background: none; }
  .sub-toggle { padding: .9rem; margin-right: -.5rem; }
  .nav__item--sub.is-open .sub-toggle svg { transform: rotate(180deg); }
  .subnav { grid-column: 1 / -1; padding: 0 0 .8rem; }
  .js .subnav { display: none; }
  .js .nav__item--sub.is-open .subnav { display: block; }
  .nav .btn { width: 100%; margin-top: 1.25rem; }
}

/* 5. Buttons & links ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.5rem; border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; line-height: 1.15; text-decoration: none;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn:active { transform: none; }

.btn--primary { background: var(--flame); color: #fff; box-shadow: 0 8px 20px -10px rgba(242, 101, 34, .8); }
.btn--primary:hover { background: var(--flame-dark); color: #fff; }
.btn--blue { background: var(--blue-600); color: #fff; }
.btn--blue:hover { background: var(--blue-700); color: #fff; }
.btn--outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn--outline:hover { background: var(--navy-800); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: #fff; background: #fff; color: var(--navy-900); }
.btn--sm { padding: .6rem 1.05rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--blue-600);
}
.text-link svg { width: 17px; height: 17px; transition: transform .2s; }
.text-link:hover svg, a:hover > .text-link svg { transform: translateX(4px); }

/* 6. Hero ------------------------------------------------------------------ */
.hero, .page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #c9d5e1;
  background-color: var(--navy-900);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(28, 117, 188, .38), transparent 65%),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
}
.hero h1, .page-hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--blue-400); }

.hero__inner { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; padding-block: clamp(3.25rem, 7vw, 6rem) clamp(5.5rem, 9vw, 8.5rem); }
.hero__lead { max-width: 560px; font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; color: #d5e0ea; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 30% 50%; border-radius: var(--radius-lg); clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 56px, 100% 100%, 0 100%); box-shadow: var(--shadow-lg); }
.hero__media::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; border: 2px solid rgba(74, 163, 224, .45); border-radius: var(--radius-lg); z-index: -1; }
@media (min-width: 960px) { .hero__inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); } }
@media (max-width: 959.98px) { .hero__media img { aspect-ratio: 16 / 9; } .hero__media::before { inset: 14px -8px -10px 14px; } }

@media (min-width: 960px) { .hero__inner--form { grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); align-items: start; padding-bottom: clamp(5.5rem, 9vw, 8.5rem); } }
.hero-badge { display: inline-flex; align-items: center; gap: .9rem; margin-top: 2rem; padding: .7rem 1.1rem .7rem .75rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); color: var(--ink); }
.hero-badge img { width: 48px; height: 48px; object-fit: contain; }
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.hero-badge small { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.split .faq-figure { margin-top: 2.5rem; }

/* callout pinned to the hero image */
.hero-call {
  position: absolute; left: -1.25rem; bottom: 1.75rem;
  display: flex; align-items: center; gap: .9rem; padding: .95rem 1.35rem .95rem 1rem;
  background: #fff; color: var(--body); border-left: 4px solid var(--flame); border-radius: var(--radius); box-shadow: var(--shadow-md);
  text-decoration: none; line-height: 1.25;
}
.hero-call__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-100); color: var(--blue-600); }
.hero-call__icon svg { width: 20px; height: 20px; }
.hero-call small { display: block; font-size: .85rem; color: var(--muted); }
.hero-call strong { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .02em; color: var(--ink); }
@media (max-width: 600px) { .hero-call { left: .75rem; bottom: .75rem; padding: .7rem 1rem .7rem .75rem; } .hero-call strong { font-size: 1.3rem; } }

/* fact strip that overlaps the bottom of the hero */
.facts { position: relative; z-index: 2; margin-top: clamp(-4.25rem, -5vw, -3rem); }
.facts__list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 0; padding: 0; list-style: none;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border-bottom: 3px solid var(--blue-600); overflow: hidden;
}
.facts__item { display: flex; gap: .9rem; align-items: flex-start; padding: 1.5rem 1.4rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; line-height: 1.4; }
.facts__item svg { flex: none; width: 26px; height: 26px; margin-top: .15rem; color: var(--flame); }
.facts__item strong { display: block; font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.facts__item span { font-size: .95rem; color: var(--muted); }

/* inner-page hero */
.page-hero__inner { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4.25rem) clamp(3rem, 6vw, 5rem); }
.page-hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.75rem); }
.page-hero__lead { max-width: 600px; font-size: clamp(1.08rem, 1.4vw, 1.2rem); line-height: 1.6; color: #d5e0ea; }
.page-hero__media { position: relative; }
.page-hero__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%); box-shadow: var(--shadow-lg); }
.page-hero__media::before { content: ""; position: absolute; inset: 18px -14px -14px 18px; border: 2px solid rgba(74, 163, 224, .45); border-radius: var(--radius-lg); z-index: -1; }
.page-hero__tag { position: absolute; left: 0; bottom: 0; padding: .45rem 1rem; background: var(--flame); color: #fff; font-family: var(--font-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .95rem; border-radius: 0 var(--radius) 0 var(--radius-lg); }
@media (min-width: 900px) { .page-hero__inner--media { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
@media (min-width: 900px) { .page-hero__inner--form { grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); align-items: start; } }
.page-hero__form .form { padding: clamp(1.4rem, 2.5vw, 1.9rem); }
.page-hero__form .form__title { font-size: 1.6rem; }
.page-hero__form .form__intro { margin-bottom: 1.1rem; }
.page-hero__form textarea { min-height: 96px; }
.prose__figure { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.prose__figure figcaption { margin-top: .85rem; padding-left: .9rem; border-left: 3px solid var(--flame); font-size: .92rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 899.98px) { .page-hero__media img { aspect-ratio: 16 / 8; } }

.breadcrumb { padding-top: 1.4rem; font-size: .92rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem .6rem; margin: 0; padding: 0; list-style: none; color: #9fb2c5; }
.breadcrumb li + li::before { content: "/"; margin-right: .6rem; color: #56708a; }
.breadcrumb a { color: #d5e0ea; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* 7. Components ------------------------------------------------------------ */

/* service cards */
.card-grid { display: grid; gap: clamp(1.1rem, 2vw, 1.6rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr)); margin: 0; padding: 0; list-style: none; }
.card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.service-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service-card:hover, .service-card:focus-within { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card__media { position: relative; overflow: hidden; background: var(--navy-800); }
.service-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s; }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__num { position: absolute; left: 0; bottom: 0; padding: .3rem .75rem; background: var(--navy-900); color: #fff; font-family: var(--font-display); font-weight: 600; letter-spacing: .12em; font-size: .95rem; border-top-right-radius: var(--radius); }
.service-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.4rem 1.5rem; border-top: 3px solid var(--blue-600); }
.service-card h3 { margin-bottom: .55rem; font-size: 1.42rem; }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */
.service-card p { font-size: .98rem; line-height: 1.6; margin-bottom: 1.2rem; }
.service-card .text-link { margin-top: auto; font-size: 1rem; }
.service-card:hover h3 a { color: var(--blue-600); }
.service-card:hover .text-link svg { transform: translateX(4px); }

/* framed image */
.media-frame { position: relative; margin: 0; }
.media-frame img { width: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.media-frame::before { content: ""; position: absolute; z-index: -1; inset: -16px 28% 28% -16px; background: repeating-linear-gradient(135deg, var(--blue-100) 0 2px, transparent 2px 10px); border-radius: var(--radius-lg); }
.media-frame--portrait img { aspect-ratio: 4 / 5; object-position: 50% 35%; }
.media-frame--square img { aspect-ratio: 1 / 1; }
.media-frame--wide img { aspect-ratio: 16 / 10; }
.media-frame { isolation: isolate; }
.media-frame figcaption { margin-top: .85rem; font-size: .9rem; color: var(--muted); }

/* numbered pillars */
.pillars { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: pillar; }
.pillar { position: relative; padding: 2rem 1.75rem 1.9rem; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); counter-increment: pillar; }
.pillar::before { content: "0" counter(pillar); display: block; margin-bottom: 1.1rem; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--blue-400); }
.pillar::after { content: ""; position: absolute; left: 1.75rem; top: 0; width: 48px; height: 3px; background: var(--flame); }
.pillar p { font-size: 1rem; }
.section:not(.section--dark) .pillar { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.section:not(.section--dark) .pillar::before { -webkit-text-stroke-color: var(--blue-600); }

/* tick list */
.check-list { margin: 0 0 1.3em; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .38em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c75bc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.check-list--cols { columns: 2 260px; column-gap: 2.5rem; }
.check-list--cols li { break-inside: avoid; }
.check-list a { font-weight: 500; }

/* question & answer accordion (native <details>) */
.faq { display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: var(--blue-600); box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.32rem; }
.faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c75bc' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E") center / 50% no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 1.4rem 1.4rem; max-width: 70ch; }

/* coverage regions */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 100px; font-weight: 500; font-size: .98rem; color: #e6edf4; background: rgba(255, 255, 255, .04); }
.chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--flame); }
.section:not(.section--dark) .chips li { border-color: var(--line); color: var(--ink); background: #fff; }

.chips--sm { gap: .4rem; }
.chips--sm li { padding: .3rem .7rem; font-size: .88rem; }
.chips--sm li::before { width: 5px; height: 5px; }

/* area (location) pages */
.area-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 1.6rem 1.5rem 1.5rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue-600); border-radius: var(--radius-lg); transition: transform .3s, box-shadow .3s; }
.area-card:hover, .area-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.area-card h3 { margin-bottom: .5rem; font-size: 1.5rem; }
.area-card h3 a { color: inherit; text-decoration: none; }
.area-card h3 a::after { content: ""; position: absolute; inset: 0; }
.area-card:hover h3 a { color: var(--blue-600); }
.area-card p { font-size: .98rem; line-height: 1.6; margin-bottom: 1.2rem; }
.area-card .text-link { margin-top: auto; font-size: 1rem; }
.area-card:hover .text-link svg { transform: translateX(4px); }

.area-card--media { padding: 0; border-top: 0; }
.area-card__media { overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--navy-800); }
.area-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s; }
.area-card:hover .area-card__media img { transform: scale(1.05); }
.area-card--media .area-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.4rem; border-top: 3px solid var(--blue-600); }

.area-links { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr)); margin: 0; padding: 0; list-style: none; }
.area-links a { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 500; color: var(--ink); text-decoration: none; transition: border-color .2s, color .2s, transform .2s; }
.area-links a:hover { border-color: var(--blue-600); color: var(--blue-600); transform: translateY(-2px); }
.area-links svg { flex: none; width: 17px; height: 17px; color: var(--flame); }

/* registrations */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.trust li { display: grid; place-items: center; width: 104px; height: 104px; padding: .7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.trust img { max-height: 100%; width: auto; object-fit: contain; }
.trust--lg li { width: 140px; height: 140px; padding: 1rem; box-shadow: var(--shadow-sm); }

/* call-to-action band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--blue-600); color: #e6f1fa; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, var(--navy-800) 0 46%, transparent 46.1%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 14px); }
.cta-band__inner { display: grid; gap: 2rem; align-items: center; padding-block: clamp(3rem, 6vw, 4.75rem); }
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { max-width: 58ch; }
.cta-band .btn-row { margin-top: 0; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; } .cta-band .btn-row { justify-content: flex-end; } }
@media (max-width: 899.98px) { .cta-band::before { background: linear-gradient(180deg, var(--navy-800), var(--navy-800)); } }

/* contact details list */
.contact-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list__icon { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: var(--radius); background: var(--blue-100); color: var(--blue-600); }
.contact-list__icon svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-family: var(--font-display); font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.contact-list a, .contact-list strong { font-size: 1.2rem; font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--blue-600); text-decoration: underline; }
.contact-list .is-phone { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: .02em; line-height: 1.1; }
.section--dark .contact-list a, .section--dark .contact-list strong { color: #fff; }
.section--dark .contact-list__icon { background: rgba(255, 255, 255, .08); color: #8cc8f3; }
.section--dark .contact-list small { color: #9fb2c5; }

/* 8. Article pages --------------------------------------------------------- */
.layout-sidebar { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 1000px) { .layout-sidebar { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }

.prose { max-width: 74ch; }
.prose > .lead-block { padding-bottom: 2.25rem; margin-bottom: 2.75rem; border-bottom: 1px solid var(--line); }
.prose > .lead-block p:first-child { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.5; color: var(--ink); font-weight: 500; }
.prose section { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.prose section:last-child { margin-bottom: 0; }
.prose h2 { position: relative; padding-top: 1.1rem; font-size: clamp(1.75rem, 2.8vw, 2.25rem); }
.prose h2::before { content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 3px; background: var(--flame); }
.prose h3 { margin-top: 2.1rem; padding-left: .9rem; border-left: 3px solid var(--blue-600); }
.prose ul:not([class]), .prose ol:not([class]) { padding-left: 0; list-style: none; }
.prose ul:not([class]) li, .prose ol:not([class]) li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; }
.prose ul:not([class]) li::before { content: ""; position: absolute; left: .2rem; top: .68em; width: 8px; height: 8px; background: var(--blue-600); transform: rotate(45deg); }
.prose ol:not([class]) { counter-reset: step; }
.prose ol:not([class]) li { counter-increment: step; padding-left: 2.4rem; }
.prose ol:not([class]) li::before { content: counter(step); position: absolute; left: 0; top: .15em; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font-family: var(--font-display); font-weight: 700; font-size: .95rem; }

/* inline prompt dropped part-way through long articles */
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.1rem 2rem; margin-block: clamp(2.5rem, 5vw, 3.5rem); padding: 1.6rem 1.75rem; background: var(--blue-50); border: 1px solid #cfe3f4; border-left: 4px solid var(--blue-600); border-radius: var(--radius-lg); }
.inline-cta p { margin: 0; max-width: 46ch; color: var(--ink); }
.inline-cta strong { display: block; font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .01em; line-height: 1.2; }

/* closing contact panel on service pages */
.contact-panel { padding: clamp(1.6rem, 3vw, 2.4rem); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--flame); border-radius: var(--radius-lg); }
.contact-panel h2::before { display: none; }
.contact-panel h2 { padding-top: 0; }
.prose .form__title { margin-top: 0; padding-left: 0; border-left: 0; }

.sidebar { display: grid; gap: 1.4rem; }
@media (min-width: 1000px) { .sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.aside-card { padding: 1.6rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.aside-card__title { margin: 0 0 1rem; font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.aside-card--call { background: var(--navy-900); border-color: var(--navy-900); color: #c3d0dd; border-top: 4px solid var(--flame); }
.aside-card--call .aside-card__title { color: #8cc8f3; }
.aside-card__phone { display: block; margin-bottom: .35rem; font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; line-height: 1.05; letter-spacing: .02em; color: #fff; text-decoration: none; }
.aside-card__phone:hover { color: #8cc8f3; }
.aside-card--call p { font-size: .98rem; margin-bottom: 1.2rem; }
.aside-card--call .btn + .btn { margin-top: .6rem; }

.toc, .side-links { margin: 0; padding: 0; list-style: none; }
.toc { counter-reset: toc; border-left: 2px solid var(--line); }
.toc li { counter-increment: toc; }
.toc a { display: block; margin-left: -2px; padding: .4rem 0 .4rem 1rem; border-left: 2px solid transparent; font-size: .95rem; line-height: 1.4; color: var(--body); text-decoration: none; }
.toc a:hover { color: var(--blue-600); border-left-color: var(--blue-600); }
.side-links a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .62rem 0; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 1rem; line-height: 1.35; color: var(--ink); text-decoration: none; }
.side-links li:last-child a { border-bottom: 0; padding-bottom: 0; }
.side-links a:hover, .side-links a[aria-current="page"] { color: var(--blue-600); }
.side-links svg { flex: none; width: 15px; height: 15px; color: var(--flame); transition: transform .2s; }
.side-links a:hover svg { transform: translateX(3px); }
@media (max-width: 999.98px) { .aside-card--toc { display: none; } }

/* 9. Forms ----------------------------------------------------------------- */
.form { padding: clamp(1.5rem, 3vw, 2.4rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); color: var(--body); }
.form__title { margin-bottom: .35rem; font-size: clamp(1.6rem, 2.4vw, 2rem); color: var(--ink); }
.form__intro { margin-bottom: 1.5rem; font-size: 1rem; color: var(--muted); }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.form__field { margin-bottom: 1rem; }
.form label { display: block; margin-bottom: .35rem; font-family: var(--font-display); font-size: .98rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.form label span { color: var(--flame-dark); }
.form input, .form textarea {
  width: 100%; padding: .8rem .95rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:hover, .form textarea:hover { border-color: #b8c5d2; }
.form input:focus, .form textarea:focus { outline: none; background: #fff; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(28, 117, 188, .18); }
.form__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; } /* honeypot: hidden from people, visible to bots */
.form__note { margin: 1rem 0 0; font-size: .88rem; color: var(--muted); }

/* 10. Footer --------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: #9fb2c5; font-size: .98rem; }
.site-footer__main { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 700px) { .site-footer__main { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1050px) { .site-footer__main { grid-template-columns: 1.5fr 1.15fr 1fr 1.1fr; gap: 3rem; } }
.site-footer__logo { display: inline-block; margin-bottom: 1.25rem; padding: .6rem .9rem; background: #fff; border-radius: var(--radius); }
.site-footer__logo img { width: 210px; }
.site-footer h2 { margin-bottom: 1.1rem; font-size: 1.05rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.site-footer ul:not(.trust) { margin: 0; padding: 0; list-style: none; }
.site-footer ul:not(.trust) li { margin-bottom: .5rem; line-height: 1.4; }
.site-footer a { color: #c9d5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__phone { display: inline-block; margin-bottom: .4rem; font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; letter-spacing: .02em; color: #fff !important; }
.site-footer .trust li { width: 68px; height: 68px; padding: .4rem; border: 0; border-radius: var(--radius); }
.site-footer .trust { gap: .55rem; flex-wrap: nowrap; }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, .09); font-size: .9rem; }
.site-footer__bar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem; }
.site-footer__bar p { margin: 0; }

/* 11. Utilities ------------------------------------------------------------ */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: 2rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1.4rem; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 10rem); font-weight: 700; line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--blue-400); margin: 0 0 1rem; }

/* 12. Motion & print ------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .cta-band, .sidebar, .site-footer, .form, .btn-row { display: none !important; }
  .hero, .page-hero { background: none; color: #000; }
  .hero h1, .page-hero h1 { color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
