/* ==========================================================================
   Halo Garage Door Template: base stylesheet
   Tenant-configurable values live in the :root token block and in
   [data-market] overrides. Everything below the TOKENS block is structural
   and should not need editing per tenant.
   ========================================================================== */

/* ---------- TOKENS (tenant-configurable) ---------- */
:root {
  --bg: #ffffff;
  --surface: #faf7f2;
  --ink: #0b1420;
  --muted: #5b6474;
  --navy: #0e1a2b;
  --brass: #b08d3d;

  /* market accents */
  --sd-teal: #0e7c86;
  --sd-teal-dark: #0a5f67;
  --phx-clay: #c15e3b;
  --phx-clay-dark: #9d4a2c;

  --accent: var(--sd-teal);
  --accent-dark: var(--sd-teal-dark);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1240px;
  --pad-y: clamp(80px, 10vw, 160px);
  --pad-x: clamp(24px, 4vw, 48px);
  --radius: 4px;
  --nav-h: 72px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-market="phx"] {
  --accent: var(--phx-clay);
  --accent-dark: var(--phx-clay-dark);
}

/* ---------- RESET / BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fraunces ships oldstyle figures by default, which turns 3:23 into a
   lowered, mismatched pair of numerals. Force lining figures everywhere. */
html,
body,
h1, h2, h3, h4, h5, h6,
p, a, span, li, td, th, button, input, textarea, select, label, time {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "onum" 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: var(--pad-y);
}

.section--surface { background: var(--surface); }
.section--navy {
  background: var(--navy);
  color: #f5f1e9;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

/* ---------- TYPE HELPERS ---------- */
.label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 22px;
}
.label--accent { color: var(--accent); transition: color 400ms var(--ease); }

.section-num {
  display: inline-block;
  font-variant-numeric: lining-nums tabular-nums;
}

h2.display {
  font-size: clamp(34px, 5vw, 58px);
  font-style: italic;
  margin-bottom: 22px;
}

h3.display {
  font-size: clamp(21px, 2.2vw, 25px);
  font-style: normal;
}

.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--muted);
  max-width: 56ch;
}

.section--navy .lede { color: #c3ccd8; }

/* brass divider */
.divider {
  width: 100%;
  height: 1px;
  overflow: visible;
  margin-bottom: 56px;
}
.divider line {
  stroke: var(--brass);
  stroke-width: 1;
  opacity: 0.5;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.divider.is-in line {
  transition: stroke-dashoffset 1200ms var(--ease);
  stroke-dashoffset: 0;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 300ms var(--ease), color 300ms var(--ease),
    border-color 300ms var(--ease), transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 20, 32, 0.16);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(11, 20, 32, 0.22);
}
.btn--ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn--white-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--white-outline:hover {
  background: #fff;
  color: var(--ink);
  transform: translateY(-2px);
}

.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 350ms var(--ease), box-shadow 350ms var(--ease),
    backdrop-filter 350ms var(--ease);
}
.nav.is-stuck {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 rgba(11, 20, 32, 0.08);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
}
.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--brass);
}
.brand__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
  color: var(--ink);
}
.nav__links a {
  position: relative;
  padding-block: 4px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease), background-color 400ms var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

/* market toggle */
.mkt {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(11, 20, 32, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 10px -4px rgba(11, 20, 32, 0.28);
}
.mkt__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 400ms var(--ease), color 400ms var(--ease);
}
.mkt__btn:hover { color: var(--ink); }
.mkt__pin {
  width: 16px;
  height: 16px;
  flex: none;
  display: none;
}
.mkt__btn[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.mkt__btn[aria-pressed="true"] .mkt__pin { display: block; }
.mkt__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.drawer__mkt { padding: 4px 0 22px; }
.drawer__mktlbl {
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.mkt--drawer { display: flex; width: 100%; }
.mkt--drawer .mkt__btn { flex: 1; justify-content: center; min-height: 46px; font-size: 16px; }

/* mobile drawer */
.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(11, 20, 32, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav__burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  padding: 24px var(--pad-x) 40px;
  display: none;
  flex-direction: column;
}
.drawer.is-open { display: flex; }
.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--nav-h) - 24px);
}
.drawer__close {
  background: none;
  border: 0;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  padding: 4px 8px;
}
.drawer__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 36px;
}
.drawer__links a {
  font-family: var(--font-display);
  font-size: 30px;
  padding-block: 12px;
  border-bottom: 1px solid rgba(11, 20, 32, 0.08);
}
.drawer__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- HERO ---------- */
.hero {
  min-height: calc(100svh - var(--nav-h));
  padding-top: calc(var(--nav-h) + clamp(18px, 3vh, 40px));
  padding-bottom: clamp(48px, 7vh, 88px);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-inline: var(--pad-x);
}

