/* ============================================================
   Housing Disrepair Experts — design system
   Brand: heritage indigo #3136A6, amber CTA, Sora + Inter
   ============================================================ */

/* Tokens are declared on body as well as :root: the old site's cached CSS
   bundles (still injected by the optimizer on some pages) define a clashing
   --accent on body, and a body-level value shadows anything set on :root. */
:root, body {
  --ink: #0e1330;
  --ink-2: #454c72;
  --ink-3: #6b7194;
  --brand: #3136a6;
  --brand-dark: #23277d;
  --brand-deep: #171a56;
  --brand-tint: #eeeffb;
  --brand-tint-2: #e2e4f8;
  --accent: #ffb129;
  --accent-dark: #b97e00;
  --success: #1b9e6b;
  --success-tint: #e7f6f0;
  --danger: #d64545;
  --bg: #ffffff;
  --bg-soft: #f6f7fc;
  --line: #e4e7f2;
  --line-strong: #cdd2e6;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgba(14, 19, 48, .05), 0 2px 8px rgba(14, 19, 48, .05);
  --shadow-m: 0 2px 4px rgba(14, 19, 48, .04), 0 12px 32px rgba(14, 19, 48, .10);
  --shadow-l: 0 4px 8px rgba(14, 19, 48, .05), 0 24px 64px rgba(14, 19, 48, .16);
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --container: 1180px;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { color: var(--ink-2); }
strong { color: var(--ink); }
/* On dark surfaces the global strong colour would paint near-black on navy. */
.hero strong, .trustbar strong, .section--dark strong, .cta-banner strong,
.sidebar-card--brand strong, .site-footer strong { color: inherit; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--ink); box-shadow: 0 6px 20px rgba(255, 177, 41, .35); }
.btn--primary:hover { background: #ffc153; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 177, 41, .45); }

.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 6px 20px rgba(49, 54, 166, .28); }
.btn--brand:hover { background: var(--brand-dark); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { background: var(--brand-tint); }

.btn--lg { padding: 17px 34px; font-size: 1.06rem; }
.btn--sm { padding: 10px 20px; font-size: .92rem; }

/* Long CTA labels must wrap rather than push the page sideways on narrow screens. */
@media (max-width: 620px) {
  .btn { white-space: normal; text-align: center; max-width: 100%; }
  .btn--lg { padding: 15px 24px; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-s); }

.site-header__inner {
  display: flex; align-items: center; gap: 28px;
  height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none !important; }
.logo__mark { width: 42px; height: 42px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); letter-spacing: -0.01em; }
.logo__tag { font-size: .68rem; font-weight: 600; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-weight: 500; font-size: .97rem; color: var(--ink-2);
  padding: 9px 14px; border-radius: 999px; text-decoration: none !important;
  transition: background .15s ease, color .15s ease;
}
.site-nav a:hover { background: var(--brand-tint); color: var(--brand-dark); }
.site-nav a.is-active { color: var(--brand-dark); font-weight: 600; }
.site-nav a.btn { color: var(--ink); }

.header-cta { margin-left: 6px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink);
  padding: 9px 8px; text-decoration: none !important; white-space: nowrap;
}
/* Between the mobile breakpoint and full desktop the header is too tight for
   the phone number — the CTA button carries the action instead. */
