/* ============================================================
   DivineADU — Design Tokens & Global Styles
   Luxury modern: charcoal, bone, stone, elegant gold.
   ============================================================ */

:root {
  --ink: #1C201E;
  --ink-soft: #2A302D;
  --bone: #F4F2EE;
  --stone: #E4E0D8;
  --stone-deep: #6F695F;
  --gold: #B08D57;
  --gold-soft: #D4B889;
  --gold-text: #7E6136;
  --success: #5C7F5C;
  --success-soft: #8BA98B;
  --line: rgba(28, 32, 30, 0.09);
  --line-strong: rgba(28, 32, 30, 0.16);

  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --section-pad: clamp(5.5rem, 11vw, 10rem);
  --container: 1240px;
  --radius: 2px;
}

* { box-sizing: border-box; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* clip (not hidden): hidden turns body into a scroll container and breaks position:sticky */
html, body { overflow-x: clip; }

body {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}

p { margin: 0 0 1rem; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding: var(--section-pad) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gold-text);
  margin: 0 0 1.1rem;
  display: inline-block;
}
.eyebrow--light { color: var(--gold-soft); }

h1.hero-h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
}
h2.section-h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  letter-spacing: -0.02em;
  font-weight: 400;
  text-wrap: balance;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}

.divider {
  height: 1px;
  background: var(--line-strong);
  border: 0;
  margin: 0;
}
.divider-short {
  width: 40px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold-text);
}
.btn-gold:hover { background: #96764a; border-color: #96764a; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding-left: 0.4rem; padding-right: 0.4rem;
}
.btn-ghost:hover { color: var(--gold-text); }
.btn-light {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.btn-light:hover { background: #fff; }
.btn-outline-light {
  background: transparent;
  color: var(--bone);
  border-color: rgba(244,242,238,0.3);
}
.btn-outline-light:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn .ico { width: 17px; height: 17px; }
/* every form disables its submit button while the request is in flight */
.btn:disabled { opacity: 0.6; cursor: progress; }

/* arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-text);
  position: relative;
  transition: gap 0.25s ease;
}
.arrow-link:hover { gap: 0.7rem; }
.arrow-link .ico { width: 16px; height: 16px; }

/* underline animation link */
.ul-link { position: relative; }
.ul-link::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1.5px; background: var(--gold);
  transition: width 0.3s ease;
}
.ul-link:hover::after { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav.scrolled {
  background: rgba(244,242,238,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px -16px rgba(0,0,0,0.5);
}
/* dark hero variant: nav text light when at top over dark hero */
.nav.on-dark:not(.scrolled) { color: var(--bone); }
.nav.on-dark:not(.scrolled) .nav-links a { color: rgba(244,242,238,0.82); }
.nav.on-dark:not(.scrolled) .nav-links a:hover { color: #fff; }
.nav.on-dark:not(.scrolled) .logo { color: var(--bone); }
.nav.on-dark:not(.scrolled) .nav-toggle { color: var(--bone); }
.nav.on-dark:not(.scrolled) .nav-insta { color: var(--bone); border-color: rgba(244,242,238,0.35); }
.nav.on-dark:not(.scrolled) .nav-insta:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-serif); font-weight: 500; font-size: 1.3rem; letter-spacing: 0.02em; color: var(--ink); }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo .wm-divine { letter-spacing: 0.12em; }
.logo .wm-dot { color: var(--gold); margin: 0 0.12em; }

.nav-links { display: flex; align-items: center; gap: 1.45rem; }
.nav-links a {
  font-size: 0.86rem; font-weight: 500; color: var(--ink-soft);
  position: relative; transition: color 0.2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1.5px; background: var(--gold); transition: width 0.28s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold-text); }

.nav-cta { margin-left: 0.5rem; }
.nav-insta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 0.55rem; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--stone); color: var(--ink-soft);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.nav-insta:hover { color: var(--gold-text); border-color: var(--gold-text); background: rgba(176,141,87,0.06); }
.nav-insta .ico { width: 19px; height: 19px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  color: var(--ink); padding: 0.4rem;
}
.nav-toggle .ico { width: 26px; height: 26px; }

/* mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink);
  color: var(--bone);
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-serif); font-size: 1.9rem; font-weight: 400;
  padding: 0.5rem 0; color: var(--bone); border-bottom: 1px solid rgba(244,242,238,0.08);
}
.mobile-menu a:hover { color: var(--gold-soft); }
.mobile-menu .btn { margin-top: 1.6rem; font-size: 1rem; justify-content: center; }
.mobile-close { position: absolute; top: 1.4rem; right: 1.4rem; background: none; border: 0; color: var(--bone); cursor: pointer; }
.mobile-close .ico { width: 28px; height: 28px; }

/* ---------- Floating CTA ---------- */
.float-cta {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 90;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(28,32,30,0.92);
  backdrop-filter: blur(10px);
  color: var(--bone);
  font-weight: 600; font-size: 0.9rem;
  padding: 0.9rem 1.4rem; border-radius: 999px;
  border: 1px solid rgba(176,141,87,0.4);
  box-shadow: 0 14px 40px -14px rgba(0,0,0,0.6);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
.float-cta.show { opacity: 1; visibility: visible; transform: translateY(0); }
.float-cta:hover { background: var(--gold); border-color: var(--gold-text); }
.float-cta .ico { width: 18px; height: 18px; color: var(--gold-soft); }
.float-cta:hover .ico { color: #fff; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
/* Cards keep dark text even inside .bg-ink sections */
.bg-ink .card,
.bg-ink .card h1,
.bg-ink .card h2,
.bg-ink .card h3,
.bg-ink .card h4,
.bg-ink .card p { color: var(--ink); }
.bg-ink .card p { color: var(--ink-soft); }
.card:hover { border-color: var(--line-strong); }
.card-pad { padding: clamp(1.5rem, 2.5vw, 2.1rem); }

.icon-badge {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--stone); color: var(--gold-text);
  margin-bottom: 1.2rem;
}
.icon-badge .ico { width: 23px; height: 23px; }

/* ---------- Sections on dark ---------- */
.bg-ink { background: var(--ink); color: var(--bone); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: var(--bone); }
.bg-ink .lede { color: rgba(244,242,238,0.72); }
.bg-stone { background: var(--stone); }
.bg-bone { background: var(--bone); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: flex-end;
  color: var(--bone);
  padding-bottom: clamp(3.5rem, 7vw, 6rem); padding-top: 9rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg picture { display: block; width: 100%; height: 100%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,32,30,0.45) 0%, rgba(28,32,30,0.2) 38%, rgba(28,32,30,0.88) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero h1, .hero .lede { color: var(--bone); }
.hero .lede { color: rgba(244,242,238,0.85); margin-top: 1.4rem; }

/* sub-hero (interior pages) — shorter */
.subhero { min-height: 66vh; }
.subhero .hero-bg::after { background: linear-gradient(180deg, rgba(28,32,30,0.55) 0%, rgba(28,32,30,0.45) 45%, rgba(28,32,30,0.9) 100%); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.trust-strip {
  margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  font-size: 0.8rem; color: rgba(244,242,238,0.7); letter-spacing: 0.02em;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust-strip .ico { width: 14px; height: 14px; color: var(--gold-soft); }

/* ---------- Counters ---------- */
.counter { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; color: var(--gold); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(244,242,238,0.7); padding: clamp(3.5rem,6vw,5rem) 0 2rem; }
.footer h4 { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em; color: var(--gold-soft); margin-bottom: 1.2rem; }
.footer a { color: rgba(244,242,238,0.7); font-size: 0.92rem; transition: color 0.2s; }
.footer a:hover { color: var(--bone); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-brand .logo { color: var(--bone); margin-bottom: 1.1rem; }
.footer-bottom { border-top: 1px solid rgba(244,242,238,0.1); margin-top: 3rem; padding-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.footer-bottom .legal-links { display: flex; gap: 1.3rem; }
.footer-disclaimer { font-size: 0.78rem; line-height: 1.6; color: rgba(244,242,238,0.5); margin-top: 1.6rem; max-width: 80ch; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 0; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; color: var(--ink);
}
.faq-q .ico { width: 22px; height: 22px; color: var(--gold-text); flex-shrink: 0; transition: transform 0.3s ease; }
.faq-item.open .faq-q .ico { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a-inner { padding: 0 0 1.6rem; color: var(--ink-soft); font-size: 1rem; max-width: 72ch; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-d1, .reveal-d2, .reveal-d3 { transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tbl th, .tbl td { text-align: left; padding: 0.95rem 1rem; border-bottom: 1px solid var(--line); }
.tbl thead th { font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.01em; color: var(--gold-text); font-weight: 600; }
.tbl tbody tr:hover { background: rgba(232,226,214,0.35); }
.tbl td.firstcol { font-weight: 600; font-family: var(--font-serif); font-size: 1.05rem; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* ---------- Form ---------- */
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.45rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; font-family: var(--font-sans); font-size: 0.95rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-text); box-shadow: 0 0 0 3px rgba(176,141,87,0.14);
}
.field-error input, .field-error select { border-color: #b3503f; }
.err-msg { color: #b3503f; font-size: 0.78rem; margin-top: 0.35rem; display: none; }
.field-error .err-msg { display: block; }

.chip-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  padding: 0.6rem 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 500; cursor: pointer; background: #fff; transition: all 0.2s ease;
}
.chip:hover { border-color: var(--gold-text); }
.chip.selected,
.chip.is-active { background: var(--ink); color: var(--bone); border-color: var(--ink); }

/* ---------- Misc badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 500; padding: 0.35rem 0.7rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bone);
}
.badge .ico { width: 14px; height: 14px; }
.badge-yes { color: var(--success); border-color: rgba(92,127,92,0.3); }
.badge-yes .ico { color: var(--success); }
.badge-cond { color: var(--gold-text); border-color: rgba(176,141,87,0.3); }
.badge-cond .ico { color: var(--gold-text); }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 0.65rem; align-items: flex-start; margin-bottom: 0.7rem; font-size: 0.96rem; }
.check-list li .ico { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.check-list.pros li .ico { color: var(--success); }
.check-list.cons li .ico { color: var(--stone-deep); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(28,32,30,0.6);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bone); border-radius: var(--radius); max-width: 480px; width: 100%;
  padding: clamp(2rem, 4vw, 3rem); position: relative; border-top: 3px solid var(--gold);
  transform: translateY(20px); transition: transform 0.35s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: 0; cursor: pointer; color: var(--ink-soft); }
.modal-close .ico { width: 22px; height: 22px; }

/* ---------- Eyebrow on dark ---------- */
.dark-grad { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-insta { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 900px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; padding-top: 7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .float-cta { bottom: 1rem; right: 1rem; padding: 0.8rem 1.2rem; font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .grid-5, .grid-4 { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* contact two-column */
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr !important; }
  .contact-grid aside { position: static !important; }
}

/* alternating feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: 0 26px 60px -34px rgba(28,32,30,0.4); }
@media (max-width: 840px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: 0; }
}

.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 1.6rem; }
.stat-cell { background: var(--bone); padding: 1.1rem 1.2rem; }
.stat-cell .lbl { font-size: 0.8rem; letter-spacing: 0; color: var(--gold-text); font-weight: 600; }
.stat-cell .val { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500; margin-top: 0.25rem; }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr 1fr; } }

/* timeline */
.timeline { position: relative; }
.tl-step { display: grid; grid-template-columns: 64px 1fr; gap: 1.5rem; padding-bottom: 2.5rem; position: relative; }
.tl-step:not(:last-child)::before { content:""; position: absolute; left: 31px; top: 56px; bottom: 0; width: 1px; background: var(--line-strong); }
.tl-num { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-text); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; background: var(--bone); }

/* horizontal mini timeline (home) */
.htl { display: grid; grid-template-columns: repeat(5,1fr); gap: 1.2rem; }
.htl-step { position: relative; padding-top: 2.2rem; }
.htl-step .n { position: absolute; top: 0; left: 0; font-family: var(--font-serif); font-size: 1.6rem; color: var(--gold-text); font-weight: 500; }
.htl-step::before { content:""; position:absolute; top: 0.7rem; left: 2.4rem; right: -0.6rem; height: 1px; background: var(--line-strong); }
.htl-step:last-child::before { display: none; }
@media (max-width: 820px){ .htl { grid-template-columns: 1fr 1fr; } .htl-step:nth-child(2)::before, .htl-step:nth-child(4)::before{display:none;} }
@media (max-width: 480px){ .htl { grid-template-columns: 1fr; } .htl-step::before{display:none;} }

/* ============================================================
   EXPANSION COMPONENTS (v2) — earn cards, scenario tabs,
   comparison table, goal scroller, lead magnets, city pages
   ============================================================ */

/* ---- Earn / rent-value cards (home) ---- */
.earn-card { position: relative; overflow: hidden; }
.earn-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--gold); transition: width 0.4s ease;
}
.earn-card:hover::after { width: 100%; }
.earn-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.earn-row:last-child { border-bottom: 0; }
.earn-row .lbl { font-size: 0.85rem; color: var(--ink-soft); }
.earn-row .val { font-family: var(--font-serif); font-weight: 500; font-size: 1.15rem; color: var(--ink); white-space: nowrap; }

/* ---- "What we handle" service grid ---- */
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px){ .grid-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .grid-6 { grid-template-columns: 1fr; } }

/* ---- Comparison table (home) ---- */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 720px; }
.cmp-table th, .cmp-table td { text-align: left; padding: 0.85rem 0.95rem; border-bottom: 1px solid var(--line); }
.cmp-table thead th { background: var(--ink); color: var(--gold-soft); font-family: var(--font-serif); font-size: 1.05rem; letter-spacing: 0; font-weight: 600; }
.cmp-table thead th:first-child { background: var(--ink); color: var(--bone); }
.cmp-table tbody tr:nth-child(even) { background: rgba(232,226,214,0.4); }
.cmp-table tbody tr:hover { background: rgba(176,141,87,0.12); }
.cmp-table td.rowhead { font-weight: 600; font-family: var(--font-sans); font-size: 0.85rem; letter-spacing: 0; color: var(--gold-text); white-space: nowrap; }

/* ---- Horizontal scroll-snap goal cards ---- */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; -webkit-overflow-scrolling: touch; }
.scroller > * { scroll-snap-align: start; }
.scroller::-webkit-scrollbar { height: 6px; }
.scroller::-webkit-scrollbar-thumb { background: var(--stone-deep); border-radius: 99px; }
@media (max-width: 640px){ .scroller { grid-auto-columns: 86%; } }

/* ---- Lead-magnet cards ---- */
.lm-card { display: flex; flex-direction: column; gap: 0.6rem; height: 100%; }
.lm-card .ico-wrap { width: 44px; height: 44px; border-radius: var(--radius); background: var(--stone); color: var(--gold-text); display: inline-flex; align-items: center; justify-content: center; }
.lm-card .ico-wrap .ico { width: 21px; height: 21px; }
.grid-5-lm { display: grid; grid-template-columns: repeat(5,1fr); gap: 1.2rem; }
@media (max-width: 1000px){ .grid-5-lm { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 720px){ .grid-5-lm { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px){ .grid-5-lm { grid-template-columns: 1fr; } }

/* ---- Incentive badge ---- */
.badge-incentive { color: var(--gold-text); border-color: rgba(176,141,87,0.4); background: rgba(176,141,87,0.08); font-weight: 600; }
.badge-incentive .ico { color: var(--gold-text); }

/* ---- Official resource tiles (home) ---- */
.res-tile { display: flex; flex-direction: column; gap: 0.5rem; height: 100%; }
.res-tile .ico-wrap { width: 40px; height: 40px; border-radius: var(--radius); background: var(--stone); color: var(--gold-text); display: inline-flex; align-items: center; justify-content: center; }

/* ---- Scenario tabs (ROI) ---- */
.scenario-tabs { display: inline-flex; gap: 0; border-bottom: 1px solid rgba(244,242,238,0.18); }
.scenario-tab {
  background: none; border: 0; cursor: pointer; font-family: var(--font-sans);
  font-size: 0.9rem; font-weight: 600; color: rgba(244,242,238,0.55);
  padding: 0.7rem 1.2rem; position: relative; transition: color 0.2s ease;
}
.scenario-tab::after { content:""; position:absolute; left:0; bottom:-1px; width:0; height:2px; background: var(--gold); transition: width 0.3s ease; }
.scenario-tab:hover { color: var(--bone); }
.scenario-tab.active { color: var(--gold-soft); }
.scenario-tab.active::after { width: 100%; }

/* ---- ROI big stat grid (2x3) ---- */
.roi-statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(244,242,238,0.12); border: 1px solid rgba(244,242,238,0.12); border-radius: var(--radius); overflow: hidden; }
.roi-statblock { background: var(--ink-soft); padding: 1.5rem 1.4rem; }
.roi-statblock .eb { font-size: 0.8rem; letter-spacing: 0; color: var(--gold-soft); font-weight: 600; }
.roi-statblock .big { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.05; margin: 0.5rem 0 0.4rem; color: var(--bone); }
.roi-statblock .sub { font-size: 0.76rem; color: rgba(244,242,238,0.55); margin: 0; line-height: 1.4; }
@media (max-width: 820px){ .roi-statgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .roi-statgrid { grid-template-columns: 1fr; } }

/* ---- Compare options cards (ROI) ---- */
.cmp-card { position: relative; }
.cmp-card .best-badge {
  position: absolute; top: -10px; right: 14px; display: none;
  background: var(--gold); color: #fff; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.02em; padding: 0.3rem 0.7rem; border-radius: 99px;
  box-shadow: 0 8px 20px -10px rgba(176,141,87,0.7);
}
.cmp-card.is-best { border-color: var(--gold-text); box-shadow: 0 18px 44px -26px rgba(176,141,87,0.5); }
.cmp-card.is-best .best-badge { display: inline-block; }

/* ---- City page intro / local rules list ---- */
.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.85rem; font-size: 0.96rem; color: var(--ink-soft); }
.fact-list li .ico { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; color: var(--gold-text); }

/* nearby-cities chips */
.nearby-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.nearby-chips a { font-size: 0.86rem; font-weight: 600; padding: 0.55rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; transition: all 0.2s ease; }
.nearby-chips a:hover { border-color: var(--gold-text); color: var(--gold-text); }

/* ---------- Legal / policy reading layout ---------- */
.legal-page { background: var(--bone); }
.legal-wrap { max-width: 720px; margin: 0 auto; padding: 7.5rem 1.5rem 5rem; }
.legal-back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--gold-text); margin-bottom: 2rem; }
.legal-back:hover { color: var(--ink); }
.legal-wrap h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1.12; margin: 0 0 0.6rem; color: var(--ink); }
.legal-updated { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 2.5rem; }
.legal-wrap h2 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em; color: var(--gold-text); margin: 2.6rem 0 0.8rem; }
.legal-wrap p, .legal-wrap li { font-family: var(--font-sans); font-size: 1rem; line-height: 1.75; color: var(--ink-soft); }
.legal-wrap p { margin: 0 0 1.1rem; }
.legal-wrap ul { margin: 0 0 1.1rem; padding-left: 1.25rem; }
.legal-wrap li { margin-bottom: 0.5rem; }
.legal-wrap a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 2px; }
.legal-wrap a:hover { color: var(--ink); }
.legal-wrap strong { color: var(--ink); }
.legal-lead { font-size: 1.08rem !important; color: var(--ink) !important; }

