/* ==========================================================================
   AVENUE COUNSELLING avenuecounselling.ca
   Design system + components
   Brand colours sampled directly from the logo:
     Blue  #1182CE   (figure)
     Green #4B9637   (leaves / "AVENUE" wordmark)
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* Brand */
  --blue:        #1182CE;
  --blue-600:    #0F74B8;
  --blue-700:    #0B5F99;
  --blue-800:    #084C7C;
  --blue-900:    #063553;
  --blue-050:    #EAF4FC;
  --blue-100:    #D2E8F8;

  --green:       #4B9637;
  --green-600:   #428631;
  --green-700:   #367028;
  --green-800:   #2B591F;
  --green-050:   #EEF6EA;
  --green-100:   #DCEDD4;

  /* Neutrals, warm, so the clinical edge comes off */
  --ink:         #12293A;
  --ink-2:       #3A5265;
  --ink-3:       #64798A;
  --ink-4:       #92A4B1;
  --line:        #E2E9EE;
  --line-soft:   #EFF3F6;

  --white:       #FFFFFF;
  --cream:       #FAF7F1;
  --cream-2:     #F5EFE4;
  --mist:        #F2F8FC;
  --sage:        #F1F7ED;

  /* Semantic */
  --bg:          var(--white);
  --text:        var(--ink);
  --muted:       var(--ink-2);

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9063rem;
  --fs-base: 1rem;
  --fs-md:   clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  --fs-lg:   clamp(1.1875rem, 0.5vw + 1.05rem, 1.375rem);
  --fs-xl:   clamp(1.375rem, 0.9vw + 1.15rem, 1.75rem);
  --fs-2xl:  clamp(1.625rem, 1.6vw + 1.2rem, 2.25rem);
  --fs-3xl:  clamp(2rem, 2.6vw + 1.3rem, 3rem);
  --fs-4xl:  clamp(2.375rem, 4vw + 1.3rem, 4rem);
  --fs-5xl:  clamp(2.75rem, 5.2vw + 1.2rem, 4.75rem);

  /* Space */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 2.5rem;   --sp-8: 3rem;
  --sp-9: 4rem;     --sp-10: 5rem;    --sp-11: 6.5rem;  --sp-12: 8rem;

  --section-y: clamp(4rem, 8vw, 7.5rem);
  --gutter:    clamp(1.125rem, 4vw, 2.5rem);
  --maxw:      1200px;
  --maxw-text: 68ch;

  /* Radii */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 22px;  --r-xl: 32px;  --r-pill: 999px;

  /* Elevation, tinted with brand blue, never neutral grey */
  --sh-xs: 0 1px 2px rgba(10, 47, 76, .06);
  --sh-sm: 0 2px 8px rgba(10, 47, 76, .06), 0 1px 2px rgba(10, 47, 76, .04);
  --sh-md: 0 6px 20px rgba(10, 47, 76, .08), 0 2px 6px rgba(10, 47, 76, .04);
  --sh-lg: 0 16px 44px rgba(10, 47, 76, .11), 0 4px 12px rgba(10, 47, 76, .05);
  --sh-xl: 0 28px 70px rgba(10, 47, 76, .15), 0 8px 20px rgba(10, 47, 76, .06);

  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --header-h: 84px;
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-synthesis-weight: none;
}
/* overflow-x:hidden turns body into a scroll container, which breaks position:sticky
   on iOS Safari. overflow:clip clips the same way without that side effect. */
@supports (overflow: clip) {
  body { overflow-x: clip; }
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
ul, ol { padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: 'SOFT' 28, 'WONK' 1, 'opsz' 48;
  text-wrap: balance;
}
h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); line-height: 1.25; }
h4 { font-size: var(--fs-lg); line-height: 1.3; }
p  { text-wrap: pretty; }

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 2000;
  background: var(--blue-700); color: #fff; padding: 12px 20px;
  border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   3. LAYOUT PRIMITIVES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }
.container--wide   { max-width: 1340px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--cream { background: var(--cream); }
.section--mist  { background: var(--mist); }
.section--sage  { background: var(--sage); }
.section--ink   { background: var(--blue-900); color: #D9E7F1; }
.section--ink h2, .section--ink h3 { color: #fff; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.flow > * + * { margin-top: 1.1em; }
.text-center { text-align: center; }
.measure { max-width: var(--maxw-text); }
.measure-center { max-width: var(--maxw-text); margin-inline: auto; }

/* ==========================================================================
   4. SECTION HEADERS
   ========================================================================== */
.eyebrow {
  display: inline-flex; align-items: center;
  font-size: var(--fs-xs); font-weight: 650; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green-700);
  margin-bottom: var(--sp-4);
}
.eyebrow--center { justify-content: center; }
.eyebrow--blue { color: var(--blue-700); }
.section--ink .eyebrow { color: #8FD0A2; }

.section-head { margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head--center { text-align: center; max-width: 760px; margin-inline: auto; }
.section-head p {
  font-size: var(--fs-md); color: var(--muted); margin-top: var(--sp-4);
  max-width: 62ch;
}
.section-head--center p { margin-inline: auto; }

.title-accent { color: var(--blue-700); font-style: italic; }
.title-accent--green { color: var(--green-700); font-style: italic; }

/* Hand-drawn underline under a word */
.underline-swish { position: relative; display: inline-block; white-space: nowrap; }
.underline-swish svg {
  position: absolute; left: 0; right: 0; bottom: -.16em; width: 100%; height: .34em;
  overflow: visible; pointer-events: none;
}
.underline-swish path {
  fill: none; stroke: var(--green); stroke-width: 5.5; stroke-linecap: round;
  stroke-dasharray: 420; stroke-dashoffset: 420;
  transition: stroke-dashoffset 1.1s var(--ease-out) .25s;
}
.is-revealed .underline-swish path, .underline-swish.is-drawn path { stroke-dashoffset: 0; }

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem; padding: 0.95rem 1.65rem;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .005em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out),
              background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
  box-shadow: 0 2px 10px rgba(17, 130, 206, .22);
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--green-600), var(--blue-600));
  opacity: 0; transition: opacity .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(17, 130, 206, .32); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .3s var(--ease-out); }
