/* ==========================================================================
   Commercial Gas Engineer Near Me — main stylesheet
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Base & typography
   3.  Layout helpers
   4.  Buttons, links & tags
   5.  Top bar, header & navigation
   6.  Hero (homepage) & page hero (inner pages)
   7.  Sections, splits & framed media
   8.  Service cards
   9.  Features, tiles, checklists & link grid
   10. Emergency panel & call-to-action band
   11. Service page layout, prose, steps & sidebar
   12. Contact, panel & forms
   13. Registrations
   14. Footer & mobile action bar
   15. Motion preferences & print
   ========================================================================== */

/* 1. Design tokens
   ========================================================================== */
:root {
  --navy-950: #061624;
  --navy-900: #0a2438;
  --navy-800: #0e3b5e;   /* brand navy */
  --blue-700: #155f9b;
  --blue-600: #1c75bc;   /* brand blue */
  --blue-100: #d9e9f6;
  --blue-50: #eef5fb;
  --orange: #ff6c2c;     /* brand accent — used sparingly */
  --orange-700: #b9440e; /* accent text on light backgrounds */
  --ink: #12202d;
  --slate: #4a5a69;
  --line: #d9e1e8;
  --mist: #f3f6f9;
  --white: #fff;

  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.125rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 36, 56, .06), 0 2px 8px rgba(10, 36, 56, .05);
  --shadow-md: 0 10px 30px rgba(10, 36, 56, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base & typography
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-700); text-underline-offset: .18em; }
a:hover { color: var(--navy-800); }
strong { font-weight: 600; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--navy-900);
  text-wrap: balance;
}
h1 { font-size: clamp(2.125rem, 5.2vw, 3.625rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.625rem, 3.4vw, 2.375rem); }
h3 { font-size: clamp(1.1875rem, 2vw, 1.375rem); line-height: 1.25; }

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

.i {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  padding: .75rem 1.25rem; background: var(--orange); color: var(--navy-950); font-weight: 600;
  border-radius: var(--radius); text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* 3. Layout helpers
   ========================================================================== */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: 0 var(--section); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--navy-900); color: #c9d6e2; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section__head { max-width: 46rem; margin: 0 auto clamp(2rem, 4vw, 3.25rem); text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem; text-align: left; }
.section__head--row h2 { margin: 0; }
.section__head p:not(.eyebrow) { font-size: 1.125rem; color: var(--slate); }
.section--dark .section__head p:not(.eyebrow) { color: #c9d6e2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .625rem; margin: 0 0 1rem;
  font-family: var(--font-display); font-size: .8125rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-700);
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--orange); }
.eyebrow--light { color: #9cc8ec; }
.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--navy-800); font-weight: 500; }

/* 4. Buttons, links & tags
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
  min-height: 3rem; padding: .7rem 1.375rem;
  font-family: var(--font-display); font-size: .9688rem; font-weight: 700; letter-spacing: .01em; line-height: 1.2;
  text-decoration: none; text-align: center; border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .i { transition: transform .2s var(--ease); }
.btn:hover .i:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 3.375rem; padding-inline: 1.75rem; font-size: 1.0313rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--orange); color: var(--navy-950); }
.btn--primary:hover { background: #ff8047; color: var(--navy-950); box-shadow: 0 8px 20px rgba(255, 108, 44, .28); }
.btn--ghost { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn--ghost:hover { background: var(--navy-800); color: var(--white); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: var(--white); background: transparent; }
.btn--ghost-light:hover { background: var(--white); border-color: var(--white); color: var(--navy-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: .5rem;
  font-family: var(--font-display); font-weight: 700; text-decoration: none; color: var(--blue-700);
}
.link-arrow .i { transition: transform .2s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

.tag {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; padding: .3rem .75rem;
  font-family: var(--font-display); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 100px;
}
.tag--alert { background: rgba(255, 108, 44, .16); color: #ffb48f; border: 1px solid rgba(255, 108, 44, .45); }

/* 5. Top bar, header & navigation
   ========================================================================== */
