/* Melby Generator Solutions - see DESIGN.md for brand tokens */

/* --- fonts (self-hosted) --- */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/oswald/oswald-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/oswald/oswald-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/oswald/oswald-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/oswald/oswald-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter/inter-latin-700-normal.woff2") format("woff2");
}

:root {
  --brand-black: #000000;
  --brand-green: #02ad90;
  --brand-dark: #001710;
  --brand-bluish: #055271;
  --brand-blue-green: #04727b;
  --brand-greenish: #00e4a2;
  --brand-white: #ffffff;

  --color-bg: var(--brand-white);
  --color-bg-elevated: var(--brand-white);
  --color-bg-muted: #f3faf8;
  --color-text: var(--brand-black);
  --color-text-muted: #3d4a46;
  --color-accent: var(--brand-green);
  --color-accent-hover: var(--brand-blue-green);
  --color-accent-bright: var(--brand-greenish);
  --color-secondary: var(--brand-bluish);
  --color-border: #cfe3de;
  --color-on-accent: var(--brand-white);
  --color-footer-bg: var(--brand-dark);
  --color-footer-muted: #b7cdc4;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --fs-hero: clamp(2.25rem, 5vw, 3.1rem);
  --fs-h2: clamp(1.5rem, 2.5vw, 2rem);
  --fs-body: 1rem;

  --container: 72rem;
  --section-space: clamp(2.5rem, 5vw, 4.5rem);
  --column-gap: 100px;
  --radius: 0.25rem;
  --header-height: 5.75rem;
  --focus-ring: 2px solid var(--color-accent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-secondary);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--brand-dark);
}

/* Oswald display treatment - titles only, not FAQ/card h3 copy */
.hero__title,
.page-hero__title,
.section__title,
.faq-section__title,
.site-footer__heading,
.site-header__brand {
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

p {
  margin: 0 0 1rem;
  max-width: 42rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-on-accent);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.btn--outline-on-dark {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--brand-white);
}

.btn--outline-on-dark:hover {
  border-color: var(--brand-greenish);
  color: var(--brand-greenish);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-on-accent);
}

.btn--secondary:hover {
  background: var(--brand-blue-green);
  color: var(--color-on-accent);
}

/* --- site-header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
}

.site-header__promo {
  background: var(--brand-dark);
  color: var(--brand-white);
}

.site-header__promo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0;
  text-align: center;
}

.site-header__promo-text {
  margin: 0;
  max-width: none;
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  font-weight: 500;
  line-height: 1.35;
}

.site-header__bar {
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
}

.site-header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: var(--header-height);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  max-width: 14rem;
  line-height: 0;
}

.site-header__logo {
  display: block;
  width: auto;
  height: clamp(3.25rem, 7vw, 4.75rem);
  max-width: 100%;
}

.site-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  cursor: pointer;
  color: var(--brand-dark);
}

.site-header__toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.25rem;
}

.site-header__toggle-bars > span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.site-header__nav-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 110;
  margin-top: 20px;
  background: transparent;
  pointer-events: none;
}

.site-header__nav-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header__nav {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  pointer-events: auto;
  background: var(--brand-black);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  padding: 0 1rem;
  overflow: visible;
}

/* Generator cord + unit flanking the offset menu */
.nav-deco {
  position: absolute;
  top: 50%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.nav-deco--cord {
  left: 0;
  width: clamp(4.5rem, 9vw, 7.5rem);
  height: auto;
  transform: translate(calc(-100% + 0.85rem), -50%);
}

.nav-deco--generator {
  right: 0;
  width: clamp(5.5rem, 11vw, 9rem);
  height: auto;
  transform: translate(calc(100% - 0.55rem), -50%);
}

.nav-deco__cord-line {
  stroke: #1a2e28;
  stroke-width: 5;
}

.nav-deco__cord-stripe {
  stroke: var(--brand-greenish);
  stroke-width: 5;
  stroke-dasharray: 5 7;
  opacity: 0.85;
  animation: nav-cord-flow 1.4s linear infinite;
}

/* Left cord + generator cord: white core, dark outline */
.nav-deco--cord .nav-deco__cord-line,
.nav-deco--generator .nav-deco__cord-line {
  stroke: #1a2e28;
  stroke-width: 6.5;
}

.nav-deco--cord .nav-deco__cord-stripe,
.nav-deco--generator .nav-deco__cord-stripe {
  stroke: var(--brand-white);
  stroke-width: 3.25;
  stroke-dasharray: none;
  opacity: 1;
  animation: none;
}

.nav-deco__plug rect {
  fill: var(--brand-white);
  stroke: var(--brand-black);
  stroke-width: 1.25;
}

.nav-deco__plug rect:first-child {
  fill: var(--brand-black);
  stroke: var(--brand-white);
  stroke-width: 1.25;
}

.nav-deco__body {
  fill: var(--brand-white);
  stroke: var(--brand-black);
  stroke-width: 1.5;
}

.nav-deco__top {
  fill: var(--brand-black);
  stroke: var(--brand-black);
  stroke-width: 1;
}

.nav-deco__vent {
  fill: var(--brand-black);
  stroke: rgba(0, 0, 0, 0.28);
  stroke-width: 1.5;
  paint-order: stroke fill;
}

.nav-deco__dial {
  fill: #0d221c;
  stroke: var(--brand-greenish);
  stroke-width: 1.5;
}

.nav-deco__dial-core {
  fill: var(--brand-greenish);
  animation: nav-dial-pulse 1.8s ease-in-out infinite;
}

.nav-deco__needle {
  stroke: var(--brand-greenish);
  stroke-width: 2.25;
  opacity: 1;
}

.nav-deco__foot,
.nav-deco__outlet {
  fill: #142820;
}

.nav-deco__spark {
  fill: var(--brand-greenish);
  opacity: 0.9;
  animation: nav-spark 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(0, 228, 162, 0.9));
}