.btn:hover svg.icon-arrow { transform: translateX(4px); }

.btn--green { --btn-bg: var(--green); box-shadow: 0 2px 10px rgba(75, 150, 55, .24); }
.btn--green:hover { box-shadow: 0 10px 26px rgba(75, 150, 55, .34); }
.btn--green::after { background: linear-gradient(120deg, var(--blue-600), var(--green-600)); }

.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--blue-800); --btn-bd: var(--blue-100);
  box-shadow: none;
}
.btn--outline:hover { --btn-fg: #fff; --btn-bd: transparent; box-shadow: 0 10px 26px rgba(17,130,206,.25); }

.btn--ghost {
  --btn-bg: rgba(255,255,255,.9); --btn-fg: var(--blue-800); --btn-bd: rgba(255,255,255,.7);
  backdrop-filter: blur(8px); box-shadow: var(--sh-sm);
}
.btn--ghost:hover { --btn-fg: #fff; }

.btn--lg { padding: 1.1rem 2.1rem; font-size: var(--fs-base); }
.btn--sm { padding: .7rem 1.25rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: var(--fs-sm); color: var(--blue-700);
  text-decoration: none;
}
.text-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.text-link:hover { color: var(--green-700); }
.text-link:hover svg { transform: translateX(4px); }

/* ==========================================================================
   6. HEADER / NAV
   ========================================================================== */
.topbar {
  background: var(--blue-900); color: #BBD5E6;
  font-size: var(--fs-xs); letter-spacing: .01em;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap; min-height: 40px; padding-block: .45rem; text-align: center;
}
.topbar a { color: #BBD5E6; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; opacity: .8; }
.topbar__tag { display: inline-flex; align-items: center; gap: .45rem; color: #8FD0A2; font-weight: 600; }
.topbar__dot { width: 7px; height: 7px; border-radius: 50%; background: #63C97F; box-shadow: 0 0 0 0 rgba(99,201,127,.6); animation: pulse-dot 2.4s infinite; }
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(99,201,127,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(99,201,127,0); }
  100% { box-shadow: 0 0 0 0 rgba(99,201,127,0); }
}

/* Fixed at the top of the viewport from the first pixel to the last — it never moves, and
   nothing toggles it, so there is no moment where it could be caught mid-change. This is
   why the dark .topbar sits AFTER the header in the markup: it scrolls away underneath.
   Two more things here exist to stop mobile browsers painting the bar half drawn, which
   is what kept cutting the logo in two mid-scroll. Both were tried and kept:
     - A solid background, NO backdrop-filter. The blur snapshot goes stale and the page
       behind shows through the top of the bar. To bring the frosted look back, restore
       the rgba() background plus backdrop-filter: blur(14px) saturate(1.6) — the
       artifact comes back with it.
     - translateZ(0), so the bar is composited as one piece rather than in tiles.
   body's matching padding-top is right below, and the two must stay in step. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
  transform: translateZ(0);
  backface-visibility: hidden;
}
/* The header is out of the flow, so the page starts below it. +1px for its bottom border. */
body { padding-top: calc(var(--header-h) + 1px); }
.site-header.is-stuck {
  box-shadow: 0 4px 24px rgba(10,47,76,.08);
  border-bottom-color: var(--line-soft);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; flex: none; }
/* One height at every scroll position — the mark no longer shrinks when the bar pins.
   Animating a layout property inside the bar is more of what left the logo half painted. */
.brand img { height: 52px; width: auto; }

.nav__links { display: flex; align-items: center; gap: clamp(.25rem, 1.2vw, 1rem); list-style: none; }
.nav__links a {
  position: relative; display: block; padding: .6rem .85rem;
  font-size: var(--fs-sm); font-weight: 550; color: var(--ink-2);
  text-decoration: none; border-radius: var(--r-sm);
  transition: color .22s var(--ease);
}
.nav__links a::after {
  content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .28rem; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--green), var(--blue));
  transform: scaleX(0); transform-origin: left; transition: transform .34s var(--ease-out);
}
.nav__links a:hover { color: var(--blue-800); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--blue-800); font-weight: 650; }

.nav__cta { display: flex; align-items: center; gap: .6rem; flex: none; }

.nav__toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  align-items: center; justify-content: center; flex: none;
  border: 1px solid var(--line); background: #fff; transition: background .2s;
}
.nav__toggle:hover { background: var(--mist); }
.nav__toggle span {
  display: block; position: relative; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: background .2s var(--ease);
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px;
  border-radius: 2px; background: var(--ink);
  transition: transform .38s var(--ease-out), top .28s var(--ease);
}
.nav__toggle span::before { top: -6.5px; }
.nav__toggle span::after  { top: 6.5px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed; inset: 0 0 0 auto; width: min(85vw, 380px); z-index: 1000;
  background: #fff; padding: 1.15rem var(--sp-6) var(--sp-7);
  box-shadow: -24px 0 60px rgba(10,47,76,.18);
  transform: translateX(105%); transition: transform .48s var(--ease-out);
  display: flex; flex-direction: column; gap: .25rem; overflow-y: auto;
}
.nav__drawer.is-open { transform: translateX(0); }
/* Drawer header: logo on the left, close button on the right. */
.nav__drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-bottom: 1rem; margin-bottom: .35rem; border-bottom: 1px solid var(--line-soft);
}
/* Reset the generic .nav__drawer a styling — the brand is a logo, not a menu row. */
.nav__drawer__head .nav__drawer__brand {
  display: flex; align-items: center; flex: none;
  padding: 0; border-bottom: 0; justify-content: flex-start;
  opacity: 0; transform: translateX(18px);
  transition: opacity .4s var(--ease), transform .4s var(--ease-out);
}
.nav__drawer.is-open .nav__drawer__head .nav__drawer__brand { opacity: 1; transform: translateX(0); transition-delay: .06s; }
.nav__drawer__brand img { height: 40px; width: auto; }

