/* Titan Roofing Group — landing page
   Values follow the Claude Design source (Titan Roofing Group.dc.html). */

:root {
  --ink: #121212;
  --paper: #f5f4f0;
  --white: #fff;
  --line: #dcdbd5;
  --muted: #6a6e73;
  --body: #3a3d42;
  --charcoal: #2a2c2f;
  --muted-on-dark: #9a9ea3;
  --body-on-dark: #c9cac6;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 125px;
}

/* ---------- Base ---------- */

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
picture { display: contents; }
picture > source { display: none; }
img { display: block; max-width: 100%; }
address { font-style: normal; }

input, textarea, select, button {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font: inherit;
}

[id] { scroll-margin-top: var(--header-h); }

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.page {
  width: 100%;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
}

.span-2 { grid-column: 1 / -1; }

/* ---------- Motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

.rise { animation: rise var(--dur, .8s) var(--delay, 0s) both; }

.reveal { transition: opacity .7s ease, transform .7s ease; }
.reveal:not(.is-revealed) { opacity: 0; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  .rise, .live-dot::after { animation: none; }
  .reveal { transition: none; }
}

/* ---------- Shared type ---------- */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--on-dark { color: var(--muted-on-dark); }
.eyebrow--rule { display: flex; align-items: center; gap: 12px; }
.eyebrow--rule::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  background: var(--ink);
}

.section-title {
  font-weight: 800;
  font-stretch: 110%;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: .98;
  letter-spacing: -.03em;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 40px;
  margin-bottom: 48px;
}
.section-head__titles { display: flex; flex-direction: column; gap: 16px; }
.section-head__text {
  max-width: 380px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  text-wrap: pretty;
}

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 20; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--gutter);
  overflow: hidden;
  background: var(--ink);
  color: #d8d8d3;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.topbar__points { display: flex; gap: 28px; min-width: 0; overflow: hidden; }
.topbar__email {
  flex: none;
  margin-left: 24px;
  color: #fff;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}
.topbar :focus-visible { outline-color: #fff; }

.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  box-sizing: content-box; /* 88px plus the 1px rule, as in the design */
  height: 88px;
  padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand { justify-self: start; display: block; }
.brand__logo { width: auto; height: 68px; mix-blend-mode: multiply; }

.nav {
  display: flex;
  gap: clamp(16px, 2.6vw, 36px);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.nav a:hover { border-bottom-color: var(--ink); }

.navbar__actions {
  display: flex;
  justify-self: end;
  align-items: stretch;
  gap: 10px;
}

.call-button {
  display: inline-flex;
  align-items: stretch;
  background: var(--ink);
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5);
  transition: transform .2s, box-shadow .2s;
}
.call-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .55);
}
.call-button__status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  background: var(--charcoal);
}
.live-dot {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7ed957;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid #7ed957;
  border-radius: 50%;
  animation: ping 1.6s ease-out infinite;
}
.call-button__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 9px 20px 9px 16px;
}
.call-button__kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.call-button__number {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1;
}