.nav-deco__spark--gen {
  animation-delay: 0.35s;
}

@keyframes nav-cord-flow {
  to {
    stroke-dashoffset: -24;
  }
}

@keyframes nav-spark {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@keyframes nav-dial-pulse {
  0%,
  100% {
    fill: var(--brand-greenish);
    opacity: 0.65;
  }
  50% {
    fill: #b8fff0;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-deco__cord-stripe,
  .nav-deco__spark,
  .nav-deco__dial-core {
    animation: none;
  }
}

.site-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.15rem 1.1rem;
  flex-wrap: wrap;
  min-height: 3.15rem;
}

.site-nav__item {
  display: flex;
  align-items: stretch;
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 0.85rem 0.15rem;
  transition: color 0.15s ease;
}

.site-nav__link--button {
  appearance: none;
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.15rem;
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--brand-white);
  cursor: pointer;
  transition: color 0.15s ease;
}

.site-nav__item--has-children > .site-nav__link::after,
.site-nav__item--has-children > .site-nav__link--button::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.15rem;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

.site-nav__item--has-children.is-open > .site-nav__link::after,
.site-nav__item--has-children.is-open > .site-nav__link--button::after {
  margin-top: 0.1rem;
  transform: rotate(225deg);
}

.site-nav__link:hover,
.site-nav__link--button:hover,
.site-nav__item--has-children.is-open > .site-nav__link,
.site-nav__item--has-children.is-open > .site-nav__link--button {
  color: #ffe566;
}

.site-nav__item--has-children {
  position: relative;
}

.site-nav__item--mega {
  position: static;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 130;
  margin: 0;
  padding: 0;
  pointer-events: auto;
}

/* Open state is JS-driven on desktop so the nav-padding gap does not kill hover */
.site-nav__item--has-children.is-open > .mega-menu,
.site-nav__item--has-children:focus-within > .mega-menu {
  display: block;
}

/* Desktop mega menu panel - edit THIS for desktop dropdown padding */
.mega-menu__panel {
  background: var(--brand-black);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: none;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  padding-top: 16px;
  padding-right: 1.25rem;
  padding-bottom: 16px;
  padding-left: 1.25rem;
  color: var(--brand-white);
  pointer-events: auto;
}

.mega-menu__lede {
  margin: 0 0 0.85rem;
  max-width: none;
  color: var(--brand-white);
  font-size: 0.9rem;
}

.mega-menu__grid {
  display: grid;
  gap: 16px;
}

.mega-menu__grid--services,
.mega-menu__grid--resources,
.mega-menu__grid--brands {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mega-menu__card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 24px 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.mega-menu__card:hover {
  border-color: rgba(0, 228, 162, 0.55);
  background: rgba(0, 228, 162, 0.1);
  transform: translateY(-1px);
}

.mega-menu__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-greenish);
}

.mega-menu__copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.mega-menu__title {
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--brand-white);
  line-height: 1.25;
}

.mega-menu__desc {
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

.mega-menu__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 5.5rem;
  padding: 24px 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.mega-menu__brand:hover {
  border-color: rgba(0, 228, 162, 0.55);
  background: rgba(0, 228, 162, 0.1);
  transform: translateY(-1px);
}

.mega-menu__brand-logo {
  width: auto;
  max-width: 4.5rem;
  height: 2rem;
  object-fit: contain;
  background: var(--brand-white);
  border-radius: 0.35rem;
  padding: 0.2rem 0.35rem;
}

.mega-menu__brand-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-white);
  line-height: 1.2;
}

.mega-menu__footer-link {
  display: inline-flex;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-greenish);
  text-decoration: none;
}

.mega-menu__footer-link:hover {
  color: #ffe566;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

@media (min-width: 961px) {
  .site-header__phone.btn--outline {
    border-color: transparent;
  }

  .site-header__phone.btn--outline:hover {
    border-color: transparent;
  }
}

.site-header__phone-icon,
.site-header__quote-short {
  display: none;
}

.site-header__phone-icon {
  line-height: 0;
}

.site-header__phone-icon svg {
  display: block;
}

.site-header__backdrop {
  display: none;
}

.site-header__backdrop:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 23, 16, 0.45);
}

