/* ============================================================
   Somerset Window Cleaning — Yuba City, CA
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --font-display: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --header-h: 74px;

  --shadow-sm: 0 1px 2px rgba(2, 17, 36, 0.06), 0 1px 3px rgba(2, 17, 36, 0.08);
  --shadow-md: 0 4px 12px rgba(2, 17, 36, 0.08), 0 2px 4px rgba(2, 17, 36, 0.05);
  --shadow-lg: 0 18px 40px rgba(2, 17, 36, 0.13), 0 4px 10px rgba(2, 17, 36, 0.06);
}

/* ---------- Light (default) ---------- */
:root,
[data-theme='light'] {
  --navy: #021124;
  --navy-2: #0a2340;
  --blue: #1b7fe0;
  --blue-deep: #0d5fb8;
  --blue-bright: #379fe8;
  --blue-tint: #eaf3fd;
  --blue-tint-2: #d7e8fa;

  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-surface-2: #f1f5f9;
  --color-border: #dfe6ee;
  --color-divider: #edf1f6;

  --color-text: #0d1b2a;
  --color-text-muted: #566374;
  --color-text-faint: #8794a3;
  --color-inverse: #ffffff;

  --color-deep-bg: var(--navy);
  --color-deep-text: #eaf1f8;
  --color-deep-muted: #9db2ca;
  --color-deep-border: rgba(255, 255, 255, 0.14);

  --color-accent: var(--blue-deep);
  --color-accent-hover: #0a4d97;
}

/* ---------- Dark ---------- */
[data-theme='dark'] {
  --color-bg: #061223;
  --color-surface: #0b1c31;
  --color-surface-2: #10253d;
  --color-border: #1d3550;
  --color-divider: #142b45;

  --color-text: #eaf1f8;
  --color-text-muted: #a2b5cb;
  --color-text-faint: #7288a2;
  --color-inverse: #061223;

  --color-deep-bg: #020c18;
  --color-deep-text: #eaf1f8;
  --color-deep-muted: #9db2ca;
  --color-deep-border: rgba(255, 255, 255, 0.12);

  --blue-tint: #0e2440;
  --blue-tint-2: #143458;

  --color-accent: #2e8ce8;
  --color-accent-hover: #4ba2f2;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --color-bg: #061223;
    --color-surface: #0b1c31;
    --color-surface-2: #10253d;
    --color-border: #1d3550;
    --color-divider: #142b45;
    --color-text: #eaf1f8;
    --color-text-muted: #a2b5cb;
    --color-text-faint: #7288a2;
    --color-inverse: #061223;
    --color-deep-bg: #020c18;
    --blue-tint: #0e2440;
    --blue-tint-2: #143458;
    --color-accent: #2e8ce8;
    --color-accent-hover: #4ba2f2;
  }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
picture,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  z-index: 200;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}
.section--tight {
  padding-block: clamp(var(--space-12), 5vw, var(--space-20));
}
.section--surface {
  background: var(--color-surface);
}
.section--deep {
  background: var(--color-deep-bg);
  color: var(--color-deep-text);
}
.section--deep h2,
.section--deep h3 {
  color: #fff;
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--blue);
  display: inline-block;
}
.section--deep .eyebrow {
  color: var(--blue-bright);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(var(--space-10), 4vw, var(--space-16));
}
.section-head h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.section-head p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.section--deep .section-head p {
  color: var(--color-deep-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: -0.005em;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn svg {
  flex: none;
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-lg);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--color-accent);
}
.btn--on-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}
.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}
.btn--lg {
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-base);
}
.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 14px rgba(2, 17, 36, 0.05);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex: none;
}
.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.brand__sub {
  font-size: 0.625rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 3px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.nav a:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}
.nav a.is-active {
  color: var(--color-accent);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  color: var(--color-text-muted);
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.icon-btn:hover {
  color: var(--color-accent);
  border-color: var(--blue);
}
.icon-btn .moon {
  display: none;
}
[data-theme='dark'] .icon-btn .sun {
  display: none;
}
[data-theme='dark'] .icon-btn .moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .icon-btn .sun {
    display: none;
  }
  :root:not([data-theme='light']) .icon-btn .moon {
    display: block;
  }
}

.nav-toggle {
  display: none;
}

@media (max-width: 940px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-3) var(--space-6) var(--space-6);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }
  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav a {
    padding: var(--space-4) var(--space-2);
    border-bottom: 1px solid var(--color-divider);
    font-size: var(--text-base);
  }
  .nav-toggle {
    display: grid;
  }
  .header__cta {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(2, 17, 36, 0.95) 0%, rgba(2, 17, 36, 0.86) 42%, rgba(2, 17, 36, 0.5) 78%, rgba(2, 17, 36, 0.42) 100%),
    linear-gradient(to top, rgba(2, 17, 36, 0.8), transparent 45%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
  max-width: 46rem;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(55, 159, 232, 0.16);
  border: 1px solid rgba(55, 159, 232, 0.45);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  margin-bottom: var(--space-6);
}
.hero__badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-bright);
}
.hero h1 {
  font-size: var(--text-2xl);
  color: #fff;
  margin-bottom: var(--space-5);
}
.hero h1 em {
  font-style: normal;
  color: var(--blue-bright);
}
.hero__lede {
  font-size: var(--text-lg);
  color: #cddced;
  max-width: 40rem;
  margin-bottom: var(--space-8);
  line-height: 1.5;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}