.navbar__inspection {
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.navbar__inspection:hover { background: var(--ink); color: #fff; }

.navbar__phone {
  display: none;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__roofline span {
  position: absolute;
  top: -10%;
  right: -6%;
  width: 58%;
  aspect-ratio: 1;
  pointer-events: none;
}
.hero__roofline span:nth-child(1) { clip-path: polygon(50% 0, 100% 100%, 0 100%); background: #ecebe5; }
.hero__roofline span:nth-child(2) { clip-path: polygon(50% 12%, 88% 100%, 12% 100%); background: var(--paper); }
.hero__roofline span:nth-child(3) { clip-path: polygon(50% 24%, 76% 100%, 24% 100%); background: #e4e3dc; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding: clamp(64px, 8vw, 120px) var(--gutter) clamp(56px, 7vw, 96px);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
  container-type: inline-size;
}

.hero__title {
  font-weight: 800;
  font-stretch: 105%;
  font-size: clamp(40px, 11.5cqw, 92px);
  line-height: .94;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero__lede {
  max-width: 560px;
  font-size: clamp(17px, 2.6cqw, 20px);
  line-height: 1.5;
  color: var(--body);
  text-wrap: pretty;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--body); }
.btn--outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}
.badge-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  width: 120px;
  height: 52px;
  border: 1px dashed #b5b4ae;
  background: repeating-linear-gradient(135deg, #efeee9 0 6px, var(--paper) 6px 12px);
  color: var(--muted);
  font: 11px/1.3 ui-monospace, Menlo, monospace;
  text-align: center;
}

/* Quote card (hero form) */

.quote-card {
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: calc(460px + 2 * clamp(24px, 6vw, 36px)); /* 460px content box */
  min-width: 0;
  margin: 0;
  padding: clamp(24px, 6vw, 36px);
  container-type: inline-size;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .45);
}
.quote-card :focus-visible { outline-color: var(--paper); }

.quote-card__head { display: flex; flex-direction: column; gap: 6px; }
.quote-card__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.quote-card__title {
  font-weight: 800;
  font-stretch: 110%;
  font-size: clamp(24px, 6cqw, 30px);
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.quote-card__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.dark-input {
  padding: 14px;
  border: 1px solid #3a3d42;
  border-radius: 0;
  background: #1c1d1f;
  color: #fff;
  font-size: 15px;
}
.dark-input::placeholder { color: var(--muted-on-dark); opacity: 1; }
.dark-input:focus-visible { outline: 2px solid var(--paper); outline-offset: -1px; }
.dark-input[aria-invalid="true"] { border-color: #ff8f80; }

.dark-select {
  height: 48px;
  padding: 0 40px 0 14px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239a9ea3' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  cursor: pointer;
}
.dark-select option { background: #1c1d1f; color: #fff; }

.quote-card__submit {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.quote-card__submit:hover { background: #fff; }
.quote-card__submit:disabled { cursor: progress; opacity: .7; }

.quote-card__note { font-size: 13px; line-height: 1.5; color: var(--muted-on-dark); }
.quote-card__note a { color: #fff; font-weight: 700; text-decoration: none; }

/* Form status messages */

.form-status {
  padding: 12px 14px;
  border-left: 3px solid currentColor;
  font-size: 14px;
  line-height: 1.45;
}
.quote-card .form-status { background: #1c1d1f; color: #e7e7e2; }
.quote-card .form-status[data-kind="error"] { color: #ffb3a8; }
.quote-card .form-status[data-kind="success"] { color: #a6e88a; }
.contact-form .form-status { background: #fff; color: var(--ink); }
.contact-form .form-status[data-kind="error"] { color: #a4261b; }
.contact-form .form-status[data-kind="success"] { color: #22692b; }

/* ---------- Stats band ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.stats__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 32px 40px;
  border-right: 1px solid var(--line);
}
.stat:first-child { padding-left: var(--gutter); padding-right: var(--gutter); }
.stat:last-child { border-right: 0; }
.stat__value {
  font-weight: 800;
  font-stretch: 110%;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -.03em;
}
.stat__label { font-size: 14px; color: var(--muted); }

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 64px;
  padding: 104px var(--gutter);
}
.services__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
}
.services__text {
  max-width: 320px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  text-wrap: pretty;
}

.service-list { display: flex; flex-direction: column; }
.service {
  display: grid;
  grid-template-columns: 64px 1fr 40px;
  gap: 24px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left .25s;
}
.service-list li:last-child .service { border-bottom: 1px solid var(--line); }
.service:hover { padding-left: 12px; }
.service__num { padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.service__body { display: flex; flex-direction: column; gap: 10px; }
.service__title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.service__text {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  text-wrap: pretty;
}
.service__arrow { padding-top: 4px; font-size: 24px; color: var(--muted); }

/* ---------- Process ---------- */

.process {
  padding: 96px var(--gutter);
  border-top: 1px solid var(--line);
  background: #fff;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 40px 0;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 40px;
}
.step:last-child { padding-right: 0; }
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.step__title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.step__text { font-size: 16px; line-height: 1.55; color: var(--body); text-wrap: pretty; }

/* ---------- Our work (before / after) ---------- */

.work {
  padding: 104px var(--gutter);
  background: var(--ink);
  color: var(--paper);
}
.work .section-head { margin-bottom: 40px; }
.work .section-head__text { color: var(--body-on-dark); }

.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #222;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.compare__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--paper);
  transform: translateX(-1px);
  pointer-events: none;
}
.compare__handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.06em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.compare:has(.compare__range:focus-visible) .compare__handle { outline: 3px solid #fff; outline-offset: 3px; }
.compare__tag {
  position: absolute;
  top: 20px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
}
.compare__tag--before { left: 20px; background: var(--ink); color: #fff; }
.compare__tag--after { right: 20px; background: var(--paper); color: var(--ink); }

/* ---------- Storm damage ---------- */

.storm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  border-bottom: 1px solid var(--line);
}
.storm__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 72px var(--gutter);
  border-right: 1px solid var(--line);
}
.storm__title {
  font-weight: 800;
  font-stretch: 110%;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.storm__text {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  text-wrap: pretty;
}
.storm__actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 72px var(--gutter);
  background: #fff;
}
.row-button {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 16px;
  padding: 20px 28px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.row-button span { white-space: nowrap; }
.row-button--solid { background: var(--ink); color: #fff; }
.row-button--solid:hover { background: var(--body); }
.row-button--outline { padding: 19px 28px; border: 1.5px solid var(--ink); color: var(--ink); }
.row-button--outline:hover { background: var(--ink); color: #fff; }
.storm__note { font-size: 13px; color: var(--muted); }

/* ---------- Service area ---------- */

.area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 64px;
  align-items: center;
  padding: 104px var(--gutter);
}
.area__copy { display: flex; flex-direction: column; gap: 24px; }
.area__text { font-size: 16px; line-height: 1.5; color: var(--body); text-wrap: pretty; }

.city-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.city-grid li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
}
.city-grid li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }

.area__map {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 24px 60px -30px rgba(0, 0, 0, .25);
}
.area__map > svg { display: block; width: 100%; height: 100%; }
.map-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  padding: 112px var(--gutter) 96px;
  background: var(--ink);
  color: var(--paper);
  clip-path: polygon(0 var(--gutter), 50% 0, 100% var(--gutter), 100% 100%, 0 100%);
}
.contact__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 80px;
  align-items: start;
}
.contact__copy { display: flex; flex-direction: column; gap: 24px; }
.contact__copy :focus-visible { outline-color: #fff; }
.contact__title {
  font-weight: 800;
  font-stretch: 110%;
  font-size: clamp(40px, 5vw, 64px);
  line-height: .95;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.contact__text {
  max-width: 460px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--body-on-dark);
  text-wrap: pretty;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #3a3d42;
}
.contact__phone {
  font-weight: 800;
  font-stretch: 110%;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1;
  letter-spacing: -.03em;
  text-decoration: none;
}
.contact__email { font-size: 17px; color: var(--body-on-dark); text-decoration: none; }
.contact__area { font-size: 14px; color: var(--muted-on-dark); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
  padding: 32px;
  background: var(--paper);
  color: var(--ink);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.light-input {
  padding: 14px;
  border: 1px solid #cfcec8;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.light-input::placeholder { color: #757575; opacity: 1; }
.light-input:focus-visible { outline: 2px solid var(--ink); outline-offset: -1px; }
.light-input[aria-invalid="true"] { border-color: #a4261b; }
textarea.light-input { resize: none; }

.contact-form__submit {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.contact-form__submit:hover { background: var(--body); }
.contact-form__submit:disabled { cursor: progress; opacity: .7; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 64px var(--gutter) 32px;
  border-top: 1px solid var(--charcoal);
  background: var(--ink);
  color: var(--muted-on-dark);
}
.site-footer :focus-visible { outline-color: #fff; }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--charcoal);
}
.footer__brand { display: flex; flex-direction: column; gap: 18px; }
.footer__logo {
  align-self: flex-start;
  width: auto;
  height: 64px;
  filter: invert(1);
  mix-blend-mode: screen;
}
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--body-on-dark);
  font-size: 15px;
  line-height: 1.5;
}
.footer__name { font-weight: 700; color: #fff; }
.footer__address { color: var(--muted-on-dark); font: 13px ui-monospace, Menlo, monospace; line-height: 1.5; }
.footer__contact a { color: var(--body-on-dark); text-decoration: none; }
.footer__contact a.footer__phone { color: #fff; }

.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__heading {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer__links { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.footer__links a { color: var(--body-on-dark); text-decoration: none; }
.footer__links a:hover { color: #fff; }
.footer__cities { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px 16px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  font-size: 13px;
}

/* ---------- Mobile quick-contact bar ---------- */

.mobile-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--charcoal);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, .12);
}
.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 60px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.mobile-cta__call { background: var(--ink); color: #fff; }
.mobile-cta__call:focus-visible { outline-color: #fff; outline-offset: -4px; }
.mobile-cta__inspect { background: #fff; color: var(--ink); }
.mobile-cta__inspect:focus-visible { outline-offset: -4px; }

/* ---------- Responsive ---------- */

/* Hero stacks below ~1024px: let the form card use the full column. */
@media (max-width: 1023px) {
  .quote-card { justify-self: stretch; max-width: none; }
}

/* Compact header + fixed call bar (matches the design's 1040px switch). */
@media (max-width: 1040px) {
  :root { --header-h: 65px; }

  .topbar, .nav, .navbar__actions { display: none; }
  .navbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
    padding: 0 20px;
  }
  .brand__logo { height: 52px; }
  .navbar__phone { display: block; }

  .mobile-cta { display: grid; }
  .footer__bottom { padding-bottom: 84px; }
}

@media (max-width: 879px) {
  .stats__list { grid-template-columns: 1fr 1fr; }
  .stat,
  .stat:first-child { padding: 28px 20px 28px var(--gutter); }
  .stat:nth-child(even) { padding-left: 20px; border-right: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 839px) {
  .storm__copy { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  /* 16px inputs stop iOS from zooming on focus. */
  .dark-input { font-size: 16px; }

  .service { grid-template-columns: 36px 1fr 24px; gap: 16px; }
  .service:hover { padding-left: 0; }
  .step { padding-right: 0; }

  .row-button,
  .row-button--outline { padding-left: 20px; padding-right: 20px; }

  .area__map { height: clamp(360px, 110vw, 520px); }
  .contact-form { padding: 24px; }
}

@media (max-width: 480px) {
  .footer__cities { grid-template-columns: 1fr 1fr; }
}
