/* ==========================================================================
   JI ROOFING & EXTERIORS CORP — Core stylesheet
   Palette derived from the company logo (sky blue + white on deep navy).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand blues sampled from the logo badge */
  --blue-50: #f0f9fe;
  --blue-100: #dcf1fc;
  --blue-200: #b6e2f8;
  --blue-300: #84cef2;
  --blue-400: #4fb3e8; /* primary logo blue */
  --blue-500: #2f9bd8;
  --blue-600: #1e7eb8;
  --blue-700: #196492;
  --blue-800: #174f72;

  /* Deep navy for contrast surfaces */
  --navy-900: #061625;
  --navy-800: #0b2135;
  --navy-700: #122e46;
  --navy-600: #1b3e5c;

  /* Warm accent for conversion elements */
  --amber-300: #ffd48a;
  --amber-400: #ffbc4a;
  --amber-500: #f79a1e;
  --amber-600: #d87d06;

  /* Neutrals */
  --ink: #0e1c28;
  --body: #4a5d6f;
  --muted: #7e90a1;
  --line: #e3ebf2;
  --surface: #ffffff;
  --surface-alt: #f5f9fc;

  --ok: #1f9d55;
  --err: #d64545;

  /* Typography */
  --font-display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-hero: clamp(2.5rem, 1.35rem + 4.2vw, 4.5rem);
  --fs-h1: clamp(2.1rem, 1.35rem + 2.9vw, 3.5rem);
  --fs-h2: clamp(1.8rem, 1.25rem + 2.1vw, 2.85rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.75vw, 1.6rem);
  --fs-h4: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
  --fs-lead: clamp(1.03rem, 0.97rem + 0.3vw, 1.19rem);

  /* Space + shape */
  --wrap: 1240px;
  --wrap-narrow: 960px;
  --gutter: clamp(1.1rem, 0.6rem + 2vw, 2.5rem);
  --section-y: clamp(3.75rem, 2.4rem + 5vw, 7.5rem);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(6, 22, 37, 0.06), 0 2px 8px rgba(6, 22, 37, 0.05);
  --sh-md: 0 4px 12px rgba(6, 22, 37, 0.07), 0 14px 32px rgba(6, 22, 37, 0.08);
  --sh-lg: 0 10px 24px rgba(6, 22, 37, 0.09), 0 30px 70px rgba(6, 22, 37, 0.14);
  --sh-blue: 0 10px 28px rgba(47, 155, 216, 0.3);
  --sh-amber: 0 10px 26px rgba(247, 154, 30, 0.34);

  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

/* Inline icons default to a sane size; component rules override as needed. */
svg:not(.sr-only) {
  width: 20px;
  height: 20px;
  flex: none;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--ink);
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: var(--fs-h4);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--blue-700);
}

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.25rem;
}

strong {
  color: var(--ink);
  font-weight: 650;
}

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

[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 300;
  background: var(--navy-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
}

.section--alt {
  background: var(--surface-alt);
}

.section--navy {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.76);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: #fff;
}

.section--shingle {
  background-color: var(--surface-alt);
  background-image: repeating-linear-gradient(
    115deg,
    rgba(79, 179, 232, 0.07) 0 2px,
    transparent 2px 13px
  );
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.25rem, 1.6rem + 2vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  font-size: var(--fs-lead);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.95rem 0.4rem 0.55rem;
  border-radius: var(--r-pill);
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  color: var(--blue-700);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(79, 179, 232, 0.22);
}

.eyebrow--light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--blue-200);
}

.lead {
  font-size: var(--fs-lead);
}

.grid {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
}

.text-center {
  text-align: center;
}

/* Roofline divider — a shallow peak that echoes the logo mark */
.roofline {
  position: relative;
  clip-path: polygon(0 46px, 50% 0, 100% 46px, 100% 100%, 0 100%);
}

