/* =========================================================
   I4PL Redesign Design System
   Brand palette extracted from live YourMembership CSS:
     #00b0ad teal primary, #004d4b dark teal, #f7941e orange CTA, #a5df41 green accent
   Typography: matches their h1-h6 scale (32/29/26/22/18/15),
   body raised to 16px minimum for WCAG AA + Glen CLAUDE.md hard rule.
   ========================================================= */

:root {
  /* I4PL brand */
  --i4-teal:        #00b0ad;
  --i4-teal-dark:   #004d4b;
  --i4-teal-deep:   #003a38;
  --i4-orange:      #f7941e;
  --i4-orange-dark: #d97a0a;
  --i4-green:       #a5df41;

  /* Neutrals */
  --ink:        #0b1f1f;     /* body text, 14:1 on white */
  --ink-soft:   #1f3a3a;     /* secondary text */
  --ink-mute:   #4a5e5e;     /* muted text, still WCAG AA */
  --line:       #d8e3e3;
  --line-soft:  #ebf0f0;
  --paper:      #ffffff;
  --paper-warm: #fafbf9;
  --paper-deep: #f3f6f5;

  /* Type scale - I4PL heading sizes preserved, body floated to WCAG-compliant */
  --fs-h1: 2.25rem;   /* 36px - bumped from their 32px for hero impact */
  --fs-h2: 1.875rem;  /* 30px */
  --fs-h3: 1.5rem;    /* 24px */
  --fs-h4: 1.25rem;   /* 20px */
  --fs-h5: 1.125rem;  /* 18px */
  --fs-h6: 1rem;      /* 16px */
  --fs-body: 1.0625rem;  /* 17px - above 16px minimum */
  --fs-lead: 1.25rem;    /* 20px */
  --fs-small: 0.9375rem; /* 15px - smallest allowed */

  /* Spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* Radii + shadow */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 50, 50, .06);
  --shadow-md: 0 8px 24px rgba(0, 60, 60, .08);
  --shadow-lg: 0 20px 50px rgba(0, 60, 60, .14);

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur-fast: 150ms;
  --dur-med: 280ms;
}

/* =========================================================
   Reset + base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: subpixel-antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--i4-teal-dark); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--i4-orange-dark); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--i4-orange);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  color: var(--i4-teal-deep);
  line-height: 1.2;
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); text-transform: uppercase; letter-spacing: 0.08em; color: var(--i4-teal); }

p { margin: 0 0 var(--sp-4); max-width: 70ch; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }

/* Skip link for keyboard users */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--i4-teal-deep); color: #fff; padding: 12px 20px;
  z-index: 1000; font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; }