.nav__close {
  flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  opacity: 0; transform: scale(.9);
  transition: opacity .3s var(--ease), transform .3s var(--ease-out), background .2s;
}
.nav__close svg { width: 20px; height: 20px; }
.nav__close:hover { background: var(--mist); }
.nav__drawer.is-open .nav__close { opacity: 1; transform: scale(1); transition-delay: .12s; }
.nav__drawer a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem .25rem; font-family: var(--font-display); font-size: 1.3rem;
  font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateX(18px);
  transition: opacity .4s var(--ease) , transform .4s var(--ease-out), color .2s;
}
.nav__drawer.is-open a { opacity: 1; transform: translateX(0); }
.nav__drawer.is-open a:nth-of-type(1) { transition-delay: .10s; }
.nav__drawer.is-open a:nth-of-type(2) { transition-delay: .16s; }
.nav__drawer.is-open a:nth-of-type(3) { transition-delay: .22s; }
.nav__drawer.is-open a:nth-of-type(4) { transition-delay: .28s; }
.nav__drawer.is-open a:nth-of-type(5) { transition-delay: .34s; }
.nav__drawer.is-open a:nth-of-type(6) { transition-delay: .40s; }
.nav__drawer a:hover, .nav__drawer a[aria-current="page"] { color: var(--blue-700); }
.nav__drawer a svg { width: 16px; height: 16px; opacity: .35; }
/* The generic drawer-link rule must not repaint the CTA button */
.nav__drawer a.btn {
  margin-top: var(--sp-6); opacity: 0; transform: translateY(12px);
  transition: opacity .45s var(--ease) .46s, transform .45s var(--ease-out) .46s,
              box-shadow .28s var(--ease-out), background-color .25s var(--ease);
  font-family: var(--font-body); font-size: var(--fs-base); font-weight: 600;
  color: #fff; border-bottom: 0; justify-content: center; padding: 1.05rem 1.6rem;
}
.nav__drawer a.btn:hover { color: #fff; }
.nav__drawer.is-open .btn { opacity: 1; transform: translateY(0); }
.nav__drawer__foot { margin-top: auto; padding-top: var(--sp-6); font-size: var(--fs-sm); color: var(--ink-3); }
.nav__drawer__foot a { font-family: var(--font-body); font-size: var(--fs-sm); border: 0; padding: .3rem 0; display: block; color: var(--blue-700); font-weight: 600; }

.nav__scrim {
  position: fixed; inset: 0; z-index: 999; background: rgba(6,53,83,.45);
  backdrop-filter: blur(3px); opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.nav__scrim.is-open { opacity: 1; visibility: visible; }

body.nav-open { overflow: hidden; }

/* ==========================================================================
   7. HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(17,130,206,.13), transparent 62%),
    radial-gradient(820px 520px at 2% 108%, rgba(75,150,55,.14), transparent 60%),
    linear-gradient(180deg, #FCFDFE 0%, var(--cream) 100%);
}
.hero__grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}

.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .48rem 1rem .48rem .55rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,.85); border: 1px solid var(--blue-100);
  box-shadow: var(--sh-sm); font-size: var(--fs-xs); font-weight: 600;
  color: var(--blue-800); margin-bottom: var(--sp-5); backdrop-filter: blur(6px);
}
.hero__badge b {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--green-050); color: var(--green-700);
  padding: .2rem .6rem; border-radius: var(--r-pill); font-weight: 700;
  font-size: .75rem; letter-spacing: .02em;
}

.hero h1 { margin-bottom: var(--sp-5); }
.hero__lead {
  font-size: var(--fs-lg); color: var(--muted); max-width: 54ch;
  margin-bottom: var(--sp-7); line-height: 1.62;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); align-items: center; }

.hero__trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.4rem;
  margin-top: var(--sp-7); padding-top: var(--sp-6);
  border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-3);
}
.hero__trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__trust svg { width: 17px; height: 17px; color: var(--green); flex: none; }

/* Hero visual, layered organic shapes + logo mark */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero__blob {
  position: absolute; border-radius: 50%; filter: blur(6px); opacity: .55;
  animation: morph 16s ease-in-out infinite alternate;
}
.hero__blob--1 {
  width: min(78%, 420px); aspect-ratio: 1;
  background: linear-gradient(140deg, rgba(17,130,206,.30), rgba(17,130,206,.06));
  top: 2%; left: 4%;
  border-radius: 58% 42% 46% 54% / 48% 52% 48% 52%;
}
.hero__blob--2 {
  width: min(62%, 330px); aspect-ratio: 1;
  background: linear-gradient(140deg, rgba(75,150,55,.32), rgba(75,150,55,.05));
  bottom: 4%; right: 2%; animation-duration: 20s; animation-delay: -4s;
  border-radius: 44% 56% 60% 40% / 56% 44% 56% 44%;
}
@keyframes morph {
  0%   { border-radius: 58% 42% 46% 54% / 48% 52% 48% 52%; transform: translate(0,0) rotate(0deg) scale(1); }
  50%  { border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%; transform: translate(10px,-14px) rotate(6deg) scale(1.05); }
  100% { border-radius: 52% 48% 38% 62% / 42% 58% 42% 58%; transform: translate(-8px,10px) rotate(-5deg) scale(.98); }
}

.hero__card {
  position: relative; z-index: 2; width: min(100%, 430px);
  background: rgba(255,255,255,.72); backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.9); border-radius: var(--r-xl);
  box-shadow: var(--sh-xl); padding: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
}
.hero__card img { width: min(62%, 210px); margin: 0 auto var(--sp-5); animation: float-soft 7s ease-in-out infinite; }
@keyframes float-soft {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-13px) rotate(1.2deg); }
}
.hero__card__quote {
  font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.45;
  color: var(--blue-900); font-style: italic; margin-bottom: var(--sp-4);
}
.hero__card__by { font-size: var(--fs-xs); font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--green-700); }