@media (max-width: 720px) {
  .roofline {
    clip-path: polygon(0 24px, 50% 0, 100% 24px, 100% 100%, 0 100%);
  }
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue-600);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.65rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: 0.005em;
  line-height: 1.1;
  cursor: pointer;
  text-align: center;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  color: #30210a;
  box-shadow: var(--sh-amber);
}

.btn--primary:hover {
  color: #30210a;
  box-shadow: 0 14px 34px rgba(247, 154, 30, 0.45);
}

.btn--brand {
  --btn-bg: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  box-shadow: var(--sh-blue);
}

.btn--brand:hover {
  box-shadow: 0 14px 34px rgba(47, 155, 216, 0.42);
}

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
  color: var(--blue-700);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--navy-800);
  box-shadow: var(--sh-md);
}

.btn--white:hover {
  color: var(--blue-700);
}

.btn--lg {
  padding: 1.1rem 2.05rem;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-row--center {
  justify-content: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--blue-600);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.22s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. Image placeholders  (replace with assets/img/NN.jpg)
   -------------------------------------------------------------------------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  aspect-ratio: var(--ph-ratio, 4 / 3);
  border-radius: var(--r-md);
  border: 2px dashed var(--blue-300);
  background-color: var(--blue-50);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(79, 179, 232, 0.14) 0 2px,
    transparent 2px 12px
  );
  color: var(--blue-800);
  text-align: center;
  isolation: isolate;
}

.ph__badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--blue-600);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ph__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  max-width: 88%;
  padding: 1.6rem 0.75rem 0.9rem;
}

.ph__dim {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--blue-700);
}

.ph__desc {
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--blue-800);
  opacity: 0.85;
}

.ph__file {
  margin-top: 0.15rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--blue-200);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  color: var(--blue-700);
}

/* Compact variant for small tiles */
.ph--sm .ph__desc {
  display: none;
}

.ph--sm .ph__file {
  font-size: 0.66rem;
}

/* Logo-strip variant */
.ph--logo {
  aspect-ratio: var(--ph-ratio, 22 / 9);
  border-radius: var(--r-sm);
  border-style: dashed;
  background-image: none;
  background-color: #fff;
  border-color: var(--line);
}

.ph--logo .ph__badge {
  position: static;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.6rem;
  padding: 0.15rem 0.45rem;
}

.ph--logo .ph__body {
  padding: 0.5rem;
  gap: 0.2rem;
}

.ph--logo .ph__dim {
  font-size: 0.86rem;
}

.ph--logo .ph__desc {
  font-size: 0.74rem;
  font-weight: 600;
}

/* Full-bleed background variant used behind hero / CTA sections */
.ph--bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: 0;
  align-items: flex-end;
  justify-content: flex-end;
  background-color: var(--navy-800);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.045) 0 2px,
    transparent 2px 14px
  );
}

.ph--bg .ph__badge {
  top: auto;
  left: auto;
  right: 0.85rem;
  bottom: 0.85rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}

.ph--bg .ph__body {
  align-items: flex-end;
  max-width: min(400px, 46%);
  padding: 0 0.85rem 3rem;
  text-align: right;
}

.ph--bg .ph__dim,
.ph--bg .ph__desc {
  color: rgba(255, 255, 255, 0.72);
}

.ph--bg .ph__file {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 860px) {
  .ph--bg .ph__body {
    display: none;
  }
}

/* Real photo drop-in replacement for .ph--bg */
.bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hero art is a wide banner — bias the crop toward the roofline on tall viewports */
.hero .bg-img {
  object-position: 50% 42%;
}

@media (max-width: 900px) {
  .hero .bg-img {
    object-position: 68% 70%;
  }
}

/* Real photo drop-in replacement for inline .ph figures */
.media-img {
  display: block;
  width: 100%;
  aspect-ratio: var(--ph-ratio, 4 / 3);
  object-fit: cover;
  object-position: center;
  border-radius: var(--r-md);
}

.card__media .media-img {
  border-radius: 0;
}