@media (max-width: 1200px) and (min-width: 961px) {
  .mega-menu__grid--services,
  .mega-menu__grid--resources,
  .mega-menu__grid--brands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .site-header__main {
    gap: 0.45rem;
    justify-content: flex-start;
  }

  .site-header__brand {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 11.5rem;
    order: 1;
  }

  .site-header__actions {
    order: 2;
    margin-left: auto;
    flex-shrink: 0;
    gap: 0.35rem;
  }

  .site-header__toggle {
    display: inline-flex;
    order: 3;
    margin-left: 0;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
  }

  /* Mobile: phone icon only */
  .site-header__phone-full {
    display: none;
  }

  .site-header__phone-icon {
    display: inline-flex;
  }

  .site-header__phone {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header__quote-full {
    display: none;
  }

  .site-header__quote-short {
    display: inline;
  }

  .site-header__actions .btn {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* Tablet: full Call + Quote labels when there is room */
  @media (min-width: 721px) {
    .site-header__brand {
      max-width: min(40vw, 13.5rem);
      flex: 0 1 auto;
    }

    .site-header__phone-full {
      display: inline;
    }

    .site-header__phone-icon {
      display: none;
    }

    .site-header__phone {
      width: auto;
      height: auto;
      padding-left: 0.85rem;
      padding-right: 0.85rem;
    }

    .site-header__quote-full {
      display: inline;
    }

    .site-header__quote-short {
      display: none;
    }

    .site-header__actions .btn {
      padding-left: 0.85rem;
      padding-right: 0.85rem;
      font-size: 0.9rem;
    }
  }

  /* Extra-small phones: keep hamburger visible */
  @media (max-width: 380px) {
    .site-header__brand {
      max-width: 7.5rem;
    }

    .site-header__actions .btn {
      padding-left: 0.55rem;
      padding-right: 0.55rem;
      font-size: 0.72rem;
    }

    .site-header__phone,
    .site-header__toggle {
      width: 2.25rem;
      height: 2.25rem;
    }
  }

  .site-header__nav-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0.75rem;
    background: transparent;
    pointer-events: auto;
  }

  .nav-deco {
    display: none;
  }

  .site-header__nav {
    display: none;
    padding: 0.75rem 1rem 1rem;
    box-shadow: 0 10px 28px rgba(0, 23, 16, 0.1);
  }

  .site-header__nav.is-open {
    display: block;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .site-nav__item {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__link,
  .site-nav__link--button {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0;
    white-space: normal;
  }

  /* Keep dropdown chevron on the right, vertically centered, 4px from the text */
  .site-nav__item--has-children {
    width: 100%;
    flex-direction: column;
  }

  .site-nav__item--has-children > .site-nav__link,
  .site-nav__item--has-children > .site-nav__link--button {
    justify-content: space-between;
    gap: 4px;
    padding-right: 4px;
  }

  .site-nav__item--has-children > .site-nav__link::after,
  .site-nav__item--has-children > .site-nav__link--button::after {
    margin-top: 0;
    margin-left: auto;
    align-self: center;
  }

  .site-nav__item--has-children.is-open > .site-nav__link::after,
  .site-nav__item--has-children.is-open > .site-nav__link--button::after {
    margin-top: 0;
  }

  .mega-menu {
    position: static;
    display: none;
    padding: 0;
  }

  .site-nav__item--has-children.is-open > .mega-menu,
  .site-nav__item--has-children:focus-within > .mega-menu {
    display: block;
  }

  /* Avoid hover-forced open on touch when closed */
  .site-nav__item--has-children:hover > .mega-menu {
    display: none;
  }

  .site-nav__item--has-children.is-open:hover > .mega-menu,
  .site-nav__item--has-children.is-open > .mega-menu {
    display: block;
  }

  /* Mobile only (max-width: 960px) - does not affect desktop mega menus */
  .mega-menu__panel {
    margin: 0.15rem 0 0.65rem;
    padding-top: 16px;
    padding-right: 0.85rem;
    padding-bottom: 16px;
    padding-left: 0.85rem;
    box-shadow: none;
  }

  .mega-menu__grid {
    gap: 8px;
  }

  .mega-menu__grid--services,
  .mega-menu__grid--resources,
  .mega-menu__grid--brands {
    grid-template-columns: 1fr;
  }

  /* Mobile: plain list rows — icon + title only, no card chrome */
  .mega-menu__card {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    transform: none;
  }

  .mega-menu__card:hover {
    border-color: transparent;
    background: transparent;
    transform: none;
    color: #ffe566;
  }

  .mega-menu__card:hover .mega-menu__title {
    color: #ffe566;
  }

  .mega-menu__icon {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
  }

  .mega-menu__icon svg {
    width: 20px;
    height: 20px;
  }

  .mega-menu__copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .mega-menu__title {
    font-size: 0.95rem;
  }

  .mega-menu__desc {
    display: none;
  }

  .mega-menu__brand {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    min-height: 0;
    padding: 0.35rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
    gap: 0.75rem;
    transform: none;
  }

  .mega-menu__brand:hover {
    border-color: transparent;
    background: transparent;
    transform: none;
  }

  .mega-menu__brand-logo {
    height: 1.5rem;
    max-width: 3.25rem;
  }
}

/* --- hero / page-hero --- */
.hero {
  position: relative;
  min-height: min(78vh, 40rem);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--section-space) + 1rem + 40px) 0 var(--section-space);
  color: var(--brand-white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(0, 228, 162, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(5, 82, 113, 0.45), transparent 50%),
    linear-gradient(145deg, var(--brand-dark) 0%, #013528 42%, var(--brand-bluish) 100%);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 23, 16, 0.2), rgba(0, 23, 16, 0.78));
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem var(--column-gap);
  align-items: center;
}

.hero__visual {
  width: 100%;
  max-width: 26rem;
  min-height: 26rem;
  justify-self: end;
}

.hero-roll {
  --hero-roll-height: 26rem;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  height: var(--hero-roll-height);
}

.hero-roll__box {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.hero-roll__banner {
  width: 100%;
  height: 0;
  overflow: hidden;
  background: var(--brand-green);
  border: 0;
  border-radius: var(--radius);
}

.hero-roll__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  height: var(--hero-roll-height);
  padding: 6px 0.35rem;
  box-sizing: border-box;
  font-family: var(--font-display);
  font-size: clamp(1.155rem, 2.2vw, 1.485rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-white);
  line-height: 1;
}

.hero-roll__inner > span {
  display: block;
  flex: 0 0 auto;
  line-height: 1.5;
  height: 1.3em;
}

.hero-roll.is-horizontal {
  flex-direction: column;
  height: auto;
  align-items: stretch;
}

.hero__visual:has(.hero-roll.is-horizontal),
.hero__visual:has(.hero-roll.is-spun) {
  min-height: 0;
}

.hero-roll.is-horizontal .hero-roll__box {
  flex: 0 0 auto;
  height: auto;
  overflow: visible;
}

.hero-roll.is-horizontal .hero-roll__banner {
  height: auto;
  overflow: visible;
}

.hero-roll.is-horizontal .hero-roll__inner {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  height: auto;
  padding: 0.45rem 1.15rem;
  letter-spacing: 0.08em;
}

.hero-roll.is-horizontal .hero-roll__inner > span {
  display: inline;
  height: auto;
  line-height: 1.2;
}

/* Tablet + mobile: 2x2 word tiles (JS adds .is-compact) */
.hero-roll.is-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 16px;
  height: auto;
  width: 100%;
  flex-direction: unset;
  align-items: stretch;
}

.hero-roll.is-compact .hero-roll__box {
  flex: none;
  height: auto;
  min-width: 0;
  overflow: visible;
}

.hero-roll.is-compact .hero-roll__banner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 0.65rem 0.5rem;
}

.hero-roll.is-compact .hero-roll__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  padding: 0;
  letter-spacing: 0.08em;
  font-size: clamp(0.72rem, 3.1vw, 0.95rem);
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  transform: none;
  flex-direction: row;
}

