/* ==========================================================================
   JBS Builders — After the Storm Design System v2.0
   Custom Static Site Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   00  GOOGLE FONTS
   Loaded via <link> in includes/header.php, not @import. An @import here
   would not be discovered until this file downloads and parses, which
   serializes the font request behind the stylesheet and delays first paint.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   01  DESIGN TOKENS (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --color-storm:        #171B24;
  --color-storm-light:  #2A3040;
  --color-signal:       #EEC643;
  --color-signal-dark:  #80660E;  /* 5.5:1 on white, 4.7:1 on Clearsky */
  --color-overcast:     #5A6170;
  --color-clearsky:     #EDEEF1;
  --color-clearsky-mid: #D4D6DB;
  --color-redline:      #D03B20;
  --color-white:        #FFFFFF;

  /* Typography */
  --font-heading: 'Bricolage Grotesque', 'Trebuchet MS', 'Gill Sans', sans-serif;
  --font-body:    'Lora', Georgia, 'Palatino Linotype', serif;
  --font-mono:    'JetBrains Mono', 'Cascadia Code', Consolas, monospace;

  /* Spacing — 4px base, 8-point grid */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Border Radius */
  --radius-btn:   4px;
  --radius-input: 4px;
  --radius-card:  6px;
  --radius-modal: 8px;
  --radius-pill:  100px;

  /* Shadows — Storm rgba(23,27,36) */
  --shadow-1: 0 1px 3px rgba(23,27,36,.10), 0 1px 2px rgba(23,27,36,.08);
  --shadow-2: 0 4px 8px rgba(23,27,36,.12), 0 2px 4px rgba(23,27,36,.08);
  --shadow-3: 0 10px 24px rgba(23,27,36,.14), 0 4px 8px rgba(23,27,36,.08);
  --shadow-4: 0 20px 48px rgba(23,27,36,.18), 0 8px 16px rgba(23,27,36,.10);
  --shadow-5: 0 32px 64px rgba(23,27,36,.22), 0 12px 24px rgba(23,27,36,.12);

  /* Animation Easing */
  --ease-standard:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-enter:     cubic-bezier(0, 0, 0.2, 1);
  --ease-exit:      cubic-bezier(0.4, 0, 1, 1);
  --ease-emphasize: cubic-bezier(0.2, 0, 0, 1);

  /* Animation Durations */
  --duration-micro:    120ms;
  --duration-standard: 200ms;
  --duration-emphasis: 350ms;
  --duration-page:     500ms;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 760px;
  --gutter: 16px;
}

/* --------------------------------------------------------------------------
   02  RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-storm);
  background-color: var(--color-clearsky);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-storm);
  text-decoration: underline;
  text-decoration-color: var(--color-signal);
  text-underline-offset: 3px;
  transition: color var(--duration-micro) var(--ease-standard),
              text-decoration-color var(--duration-micro) var(--ease-standard);
}

a:hover {
  color: var(--color-signal-dark);
  text-decoration-color: var(--color-signal-dark);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input,
textarea,
select {
  font-family: var(--font-body);
  font-size: 16px;
  border: 1.5px solid var(--color-clearsky-mid);
  border-radius: var(--radius-input);
  padding: 10px 14px;
  color: var(--color-storm);
  background: var(--color-white);
  transition: border-color var(--duration-micro) var(--ease-standard),
              box-shadow var(--duration-micro) var(--ease-standard);
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-signal);
  box-shadow: 0 0 0 3px rgba(238, 198, 67, 0.2);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* --------------------------------------------------------------------------
   03  TYPOGRAPHY
   -------------------------------------------------------------------------- */

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-storm);
  line-height: 1.15;
}

h1 { font-size: 2.5rem; line-height: 1.08; }      /* 40px Display */
h2 { font-size: 2rem;   line-height: 1.15; }       /* 32px */
h3 { font-size: 1.5rem; line-height: 1.2; }        /* 24px */
h4 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }  /* 20px */
h5 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; } /* 17px */
h6 { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; } /* 15px */

p {
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

.text-small {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-overcast);
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-overcast);
}

.text-overline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-signal);
}

.text-overline--dark {
  color: var(--color-signal-dark);
}

/* Prose container — body copy with proper spacing */
.prose p {
  margin-bottom: var(--space-md);
}

.prose h2 {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
}

