/* ============================================================
   /canada — a full-width marketing page built entirely inside this
   file, so it needs no template of its own. page.html renders the
   h1 and the byline above .pg-generic__body; everything else below
   is authored here, and this stylesheet lays all of it out.

   It ships in the page body on purpose: build.py's markdown mirror
   strips <style>, so none of this reaches llms.txt or the .md
   mirrors, and no other page on page.html loads it.

   Shared components come from main.css and are only positioned
   here: .eyebrow (§6), .moment-card, .btn, .faq-*, .cta (the
   closing cobalt card, same component _cta.html emits).
   ============================================================ */

/* ---------- Page shell: the standard full-bleed grid ----------
   Gutter | container | gutter, with the container split into two
   halves for the hero. A block sits in `content` by default; a
   band asks for `full` and reaches the viewport edges without
   negative margins or 100vw (which overflows by the width of a
   classic scrollbar). `display: contents` on the body lifts the
   authored blocks into this same grid, so the template's h1 and
   byline can be placed alongside them. */
.pg-generic {
  padding: 96px 0 0;
}
.pg-generic__inner {
  max-width: none;
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--container-padding), 1fr)
    [content-start] minmax(0, 532px) [gap-start] 56px [gap-end] minmax(0, 532px) [content-end]
    minmax(var(--container-padding), 1fr) [full-end];
  /* The photo spans rows 2 to 5 and is taller than the copy beside it. Without
     this, the slack is shared out across those rows and pushes the buttons down
     the page; row 4 takes all of it instead, so the copy stays together at the
     top and the space falls between the buttons and the byline. */
  grid-template-rows: auto auto auto 1fr auto;
}
.pg-generic__body { display: contents; }
.pg-generic__body > * { grid-column: content; }

/* ---------- Hero ----------
   Row 1 is the page title, which doubles as the cobalt eyebrow so
   the page keeps exactly one h1 and keeps "Rundoo in Canada" as
   its title tag. Rows 2 to 4 are the tagline, subhead and buttons
   on the left with the photo beside them, bottom-aligned, so the
   byline's hairline in row 5 starts exactly at the photo's bottom
   edge and the caption hangs beside it. */
.pg-generic__heading {
  grid-column: content;
  grid-row: 1;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin: 0 0 var(--space-lg);
}
.hero-title {
  grid-column: content-start / gap-start;
  grid-row: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.hero-sub {
  grid-column: content-start / gap-start;
  grid-row: 3;
  font-size: 18px;
  line-height: 1.58;
  color: var(--ink-2);
  margin: 22px 0 0;
}
.pg-generic__body > .hero-actions {
  grid-column: content-start / gap-start;
  grid-row: 4;
  align-self: start;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin: 18px 0 0;
}
/* The figure is `display: contents` so its photo and caption are
   grid items in their own right, one per row. */
.pg-generic__body > .hero-figure { display: contents; }
.hero-figure > a {
  grid-column: gap-end / content-end;
  grid-row: 2 / 5;
  align-self: end;
  display: block;
}
.hero-figure img,
.band-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-control);
}
/* Both store photos link to the Alpine story, so they lift a little on hover
   the way the cards do. */
.hero-figure > a,
.band-figure > a {
  border-radius: var(--radius-lg);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.hero-figure > a:hover,
.band-figure > a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -22px rgba(22, 19, 13, 0.30);
}
.hero-figure figcaption {
  grid-column: gap-end / content-end;
  grid-row: 5;
  margin: 10px 2px 0;
  font-size: 13px;
  color: var(--ink-3);
}
.pg-generic__byline {
  grid-column: content-start / gap-start;
  grid-row: 5;
  /* The band below starts where this row ends, so the byline carries the gap
     that keeps the rose edge off the headshot. */
  margin: 0 0 var(--space-2xl);
  align-self: start;
}

/* One button size across the page, the industry pillar hero's. */
.pg-generic__inner .btn {
  height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-md);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  box-shadow: var(--shadow-control);
}

/* ---------- Banded sections ----------
   The page alternates white and warm rose down the page, the same
   rhythm the rest of the site uses. A band is its own grid with
   one centred container-width column rather than auto margins on
   its children: a child that sets `margin: 0 0 24px` (every card
   grid, every h2) would blow those margins away and sit against
   the band's left padding instead of lining up with the white
   sections. Both kinds carry their own vertical padding, so the
   colours butt with no gap. */
.pg-generic__body > .band,
.pg-generic__body > .section {
  padding: var(--space-3xl) 0;
}
.pg-generic__body > .band {
  grid-column: full;
  display: grid;
  grid-template-columns: minmax(0, var(--container-max));
  justify-content: center;
  background: var(--paper-2);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}
.pg-generic__body > .band > :first-child,
.pg-generic__body > .section > :first-child { margin-top: 0; }
.pg-generic__body > .band > :last-child,
.pg-generic__body > .section > :last-child { margin-bottom: 0; }