.hero-roll.is-compact .hero-roll__inner > span {
  display: inline;
  height: auto;
  line-height: 1.2;
}

.hero-roll.is-compact .hero-roll__box.is-revealed {
  opacity: 1;
  transform: none;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-greenish);
  margin: 0 0 0.85rem;
}

.hero__title {
  color: var(--brand-white);
  max-width: 16ch;
  margin-bottom: 16px;
}

.hero__lede {
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  font-size: 1.125rem;
  margin: 0 0 24px;
}

.hero__actions,
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hero__actions {
  margin-top: 0;
}

.hero__actions--form-cue {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.hero-form-cue {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand-greenish);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero-form-cue__label {
  white-space: nowrap;
}

.hero-form-cue__arrow {
  flex: 0 0 auto;
  color: inherit;
  overflow: visible;
}

.hero-form-cue__arrow--desktop {
  display: block;
  margin-left: 0.15rem;
  margin-bottom: 0.85rem;
}

.hero-form-cue__arrow--mobile {
  display: none;
}

.hero__inner--solo {
  grid-template-columns: 1fr;
}

.hero__inner--with-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 100px;
  align-items: start;
}

.hero__form {
  width: 100%;
  max-width: none;
  min-width: 0;
  justify-self: stretch;
}

.hero__aside {
  width: 100%;
  max-width: none;
  min-width: 0;
  justify-self: stretch;
}

.hero-answer {
  background: var(--brand-white);
  color: var(--brand-black);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: 0 12px 32px rgba(0, 23, 16, 0.06);
}

.hero-answer__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin: 0 0 0.85rem;
}

.hero-answer__body {
  color: var(--color-text-muted);
}

.hero-answer__body p {
  margin: 0 0 0.85rem;
  max-width: none;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-answer__body p:last-child {
  margin-bottom: 0;
}

.hero--with-aside .hero__title {
  max-width: 18ch;
}

.hero .breadcrumb {
  color: rgba(255, 255, 255, 0.72);
}

.hero .breadcrumb a {
  color: inherit;
}

.hero .breadcrumb a:hover {
  color: var(--brand-green);
}

.hero--page {
  min-height: min(62vh, 32rem);
  align-items: center;
  padding: calc(var(--section-space) + 40px) 0 var(--section-space);
}

/* No hero CTAs: shorten from the bottom by the button row only; spacer keeps copy where it sat */
.hero--page.hero--no-cta {
  min-height: calc(min(62vh, 32rem) - 2.75rem);
  padding-bottom: max(0px, calc(var(--section-space) - 2.75rem));
}

.hero--page.hero--no-cta .hero__cta-spacer {
  height: 2.75rem;
}

.page-hero {
  padding: calc(var(--section-space) + 40px) 0 var(--section-space);
  background:
    linear-gradient(160deg, rgba(0, 228, 162, 0.1), transparent 42%),
    linear-gradient(180deg, var(--color-bg-muted), var(--brand-white));
}

.page-hero__inner {
  display: grid;
  gap: 2rem;
}

.page-hero--with-form .page-hero__inner {
  grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 22rem);
  gap: var(--column-gap);
  align-items: start;
}

.page-hero__title {
  font-size: var(--fs-hero);
  max-width: 18ch;
}

.hero__title {
  font-size: var(--fs-hero);
}

.page-hero__lede {
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: inherit;
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

@media (max-width: 960px) {
  .page-hero--with-form .page-hero__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero__inner,
  .hero__inner--with-form {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
  }

  .hero__inner--with-form {
    gap: 2.5rem;
  }

  .hero:not(.hero--page) {
    min-height: 0;
    padding: calc(var(--section-space) + 20px) 0 calc(var(--section-space) + 20px);
  }

  .hero:not(.hero--page) .hero__inner {
    gap: 0;
  }

  .hero:not(.hero--page) .hero__visual {
    order: 0;
    margin-top: 60px;
    max-width: none;
    min-height: 0;
    justify-self: stretch;
    width: 100%;
  }

  .hero__form {
    max-width: none;
    justify-self: stretch;
  }

  .hero__actions--form-cue {
    align-items: center;
  }

  .hero-form-cue {
    flex-direction: row;
    align-items: center;
  }

  .hero-form-cue__arrow--desktop {
    display: none;
  }

  .hero-form-cue__arrow--mobile {
    display: block;
    position: absolute;
    top: calc(100% + 0.15rem);
    left: 50%;
    margin-left: 0;
    transform: translateX(-50%);
  }

  .quote-form__fields {
    grid-template-columns: 1fr;
  }

  .quote-form__row--full {
    grid-column: auto;
  }

  .hero__title,
  .page-hero__title {
    max-width: none;
  }
}

/* --- cert bar (under hero) --- */
.cert-bar {
  background: var(--brand-white);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

.cert-bar__inner {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.5rem;
}

.cert-bar__label {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-black);
  flex: 0 1 10rem;
}

.cert-bar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  flex: 1 1 22rem;
  margin: 0;
  min-width: 0;
}