.hero__stats {
  position: relative; z-index: 3; display: flex; gap: .75rem; justify-content: center;
  margin-top: -1.35rem; flex-wrap: wrap;
}
.hero__pill {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  box-shadow: var(--sh-md); padding: .6rem 1.05rem;
  font-size: var(--fs-xs); font-weight: 650; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: .45rem;
}
.hero__pill b { color: var(--blue-700); font-size: var(--fs-sm); }
.hero__pill svg { width: 15px; height: 15px; color: var(--green); }

/* Floating leaves */
.leaves { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.leaf {
  position: absolute; width: 22px; height: 22px; opacity: 0;
  color: var(--green); animation: leaf-drift linear infinite;
}
@keyframes leaf-drift {
  0%   { transform: translate3d(0, -8vh, 0) rotate(0deg) scale(.8); opacity: 0; }
  10%  { opacity: .5; }
  90%  { opacity: .35; }
  100% { transform: translate3d(60px, 108vh, 0) rotate(340deg) scale(1.05); opacity: 0; }
}

/* Inner-page hero */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  padding-block: clamp(1.75rem, 3vw, 2.5rem) clamp(3rem, 5.5vw, 4.5rem);
  background:
    radial-gradient(900px 480px at 78% -20%, rgba(17,130,206,.14), transparent 60%),
    radial-gradient(700px 420px at 8% 120%, rgba(75,150,55,.13), transparent 58%),
    linear-gradient(180deg, #FBFDFE, var(--cream));
  border-bottom: 1px solid rgba(226,233,238,.7);
}
.page-hero h1 { font-size: var(--fs-4xl); margin-bottom: var(--sp-4); }
.page-hero p { font-size: var(--fs-md); color: var(--muted); max-width: 60ch; margin-inline: auto; }

/* ==========================================================================
   8. CARDS
   ========================================================================== */
.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 2.6vw, 2.1rem);
  box-shadow: var(--sh-xs); overflow: hidden; height: 100%;
  display: flex; flex-direction: column;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .35s var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(160deg, rgba(17,130,206,.055), rgba(75,150,55,.05) 55%, transparent 75%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.card > * { position: relative; }
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--blue-100); }
.card:hover::before { opacity: 1; }

.card__icon {
  width: 56px; height: 56px; border-radius: 16px; flex: none;
  display: grid; place-items: center; margin-bottom: var(--sp-5);
  background: linear-gradient(145deg, var(--blue-050), var(--green-050));
  border: 1px solid rgba(17,130,206,.12);
  transition: transform .45s var(--ease-out), background .4s var(--ease);
}
.card__icon svg { width: 27px; height: 27px; color: var(--blue-700); transition: color .35s var(--ease); }
.card:hover .card__icon { transform: rotate(-6deg) scale(1.07); background: linear-gradient(145deg, var(--blue), var(--green-600)); }
.card:hover .card__icon svg { color: #fff; }

.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.72; }
.card .text-link { margin-top: auto; padding-top: var(--sp-5); }

.card--num { padding-top: 2.6rem; }
.card__num {
  position: absolute; top: 1.1rem; right: 1.4rem;
  font-family: var(--font-display); font-size: 3.4rem; font-weight: 600;
  line-height: 1; color: var(--blue-050); z-index: 0;
  transition: color .4s var(--ease);
}
.card:hover .card__num { color: var(--green-100); }

/* Service card with accent bar */
.service-card { border-radius: var(--r-lg); }
.service-card::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--green));
  transform: scaleY(0); transform-origin: top;
  transition: transform .5s var(--ease-out);
}
.service-card:hover::after { transform: scaleY(1); }
.service-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--sp-4); }
.tag {
  font-size: .74rem; font-weight: 600; letter-spacing: .01em;
  padding: .3rem .7rem; border-radius: var(--r-pill);
  background: var(--blue-050); color: var(--blue-800); white-space: nowrap;
}
.tag--green { background: var(--green-050); color: var(--green-800); }

/* Detailed service block (services page) */
.service-block {
  display: grid; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
@media (min-width: 860px) { .service-block { grid-template-columns: 300px 1fr; } }
.service-block:first-of-type { border-top: 0; }
.service-block__aside { position: relative; }
@media (min-width: 860px) { .service-block__aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.service-block__badge {
  width: 78px; height: 78px; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--blue), var(--green-600));
  box-shadow: 0 12px 30px rgba(17,130,206,.26); margin-bottom: var(--sp-5);
}
.service-block__badge svg { width: 36px; height: 36px; color: #fff; }
.service-block h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-4); }
.service-block__body p { color: var(--muted); font-size: var(--fs-md); line-height: 1.76; }
.service-block__body p + p { margin-top: 1.05em; }

.checklist { list-style: none; display: grid; gap: .7rem; margin-top: var(--sp-6); }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.checklist svg { width: 20px; height: 20px; flex: none; color: var(--green); margin-top: 2px; }

