/* ===================== Design tokens ===================== */
:root {
  --font-sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Brand */
  --brand-navy: #0b1f3a;
  --brand-blue: #1d4ed8;
  --brand-blue-light: #2e7cf6;
  --brand-green: #15803d;
  --brand-green-light: #22c55e;
  --brand-gradient: linear-gradient(
    90deg,
    #1d4ed8 0%,
    #14a67e 70%,
    #22c55e 100%
  );
  --hero-dark-bg: #0b1220;
  --badge-accent: #c2410c;
  --light-page-bg: #e7ecf5;

  /* Light theme */
  --bg: var(--hero-dark-bg);
  --surface: #ffffff;
  --surface-alt: #f1f4fa;
  --surface-raised: #ffffff;
  --text: #121826;
  --text-muted: #4b5668;
  --border: #cbd5e1;
  --link: #1d4ed8;
  --link-visited: #1d4ed8;
  --primary: #1d4ed8;
  --primary-hover: #1941b5;
  --on-primary: #ffffff;
  --secondary: #15803d;
  --secondary-hover: #11662f;
  --on-secondary: #ffffff;
  --focus-ring: #1d4ed8;
  --shadow-color: 220 40% 20%;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container-w: 1180px;
}

/* Hero carries the darkest tier of the permanent dark palette. How It
   Works, Shop by Part, Find My Part, Why Us and About stay in light-mode
   style (their own rules below provide the light background where needed,
   falling back to the light-theme tokens above otherwise). */
.hero {
  --bg: var(--hero-dark-bg);
  --surface: #121a2c;
  --surface-alt: #182238;
  --surface-raised: #16213a;
  --text: #e8ecf4;
  --text-muted: #a7b0c3;
  --border: #253252;
  --link: #6fa2ff;
  --link-visited: #6fa2ff;
  --primary: #3d7df0;
  --primary-hover: #578fef;
  --on-primary: #061024;
  --secondary: #2ecc8f;
  --secondary-hover: #52d7a3;
  --on-secondary: #06231a;
  --focus-ring: #6fa2ff;
  background: var(--bg);
  color: var(--text);
}

/* Header matches the hero's background color, with a frosted glass blur
   over whatever scrolls behind it. */
.site-header {
  --bg: var(--hero-dark-bg);
  --surface: var(--hero-dark-bg);
  --surface-alt: #182238;
  --surface-raised: #182238;
  --text: #e8ecf4;
  --text-muted: #a7b0c3;
  --border: #253252;
  --link: #6fa2ff;
  --link-visited: #6fa2ff;
  --primary: #3d7df0;
  --primary-hover: #578fef;
  --on-primary: #061024;
  --secondary: #2ecc8f;
  --secondary-hover: #52d7a3;
  --on-secondary: #06231a;
  --focus-ring: #6fa2ff;
  color: var(--text);
}

/* ===================== Reset ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
main {
  z-index: 30;
}
img {
  max-width: 100%;
  display: block;
}
[hidden] {
  display: none !important;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  font: inherit;
}
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
  color: var(--text-muted);
}
svg {
  overflow: visible;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-green-light);
  margin: 0 0 0.6em;
}
.how-it-works .eyebrow,
.categories .eyebrow,
.request .eyebrow,
.why-us .eyebrow,
.about .eyebrow {
  border-bottom: 4px solid var(--hero-dark-bg);
  padding-bottom: 4px;
  display: inline-block;
  color: var(--hero-dark-bg);
  padding-right: 12px;
  margin-bottom: 32px;
}

.text-accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  max-width: 640px;
  margin: 0 0 2.5rem;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}
.section-sub {
  font-size: 1.02rem;
}

/* ===================== Icons ===================== */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-sm {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}
.icon-lg {
  width: 30px;
  height: 30px;
  stroke-width: 1.5;
}
.icon-xl {
  width: 46px;
  height: 46px;
  stroke-width: 1.4;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border-radius: var(--radius-pill);
  padding: 0.8em 1.6em;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 4px 10px -6px hsl(var(--shadow-color) / 0.55);
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--primary);
  color: #dee9ff;
  font-weight: 700;
}
.btn-primary:hover {
  /* background: var(--primary-hover); */
  background: var(--brand-green);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--brand-green);
  color: var(--light-page-bg);
  background-color: var(--brand-green);
}
.btn-lg {
  padding: 1em 2em;
  font-size: 1.02rem;
}
.btn-sm {
  padding: 0.55em 1.2em;
  font-size: 0.9rem;
}
.btn-block {
  width: 100%;
}

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: auto;
  height: 34px;
}
.brand-word {
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}
.brand-accent {
  color: var(--secondary);
}

