/* Windy City Property Services
   Layout: full-bleed black/forest/beige bands, Chicago curtain-wall verticals as the motif,
   Italiana display over Jost text. One orchestrated load moment in the hero; everything
   else moves only in response to the visitor (bands, drawer, menu). */

:root {
  --black: #000000;
  --forest: #1d3a2c;
  --deep: #12271d;
  --beige: #d9ccb4;
  --cream: #eee6d7;
  --muted: #a9b4a8;
  --line: rgba(238, 230, 215, 0.16);
  --line-strong: rgba(238, 230, 215, 0.32);
  --ink-on-beige: #000000;
  --muted-on-beige: #3c4a40;
  --error: #f0a08a;

  --font-display: "Italiana", "Didot", "Bodoni 72", Georgia, serif;
  --font-text: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2.25rem, 1.6rem + 3vw, 4rem);
  --step-4: clamp(2.6rem, 1.4rem + 5.6vw, 7rem);

  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  --header-h: 84px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-text);
  font-size: var(--step-0);
  font-weight: 350;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: calc(1240px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--beige); color: var(--black); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 16px; }

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

.display {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.04;
  letter-spacing: 0.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  min-height: 46px;
  padding: 0.7em 1.4em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn-lg { min-height: 54px; padding-inline: 1.8em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-solid { background: var(--beige); color: var(--black); }
.btn-solid:hover { background: var(--cream); }
.btn-ghost { border-color: var(--line-strong); color: var(--cream); background: transparent; }
.btn-ghost:hover { border-color: var(--cream); }
.btn-dark { background: var(--black); color: var(--cream); }
.btn-dark:hover { background: var(--forest); }

.text-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; color: var(--beige);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  max-width: calc(1240px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand-mark { width: 44px; height: 44px; color: var(--beige); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: 0.12em; text-transform: uppercase; }
.brand-sub { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.38em; text-transform: uppercase; margin-top: 6px; color: var(--beige); }

.primary-nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.primary-nav a {
  text-decoration: none; font-size: 0.95rem; color: var(--cream); opacity: 0.86;
  position: relative; padding-block: 6px;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--beige); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.primary-nav a:hover { opacity: 1; }
.primary-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { text-decoration: none; font-size: 0.95rem; font-variant-numeric: tabular-nums; opacity: 0.86; }
.header-phone:hover { opacity: 1; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  position: relative;
}
.menu-lines, .menu-lines::before {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--cream);
  transition: transform 0.4s var(--ease);
}
.menu-lines { top: 19px; }
.menu-lines::before { content: ""; left: 0; right: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-lines { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::before { transform: translateY(-7px) rotate(-90deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--forest);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  overflow-y: auto;
  animation: menu-in 0.45s var(--ease);
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1.25;
  text-decoration: none; border-bottom: 1px solid var(--line); padding-block: 8px;
}
.mobile-menu-foot { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.mobile-menu-foot a { font-size: 1.25rem; text-decoration: none; }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 72px);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.35) 58%, rgba(18,39,29,0.96) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 65%);
}
/* Curtain-wall mullions: thin verticals in the spirit of Mies van der Rohe's Chicago towers */
.hero-mullions {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 12 - 1px), rgba(238,230,215,0.07) calc(100% / 12 - 1px), rgba(238,230,215,0.07) calc(100% / 12));
  transform-origin: top;
}
.hero-content { padding-bottom: clamp(40px, 6vw, 72px); }
.hero-title {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 0.98;
  letter-spacing: 0.005em;
  max-width: 13ch;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-lede { max-width: 54ch; margin-top: 28px; font-size: var(--step-1); font-weight: 300; color: var(--cream); opacity: 0.92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.assurances {
  list-style: none; margin: 0 auto; padding-block: 28px 36px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.assurances li { display: flex; flex-direction: column; gap: 2px; padding-inline: 0 20px; }
.assurances li + li { border-left: 1px solid var(--line); padding-left: 24px; }
.assurances strong { font-weight: 500; font-size: 1rem; color: var(--beige); }
.assurances span { font-size: var(--step--1); color: var(--muted); }

/* Load sequence: the one orchestrated moment on the page */
.js .hero-title .line > span { transform: translateY(105%); }
.js .hero-lede, .js .hero-content .hero-actions, .js .assurances { opacity: 0; transform: translateY(14px); }
.js .hero-mullions { transform: scaleY(0); }
.js .hero-media img { transform: scale(1.06); }
.is-loaded .hero-title .line > span { transform: none; transition: transform 1.1s var(--ease); }
.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: 0.12s; }
.is-loaded .hero-lede, .is-loaded .hero-content .hero-actions, .is-loaded .assurances {
  opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.is-loaded .hero-lede { transition-delay: 0.45s; }
.is-loaded .hero-content .hero-actions { transition-delay: 0.6s; }
.is-loaded .assurances { transition-delay: 0.8s; }
.is-loaded .hero-mullions { transform: none; transition: transform 1.8s var(--ease) 0.1s; }
.is-loaded .hero-media img { transform: none; transition: transform 2.4s var(--ease); }

/* ---------- Section heads ---------- */
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end;
  padding-block: clamp(80px, 10vw, 140px) clamp(36px, 5vw, 56px);
}
.section-head p { color: var(--muted); max-width: 46ch; justify-self: end; }
.section-head-dark { padding-top: 0; }

/* ---------- Services: bands ---------- */
.services { background: var(--deep); }
.bands { border-top: 1px solid var(--line); }
.band { --band-bg: var(--forest); --band-fg: var(--cream); --band-muted: var(--muted); --band-line: var(--line);
  background: var(--band-bg); color: var(--band-fg); border-bottom: 1px solid var(--band-line); }
.band-forest { --band-bg: var(--forest); }
.band-black { --band-bg: var(--black); }
.band-deep { --band-bg: #17301f; }
.band-beige { --band-bg: var(--beige); --band-fg: var(--ink-on-beige); --band-muted: var(--muted-on-beige); --band-line: rgba(0,0,0,0.14); }

.band-heading { font: inherit; }
.band-toggle {
  width: 100%;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; align-items: center; gap: 24px;
  max-width: calc(1240px + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(26px, 3.4vw, 44px) var(--gutter);
  background: none; border: 0; text-align: left; cursor: pointer; color: inherit;
}
.band-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 3vw, 3.75rem);
  line-height: 1.05;
  transition: transform 0.5s var(--ease);
}
.band-toggle:hover .band-name { transform: translateX(10px); }
.band-hint { color: var(--band-muted); font-size: 1rem; }
.band-icon {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; opacity: 0.7;
  position: relative; flex: none;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}
.band-icon::before, .band-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px;
  background: currentColor; transform: translate(-50%, -50%);
}
.band-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.5s var(--ease); }
.band-toggle:hover .band-icon { opacity: 1; }
.band.is-open .band-icon { transform: rotate(180deg); }
.band.is-open .band-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.band-panel {
  display: grid; grid-template-rows: 1fr;
  transition: grid-template-rows 0.7s var(--ease);
}
.js .band-panel { grid-template-rows: 0fr; }
.js .band.is-open .band-panel { grid-template-rows: 1fr; }
.band-inner {
  min-height: 0; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px);
}
.band-inner > * { margin-bottom: clamp(32px, 4vw, 56px); }
.band-figure { overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%; background: rgba(255,255,255,0.04); }
.band-figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease), opacity 0.8s var(--ease); opacity: 0.4; }
.band.is-open .band-figure img, .no-js .band-figure img { transform: none; opacity: 1; }
.band-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; min-width: 0; }
.band-copy > p { font-size: var(--step-1); font-weight: 300; max-width: 40ch; }