/* Blog card */
.post-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-xs); text-decoration: none; color: inherit; height: 100%;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.post-card:hover { transform: translateY(-7px); box-shadow: var(--sh-lg); border-color: var(--blue-100); }
.post-card__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-050), var(--green-050));
}
.post-card__media svg.pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__cat {
  position: absolute; top: .85rem; left: .85rem; z-index: 2;
  background: rgba(255,255,255,.95); backdrop-filter: blur(6px);
  padding: .32rem .75rem; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue-800); box-shadow: var(--sh-xs);
}
.post-card__body { padding: clamp(1.25rem, 2.4vw, 1.75rem); display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-xs); color: var(--ink-4); margin-bottom: var(--sp-3); }
.post-card__meta span + span::before { content: '•'; margin-right: .5rem; }
.post-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); transition: color .25s; }
.post-card:hover h3 { color: var(--blue-700); }
.post-card p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.68; }
.post-card .text-link { margin-top: auto; padding-top: var(--sp-5); }

.post-card--featured { grid-column: 1 / -1; }
@media (min-width: 880px) {
  .post-card--featured { flex-direction: row; }
  .post-card--featured .post-card__media { flex: 0 0 46%; aspect-ratio: auto; }
  .post-card--featured .post-card__body { justify-content: center; padding: clamp(1.75rem, 3.5vw, 3rem); }
  .post-card--featured h3 { font-size: var(--fs-2xl); }
  .post-card--featured p { font-size: var(--fs-base); }
}

/* ==========================================================================
   9. FEATURE / SPLIT SECTIONS
   ========================================================================== */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  /* minmax(0,…) so a wide child (form controls, tables) can't push the track past the viewport */
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--reverse .split__media { order: 2; }
}
.split__media { position: relative; }

.portrait {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--sh-xl);
  background: linear-gradient(150deg, var(--blue-050), var(--green-050) 60%, var(--cream-2));
  display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__placeholder { text-align: center; padding: var(--sp-6); }
.portrait__placeholder .initials {
  font-family: var(--font-display); font-size: 4.5rem; font-weight: 600; line-height: 1;
  background: linear-gradient(135deg, var(--blue-700), var(--green-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: var(--sp-4);
}
.portrait__placeholder p { font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: .04em; }
.portrait::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(6,53,83,.30));
}
.portrait--plain::after { display: none; }

.portrait__tagcard {
  position: absolute; bottom: -22px; left: -18px; z-index: 3;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: 1rem 1.25rem; display: flex; align-items: center; gap: .85rem;
  border: 1px solid var(--line); max-width: 260px;
}
@media (max-width: 480px) { .portrait__tagcard { left: 0; right: 0; margin-inline: auto; bottom: -28px; } }
.portrait__tagcard .dot {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--green-050), var(--blue-050));
}
.portrait__tagcard svg { width: 20px; height: 20px; color: var(--green-700); }
.portrait__tagcard b { display: block; font-size: var(--fs-sm); color: var(--ink); line-height: 1.3; }
.portrait__tagcard span { font-size: var(--fs-xs); color: var(--ink-3); }

/* Decorative frame behind media */
.frame-deco { position: relative; }
.frame-deco::before {
  content: ''; position: absolute; inset: 22px -22px -22px 22px; z-index: -1;
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, var(--green-100), var(--blue-100));
  opacity: .65;
}
/* Keep the offset frame inside the viewport on narrow screens */
@media (max-width: 760px) {
  .frame-deco::before { inset: 14px 0 -14px 14px; }
}

/* ==========================================================================
   10. STATS
   ========================================================================== */
.stats { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.stat { text-align: center; padding: var(--sp-5) var(--sp-3); }
.stat__num {
  font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 600; line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--green-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: var(--sp-2);
}
.section--ink .stat__num { background: linear-gradient(135deg, #6FC3F5, #8FD0A2); -webkit-background-clip: text; background-clip: text; }
.stat__label { font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
.section--ink .stat__label { color: #A9C6D9; }

/* ==========================================================================
   11. MARQUEE (concerns we help with)
   ========================================================================== */
.marquee { overflow: hidden; padding-block: var(--sp-5); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: .75rem; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  padding: .6rem 1.15rem; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line);
  font-size: var(--fs-sm); font-weight: 550; color: var(--ink-2); box-shadow: var(--sh-xs);
}
.marquee__item::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.marquee__item:nth-child(even)::before { background: var(--blue); }

/* ==========================================================================
   12. PROCESS / STEPS
   ========================================================================== */
.steps { display: grid; gap: clamp(1.5rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); position: relative; }
.step { position: relative; text-align: center; padding: var(--sp-5) var(--sp-4); }
.step__ring {
  width: 76px; height: 76px; margin: 0 auto var(--sp-5); border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: #fff; border: 2px solid var(--blue-100);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--blue-700);
  box-shadow: var(--sh-sm); transition: all .4s var(--ease-out);
}
.step:hover .step__ring {
  background: linear-gradient(145deg, var(--blue), var(--green-600));
  border-color: transparent; color: #fff; transform: scale(1.08);
  box-shadow: 0 14px 32px rgba(17,130,206,.3);
}
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.step p { font-size: var(--fs-sm); color: var(--muted); }
.steps__line {
  display: none; position: absolute; top: 76px; left: 12%; right: 12%; height: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--blue-100) 0 8px, transparent 8px 16px);
}
@media (min-width: 1000px) { .steps__line { display: block; top: 76px; } }

/* ==========================================================================
   13. TESTIMONIALS
   ========================================================================== */
.tslider { position: relative; }
.tslider__viewport { overflow: hidden; }
.tslider__track { display: flex; transition: transform .68s var(--ease-out); }
.tslide { flex: 0 0 100%; padding-inline: .5rem; }
.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 3.25rem); box-shadow: var(--sh-md);
  text-align: center; max-width: 800px; margin-inline: auto; position: relative;
}
.quote-card__mark {
  font-family: var(--font-display); font-size: 5rem; line-height: .6; color: var(--blue-100);
  display: block; margin-bottom: var(--sp-3);
}
.quote-card p {
  font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.5;
  color: var(--ink); font-style: italic; margin-bottom: var(--sp-6);
}
.quote-card__who { font-size: var(--fs-sm); font-weight: 650; color: var(--blue-800); }
.quote-card__where { font-size: var(--fs-xs); color: var(--ink-4); margin-top: .15rem; }
.stars { display: flex; justify-content: center; gap: .2rem; margin-bottom: var(--sp-5); }
.stars svg { width: 18px; height: 18px; color: #E8A33D; }

.tslider__nav { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: var(--sp-6); }
.tslider__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; box-shadow: var(--sh-xs);
  transition: all .3s var(--ease);
}
.tslider__btn svg { width: 18px; height: 18px; color: var(--blue-800); }
.tslider__btn:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--sh-md); }
.tslider__btn:hover svg { color: #fff; }
.tslider__dots { display: flex; gap: 0; align-items: center; margin-inline: .6rem; }
/* The button carries a 24px touch target (WCAG 2.5.8); the visible dot is the pseudo-element. */
.tslider__dot {
  width: 24px; height: 24px; padding: 0; display: grid; place-items: center;
  background: none; border: 0; transition: width .35s var(--ease);
}
.tslider__dot::before {
  content: ''; display: block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); transition: all .35s var(--ease);
}
.tslider__dot.is-active { width: 42px; }
.tslider__dot.is-active::before { width: 26px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--blue), var(--green)); }

