/* =============================================
   KARIM ALI — OTTAWA REALTOR®
   "Plainspoken" identity system
   Archivo, one family. Square corners. 2px rules.
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ---- Plainspoken palette ---- */
  --ink:            #1C2024;  /* one-colour mark, headings, rules      */
  --navy:           #183356;  /* deep navy — dark sections, wordmark   */
  --blue:           #1D5B92;  /* primary blue — buttons, labels, rules */
  --blue-on-dark:   #ADC0D4;  /* the blue that survives on navy        */
  --body:           #51565B;  /* body copy                             */
  --muted:          #606A74;  /* supporting copy — 4.9:1, AA           */
  --quiet:          #7D8792;  /* micro-labels only, never body text    */
  --hairline:       #CCD2D7;  /* decorative rules and card edges       */
  --page:           #F2F6FA;  /* alternate ground — grey pushed to hue */
  --blue-tint:      #C9DCEC;  /* the tint that survives on --blue 5.0:1*/
  /* The warm stock is retired. These names stay because inline styles on
     a dozen pages reference them; they now resolve to the cool neutrals. */
  --paper:          var(--page);
  --paper-mid:      var(--hairline);

  /* ---- Legacy token names, repointed ----
     Thirty pages carry inline styles written against these names, so they
     stay put and simply resolve to the new palette. */
  --bg-primary:     #FFFFFF;
  --bg-secondary:   var(--page);
  --bg-accent:      var(--hairline);
  --bg-warm:        var(--paper);
  --bg-warm-mid:    var(--paper-mid);
  --bg-blue-tint:   var(--page);
  --bg-blue-mid:    var(--navy);
  --bg-navy:        var(--navy);
  --text-primary:   var(--ink);
  --text-secondary: var(--body);
  --text-muted:     var(--muted);
  --accent-blue:    var(--blue);
  --accent-blue-mid:var(--navy);
  --accent-blue-lt: var(--page);
  --accent-taupe:   var(--blue-on-dark);
  --accent-bronze:  var(--blue);
  --accent-green:   var(--blue);
  --accent-slate:   var(--navy);
  --white:          #FFFFFF;
  --border:         var(--hairline);
  --brand-blue:     var(--blue);
  --brand-blue-tint:var(--blue-on-dark);
  --wordmark-grey:  var(--body);

  /* ---- Type ----
     One family, three weights. No serif, no second display face:
     the restraint is the idea. */
  --font-sans:    'Archivo', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: var(--font-sans);

  --max-width: 1140px;
  --nav-height: 72px;
  --section-pad: 96px 24px;

  /* Square. Everywhere. */
  --radius: 0px;
  --radius-lg: 0px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--navy);
  text-wrap: pretty;
}