.svc-detail__media .media-img {
  box-shadow: var(--sh-md);
}

/* --------------------------------------------------------------------------
   6. Top bar
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding-block: 0.45rem;
}

.topbar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar__list a,
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.topbar__list a:hover {
  color: var(--blue-300);
}

.topbar svg {
  width: 15px;
  height: 15px;
  color: var(--blue-400);
  flex: none;
}

.topbar__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--amber-400);
  font-weight: 600;
}

@media (max-width: 900px) {
  .topbar__inner {
    justify-content: center;
  }
  .topbar__secondary {
    display: none;
  }
}

@media (max-width: 520px) {
  .topbar__list {
    gap: 0.9rem;
    justify-content: center;
  }
  .topbar__list li:nth-child(n + 3) {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   7. Header + navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.header.is-stuck {
  box-shadow: 0 6px 28px rgba(6, 22, 37, 0.1);
  background: rgba(255, 255, 255, 0.97);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  margin-right: auto;
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(47, 155, 216, 0.3);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  text-transform: uppercase;
}

.brand__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--blue-500);
}

@media (max-width: 420px) {
  .brand__text {
    display: none;
  }
}

.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-800);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--blue-600);
  background: var(--blue-50);
}

.nav__link[aria-current="page"] {
  color: var(--blue-600);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0.3rem;
  left: 0.85rem;
  right: 0.85rem;
  height: 3px;
  border-radius: 3px;
  background: var(--blue-400);
}

.nav__item {
  position: relative;
}

svg.nav__caret {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.nav__item--has-menu:hover .nav__caret,
.nav__item--has-menu:focus-within .nav__caret {
  transform: rotate(180deg);
}

.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 10px);
  width: min(620px, 80vw);
  padding: 0.85rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease),
    visibility 0.2s;
}

.nav__item--has-menu:hover .nav__menu,
.nav__item--has-menu:focus-within .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav__menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-800);
}

.nav__menu a:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

.nav__menu svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--blue-500);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.header__phone {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  padding-right: 0.35rem;
}

.header__phone span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.header__phone strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy-900);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--navy-800);
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-toggle .icon-close {
  display: none;
}

body.nav-open .nav-toggle .icon-close {
  display: block;
}

body.nav-open .nav-toggle .icon-open {
  display: none;
}

@media (max-width: 1120px) {
  .header__phone {
    display: none;
  }
}

@media (max-width: 1040px) {
  /* backdrop-filter would make the header a containing block for the
     fixed-position nav panel, so drop it at mobile widths. */
  .header,
  .header.is-stuck {
    backdrop-filter: none;
    background: #fff;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: var(--nav-top, 84px);
    right: 0;
    bottom: 0;
    left: auto;
    width: min(420px, 90vw);
    display: block;
    padding: 1.25rem 1.5rem 2.5rem;
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform 0.33s var(--ease);
    z-index: 110;
  }

  body.nav-open .nav {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .nav__link {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0.9rem 0.75rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav__link[aria-current="page"]::after {
    display: none;
  }

  .nav__menu,
  .nav__item--has-menu:hover .nav__menu,
  .nav__item--has-menu:focus-within .nav__menu {
    position: static;
    transform: none;
    width: auto;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    display: none;
    border: 0;
    box-shadow: none;
    padding: 0.25rem 0 0.75rem 0.6rem;
    border-left: 2px solid var(--blue-200);
    margin-left: 0.75rem;
  }

  .nav__item--has-menu.is-open .nav__menu {
    display: grid;
  }

  .nav__item--has-menu.is-open .nav__caret {
    transform: rotate(180deg);
  }

  .nav__mobile-cta {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.7rem;
  }

  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(6, 22, 37, 0.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
    z-index: 95;
  }

  body.nav-open .nav-scrim {
    opacity: 1;
    visibility: visible;
  }
}

@media (min-width: 1041px) {
  .nav__mobile-cta {
    display: none;
  }
  .nav__link {
    position: relative;
  }
}

@media (max-width: 560px) {
  .header__cta .btn {
    padding: 0.8rem 1.1rem;
    font-size: 0.9rem;
  }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      105deg,
      rgba(6, 22, 37, 0.94) 0%,
      rgba(6, 22, 37, 0.84) 42%,
      rgba(6, 22, 37, 0.55) 72%,
      rgba(6, 22, 37, 0.4) 100%
    ),
    radial-gradient(
      900px 520px at 85% 15%,
      rgba(79, 179, 232, 0.3),
      transparent 70%
    );
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 3.5vw, 4rem);
  padding-block: clamp(3.5rem, 2rem + 7vw, 7rem);
}