.disclaimer-note {
  margin-top: var(--sp-6); text-align: center; font-size: var(--fs-xs);
  color: var(--ink-4); max-width: 60ch; margin-inline: auto;
}

/* ==========================================================================
   14. ACCORDION (FAQ)
   ========================================================================== */
.accordion { max-width: 820px; margin-inline: auto; display: grid; gap: .75rem; }
.acc-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.acc-item.is-open { border-color: var(--blue-100); box-shadow: var(--sh-md); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 1.35rem; text-align: left;
  font-size: var(--fs-md); font-weight: 600; color: var(--ink);
  font-family: var(--font-display); transition: color .25s;
}
.acc-trigger:hover { color: var(--blue-700); }
.acc-icon {
  position: relative;
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--blue-050); transition: background .4s var(--ease-out);
}
.acc-icon::before, .acc-icon::after {
  content: ''; position: absolute; width: 12px; height: 2px; border-radius: 2px; background: var(--blue-700);
  transition: transform .4s var(--ease-out), background .3s;
}
.acc-icon::after { transform: rotate(90deg); }
.acc-item.is-open .acc-icon { background: var(--blue); }
.acc-item.is-open .acc-icon::before, .acc-item.is-open .acc-icon::after { background: #fff; }
.acc-item.is-open .acc-icon::after { transform: rotate(0deg); }
.acc-panel { height: 0; overflow: hidden; transition: height .42s var(--ease-out); }
.acc-panel__inner { padding: 0 1.35rem 1.35rem; color: var(--muted); font-size: var(--fs-sm); line-height: 1.75; }

/* ==========================================================================
   15. CTA BAND
   ========================================================================== */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(2.25rem, 5vw, 4rem); text-align: center;
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 45%, var(--green-700) 130%);
  box-shadow: var(--sh-xl); color: #DCEAF4;
}
.cta-band::before, .cta-band::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.cta-band::before {
  width: 420px; height: 420px; top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(255,255,255,.13), transparent 70%);
}
.cta-band::after {
  width: 340px; height: 340px; bottom: -170px; left: -90px;
  background: radial-gradient(circle, rgba(143,208,162,.2), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: var(--fs-3xl); margin-bottom: var(--sp-4); }
.cta-band p { max-width: 58ch; margin: 0 auto var(--sp-7); font-size: var(--fs-md); color: #C6DDEC; }
.cta-band .btn--ghost { --btn-fg: var(--blue-800); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); justify-content: center; }

/* ==========================================================================
   16. FORMS
   ========================================================================== */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3.5vw, 2.75rem); box-shadow: var(--sh-lg);
}
.form-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); } }

.field { display: block; position: relative; }
.field > label {
  display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
  margin-bottom: .45rem;
}
.field .req { color: #C2453B; }
.field input, .field select, .field textarea {
  /* min-width:0 — a select sizes to its longest option and a textarea to its cols, which
     otherwise makes the whole card wider than a 320px screen */
  width: 100%; min-width: 0; padding: .9rem 1rem; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: #FCFDFE; color: var(--ink);
  font-size: var(--fs-sm); transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  font-family: inherit;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.65; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364798A' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.75rem; cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--blue-100); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(17,130,206,.13);
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: #D9534F; background: #FEF7F7;
}
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(217,83,79,.13); }
.field__error {
  display: none; font-size: var(--fs-xs); color: #C2453B; margin-top: .35rem;
  align-items: center; gap: .3rem;
}
.field.has-error .field__error { display: flex; }

.honeypot { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; overflow: hidden; }

.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.6; }
.consent input { width: 19px; height: 19px; flex: none; margin-top: 2px; accent-color: var(--blue); cursor: pointer; }

.form-status {
  display: none; align-items: flex-start; gap: .7rem; padding: 1rem 1.15rem;
  border-radius: var(--r-md); font-size: var(--fs-sm); line-height: 1.55;
}
.form-status.is-visible { display: flex; animation: pop-in .45s var(--ease-out); }
.form-status svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.form-status--ok   { background: var(--green-050); color: var(--green-800); border: 1px solid var(--green-100); }
.form-status--err  { background: #FEF3F2; color: #9A3129; border: 1px solid #FAD9D6; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.btn.is-loading { pointer-events: none; opacity: .82; }
.btn.is-loading .btn__label { opacity: .55; }
.spinner {
  display: none; width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn.is-loading .spinner { display: block; }
.btn.is-loading .icon-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   17. CONTACT INFO
   ========================================================================== */
.info-list { list-style: none; display: grid; gap: var(--sp-4); }
.info-item {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-xs); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s;
}
.info-item:hover { transform: translateX(4px); box-shadow: var(--sh-md); border-color: var(--blue-100); }
.info-item__icon {
  width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--blue-050), var(--green-050));
}
.info-item__icon svg { width: 21px; height: 21px; color: var(--blue-700); }
.info-item b { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .09em; color: var(--ink-4); font-weight: 650; margin-bottom: .2rem; }
.info-item > span:last-child { min-width: 0; }
/* The email address is one unbreakable token — let it wrap on narrow screens. */
.info-item a, .info-item span.val { font-size: var(--fs-md); color: var(--ink); text-decoration: none; font-weight: 550; overflow-wrap: anywhere; }
.info-item a:hover { color: var(--blue-700); }
.info-item small { display: block; font-size: var(--fs-xs); color: var(--ink-3); margin-top: .2rem; }

