/*
  AE Global Equipment Care: intake-match layer (DRAFT, visual only).
  Loaded after styles.css on /, /request/ and /request/upload/.
  Mirrors intake.aeglobal.com (main 20c46974, live 2026-10-26):
  Evergreen top bar with Sand hairline, official Sand SVG logo, Work Sans variable,
  Georgia display heads, G1 hero with 330deg line + dot pattern, 16px white cards
  with soft shadow, 8px Evergreen buttons with a Sand arrow, 8px inputs with a
  Sand focus ring, Sand progress line, pill step label, tracked uppercase footer.
  Pairings: White/Sand/Light Green on Evergreen; Evergreen/Natural Black on White.
  Sand on White is decorative only (rules, arrows), never text.
  No markup, script, Turnstile, API or content changes.
*/

@font-face {
  font-family: "Work Sans Variable";
  src: url("/assets/work-sans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sans: "Work Sans Variable", "Work Sans", Calibri, Carlito, Arial, sans-serif;
  --line: rgba(106, 131, 128, 0.35);
  --line-strong: rgba(106, 131, 128, 0.55);
  --sand-line: rgba(209, 185, 141, 0.35);
  --radius: 12px;
  --radius-sm: 8px;
  --card-shadow: 0 1px 2px rgba(24, 51, 47, 0.06), 0 24px 60px -28px rgba(24, 51, 47, 0.28);
  --ring: 0 0 0 3px rgba(209, 185, 141, 0.55);
  --pad-x: clamp(20px, 5vw, 72px);
}

body { font-family: var(--sans); color: var(--black); }

/* ---------- Top bar (intake .topbar) ---------- */
.site-header {
  background: var(--evergreen);
  border-bottom: 1px solid var(--sand-line);
}
.site-header .container {
  min-height: 84px;
  padding-block: 0;
  align-items: center;
}
.brand { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 0; }
.brand img { width: auto; height: 28px; }
.header-actions .header-cta,
.header-actions .header-cta.btn {
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sand);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: none;
}
.header-actions .header-cta::after { content: "\2192" / ""; letter-spacing: 0; }
.header-actions .header-cta:hover { text-decoration: underline; text-underline-offset: 4px; box-shadow: none; }

/* ---------- Hero and closing band (intake .intro) ---------- */
.hero,
.band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--evergreen) 0%, var(--evergreen) 55%, var(--viridian) 140%);
  color: var(--white);
}
.hero::before,
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(330deg, transparent 0 46px, rgba(226, 250, 219, 0.06) 46px 47px),
    radial-gradient(rgba(226, 250, 219, 0.13) 1px, transparent 1.4px);
  background-size: auto, 18px 18px;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(200deg, #000 0%, transparent 70%);
}
.hero > .container,
.band > .container { position: relative; }
.hero { padding-block: 72px 64px; }
.hero--compact { padding-block: 56px 48px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--sand);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 1px; background: var(--sand); }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 14ch;
}
.hero .lead { font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--white); max-width: 46ch; }
.hero .fine { font-size: 13px; font-weight: 300; color: var(--light-green); opacity: 0.9; max-width: 60ch; }
.band h2 { font-family: var(--display); color: var(--white); }
.band p { font-weight: 300; color: var(--white); }

/* ---------- Buttons (intake .primary) ---------- */
.btn {
  min-height: 52px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--evergreen); color: var(--white); box-shadow: none; }
.btn--primary:hover { background: #10241F; box-shadow: none; }
.btn--primary::after { content: "\2192" / ""; color: var(--sand); }
.btn--light { background: var(--white); color: var(--evergreen); box-shadow: none; }
.btn--light:hover { background: var(--light-green); box-shadow: none; }
.btn--light::after { content: "\2192" / ""; color: var(--evergreen); }
.btn--secondary {
  background: var(--white);
  color: var(--evergreen);
  border: 1px solid var(--line-strong);
}
.btn--secondary:hover { border-color: var(--evergreen); box-shadow: none; }
.btn--small { min-height: 44px; }
.hero .actions .btn, .band .actions .btn { min-width: 220px; }

/* ---------- Sections ---------- */
.section + .section > .container::before { background: var(--line); height: 1px; }
.section-head h2, .split h2, h2 { font-family: var(--display); color: var(--evergreen); }
.service-grid li {
  padding: 24px 24px 26px;
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(24, 51, 47, 0.04);
}
.service-grid li::before { display: none; }
.service-grid h3 { color: var(--evergreen); font-weight: 500; }
.service-grid p, .steps p, .split p, .faq .answer p { font-weight: 300; }

/* How it works: intake step list (circled 01/02/03) */
.step-num {
  width: 34px; height: 34px;
  border: 1px solid var(--evergreen);
  background: transparent;
  color: var(--evergreen);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.steps li:first-child .step-num { background: var(--evergreen); color: var(--sand); }
.steps li { border-top: 1px solid var(--line); padding-top: 18px; }
.steps h3 { color: var(--evergreen); font-weight: 500; }
.after-steps { color: var(--evergreen); font-weight: 500; }

.checklist li { border-bottom: 1px solid var(--line); }
.checklist .icon { color: var(--evergreen); }

.faq details, .faq details:last-child { border-color: var(--line); }
.faq { border-color: var(--line); }
.faq summary { color: var(--evergreen); font-weight: 500; min-height: 52px; }
.faq summary::after { border-color: var(--evergreen); }

/* Safety: intake .code-delivery treatment */
.safety {
  border: 1px solid var(--sand);
  border-left: 5px solid var(--sand);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--evergreen);
  padding: 22px 20px;
}
.safety h2 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--evergreen); }
.safety p { color: var(--black); font-weight: 400; }
.safety .icon { color: var(--evergreen); }