/* =========================================================
   Layout primitives
   ========================================================= */
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 48px); margin-inline: auto; }
.section { padding-block: var(--sp-9); }
.section-tight { padding-block: var(--sp-7); }
@media (max-width: 720px) {
  .section { padding-block: var(--sp-7); }
  .section-tight { padding-block: var(--sp-6); }
  :root {
    --fs-h1: 2rem;     /* 32px on mobile */
    --fs-h2: 1.625rem; /* 26px */
    --fs-h3: 1.375rem; /* 22px */
  }
}

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;  /* 13px exception - eyebrow micro-label, balanced by tracking */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--i4-orange-dark);
  margin-bottom: var(--sp-3);
}

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-bar {
  display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem);
  min-height: 72px;
  padding-block: .65rem;
}
.brand { display: flex; align-items: center; gap: var(--sp-3); }
.brand-logo { height: 43px; width: auto; }
.nav { display: flex; gap: clamp(.4rem, 1.2vw, 1rem); margin-left: auto; align-items: center; }
.nav-link, .nav-menu-toggle { font: inherit; font-size: .875rem; font-weight: 600; color: var(--ink-soft); padding: .7rem .35rem; border: 0; background: transparent; cursor: pointer; white-space: nowrap; }
.nav-link, .nav-menu-toggle { border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link.is-active, .nav-menu-toggle:hover, .nav-menu-toggle.is-active { color: var(--i4-teal-deep); border-bottom-color: var(--i4-orange); }
.nav-menu { position: relative; }
.nav-menu-toggle span { display: inline-block; margin-left: .18rem; color: var(--i4-orange-dark); font-size: 1rem; transition: transform var(--dur-fast) var(--ease); }
.nav-menu.is-open .nav-menu-toggle span { transform: rotate(180deg); }
.nav-menu-panel { display: none; position: absolute; top: 100%; left: -.75rem; z-index: 100; min-width: 14.5rem; padding: .45rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--i4-orange); box-shadow: 0 15px 32px rgba(0, 58, 56, .14); }
.nav-menu-panel a { display: block; padding: .7rem .8rem; color: var(--ink-soft); font-size: .875rem; font-weight: 500; line-height: 1.3; }
.nav-menu-panel a:hover, .nav-menu-panel a:focus-visible { background: var(--paper-deep); color: var(--i4-teal-deep); }
.nav-menu:hover .nav-menu-panel, .nav-menu:focus-within .nav-menu-panel, .nav-menu.is-open .nav-menu-panel { display: block; }
.lang-switch {
  display: flex; gap: 2px; margin-left: .2rem;
  font-size: .75rem; font-weight: 700;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 2px;
}
.lang-switch a {
  padding: 5px 9px; border-radius: var(--r-pill);
  color: var(--ink-mute); transition: all var(--dur-fast) var(--ease);
}
.lang-switch a.is-active {
  background: var(--i4-teal-deep); color: #fff;
}
.cta-nav {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: .62rem .85rem; border-radius: var(--r-sm);
  background: transparent; color: var(--i4-teal-deep) !important;
  font-weight: 700; font-size: .8125rem; letter-spacing: .025em;
  border: 1.5px solid var(--i4-teal-deep);
}
.cta-nav:hover { background: var(--i4-teal-deep); color: #fff !important; }

.nav-toggle { display: none; }
@media (max-width: 1120px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 72px); overflow-y: auto;
    flex-direction: column; background: #fff; padding: 1rem 1.5rem 1.5rem;
    border-bottom: 3px solid var(--i4-orange); align-items: stretch; gap: 0; box-shadow: 0 18px 35px rgba(0, 58, 56, .12);
  }
  .nav.is-open { display: flex; }
  .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center; justify-content: center;
    background: transparent; border: 1.5px solid var(--i4-teal-deep); color: var(--i4-teal-deep);
    padding: .58rem .82rem; border-radius: var(--r-sm); cursor: pointer; font: inherit; font-size: .8125rem; font-weight: 700;
  }
  .nav-link, .nav-menu-toggle { width: 100%; padding: .8rem 0; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav-menu-panel { position: static; min-width: 0; padding: 0 0 .45rem; border: 0; box-shadow: none; background: transparent; }
  .nav-menu:hover .nav-menu-panel { display: none; }
  .nav-menu.is-open .nav-menu-panel, .nav-menu:focus-within .nav-menu-panel { display: block; }
  .nav-menu-panel a { padding: .6rem 0 .6rem 1rem; font-size: .9375rem; }
  .lang-switch { align-self: flex-start; margin: 1rem 0 .45rem; }
  .cta-nav { align-self: flex-start; margin-top: .4rem; }
}
@media (max-width: 540px) { .nav-bar { min-height: 66px; } .brand-logo { height: 36px; } .nav { max-height: calc(100vh - 66px); padding-inline: 1.25rem; } }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 1rem; line-height: 1;
  border: 2px solid transparent; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--i4-orange); color: #fff; }