.province-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--sp-4); }
.province-chip {
  padding: .45rem .9rem; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 650;
  background: #fff; border: 1px solid var(--blue-100); color: var(--blue-800);
  display: inline-flex; align-items: center; gap: .4rem;
}
.province-chip svg { width: 13px; height: 13px; color: var(--green); }

/* ==========================================================================
   18. ARTICLE (blog post)
   ========================================================================== */
.article { max-width: 720px; margin-inline: auto; }
.article-hero {
  max-width: 920px; margin: 0 auto clamp(2rem, 4vw, 3.25rem);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg);
}
.article-hero img { display: block; width: 100%; height: auto; }
.article p { font-size: var(--fs-md); line-height: 1.85; color: var(--ink-2); }
.article > * + * { margin-top: 1.35em; }
.article h2 { font-size: var(--fs-2xl); margin-top: 2.2em; }
.article h3 { font-size: var(--fs-lg); margin-top: 1.8em; }
.article ul, .article ol { padding-left: 1.35rem; color: var(--ink-2); font-size: var(--fs-md); line-height: 1.8; }
.article li + li { margin-top: .5em; }
.article li::marker { color: var(--green); }
.article blockquote {
  border-left: 3px solid var(--green); padding: .35em 0 .35em 1.4rem;
  font-family: var(--font-display); font-style: italic; font-size: var(--fs-lg);
  color: var(--blue-900); line-height: 1.55;
}
.article strong { color: var(--ink); font-weight: 650; }
.article hr { border: 0; height: 1px; background: var(--line); margin-block: 2.5em; }

.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .5rem 1rem; font-size: var(--fs-sm); color: var(--ink-3); margin-top: var(--sp-5);
}
.article-meta .chip {
  background: var(--green-050); color: var(--green-800); font-weight: 650;
  padding: .25rem .7rem; border-radius: var(--r-pill); font-size: var(--fs-xs);
}

/* Reading progress bar */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 950; width: 0%;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width .1s linear;
}

/* ==========================================================================
   19. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--blue-900); color: #9FBDD1;
  padding-block: clamp(3rem, 6vw, 5rem) 0; position: relative; overflow: hidden;
}
.site-footer::before {
  content: ''; position: absolute; top: -180px; right: -140px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(17,130,206,.22), transparent 68%);
  pointer-events: none;
}
.footer__grid {
  display: grid; gap: clamp(2rem, 4vw, 3rem); position: relative;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1.3fr; } }

.footer__brand { display: flex; align-items: center; gap: .85rem; margin-bottom: var(--sp-5); text-decoration: none; }
.footer__brand img { height: 56px; width: auto; }
.footer__about { font-size: var(--fs-sm); line-height: 1.75; max-width: 40ch; color: #93B4CA; }

.footer h4 {
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: #fff; margin-bottom: var(--sp-4);
}
.footer__links { list-style: none; display: grid; gap: .6rem; }
.footer__links a {
  font-size: var(--fs-sm); color: #9FBDD1; text-decoration: none;
  display: inline-flex; align-items: center; gap: .45rem; transition: color .25s var(--ease), transform .25s var(--ease-out);
}
.footer__links a::before {
  content: ''; width: 0; height: 1px; background: #8FD0A2; transition: width .3s var(--ease-out);
}
.footer__links a:hover { color: #fff; }
.footer__links a:hover::before { width: 12px; }

.footer__contact { list-style: none; display: grid; gap: .9rem; }
.footer__contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-sm); }
.footer__contact svg { width: 17px; height: 17px; color: #8FD0A2; flex: none; margin-top: 3px; }
.footer__contact a { color: #9FBDD1; text-decoration: none; }
.footer__contact a:hover { color: #fff; }

.footer__note {
  margin-top: var(--sp-6); padding: 1rem 1.15rem; border-radius: var(--r-md);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  font-size: var(--fs-xs); line-height: 1.65; color: #A9C6D9;
}
.footer__note b { color: #fff; display: block; margin-bottom: .2rem; }

.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-block: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-4); font-size: var(--fs-xs); color: #7FA3BC;
}
.footer__bottom a { color: #9FBDD1; text-decoration: none; }
.footer__bottom a:hover { color: #fff; text-decoration: underline; }
.footer__social { display: flex; gap: .5rem; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  transition: all .3s var(--ease);
}
.footer__social svg { width: 17px; height: 17px; color: #BBD5E6; }
.footer__social a:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }
.footer__social a:hover svg { color: #fff; }

/* Affiliation / partner logos — light tiles so dark marks read on the navy footer */
.footer__partners { margin-top: var(--sp-6); display: grid; gap: var(--sp-5); }
.footer__partners-title {
  font-family: var(--font-body); font-size: .6875rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #8FD0A2; margin-bottom: .65rem;
}
.footer__partners-grid {
  list-style: none; display: grid; gap: .5rem;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}