h4 {
  font-family: var(--font-sans);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
h4 { font-size: 1rem; font-weight: 800; }

p  { color: var(--body); max-width: 62ch; }

/* Micro-label — Archivo 800, wide tracking, uppercase.
   The system's only recurring ornament. */
.label {
  display: inline-block;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

/* Rules — 2px, the structural signature of the system.
   Width locks to the measure it sits under, never full-bleed. */
.rule {
  display: block;
  height: 2px;
  width: 220px;
  max-width: 100%;
  border: 0;
  background-color: var(--ink);
  margin: 26px 0 18px;
}
.rule-blue  { background-color: var(--blue); }
.rule-short { width: 120px; }
.rule-light { background-color: var(--blue-on-dark); }

/* Section colour variants */
.section-navy {
  background-color: var(--navy) !important;
}
.section-blue {
  background-color: var(--page) !important;
}
.section-navy .label {
  color: var(--blue-on-dark);
}
.section-navy h2,
.section-navy h3,
.section-navy h4,
.section-navy .section-header h2 {
  color: var(--white);
}
.section-navy p {
  color: rgba(255,255,255,0.82);
}
.section-navy .rule {
  background-color: var(--blue-on-dark);
}
.section-navy .btn-primary {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--navy);
}
.section-navy .btn-primary:hover {
  background-color: var(--blue-on-dark);
  border-color: var(--blue-on-dark);
}
.section-navy .btn-outline {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.section-navy .btn-outline:hover {
  border-color: var(--white);
  background-color: rgba(255,255,255,0.07);
}
.section-navy p.cta-note {
  color: rgba(255,255,255,0.6);
}

/* Blue ground — the working colour surface.
   White on #1D5B92 is 7.09:1 (AAA at body size). Eyebrows and rules take
   --blue-tint, NOT --blue-on-dark: that one is tuned to navy and drops to
   3.79:1 here. Never place this directly against .section-navy — the two
   sit at 1.8:1 and read as one slab. */
.section-brand {
  background-color: var(--blue) !important;
}
.section-brand .label {
  color: var(--blue-tint);
}
.section-brand h1,
.section-brand h2,
.section-brand h3,
.section-brand h4,
.section-brand .section-header h2 {
  color: var(--white);
}
.section-brand p {
  color: rgba(255,255,255,0.88);
}
.section-brand a:not(.btn) {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.section-brand .rule,
.section-brand .rule-blue {
  background-color: var(--blue-tint);
}
.section-brand .btn-primary {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--blue);
}
.section-brand .btn-primary:hover {
  background-color: var(--blue-tint);
  border-color: var(--blue-tint);
  color: var(--navy);
}
.section-brand .btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.section-brand .btn-outline:hover {
  border-color: var(--white);
  background-color: rgba(255,255,255,0.08);
}
.section-brand p.cta-note {
  color: rgba(255,255,255,0.65);
}
.section-brand :focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Blue hero ground — add `hero-brand` to any page's hero element.
   The class is doubled for specificity so it beats a page-local single-class
   rule (.sj-hero p, .guide-hero p, …) without !important, which in turn keeps
   the @media print `background: none !important` overrides working. */
.hero-brand.hero-brand {
  background: var(--blue);
  border-bottom: 0;
}
.hero-brand.hero-brand h1,
.hero-brand.hero-brand h2,
.hero-brand.hero-brand h3 {
  color: var(--white);
}
.hero-brand.hero-brand h1 em,
.hero-brand.hero-brand h2 em {
  color: var(--blue-tint);
}
.hero-brand.hero-brand p,
.hero-brand.hero-brand li {
  color: rgba(255,255,255,0.88);
}
.hero-brand.hero-brand p strong,
.hero-brand.hero-brand p b {
  color: var(--white);
}
.hero-brand.hero-brand .label,
.hero-brand.hero-brand .eyebrow {
  color: var(--blue-tint);
}
.hero-brand.hero-brand .rule,
.hero-brand.hero-brand .rule-blue {
  background-color: var(--blue-tint);
}
.hero-brand.hero-brand a:not(.btn) {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.hero-brand.hero-brand .btn-primary {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--blue);
}
.hero-brand.hero-brand .btn-primary:hover {
  background-color: var(--blue-tint);
  border-color: var(--blue-tint);
  color: var(--navy);
}
.hero-brand.hero-brand .btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.hero-brand.hero-brand .btn-outline:hover {
  border-color: var(--white);
  background-color: rgba(255,255,255,0.08);
}
.hero-brand.hero-brand :focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Alternate section ground */
.section-warm {
  background-color: var(--paper) !important;
}
.section-warm-mid {
  background-color: var(--paper-mid) !important;
}

/* Process section on navy */
#process.section-navy .process-tab {
  color: rgba(255,255,255,0.6);
  border-bottom-color: transparent;
}
#process.section-navy .process-tab.active {
  color: var(--white);
  border-bottom-color: var(--blue-on-dark);
}
#process.section-navy .process-step {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}
#process.section-navy .step-number {
  color: var(--blue-on-dark);
}
#process.section-navy h4 {
  color: var(--white);
}
#process.section-navy p {
  color: rgba(255,255,255,0.8);
}
#process.section-navy .process-tabs {
  border-bottom-color: rgba(255,255,255,0.14);
}
#process.section-navy .process-steps.active {
  gap: 8px;
}

/* =============================================
   WORDMARK LOCKUP
   The name is the mark. Built in type, not pixels,
   so it stays crisp at every size.
   ============================================= */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.wordmark-name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 25px;
  line-height: 0.9;
  letter-spacing: -0.038em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}

.wordmark-bar {
  flex: none;
  width: 2px;
  height: 24px;
  background-color: var(--blue);
}

.wordmark-micro {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 8.5px;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--body);
  white-space: nowrap;
}

/* Reversed — footer and any navy ground */
.wordmark-reverse .wordmark-name  { color: var(--white); }
.wordmark-reverse .wordmark-bar   { background-color: var(--blue-on-dark); }
.wordmark-reverse .wordmark-micro { color: var(--white); }