@media (min-width: 1021px) and (max-width: 1279px) {
  .header-phone { display: none; }
}
.header-phone svg { width: 17px; height: 17px; color: var(--brand); }
.header-phone:hover { color: var(--brand); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1020px) {
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px; box-shadow: var(--shadow-m);
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 13px 16px; font-size: 1.05rem; border-radius: 12px; }
  .header-cta { margin: 10px 0 0; }
  .header-phone { justify-content: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; padding: 12px; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(255, 177, 41, .14), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(49, 54, 166, .5), transparent 55%),
    linear-gradient(150deg, var(--brand-deep) 0%, var(--brand-dark) 55%, var(--brand) 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(115deg, transparent 40%, rgba(0,0,0,.9));
  -webkit-mask-image: linear-gradient(115deg, transparent 40%, rgba(0,0,0,.9));
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 56px; align-items: center;
  padding: 84px 0 96px;
}
.hero--simple .hero__inner { grid-template-columns: 1fr; padding: 72px 0 64px; }
.hero--simple .hero__copy { max-width: 780px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .02em;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero__eyebrow svg { width: 15px; height: 15px; color: var(--accent); }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .u-accent { color: var(--accent); }
.hero__lead { font-size: 1.16rem; color: rgba(255, 255, 255, .85); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note { margin-top: 18px; font-size: .9rem; color: rgba(255, 255, 255, .65); display: flex; align-items: center; gap: 8px; }
.hero__note svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

.hero__ticks { display: grid; gap: 12px; margin: 26px 0 34px; }
.hero__ticks li { list-style: none; display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.9); font-weight: 500; }
.hero__ticks svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 1px; }

/* hero side card */
.hero-card {
  background: #fff; color: var(--ink);
  border-radius: var(--radius-l); box-shadow: var(--shadow-l);
  padding: 30px 30px 26px;
}
.hero-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.hero-card > p { font-size: .95rem; margin-bottom: 18px; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .hero__lead { font-size: 1.07rem; }
}

/* trust bar */
.trustbar { background: var(--brand-deep); color: rgba(255,255,255,.85); position: relative; z-index: 1; }
.trustbar__inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 48px;
  padding: 18px 0; font-size: .93rem; font-weight: 500;
}
.trustbar__item { display: inline-flex; align-items: center; gap: 9px; }
.trustbar__item svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 64px 0; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 14px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.08rem; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
/* Grid/flex children default to min-width:auto, so one long unbreakable string
   (an email address, a URL) can push a track wider than the viewport. */
.grid > *, .page-grid > *, .steps > *, .issues > *, .stats > * { min-width: 0; }
.card, .prose, .sidebar-card, .footer-contact { overflow-wrap: break-word; }
a[href^="mailto:"], a[href^="tel:"] { overflow-wrap: anywhere; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 30px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--brand-tint-2); }
.card h3 { margin: 18px 0 10px; }
.card p { font-size: .97rem; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.card__icon svg { width: 26px; height: 26px; }
.card .card__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 600; font-size: .95rem; }
.card .card__link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.card .card__link:hover svg { transform: translateX(3px); }

/* issue chips */
.issues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .issues { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .issues { grid-template-columns: 1fr; } }
.issue {
  display: flex; align-items: center; gap: 13px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 15px 18px; font-weight: 500; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.issue:hover { border-color: var(--brand); box-shadow: var(--shadow-s); }
.issue svg { width: 24px; height: 24px; color: var(--brand); flex: none; }

/* checklist */
.ticklist { display: grid; gap: 14px; }
.ticklist li { list-style: none; display: flex; gap: 13px; align-items: flex-start; }
.ticklist svg { width: 22px; height: 22px; color: var(--success); flex: none; margin-top: 2px; }
.ticklist strong { display: block; }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px 26px; }
.step__num {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: .94rem; }

/* vertical timeline (claim process page) */
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 56px 1fr; gap: 22px; position: relative; padding-bottom: 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 27px; top: 52px; bottom: 6px;
  width: 2px; background: var(--line-strong);
}
.tl-item:last-child::before { display: none; }
.tl-item__num {
  width: 56px; height: 56px; border-radius: 999px; flex: none;
  background: var(--brand-tint); color: var(--brand-dark); border: 2px solid var(--brand);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.tl-item h3 { margin-bottom: 8px; padding-top: 12px; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); color: var(--brand); letter-spacing: -0.02em; }
.stat__label { font-weight: 500; color: var(--ink-2); margin-top: 4px; }
.section--dark .stat__num { color: var(--accent); }
.section--dark .stat__label { color: rgba(255,255,255,.75); }