.cert-bar__item {
  flex: 1 1 7rem;
  display: flex;
  justify-content: center;
  min-width: 6rem;
}

.cert-bar__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 11rem;
}

.cert-bar__badge {
  width: clamp(5.5rem, 9vw, 7rem);
  height: clamp(1.5rem, 3vw, 2.15rem);
  object-fit: contain;
  object-position: center;
  display: block;
}

.cert-bar__caption {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-black);
}

@media (max-width: 960px) {
  .cert-bar {
    padding: 40px 0;
  }

  .cert-bar__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
  }

  .cert-bar__label {
    flex: none;
    width: 100%;
  }

  .cert-bar__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    flex: none;
  }

  .cert-bar__item {
    flex: none;
    min-width: 0;
  }

  .cert-bar__figure {
    max-width: none;
    gap: 0.35rem;
  }

  .cert-bar__badge {
    width: 100%;
    max-width: none;
    height: clamp(1.15rem, 4.5vw, 1.65rem);
  }

  .cert-bar__caption {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
  }
}

/* --- sections --- */
.section {
  padding: var(--section-space) 0;
}

.section--elevated {
  background: var(--color-bg-muted);
}

.intro__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--column-gap);
  align-items: stretch;
}

.intro__content {
  min-width: 0;
}

.intro__content .section__title {
  margin-bottom: 1rem;
}

.intro__content > p:last-of-type {
  margin-bottom: 0;
}

.intro__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.intro__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  line-height: 1.35;
}

.intro__list li::before {
  content: "";
  width: 1.35rem;
  height: 1rem;
  margin-top: 0.18rem;
  flex-shrink: 0;
  background: url("/assets/img/icons/generator-mark.svg") center / contain no-repeat;
}

.intro__actions {
  margin-top: 28px;
}

.intro__media {
  min-width: 0;
  min-height: 0;
  position: relative;
  align-self: stretch;
  overflow: hidden;
  border-radius: var(--radius);
}

.intro__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--color-border);
}

.intro__photo--portrait {
  /* Tall headshot (811x1436): anchor on the face, not the top of the frame */
  object-position: 50% 22%;
}

/* Desktop + tablet: photo fills the text-column height */
@media (min-width: 721px) {
  .intro--split .intro__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
}

@media (max-width: 960px) and (min-width: 721px) {
  .intro__inner {
    gap: 1.75rem;
  }
}

/* Phone: stacked layout, same cover + face-framing concept */
@media (max-width: 720px) {
  .intro__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .intro__media {
    position: relative;
    height: min(72vw, 380px);
    min-height: 260px;
    overflow: hidden;
  }

  .intro__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }

  .intro__photo--portrait {
    object-position: 50% 22%;
  }
}

.section__title {
  font-size: var(--fs-h2);
}

.section__lede {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  max-width: 42rem;
}

.home-services .section__lede {
  max-width: calc((100% - var(--column-gap)) / 2);
}

@media (max-width: 720px) {
  .home-services .section__lede {
    max-width: none;
  }
}

.home-services__grid,
.services-hub__grid,
.related-services__grid,
.hub-cards__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin-top: 1.5rem;
}

.hub-cards--resources .hub-cards__grid {
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.hub-cards--faq {
  padding-bottom: calc(var(--section-space) + 12px);
}

/* --- home services tabs --- */
.services-tabs {
  --services-tabs-height: 28rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--column-gap);
  align-items: stretch;
  margin-top: 1.75rem;
  min-height: var(--services-tabs-height);
}

.services-tabs__nav {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.55rem;
  min-width: 0;
  height: var(--services-tabs-height);
}

.services-tabs__tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  font: inherit;
  color: inherit;
  display: flex;
  height: 100%;
}

.services-tabs__banner {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background: var(--brand-dark);
  border-radius: var(--radius);
  transform-origin: center center;
  will-change: transform;
  transition: box-shadow 0.25s ease;
}

.services-tabs__tab.has-image .services-tabs__banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--services-tab-image);
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
  z-index: 0;
}

.services-tabs__tab.has-image .services-tabs__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--brand-dark) 70%, transparent);
  transition: background-color 0.25s ease;
  z-index: 1;
}

.services-tabs__tab.has-image:focus-visible .services-tabs__banner::before,
.services-tabs__tab.has-image.is-active .services-tabs__banner::before {
  transform: scale(1.02);
}

.services-tabs__tab.has-image:hover .services-tabs__banner::after,
.services-tabs__tab.has-image:focus-visible .services-tabs__banner::after {
  background: color-mix(in srgb, var(--brand-dark) 62%, transparent);
}

.services-tabs__tab.has-image.is-active .services-tabs__banner::after {
  background: color-mix(in srgb, var(--brand-dark) 55%, transparent);
}

.services-tabs__letters {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  height: 100%;
  padding: 0.55rem 0.3rem;
  box-sizing: border-box;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-white);
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.services-tabs__letters > span {
  display: block;
  flex: 0 0 auto;
  line-height: 1.45;
  height: 1.25em;
}

.services-tabs__tab:hover .services-tabs__banner,
.services-tabs__tab:focus-visible .services-tabs__banner {
  outline: none;
}