.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-8);
  list-style: none;
  padding: 0;
  font-size: var(--text-sm);
  color: #cddced;
}
.hero__points li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hero__points svg {
  color: var(--blue-bright);
  flex: none;
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--blue-tint);
  border-block: 1px solid var(--color-border);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-6);
  padding-block: var(--space-8);
}
.trust__item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.trust__item svg {
  color: var(--color-accent);
  flex: none;
  margin-top: 2px;
}
.trust__item strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
}
.trust__item span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ---------- Services ---------- */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
}
.services > .card {
  flex: 1 1 290px;
  max-width: calc((100% - var(--space-6) * 2) / 3);
}
@media (max-width: 1000px) {
  .services > .card {
    max-width: calc((100% - var(--space-6)) / 2);
  }
}
@media (max-width: 660px) {
  .services > .card {
    max-width: 100%;
  }
}
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-tint-2);
}
.card__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--blue-tint);
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}
.card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.card ul {
  margin-top: var(--space-4);
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.card ul li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}
.card ul li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
  margin-top: 0.6em;
}

/* ---------- Split / media rows ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-20));
  align-items: center;
}
.split--reverse .split__media {
  order: 2;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__media {
    order: 0;
  }
}
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.split__body h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
}
.split__body p + p {
  margin-top: var(--space-4);
}
.split__body p {
  color: var(--color-text-muted);
}
.section--deep .split__body p {
  color: var(--color-deep-muted);
}

.figure-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
}

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-6);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: var(--space-8);
  border-top: 2px solid var(--color-deep-border);
}
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  position: absolute;
  top: var(--space-4);
  left: 0;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue-bright);
}
.step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  margin-top: var(--space-4);
}
.step p {
  font-size: var(--text-sm);
  color: var(--color-deep-muted);
}

/* ---------- Areas ---------- */
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-8);
}
.area-group h3 {
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.area-group ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.area-group li {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.area-group li svg {
  color: var(--blue);
  flex: none;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: var(--space-3);
  max-width: 60rem;
}
details.qa {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
details.qa[open] {
  border-color: var(--blue-tint-2);
  box-shadow: var(--shadow-sm);
}
details.qa summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-5) var(--space-6);
  font-weight: 700;
  font-size: var(--text-base);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
}
details.qa summary::-webkit-details-marker {
  display: none;
}
details.qa summary::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(45deg);
  flex: none;
  transition: transform 0.2s ease;
  margin-right: 4px;
}
details.qa[open] summary::after {
  transform: rotate(-135deg);
}
details.qa .qa__body {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 70ch;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  box-shadow: var(--shadow-md);
}
.field {
  margin-bottom: var(--space-5);
}
.field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: var(--text-sm);
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.field textarea {
  min-height: 118px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  background: var(--color-bg);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
.form__note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
  text-align: center;
}
.form__status {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 600;
}

.contact-cards {
  display: grid;
  gap: var(--space-4);
}
.contact-card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}
a.contact-card:hover {
  border-color: var(--blue);
  transform: translateX(3px);
}
.contact-card svg {
  color: var(--color-accent);
  flex: none;
  margin-top: 3px;
}
.contact-card strong {
  display: block;
  font-size: var(--text-base);
}
.contact-card span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3a6b 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 {
  font-size: var(--text-xl);
  color: #fff;
  margin-bottom: var(--space-3);
  max-width: 22ch;
}
.cta-band p {
  color: #c5d8ee;
  font-size: var(--text-sm);
  max-width: 46ch;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: #b9cadd;
  padding-block: var(--space-16) var(--space-8);
  font-size: var(--text-sm);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-deep-border);
}
@media (max-width: 820px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}
.footer__logo {
  width: 132px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}
.footer h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-4);
}
.footer ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.footer a {
  color: #b9cadd;
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer__bottom {
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: #8ba1b9;
}

/* ---------- Mobile sticky call bar ---------- */
.callbar {
  display: none;
}
@media (max-width: 700px) {
  .callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--color-border);
    border-top: 1px solid var(--color-border);
  }
  .callbar a {
    background: var(--color-bg);
    padding: var(--space-4);
    text-align: center;
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
  }
  .callbar a.primary {
    background: var(--color-accent);
    color: #fff;
  }
  body {
    padding-bottom: 60px;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

/* Honeypot -- visually and programmatically hidden from real users */
.form__honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form__status--success {
  color: #147a4b;
  font-weight: 600;
}

[data-theme='dark'] .form__status--success {
  color: #4fd18b;
}

.form__status--error {
  color: #c0392b;
  font-weight: 600;
}

[data-theme='dark'] .form__status--error {
  color: #ff8f7a;
}