.prose h3 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
}

.prose ul,
.prose ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: var(--space-sm);
}

.prose li::marker {
  color: var(--color-signal);
}

.prose blockquote {
  font-style: italic;
  color: var(--color-overcast);
  padding-left: var(--space-md);
  border-left: 2px solid var(--color-signal);
  margin: var(--space-lg) 0;
  max-width: 56ch;
  line-height: 1.55;
}

/* Data tables inside article content (setbacks, specs, cost breakdowns).
   Wrap in .table-wrap so wide tables scroll instead of blowing out the
   layout on a phone. */
.table-wrap {
  overflow-x: auto;
  margin: var(--space-xl) 0;
  -webkit-overflow-scrolling: touch;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  min-width: 420px;
  font-family: var(--font-heading);
  font-size: 15px;
}

.prose thead th {
  background: var(--color-storm);
  color: var(--color-clearsky);
  font-weight: 600;
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 2px solid var(--color-signal);
  white-space: nowrap;
}

.prose tbody td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-clearsky-mid);
  vertical-align: top;
}

.prose tbody tr:last-child td {
  border-bottom: none;
}

.prose tbody tr:nth-child(even) {
  background: var(--color-clearsky);
}

.prose caption {
  caption-side: bottom;
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--color-overcast);
  text-align: left;
  padding-top: var(--space-sm);
}

/* Callout for "verify this before you rely on it" notes. Signal is used as
   a left rule here, never as a background — it fails contrast on light. */
.note {
  border-left: 3px solid var(--color-signal);
  background: var(--color-clearsky);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

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

.note__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-storm);
  margin-bottom: var(--space-xs);
}

/* Post meta line under an article h1 */
.post-meta {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-overcast);
  margin-bottom: var(--space-xl);
}

.post-meta__sep { margin: 0 var(--space-sm); color: var(--color-clearsky-mid); }

/* --------------------------------------------------------------------------
   04  LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

/* CSS Grid utility */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Section spacing */
.section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.section--sm {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

/* Dark section (Storm background) */
.section--dark {
  background-color: var(--color-storm);
  color: var(--color-clearsky);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-clearsky);
}

.section--dark p {
  color: var(--color-overcast);
}

.section--dark .text-overline {
  color: var(--color-signal);
}

/* White section */
.section--white {
  background-color: var(--color-white);
}

/* --------------------------------------------------------------------------
   05  HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-storm);
  transition: box-shadow var(--duration-standard) var(--ease-standard);
}

.site-header--scrolled {
  box-shadow: var(--shadow-3);
}

/* Signal accent bar at very top */
.site-header__accent {
  height: 3px;
  background-color: var(--color-signal);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-clearsky);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.site-header__logo img {
  height: 40px;
  width: auto;
}

/* Desktop navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav__link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-clearsky);
  text-decoration: none;
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--duration-micro) var(--ease-standard);
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-signal);
  transition: width var(--duration-standard) var(--ease-standard);
}

.site-nav__link:hover,
.site-nav__link--active {
  color: var(--color-signal);
}

.site-nav__link:hover::after,
.site-nav__link--active::after {
  width: 100%;
}

/* Dropdown */
.site-nav__item {
  position: relative;
}

.site-nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-3);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity var(--duration-standard) var(--ease-enter),
              transform var(--duration-standard) var(--ease-enter),
              visibility var(--duration-standard);
}

.site-nav__item:hover .site-nav__dropdown,
.site-nav__item:focus-within .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.site-nav__dropdown a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-storm);
  text-decoration: none;
  transition: background-color var(--duration-micro) var(--ease-standard);
}

.site-nav__dropdown a:hover {
  background-color: var(--color-clearsky);
  color: var(--color-storm);
}

/* Header CTA */
.site-header__cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-header__phone {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-clearsky);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.site-header__phone:hover {
  color: var(--color-signal);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-clearsky);
  border-radius: 1px;
  transition: transform var(--duration-standard) var(--ease-standard),
              opacity var(--duration-micro) var(--ease-standard);
}

.mobile-toggle--open .mobile-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle--open .mobile-toggle__bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle--open .mobile-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  position: fixed;
  top: 75px; /* header height + accent bar */
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-storm);
  z-index: 999;
  overflow-y: auto;
  padding: var(--space-xl) var(--gutter);
  transform: translateX(100%);
  transition: transform var(--duration-emphasis) var(--ease-standard);
}

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