.main-nav ul {
  display: flex;
  gap: 1.9rem;
}
.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
}
.main-nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid color-mix(white, transparent 98%);
  background: color-mix(white, transparent 95%);
  color: var(--text);
  cursor: pointer;
  place-items: center;
  overflow: hidden;
}
.menu-toggle .icon-close {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-burger {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* ===================== Hero ===================== */
.hero {
  padding: 4.5rem 0 5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero .eyebrow {
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.02em;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.hero-lede {
  font-size: 1.1rem;
  max-width: 52ch;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.8rem 0 1.6rem;
  margin-bottom: 3rem;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.hero-trust li {
  display: flex;
  align-items: start;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 500;
  font-size: 1.1rem;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.hero-trust li svg {
  margin-top: 5px;
}
.hero-trust li svg.hero-trust-flag {
  display: inline-block;
  width: 1.15em;
  height: 0.8em;
  margin: 0 1px -1px 2px;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.hero-trust li .hero-trust-highlight {
  font-weight: 700;
}
.hero-trust .icon {
  color: var(--secondary);
}
.hero-art {
  display: block;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.hero-art img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  object-position: center 30%;
  box-shadow: 0 28px 54px -30px hsl(var(--shadow-color) / 0.5);
}

/* ===================== How it works ===================== */
.how-it-works {
  padding: 5rem 0;
  background: var(--surface);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.7rem 1.5rem;
  box-shadow: 0 4px 10px -6px hsl(var(--shadow-color) / 0.55);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border-top: 2.5px solid var(--text-muted);
  border-right: 2.5px solid var(--text-muted);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}
.step-num {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  width: 35px;
  border-radius: 999px;
  background-color: var(--brand-green);
  color: var(--light-page-bg);
  text-align: center;
  margin-bottom: 8px;
}
.step h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4em;
}
.step p {
  font-size: 0.94rem;
  margin: 0;
}

/* ===================== Categories ===================== */
.categories {
  padding: 5rem 0;
  background: var(--light-page-bg);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--hero-dark-bg) 30%, transparent);
  border-radius: var(--radius-md);
  padding: 0;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 4px 10px -6px hsl(var(--shadow-color) / 0.3);
  transition:
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.6s ease;
}
.category-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--surface-alt);
}
.category-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--hero-dark-bg) 40%, transparent);
  transition: opacity 0.25s ease;
}
.category-card:hover .category-card-media::after {
  opacity: 0;
}
.category-card--featured {
  border-color: var(--primary);
  box-shadow: 0 0 10px 6px color-mix(in srgb, var(--primary) 30%, transparent);
}
.category-card-badge {
  position: absolute;
  top: -12px;
  right: 14px;
  z-index: 1;
  background: var(--badge-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow:
    0 0 0 3px var(--surface),
    0 4px 10px -4px hsl(var(--shadow-color) / 0.5);
}
.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.category-card-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem 1.2rem;
}
.category-card-label {
  font-weight: 700;
  font-size: 0.98rem;
}
.category-card-arrow {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.category-card:hover .category-card-arrow {
  color: var(--secondary);
  transform: translateX(3px);
}
.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -12px
    color-mix(in srgb, var(--primary) 45%, transparent);
}
.category-card:hover .category-card-media img {
  transform: scale(1.06);
}
.category-card--featured:hover {
  box-shadow: 0 16px 30px -12px
    color-mix(in srgb, var(--primary) 45%, transparent);
}