/* Stacked — footer brand column */
.wordmark-stacked {
  display: inline-block;
}
.wordmark-stacked .wordmark-name { font-size: 30px; line-height: 0.86; }
.wordmark-stacked .wordmark-rule {
  display: block;
  height: 2px;
  width: 152px;
  background-color: var(--white);
  /* Asymmetric on purpose. The wordmark above is all caps on line-height 0.86,
     which leaves ~10px of empty descender space under the letters, so an equal
     top margin reads as a much bigger gap. 3px here lands the *optical* gaps
     at ~15px on both sides. Measure from the glyphs, not the boxes. */
  margin: 3px 0 11px;
}
.wordmark-stacked .wordmark-micro {
  display: block;
  font-size: 9.5px;
  /* Tracked out so the micro line ends flush with the rule above it. The
     lockup reads as three elements of one width; a short bottom line makes it
     look accidental. Tied to this exact string, so re-measure if it changes. */
  letter-spacing: 0.41em;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background-color: var(--navy);
  border-color: var(--navy);
}

.btn-outline {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background-color: var(--ink);
  color: var(--white);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* --- Keyboard focus --- */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.section-navy :focus-visible,
.ottawa-band :focus-visible,
footer :focus-visible,
.lead-magnet-form :focus-visible {
  outline-color: var(--white);
}

::selection {
  background-color: var(--blue);
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* =============================================
   NAVIGATION
   ============================================= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--white);
  border-bottom: 2px solid var(--ink);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 22px;
}

.nav-links > li {
  display: flex;
  align-items: center;
}

.nav-links a {
  font-size: 0.688rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--blue); }

/* Current page. 2px blue underline, drawn with box-shadow so it does not
   affect layout or the dropdown hit area. */
.nav-links a[aria-current="page"] {
  color: var(--blue);
  box-shadow: 0 8px 0 -6px var(--blue);
}

.nav-cta {
  font-weight: 800 !important;
  letter-spacing: 0.13em;
  background-color: var(--blue);
  color: var(--white) !important;
  padding: 12px 17px;
  border-radius: 0;
  transition: background-color 0.16s !important;
}
.nav-cta:hover { background-color: var(--navy) !important; color: var(--white) !important; }

/* Dropdown */
.nav-dropdown {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -18px;
  background-color: var(--white);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--ink);
  border-radius: 0;
  min-width: 190px;
  padding: 6px 0;
  z-index: 200;
}

.nav-sub li { padding: 0; }

.nav-sub a {
  display: block;
  padding: 11px 18px;
  font-size: 0.688rem;
  letter-spacing: 0.11em;
  color: var(--body);
  white-space: nowrap;
}

.nav-sub a:hover {
  background-color: var(--page);
  color: var(--ink);
}

.nav-dropdown.open .nav-sub { display: block; }

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: rgba(255,255,255,0.7);
}

.language-toggle button,
.language-toggle a {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 0.688rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}

.language-toggle button + button::before {
  content: "|";
  margin-right: 9px;
  color: rgba(255,255,255,0.3);
}

.language-toggle button:hover {
  color: var(--white);
}

.language-toggle button.active {
  color: var(--white);
  font-weight: 800;
}

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  transition: 0.2s;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  padding: 128px 24px 136px;
  /* Blue, not navy: every other page now opens on --blue, and the homepage
     changing colour reads as inconsistency rather than hierarchy. */
  background-color: var(--blue);
  position: relative;
  overflow: hidden;
}
#hero .hero-inner {
  position: relative;
  z-index: 1;
}
.hero-accent { display: none; }

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 72px;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 0;
  color: var(--navy);
  max-width: 15ch;
  /* The homepage H1 is two words, so it carries the column on size alone. */
  font-size: clamp(2.9rem, 6vw, 4.75rem);
  letter-spacing: -0.04em;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero-content p {
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 46ch;
  color: var(--muted);
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: clamp(520px, 46vw, 600px);
  object-fit: cover;
  object-position: center 62%;
  border-radius: 0;
  display: block;
}

.hero-image .photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background-color: var(--hairline);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.hero-badge {
  position: absolute;
  bottom: 0;
  left: -1px;
  background-color: var(--white);
  border: 0;
  border-top: 2px solid var(--blue);
  border-radius: 0;
  padding: 16px 22px 15px;
  box-shadow: none;
}
.hero-badge strong {
  font-size: 1.6rem;
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.03em;
  display: block;
  line-height: 1;
  color: var(--navy);
}
.hero-badge span {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 7px;
  line-height: 1.5;
}