.footer__partners-grid li {
  height: 58px; padding: .5rem .6rem; display: grid; place-items: center;
  background: #fff; border-radius: var(--r-sm);
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.footer__partners-grid li:hover { transform: translateY(-2px); box-shadow: 0 7px 16px rgba(0,0,0,.26); }
/* TIES ships with its own crimson field — tint the tile to match so it reads as one block */
.footer__partners-grid li.is-ties { background: #B0212E; }
.footer__partners-grid img {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 40px; object-fit: contain;
}

/* ==========================================================================
   20. FLOATING ACTIONS
   ========================================================================== */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem);
  width: 48px; height: 48px; border-radius: 50%; z-index: 880;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-lg);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: all .42s var(--ease-out);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 19px; height: 19px; color: var(--blue-800); transition: transform .3s var(--ease-out); }
.to-top:hover { background: var(--blue); border-color: var(--blue); }
.to-top:hover svg { color: #fff; transform: translateY(-2px); }

/* ==========================================================================
   21. SCROLL REVEAL
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* An element spans the content column, so a 32px sideways offset sticks out by
   (32px − gutter). The gutter is 4vw, so it only covers the offset above 800px wide;
   below that the page is wider than the phone, and mobile browsers respond by widening
   the layout viewport — which renders the whole site zoomed in. Reveal upward instead:
   same effect, and vertical overflow costs nothing. */
@media (max-width: 800px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(26px); }
}

[data-reveal-group] > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-reveal-group].is-revealed > * { opacity: 1; transform: none; }
[data-reveal-group].is-revealed > *:nth-child(1) { transition-delay: .04s; }
[data-reveal-group].is-revealed > *:nth-child(2) { transition-delay: .12s; }
[data-reveal-group].is-revealed > *:nth-child(3) { transition-delay: .20s; }
[data-reveal-group].is-revealed > *:nth-child(4) { transition-delay: .28s; }
[data-reveal-group].is-revealed > *:nth-child(5) { transition-delay: .36s; }
[data-reveal-group].is-revealed > *:nth-child(6) { transition-delay: .44s; }
[data-reveal-group].is-revealed > *:nth-child(7) { transition-delay: .52s; }
[data-reveal-group].is-revealed > *:nth-child(8) { transition-delay: .60s; }

/* ==========================================================================
   22. RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: flex; }
  .nav__cta .btn--phone { display: inline-flex; }
}
@media (min-width: 1001px) {
  .nav__drawer, .nav__scrim { display: none; }
}
@media (max-width: 600px) {
  :root { --header-h: 72px; }
  .brand img { height: 44px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .topbar__inner { font-size: .78rem; gap: .75rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ── Touch devices ─────────────────────────────────────────────────────────
   Phones and tablets only (pointer: coarse), so the mouse layout is untouched.
   Everything here is about the finger, not the screen width. */
@media (pointer: coarse) {
  /* iOS Safari zooms the whole page in when you focus a control smaller than
     16px, and never zooms back out. Every field on the contact form was 14.5px. */
  .field input, .field select, .field textarea { font-size: 16px; }

  /* A fingertip is about 44px across. These were all well under it. */
  .footer__links { gap: .15rem; }
  .footer__links a { min-height: 44px; }
  .footer__social a { width: 44px; height: 44px; }
  .tslider__dot { height: 44px; }
  .nav__drawer__foot a { display: flex; align-items: center; min-height: 44px; }
  .province-chip { min-height: 44px; }

  /* Padding cancelled by an equal negative margin: the hit area grows, the
     layout does not move. */
  .topbar a { padding-block: .6rem; margin-block: -.6rem; }
  .footer__contact a { display: inline-block; padding-block: .5rem; margin-block: -.5rem; }
}

/* ==========================================================================
   23. MOTION / PRINT
   ========================================================================== */
/* ==========================================================================
   17. Motion layer: hero choreography, photo reveal, button shine
   ========================================================================== */

/* Hero intro: badge, then the headline word by word, then lead/actions/trust */
.hero.is-intro .hero__badge,
.hero.is-intro .hero__lead,
.hero.is-intro .hero__actions,
.hero.is-intro .hero__trust {
  opacity: 0; transform: translateY(18px);
  transition: opacity .78s var(--ease-out), transform .78s var(--ease-out);
  will-change: opacity, transform;
}
.hero.is-intro h1 .w {
  display: inline-block; opacity: 0; transform: translateY(24px);
  transition: opacity .72s var(--ease-out), transform .72s var(--ease-out);
  will-change: opacity, transform;
}
.hero.is-intro.is-in .hero__badge,
.hero.is-intro.is-in .hero__lead,
.hero.is-intro.is-in .hero__actions,
.hero.is-intro.is-in .hero__trust,
.hero.is-intro.is-in h1 .w { opacity: 1; transform: none; }

/* Photos wipe up as they enter the viewport */
.img-anim img { clip-path: inset(0 0 100% 0); }
.img-anim--in img {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.05s var(--ease-out);
}

/* Light sweep across primary buttons on hover */
.btn::before {
  content: ''; position: absolute; z-index: -1;
  top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
.btn:hover::before { animation: btnShine .85s var(--ease-out); }
@keyframes btnShine {
  0%   { left: -60%; opacity: 0; }
  12%  { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
  .hero.is-intro .hero__badge, .hero.is-intro .hero__lead,
  .hero.is-intro .hero__actions, .hero.is-intro .hero__trust,
  .hero.is-intro h1 .w { opacity: 1 !important; transform: none !important; }
  .img-anim img, .img-anim--in img { clip-path: none !important; }
  .hero__blob { transform: none !important; }
  .btn:hover::before { animation: none !important; }
  .leaves { display: none; }
}

@media print {
  .site-header, .topbar, .to-top, .nav__drawer, .nav__scrim, .cta-band, .leaves { display: none !important; }
  /* No fixed header on paper, so no room reserved for one. */
  body { color: #000; background: #fff; padding-top: 0; }
  .section { padding-block: 1.5rem; }
  a { text-decoration: underline; }
}
