/* oneyear.thelongview.ca — De Thomas "One Year to Earn Your Trust" campaign
   Palette and type match the Meta ad creative (cream #FFFBF5 sampled from the ad)
   and the De Thomas brand standard (navy #171844, gold #8C734B, Raleway). */

:root {
  --navy: #171844;
  --navy-2: #22245c;
  --gold: #8C734B;          /* 4.5:1 on white: accents and large text only */
  --gold-soft: #d9ccb4;
  --cream: #FFFBF5;
  --cream-2: #F6F0E4;
  --ink: #1a1a1a;
  --ink-2: #45454f;         /* 9.3:1 on cream */
  --line: #e4dccd;
  --error: #9b1c1c;
  --ok: #1f5f3a;
  --radius: 2px;
  --wrap: 1120px;
  --read: 680px;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--read); margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---------- Top bar ---------- */
.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 16px; }
.topbar .mini-brand { font-family: var(--sans); font-weight: 600; letter-spacing: .22em; font-size: .78rem; color: var(--navy); text-decoration: none; text-transform: uppercase; }
.topbar .phone, .topbar .mini-brand { padding: 12px 0; }
.topbar .phone { font-size: .9rem; font-weight: 500; color: var(--navy); text-decoration: none; white-space: nowrap; }
.topbar .phone span { color: var(--ink-2); font-weight: 400; margin-right: 6px; }
@media (max-width: 520px) { .topbar .phone span { display: none; } }

/* ---------- Brand lockup (mirrors the ad) ---------- */
.lockup { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lockup .sprig-row { display: flex; align-items: center; gap: 18px; width: 100%; max-width: 440px; }
.lockup .sprig-row::before, .lockup .sprig-row::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: .7; }
.lockup .sprig { width: 64px; }
.lockup .name { font-family: var(--sans); font-weight: 500; letter-spacing: .28em; font-size: clamp(1.35rem, 4.4vw, 2rem); color: var(--navy); margin: 6px 0 0; padding-left: .28em; line-height: 1.1; }
.lockup .sub { font-weight: 500; letter-spacing: .3em; font-size: clamp(.68rem, 1.9vw, .82rem); color: var(--gold); padding-left: .3em; text-transform: uppercase; }
.lockup .est { display: flex; align-items: center; gap: 12px; font-size: .74rem; letter-spacing: .24em; color: var(--gold); font-weight: 500; }
.lockup .est::before, .lockup .est::after { content: ""; width: 44px; height: 1px; background: var(--gold); opacity: .7; }