.door-stage {
  position: relative;
  width: min(480px, 100%);
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(11, 20, 32, 0.4);
  cursor: grab;
  background: var(--ink);
  isolation: isolate;
}
.door-stage:active { cursor: grabbing; }
.door-stage:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.door-stage__photo {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 45%;
  transform: scale(1.05);
  opacity: 0;
  will-change: transform, opacity;
}
.door-stage__photo.is-active { opacity: 1; }

.door-stage__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(250, 247, 242, 0.72) 0%,
    rgba(250, 247, 242, 0.18) 38%,
    rgba(11, 20, 32, 0.06) 100%
  );
}

.door-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.hero__hint {
  position: absolute;
  right: var(--pad-x);
  bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 700ms var(--ease);
}
.hero__hint.is-gone { opacity: 0; }

.hero__copy {
  margin-top: clamp(28px, 4vh, 48px);
  max-width: 700px;
}
.hero__copy > * { opacity: 0; }

.hero h1 {
  font-size: clamp(38px, 6.2vw, 68px);
  font-style: italic;
  margin-bottom: 18px;
}
.hero__sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 26px;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero__call {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.hero__call a { color: var(--accent); font-weight: 500; transition: color 400ms var(--ease); }

/* ---------- TRUST BAR ---------- */
.trust {
  border-block: 1px solid rgba(11, 20, 32, 0.09);
  background: var(--bg);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: 40px;
}
.trust__item {
  text-align: center;
  border-left: 1px solid rgba(11, 20, 32, 0.09);
  padding-inline: 12px;
}
.trust__item:first-child { border-left: 0; }
.trust__num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.trust__lbl {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- SERVICE CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.card {
  position: relative;
  background: var(--bg);
  border: 1px solid rgba(11, 20, 32, 0.08);
  border-radius: var(--radius);
  padding: 32px 30px 30px;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(11, 20, 32, 0.35);
}
.card:hover::after { transform: scaleX(1); }

.card__icon {
  width: 34px;
  height: 34px;
  color: var(--accent);
  margin-bottom: 20px;
  transition: color 400ms var(--ease);
}
.card h3 { margin-bottom: 10px; }
.card p {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 18px;
}
.card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  display: block;
  margin-bottom: 14px;
}
.card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: color 400ms var(--ease);
}
.card__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- WITNESS ---------- */
.section--navy .label { color: var(--brass); }
.section--navy h2 { color: #fdfaf4; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  counter-reset: step;
}
.steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.steps__n {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  color: var(--brass);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
}
.steps__t {
  font-size: 16.5px;
  padding-top: 7px;
  color: #e4e9ef;
}
.section--navy .steps__t { color: #dfe6ee; }

.witness-cta { margin-top: 40px; }
.faith-note,
.free-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--brass);
  margin-top: 14px;
}

/* ---------- HOW WE WORK ---------- */
.stepslist {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: hw;
}
.stepslist li {
  padding: 22px 0 22px 58px;
  position: relative;
  border-bottom: 1px solid rgba(11, 20, 32, 0.1);
}
.stepslist li:last-child { border-bottom: 0; }
.stepslist li::before {
  counter-increment: hw;
  content: "0" counter(hw);
  position: absolute;
  left: 0;
  top: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--brass);
}
.stepslist h3 { font-size: 20px; margin-bottom: 6px; }
.stepslist p { color: var(--muted); font-size: 15.5px; margin: 0; }