.btn-primary:hover { background: var(--i4-orange-dark); color: #fff; }
.btn-secondary { background: var(--i4-teal); color: #fff; }
.btn-secondary:hover { background: var(--i4-teal-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--i4-teal-dark); }
.btn-ghost:hover { background: var(--i4-teal-dark); color: #fff; }
.btn-light { background: #fff; color: var(--i4-teal-deep); }
.btn-light:hover { background: var(--paper-warm); }

.btn-arrow::after { content: '→'; font-size: 1.1em; transition: transform var(--dur-fast) var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background: var(--paper-warm);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  align-items: center; gap: var(--sp-8);
  padding-block: var(--sp-8) var(--sp-9);
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: var(--sp-6) var(--sp-7); }
}
.hero-copy h1 {
  font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.05;
}
.hero-copy h1 em {
  font-style: normal; color: var(--i4-teal); position: relative;
}
.hero-copy h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 6px; background: var(--i4-orange); border-radius: 3px; opacity: .9;
}
.hero-copy .lead { margin-top: var(--sp-4); margin-bottom: var(--sp-6); }
.hero-ctas { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: var(--sp-6); margin-top: var(--sp-7);
  padding-top: var(--sp-5); border-top: 1px solid var(--line);
}
.hero-stat { line-height: 1.2; }
.hero-stat strong {
  display: block; font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2rem; font-weight: 700; color: var(--i4-teal-deep);
}
.hero-stat span {
  display: block; font-size: 0.9375rem; color: var(--ink-mute); margin-top: 2px;
}
.hero-figure {
  position: relative;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 11;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 50, 50, .12) 100%);
  pointer-events: none;
}
.hero-tag {
  position: absolute; bottom: var(--sp-4); left: var(--sp-4);
  background: rgba(0, 30, 30, .82); color: #fff;
  font-size: 0.8125rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
}