/* --- Homepage hero: navy field split by a full-height photo panel ---
   Scoped to #hero so about.html keeps the shared .hero-* photo layout. */

#hero .hero-inner {
  grid-template-columns: 1.06fr 1fr;
  align-items: stretch;
}

#hero .hero-content { align-self: center; }

/* The photo runs the full height of the navy band, edge to edge, rather than
   floating in it as a box. Cancels the section padding on its own column. */
#hero .hero-image {
  margin-top: -128px;
  margin-bottom: -136px;
}

#hero .hero-image img {
  height: 100%;
  object-position: center 55%;
}

#hero .hero-content h1 {
  color: var(--white);
  max-width: 9ch;
  /* Sharing the row with a photo now, so it comes down off the solo scale. */
  font-size: clamp(3rem, 5.4vw, 4.6rem);
}

#hero .hero-content p {
  color: var(--white);
  font-size: 1.14rem;
  max-width: 44ch;
}

/* A blue rule vanishes on a navy ground. White holds the 2px signature. */
#hero .rule { background-color: var(--white); }

/* .btn-primary is --blue, invisible here, so the fill inverts. */
#hero .btn-primary {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--blue);
}
#hero .btn-primary:hover {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}

#hero .btn-outline {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}
#hero .btn-outline:hover {
  background-color: var(--white);
  color: var(--blue);
}

#hero .btn-group { margin-top: 38px; }

#hero :focus-visible { outline-color: var(--white); }


/* =============================================
   PROBLEM SECTION
   ============================================= */
#problem {
  padding: var(--section-pad);
  background-color: var(--page);
}

.problem-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.problem-content h2 {
  margin-bottom: 20px;
}
.problem-content p {
  margin-bottom: 16px;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.problem-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.problem-item-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 0;
  background-color: var(--blue);
  margin-top: 9px;
}

.problem-item p {
  margin: 0;
  font-size: 0.95rem;
}

.problem-callout {
  background-color: var(--white);
  border-top: 2px solid var(--ink);
  border-radius: 0;
  padding: 40px 36px;
  margin-top: 40px;
}

.problem-callout blockquote {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-weight: 800;
}

.problem-callout cite {
  display: block;
  margin-top: 16px;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--quiet);
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* =============================================
   VALUE PROPOSITIONS
   ============================================= */
#value {
  padding: var(--section-pad);
  background-color: var(--bg-primary);
}

.section-header {
  max-width: 640px;
  margin-bottom: 52px;
}

/* Heading left, proof point pushed to the right edge — the same axis the
   resources page uses. */
.section-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
  margin-bottom: 52px;
}
.section-header-row .section-header { margin-bottom: 0; }

.stat-proof {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  text-align: right;
}
.stat-proof strong {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}
.stat-proof span {
  display: block;
  margin-top: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--muted);
}

.section-header h2 { margin-bottom: 16px; }
.section-header p  { margin-top: 4px; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--hairline);
  border-top: 2px solid var(--ink);
}

.value-card {
  display: block;
  background-color: var(--white);
  padding: 34px 28px 36px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.value-card:hover {
  background-color: var(--page);
}

.value-icon {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.value-card h4 {
  margin-bottom: 10px;
  color: var(--navy);
}

.value-card p {
  font-size: 0.9rem;
  margin: 0;
  max-width: none;
}

/* =============================================
   PLAN — the three steps
   ============================================= */
.plan {
  padding: var(--section-pad);
  background-color: var(--page);
}
.plan-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--hairline);
  border-top: 2px solid var(--ink);
}
.plan-step {
  background-color: var(--white);
  padding: 36px 32px 40px;
}
.plan-step .step-number {
  font-family: var(--font-sans);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.plan-step h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--navy);
}
.plan-step p {
  font-size: 0.925rem;
  margin: 0;
  max-width: none;
}

/* =============================================
   PROCESS SECTION
   ============================================= */
#process {
  padding: var(--section-pad);
  background-color: var(--page);
}

.process-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.process-inner .section-header { margin-bottom: 52px; }

.process-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 44px;
  border-bottom: 2px solid var(--hairline);
}

.process-tab {
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--quiet);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: 0.2s;
}
.process-tab.active {
  color: var(--ink);
  border-bottom-color: var(--blue);
}

.process-steps {
  display: none;
}
.process-steps.active { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background-color: var(--hairline); border-top: 2px solid var(--ink); }

.process-step {
  background-color: var(--white);
  padding: 28px 20px;
  position: relative;
}

.step-number {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: 0.16em;
}