/* ====================================================================
   Live Ontario ADU news feed — homepage widget + news.html grid
   ==================================================================== */
.news-section { background: var(--bone); }
.news-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.news-head-left { max-width: 640px; }
.news-divider { width: 40px; height: 1px; background: var(--gold); margin-bottom: 1.3rem; }
.news-head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }
.news-viewall { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600; color: var(--gold-text); transition: gap 0.2s ease, color 0.2s ease; }
.news-viewall:hover { gap: 0.65rem; color: var(--ink); }
.news-updated { font-family: var(--font-sans); font-size: 0.78rem; color: var(--stone-deep); letter-spacing: 0.02em; }

/* Homepage two-column layout: lead + list */
#news-feed { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.6rem; align-items: start; }
.news-col-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }

/* Card — shared */
.news-card { display: block; position: relative; text-decoration: none; transition: transform 0.22s ease; }
.news-card-src { display: inline-block; font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0; color: var(--gold-text); margin-bottom: 0.55rem; }
.news-card-title { font-family: var(--font-serif); font-weight: 600; color: var(--ink); line-height: 1.22; margin: 0; display: block; background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px; transition: background-size 0.28s ease; }
.news-card:hover .news-card-title { background-size: 100% 1px; }
.news-card-sum { font-family: var(--font-sans); font-size: 0.95rem; line-height: 1.65; color: var(--ink-soft); margin: 0.85rem 0 0; }
.news-card-date { display: block; font-family: var(--font-sans); font-size: 0.78rem; color: var(--stone-deep); margin-top: 0.7rem; }