/* =========================================================
   Pillar block (4 things we do)
   ========================================================= */
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5);
  margin-top: var(--sp-7);
}
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-5);
  transition: transform var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
  display: flex; flex-direction: column;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--i4-teal);
  box-shadow: var(--shadow-md);
}
.pillar.is-feature {
  background: linear-gradient(155deg, var(--i4-teal-deep), var(--i4-teal-dark));
  color: #fff; border-color: transparent;
}
.pillar.is-feature h3 { color: #fff; }
.pillar.is-feature p { color: rgba(255, 255, 255, .85); }
.pillar-icon {
  width: 48px; height: 48px; margin-bottom: var(--sp-4);
  background: var(--i4-teal); color: #fff;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.pillar.is-feature .pillar-icon { background: var(--i4-orange); }
.pillar h3 {
  font-size: 1.25rem; margin-bottom: var(--sp-3);
}
.pillar p { font-size: 1rem; margin-bottom: var(--sp-5); color: var(--ink-soft); }
.pillar a { margin-top: auto; font-weight: 600; color: var(--i4-orange-dark); }
.pillar.is-feature a { color: var(--i4-orange); }
.pillar a::after { content: ' →'; }

/* =========================================================
   Section headers
   ========================================================= */
.section-head { max-width: 720px; margin-bottom: var(--sp-7); }
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head p { color: var(--ink-soft); font-size: var(--fs-lead); }

/* Two-column feature block */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-8); align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-figure {
  border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}
.split-figure img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Cards (events, blog, etc.)
   ========================================================= */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5);
}
.card-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }
.responsive-two-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); }
@media (max-width: 640px) { .responsive-two-grid { grid-template-columns: 1fr; } }
.card {
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-figure { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-deep); }
.card-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card:hover .card-figure img { transform: scale(1.04); }
.card-body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.card-meta {
  display: flex; gap: var(--sp-3); font-size: 0.8125rem;
  color: var(--i4-teal-dark); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: var(--sp-3);
}
.card-meta .dot::before { content: '•'; margin-right: 8px; color: var(--line); }
.card-meta .dot:first-child::before { display: none; }
.card h3 { font-size: 1.25rem; margin-bottom: var(--sp-3); }
.card p { font-size: 0.9375rem; color: var(--ink-soft); margin-bottom: var(--sp-4); flex: 1; }
.card-foot a { font-weight: 600; color: var(--i4-orange-dark); }
/* Buttons inside card footers must keep button colors, not link colors */
.card-foot .btn-primary, .card-foot .btn-primary:hover { color: #fff; }
.card-foot .btn-secondary, .card-foot .btn-secondary:hover { color: #fff; }
.card-foot .btn-ghost { color: var(--i4-teal-dark); }
.card-foot .btn-ghost:hover { color: #fff; }

/* Benefit rows with real I4PL icons */
.benefit-row { display: flex; gap: var(--sp-4); align-items: flex-start; }
.benefit-row img { width: 56px; height: 56px; flex: 0 0 auto; }
.benefit-row h3 { font-size: 1.125rem; margin-bottom: var(--sp-2); }
.benefit-row p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; }

/* =========================================================
   Bands
   ========================================================= */
.band-teal {
  background: linear-gradient(155deg, var(--i4-teal-deep), var(--i4-teal-dark));
  color: #fff;
}
.band-teal h2, .band-teal h3, .band-teal h4, .band-teal h5, .band-teal h6 { color: #fff; }
.band-teal p, .band-teal .lead { color: rgba(255, 255, 255, .85); }
.band-teal a { color: var(--i4-orange); }
.band-paper { background: var(--paper-warm); }
.band-deep { background: var(--paper-deep); }

/* CTA band */
.cta-band {
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--i4-teal-deep), var(--i4-teal-dark) 70%, var(--i4-orange-dark));
  color: #fff; padding: var(--sp-8);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-6); align-items: center;
}
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: var(--sp-7) var(--sp-5); } }
.cta-band h2 { color: #fff; margin-bottom: var(--sp-3); }
.cta-band p { color: rgba(255, 255, 255, .88); margin: 0; max-width: 50ch; }
.cta-band .btns { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .cta-band .btns { justify-content: flex-start; } }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--i4-teal-deep);
  color: rgba(255, 255, 255, .88);
  padding: var(--sp-9) 0 var(--sp-5);
  font-size: var(--fs-small);
}
/* Every footer link must be readable on the dark field */
.site-footer a { color: rgba(255, 255, 255, .92); }
.site-footer a:hover { color: var(--i4-orange); }
/* The wordmark logo is teal+magenta on transparent; give it a white chip */
.foot-logo-chip {
  display: inline-block; background: #fff;
  padding: 12px 18px; border-radius: var(--r-md);
}
.foot-logo-chip img { height: 42px; width: auto; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-7);
}
@media (max-width: 920px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { color: #fff; }
.foot-brand p { color: rgba(255, 255, 255, .8); max-width: 38ch; margin-top: var(--sp-3); }
.foot-brand .bilingual { font-size: 0.8125rem; margin-top: var(--sp-4); color: rgba(255, 255, 255, .65); font-style: italic; }

.foot-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--i4-orange); margin-bottom: var(--sp-4);
  font-weight: 700;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.foot-col a { color: rgba(255, 255, 255, .88); font-size: 0.9375rem; }
.foot-col a:hover { color: var(--i4-orange); }

.foot-contact { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-5); font-size: 0.9375rem; color: rgba(255, 255, 255, .88); }
.foot-contact .line { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact strong { color: #fff; font-weight: 600; min-width: 64px; }

.foot-social { display: flex; gap: 10px; margin-top: var(--sp-4); }
.foot-social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%; color: #fff;
  transition: all var(--dur-fast) var(--ease);
}
.foot-social a:hover { background: var(--i4-orange); border-color: var(--i4-orange); color: #fff; transform: translateY(-2px); }
.foot-social svg { width: 18px; height: 18px; }

.foot-newsletter {
  margin-top: var(--sp-4);
  display: flex; flex-wrap: wrap; gap: 8px;
}
.foot-newsletter input {
  flex: 1; padding: 12px 16px;
  border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06); color: #fff;
  font-size: 0.9375rem; font-family: inherit;
}
.foot-newsletter input::placeholder { color: rgba(255, 255, 255, .55); }
.foot-newsletter input:focus { outline: 2px solid var(--i4-orange); outline-offset: 2px; }
.foot-newsletter button {
  background: var(--i4-orange); color: #fff;
  border: none; border-radius: var(--r-pill);
  padding: 12px 22px; font-weight: 600; font-size: 0.9375rem;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.foot-newsletter button:hover { background: var(--i4-orange-dark); }
.newsletter-consent, .newsletter-status, .foot-newsletter .cf-turnstile { width: 100%; }
.newsletter-consent { color: rgba(255, 255, 255, .82); font-size: .8125rem; line-height: 1.4; }
.newsletter-consent input { width: auto; margin-right: .4rem; accent-color: var(--i4-orange); }
.newsletter-status { min-height: 1.25rem; margin: .25rem 0 0; color: #b8eee9; font-size: .875rem; }
.newsletter-status.is-error { color: #ffd2c7; }
.newsletter-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
@media (max-width: 520px) { .foot-newsletter { flex-direction: column; } .foot-newsletter input, .foot-newsletter button { width: 100%; } }

.foot-base {
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-4);
  font-size: 0.8125rem; color: rgba(255, 255, 255, .6);
}
.foot-base a { color: rgba(255, 255, 255, .75); }
.foot-base a:hover { color: var(--i4-orange); }
.foot-base nav { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* =========================================================
   Community grid (real I4PL event photos)
   ========================================================= */
.community-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 160px;
  gap: var(--sp-3);
}
.community-cell {
  position: relative; overflow: hidden;
  border-radius: var(--r-md); margin: 0;
  box-shadow: var(--shadow-sm);
}
.community-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.community-cell:hover img { transform: scale(1.05); }
.community-cell figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 14px 12px;
  background: linear-gradient(0deg, rgba(0, 30, 30, .82) 0%, transparent 100%);
  color: #fff; font-size: 0.8125rem; font-weight: 500;
  opacity: 0; transform: translateY(8px);
  transition: all var(--dur-med) var(--ease);
}
.community-cell:hover figcaption,
.community-cell:focus-within figcaption { opacity: 1; transform: translateY(0); }

/* Mosaic layout: featured cells span more */
.community-cell:nth-child(1) { grid-column: span 6; grid-row: span 2; }
.community-cell:nth-child(2) { grid-column: span 6; grid-row: span 2; }
.community-cell:nth-child(3) { grid-column: span 4; grid-row: span 2; }
.community-cell:nth-child(4) { grid-column: span 4; grid-row: span 2; }
.community-cell:nth-child(5) { grid-column: span 4; grid-row: span 2; }
.community-cell:nth-child(6) { grid-column: span 12; grid-row: span 2; }

@media (max-width: 920px) {
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .community-cell:nth-child(n) { grid-column: span 1; grid-row: span 2; }
  .community-cell:nth-child(6) { grid-column: span 2; grid-row: span 2; }
}

/* =========================================================
   People grid (board + team, real headshots with built-in ring)
   ========================================================= */
.person-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6) var(--sp-5);
}
@media (max-width: 960px) { .person-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .person-grid { grid-template-columns: repeat(2, 1fr); } }
.person { margin: 0; text-align: center; }
.person img { width: 100%; max-width: 220px; height: auto; margin-inline: auto; }
.person figcaption { margin-top: var(--sp-3); line-height: 1.35; }
.person figcaption strong { display: block; color: var(--i4-teal-deep); font-size: 1.0625rem; }
.person figcaption span { display: block; color: var(--ink-mute); font-size: 0.9375rem; margin-top: 2px; }