.topbar { background: var(--navy-950); color: #b9c8d6; font-size: .875rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.5rem; }
.topbar__note { display: flex; align-items: center; gap: .5rem; margin: 0; }
.topbar__note .i { color: var(--orange); }
.topbar__links { display: flex; align-items: center; gap: 1.5rem; }
.topbar__links a { display: inline-flex; align-items: center; gap: .5rem; padding-block: .5rem; color: var(--white); text-decoration: none; }
.topbar__links a:hover { color: #ffb48f; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .2s var(--ease); }
.site-header.is-stuck { box-shadow: var(--shadow-md); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand__logo { width: auto; height: 3.25rem; max-width: 15rem; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__list > li > a {
  display: block; padding: .75rem .875rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--navy-900); text-decoration: none;
  border-radius: var(--radius); transition: color .15s, background-color .15s;
}
.nav__list > li > a:hover { color: var(--blue-700); background: var(--blue-50); }
.nav__list a[aria-current="page"] { color: var(--blue-700); }
.nav__list > li > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }

.sub-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2.75rem; margin-left: -.625rem;
  background: none; border: 0; color: var(--navy-900); cursor: pointer; border-radius: var(--radius);
}
.sub-toggle .i { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.sub-toggle[aria-expanded="true"] .i { transform: rotate(180deg); }

.sub {
  position: absolute; top: 100%; left: 0; z-index: 10; width: 20rem; padding: .5rem;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: .625rem .875rem; font-weight: 500; font-size: .9688rem; color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.sub a:hover { background: var(--blue-50); color: var(--blue-700); }

.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 3rem; height: 3rem;
  background: var(--navy-900); border: 0; border-radius: var(--radius); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 1.375rem; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform .25s var(--ease), background-color .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1240px) {
  .sub { left: auto; right: 0; } /* keep the dropdown inside the viewport on narrower desktops */
}
@media (max-width: 1080px) {
  .nav__cta { display: none; }
}
@media (max-width: 900px) {
  .topbar__note { display: none; }
  .topbar__in { justify-content: flex-end; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 7rem); max-height: calc(100dvh - 7rem); overflow-y: auto; overscroll-behavior: contain;
    padding: .5rem var(--gutter) 1.5rem; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__list > li > a { flex: 1; padding: 1rem .25rem; font-size: 1.0625rem; }
  .nav__list > li > a:hover { background: none; }
  .nav__list > li > a[aria-current="page"] { box-shadow: none; }
  .sub-toggle { width: 3rem; height: 3rem; margin: 0; background: var(--blue-50); }
  .sub {
    position: static; display: none; flex-basis: 100%; width: auto; padding: 0 0 .75rem .75rem;
    border: 0; border-left: 3px solid var(--orange); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .has-sub.is-open > .sub { display: block; }
  .sub a { padding: .75rem .875rem; }
  .nav__cta { display: inline-flex; margin-top: 1.25rem; }
}
@media (max-width: 560px) {
  .topbar__links li:first-child { display: none; }
  .brand__logo { height: 2.75rem; max-width: 11.5rem; }
  .site-header__in { min-height: 4.25rem; }
}

/* 6. Hero (homepage) & page hero (inner pages)
   ========================================================================== */
.hero, .page-hero {
  position: relative; color: #cfdbe6; 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),
    radial-gradient(60rem 30rem at 85% -10%, rgba(28, 117, 188, .45), transparent 60%);
  background-size: 48px 48px, 48px 48px, auto;
}
.hero h1, .page-hero h1 { color: var(--white); }
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) 0; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.hero__lead { max-width: 36rem; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; }
.hero__small { margin-top: 1.25rem; font-size: .9375rem; color: #9fb3c6; }
.hero__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

.facts {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.5rem, 6vw, 4.5rem); background: var(--white); color: var(--ink);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 -1px 0 var(--line) inset; border-top: 3px solid var(--orange);
}
.facts li { display: flex; align-items: flex-start; gap: .875rem; padding: 1.375rem 1.5rem; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts .i { width: 1.625rem; height: 1.625rem; margin-top: .15rem; color: var(--blue-600); }
.facts strong { display: block; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; line-height: 1.25; color: var(--navy-900); }
.facts span { display: block; font-size: .9063rem; line-height: 1.45; color: var(--slate); }

.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.page-hero--plain .page-hero__in { grid-template-columns: minmax(0, 48rem); }
.page-hero--center { text-align: center; padding-block: clamp(4rem, 10vw, 7rem); }
.page-hero--center .page-hero__in { justify-content: center; }
.page-hero--center .btn-row { justify-content: center; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.125rem); }
.page-hero__lead { max-width: 40rem; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.6; }
.page-hero__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.crumbs { margin-bottom: 1.25rem; font-size: .875rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: #6f889e; }
.crumbs a { color: #9cc8ec; text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs [aria-current] { color: #cfdbe6; }

@media (max-width: 960px) {
  .hero__in, .page-hero__in { grid-template-columns: 1fr; }
  .hero__media img { aspect-ratio: 16 / 9; }
  .page-hero__media img { aspect-ratio: 16 / 9; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(odd) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts li { padding: 1rem; gap: .625rem; }
  .facts .i { width: 1.375rem; height: 1.375rem; }
  .facts strong { font-size: 1rem; }
  .facts span { font-size: .8438rem; }
  .btn-row .btn { flex: 1 1 100%; }
}

/* 7. Sections, splits & framed media
   ========================================================================== */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(2.25rem, 6vw, 5rem); }
.split--center { align-items: center; }
.split--reverse .split__media { order: -1; }
.split__text h3 { margin-top: 1.75rem; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }

/* Corner-bracket frame used on key images */
.frame { position: relative; }
.frame img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.frame::before, .frame::after { content: ""; position: absolute; width: 3.25rem; height: 3.25rem; pointer-events: none; }
.frame::before { top: -.75rem; left: -.75rem; border-top: 3px solid var(--orange); border-left: 3px solid var(--orange); }
.frame::after { right: -.75rem; bottom: -.75rem; border-right: 3px solid var(--blue-600); border-bottom: 3px solid var(--blue-600); }

.duo { position: relative; padding: 0 0 3.5rem 0; }
.duo__a { width: 84%; }
.duo__b { position: absolute; right: 0; bottom: 0; width: 46%; }
.duo__b img { aspect-ratio: 1 / 1; border: 6px solid var(--white); box-shadow: var(--shadow-md); }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .frame::before { top: -.5rem; left: -.5rem; }
  .frame::after { right: -.5rem; bottom: -.5rem; }
}

/* 8. Service cards
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; }
.card__link {
  display: flex; flex-direction: column; width: 100%; overflow: hidden;
  background: var(--white); color: inherit; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card__link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-600); color: inherit; }
.card__media { overflow: hidden; background: var(--blue-100); }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.05); }
.card__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.375rem 1.375rem; }
.card__num {
  position: absolute; top: -1.125rem; left: 1.375rem; padding: .3rem .625rem;
  font-family: var(--font-display); font-size: .8125rem; font-weight: 700; letter-spacing: .08em;
  background: var(--navy-900); color: var(--white); border-radius: 4px; border-bottom: 2px solid var(--orange);
}
.card__title { margin: .25rem 0 .5rem; font-size: 1.1875rem; }
.card__body p { font-size: .9688rem; line-height: 1.6; color: var(--slate); }
.card__more {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: 1rem;
  font-family: var(--font-display); font-size: .9375rem; font-weight: 700; color: var(--blue-700);
}
.card__more .i { transition: transform .2s var(--ease); }
.card__link:hover .card__more .i { transform: translateX(4px); }

@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards, .cards--three { grid-template-columns: 1fr; } }

/* 9. Features, tiles, checklists & link grid
   ========================================================================== */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.feature { padding: 2rem 1.75rem; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); border-top: 3px solid var(--blue-600); border-radius: var(--radius-lg); }
.feature__icon { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; margin-bottom: 1.25rem; background: rgba(28, 117, 188, .25); color: #9cc8ec; border-radius: var(--radius); }
.feature__icon .i { width: 1.5rem; height: 1.5rem; }
.feature p { font-size: 1rem; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.tile { padding: 2rem 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.tile > .i { width: 2rem; height: 2rem; margin-bottom: 1rem; color: var(--blue-600); }
.tile p { color: var(--slate); font-size: 1rem; }

.checks { display: grid; gap: .625rem; margin-top: 1.5rem; }
.checks li { display: flex; align-items: center; gap: .75rem; font-weight: 500; }
.checks .i { padding: .2rem; width: 1.5rem; height: 1.5rem; background: var(--blue-50); color: var(--blue-700); border-radius: 50%; }

.link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.link-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; min-height: 4.25rem; padding: 1rem 1.25rem;
  font-family: var(--font-display); font-weight: 700; line-height: 1.3; color: var(--navy-900); text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--blue-600); border-radius: var(--radius);
  transition: border-color .2s, background-color .2s, color .2s;
}
.link-grid a:hover { background: var(--navy-900); border-color: var(--navy-900); border-left-color: var(--orange); color: var(--white); }
.link-grid .i { color: var(--orange); }

@media (max-width: 1000px) { .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .features, .tiles { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .link-grid { grid-template-columns: 1fr; } }

/* 10. Emergency panel & call-to-action band
   ========================================================================== */
.emergency { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); overflow: hidden; background: var(--navy-900); color: #cfdbe6; border-radius: var(--radius-lg); border-left: 4px solid var(--orange); }
.emergency__media img { width: 100%; height: 100%; min-height: 18rem; object-fit: cover; }
.emergency__text { padding: clamp(1.75rem, 4.5vw, 3.5rem); }
.emergency h2 { color: var(--white); font-size: clamp(1.5rem, 2.8vw, 2.125rem); }
.emergency .btn--ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.emergency .btn--ghost:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
@media (max-width: 860px) {
  .emergency { grid-template-columns: 1fr; border-left: 0; border-top: 4px solid var(--orange); }
  .emergency__media img { min-height: 0; aspect-ratio: 16 / 9; }
}

.cta-band { background: var(--blue-700); color: #e4eff8; background-image: linear-gradient(120deg, var(--navy-800), var(--blue-700)); }
.cta-band--emergency { background-image: linear-gradient(120deg, var(--navy-950), var(--navy-800)); border-top: 4px solid var(--orange); }
.cta-band__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem 3.5rem; padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.cta-band h2 { color: var(--white); margin-bottom: .4em; }
.cta-band p { max-width: 44rem; }
.cta-band__actions { display: flex; flex-direction: column; gap: .75rem; min-width: 16rem; }
@media (max-width: 860px) {
  .cta-band__in { grid-template-columns: 1fr; }
  .cta-band__actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .cta-band__actions .btn { flex: 1 1 14rem; }
}

/* 11. Service page layout, prose, steps & sidebar
   ========================================================================== */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 21.5rem; align-items: start; gap: clamp(2.5rem, 5vw, 4.5rem); }
.prose { min-width: 0; }
.prose--narrow { max-width: 50rem; margin-inline: auto; }
.prose__intro { padding-left: 1.5rem; border-left: 3px solid var(--orange); font-size: 1.125rem; color: var(--navy-800); }
.prose__section, .prose > section { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.prose > section:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9375rem); padding-top: .25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { display: grid; gap: .5rem; margin: 0 0 1.25rem; }
.prose ul li { position: relative; padding-left: 1.5rem; }
.prose ul li::before { content: ""; position: absolute; left: .125rem; top: .68em; width: .5rem; height: .5rem; background: var(--orange); border-radius: 1px; }

.subcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem; margin-top: 1.75rem; }
.subcard { padding: 1.5rem; background: var(--mist); border: 1px solid var(--line); border-top: 3px solid var(--blue-600); border-radius: var(--radius-lg); }
.subcard h3 { margin-top: 0; font-size: 1.125rem; }
.subcard p { font-size: .9844rem; line-height: 1.65; color: var(--slate); }
.subcards > .subcard:last-child:nth-child(odd) { grid-column: 1 / -1; }

.steps { display: grid; gap: 0; margin-top: 1.75rem; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1.25rem; padding-bottom: 1.75rem; }
.step::before { content: ""; position: absolute; left: 1.5625rem; top: 3.25rem; bottom: 0; width: 2px; background: var(--line); }
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; color: var(--white); background: var(--navy-900);
  border-radius: var(--radius); border-bottom: 3px solid var(--orange);
}
.step h3 { margin: .7rem 0 .5rem; }
.step p { color: var(--slate); font-size: 1rem; }

.sidebar { position: sticky; top: 6.25rem; display: grid; gap: 1.5rem; }
.sidebar__box { padding: 1.75rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.sidebar__box h2 { font-size: 1.25rem; margin-bottom: .625rem; }
.sidebar__box--dark { background: var(--navy-900); border-color: var(--navy-900); border-top: 3px solid var(--orange); color: #cfdbe6; }
.sidebar__box--dark h2 { color: var(--white); }
.sidebar__box--dark p { font-size: .9688rem; margin-bottom: 1.25rem; }
.sidebar__box .btn + .btn { margin-top: .625rem; }
.sidebar__mail { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1rem; padding-block: .375rem; font-size: .9375rem; color: #9cc8ec; text-decoration: none; word-break: break-all; }
.sidebar__mail:hover { color: var(--white); }
.sidebar__list li + li { border-top: 1px solid var(--line); }
.sidebar__list a { display: block; padding: .6875rem 0; font-weight: 500; font-size: .9844rem; color: var(--ink); text-decoration: none; transition: color .15s, padding-left .2s var(--ease); }
.sidebar__list a:hover { color: var(--blue-700); padding-left: .375rem; }

@media (max-width: 1000px) {
  .service-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 680px) {
  .sidebar, .subcards { grid-template-columns: 1fr; }
  .step { grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; }
  .step__num { width: 2.75rem; height: 2.75rem; font-size: .9688rem; }
  .step::before { left: 1.3125rem; top: 2.75rem; }
  .prose__intro { padding-left: 1.125rem; font-size: 1.0625rem; }
}

/* 12. Contact, panel & forms
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(2.25rem, 5vw, 4.5rem); }
.contact-list { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-list > li > .i { width: 2.875rem; height: 2.875rem; padding: .75rem; background: var(--navy-900); color: var(--white); border-radius: var(--radius); border-bottom: 2px solid var(--orange); }
.contact-list span { display: block; font-size: .875rem; color: var(--slate); line-height: 1.4; }
.contact-list a, .contact-list p { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; line-height: 1.35; color: var(--navy-900); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--blue-700); text-decoration: underline; }

.notice { display: flex; gap: 1rem; margin-top: 2rem; padding: 1.25rem 1.375rem; background: #fff4ee; border: 1px solid #ffd2bd; border-left: 4px solid var(--orange); border-radius: var(--radius); }
.notice > .i { width: 1.625rem; height: 1.625rem; margin-top: .125rem; color: var(--orange-700); }
.notice h3 { margin: 0 0 .25rem; font-size: 1.0625rem; }
.notice p { font-size: .9688rem; }

.panel { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.panel__title { font-size: 1.5rem; margin-bottom: 1.25rem; }

.form { display: grid; gap: 1.125rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem; }
.field { display: grid; gap: .375rem; }
.field label { font-weight: 600; font-size: .9375rem; color: var(--navy-900); }
.field label span { color: var(--orange-700); }
.field input, .field textarea {
  width: 100%; padding: .8125rem .9375rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #b8c4cf; border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover, .field textarea:hover { border-color: var(--slate); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(28, 117, 188, .25); }
.form .btn { justify-self: start; }
.form__note { font-size: .875rem; line-height: 1.55; color: var(--slate); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }

/* 13. Registrations
   ========================================================================== */
.regs { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.regs li { display: flex; align-items: center; justify-content: center; background: var(--white); border-radius: var(--radius); }
.regs img { width: 100%; height: 100%; object-fit: contain; }
.regs--footer li { width: 4.75rem; height: 4.75rem; padding: .375rem; }
.regs--large { justify-content: center; gap: 1.5rem; }
.regs--large li { width: 10rem; height: 10rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
@media (max-width: 520px) { .regs--large li { width: 6.75rem; height: 6.75rem; padding: .625rem; } .regs--large { gap: .75rem; } }

/* 14. Footer & mobile action bar
   ========================================================================== */
.site-footer { background: var(--navy-950); color: #a9bac9; font-size: .9688rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(3rem, 6vw, 4.5rem); }
.site-footer__title { margin-bottom: 1.125rem; font-size: .875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.site-footer__title::after { content: ""; display: block; width: 2rem; height: 2px; margin-top: .75rem; background: var(--orange); }
.site-footer__title--gap { margin-top: 2rem; }
.site-footer a { color: #d5e0ea; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__col ul:not(.regs) li + li { margin-top: .5rem; }
.site-footer__contact li { display: flex; align-items: center; gap: .75rem; }
.site-footer__contact .i { color: var(--orange); }
.site-footer__contact a { word-break: break-word; }
.site-footer__base { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; }
.site-footer__base-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem; }
.site-footer__base p { margin: 0; }
.site-footer__base ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-footer__base a { display: inline-block; padding-block: .25rem; }

@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

.action-bar { display: none; }
@media (max-width: 700px) {
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1.4fr 1fr;
    box-shadow: 0 -4px 20px rgba(6, 22, 36, .25); padding-bottom: env(safe-area-inset-bottom);
    background: var(--navy-900);
  }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.375rem; font-family: var(--font-display); font-weight: 700; font-size: .9688rem; text-decoration: none; }
  .action-bar__call { background: var(--orange); color: var(--navy-950); }
  .action-bar__quote { background: var(--navy-900); color: var(--white); }
  body { padding-bottom: 3.375rem; }
  .nav { max-height: calc(100vh - 10.5rem); max-height: calc(100dvh - 10.5rem); }
}

/* 15. Motion preferences & print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .topbar, .site-header, .action-bar, .cta-band, .sidebar, .btn-row { display: none !important; }
  .hero, .page-hero { background: none; color: #000; }
  .hero h1, .page-hero h1 { color: #000; }
  body { padding: 0; font-size: 11pt; }
}

/* Image captions (page hero and feature images) */
figcaption { margin-top: .75rem; font-size: .8438rem; line-height: 1.5; color: var(--slate); }
.hero figcaption, .page-hero figcaption { color: #9fb3c6; }
.frame figcaption { padding-left: .125rem; }

/* 16. Hero background photo & quote panel
   ========================================================================== */
.hero--bg { position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .22; filter: saturate(.7); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 36, 56, .92) 0%, rgba(10, 36, 56, .6) 55%, rgba(10, 36, 56, .35) 100%); }
.hero--bg > .container { position: relative; z-index: 1; }
.hero__in, .page-hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 25rem); align-items: center; }
.page-hero--plain .page-hero__in { grid-template-columns: minmax(0, 48rem); }
.page-hero--center .page-hero__in { justify-content: center; }
.page-hero__tel { color: var(--white); font-weight: 700; white-space: nowrap; }

.quote-panel { padding: 1.5rem 1.5rem 1.375rem; background: var(--white); color: var(--ink); border-radius: var(--radius-lg); border-top: 4px solid var(--orange); box-shadow: 0 20px 50px rgba(6, 22, 36, .35); }
.quote-panel__title { margin-bottom: .25rem; font-size: 1.375rem; color: var(--navy-900); }
.quote-panel__sub { margin-bottom: 1.125rem; font-size: .9063rem; color: var(--slate); }
.form--compact { gap: .75rem; }
.form--compact .field label { font-size: .875rem; }
.form--compact .field input, .form--compact .field textarea { padding: .625rem .8125rem; font-size: .9688rem; }
.form--compact .field textarea { min-height: 5rem; }
.form--compact .form__note { font-size: .8125rem; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot: hidden from people, visible to bots */
.form { position: relative; }

.prose__figure { margin-bottom: clamp(2rem, 4vw, 2.75rem); }
.prose__figure img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

@media (max-width: 960px) {
  .hero__in, .page-hero__in { grid-template-columns: 1fr; }
  .hero__bg-img { opacity: .18; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(10, 36, 56, .85), rgba(10, 36, 56, .6)); }
  .quote-panel { max-width: 34rem; }
}


/* 17. Location pages ---------------------------------------------------- */
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.area-card { display: flex; flex-direction: column; padding: 1.75rem 1.5rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue-600); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.area-card__code { margin: 0 0 .75rem; font-family: var(--font-display); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-700); }
.area-card h3 { margin-bottom: .5rem; font-size: 1.375rem; }
.area-card h3 a { color: var(--navy-900); text-decoration: none; }
.area-card h3 a::after { content: ""; position: absolute; inset: 0; }
.area-card { position: relative; }
.area-card h3 a:hover { color: var(--blue-700); }
.area-card p:not(.area-card__code) { font-size: .9688rem; color: var(--slate); }
.area-card .card__more { margin-top: auto; padding-top: 1rem; }
.prose__cta { padding-top: 2rem; border-top: 1px solid var(--line); }
.prose .subcards { margin-top: 1.25rem; }
@media (max-width: 960px) { .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .area-grid { grid-template-columns: 1fr; } }