/* Lead card (homepage) */
.news-card--lead { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; height: 100%; }
.news-card--lead:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -28px rgba(28,32,30,0.4); }
.news-card--lead .news-card-title { font-size: clamp(1.5rem, 2.4vw, 1.95rem); }

/* List cards (homepage right column) */
.news-col-list .news-card { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.news-col-list .news-card:hover { transform: translateX(3px); }
.news-col-list .news-card-title { font-size: 1.12rem; }

/* News.html grid */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.news-grid .news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.news-grid .news-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -28px rgba(28,32,30,0.4); }
.news-grid .news-card-title { font-size: 1.28rem; }
.news-grid .news-card[hidden] { display: none; }

/* Filter chips */
.news-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.2rem; }
.news-chip { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600; padding: 0.5rem 1.05rem; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink-soft); cursor: pointer; transition: all 0.2s ease; }
.news-chip:hover { border-color: var(--gold-text); color: var(--gold-text); }
.news-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bone); }

/* Skeleton shimmer */
@keyframes news-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.news-skel { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.news-skel--lead { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; border-bottom: 1px solid var(--line); }
.news-skel-line { display: block; height: 0.85rem; border-radius: 3px; margin-bottom: 0.7rem; background: linear-gradient(90deg, var(--stone) 25%, #f0ece3 50%, var(--stone) 75%); background-size: 200% 100%; animation: news-shimmer 1.5s ease-in-out infinite; }
.news-skel-src { width: 30%; height: 0.65rem; }
.news-skel-t1 { width: 92%; }
.news-skel-t2 { width: 70%; }
.news-skel-sum { width: 100%; height: 0.7rem; margin-top: 1rem; }
.news-skel--lead .news-skel-t1, .news-skel--lead .news-skel-t2 { height: 1.4rem; }

/* Error / fallback */
.news-error { grid-column: 1 / -1; padding: 2.6rem 1.5rem; text-align: center; font-family: var(--font-sans); font-size: 1rem; color: var(--ink-soft); background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.news-error-link { color: var(--gold-text); text-decoration: underline; text-underline-offset: 2px; }
.news-error-link:hover { color: var(--ink); }

/* News.html: about sources */
.news-sources-list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.news-sources-list li { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.85rem; font-family: var(--font-sans); font-size: 0.96rem; color: var(--ink-soft); }
.news-sources-list a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.news-sources-list a:hover { color: var(--ink); }

@media (max-width: 860px) {
  #news-feed { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-col-list { border-top: none; }
}
@media (prefers-reduced-motion: reduce) {
  .news-skel-line { animation: none; }
  .news-card, .news-card-title { transition: none; }
}

/* ============================================================
   Premium refinement layer (2026-10) — gold-text scoping,
   editorial spec lists, fine print, hero text link
   ============================================================ */
/* On dark surfaces "gold text" resolves to the lighter gold for contrast */
.bg-ink, .hero, .footer, .mobile-menu, .float-cta, .bs-section { --gold-text: var(--gold-soft); }
.bg-ink .card, .hero .card { --gold-text: #7E6136; }
.bg-bone .counter, .bg-stone .counter, .card .counter { color: var(--gold-text); }
.faq-q { font-weight: 500; }
.icon-badge { background: transparent; border: 1px solid var(--line-strong); }
.fine-print { font-size: 0.8rem; color: var(--stone-deep); margin-top: 0.8rem; }
.bg-ink .fine-print { color: rgba(244,242,238,0.6); }
.hero-link { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--bone); font-weight: 500; font-size: 0.95rem; padding: 0.95rem 0.4rem; border-bottom: 1px solid rgba(244,242,238,0.35); transition: border-color 0.25s ease; }
.hero-link:hover { border-color: var(--gold-soft); }
.hero-link .ico { width: 16px; height: 16px; }
.hero .eyebrow { margin-bottom: 1.4rem; color: rgba(244,242,238,0.88); text-shadow: 0 1px 12px rgba(0,0,0,0.45); }
.hero h1, .hero .lede { text-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 5vw, 5rem); margin: 0; }
.spec-list > div { border-top: 1px solid var(--line-strong); padding: 1.5rem 0 1.8rem; }
.spec-list dt { font-family: var(--font-serif); font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.01em; margin-bottom: 0.45rem; color: var(--ink); }
.spec-list dd { margin: 0; color: var(--ink-soft); max-width: 48ch; font-size: 0.98rem; }
@media (max-width: 720px) { .spec-list { grid-template-columns: 1fr; } }
.type-card img { transition: transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.type-card:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .type-card img { transition: none; } }