/* =========================================================
   Misc utilities
   ========================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Print + reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   EVENTS — calendar list view
   ========================================================= */
.hero-compact {
  padding-block: var(--sp-8) var(--sp-6);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
}
.hero-compact h1 { margin-top: var(--sp-2); }
.hero-compact .lead { margin-top: var(--sp-3); max-width: 720px; }

.events-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.event-filter {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 150ms var(--ease);
}
.event-filter:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}
.event-filter.is-active {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #fff;
}

.events-list {
  display: grid;
  gap: var(--sp-4);
}

.event-card {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: var(--sp-5);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: var(--sp-5) var(--sp-5);
  transition: border-color 150ms var(--ease), transform 150ms var(--ease), box-shadow 150ms var(--ease);
}
.event-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 60, 60, 0.08);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-dark));
  color: #fff;
  border-radius: 12px;
  padding: 14px 12px;
  min-width: 88px;
  text-align: center;
}
.event-date-month {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.event-date-day {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}

.event-body { min-width: 0; }
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.event-format,
.event-chapter {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.event-format-webinar {
  background: rgba(0, 176, 173, 0.12);
  color: var(--teal-deep);
}
.event-format-in-person {
  background: rgba(247, 148, 30, 0.14);
  color: #a35b0a;
}
.event-chapter {
  background: var(--paper-deep);
  color: var(--ink-soft);
}
.event-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin: 0 0 4px;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.event-sub {
  font-size: 0.9375rem;
  color: var(--ink-mute);
  margin: 0;
}

.event-cta { flex-shrink: 0; }

.events-foot {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-mute);
  font-size: 0.9375rem;
}
.events-foot a {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .event-card {
    grid-template-columns: 76px 1fr;
    gap: var(--sp-4);
    padding: var(--sp-4);
  }
  .event-cta {
    grid-column: 1 / -1;
    margin-top: var(--sp-3);
  }
  .event-cta .btn { width: 100%; justify-content: center; }
  .event-date { min-width: 76px; padding: 12px 10px; }
  .event-date-day { font-size: 1.875rem; }
  .event-title { font-size: 1.0625rem; }
}

.events-stamp {
  margin-top: var(--sp-2);
  font-size: 0.8125rem;
  color: var(--ink-mute);
  font-style: italic;
}
.events-stamp span { color: var(--ink-soft); font-style: normal; font-weight: 600; }

/* =========================================================
   CHAPTERS PAGE
   ========================================================= */
.chapter-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5); margin-bottom: var(--sp-8);
}
@media (max-width: 760px) { .chapter-stats { grid-template-columns: repeat(2, 1fr); } }
.chapter-stat {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-5);
  text-align: center;
}
.chapter-stat strong {
  display: block; font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2.5rem; font-weight: 700; color: var(--i4-teal-deep); line-height: 1;
}
.chapter-stat span {
  display: block; margin-top: var(--sp-3); font-size: 0.9375rem;
  color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}