/* ===================== Request form ===================== */
.request {
  padding: 5rem 0;
  background: var(--surface);
}
.request-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}
.request-intro {
  position: sticky;
  top: 100px;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.request-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.4rem;
}
.request-method {
  padding: 1.1rem 1.25rem;
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px -6px hsl(var(--shadow-color) / 0.55);
}
.request-method-label {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hero-dark-bg);
}
.request-method-text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text);
}
.request-contact {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 1.2rem;
  font-size: 0.94rem;
}
.request-contact-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
}
.request-contact-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
}
.request-points {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 2rem;
}
.request-points li {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text);
}
.request-points .icon {
  color: var(--secondary);
}
.request-graphic {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.request-graphic-shield {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  fill: color-mix(in srgb, var(--secondary) 12%, transparent);
  stroke: var(--secondary);
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.request-graphic-check {
  fill: none;
  stroke: var(--secondary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.request-graphic-caption {
  margin: 0;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
}
.request-graphic-caption strong {
  color: var(--text);
  font-style: normal;
}

.form-card {
  --bg: var(--hero-dark-bg);
  --surface: #121a2c;
  --surface-alt: #182238;
  --surface-raised: #16213a;
  --text: #e8ecf4;
  --text-muted: #a7b0c3;
  --border: #253252;
  --link: #6fa2ff;
  --link-visited: #6fa2ff;
  --primary: #3d7df0;
  --primary-hover: #578fef;
  --on-primary: #061024;
  --secondary: #2ecc8f;
  --secondary-hover: #52d7a3;
  --on-secondary: #06231a;
  --focus-ring: #6fa2ff;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 10px -6px hsl(var(--shadow-color) / 0.3);
  display: flex;
  flex-direction: column;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.form-heading-container {
  margin-bottom: 16px;
}
.form-heading {
  font-size: 30px;
  font-weight: 700;
  color: var(--brand-green-light);
}
.form-card .field-error {
  color: #ff8477;
}
.form-card .btn-primary {
  box-shadow: 0 16px 34px -10px rgba(111, 162, 255, 0.15);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.field-row-3 {
  grid-template-columns: 0.8fr 1.1fr 1.1fr;
}
.field {
  margin-bottom: 1.2rem;
}
.form-group {
  border: none;
  padding: 0;
  margin: 0 0 2.25rem;
  min-width: 0;
}
.form-group:last-of-type {
  margin-bottom: 0;
}
.form-group-title {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
}
.lookup-tabs {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  border: none;
  border-bottom: 2px solid var(--border);
  padding: 4px 1rem 14px;
}
.lookup-tabs-or {
  flex: 0 0 auto;
  align-self: center;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  opacity: 0.75;
}
.lookup-tab {
  flex: 1 1 0%;
  padding: 0.65em 1em;
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-sm) - 3px);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.lookup-tab:not(.is-active) {
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--primary) 6.5%, transparent) 0%,
    transparent 100%
  );
}
.lookup-tab:hover {
  color: var(--text);
}
.lookup-tab.is-active {
  background: var(--primary);
  color: var(--text-muted);
  box-shadow: 0 16px 34px -10px rgba(111, 162, 255, 0.15);
}
.lookup-tab.is-active:hover {
  color: var(--text-muted);
}
.lookup-tab-short {
  display: none;
}
@media (max-width: 580px) {
  .lookup-tab-full {
    display: none;
  }
  .lookup-tab-short {
    display: inline;
  }
}
.vin-input {
  text-transform: uppercase;
}
.vin-input::placeholder {
  text-transform: none;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.75em 0.9em;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.form-card .field input::placeholder,
.form-card .field textarea::placeholder {
  color: color-mix(var(--text-muted), transparent 40%);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
  outline: none;
}
.field textarea {
  resize: vertical;
  min-height: 84px;
}
.field-error {
  display: none;
  color: #d92d20;
  font-size: 0.82rem;
  margin-top: 0.35rem;
}
.field.invalid input,
.field.invalid textarea {
  border-color: #d92d20;
}
.field.invalid .field-error {
  display: block;
}

.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-note {
  font-size: 0.82rem;
  margin: 0.9rem 0 0;
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 1.5rem 0;
}
.form-success .icon-xl {
  color: var(--secondary);
  margin: 0 auto 1rem;
}
.form-success h3 {
  font-size: 1.25rem;
}

/* ===================== Why us ===================== */
.why-us {
  padding: 5rem 0;
  background: var(--light-page-bg);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.why-card {
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 4px 10px -6px hsl(var(--shadow-color) / 0.3);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.why-card .icon-lg {
  color: var(--secondary);
  margin-bottom: 1rem;
}
.why-card h3 {
  font-size: 1.05rem;
}
.why-card p {
  font-size: 0.93rem;
  margin: 0;
}

/* ===================== About ===================== */
.about {
  padding: 5rem 0;
  background: var(--surface);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: center;
}
.about-art,
.about-copy {
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.about-art img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  object-position: center 20%;
  box-shadow: 0 4px 10px -6px hsl(var(--shadow-color) / 0.3);
}
.about-copy p {
  font-size: 1rem;
}
.about-copy .btn-primary {
  box-shadow: 0 18px 38px -12px hsl(var(--shadow-color) / 0.65);
}

/* ===================== CTA band ===================== */
.cta-band {
  padding: 4rem 0;
  background: var(--brand-gradient);
}
.cta-band-inner {
  text-align: center;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.6rem;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--brand-navy);
  padding: 1.2em 2.6em;
  font-size: 1.15rem;
  box-shadow: 0 18px 38px -12px hsl(var(--shadow-color) / 0.65);
}
.cta-band .btn-primary:hover {
  background: #eef2f8;
}

/* ===================== Footer ===================== */
.site-footer {
  background: var(--hero-dark-bg);
  color: #c9d3e6;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 24px 2.5rem;
}
.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: #f2f5fb;
}
.footer-brand-mark:hover {
  text-decoration: none;
}
.footer-brand-mark img {
  height: 38px;
  width: auto;
}
.footer-brand-mark span {
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}
.footer-accent {
  color: #2ecc8f;
}
.footer-brand p {
  color: #9aa7c4;
  font-size: 0.92rem;
  max-width: 34ch;
}
.footer-col h3 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-col a {
  color: #c9d3e6;
  font-size: 0.94rem;
}
.footer-col a:hover {
  color: #fff;
}
.footer-col li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.94rem;
}
.footer-col .muted {
  color: #7e8ab0;
}
.footer-col .icon {
  color: #7e8ab0;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.3rem 24px;
  font-size: 0.85rem;
  color: #7e8ab0;
}
.footer-bottom p {
  margin: 0;
}

/* ===================== Scroll reveal =====================
   JS adds these classes before an element's first scroll-into-view, then
   swaps in .is-visible when it crosses the viewport threshold. Each host
   element already carries the matching transition timing in its own rule
   above, so this only ever touches opacity/transform values — never the
   transition property itself — to avoid clobbering hover transitions. */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(18px);
}
.reveal-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-fade {
  opacity: 0;
}
.reveal-fade.is-visible {
  opacity: 1;
}

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .request-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    position: relative;
    overflow: hidden;
  }
  .hero-copy {
    z-index: 30;
  }
  .hero-art {
    position: absolute;
    top: -10%;
    right: -10%;
    height: 120%;
    width: 100%;
    z-index: 10;
  }
  .hero-art img {
    z-index: 10;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Standard property */
    mask-image: linear-gradient(to right, transparent 30%, #0b122050 100%);

    /* Required webkit prefix for Safari and older Chrome versions */
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 30%,
      #0b122050 100%
    );
  }
  .request-intro {
    position: static;
  }
  .steps,
  .category-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .step::after {
    display: none;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 903px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 24px 1.5rem;
    display: none;
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav li {
    border-top: 1px solid var(--border);
  }
  .main-nav li:first-child {
    border-top: none;
  }
  .main-nav a {
    display: block;
    padding: 0.9rem 0;
  }
  .menu-toggle {
    display: grid;
  }
  .header-actions .btn-sm {
    display: none;
  }
}

@media (max-width: 760px) {
  .field-row,
  .field-row-3 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .steps,
  .category-grid,
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .how-it-works .eyebrow,
  .categories .eyebrow,
  .request .eyebrow,
  .why-us .eyebrow,
  .about .eyebrow {
    font-size: 1rem;
    letter-spacing: 0.04em;
  }

  .hero-art {
    height: 120%;
    top: -10%;
    right: -35%;
  }
  .hero-art img {
    /* Standard property */
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      #0b122000 0%,
      #0b122030 100%
    );

    /* Required webkit prefix for Safari and older Chrome versions */
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      #0b122000 0%,
      #0b122030 100%
    );
  }
}

@media (max-width: 580px) {
  .form-card {
    margin-left: -24px;
    margin-right: -24px;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
  .hero-art {
    height: 120%;
    top: -20%;
    right: -35%;
  }
  .hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Standard property */
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      #0b122000 5%,
      #0b122030 100%
    );

    /* Required webkit prefix for Safari and older Chrome versions */
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      #0b122000 5%,
      #0b122030 100%
    );
  }

  .steps,
  .category-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .btn-lg {
    padding: 0.75em 1.5em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