.services-tabs__tab:not(.has-image):hover .services-tabs__banner,
.services-tabs__tab:not(.has-image):focus-visible .services-tabs__banner {
  background: var(--brand-blue-green);
}

.services-tabs__tab:focus-visible .services-tabs__banner {
  box-shadow: 0 0 0 3px rgba(2, 173, 144, 0.45);
}

.services-tabs__tab.is-active .services-tabs__banner {
  box-shadow: 0 10px 24px rgba(0, 23, 16, 0.18);
}

.services-tabs__tab:not(.has-image).is-active .services-tabs__banner {
  background: var(--brand-green);
}

.services-tabs__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.services-tabs__panels {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: flex-start;
}

.services-tabs__panel {
  width: 100%;
  padding: 0.25rem 0;
}

.services-tabs__panel[hidden] {
  display: none;
}

.services-tabs__title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  max-width: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.services-tabs__copy {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  max-width: 34rem;
}

.services-tabs__copy:last-of-type {
  margin-bottom: 1.5rem;
}

@media (max-width: 960px) {
  .services-tabs {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    --services-tabs-height: 16rem;
    min-height: 0;
  }

  .services-tabs__nav {
    height: var(--services-tabs-height);
  }

  .services-tabs__letters {
    font-size: clamp(0.8rem, 3.2vw, 1.05rem);
    padding: 0.4rem 0.2rem;
  }

  .services-tabs__panels {
    align-items: flex-start;
  }
}

.trust-bar {
  --trust-cord-outline: #4a5a55;
  background: var(--brand-black);
  color: var(--brand-white);
}

.trust-bar .section__title {
  color: var(--brand-white);
  margin: 0;
  text-align: center;
}

.trust-bar__inner {
  overflow: visible;
}

.trust-bar__head {
  padding-left: clamp(10rem, 18vw, 14rem);
  margin-bottom: 40px;
}

.trust-bar__stage {
  position: relative;
  margin-top: 0;
  overflow: visible;
  padding-left: clamp(10rem, 18vw, 14rem);
}

.trust-bar__cord {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.trust-bar__spark-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.trust-bar__grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  align-items: stretch;
}

.trust-bar__cord-outline {
  stroke: var(--trust-cord-outline);
  stroke-width: 11;
  fill: none;
}

.trust-bar__cord-core {
  stroke: var(--brand-white);
  stroke-width: 5;
  fill: none;
}

.trust-bar__cord-spark-glow {
  stroke: rgba(255, 224, 50, 0.55);
  stroke-width: 10;
  fill: none;
  opacity: 0;
  pointer-events: none;
}

.trust-bar__cord-spark {
  stroke: #ffe432;
  stroke-width: 3.5;
  fill: none;
  opacity: 0;
  pointer-events: none;
}

.trust-bar__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--brand-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem 1.35rem;
  min-height: 10.5rem;
  box-shadow: 0 8px 22px rgba(0, 23, 16, 0.06);
  will-change: transform, box-shadow;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.trust-bar__card.is-powered {
  border-color: #ffe432;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 228, 50, 0.95), 0 0 32px rgba(255, 228, 50, 0.9), 0 0 60px rgba(255, 200, 0, 0.7);
}

.trust-bar__card.is-powered .trust-bar__icon {
  color: var(--brand-green);
  filter: drop-shadow(0 0 8px rgba(255, 228, 50, 0.55));
}

.trust-bar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--brand-green);
  flex-shrink: 0;
}

.trust-bar__icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.trust-bar__text {
  margin: 0;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text);
}