.process-step h4 {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.825rem;
  margin: 0;
  max-width: none;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
#about {
  padding: var(--section-pad);
  background-color: var(--paper);
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: start;
}

.about-image .photo-placeholder,
.about-image img {
  width: 100%;
  /* The img carries width/height attributes to reserve space during load; those
     are presentational hints, so height must be released for aspect-ratio to win. */
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center bottom;
  border-radius: 0;
  display: block;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content p {
  margin-bottom: 20px;
}


.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 2px solid var(--ink);
}

.stat strong {
  font-family: var(--font-sans);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  display: block;
  line-height: 1;
}

.stat span {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 8px;
  line-height: 1.5;
}

/* =============================================
   RESOURCES SECTION
   ============================================= */
#resources {
  padding: var(--section-pad);
  background-color: var(--page);
}

.resources-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--hairline);
  border-top: 2px solid var(--ink);
  margin-top: 44px;
}

.resource-card {
  background-color: var(--white);
  padding: 32px 28px;
  transition: background-color 0.2s;
  cursor: pointer;
}

.resource-card:hover {
  background-color: var(--page);
}

.resource-tag {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.resource-card h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.resource-card p {
  font-size: 0.875rem;
  margin: 0;
  max-width: none;
}

.resource-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 20px;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
#testimonials {
  padding: var(--section-pad);
  background-color: var(--bg-primary);
}

.testimonials-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--hairline);
  border-top: 2px solid var(--ink);
  margin-top: 44px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: var(--white);
  border: 0;
  border-radius: 0;
  padding: 38px 34px;
}

.stars {
  color: var(--blue);
  font-size: 0.8rem;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.testimonial-card blockquote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 26px;
  max-width: 42ch;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 13px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 0;
  background-color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.author-info strong {
  font-size: 0.875rem;
  font-weight: 800;
  display: block;
  color: var(--ink);
}
.author-info span {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.story-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  /* Pushed to the card floor so the rules line up across the row,
     however uneven the quotes above them are. */
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  width: 100%;
}
.testimonial-author { margin-bottom: 24px; }
.story-link:hover { color: var(--navy); }

/* =============================================
   FINAL CTA SECTION
   ============================================= */
#cta {
  padding: var(--section-pad);
  background-color: var(--page);
  text-align: center;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-inner h2 { margin-bottom: 20px; }

.cta-inner p {
  font-size: 1.02rem;
  margin: 0 auto;
  max-width: 52ch;
}

.cta-inner .btn-group {
  justify-content: center;
}

.cta-inner .rule {
  margin-left: auto;
  margin-right: auto;
}

.cta-inner .cta-note {
  margin: 22px auto 0;
  max-width: none;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--muted);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  /* --ink, not --navy: a navy CTA band sits directly above the footer on most
     pages. Same colour read as one slab. Coloured band -> near-black footer. */
  background-color: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  margin-top: 20px;
  max-width: 30ch;
}

.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.social-link {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.22);
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.social-link:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.social-link svg {
  width: 17px;
  height: 17px;
}

.footer-col h5 {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-on-dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 11px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  text-align: right;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1040px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.65rem; letter-spacing: 0.1em; }
}