.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 1px; background: currentColor; opacity: 0.6;
}

/* ---------- Why us ---------- */
.why { background: var(--black); padding-block: clamp(80px, 10vw, 150px); }
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.why-figure { aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: var(--deep); }
.why-figure img { width: 100%; height: 100%; object-fit: cover; }
.why-copy .display { margin-bottom: clamp(28px, 4vw, 48px); }
.benefits { display: grid; gap: 0; }
.benefits > div { padding-block: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px; }
.benefits > div:last-child { border-bottom: 1px solid var(--line); }
.benefits dt { font-weight: 500; color: var(--beige); }
.benefits dd { color: var(--muted); }

/* ---------- Process ---------- */
.process { background: var(--forest); padding-block: clamp(80px, 9vw, 130px); }
.process .display { margin-bottom: clamp(36px, 5vw, 64px); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.steps li { padding: 28px 28px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--beige); }
.steps h3 { font-size: var(--step-1); font-weight: 500; }
.steps p { color: var(--cream); opacity: 0.8; max-width: 34ch; }

/* ---------- Scope ---------- */
.scope { background: var(--beige); color: var(--ink-on-beige); padding-block: clamp(80px, 9vw, 130px); }
.scope .section-head p { color: var(--muted-on-beige); }
.scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(0,0,0,0.25); }
.scope-col { padding: 32px 40px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.scope-col + .scope-col { padding-left: 40px; border-left: 1px solid rgba(0,0,0,0.18); }
.scope-col h3 { font-family: var(--font-display); font-size: var(--step-2); }
.scope-note { color: var(--muted-on-beige); margin-bottom: 10px; }

/* ---------- About ---------- */
.about { background: var(--black); padding-block: clamp(80px, 10vw, 150px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(36px, 6vw, 96px); align-items: end; }
.about-copy { display: flex; flex-direction: column; gap: 20px; }
.about-copy .display { margin-bottom: 12px; max-width: 16ch; }
.about-copy p { max-width: 62ch; color: var(--cream); opacity: 0.86; }
.about-figure { aspect-ratio: 3 / 4; max-width: 100%; overflow: hidden; background: var(--deep); }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Service area ---------- */
.area { background: var(--deep); padding-block: clamp(80px, 10vw, 140px); }
.area-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 80px); align-items: stretch; }
.area-copy { display: flex; flex-direction: column; gap: 20px; }
.area-copy > p { color: var(--muted); max-width: 48ch; }
.regions { display: grid; }
.regions > div { padding-block: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 16px; }
.regions dt { color: var(--beige); font-weight: 500; }
.regions dd { color: var(--muted); font-size: 0.95rem; }
.area-note { color: var(--muted); }
.area-map { position: relative; min-height: 460px; border: 1px solid var(--line); overflow: hidden; background: var(--black); }
.area-map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(1) invert(0.9) sepia(0.35) hue-rotate(65deg) saturate(1.4) contrast(0.92) brightness(0.95);
}
.map-credit {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  background: rgba(0,0,0,0.75); color: var(--cream); font-size: 0.8rem; padding: 6px 12px; border-radius: 999px; text-decoration: none;
}