.hero__title {
  font-size: var(--fs-hero);
  color: #fff;
  margin-bottom: 0.5em;
  text-wrap: balance;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--blue-300), var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__copy {
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.26rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 56ch;
  margin-bottom: 2rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 2.1rem;
  padding: 0;
  list-style: none;
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

.hero__trust svg {
  width: 19px;
  height: 19px;
  color: var(--blue-300);
  flex: none;
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

/* Hero quote card */
.quote-card {
  position: relative;
  padding: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--sh-lg);
  color: var(--body);
}

.quote-card__flag {
  position: absolute;
  top: -14px;
  right: 1.6rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  color: #30210a;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--sh-amber);
}

.quote-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.quote-card__sub {
  font-size: 0.9rem;
  margin-bottom: 1.35rem;
}

.quote-card .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.quote-card__fine {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.quote-card__fine svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  color: var(--blue-500);
}

/* --------------------------------------------------------------------------
   9. Quick info band
   -------------------------------------------------------------------------- */
.quickband {
  position: relative;
  z-index: 3;
  margin-top: -3.5rem;
}

.quickband__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

.quickband__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.6rem;
  background: #fff;
  transition: background-color 0.25s var(--ease);
}

.quickband__item:hover {
  background: var(--blue-50);
}

.quickband__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  color: #fff;
  box-shadow: var(--sh-blue);
}

.quickband__icon svg {
  width: 23px;
  height: 23px;
}

.quickband__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--navy-900);
  line-height: 1.25;
}

.quickband__item span {
  font-size: 0.87rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .quickband {
    margin-top: -2rem;
  }
}

/* --------------------------------------------------------------------------
   10. Manufacturer strip
   -------------------------------------------------------------------------- */
.brands__label {
  display: block;
  margin-bottom: 1.75rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}

.brands__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  align-items: center;
}

.brand-logo {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1.1rem 1.35rem;
  min-height: 94px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.brand-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--blue-200);
}

.brand-logo img {
  width: auto;
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   11. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--blue-200);
}

.card__media .ph {
  border: 0;
  border-radius: 0;
  border-bottom: 2px dashed var(--blue-200);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
  padding: 1.5rem 1.5rem 1.65rem;
}

.card__body h3 {
  margin-bottom: 0;
  font-size: 1.22rem;
}

.card__body p {
  font-size: 0.94rem;
  margin-bottom: 0;
}

.card__foot {
  margin-top: auto;
  padding-top: 1rem;
}

.card__tag {
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-700);
}

/* Icon feature card */
.feature {
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.2rem;
  border-radius: 16px;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  color: var(--blue-600);
}

.feature__icon svg {
  width: 26px;
  height: 26px;
}

.feature h3 {
  font-size: 1.14rem;
  margin-bottom: 0.45rem;
}

.feature p {
  font-size: 0.94rem;
  margin: 0;
}

.feature--dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.74);
}

.feature--dark .feature__icon {
  background: rgba(79, 179, 232, 0.16);
  border-color: rgba(79, 179, 232, 0.32);
  color: var(--blue-300);
}

/* Checklist */
.checklist {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.checklist--2col {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.97rem;
}

.checklist li::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e7eb8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 13px no-repeat;
  border: 1px solid var(--blue-200);
}