@media (max-width: 900px) {
  :root { --section-pad: 72px 24px; }

  #hero { padding: 64px 24px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-content { order: 0; }
  .hero-image { order: 1; }
  .hero-image img { height: clamp(400px, 115vw, 560px); object-position: center 58%; }
  .hero-image .photo-placeholder { aspect-ratio: 16/9; }
  .hero-badge { bottom: 0; left: 0; }

  /* One column, and the photo closes the navy band edge to edge instead of
     hanging beside the text. Undoes the desktop column bleed. */
  #hero .hero-inner { grid-template-columns: 1fr; }
  #hero .hero-image {
    margin: 0 -24px;
  }
  #hero .hero-image img { height: auto; object-position: center; }

  .section-header-row { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .stat-proof { text-align: left; }

  .problem-inner { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .process-steps.active { grid-template-columns: repeat(3, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 44px; }
  .about-image .photo-placeholder { aspect-ratio: 16/9; }
  .resources-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* Collapse the nav to a hamburger menu on tablets and phones */
@media (max-width: 1100px) {
  :root { --nav-height: 62px; }

  .wordmark-name { font-size: 21px; }
  .wordmark-bar  { height: 21px; }
  .wordmark      { gap: 11px; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-self: auto;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 2px solid var(--ink);
    padding: 8px 24px 24px;
    gap: 0;
  }

  .nav-links.nav-open { display: flex; }

  .nav-links {
    max-height: calc(100vh - var(--nav-height) - 2px);
    max-height: calc(100dvh - var(--nav-height) - 2px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  body.mobile-menu-open { overflow: hidden; }
  body.mobile-menu-open .mobile-cta-bar { visibility: hidden; }
  .nav-menu-btn { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }

  .nav-links li { width: 100%; }

  .nav-links > li { display: block; }

  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 0.78rem;
    letter-spacing: 0.13em;
  }

  .nav-links > li:last-child > a {
    border-bottom: none;
    margin-top: 14px;
    padding: 15px 20px;
    text-align: center;
  }

  /* Mobile dropdown: chevron affordance + inline submenu */
  .nav-dropdown-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }
  .nav-dropdown-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--quiet);
    border-bottom: 2px solid var(--quiet);
    transform: rotate(45deg);
    transition: transform 0.2s;
    margin: -4px 4px 0 0;
  }
  .nav-dropdown.open .nav-dropdown-toggle::after {
    transform: rotate(-135deg);
    margin-top: 2px;
  }

  .nav-dropdown {
    align-self: auto;
    display: block;
  }

  .nav-sub {
    position: static;
    display: none;
    border: none;
    border-radius: 0;
    min-width: 0;
    padding: 0;
    background: none;
  }
  .nav-dropdown.open .nav-sub { display: block; }
  .nav-sub a {
    padding: 12px 0 12px 18px;
    font-size: 0.72rem;
    color: var(--muted);
    border-bottom: 1px solid var(--hairline);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .nav-menu-btn { display: flex; }

  /* Prevent iOS Safari from auto-zooming when a field is focused
     (it zooms whenever the input font-size is under 16px) */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.55rem; }

  .btn { padding: 14px 20px; font-size: 0.66rem; letter-spacing: 0.12em; }

  .value-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .process-steps.active { grid-template-columns: 1fr 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-bottom-right { justify-content: center; text-align: center; gap: 8px 16px; }
  .process-tabs { overflow-x: auto; }
}


/* Homepage only: centred treatment on mobile. Desktop stays left-aligned. */
@media (max-width: 768px) {
  #hero .hero-content { text-align: center; }
  #hero .hero-content h1 { max-width: none; }
  #hero .hero-content p { margin-left: auto; margin-right: auto; }
  #hero .btn-group { justify-content: center; }
  #hero .rule { margin-left: auto; margin-right: auto; }
  /* Stat drops below the heading and shares its alignment. */
  #value .section-header-row { grid-template-columns: 1fr; }
  #value .stat-proof { text-align: center; }

  #value .section-header,
  #testimonials .section-header,
  .plan .section-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  #value .value-card { text-align: center; }

  #about .about-content { text-align: center; }
  #about .about-content p { margin-left: auto; margin-right: auto; }
  #about .about-content .btn-group { justify-content: center; }
  #about .about-stats { text-align: center; }
}


/* ============================================
   LEAD MAGNET — Free Buyer's Guide offer
   ============================================ */
.lead-magnet {
  padding: var(--section-pad);
  background-color: var(--bg-primary);
}

.lead-magnet-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--white);
  border-top: 2px solid var(--ink);
  border-radius: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-shadow: none;
}

.lead-magnet-copy {
  padding: 52px 48px;
}

.lead-magnet-copy .label { color: var(--blue); }

.lead-magnet-copy h2 {
  margin-bottom: 16px;
  max-width: 18ch;
}

.lead-magnet-copy > p {
  color: var(--body);
  margin-bottom: 28px;
  max-width: 42ch;
}

.lead-magnet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lead-magnet-list li {
  position: relative;
  padding: 14px 0 14px 32px;
  font-size: 0.925rem;
  color: var(--ink);
  line-height: 1.5;
  border-top: 1px solid var(--hairline);
}
.lead-magnet-list li:last-child { border-bottom: 1px solid var(--hairline); }

.lead-magnet-list svg {
  position: absolute;
  left: 0;
  top: 17px;
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.lead-magnet-form {
  background: var(--navy);
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lead-magnet-form h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.lead-magnet-form p.lm-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  margin-bottom: 26px;
}

.lead-magnet-form .lm-field {
  margin-bottom: 14px;
}

.lead-magnet-form label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}

.lead-magnet-form input {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  transition: border-color 0.15s, background 0.15s;
}