/* ---------- FAQ ---------- */
.faq { background: var(--black); padding-block: clamp(80px, 10vw, 140px); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 80px); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-size: var(--step-1); font-weight: 400;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px;
  border-right: 1.5px solid var(--beige); border-bottom: 1.5px solid var(--beige);
  transform: translateY(-75%) rotate(45deg); transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-bottom: 24px; max-width: 62ch; }
.faq details[open] p { animation: faq-in 0.5s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Careers ---------- */
.careers { background: var(--forest); padding-block: clamp(80px, 10vw, 140px); }
.careers-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.careers-copy { display: flex; flex-direction: column; gap: 22px; }
.careers-copy > p { max-width: 48ch; opacity: 0.88; }
.careers-figure { aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; margin-top: 12px; background: var(--deep); }
.careers-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Forms ---------- */
.form-card { background: var(--black); padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.form-card h3, .drawer-head h2 { font-family: var(--font-display); font-size: var(--step-2); }
.form-intro { color: var(--muted); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--beige); }
.optional { font-weight: 300; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 10px 2px; border-radius: 0; font-size: 1rem; font-weight: 350;
  transition: border-color 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 84px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--beige) 50%), linear-gradient(135deg, var(--beige) 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.field select option { background: var(--black); color: var(--cream); }
.field input::placeholder, .field textarea::placeholder { color: rgba(169, 180, 168, 0.65); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--beige); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--beige); }
.field.has-error input, .field.has-error select, .field.has-error .file-drop { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.85rem; }
.hint { color: var(--muted); font-size: 0.85rem; }