.photostack {
  display: grid;
  gap: 18px;
}
.photostack figure { margin: 0; }
.photostack img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.photostack figcaption {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 9px;
}

/* ---------- TESTIMONIALS ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.quote {
  border: 1px solid rgba(176, 141, 61, 0.38);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: var(--bg);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease),
    opacity 320ms var(--ease);
}
.quote:hover {
  transform: translateY(-4px) rotate(0.5deg);
  box-shadow: 0 18px 40px -24px rgba(11, 20, 32, 0.35);
}
.quote.is-swapping { opacity: 0; }
.stars {
  color: var(--brass);
  letter-spacing: 3px;
  font-size: 14px;
  margin-bottom: 14px;
}
.quote__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  margin-bottom: 16px;
}
.quote__who {
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
}

/* ---------- ABOUT ---------- */
.about__body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brass);
  float: left;
  font-size: 4em;
  line-height: 0.82;
  padding: 6px 12px 0 0;
}
.about__body p { color: var(--muted); }
.badge-tile {
  margin: 0;
  background: #f6efe1;
  border: 1px solid rgba(176, 141, 61, 0.28);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
}
.badge-tile img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
  border-radius: 999px;
}
.badge-tile figcaption {
  margin-top: 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--brass);
}

/* ---------- BOOKING BAND ---------- */
.band {
  background: var(--accent);
  color: #fff;
  transition: background-color 400ms var(--ease);
  padding-block: clamp(56px, 7vw, 88px);
}
.band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.band h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-style: italic;
  color: #fff;
  margin: 0;
}
.band__right { text-align: right; }
.band__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  display: block;
  margin-bottom: 14px;
}
.band__note {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  margin: 12px 0 0;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy);
  color: #c6cfda;
  padding-top: clamp(64px, 8vw, 100px);
  padding-bottom: 34px;
  font-size: 14.5px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.9fr 1.7fr;
  gap: 40px;
}
.footer h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a:hover { color: #fff; }
.footer .brand__name { color: #fdfaf4; }
.footer__slogan {
  font-family: var(--font-display);
  font-style: italic;
  color: #e6dcc6;
  margin-top: 16px;
  font-size: 16px;
}
.footer__phones {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.9;
}
.footer__phones span {
  display: inline-block;
  min-width: 88px;
  color: rgba(233, 238, 244, 0.65);
}
.footer__bottom {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8d99a8;
}
.footer__egg {
  text-align: center;
  margin-top: 26px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--brass);
  opacity: 0.85;
}

/* ---------- REVEALS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- CURSOR ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid transparent;
  pointer-events: none;
  z-index: 500;
  opacity: 0;
  transition: width 260ms var(--ease), height 260ms var(--ease),
    background-color 260ms var(--ease), border-color 260ms var(--ease),
    opacity 220ms var(--ease);
  will-change: transform;
}
.cursor.is-on { opacity: 1; }
.cursor.is-big {
  width: 32px;
  height: 32px;
  background: transparent;
  border-color: var(--accent);
}
@media (hover: none), (pointer: coarse) {
  .cursor { display: none !important; }
}

/* ---------- WITNESS PAGE ---------- */
.page-head {
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 110px));
  padding-bottom: clamp(40px, 6vw, 70px);
  background: var(--surface);
}
.page-head h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  font-style: italic;
  max-width: 18ch;
}

.form {
  display: grid;
  gap: 22px;
  max-width: 620px;
}
.field { display: grid; gap: 7px; }
.field label {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid rgba(11, 20, 32, 0.2);
  border-radius: var(--radius);
  padding: 13px 14px;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--accent); }

.drop {
  border: 1.5px dashed rgba(11, 20, 32, 0.25);
  border-radius: var(--radius);
  padding: 38px 24px;
  text-align: center;
  cursor: pointer;
  background: var(--bg);
  transition: border-color 260ms var(--ease), background-color 260ms var(--ease);
}
.drop.is-over,
.drop:hover {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.015);
}
.drop__title {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 6px;
  display: block;
}
.drop__hint { font-size: 13.5px; color: var(--muted); }
.drop__files {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--accent);
  font-weight: 500;
}