.section--navy .checklist li::before {
  background-color: rgba(79, 179, 232, 0.18);
  border-color: rgba(79, 179, 232, 0.35);
}

/* --------------------------------------------------------------------------
   12. Split media sections
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  gap: clamp(2rem, 1.2rem + 3.5vw, 4.5rem);
}

.split--reverse > *:first-child {
  order: 2;
}

@media (max-width: 760px) {
  .split--reverse > *:first-child {
    order: 0;
  }
}

.split__media {
  position: relative;
}

.split__media .ph {
  box-shadow: var(--sh-md);
}

.split__media .media-img {
  box-shadow: var(--sh-md);
}

.split__inset {
  position: absolute;
  right: -1.5rem;
  bottom: -2rem;
  width: clamp(130px, 34%, 210px);
  box-shadow: var(--sh-lg);
  border-radius: var(--r-md);
  overflow: hidden;
}

@media (max-width: 560px) {
  .split__inset {
    right: -0.5rem;
    bottom: -1rem;
  }
}

.split__badge {
  position: absolute;
  left: -1.25rem;
  top: 4.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--sh-lg);
}

.split__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--blue-600);
}

.split__badge span {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .split__badge {
    left: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   13. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.7rem + 2.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.section--navy .stat__label {
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   14. Process steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.25rem, 0.8rem + 1.6vw, 2rem);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 2.6rem;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--blue-100);
}

.step::after {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 4.4rem;
  right: -1.5rem;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--blue-200) 0 7px,
    transparent 7px 14px
  );
}

.step:last-child::after {
  display: none;
}

.steps--stack {
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

.steps--stack .step {
  padding-top: 0;
  padding-left: 3.4rem;
  min-height: 2.6rem;
}

.steps--stack .step::before {
  font-size: 2rem;
  top: -0.15rem;
}

.steps--stack .step::after {
  display: none;
}

@media (max-width: 760px) {
  .step::after {
    display: none;
  }
}

.step h3 {
  font-size: 1.12rem;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.94rem;
  margin: 0;
}

.section--navy .step::before {
  color: rgba(79, 179, 232, 0.28);
}

.section--navy .step::after {
  background: repeating-linear-gradient(
    90deg,
    rgba(79, 179, 232, 0.4) 0 7px,
    transparent 7px 14px
  );
}

/* --------------------------------------------------------------------------
   15. Service detail rows (services page)
   -------------------------------------------------------------------------- */
.svc-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: clamp(1.75rem, 1rem + 3vw, 4rem);
  padding-block: clamp(2.25rem, 1.6rem + 2.5vw, 3.75rem);
  border-bottom: 1px solid var(--line);
}

.svc-detail:last-of-type {
  border-bottom: 0;
}

.svc-detail:nth-child(even) .svc-detail__media {
  order: 2;
}

@media (max-width: 760px) {
  .svc-detail:nth-child(even) .svc-detail__media {
    order: 0;
  }
}

.svc-detail__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-500);
}

.svc-detail__kicker svg {
  width: 18px;
  height: 18px;
}

.svc-detail h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.pill-row li {
  padding: 0.38rem 0.85rem;
  border-radius: var(--r-pill);
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-700);
}