/* ---------- Footer (intake footer) ---------- */
.site-footer {
  background: var(--evergreen);
  color: var(--white);
  border-top: 1px solid var(--sand-line);
}
.site-footer .container,
.band + .site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding-block: 22px;
  border-top: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer .container::before {
  content: "";
  display: block;
  width: 92px; height: 14px;
  background: url("/assets/aeglobal-logo-sand.svg") left center / contain no-repeat;
}
.site-footer p { margin: 0; color: var(--white); }
.site-footer a { color: var(--sand); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer p:last-child:not(:first-child) { margin-left: auto; }

/* ---------- Request page: wizard card (intake .card) ---------- */
.request-band { background: var(--offwhite); }
.wizard {
  max-width: 760px;
  background: var(--white);
}
@media (min-width: 640px) {
  .wizard {
    padding: 36px 44px 40px;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
  }
}
.wizard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.progress-text {
  display: inline-block;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid var(--sand);
  border-radius: 999px;
  color: var(--evergreen);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.progress-bar {
  display: flex;
  gap: 0;
  height: 3px;
  margin: 18px 0 30px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--offwhite);
}
.progress-bar span { flex: 1; height: 3px; border-radius: 0; background: transparent; }
.progress-bar span.is-done { background: var(--sand); }
.step-title { font-family: var(--display); color: var(--evergreen); font-size: 30px; line-height: 1.15; }
.step-intro { font-weight: 300; }
.label, legend.label { color: var(--evergreen); font-size: 13px; font-weight: 500; }
.hint { font-weight: 300; }

.input, .select-wrap select, textarea.input {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  background: var(--white);
  color: var(--black);
}
.input:focus, .select-wrap select:focus, textarea.input:focus {
  border-color: var(--evergreen);
  outline: none;
  box-shadow: var(--ring);
}

.choice, .check--boxed {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.choice:hover { border-color: var(--evergreen); }
.choice:has(input:checked), .check--boxed:has(input:checked) {
  border-color: var(--evergreen);
  box-shadow: inset 0 0 0 1px var(--evergreen);
  background: var(--white);
}
.choice:has(input:focus-visible) { outline: none; box-shadow: var(--ring); border-color: var(--evergreen); }
.choice input, .check input { accent-color: var(--evergreen); }
.choice__title { color: var(--evergreen); font-weight: 500; }
.choice__desc { font-weight: 300; }

.wizard-nav { border-top: 1px solid var(--line); padding-top: 22px; }
.wizard-nav .btn--primary { min-width: 220px; }

.review-card { border-color: var(--line); border-radius: var(--radius); }
.callout { border-radius: var(--radius); }

/* ---------- Mobile (intake breakpoints) ---------- */
@media (max-width: 760px) {
  .site-header .container { min-height: 64px; }
  .brand img { height: 20px; }
  .header-actions .header-cta, .header-actions .header-cta.btn { font-size: 10px; letter-spacing: 0.1em; }
  .hero { padding-block: 44px 40px; }
  .hero--compact { padding-block: 32px 28px; }
  .hero h1 { font-size: 36px; max-width: none; }
  .hero .actions .btn, .band .actions .btn { width: 100%; }
  .step-title { font-size: 26px; }
  .wizard { padding: 28px 20px 32px; box-shadow: none; border-left: 0; border-right: 0; border-radius: 0; }
  .wizard-nav .btn--primary { width: 100%; min-width: 0; }
  .site-footer .container { gap: 10px; }
  .site-footer .container::before { width: 100%; background-size: auto 14px; }
  .site-footer p:last-child:not(:first-child) { margin-left: 0; }
}

@media (forced-colors: active) {
  .hero::before, .band::before { display: none; }
  .progress-bar span.is-done { background: CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