/* Section headings are the site's section title, not the prose h2
   a reading-column page uses (.pillar-page .section-title). */
.pg-generic__body h2 {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-lg);
}

/* ---------- Opening band: statement, photo, copy ---------- */
.band .mission-statement {
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 22px;
}
.band-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
  margin-top: 36px;
}
.band-figure { margin: 0; }
.band-figure > a { display: block; }
.band-figure figcaption {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}
.band-copy p { font-size: 18px; line-height: 1.65; }
.band-copy p:last-of-type { margin-bottom: 0; }
.band-copy .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: var(--space-xl);
}

/* ---------- Card grids ----------
   All three use the shared .moment-card; only the grids live here.
   The numbered one runs three across, filled row by row; the
   partner one runs three across and two deep, filled column by
   column so each column is a pair. */
.pg-generic__body .cards,
.pg-generic__body .steps,
.pg-generic__body .partners {
  display: grid;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pg-generic__body .steps { grid-template-columns: repeat(3, 1fr); }
.pg-generic__body .cards { grid-template-columns: repeat(2, 1fr); }
.pg-generic__body .partners {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-auto-flow: column;
}
.pg-generic__body .cards > li,
.pg-generic__body .steps > li {
  margin: 0;
  padding: 18px 20px;
}
/* A partner card is a link to that partner's page, so the card itself is the
   anchor and opts into the shared card interaction (a.partner-card--linked in
   main.css) rather than reinventing a hover. */
.pg-generic__body .partners > li { margin: 0; display: flex; }
.partners .moment-card {
  width: 100%;
  padding: 18px 20px;
  color: inherit;
  text-decoration: none;
}
/* Fixed-height logo row, like .partner-card-logo on the partners index, so the
   names below line up whatever shape a logo is. */
.partner-logo-slot {
  height: 44px;
  display: flex;
  align-items: center;
  margin-bottom: var(--space-xs);
}
.partner-logo-slot img {
  max-height: 36px;
  max-width: min(100%, 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.pg-generic__body .cards p,
.pg-generic__body .steps p,
.pg-generic__body .partners p { margin: 0; }
/* The step number carries the sequence, so it sits a weight heavier
   than the shared .eyebrow scale .moment-who follows. */
.pg-generic__body .steps .moment-who { font-weight: 800; }
/* A cropped piece of real app UI under a card's text. These are
   fragments, not full screens, so they get the plain panel rather
   than the device frame of DESIGN_SYSTEM § 9, and `contain` inside
   a fixed 2:1 box holds the three cards level without cropping
   anything out of the shot. */
.moment-shot {
  display: block;
  width: 100%;
  margin-top: auto;
  padding-top: var(--space-md);
  aspect-ratio: 2 / 1;
  object-fit: contain;
  object-position: left bottom;
}

/* ---------- Closing CTA ----------
   The shared cobalt card from main.css; it only needs the full
   track here. */
.pg-generic__body > .cta { grid-column: full; }

/* ---------- Responsive ----------
   The grid unwinds into a plain stack, ordered the way the page
   reads rather than the order the template emits. */
@media (max-width: 767px) {
  .pg-generic { padding: 56px 0 0; }
  .pg-generic__inner { display: flex; flex-direction: column; }
  .pg-generic__heading { order: -4; padding: 0 var(--container-padding); }
  .hero-title { order: -3; font-size: clamp(30px, 7.2vw, 44px); padding: 0 var(--container-padding); }
  .hero-sub { order: -2; font-size: 17px; margin-top: 18px; padding: 0 var(--container-padding); }
  .pg-generic__body > .hero-actions { order: -1; padding: 0 var(--container-padding); }
  .hero-figure > a { order: 1; margin: 28px var(--container-padding) 0; }
  .hero-figure figcaption { order: 2; padding: 0 var(--container-padding); }
  .pg-generic__byline { order: 3; margin: 26px var(--container-padding) var(--space-xl); }
  .pg-generic__body > .band,
  .pg-generic__body > .section,
  .pg-generic__body > .cta { order: 4; }
  .pg-generic__body > .section { padding: var(--space-2xl) var(--container-padding); }
  .pg-generic__body > .band { padding: var(--space-2xl) var(--container-padding); }
  .pg-generic__body h2 { font-size: clamp(25px, 5.4vw, 34px); }
  .band .mission-statement { font-size: 26px; }
  .band-copy p { font-size: 17px; }
  .band-split { grid-template-columns: 1fr; gap: var(--space-lg); margin-top: 26px; }
  .pg-generic__body .steps,
  .pg-generic__body .cards { grid-template-columns: 1fr; }
  .pg-generic__body .partners {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }
  .pg-generic__inner .btn { padding: 0 22px; font-size: 16px; }
}