.province-group { margin-bottom: var(--sp-8); }
.province-header {
  display: flex; align-items: baseline; gap: var(--sp-4);
  border-bottom: 2px solid var(--i4-teal-deep);
  padding-bottom: var(--sp-3); margin-bottom: var(--sp-5);
}
.province-header h3 {
  margin: 0; font-size: 1.5rem; color: var(--i4-teal-deep);
}
.province-header .count {
  font-size: 0.875rem; color: var(--ink-mute); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}

.chapter-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4);
}
@media (max-width: 920px) { .chapter-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .chapter-grid { grid-template-columns: 1fr; } }

.chap-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.chap-card:hover {
  border-color: var(--i4-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.chap-card h4 {
  margin: 0; font-size: 1.125rem; color: var(--i4-teal-deep);
}
.chap-card .chap-counts {
  display: flex; gap: var(--sp-4); font-size: 0.875rem; color: var(--ink-mute);
  border-top: 1px solid var(--line-soft); padding-top: var(--sp-3); margin-top: auto;
}
.chap-card .chap-counts strong { color: var(--i4-teal-deep); font-weight: 700; }
.chap-card a.chap-link {
  font-weight: 600; color: var(--i4-orange-dark); font-size: 0.9375rem;
}
.chap-card a.chap-link::after { content: ' →'; }

/* =========================================================
   CERTIFIED DIRECTORY
   ========================================================= */
.cert-big-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5); margin-bottom: var(--sp-7);
}
@media (max-width: 720px) { .cert-big-stats { grid-template-columns: 1fr; } }
.cert-big-stat {
  background: linear-gradient(155deg, var(--i4-teal-deep), var(--i4-teal-dark));
  color: #fff;
  padding: var(--sp-6); border-radius: var(--r-lg);
  position: relative; overflow: hidden;
}
.cert-big-stat .label {
  font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--i4-orange); font-weight: 700;
}
.cert-big-stat .num {
  display: block; font-family: 'Source Serif 4', Georgia, serif;
  font-size: 4rem; font-weight: 700; color: #fff; line-height: 1;
  margin: var(--sp-3) 0;
}
.cert-big-stat .sub {
  font-size: 0.9375rem; color: rgba(255, 255, 255, 0.85);
}