.mobile-nav__link {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-clearsky);
  text-decoration: none;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-storm-light);
}

.mobile-nav__link:hover {
  color: var(--color-signal);
}

.mobile-nav__sub {
  padding-left: var(--space-lg);
}

.mobile-nav__sub .mobile-nav__link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-overcast);
}

.mobile-nav__cta {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* --------------------------------------------------------------------------
   06  BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--duration-micro) var(--ease-standard),
              box-shadow var(--duration-micro) var(--ease-standard),
              background-color var(--duration-micro) var(--ease-standard);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-1);
}

/* Primary — Signal fill, Storm text */
.btn--primary {
  background-color: var(--color-signal);
  color: var(--color-storm);
}

.btn--primary:hover {
  background-color: #f5d04e; /* slightly lighter signal */
  color: var(--color-storm);
}

/* Secondary — Storm fill, Clearsky text */
.btn--secondary {
  background-color: var(--color-storm);
  color: var(--color-clearsky);
}

.btn--secondary:hover {
  background-color: var(--color-storm-light);
  color: var(--color-clearsky);
}

/* Outline on light */
.btn--outline {
  background-color: transparent;
  color: var(--color-storm);
  border: 1.5px solid var(--color-storm);
}

.btn--outline:hover {
  background-color: var(--color-storm);
  color: var(--color-clearsky);
}

/* Outline on dark */
.btn--outline-dark {
  background-color: transparent;
  color: var(--color-clearsky);
  border: 1.5px solid var(--color-overcast);
}

.btn--outline-dark:hover {
  border-color: var(--color-clearsky);
  color: var(--color-white);
}

/* Emergency/urgent — Redline */
.btn--urgent {
  background-color: var(--color-redline);
  color: var(--color-white);
}

.btn--urgent:hover {
  background-color: #b8321b;
  color: var(--color-white);
}

/* Size variants */
.btn--sm {
  font-size: 13px;
  padding: 8px 16px;
}

.btn--lg {
  font-size: 16px;
  padding: 14px 28px;
}

/* Full width */
.btn--block {
  display: flex;
  width: 100%;
}

/* --------------------------------------------------------------------------
   07  CARDS
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform var(--duration-standard) var(--ease-standard),
              box-shadow var(--duration-standard) var(--ease-standard);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body {
  padding: var(--space-lg);
}

.card__overline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-signal-dark);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-storm);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

/* A linked card title should read as a heading, not as a link, until hover. */
.card__title a {
  color: inherit;
  text-decoration: none;
}

.card__title a:hover,
.card__title a:focus-visible {
  color: var(--color-signal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-overcast);
  margin-bottom: var(--space-md);
}

.card__link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-storm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.card__link:hover {
  color: var(--color-signal-dark);
}

.card__link::after {
  content: '→';
  transition: transform var(--duration-micro) var(--ease-standard);
}

.card__link:hover::after {
  transform: translateX(4px);
}

/* Dark card variant */
.card--dark {
  background: var(--color-storm);
}

.card--dark .card__title {
  color: var(--color-clearsky);
}

.card--dark .card__text {
  color: var(--color-overcast);
}

.card--dark .card__overline {
  color: var(--color-signal);
}

/* --------------------------------------------------------------------------
   08  HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--color-storm);
  overflow: hidden;
  padding-top: 75px; /* clear fixed header */
}

.hero__accent {
  position: absolute;
  top: 75px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-signal);
  z-index: 2;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-4xl) var(--gutter);
}

.hero__overline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-signal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-md);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-clearsky);
  line-height: 1.08;
  max-width: 14ch;
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-overcast);
  max-width: 48ch;
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Hero with background image */
.hero--image {
  min-height: 600px;
  display: flex;
  align-items: flex-end;
}

.hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(23, 27, 36, 0.5) 0%,
    rgba(23, 27, 36, 0.85) 100%
  );
  z-index: 1;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   09  STICKY CTA BAR
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background-color: var(--color-storm);
  border-top: 2px solid var(--color-signal);
  padding: var(--space-sm) var(--gutter);
  transform: translateY(100%);
  transition: transform var(--duration-emphasis) var(--ease-enter);
}

.sticky-cta--visible {
  transform: translateY(0);
}

