:root {
  --green: #003a2d;
  --green-2: #0a4d3d;
  --green-3: #002a20;
  --cream: #fcf5ee;
  --cream-2: #f6ecdf;
  --gold: #c9a227;
  --ink: #12261f;
  --muted: #4d5f58;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: "EB Garamond", Georgia, serif; font-size: 1.2rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-weight: 400; line-height: 1.12; margin: 0; }

.kicker { margin: 0 0 .8rem; text-transform: uppercase; letter-spacing: .3em; font-size: .85rem; color: var(--gold); font-weight: 500; }
.kicker.light { color: var(--gold); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  padding: .9rem clamp(1rem, 4vw, 3rem); background: var(--green); color: var(--cream);
  border-bottom: 1px solid rgba(201,162,39,.35); transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; font-size: 1.5rem; }
.brand span { font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: .25rem; }
.nav nav { display: flex; align-items: center; gap: 1.8rem; }
.nav nav a, .foot-top nav a { font-family: "Inter", system-ui, sans-serif; font-weight: 500; font-size: .92rem; letter-spacing: .01em; }
.nav nav a { text-decoration: none; opacity: .9; }
.nav nav a:hover { color: var(--gold); opacity: 1; }
.nav .nav-cta { border: 1px solid var(--gold); color: var(--gold); padding: .5rem 1.2rem; border-radius: 3px; opacity: 1; }
.nav .nav-cta:hover { background: var(--gold); color: var(--green); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; font: inherit; font-size: 1.05rem; letter-spacing: .06em;
  padding: .85rem 2rem; text-decoration: none; border: 1px solid transparent; transition: .2s;
}
.btn.gold { background: var(--gold); color: var(--green-3); border-color: var(--gold); font-weight: 500; }
.btn.gold:hover { background: #dbb538; }
.btn.ghost { border-color: rgba(252,245,238,.45); color: var(--cream); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn.solid { background: var(--green); color: var(--cream); border-color: var(--green); }
.btn.solid:hover { background: var(--gold); border-color: var(--gold); color: var(--green-3); }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--cream); display: flex; flex-direction: column; min-height: min(86vh, 760px); background: var(--green-3); }
.hero-bg { position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(0,42,32,.94) 0%, rgba(0,42,32,.78) 38%, rgba(0,42,32,.35) 75%, rgba(0,42,32,.25) 100%),
    linear-gradient(0deg, rgba(0,42,32,.85) 0%, rgba(0,42,32,0) 35%),
    url("images/vancouver-hero.jpg") center / cover no-repeat; }
.hero-inner { position: relative; flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; display: flex; align-items: center; padding: clamp(3.5rem, 9vw, 6rem) clamp(1rem, 4vw, 3rem); }
.hero-text { max-width: 820px; }
.eyebrow { margin: 0 0 1.4rem; text-transform: uppercase; letter-spacing: .3em; font-size: .85rem; color: var(--gold); }
.hero h1 { font-size: clamp(2.3rem, 5.8vw, 4.6rem); letter-spacing: -.01em; text-wrap: balance; }
.hero h1 .hl { display: block; }
.hero .lead { max-width: 30em; }
.eyebrow span { display: inline-block; }
@media (max-width: 560px) { .eyebrow .dot { display: none; } .eyebrow span { display: block; } .eyebrow { letter-spacing: .22em; line-height: 1.8; } }
.lead { margin: 1.6rem 0 2.2rem; font-size: clamp(1.15rem, 2.3vw, 1.4rem); color: rgba(252,245,238,.88); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-strip { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--max); width: 100%; margin: 0 auto; border-top: 1px solid rgba(201,162,39,.5); }
.hero-strip a { display: flex; align-items: center; justify-content: center; gap: .8rem; padding: 1.3rem .8rem; text-decoration: none; font-size: 1.2rem; transition: background .2s, color .2s; }
.hero-strip a + a { border-left: 1px solid rgba(201,162,39,.25); }
.hero-strip a:hover { background: rgba(201,162,39,.16); color: var(--gold); }
.hero-strip svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.portrait { position: relative; margin: 0 14px 14px 0; align-self: stretch; min-height: 420px; }
.portrait::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--gold); border-radius: 4px; }
.portrait img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 4px; box-shadow: 0 24px 50px rgba(0,0,0,.35); }

/* ---------- generic sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 3rem); }
.head { text-align: center; margin-bottom: 3rem; }
.head h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); color: var(--green); }
.head h2::after { content: ""; display: block; width: 60px; border-top: 2px solid var(--gold); margin: 1.1rem auto 0; }

/* practice */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.tile {
  background: #fff; border: 1px solid rgba(0,58,45,.1); border-top: 3px solid var(--gold);
  padding: 2rem 1.7rem; transition: transform .25s, box-shadow .25s;
}
.tile:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(0,58,45,.12); }
.tile svg, .info svg { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tile svg { width: 40px; height: 40px; margin-bottom: 1.1rem; stroke: var(--green); }
.tile h3 { font-size: 1.55rem; color: var(--green); margin-bottom: .6rem; }
.tile p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }

/* notary */
.notary { background: var(--cream-2); padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem); }
.notary-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.notary h2 { font-size: clamp(2rem, 4.4vw, 3rem); color: var(--green); margin-bottom: 1.2rem; }
.notary-main > p:not(.kicker) { color: var(--muted); margin: 0 0 1rem; }
.checks { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.2rem; }
.checks li { position: relative; padding-left: 1.9rem; color: var(--green); font-size: 1.2rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 1rem; height: .5rem; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.notary-card { background: var(--green); color: var(--cream); padding: clamp(1.6rem, 3vw, 2.4rem); border-top: 3px solid var(--gold); box-shadow: 0 24px 48px rgba(0,58,45,.18); }
.notary-card svg { width: 38px; height: 38px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.notary-card h3 { font-size: 1.7rem; margin-bottom: .8rem; }
.notary-card p { margin: 0 0 .9rem; font-size: 1.1rem; line-height: 1.55; color: rgba(252,245,238,.88); }
.notary-card p:last-child { margin-bottom: 0; }

/* about */
.about { background: var(--green); color: var(--cream); padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem); }
.about-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: .85fr 1.5fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: stretch; }
.about-body { padding: .2rem 0; }
.about-body .kicker { margin: 0 0 .6rem; font-size: .85rem; color: var(--gold); }
.about h2 { font-size: clamp(2.2rem, 4.4vw, 3rem); }
.about-body .sub { margin: .6rem 0 0; font-size: 1.15rem; font-style: italic; color: var(--gold); }
.about-body .sub::after { content: ""; display: block; width: 60px; border-top: 2px solid var(--gold); margin: 1.4rem 0 1.6rem; }
.about-body p { margin: 0 0 1.1rem; font-size: 1.15rem; line-height: 1.6; color: rgba(252,245,238,.88); }
.about-body .sub + p { font-size: 1.4rem; line-height: 1.45; color: var(--cream); }
.about-body p:last-child { margin-bottom: 0; }
.form-intro { margin: 0; font-size: 1.15rem; color: var(--green); font-style: italic; }