.cert-table-wrap {
  background: var(--paper); border-radius: var(--r-lg);
  border: 1px solid var(--line); overflow: hidden;
}
table.cert-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9375rem;
}
table.cert-table th, table.cert-table td {
  padding: 14px 18px; text-align: left;
}
table.cert-table th {
  background: var(--paper-warm); color: var(--i4-teal-deep);
  font-weight: 700; font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
}
table.cert-table td { border-bottom: 1px solid var(--line-soft); }
table.cert-table tr:last-child td { border-bottom: none; }
table.cert-table tr:hover td { background: var(--paper-deep); }
table.cert-table td.num, table.cert-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.cert-table td.name { font-weight: 600; color: var(--i4-teal-deep); }
@media (max-width: 720px) {
  table.cert-table th:nth-child(2), table.cert-table td:nth-child(2) { display: none; }
}

.notice {
  background: var(--paper-warm); border-left: 4px solid var(--i4-orange);
  padding: var(--sp-5) var(--sp-5); border-radius: var(--r-md);
  margin: var(--sp-6) 0;
}
.notice h4 {
  margin: 0 0 var(--sp-2); font-size: 1.0625rem; color: var(--i4-teal-deep);
}
.notice p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }

/* =========================================================
   PORTRAIT GRADIENT RINGS  (Board + Team — matches POC look)
   ========================================================= */
.person img {
  display: block;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  padding: 3px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--i4-teal) 0%, var(--i4-orange-dark) 75%, var(--i4-orange) 100%) border-box;
  border: 3px solid transparent;
  margin-inline: auto;
  transition: transform var(--dur-med) var(--ease);
}
.person:hover img { transform: translateY(-3px) scale(1.02); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 760px) {
  .testimonials { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
}
.testi-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: var(--sp-5);
  align-items: center;
}
@media (max-width: 540px) {
  .testi-row { grid-template-columns: 1fr; }
  .testi-avatar { margin-inline: auto; }
}
.testi-card {
  background: #fff;
  border-left: 4px solid var(--i4-teal);
  padding: var(--sp-6) var(--sp-5) var(--sp-5) var(--sp-7);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.testi-card::before {
  content: '\201C';
  position: absolute;
  top: 4px; left: 14px;
  font-size: 3.5rem; line-height: 1;
  color: var(--ink-mute);
  font-family: Georgia, serif;
  opacity: 0.5;
}
.testi-card blockquote {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 var(--sp-3);
  padding-top: var(--sp-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.testi-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--i4-teal-deep);
  font-size: 0.9375rem;
}
.testi-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  padding: 3px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--i4-teal) 0%, var(--i4-orange-dark) 75%, var(--i4-orange) 100%) border-box;
  border: 3px solid transparent;
}

/* =========================================================
   COMPACT CALENDAR WIDGET (homepage sidebar)
   ========================================================= */