/* ---------- Testimonials ---------- */
.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 18px;
}
.quote-card__stars { display: flex; gap: 3px; }
.quote-card__stars svg { width: 18px; height: 18px; color: var(--accent); }
.quote-card blockquote { font-size: .98rem; color: var(--ink-2); font-style: normal; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote-card__avatar {
  width: 42px; height: 42px; border-radius: 999px; flex: none;
  background: var(--brand-tint); color: var(--brand-dark);
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.quote-card figcaption strong { display: block; font-size: .97rem; }
.quote-card figcaption span { font-size: .85rem; color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  overflow: hidden; transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--brand); box-shadow: var(--shadow-s); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq__chev { width: 34px; height: 34px; flex: none; border-radius: 999px; background: var(--brand-tint); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.faq summary .faq__chev svg { width: 17px; height: 17px; }
.faq details[open] summary .faq__chev { transform: rotate(180deg); background: var(--brand); color: #fff; }
.faq .faq__body { padding: 0 24px 22px; color: var(--ink-2); }
.faq .faq__body p + p { margin-top: 10px; }

/* ---------- Claim form wizard ---------- */
.claim-form { max-width: 760px; margin: 0 auto; }
.wizard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-m); padding: 38px 40px 34px;
}
@media (max-width: 640px) { .wizard { padding: 28px 22px 24px; } }

.wizard__progress { margin-bottom: 30px; }
.wizard__progress-label { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; color: var(--ink-3); margin-bottom: 9px; }
.wizard__bar { height: 8px; border-radius: 999px; background: var(--brand-tint); overflow: hidden; }
.wizard__bar-fill { height: 100%; width: 16%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #5a5fd8); transition: width .35s ease; }

.wizard__step { display: none; }
.wizard__step.is-active { display: block; animation: stepIn .3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.wizard__step > h3 { font-size: 1.35rem; margin-bottom: 6px; }
.wizard__hint { font-size: .95rem; margin-bottom: 22px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .choice-grid, .choice-grid--3 { grid-template-columns: 1fr; } }
.choice {
  position: relative; display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--line); border-radius: var(--radius-s);
  padding: 15px 17px; cursor: pointer; font-weight: 500;
  transition: border-color .15s ease, background .15s ease;
}
.choice:hover { border-color: var(--brand); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.choice:has(input:focus-visible) { outline: 3px solid rgba(49,54,166,.35); outline-offset: 2px; }

.wizard__nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; }
.wizard__nav .btn--back { visibility: hidden; }
.wizard__nav .btn--back.is-visible { visibility: visible; }

.wizard__alert {
  display: none; margin-top: 18px;
  background: #fdf2f2; border: 1px solid #f2c9c9; color: #a33d3d;
  border-radius: var(--radius-s); padding: 14px 18px; font-size: .93rem;
}
.wizard__alert.is-visible { display: block; }
.wizard__note { margin-top: 20px; font-size: .87rem; color: var(--ink-3); display: flex; gap: 8px; align-items: flex-start; }
.wizard__note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--brand); }

/* form fields */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink);
  border: 2px solid var(--line); border-radius: var(--radius-s);
  padding: 13px 16px; background: #fff;
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }
.field .field__error { display: none; color: var(--danger); font-size: .85rem; margin-top: 6px; }
.field.has-error input { border-color: var(--danger); }
.field.has-error .field__error { display: block; }