.sticky-cta__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.sticky-cta__text {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-clearsky);
  display: none;
}

.sticky-cta__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
}

/* --------------------------------------------------------------------------
   10  FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq {
  max-width: var(--container-narrow);
}

.faq__item {
  border-bottom: 1px solid var(--color-clearsky-mid);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-storm);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  gap: var(--space-md);
}

.faq__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-storm);
  transition: transform var(--duration-standard) var(--ease-standard);
}

.faq__icon::before {
  top: 50%;
  left: 4px;
  right: 4px;
  height: 2px;
  transform: translateY(-50%);
}

.faq__icon::after {
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 2px;
  transform: translateX(-50%);
}

.faq__item--open .faq__icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-emphasis) var(--ease-standard);
}

.faq__answer-inner {
  padding-bottom: var(--space-lg);
  color: var(--color-overcast);
  font-size: 16px;
  line-height: 1.65;
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   11  FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-storm);
  color: var(--color-overcast);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-xl);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-footer__brand p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 36ch;
  margin-top: var(--space-md);
  color: var(--color-overcast);
}

.site-footer__heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-clearsky);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.site-footer__links a {
  display: block;
  font-size: 14px;
  color: var(--color-overcast);
  text-decoration: none;
  padding: var(--space-xs) 0;
  transition: color var(--duration-micro) var(--ease-standard);
}

.site-footer__links a:hover {
  color: var(--color-signal);
}

.site-footer__bottom {
  margin-top: var(--space-3xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-storm-light);
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.site-footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-overcast);
}

.site-footer__legal a {
  font-size: 12px;
  color: var(--color-overcast);
  text-decoration: none;
  margin-left: var(--space-md);
}

.site-footer__legal a:hover {
  color: var(--color-signal);
}

/* --------------------------------------------------------------------------
   12  FORMS
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-storm);
  margin-bottom: var(--space-sm);
}

.form-group .form-hint {
  font-size: 13px;
  color: var(--color-overcast);
  margin-top: var(--space-xs);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* --------------------------------------------------------------------------
   13  BREADCRUMBS
   -------------------------------------------------------------------------- */
.breadcrumb {
  padding: var(--space-md) 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-overcast);
}

.breadcrumb a {
  color: var(--color-overcast);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-signal-dark);
}

.breadcrumb__sep {
  margin: 0 var(--space-sm);
  color: var(--color-clearsky-mid);
}

.breadcrumb__current {
  color: var(--color-storm);
}

/* --------------------------------------------------------------------------
   14  TRUST BAR / STATS
   -------------------------------------------------------------------------- */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
  padding: var(--space-2xl) 0;
}

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

.trust-bar__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-signal);
  line-height: 1;
}

.trust-bar__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-overcast);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Trust bar on dark */
.section--dark .trust-bar__number {
  color: var(--color-signal);
}

.section--dark .trust-bar__label {
  color: var(--color-overcast);
}

/* --------------------------------------------------------------------------
   15  PROJECT GALLERY
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-emphasis) var(--ease-standard);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(
    transparent,
    rgba(23, 27, 36, 0.85)
  );
  color: var(--color-clearsky);
  opacity: 0;
  transition: opacity var(--duration-standard) var(--ease-standard);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
}

.gallery-item__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-signal);
  margin-top: var(--space-xs);
}

/* --------------------------------------------------------------------------
   16  SERVICE PAGE COMPONENTS
   -------------------------------------------------------------------------- */

/* Service intro */
.service-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.service-intro__image {
  border-radius: var(--radius-card);
  overflow: hidden;
}

.service-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* CTA band — full width signal stripe */
.cta-band {
  background-color: var(--color-signal);
  padding: var(--space-2xl) var(--gutter);
  text-align: center;
}

.cta-band__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-storm);
  margin-bottom: var(--space-sm);
}

.cta-band__text {
  font-size: 16px;
  color: var(--color-storm);
  margin-bottom: var(--space-lg);
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

/* Process steps */
.process-steps {
  counter-reset: step;
}

.process-step {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-clearsky-mid);
  counter-increment: step;
}