/* approach */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.steps li { border-top: 1px solid var(--gold); padding-top: 1.4rem; }
.steps span { font-size: 2.4rem; color: var(--gold); line-height: 1; display: block; margin-bottom: .8rem; }
.steps h3 { font-size: 1.5rem; color: var(--green); margin-bottom: .5rem; }
.steps p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* contact */
.contact { background: var(--cream-2); padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 3rem); }
.contact-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact h2 { font-size: clamp(2rem, 4.6vw, 3rem); color: var(--green); margin-bottom: 1rem; }
.contact-info > p:not(.kicker) { color: var(--muted); margin: 0 0 2rem; }
.info { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.info li { display: flex; align-items: center; gap: 1rem; font-size: 1.3rem; color: var(--green); }
.info svg { width: 26px; height: 26px; flex: none; stroke: var(--gold); }
.info a { text-decoration: none; border-bottom: 1px solid transparent; }
.info a:hover { border-color: var(--gold); }

form { background: #fff; padding: clamp(1.4rem, 3vw, 2.4rem); border-top: 3px solid var(--gold); box-shadow: 0 20px 40px rgba(0,58,45,.08); display: grid; gap: 1.1rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: grid; gap: .3rem; font-size: .95rem; color: var(--green); letter-spacing: .02em; }
.opt { color: var(--muted); }
input[type=text], input[type=email], input[type=tel], textarea {
  font: inherit; font-size: 1.1rem; padding: .7rem .85rem; background: var(--cream); color: var(--ink);
  border: 1px solid #d9ccb8; border-radius: 0; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); background: #fff; }
label.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--muted); }
label.check input { margin-top: .35rem; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
form .btn { justify-self: start; }
#form-status { margin: 0; min-height: 1.4em; font-size: 1rem; }
#form-status.ok { color: #1c6b3a; } #form-status.err { color: #a12a2a; }
.fine { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* footer */
footer { background: var(--green-3); color: rgba(252,245,238,.8); padding: 3rem clamp(1rem, 4vw, 3rem) 2.5rem; display: grid; gap: 1rem; }
.foot-top { max-width: var(--max); width: 100%; margin: 0 auto 1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; padding-bottom: 1.8rem; border-bottom: 1px solid rgba(201,162,39,.35); }
.foot-name { margin: 0; font-size: 1.7rem; color: var(--cream); line-height: 1.1; }
.foot-role { margin: .4rem 0 0; font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }
.foot-top nav { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center; }
.foot-top nav a { text-decoration: none; }
.foot-top nav a:hover { color: var(--gold); }
footer .fine { color: rgba(252,245,238,.65); max-width: var(--max); width: 100%; margin: 0 auto; }
footer .fine a { color: var(--gold); }

/* reveal animation (only when JS is available) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* responsive */
@media (max-width: 900px) {
  .about-inner, .contact-inner, .notary-inner { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; min-height: 0; aspect-ratio: 4 / 5; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hero-strip a:nth-child(3) { border-left: 0; }
  .hero-strip a:nth-child(n+3) { border-top: 1px solid rgba(201,162,39,.25); }
  .nav nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 520px) {
  .hero-strip a { font-size: 1.05rem; padding: 1rem .5rem; gap: .5rem; }
  .hero-strip svg { display: none; }
  .row, .checks { grid-template-columns: 1fr; }
  .brand { font-size: 1.25rem; }
}

/* tile link */
.tile-link { display: inline-block; margin-top: 1.1rem; font-size: 1.05rem; color: var(--green); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.tile-link:hover { color: var(--gold); }

/* questionnaire page */
.q-hero { background: linear-gradient(160deg, var(--green) 0%, var(--green-3) 100%); color: var(--cream); text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem); }
.q-hero .eyebrow { margin-bottom: 1rem; }
.q-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
.q-hero p:last-child { max-width: 40em; margin: 1.2rem auto 0; color: rgba(252,245,238,.85); }
.q-wrap { max-width: 800px; margin: 0 auto; padding: 1.5rem clamp(1rem, 4vw, 2rem) 4rem; }
.q-progress { position: sticky; top: 66px; z-index: 5; background: var(--cream); padding: .8rem 0 .6rem; margin-bottom: 1rem; }
.q-progress .bar { height: 4px; background: rgba(0,58,45,.12); }
.q-progress .bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.q-progress p { margin: .5rem 0 0; font-size: .85rem; color: var(--muted); font-family: "Inter", system-ui, sans-serif; }
#q-form { background: none; padding: 0; box-shadow: none; border: 0; gap: 1.4rem; }
.q-card { background: #fff; border-top: 3px solid var(--gold); padding: clamp(1.3rem, 3vw, 2rem); box-shadow: 0 14px 30px rgba(0,58,45,.07); display: grid; gap: 1.2rem; }
.q-card h2 { text-align: left; margin: 0; font-size: 1.7rem; color: var(--green); display: flex; align-items: baseline; gap: .8rem; }
.q-card h2::after { display: none; }
.q-card h2 .num { color: var(--gold); font-size: 1.2rem; letter-spacing: .08em; }
.q-notice h2 { display: block; }
.q-notice p { margin: 0; font-size: 1.05rem; color: var(--muted); }
.req { color: #a12a2a; }
.q-field { display: grid; gap: .4rem; font-size: 1.05rem; color: var(--green); letter-spacing: 0; line-height: 1.35; }
.q-field textarea { resize: vertical; min-height: 3rem; overflow: hidden; }
fieldset.q-field { border: 0; padding: 0; margin: 0; }
fieldset.q-field legend { padding: 0; margin-bottom: .5rem; }
.q-radio div { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { display: inline-block; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: .45rem 1.2rem; border: 1px solid #cdbfa8; background: var(--cream); color: var(--green); font-size: 1rem; transition: .15s; }
.pill input:checked + span { background: var(--green); border-color: var(--green); color: var(--cream); }
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.q-note { margin: 0; font-size: .95rem; font-style: italic; color: var(--muted); }
.q-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.q-submit #q-status { flex-basis: 100%; }
.link-btn { background: none; border: 0; font: inherit; font-size: 1rem; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--green); }
@media (max-width: 520px) { .q-progress { top: 60px; } }

/* non-copyable questions: text lives in a data attribute rendered via CSS */
.qt::before { content: attr(data-q); }
.q-card { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.q-card textarea, .q-card input { -webkit-user-select: text; user-select: text; }
.q-notice { -webkit-user-select: text; user-select: text; }
@media print { .q-wrap { display: none; } }

/* language button (questions only) */
.q-prog-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .55rem; }
.q-prog-top p { margin: 0; }
.lang-toggle { display: inline-flex; flex: none; padding: 3px; border-radius: 999px; background: #e6e1d8; }
.lang-toggle button { font-family: "Inter", system-ui, sans-serif; font-weight: 500; font-size: .88rem; border: 0; background: transparent; color: #8c877d; padding: .42rem 1rem; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.lang-toggle button:hover { color: var(--green); }
.lang-toggle button[aria-pressed="true"] { background: var(--gold); color: var(--green-3); box-shadow: 0 2px 8px rgba(201,162,39,.4); cursor: default; }
.lang-toggle button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 520px) { .qpage .nav nav a:not(.nav-cta) { display: none; } .q-prog-top p { font-size: .78rem; } }