.cal-widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}
.cal-widget-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--i4-teal-deep);
}
.cal-widget-head h3 {
  margin: 0; font-size: 1.0625rem;
  color: var(--i4-teal-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}
.cal-widget-head a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--paper-deep);
  color: var(--ink-mute);
  padding: 4px 12px;
  border-radius: 999px;
}
.cal-widget-head a:hover { background: var(--i4-teal); color: #fff; }
.cal-list { list-style: none; padding: 0; margin: 0; }
.cal-item {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line-soft);
  border-left: 3px solid var(--i4-orange);
  padding-left: var(--sp-4);
  margin-bottom: 0;
}
.cal-item:last-child { border-bottom: none; }
.cal-item .date {
  display: block;
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--i4-teal-deep);
  font-size: 0.9375rem;
  margin-bottom: 2px;
}
.cal-item .title {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.cal-item a {
  color: inherit;
  display: block;
}
.cal-item a:hover .title { color: var(--i4-teal-deep); }

/* =========================================================
   INSTAGRAM PREVIEW CARD (link out, no script)
   ========================================================= */
.ig-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.ig-card-head {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4);
  border-bottom: 1px solid var(--line-soft);
}
.ig-card-head .ig-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #f7941e, #e63946 50%, #00b0ad);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.ig-card-head .handle {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--i4-teal-deep);
}
.ig-card-head .followers {
  font-size: 0.8125rem;
  color: var(--ink-mute);
  margin-left: auto;
}
.ig-card-head .visit-btn {
  margin-left: var(--sp-3);
  background: var(--i4-teal);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  font-weight: 600;
}
.ig-card-head .visit-btn:hover { background: var(--i4-teal-dark); color: #fff; }
.ig-card-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--paper-deep);
}
.ig-card-body img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.ig-card-foot {
  padding: var(--sp-3) var(--sp-4);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8125rem;
  color: var(--ink-mute);
  border-top: 1px solid var(--line-soft);
}
.ig-card-foot a { font-weight: 600; color: var(--i4-teal-deep); }

/* =========================================================
   HOME SIDEBAR LAYOUT (calendar + ig side by side with content)
   ========================================================= */
.home-sidebar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

/* Contact form */
.contact-form { margin-top: var(--sp-8); padding: clamp(1.5rem, 4vw, 3rem); background: #fff; border: 1px solid var(--line); border-radius: 1.25rem; box-shadow: 0 18px 45px rgba(0, 58, 56, .10); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.field { margin-bottom: var(--sp-5); }
.field label { display: block; margin-bottom: .5rem; color: var(--ink); font-weight: 700; }
.field .optional, .field-help { color: var(--ink-mute); font-size: .875rem; font-weight: 400; }
.field-help { margin: .5rem 0 0; }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .9rem; border: 1px solid #8ca6a4; border-radius: .45rem; color: var(--ink); background: #fff; font: inherit; }
.field textarea { resize: vertical; min-height: 10rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(0, 176, 173, .28); outline-offset: 2px; border-color: var(--teal); }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5rem; margin: var(--sp-4) 0 0; color: #006d69; font-weight: 600; }
.form-status.is-error { color: #a52714; }
.contact-form button[disabled] { cursor: wait; opacity: .65; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.person-bio { margin: 0; text-align: center; }
.person-bio summary { cursor: pointer; list-style: none; }
.person-bio summary::-webkit-details-marker { display: none; }
.person-bio summary strong { display: inline-block; color: var(--i4-teal-deep); font-size: 1.0625rem; border-bottom: 1px solid transparent; }
.person-bio summary:hover strong, .person-bio summary:focus-visible strong { color: var(--i4-orange-dark); border-bottom-color: currentColor; }
.person-bio summary span { display: block; color: var(--ink-mute); font-size: .9375rem; margin-top: 2px; }
.person-bio-copy { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--line-soft); text-align: left; }
.person-bio-copy p { margin: .65rem 0 0; color: var(--ink-mute); font-size: .9375rem; line-height: 1.55; }
.faq-item { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { cursor: pointer; color: var(--i4-teal-deep); font-weight: 700; padding-right: 2rem; position: relative; }
.faq-item summary::after { content: '+'; position: absolute; right: .25rem; top: -.2rem; color: var(--i4-orange-dark); font-size: 1.4rem; font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { max-width: 70ch; margin: .85rem 0 .1rem; color: var(--ink-soft); }
@media (min-width: 920px) {
  .home-sidebar-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
}