.process-step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--color-storm);
  color: var(--color-signal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.process-step__number::before {
  content: counter(step);
}

.process-step__content h3 {
  margin-bottom: var(--space-sm);
}

.process-step__content p {
  color: var(--color-overcast);
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   17  CONTACT FORM SECTION
   -------------------------------------------------------------------------- */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info__item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-storm);
  color: var(--color-signal);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__text h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.contact-info__text p {
  font-size: 15px;
  color: var(--color-overcast);
  margin-bottom: 0;
}

.contact-form {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-2);
}

/* --------------------------------------------------------------------------
   18  TESTIMONIALS
   -------------------------------------------------------------------------- */
.testimonial {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
  padding: var(--space-xl);
  border-left: 3px solid var(--color-signal);
}

.testimonial__quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-storm);
  margin-bottom: var(--space-md);
}

.testimonial__quote::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-signal);
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: var(--space-xs);
}

.testimonial__author {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-storm);
}

.testimonial__detail {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-overcast);
  margin-top: var(--space-xs);
}

/* --------------------------------------------------------------------------
   19  PAGE HERO (Interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background-color: var(--color-storm);
  padding-top: calc(75px + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.page-hero__accent {
  position: absolute;
  top: 75px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-signal);
}

.page-hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-hero__overline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-signal);
  margin-bottom: var(--space-sm);
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-clearsky);
  line-height: 1.08;
  max-width: 20ch;
  margin-bottom: var(--space-md);
}

.page-hero__desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-overcast);
  max-width: 52ch;
}

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

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

.mx-auto { margin-left: auto; margin-right: auto; }

.mb-0   { margin-bottom: 0; }
.mb-xs  { margin-bottom: var(--space-xs); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.mt-0   { margin-top: 0; }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.pt-0   { padding-top: 0; }
.pb-0   { padding-bottom: 0; }

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }

.hidden { display: none; }

.w-full { width: 100%; }

/* --------------------------------------------------------------------------
   21  RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

/* Tablet: 768px and below */
@media (max-width: 768px) {
  :root {
    --gutter: 20px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }

  /* Header */
  .site-nav {
    display: none;
  }

  .site-header__cta .btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  /* Hero */
  .hero__title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .hero--image {
    min-height: 500px;
  }

  /* Service intro */
  .service-intro {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-section {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  /* Trust bar */
  .trust-bar {
    gap: var(--space-xl);
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  /* Sticky CTA */
  .sticky-cta__actions {
    flex-direction: column;
  }

  .sticky-cta__actions .btn {
    width: 100%;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Phone: 480px and below */
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }

  .hero__inner {
    padding: var(--space-3xl) var(--gutter);
  }

  .hero--image {
    min-height: 420px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .trust-bar {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .site-footer__legal {
    display: flex;
    gap: var(--space-md);
  }

  .site-footer__legal a {
    margin-left: 0;
  }

  .process-step {
    flex-direction: column;
    gap: var(--space-md);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .card__body {
    padding: var(--space-md);
  }
}

/* Desktop-up: wider than 768px */
@media (min-width: 769px) {
  .sticky-cta__text {
    display: block;
  }

  .sticky-cta__actions {
    width: auto;
  }

  .gallery-item__overlay {
    opacity: 0;
  }
}

/* Large desktop: 1200px+ */
@media (min-width: 1200px) {
  :root {
    --gutter: 24px;
  }
}

/* --------------------------------------------------------------------------
   22  SCROLL ANIMATIONS
   -------------------------------------------------------------------------- */
/* Scroll-reveal is opt-IN, gated on the .js class that header.php sets.
   Previously .animate-in hid content unconditionally and main.js revealed it,
   which meant a script failure — or any browser without IntersectionObserver,
   since the observer setup returns early — left that content invisible for
   good. Hiding only once JS is confirmed present makes the no-JS path a
   fully visible page that simply does not animate. */
.js .animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-page) var(--ease-enter),
              transform var(--duration-page) var(--ease-enter);
}

.js .animate-in--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .animate-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Stagger children */
.animate-in--delay-1 { transition-delay: 100ms; }
.animate-in--delay-2 { transition-delay: 200ms; }
.animate-in--delay-3 { transition-delay: 300ms; }
.animate-in--delay-4 { transition-delay: 400ms; }

/* --------------------------------------------------------------------------
   23  FORM ERROR STATES
   -------------------------------------------------------------------------- */
.input--error {
  border-color: var(--color-redline) !important;
  box-shadow: 0 0 0 3px rgba(208, 59, 32, 0.15) !important;
}

/* --------------------------------------------------------------------------
   24  SKIP TO CONTENT (A11Y)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  background: var(--color-signal);
  color: var(--color-storm);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-btn);
  z-index: 9999;
  text-decoration: none;
  transition: top var(--duration-micro) var(--ease-standard);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   FORM ALERTS & HONEYPOT
   -------------------------------------------------------------------------- */

.form-alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-card);
  margin-bottom: var(--space-lg);
  border-left: 3px solid;
}

.form-alert strong {
  font-family: var(--font-heading);
  display: block;
  margin-bottom: var(--space-xs);
}

.form-alert p,
.form-alert ul { margin: 0; font-size: 15px; }
.form-alert ul { padding-left: 1.1rem; }
.form-alert li + li { margin-top: var(--space-xs); }

.form-alert--ok {
  background: #EAF5EF;
  border-left-color: #2E7D52;
  color: #1C5236;
}

.form-alert--err {
  background: #FBECE9;
  border-left-color: var(--color-redline);
  color: #8C2615;
}

/* Honeypot: off-screen rather than display:none, because some bots skip
   fields that are explicitly hidden. Kept out of the tab order and the
   accessibility tree by tabindex/aria-hidden on the markup. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   SERVICE-INTRO WITHOUT AN IMAGE
   The grid is 1fr 1fr for text + photo. Until real photos are in, the copy
   is the only child, so span it across both tracks and cap the measure
   rather than leaving it in a half-width column beside dead space.
   This reverts itself automatically once a second child (the image) is added.
   -------------------------------------------------------------------------- */
.service-intro > :only-child {
  grid-column: 1 / -1;
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   EMBEDDED MAPS
   -------------------------------------------------------------------------- */
.map-embed {
  margin-top: var(--space-lg);
  border-radius: var(--radius-card);
  overflow: hidden;
  line-height: 0;              /* kill the iframe's inline-element gap */
  box-shadow: var(--shadow-1);
}

.map-embed iframe { display: block; width: 100%; }

.map-embed--dark {
  margin-top: var(--space-xl);
  box-shadow: none;
  border: 1px solid var(--color-storm-light);
}

/* --------------------------------------------------------------------------
   IMAGES & PHOTO SPECS
   jbs_img() renders .jbs-img once a real file exists, .img-spec until then.
   The spec card is the shot list: filename, alt text, and shape.
   -------------------------------------------------------------------------- */

.jbs-img {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-clearsky);
}

.jbs-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-spec {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-lg);
  border-radius: var(--radius-card);
  background: var(--color-storm-light);
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,.028) 0 10px,
      transparent 10px 20px
    );
  border: 1px dashed rgba(238,198,67,.35);
  font-family: var(--font-mono);
  overflow: hidden;
}