/* ---------- Type ---------- */
.eyebrow { display: block; font-weight: 600; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
h1, h2, h3 { color: var(--navy); margin: 0; }
h1.display {
  font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -.005em;
  font-size: clamp(1.5rem, 7.3vw, 4.6rem);
}
.sub-display { font-family: var(--sans); font-weight: 500; text-transform: uppercase; letter-spacing: .01em; color: var(--navy); line-height: 1.15; font-size: clamp(1.25rem, 3.9vw, 2.15rem); margin: 0; }
h2 { font-family: var(--sans); font-weight: 600; font-size: clamp(1.55rem, 3.6vw, 2.3rem); line-height: 1.2; letter-spacing: -.01em; }
h2.caps { text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; line-height: 1.35; }
.lede { font-size: clamp(1.08rem, 2.2vw, 1.22rem); color: var(--ink-2); margin: 18px 0 0; }
.rule { width: 120px; height: 1px; background: var(--gold); border: 0; margin: 28px auto; }
.rule.left { margin-left: 0; }
p { margin: 0 0 1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 30px;
  background: var(--navy); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: .92rem; letter-spacing: .2em; text-transform: uppercase;
  box-shadow: 0 0 0 1px var(--navy), 0 0 0 3px var(--cream), 0 0 0 4px var(--gold);
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--navy-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn .arrow { color: var(--gold-soft); font-size: 1.2em; letter-spacing: 0; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.block { width: 100%; }
.textlink { font-weight: 600; font-size: .95rem; color: var(--navy); }
.cta-row { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 34px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.band { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-navy { background: var(--navy); color: #eceaf5; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy .eyebrow { color: var(--gold-soft); }
.band-navy a { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 0; text-align: center; }
@media (min-width: 900px) { .hero { padding-top: 56px; } }
.hero h1 { margin-top: 44px; }
.hero .qualifier { font-size: 1.05rem; color: var(--ink-2); margin: 26px auto 0; max-width: 34ch; }
.hero .qualifier strong { color: var(--navy); font-weight: 600; }
.hero-land { margin-top: 56px; position: relative; }
.hero-land img { width: 100%; max-width: 1200px; margin: 0 auto; aspect-ratio: 941 / 372; object-fit: cover; object-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%); mask-image: linear-gradient(to bottom, transparent 0%, #000 38%); }

/* ---------- Promise box (identical to ad) ---------- */
.promise { border: 1.5px solid var(--gold); background: #fff; padding: 40px 24px 30px; text-align: center; max-width: 820px; margin: 0 auto; }
@media (min-width: 700px) { .promise { padding: 52px 56px 40px; } }
.promise .title { font-weight: 700; letter-spacing: .14em; color: var(--gold); font-size: clamp(1.05rem, 2.8vw, 1.55rem); text-transform: uppercase; margin: 0 0 18px; }
.promise .quote { font-size: clamp(1.12rem, 2.4vw, 1.35rem); line-height: 1.5; color: var(--navy); margin: 0; font-weight: 500; }
.promise .fine { font-size: .92rem; color: var(--ink-2); margin: 0; }
.promise .rule { width: 90px; margin: 26px auto 18px; }
.plain { display: grid; gap: 18px; max-width: 820px; margin: 36px auto 0; }
@media (min-width: 760px) { .plain { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.plain div { border-top: 1px solid var(--line); padding-top: 16px; }
.plain h3 { font-size: 1rem; margin-bottom: 6px; }
.plain p { font-size: .96rem; color: var(--ink-2); margin: 0; }

/* ---------- Numbered points ---------- */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: pt; }
@media (min-width: 900px) { .points.two { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.points li { counter-increment: pt; display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; padding: 26px 0; border-top: 1px solid var(--line); }
.points li::before { content: counter(pt, decimal-leading-zero); font-weight: 600; color: var(--gold); font-size: .95rem; letter-spacing: .08em; padding-top: 3px; font-variant-numeric: lining-nums tabular-nums; }
.points h3 { grid-column: 2; }
.points p { grid-column: 2; margin: 0; color: var(--ink-2); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px; background: var(--gold); opacity: .55; }
.timeline li { position: relative; padding: 0 0 36px 52px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: var(--cream-2); border: 1.5px solid var(--gold); }
.timeline li.key::before { background: var(--gold); }
.timeline .when { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.timeline p { margin: 6px 0 0; color: var(--ink-2); }

/* ---------- Who we work with ---------- */
.fit { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .fit { grid-template-columns: 5fr 6fr; gap: 80px; } }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 16px 0 16px 36px; border-top: 1px solid var(--line); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 14px; height: 8px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }
.aside-note { font-size: .96rem; color: var(--ink-2); border-left: 2px solid var(--gold); padding: 4px 0 4px 18px; margin-top: 28px; }

/* ---------- Pillars ---------- */
.core { border: 1px solid rgba(255,255,255,.22); padding: 28px; margin-bottom: 28px; display: grid; gap: 8px; }
@media (min-width: 760px) { .core { grid-template-columns: 220px 1fr; gap: 32px; align-items: baseline; } }
.core h3 { font-size: 1.2rem; }
.core p { margin: 0; color: #d6d4e6; }
.pillars { display: grid; gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
@media (min-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--navy); padding: 28px 26px 30px; }
.pillar .n { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .2em; color: var(--gold-soft); margin-bottom: 12px; font-variant-numeric: lining-nums tabular-nums; }
.pillar h3 { font-size: 1.08rem; margin-bottom: 8px; }
.pillar p { margin: 0; font-size: .95rem; color: #d6d4e6; }

/* ---------- Note ---------- */
.note { max-width: 700px; margin: 0 auto; }
.note p { font-size: 1.12rem; line-height: 1.75; }
.note .sig { margin-top: 28px; font-weight: 600; color: var(--navy); }
.note .sig span { display: block; font-weight: 400; font-size: .92rem; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; margin: 56px auto 0; max-width: 900px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 26px 16px; text-align: center; }
.facts div + div { border-left: 1px solid var(--line); }
@media (max-width: 520px) { .facts div + div { border-left: 0; border-top: 1px solid var(--line); } }
.facts strong { display: block; font-family: var(--display); font-size: 1.9rem; color: var(--navy); font-weight: 700; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.facts span { font-size: .9rem; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 600; color: var(--navy); font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 30px; width: 10px; height: 10px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 34px; }
.faq .a { padding: 0 0 24px; color: var(--ink-2); }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- Form ---------- */
.convo { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .convo { grid-template-columns: 5fr 7fr; gap: 72px; } }
.convo-intro p { color: var(--ink-2); }
.expect { list-style: none; padding: 0; margin: 28px 0 0; }
.expect li { padding: 14px 0; border-top: 1px solid var(--line); font-size: .98rem; }
.expect li strong { display: block; color: var(--navy); font-weight: 600; }
.card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 30px 22px; }
@media (min-width: 700px) { .card { padding: 40px 40px 36px; } }
.field { margin-bottom: 22px; }
.field label, .field legend { display: block; font-weight: 600; color: var(--navy); font-size: .95rem; margin-bottom: 8px; padding: 0; }
.field .opt { font-weight: 400; color: var(--ink-2); font-size: .88rem; }
.field .hint { display: block; font-size: .86rem; color: var(--ink-2); font-weight: 400; margin-top: -4px; margin-bottom: 8px; }
fieldset.field { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.row2 { display: grid; gap: 0 18px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream);
  border: 1px solid #b9ae9a; border-radius: var(--radius); padding: 13px 14px; min-height: 50px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(23,24,68,.14); background: #fff; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.err { display: none; color: var(--error); font-size: .88rem; margin-top: 6px; font-weight: 500; }
.field.invalid .err { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid #b9ae9a; background: var(--cream); font-size: .93rem; cursor: pointer; user-select: none; transition: all .15s ease; }
.chip input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .92rem; color: var(--ink-2); margin: 6px 0 24px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.consent.invalid { color: var(--error); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .86rem; color: var(--ink-2); text-align: center; margin: 16px 0 0; }
.form-alert { display: none; border: 1px solid var(--error); background: #fdf3f3; color: var(--error); padding: 14px 16px; font-size: .94rem; margin-bottom: 20px; }
.form-alert.show { display: block; }
.form-alert a { color: var(--error); font-weight: 600; }

/* ---------- Soft CTA ---------- */
.soft { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 8px; }
@media (min-width: 760px) { .soft { grid-template-columns: 1fr 1fr; } }
.soft a { background: var(--cream); padding: 28px 26px; text-decoration: none; display: block; transition: background .2s ease; }
.soft a:hover { background: #fff; color: inherit; }
.soft h3 { font-size: 1.05rem; margin-bottom: 6px; }
.soft p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.soft .go { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .88rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }

/* ---------- Footer ---------- */
footer.site { background: var(--navy); color: #cfcde0; padding: 56px 0 40px; font-size: .92rem; }
footer.site a { color: #fff; }
footer.site .top { display: grid; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.16); }
@media (min-width: 760px) { footer.site .top { grid-template-columns: 1.4fr 1fr 1fr; } }
footer.site .brand { font-weight: 600; letter-spacing: .24em; color: #fff; text-transform: uppercase; font-size: .9rem; }
footer.site .brand span { display: block; font-weight: 500; font-size: .72rem; color: var(--gold-soft); letter-spacing: .28em; margin-top: 4px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: 0 0 8px; }
footer.site .legal { padding-top: 26px; font-size: .82rem; line-height: 1.6; color: #b9b7cf; }
footer.site .legal p { margin: 0 0 10px; }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255,251,245,.97); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { width: 100%; min-height: 50px; box-shadow: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Legal / simple pages ---------- */
.doc { padding: 56px 0 88px; }
.doc h1 { font-family: var(--sans); font-weight: 600; font-size: clamp(1.8rem, 4.4vw, 2.6rem); line-height: 1.2; margin-bottom: 8px; }
.doc .meta { color: var(--ink-2); font-size: .92rem; margin-bottom: 36px; }
.doc h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.summary-box { background: #fff; border: 1px solid var(--gold); padding: 24px 24px 8px; margin: 0 0 12px; }
.summary-box h2 { margin-top: 0; font-size: 1.1rem; }
.back { display: inline-block; margin-bottom: 28px; font-weight: 600; font-size: .92rem; }

/* ---------- Thank-you ---------- */
.ty { padding: 64px 0 96px; text-align: center; }
.ty h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.1; margin: 36px 0 0; }
.ty .lede { max-width: 38ch; margin-left: auto; margin-right: auto; }
.ty .next { text-align: left; max-width: 640px; margin: 48px auto 0; }
.hidden { display: none !important; }

/* ---------- Utilities (CSP forbids inline style attributes) ---------- */
.lede.on-navy { color: #d6d4e6; }
.eyebrow.center { display: block; }
.note-h { margin-bottom: 32px; }
section.compact { padding: 64px 0; }
.section-head.tight { margin-bottom: 28px; }
.h-sm { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.h-xs { font-size: 1.25rem; margin-bottom: 6px; }
.h-xs.spaced { margin: 48px 0 16px; }
.legal.flush { padding-top: 0; }
.mt-40 { margin-top: 40px; }
.muted-sm { color: var(--ink-2); font-size: .95rem; }