.lead-magnet-form input::placeholder { color: rgba(255, 255, 255, 0.45); }

.lead-magnet-form input:focus {
  outline: none;
  border-color: var(--blue-on-dark);
  background: rgba(255, 255, 255, 0.12);
}

.lead-magnet-form .btn {
  width: 100%;
  margin-top: 10px;
}

.lead-magnet-form .btn-primary {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--navy);
}
.lead-magnet-form .btn-primary:hover {
  background-color: var(--blue-on-dark);
  border-color: var(--blue-on-dark);
}

.lead-magnet-form .lm-note {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 16px;
  text-align: center;
  line-height: 1.55;
  max-width: none;
}

@media (max-width: 820px) {
  .lead-magnet-inner { grid-template-columns: 1fr; }
  .lead-magnet-copy { padding: 40px 28px 32px; }
  .lead-magnet-form { padding: 36px 28px 44px; }
}


/* ============================================
   STICKY MOBILE CTA BAR
   ============================================ */
.mobile-cta-bar { display: none; }

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 2px solid var(--ink);
    transition: transform 0.3s ease;
  }

  /* Stays tucked away on first load; slides up once the visitor scrolls in */
  .mobile-cta-bar.cta-hidden {
    transform: translateY(130%);
  }

  .mobile-cta-bar .mcb-call {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 14px 18px;
    border: 2px solid var(--ink);
    border-radius: 0;
    color: var(--ink);
    background: var(--white);
    font-weight: 800;
    font-size: 0.66rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }
  .mobile-cta-bar .mcb-call svg { width: 15px; height: 15px; }

  .mobile-cta-bar .mcb-book {
    flex: 1;
    text-align: center;
  }

  /* Keep the fixed bar from covering page content / footer —
     only on pages that have the bar (JS adds has-cta-bar) */
  body.has-cta-bar { padding-bottom: 96px; }
}


/* ============================================
   IMAGE SECTIONS — Ottawa band + path tiles
   ============================================ */
.ottawa-band { position: relative; overflow: hidden; }
.ottawa-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.ottawa-band::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Weighted so the type column stays dark enough for white to clear AA,
     whatever the photograph is doing underneath. */
  background: linear-gradient(100deg, rgba(24,51,86,0.94) 0%, rgba(24,51,86,0.72) 45%, rgba(24,51,86,0.25) 100%);
}
.ottawa-band-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 112px 24px;
}
.ottawa-band-content { max-width: 34ch; }
/* Over a photograph the tint is too weak at label size — white holds up. */
.ottawa-band .label { color: var(--white); }
.ottawa-band h2 {
  color: var(--white);
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.ottawa-band .rule { background-color: var(--blue-on-dark); }
.ottawa-band p { color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.ottawa-band .btn-primary {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--navy);
}
.ottawa-band .btn-primary:hover {
  background-color: var(--blue-on-dark);
  border-color: var(--blue-on-dark);
}

.path-tiles { padding: var(--section-pad); background-color: var(--bg-primary); }
.path-tiles-inner { max-width: var(--max-width); margin: 0 auto; }
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path-tile {
  position: relative;
  display: block;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16 / 11;
}
/* The two tiles ask you to pick a side. Move-up buyers are on both, so they
   get a quiet third route rather than a third tile competing with the two. */
.path-both {
  margin: 22px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.path-both a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.path-both a:hover { border-bottom-color: currentColor; }

.path-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.path-tile:hover img { transform: scale(1.04); }
.path-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Hold the scrim solid behind the text block (bottom ~26%), then fall away
     quickly so the room in the photograph still reads. */
  background: linear-gradient(to top, rgba(24,51,86,0.93) 0%, rgba(24,51,86,0.86) 24%, rgba(24,51,86,0.38) 42%, rgba(24,51,86,0.06) 66%, rgba(24,51,86,0) 100%);
}
.path-tile-text { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 26px; }
.path-tile-text h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: -0.035em;
}
.path-tile-text span {
  color: rgba(255,255,255,0.88);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 2px solid rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
  .ottawa-band-inner { padding: 76px 24px; text-align: center; }
  .ottawa-band-content { max-width: 100%; margin: 0 auto; }
  .ottawa-band p { margin-left: auto; margin-right: auto; }
  .ottawa-band .rule { margin-left: auto; margin-right: auto; }
  .path-tiles .section-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 600px) {
  .path-grid { grid-template-columns: 1fr; }
}