.img-spec__badge {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-storm);
  background: var(--color-signal);
  padding: 3px 8px;
  border-radius: 100px;
}

.img-spec__file {
  font-size: 13px;
  color: var(--color-signal);
  word-break: break-all;
}

.img-spec__alt,
.img-spec__note {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--color-clearsky);
  opacity: .78;
}

.img-spec__note { font-style: italic; opacity: .6; }

.img-spec__ratio {
  font-size: 10px;
  color: var(--color-overcast);
  margin-top: auto;
}

@media (max-width: 480px) {
  .img-spec { padding: var(--space-md); }
  .img-spec__alt, .img-spec__note { display: none; }
}

/* --------------------------------------------------------------------------
   SECONDARY SERVICE TIER ("Also From JBS")
   The four primary services get cards; these get a lighter treatment so the
   hierarchy reads at a glance, while still carrying real descriptive copy.
   -------------------------------------------------------------------------- */

.also-services {
  border-top: 1px solid var(--color-clearsky-mid);
  padding-top: var(--space-xl);
}

.also-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-lg) var(--space-xl);
  margin-top: var(--space-lg);
}

.also-services__item h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 var(--space-xs);
  line-height: 1.25;
}

.also-services__item h3 a {
  color: var(--color-storm);
  text-decoration: none;
  border-bottom: 2px solid var(--color-signal);
  padding-bottom: 1px;
}

.also-services__item h3 a:hover,
.also-services__item h3 a:focus-visible {
  color: var(--color-signal-dark);
  border-bottom-color: var(--color-signal-dark);
}