.trust-bar__gen {
  position: absolute;
  left: 0.25rem;
  right: auto;
  top: 50%;
  width: clamp(10rem, 17vw, 13.5rem);
  height: auto;
  transform: translateY(-50%) scaleX(-1);
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.trust-bar__gen .nav-deco__cord-line {
  stroke: var(--trust-cord-outline);
  stroke-width: 6.5;
}

.trust-bar__cord-stripe {
  stroke: var(--brand-white);
  stroke-width: 3.25;
  stroke-dasharray: none;
  opacity: 1;
  animation: none;
}

.trust-bar__gen .nav-deco__top,
.trust-bar__gen .nav-deco__foot {
  stroke: var(--trust-cord-outline);
  stroke-width: 1.5;
}

.trust-bar__gen .nav-deco__dial-core {
  animation: none;
}

.trust-bar__gen .nav-deco__needle-spin {
  transform: none;
}

@media (max-width: 960px) {
  .trust-bar__head,
  .trust-bar__stage {
    padding-left: 0;
  }

  .trust-bar__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .trust-bar__cord,
  .trust-bar__spark-layer,
  .trust-bar__gen {
    display: none;
  }
}

@media (max-width: 560px) {
  .trust-bar__grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: transparent;
  border-top: 2px solid var(--brand-green);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0.1rem 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-top-color: var(--brand-blue-green);
  transform: translateY(-2px);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.service-card__title a {
  color: inherit;
  text-decoration: none;
}

.service-card__title a:hover {
  color: var(--color-accent);
}

.service-card p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* FAQ / resource hub cards — match trust-bar + brands-handled cards */
.hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--brand-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem 1.35rem;
  min-height: 9.5rem;
  box-shadow: 0 8px 22px rgba(0, 23, 16, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.hub-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* FAQ topic cards: same electric “powered” glow as home trust-bar cards */
.hub-cards--faq .hub-card {
  will-change: transform, box-shadow;
  transition:
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.hub-cards--faq .hub-card:hover,
.hub-cards--faq .hub-card:focus-visible {
  border-color: #ffe432;
  background: #ffffff;
  transform: none;
  box-shadow:
    0 0 0 2px rgba(255, 228, 50, 0.95),
    0 0 32px rgba(255, 228, 50, 0.9),
    0 0 60px rgba(255, 200, 0, 0.7);
}

.hub-cards--faq a.hub-card:hover .hub-card__title,
.hub-cards--faq a.hub-card:focus-visible .hub-card__title {
  color: inherit;
}

.hub-card:hover {
  border-color: var(--brand-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 23, 16, 0.08);
}

a.hub-card:hover .hub-card__title {
  color: var(--color-accent);
}

.hub-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.25;
  transition: color 0.15s ease;
}

.hub-card p {
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* --- brands we handle --- */
.brands-handled--elevated {
  background: var(--color-bg-muted);
}

.brands-handled__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--column-gap);
  align-items: center;
}

.brands-handled__content {
  min-width: 0;
}

.brands-handled__lede {
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.brands-handled__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
}

.brands-handled__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 9.5rem;
  padding: 1.25rem 1rem;
  text-decoration: none;
  color: inherit;
  background: var(--brand-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.brands-handled__card:hover {
  border-color: var(--brand-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 23, 16, 0.08);
}

.brands-handled__logo {
  display: block;
  width: auto;
  max-width: 8.5rem;
  max-height: 3.25rem;
  height: auto;
  object-fit: contain;
}

.brands-handled__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

@media (max-width: 960px) {
  .brands-handled__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .brands-handled__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .brands-handled__cards {
    grid-template-columns: 1fr;
  }
}

.content-block {
  padding: var(--section-space) 0;
}

.content-block + .content-block {
  padding-top: 0;
}

.content-block--elevated,
.content-block--elevated + .content-block,
.content-block + .content-block--elevated {
  padding-top: var(--section-space);
}

.content-block--elevated {
  background: var(--color-bg-muted);
}

.content-block__inner {
  display: grid;
  gap: 0.35rem;
}

.content-block__inner--split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--column-gap);
  align-items: start;
}

.content-block__inner--split-reverse .content-block__content {
  order: 2;
}

.content-block__inner--split-reverse .content-block__media {
  order: 1;
}

.content-block__content {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.content-block__content .section__title {
  margin-bottom: 1rem;
}

.content-block__content > p:last-of-type {
  margin-bottom: 0;
}

.content-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.content-block__eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin: 0 0 0.35rem;
}

.content-block__list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.5rem 0 0;
  max-width: 42rem;
}

.content-block__list li {
  margin-bottom: 0.35rem;
}

.content-block__list--marks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-block__list--marks li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  line-height: 1.35;
}

.content-block__list--marks li::before {
  content: "";
  width: 1.35rem;
  height: 1rem;
  margin-top: 0.18rem;
  flex-shrink: 0;
  background: url("/assets/img/icons/generator-mark.svg") center / contain no-repeat;
}

.content-block__steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  max-width: 42rem;
}

.content-block__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.content-block__step-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--brand-green);
  min-width: 2.25rem;
}

.content-block__step-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--color-text);
  padding-top: 0.2rem;
}

.content-block__media {
  min-width: 0;
}

.content-block__photo {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--color-border);
}

@media (max-width: 960px) {
  .content-block__inner--split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .content-block__inner--split-reverse .content-block__content {
    order: 1;
  }

  .content-block__inner--split-reverse .content-block__media {
    order: 2;
  }

  .content-block__photo {
    height: 320px;
  }
}

.service-areas {
  background: var(--brand-dark);
  color: var(--brand-white);
}

.service-areas__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--column-gap);
  align-items: stretch;
}

.service-areas__visual {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  height: 100%;
  align-self: stretch;
}

.service-areas__map {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.service-areas__content {
  min-width: 0;
}

.service-areas__title {
  color: var(--brand-white);
  margin-bottom: 0.85rem;
}

.service-areas__lede {
  color: var(--color-footer-muted);
  margin: 0 0 1.5rem;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.service-areas__cities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
}

.service-areas__cities li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  color: var(--brand-white);
  font-weight: 500;
  line-height: 1.35;
}

.service-areas__cities li::before {
  content: "";
  width: 1.35rem;
  height: 1rem;
  margin-top: 0.18rem;
  flex-shrink: 0;
  background: url("/assets/img/icons/generator-mark-on-dark.svg") center / contain no-repeat;
}

@media (max-width: 960px) {
  .service-areas__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-areas__visual {
    display: block;
  }

  .service-areas__map {
    width: 100%;
    height: auto;
    max-width: 28rem;
    margin-inline: auto;
    object-fit: contain;
  }

  .service-areas__cities {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .service-areas__cities {
    grid-template-columns: 1fr;
  }
}

/* --- faq --- */
.faq-section {
  padding: var(--section-space) 0;
}

.faq-section--elevated {
  background: var(--color-bg-muted);
}

.faq-section--dark {
  background: var(--brand-dark);
  color: var(--brand-white);
}

.faq-section--dark .faq-section__title {
  color: var(--brand-white);
}

.faq-section--dark .faq-list__link {
  background: var(--brand-white);
  border-color: var(--color-border);
  color: var(--brand-dark);
}

.faq-section--dark .faq-list__link:hover {
  border-color: var(--brand-green);
  box-shadow: 0 6px 18px rgba(0, 23, 16, 0.05);
  color: var(--color-accent);
}

.faq-section__title {
  margin-bottom: 0;
  padding-bottom: 24px;
}

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-list__item {
  margin: 0;
}

.faq-list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-elevated);
  text-decoration: none;
  color: var(--brand-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.15s ease;
}

.faq-list__link:hover {
  border-color: var(--brand-green);
  box-shadow: 0 6px 18px rgba(0, 23, 16, 0.05);
  color: var(--color-accent);
}