.wizard__success { text-align: center; padding: 30px 10px 10px; }
.wizard__success svg { width: 64px; height: 64px; color: var(--success); margin: 0 auto 18px; }
.wizard__success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.wizard__success p + p { margin-top: 12px; }
.wizard__success--draft svg { color: var(--brand); }
.wizard__success--error svg { color: var(--danger); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  border-radius: var(--radius-l);
  padding: 60px 56px; color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.cta-banner::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 999px; background: rgba(255, 177, 41, .18); filter: blur(10px);
}
.cta-banner h2 { color: #fff; max-width: 560px; position: relative; z-index: 1; }
.cta-banner p { color: rgba(255,255,255,.8); margin-top: 10px; max-width: 520px; position: relative; z-index: 1; }
.cta-banner .btn { position: relative; z-index: 1; }
@media (max-width: 700px) { .cta-banner { padding: 40px 28px; } }

/* ---------- Dark section ---------- */
.section--dark {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(255,177,41,.10), transparent 60%),
    linear-gradient(150deg, var(--brand-deep), var(--brand-dark));
  color: #fff;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.8); }
.section--dark .eyebrow { color: var(--accent); }

/* ---------- Landlord / council chip list ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-weight: 500; font-size: .93rem; color: var(--ink-2);
  text-decoration: none !important;
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.chips a:hover { border-color: var(--brand); color: var(--brand-dark); box-shadow: var(--shadow-s); }
.chips a svg { width: 15px; height: 15px; color: var(--brand); }

/* ---------- Prose (content pages) ---------- */
.prose { max-width: 780px; }
.prose h2 { margin: 46px 0 16px; font-size: 1.65rem; }
.prose h3 { margin: 32px 0 12px; }
.prose p { margin-bottom: 16px; font-size: 1.02rem; }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: var(--ink-2); }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose blockquote {
  border-left: 4px solid var(--accent); background: var(--bg-soft);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 18px 24px; margin: 24px 0; font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .97rem; }
.prose th { text-align: left; font-family: var(--font-display); font-size: .88rem; letter-spacing: .02em; background: var(--brand-tint); color: var(--brand-dark); }
.prose th, .prose td { padding: 13px 16px; border: 1px solid var(--line); }
.prose tr:nth-child(even) td { background: var(--bg-soft); }
.table-scroll { overflow-x: auto; }

.callout {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--brand-tint); border: 1px solid var(--brand-tint-2);
  border-radius: var(--radius-m); padding: 22px 26px; margin: 28px 0;
}
.callout svg { width: 26px; height: 26px; color: var(--brand); flex: none; margin-top: 2px; }
.callout p { margin: 0; }
.callout--success { background: var(--success-tint); border-color: #c9e9dc; }
.callout--success svg { color: var(--success); }

/* page layout with sidebar */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
@media (max-width: 980px) { .page-grid { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; }
.sidebar-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 26px 24px; box-shadow: var(--shadow-s);
}
.sidebar-card--brand { background: linear-gradient(150deg, var(--brand-deep), var(--brand)); border: none; color: #fff; }
.sidebar-card--brand h3 { color: #fff; }
.sidebar-card--brand p { color: rgba(255,255,255,.82); font-size: .95rem; }
.sidebar-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.sidebar-card .btn { width: 100%; margin-top: 16px; }
.sidebar-card ul { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.sidebar-card li a { display: flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.sidebar-card li a:hover { color: var(--brand); text-decoration: none; }
.sidebar-card li a svg { width: 14px; height: 14px; color: var(--brand); flex: none; }

/* breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: rgba(255,255,255,.66); margin-bottom: 20px; position: relative; z-index: 1; }
.crumbs a { color: rgba(255,255,255,.8); }
.crumbs svg { width: 13px; height: 13px; opacity: .6; }

/* ---------- Footer ---------- */
.site-footer { background: #0b0f26; color: rgba(255,255,255,.72); font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.site-footer__main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px;
  padding: 68px 0 48px;
}
@media (max-width: 980px) { .site-footer__main { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 600px) { .site-footer__main { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer ul { list-style: none; display: grid; gap: 11px; }
.footer-brand .logo__name, .footer-brand .logo__tag { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.62); margin-top: 16px; max-width: 300px; font-size: .93rem; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.footer-social a:hover { background: var(--brand); }
.footer-social svg { width: 17px; height: 17px; color: #fff; }
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 26px 0 34px; font-size: .84rem; color: rgba(255,255,255,.5);
  display: grid; gap: 10px;
}

/* ---------- Reveal animations ---------- */
/* Hidden state only applies once main.js has added .js to <html>, so content
   is never invisible when scripts are deferred or blocked. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* utilities */
.mt-0 { margin-top: 0; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mt-56 { margin-top: 56px; }
.text-center { text-align: center; }