.also-services__item p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-overcast);
  margin: 0;
}

/* --------------------------------------------------------------------------
   GALLERY TILE WITH NO PHOTO YET
   The overlay is normally hidden until hover, which works over an image but
   renders an invisible box when there is none. Until real photos land, show
   the tile as a readable labelled card instead of empty space.
   -------------------------------------------------------------------------- */
.gallery-item:not(:has(img)) {
  background: var(--color-storm-light);
  border: 1px solid var(--color-clearsky-mid);
  display: flex;
  align-items: flex-end;
  cursor: default;
}

.gallery-item:not(:has(img)) .gallery-item__overlay {
  opacity: 1;
  background: none;
  position: static;
}

/* Caption under a photo inside prose. Sits tight to the image above it,
   so it reads as part of that figure rather than as another paragraph. */
.prose .caption {
  margin-top: calc(var(--space-sm) * -1);
  margin-bottom: var(--space-xl);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-overcast);
}


/* ---------------------------------------------------------------------
   Contrast scoping for dark surfaces.

   Two palette tokens are tuned for light backgrounds and fail WCAG AA on
   Storm: Overcast (#5A6170) lands at 2.8:1, and the accent ink used for
   link hover is darker still. Rather than hunt down every rule that spends
   them, redefine the tokens inside the dark containers — custom properties
   cascade, so every descendant picks the corrected value up automatically.

   Overcast stays as-is on light surfaces, where it already passes at 6.2:1.
   --------------------------------------------------------------------- */
.hero,
.page-hero,
.section--dark,
.site-header,
.site-footer,
.sticky-cta,
.card--dark,
.gallery-item {
  --color-overcast: #858DA0;          /* 5.2:1 on Storm */
  --color-signal-dark: var(--color-signal);  /* hover goes bright, 10.5:1 */
}

/* ---------------------------------------------------------------------
   Contrast corrections, part 2.

   Three defects the audit surfaced:

   1. Signal yellow was the DEFAULT for .text-overline and .trust-bar__number.
      That reads at 10.5:1 on Storm but only 1.6:1 on white, and both classes
      are used on light sections. Flipped the defaults to the accent ink and
      let the existing .section--dark rules restore Signal on dark.

   2. Links inherited color:var(--color-storm) inside dark surfaces, so a
      link in a dark section was Storm on Storm — 1:1, invisible.

   3. .section--dark h3 / p / .text-overline also matched text inside WHITE
      cards nested in dark sections, painting light text on a light card.
      Those cards are treated as light islands and reset.
   --------------------------------------------------------------------- */

.text-overline     { color: var(--color-signal-dark); }
.trust-bar__number { color: var(--color-signal-dark); }
.section--dark .trust-bar__number,
.hero .trust-bar__number { color: var(--color-signal); }

/* Links on dark surfaces. Buttons carry their own colours, so exclude them. */
.section--dark a:not(.btn),
.site-footer a:not(.btn),
.hero a:not(.btn),
.page-hero a:not(.btn),
.card--dark a:not(.btn),
.sticky-cta a:not(.btn) {
  color: var(--color-clearsky);
  text-decoration-color: var(--color-signal);
}
.section--dark a:not(.btn):hover,
.site-footer a:not(.btn):hover,
.hero a:not(.btn):hover,
.page-hero a:not(.btn):hover,
.card--dark a:not(.btn):hover,
.sticky-cta a:not(.btn):hover {
  color: var(--color-signal);
}

/* A plain .card inside a dark section is a light island: restore the
   light-surface tokens and undo the inherited dark-section text colours. */
.section--dark .card:not(.card--dark) {
  --color-overcast: #5A6170;
  --color-signal-dark: #80660E;   /* undo the dark-surface override above */
  color: var(--color-storm);
}
.section--dark .card:not(.card--dark) :is(h1, h2, h3, h4) { color: var(--color-storm); }
.section--dark .card:not(.card--dark) p                   { color: var(--color-overcast); }
.section--dark .card:not(.card--dark) .text-overline,
.section--dark .card:not(.card--dark) .card__overline     { color: var(--color-signal-dark); }
.section--dark .card:not(.card--dark) a:not(.btn)         { color: var(--color-storm); }
.section--dark .card:not(.card--dark) a:not(.btn):hover   { color: var(--color-signal-dark); }