/* --------------------------------------------------------------------------
   16. Gallery
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 2.25rem;
}

.filter {
  padding: 0.62rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--navy-800);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}

.filter:hover {
  border-color: var(--blue-300);
  color: var(--blue-700);
}

.filter[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-blue);
}

a.filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

a.filter svg {
  width: 16px;
  height: 16px;
  color: var(--blue-500);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(1rem, 0.7rem + 1vw, 1.5rem);
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.shot:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
}

.shot.is-hidden {
  display: none;
}

.shot__caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(
    to top,
    rgba(6, 22, 37, 0.92),
    rgba(6, 22, 37, 0)
  );
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.shot:hover .shot__caption,
.shot:focus-visible .shot__caption {
  opacity: 1;
  transform: translateY(0);
}

.shot__caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
}

.shot__caption span {
  font-size: 0.82rem;
  color: var(--blue-200);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 22, 37, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__stage {
  width: min(1000px, 100%);
}

.lightbox__stage .ph {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(79, 179, 232, 0.5);
}

.lightbox__stage .ph__dim,
.lightbox__stage .ph__desc {
  color: #fff;
}

.lightbox__stage .ph__file {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.lightbox__meta {
  margin-top: 1.1rem;
  color: #fff;
  text-align: center;
}

.lightbox__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
}

.lightbox__meta span {
  font-size: 0.88rem;
  color: var(--blue-200);
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__btn svg {
  width: 22px;
  height: 22px;
}

.lightbox__btn--close {
  top: 1.25rem;
  right: 1.25rem;
}
.lightbox__btn--prev {
  left: clamp(0.5rem, 2vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__btn--next {
  right: clamp(0.5rem, 2vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
}

/* --------------------------------------------------------------------------
   17. Testimonials
   -------------------------------------------------------------------------- */
.reviews {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
}

.review {
  display: none;
  text-align: center;
  animation: fade-in 0.5s var(--ease);
}

.review.is-active {
  display: block;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.review__stars {
  display: inline-flex;
  gap: 0.2rem;
  margin-bottom: 1.25rem;
  color: var(--amber-400);
}

.review__stars svg {
  width: 22px;
  height: 22px;
}

.review__text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.85vw, 1.6rem);
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  text-wrap: balance;
}

.review__who {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.review__avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.review__who div {
  text-align: left;
}

.review__who strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.review__who span {
  font-size: 0.85rem;
  color: var(--blue-200);
}

.reviews__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.25rem;
}

.reviews__dots {
  display: flex;
  gap: 0.45rem;
}

.reviews__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: all 0.22s var(--ease);
}

.reviews__dot[aria-selected="true"] {
  width: 28px;
  border-radius: var(--r-pill);
  background: var(--blue-400);
}

.reviews__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}

.reviews__arrow:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--blue-400);
}

.reviews__arrow svg {
  width: 19px;
  height: 19px;
}

/* --------------------------------------------------------------------------
   18. FAQ accordion
   -------------------------------------------------------------------------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.35rem 0.25rem;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.14rem);
  font-weight: 650;
  color: var(--navy-900);
  text-align: left;
  cursor: pointer;
}

.faq__q:hover {
  color: var(--blue-600);
}

.faq__sign {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  color: var(--blue-600);
  transition: all 0.25s var(--ease);
}

.faq__q[aria-expanded="true"] .faq__sign {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
  transform: rotate(180deg);
}

.faq__sign svg {
  width: 16px;
  height: 16px;
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}

.faq__q[aria-expanded="true"] + .faq__a {
  grid-template-rows: 1fr;
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  padding: 0 3rem 1.5rem 0.25rem;
  font-size: 0.98rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   19. Forms
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--navy-800);
}

.field label .req {
  color: var(--err);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237e90a1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(79, 179, 232, 0.18);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--err);
  box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12);
}

.field__error {
  min-height: 1.1em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--err);
}

.form-note {
  margin: 0;
  font-size: 0.84rem;
}

.form-error {
  padding: 0.85rem 1rem;
  border: 1px solid #e8baba;
  border-radius: var(--r-sm);
  background: #fff3f3;
  color: #842d2d;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.form-error a {
  color: inherit;
  text-decoration: underline;
}

form[aria-busy="true"] button[type="submit"] {
  cursor: wait;
  opacity: 0.7;
}

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
}

.field--check input {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--blue-600);
}

.field--check label {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--body);
  line-height: 1.5;
}

.form-success {
  display: none;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: var(--r-md);
  background: #effaf3;
  border: 1px solid #bfe8cf;
  color: #155d35;
}

.form-success.is-visible {
  display: flex;
}

.form-success svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--ok);
}

.form-success strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #11502e;
  margin-bottom: 0.2rem;
}

form.is-submitted {
  display: none;
}

/* --------------------------------------------------------------------------
   20. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.pagehead {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
}

.pagehead__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      100deg,
      rgba(6, 22, 37, 0.95) 10%,
      rgba(6, 22, 37, 0.74) 60%,
      rgba(6, 22, 37, 0.58) 100%
    ),
    radial-gradient(
      760px 420px at 88% 0%,
      rgba(79, 179, 232, 0.34),
      transparent 70%
    );
}

.pagehead__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}

.pagehead h1 {
  color: #fff;
  margin-bottom: 0.45em;
}

.pagehead p {
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.78);
  max-width: 62ch;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.crumbs a {
  color: var(--blue-200);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
   21. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
}

.cta__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      100deg,
      rgba(6, 22, 37, 0.96) 25%,
      rgba(11, 33, 53, 0.8) 65%,
      rgba(30, 126, 184, 0.55) 100%
    );
}

.cta__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  padding-block: clamp(3.25rem, 2.2rem + 4vw, 5.5rem);
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  text-wrap: balance;
}

.cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.15rem 1.6rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.cta__phone svg {
  width: 30px;
  height: 30px;
  color: var(--blue-300);
  flex: none;
}

.cta__phone span {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.cta__phone strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #fff;
}

/* --------------------------------------------------------------------------
   22. Areas
   -------------------------------------------------------------------------- */