.file-drop {
  position: relative; border: 1px dashed var(--line-strong); padding: 18px 16px; text-align: center;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.file-drop:hover, .file-drop.is-over { border-color: var(--beige); background: rgba(217, 204, 180, 0.06); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-drop:focus-within { outline: 2px solid var(--beige); outline-offset: 3px; }
.file-label { font-size: 0.95rem; color: var(--cream); overflow-wrap: anywhere; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 0.95rem; min-height: 1.4em; }
.form-status.is-success { color: var(--beige); }
.form-status.is-error { color: var(--error); }

/* ---------- Quote drawer ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(560px, 100vw); height: 100%; max-height: none; max-width: 100vw;
  border: 0; padding: 0;
  background: var(--deep); color: var(--cream);
  transform: translateX(100%);
  transition: transform 0.6s var(--ease), display 0.6s allow-discrete, overlay 0.6s allow-discrete;
}
.drawer[open] { transform: none; }
@starting-style { .drawer[open] { transform: translateX(100%); } }
.drawer::backdrop {
  background: rgba(0, 0, 0, 0);
  transition: background-color 0.6s var(--ease), display 0.6s allow-discrete, overlay 0.6s allow-discrete;
}
.drawer[open]::backdrop { background: rgba(0, 0, 0, 0.6); }
@starting-style { .drawer[open]::backdrop { background: rgba(0, 0, 0, 0); } }
.drawer-form {
  height: 100%; overflow-y: auto;
  padding: calc(28px + env(safe-area-inset-top, 0px)) clamp(20px, 4vw, 40px) calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 18px;
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.drawer-close {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; position: relative; flex: none;
}
.drawer-close::before, .drawer-close::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: var(--cream);
  transform: translate(-50%, -50%) rotate(45deg);
}
.drawer-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.drawer-close:hover { border-color: var(--cream); }
.drawer-alt { color: var(--muted); font-size: 0.95rem; }
.drawer-alt a { color: var(--beige); }
body.drawer-open { overflow: hidden; }

/* ---------- Closing CTA ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(110px, 14vw, 200px); text-align: left; }
.contact-media { position: absolute; inset: 0; z-index: -2; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.85) 100%); }
.contact-inner { display: flex; flex-direction: column; gap: 18px; }
.contact-inner .display { max-width: 14ch; font-size: var(--step-4); line-height: 1; }
.contact-inner > p { font-size: var(--step-1); font-weight: 300; }
.contact-email { color: var(--muted); font-size: 1rem !important; }
.contact-email a { color: var(--beige); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 40px; }
.footer-mark { width: 64px; height: 64px; color: var(--beige); }
.footer-name { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 14px; line-height: 1; }
.footer-name span { display: block; font-family: var(--font-text); font-size: 0.66rem; letter-spacing: 0.4em; color: var(--beige); margin-top: 8px; }
.footer-tag { color: var(--muted); margin-top: 18px; max-width: 34ch; font-size: 0.95rem; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-nav a, .footer-contact a { text-decoration: none; opacity: 0.86; }
.footer-nav a:hover, .footer-contact a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact .btn { margin-top: 10px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 40px 32px; margin-top: 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .primary-nav, .header-phone { display: none; }
  .menu-toggle { display: inline-block; }
}
@media (max-width: 900px) {
  .assurances { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .assurances li:nth-child(3) { border-left: 0; padding-left: 0; }
  .section-head, .why-grid, .about-grid, .area-grid, .faq-wrap, .careers-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head p { justify-self: start; }
  .band-toggle { grid-template-columns: minmax(0, 1fr) auto; }
  .band-hint { grid-column: 1; grid-row: 2; margin-top: -12px; }
  .band-icon { grid-column: 2; grid-row: 1 / span 2; }
  .band-inner { grid-template-columns: minmax(0, 1fr); }
  .band-inner > .band-figure { margin-bottom: 0; }
  .why-figure { aspect-ratio: 16 / 11; }
  .about-figure { aspect-ratio: 16 / 11; order: -1; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 24px 0 24px 0; border-left: 0; border-bottom: 1px solid var(--line); flex-direction: row; gap: 20px; }
  .steps li > div { display: contents; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; row-gap: 6px; }
  .step-num { grid-row: 1 / span 2; font-size: 2.6rem; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1.2rem; }
  .brand-sub { font-size: 0.55rem; letter-spacing: 0.3em; }
  .header-actions .btn-solid { display: none; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 120px); }
  .hero-actions .btn { width: 100%; }
  .assurances { grid-template-columns: minmax(0, 1fr); }
  .assurances li + li { border-left: 0; padding-left: 0; padding-top: 16px; border-top: 1px solid var(--line); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .scope-grid { grid-template-columns: minmax(0, 1fr); }
  .scope-col, .scope-col + .scope-col { padding: 28px 0 20px; border-left: 0; }
  .scope-col + .scope-col { border-top: 1px solid rgba(0,0,0,0.18); }
  .benefits > div, .regions > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .area-map { min-height: 340px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .band-name { font-size: 2rem; }
  .band-icon { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .hero-title .line > span, .js .hero-lede, .js .hero-content .hero-actions, .js .assurances, .js .hero-mullions, .js .hero-media img { opacity: 1; transform: none; }
}