.faq-list__question {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
}

.faq-list__arrow {
  width: 0.55rem;
  height: 0.55rem;
  flex-shrink: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.7;
}

/* --- quote-form --- */
.quote-form {
  position: relative;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 12px 32px rgba(0, 23, 16, 0.06);
  color: var(--brand-black);
}

.quote-form__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.quote-form__fields > input[type="hidden"] {
  display: none;
}

.quote-form__row--full {
  grid-column: 1 / -1;
}

.quote-form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--brand-black);
}

.quote-form__input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--brand-white);
}

.quote-form__input:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 173, 144, 0.2);
}

.quote-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quote-form__note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  max-width: none;
}

.quote-form__submit {
  width: 100%;
}

.quote-form__recaptcha-note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-text-muted, #667085);
}

.quote-form__recaptcha-note a {
  color: inherit;
}

.quote-form__error {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b42318;
}

.quote-form__error[hidden] {
  display: none;
}

/* Home form-cta and contact page-hero keep single-column fields */
.page-hero .quote-form__fields,
.form-cta--stacked .quote-form__fields {
  grid-template-columns: 1fr;
}

.page-hero .quote-form__row--full,
.form-cta--stacked .quote-form__row--full {
  grid-column: auto;
}

.form-cta,
.cta-band {
  padding: var(--section-space) 0;
}

.form-cta {
  background: var(--color-bg-muted);
}

.form-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--column-gap);
  align-items: start;
}

.form-cta__content {
  min-width: 0;
}

.form-cta__content .section__title {
  margin-bottom: 1rem;
}

.form-cta__lede {
  color: var(--color-text-muted);
  margin: 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.form-cta__copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 34rem;
}

.form-cta__copy p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.form-cta .quote-form {
  min-width: 0;
}

.form-cta .quote-form__note {
  display: none;
}

@media (max-width: 960px) {
  .form-cta__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--brand-dark);
  color: var(--brand-white);
}

.cta-band__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  background-color: var(--brand-dark);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.cta-band__overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--brand-dark) 94%, transparent);
}

.cta-band__content {
  position: relative;
  z-index: 1;
}

.cta-band .section__title {
  color: var(--brand-white);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  padding-top: 4px;
  padding-bottom: 8px;
}

.cta-band a:not(.btn) {
  color: var(--brand-greenish);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cta-band .btn--primary {
  background: var(--brand-green);
  color: var(--brand-white);
}

.cta-band .btn--primary:hover {
  background: var(--brand-greenish);
  color: var(--brand-dark);
}

.cta-band .btn--outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--brand-white);
}

.cta-band .btn--outline:hover {
  border-color: var(--brand-greenish);
  color: var(--brand-greenish);
}

/* --- site-footer --- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--brand-white);
  padding: var(--section-space) 0 1.5rem;
}

.site-footer a {
  color: var(--brand-white);
}

.site-footer a:hover {
  color: var(--brand-greenish);
}

.site-footer__main {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: calc(2rem + 20px);
}

.site-footer__col {
  min-width: 0;
}

.site-footer__heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--brand-white);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
  text-decoration: none;
  line-height: 0;
}

.site-footer__logo {
  display: block;
  width: min(100%, 13.5rem);
  height: auto;
}

.site-footer__blurb,
.site-footer__contact,
.site-footer__links {
  color: var(--color-footer-muted);
  font-size: 0.95rem;
}

.site-footer__blurb {
  max-width: none;
}

.site-footer__links a,
.site-footer__contact a {
  text-decoration: none;
}

.site-footer__links li,
.site-footer__contact li {
  margin-bottom: 0.4rem;
}

.site-footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.85rem;
}

.site-footer__contact-item:last-child {
  margin-bottom: 0;
}

.site-footer__contact-label {
  color: var(--color-footer-muted);
}

.site-footer__contact-value {
  color: var(--brand-white);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.site-footer__contact a.site-footer__contact-value:hover {
  color: var(--brand-greenish);
}

@media (max-width: 960px) {
  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-footer__main {
    grid-template-columns: 1fr;
  }
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
}

.site-footer__legal p {
  margin: 0;
  max-width: none;
  color: var(--color-footer-muted);
}

.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__legal-links a {
  text-decoration: none;
}

.link-list__items {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.link-list__item {
  margin: 0;
}

.link-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0.1rem 1.25rem;
  border-top: 2px solid var(--brand-green);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.15s ease;
}

.link-list__row:hover {
  border-top-color: var(--brand-blue-green);
  transform: translateY(-2px);
  color: var(--brand-green);
}

.link-list__label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
}

.link-list__arrow {
  width: 0.55rem;
  height: 0.55rem;
  flex-shrink: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.7;
}

.sitemap-page__group {
  margin-bottom: 1.5rem;
}

.sitemap-page__group ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.sitemap-page__group li {
  margin-bottom: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .service-card:hover,
  .hub-card:hover,
  .link-list__row:hover {
    transform: none;
  }

  .hub-card:hover {
    box-shadow: 0 8px 22px rgba(0, 23, 16, 0.06);
  }

  .hub-cards--faq .hub-card:hover,
  .hub-cards--faq .hub-card:focus-visible {
    border-color: #ffe432;
    box-shadow:
      0 0 0 2px rgba(255, 228, 50, 0.95),
      0 0 32px rgba(255, 228, 50, 0.9),
      0 0 60px rgba(255, 200, 0, 0.7);
  }

  a.brands-handled__card:hover {
    transform: none;
  }

  .hero-roll.is-compact .hero-roll__box {
    opacity: 1;
    transform: none;
  }
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}