.area-card {
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.area-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
}

.area-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.18rem;
  margin-bottom: 0.9rem;
}

.area-card h3 svg {
  width: 20px;
  height: 20px;
  color: var(--blue-500);
}

.town-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.town-list li {
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--surface-alt);
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--body);
}

/* --------------------------------------------------------------------------
   23. Contact cards
   -------------------------------------------------------------------------- */
.panel {
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.4rem);
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
}

.panel--quiet {
  background: var(--surface-alt);
  box-shadow: none;
}

.panel--navy {
  background: var(--navy-800);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.74);
  box-shadow: none;
}

.panel--navy h3,
.panel--navy h4 {
  color: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 1rem + 2.5vw, 3rem);
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.hours {
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 0.93rem;
}

.hours div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hours dt {
  font-weight: 600;
  color: #fff;
}

.hours dd {
  margin: 0;
}

.contact-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  color: #fff;
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.contact-card p,
.contact-card a {
  font-size: 0.94rem;
  margin: 0;
}

.contact-card a {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   24. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.94rem;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(1.75rem, 1.2rem + 2.5vw, 3.25rem);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}

.footer__brand img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin-bottom: 1.1rem;
}

.footer__brand p {
  max-width: 38ch;
  font-size: 0.93rem;
}

.footer h4 {
  margin-bottom: 1.15rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.64);
}

.footer a:hover {
  color: var(--blue-300);
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer__contact svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 3px;
  color: var(--blue-400);
}

.social {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.78);
  transition: all 0.22s var(--ease);
}

.social a:hover {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
  transform: translateY(-3px);
}

.social svg {
  width: 18px;
  height: 18px;
}

.footer__brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brands span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-right: 0.5rem;
}

.footer__brands b {
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.82);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* --------------------------------------------------------------------------
   25. Mobile sticky action bar
   -------------------------------------------------------------------------- */
.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(6, 22, 37, 0.1);
}

.actionbar .btn {
  flex: 1;
  padding: 0.85rem 0.75rem;
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .actionbar {
    display: flex;
  }
  body {
    padding-bottom: 76px;
  }
}

/* --------------------------------------------------------------------------
   26. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* --------------------------------------------------------------------------
   27. Print
   -------------------------------------------------------------------------- */
@media print {
  .header,
  .topbar,
  .actionbar,
  .cta,
  .nav-scrim {
    display: none !important;
  }
  body {
    color: #000;
    padding: 0;
  }
}