.two-col-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.success {
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  padding: 42px 36px;
  background: var(--surface);
  max-width: 620px;
}
.success h2 { font-size: 30px; font-style: italic; margin-bottom: 12px; }

.sidebar-note {
  background: var(--surface);
  border-left: 2px solid var(--brass);
  padding: 26px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.sidebar-note h3 { font-size: 19px; margin-bottom: 12px; }
.sidebar-note ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.sidebar-note li { margin-bottom: 8px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .nav__links,
  .nav .mkt--desktop,
  .nav .btn--nav { display: none; }
  .nav__burger { display: flex; }
  .grid-2 { grid-template-columns: 1fr; gap: 44px; }
  .cards,
  .quotes { grid-template-columns: 1fr; }
  .photostack { grid-template-columns: 1fr 1fr; }
  .photostack figure:first-child { grid-column: 1 / -1; }
  .trust__grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .trust__item:nth-child(3) { border-left: 0; }
  .band__inner { flex-direction: column; align-items: flex-start; }
  .band__right { text-align: left; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .hero__hint { position: static; margin-top: 14px; }
  .photostack { grid-template-columns: 1fr; }
  .photostack figure:first-child { grid-column: auto; }
  .two-col-fields { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__lbl { font-size: 11.5px; letter-spacing: 0.07em; }
  .about__body p:first-of-type::first-letter { font-size: 3.2em; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__copy > * { opacity: 1; }
  .cursor { display: none !important; }
  .divider line { stroke-dashoffset: 0; }
  .door-stage { cursor: default; }
}

/* ---------- LICENSES AND CUSTOM FIELDS ----------
   Rendered by script.js. When a tenant has nothing to show, these
   nodes are removed from the document, so none of this applies. */
.footer__licenses {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}
.footer__licenses-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}
.footer__license {
  white-space: nowrap;
}
.footer__license-sep {
  color: rgba(255, 255, 255, 0.35);
}

.cf-list {
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: 13.5px;
}
.cf-list dt {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  align-self: baseline;
}
.cf-list dd {
  margin: 0;
  color: inherit;
}
.cf-list--footer {
  color: #c6cfda;
}
.cf-list--row {
  grid-template-columns: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 26px;
  margin-top: 40px;
}
.cf-list--row dt {
  margin-right: -18px;
}

.cf-line {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--muted);
}
.cf-line--hero {
  margin: 0 0 22px;
  color: inherit;
  opacity: 0.9;
}

@media (max-width: 720px) {
  .cf-list {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .cf-list dd {
    margin-bottom: 12px;
  }
  .cf-list--row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .cf-list--row dt {
    margin-right: 0;
  }
}


/* ---------- FULLY STOCKED NOTE ---------- */
.stocked {
  margin-top: clamp(28px, 4vw, 44px);
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f6efe1;
  border: 1px solid rgba(176, 141, 61, 0.3);
  border-radius: var(--radius);
  padding: 16px 22px;
}
.stocked img {
  width: 120px;
  height: 84px;
  flex: none;
  object-fit: cover;
  border-radius: 3px;
}
.stocked p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--navy);
  line-height: 1.45;
}
@media (max-width: 620px) {
  .stocked { flex-direction: column; align-items: flex-start; gap: 14px; }
  .stocked img { width: 100%; height: 130px; }
}


/* ==========================================================================
   SERVICE INTERACTIVE MOMENTS
   Shared shell for every service walkthrough. The spring is the first one.
   New services reuse .si and swap the SVG plus the copy.
   ========================================================================== */
.section--si {
  background: var(--bg);
  border-block: 1px solid rgba(11, 20, 32, 0.09);
}

.si {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.si__head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-style: italic;
  margin: 0 0 10px;
}
.si__sub {
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 16px;
  max-width: 44ch;
}

.si__stage {
  position: relative;
  width: min(640px, 100%);
  margin-inline: auto;
  padding: 10px 0 6px;
}
.si__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* illustration parts */
.si-guides line {
  stroke: rgba(91, 100, 116, 0.32);
  stroke-width: 1;
  stroke-dasharray: 3 6;
}
.si-shaft { fill: var(--navy); }
.si-shaft-hi {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 2;
}
.si-bracket rect { fill: var(--navy); }
.si-bolt { fill: #f6efe1; opacity: 0.85; }
.si-drum-body { fill: var(--navy); }
.si-drum-groove {
  fill: none;
  stroke: rgba(176, 141, 61, 0.55);
  stroke-width: 2;
}
.si-drum-hub { fill: var(--brass); }
.si-cable {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.si-spring {
  transform-box: fill-box;
  transform-origin: center;
}
.si-spring ellipse {
  fill: none;
  stroke: var(--brass);
  stroke-width: 3.4;
  stroke-linecap: round;
}
.si-spring rect { fill: var(--brass); opacity: 0.9; }
.si-spring--new { opacity: 0; }

/* worn state after the swap */
.si-spring--current.is-spent ellipse { stroke: #9aa2ad; }
.si-spring--current.is-spent rect { fill: #9aa2ad; }

.si-dot {
  fill: var(--brass);
  transform-box: fill-box;
  transform-origin: center;
  animation: si-pulse 2s var(--ease) infinite;
}
.si.is-replaced .si-dot,
.si.is-diagnosing .si-dot { opacity: 0; }
@keyframes si-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1.25); }
}

.si-sparks circle {
  fill: var(--brass);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

/* tooltip */
.si__tip {
  position: absolute;
  top: 6%;
  right: -6px;
  z-index: 4;
  width: min(250px, 72%);
  text-align: left;
  background: var(--navy);
  color: #f3f6fa;
  border-left: 3px solid var(--brass);
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 16px 34px -18px rgba(11, 20, 32, 0.7);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  pointer-events: none;
}
.si__tip.is-on { opacity: 1; transform: translateY(0); }

/* chips */
.si__chips {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
.si__chip {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: transparent;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  padding: 9px 26px;
  min-height: 42px;
  cursor: pointer;
  transition: background-color 240ms var(--ease), color 240ms var(--ease),
    border-color 240ms var(--ease);
}
.si__chip:hover,
.si__chip:focus-visible {
  background: var(--brass);
  border-color: var(--brass);
  color: #fff;
}
.si__chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.si__chip[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.si__result[hidden] { display: none; }
.si__result {
  margin: 22px auto 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 1.9vw, 21px);
  color: var(--navy);
  max-width: 40ch;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 380ms var(--ease), transform 380ms var(--ease);
}
.si__result.is-on { opacity: 1; transform: translateY(0); }

.si__reset {
  margin-top: 14px;
  background: none;
  border: 0;
  padding: 6px 4px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.si__reset:hover { color: var(--navy); }
.si__reset:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* build breadcrumbs, only rendered with ?debug=1 */
.si-todo[hidden] { display: none; }
.si-todo {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.si-todo__card {
  border: 1px dashed rgba(91, 100, 116, 0.5);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  color: var(--muted);
}
.si-todo__card span {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 6px;
}
.si-todo__card em {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 620px) {
  .si__tip {
    position: static;
    width: 100%;
    margin-top: 14px;
    transform: none;
    display: none;
  }
  .si__tip.is-on { display: block; }
  .si__chips { flex-direction: column; align-items: stretch; }
  .si__chip { width: 100%; }
  .si-todo { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .si-dot { animation: none; opacity: 0.8; }
  .si__tip,
  .si__result { transition: none; }
}

/* ---------- FOOTER: PARENT BRAND LINE ---------- */
.footer__powered {
  flex-basis: 100%;
  margin-top: 8px;
  font-size: 13px;
  color: var(--brass);
  text-decoration: none;
  transition: color 300ms var(--ease);
}
.footer__powered:hover,
.footer__powered:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #d3ae5c;
}