/* Page hero image (Buy / Sell) + stats strip */
.page-hero-img img {
  width: 100%;
  height: clamp(300px, 34vw, 460px);
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.stats-strip {
  background-color: var(--page);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.stats-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat span {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
@media (max-width: 600px) {
  .stats-strip-inner { grid-template-columns: 1fr; gap: 16px; text-align: center; }
}


/* ============================================
   CONSENT & PRIVACY  (CASL opt-in + PIPEDA notice)
   One block, two grounds. The checkbox starts
   unticked and is never required: the thing they
   asked for is not gated behind marketing consent.
   ============================================ */

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 20px;
}

.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
  padding: 0;
  border: 2px solid var(--muted);
  border-radius: 0;
  background: var(--white);
  cursor: pointer;
  position: relative;
  transition: background-color 0.12s, border-color 0.12s;
}

.consent input[type="checkbox"]:hover { border-color: var(--blue); }

.consent input[type="checkbox"]:checked {
  background: var(--blue);
  border-color: var(--blue);
}

/* The tick: two borders on a rotated box. No image, no data URI. */
.consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.consent label {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
  cursor: pointer;
  /* Cancel the uppercase micro-label treatment forms use elsewhere. */
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  margin: 0;
  max-width: 54ch;
}

.privacy-line {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 58ch;
}

.privacy-line a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.privacy-line a:hover { color: var(--accent-blue); }

/* ---- Dark ground: the navy lead-magnet panels ---- */

.lead-magnet-form .consent input[type="checkbox"] {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}
.lead-magnet-form .consent input[type="checkbox"]:hover {
  border-color: var(--blue-on-dark);
}
.lead-magnet-form .consent input[type="checkbox"]:checked {
  background: var(--white);
  border-color: var(--white);
}
.lead-magnet-form .consent input[type="checkbox"]:checked::after {
  border-color: var(--navy);
}
.lead-magnet-form .consent input[type="checkbox"]:focus-visible {
  outline-color: var(--blue-on-dark);
}
.lead-magnet-form .consent label {
  color: rgba(255, 255, 255, 0.78);
}
.lead-magnet-form .privacy-line {
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  max-width: none;
}
.lead-magnet-form .privacy-line a { color: rgba(255, 255, 255, 0.55); }
.lead-magnet-form .privacy-line a:hover { color: var(--white); }

/* The lead-magnet panels carry the privacy link inside their existing
   .lm-note, so it needs the same underline to read as a link. */
.lead-magnet-form .lm-note a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lead-magnet-form .lm-note a:hover { color: var(--white); }

/* The privacy link sitting in the footer's legal line. */
.footer-legal-link {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal-link:hover { color: var(--white); }

/* =============================================
   BROKERAGE MARK — footer affiliation
   RECO advertising: the registered brokerage name.
   The mark carries "Brokerage, Independently Owned
   and Operated" itself, so the footer-bottom legal
   line stays as the text fallback.
   ============================================= */
.footer-brokerage {
  display: block;
  margin-top: 28px;
  /* Held to the 152px wordmark rule above it so the brand
     column reads as one measure. */
  width: 160px;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-brokerage:hover {
  opacity: 1;
}

.footer-brokerage img {
  display: block;
  width: 100%;
  height: auto;
}

/* Shared language and form feedback controls. */
.language-toggle a { padding: 12px 2px; text-decoration: none; }
.language-toggle a[aria-current="true"] { color: white; font-weight: 800; }
.form-status { margin-top: 16px; line-height: 1.6; font-size: 1rem; }
.form-status:empty { display: none; }
.form-status.is-error { border-left: 3px solid currentColor; padding-left: 12px; }
.form-download-link { display: inline-block; padding: 10px 0; text-decoration: underline; font-weight: 700; }
button[type="submit"]:disabled { opacity: 0.65; cursor: default; }
.form-honeypot { display: none !important; }

.footer-language { display: flex; justify-content: center; padding: 16px 24px; }
.language-toggle { flex-wrap: wrap; justify-content: center; }
.language-toggle a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* em, not rem: the note must stay subordinate to whatever it annotates.
   In a button (10.56px) an absolute 14px rendered larger than the label. */
.language-note { font-size: .875em; }

.nav-links .language-note { font-size: inherit; letter-spacing: 0; }

.hero-content, .hero-image { min-width: 0; }
@media (max-width: 768px) {
  html[lang="fr-CA"] #hero .hero-content h1 {
    font-size: clamp(2.25rem, 11vw, 3rem);
    overflow-wrap: break-word;
  }
}
