:root {
  --bg: #f5f2ee;
  --dark: #171719;
  --charcoal: #24242a;
  --muted: #686670;
  --line: #ded9d2;
  --white: #ffffff;
  --red: #d71920;
  --blue: #1f5ea8;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
}

img,
picture {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 20px;
  background: rgba(245, 242, 238, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease;
}

.logo-link {
  display: block;
  width: 175px;
  margin: 0 auto 12px;
  transition: width 0.3s ease, margin 0.3s ease;
}

.logo {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: gap 0.3s ease, font-size 0.3s ease;
}

.site-header.scrolled {
  padding: 8px 20px;
}

.site-header.scrolled .logo-link {
  width: 100px;
  margin-bottom: 6px;
}

.site-header.scrolled .nav {
  gap: 8px 12px;
  font-size: 0.82rem;
}

section[id] {
  scroll-margin-top: 118px;
}

.nav a {
  text-decoration: none;
}

.nav-cta {
  color: var(--blue);
}

.hero,
.section,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 32px;
  padding: 54px 0 68px;
}

.hero-image img,
.about img,
.case-feature img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.eyebrow,
.section-kicker,
.case-tag {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 14vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

h2 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 9vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.18rem;
}

.button-row {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--red);
}

.button.secondary {
  color: var(--dark);
  border: 1px solid var(--line);
  background: var(--white);
}

.section {
  padding: 62px 0;
}

.dark {
  width: 100%;
  max-width: none;
  padding: 62px 20px;
  color: var(--white);
  background: var(--charcoal);
}

.dark > * {
  width: min(var(--max), 100%);
  margin-left: auto;
  margin-right: auto;
}

.dark p {
  color: #e6e1da;
}

.trusted-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.trusted-logos img,
.case-logo {
  width: 100%;
  max-height: 82px;
  object-fit: contain;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.event-grid,
.flow-grid {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.event-grid article,
.flow-grid span {
  padding: 22px;
  color: var(--dark);
  background: var(--white);
  border-radius: 20px;
}

.event-grid p {
  color: var(--muted);
}

.flow p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.1rem;
}

.flow-grid span {
  font-weight: 900;
}

.case-studies {
  display: grid;
  gap: 26px;
}

.case-feature {
  display: grid;
  gap: 22px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.case-copy {
  display: grid;
  align-content: start;
}

.case-logo {
  width: 170px;
  margin-bottom: 20px;
}

.case-feature h3 {
  font-size: clamp(1.7rem, 6vw, 3rem);
}

.case-feature p {
  color: var(--muted);
}

.case-feature blockquote {
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--dark);
  border-left: 4px solid var(--red);
  font-size: 1rem;
}

.case-feature cite {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.why {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.about {
  display: grid;
  gap: 28px;
  align-items: center;
}

.about p,
.faq p,
.contact p {
  color: var(--muted);
}

details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.contact {
  text-align: left;
}

.narrow {
  max-width: 820px;
}

.page-hero {
  min-height: 55vh;
}

.cards.three {
  display: grid;
  gap: 24px;
}

.card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.cta-section {
  padding: 80px 20px;
}

.cta-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 28px;
  text-align: center;
  background: var(--charcoal);
  color: var(--white);
  border-radius: 28px;
}

.cta-box p {
  color: rgba(255,255,255,.78);
}

@media (min-width: 760px) {
  .cards.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.network-quote {
  margin: 48px 0;
  padding: 0 0 0 28px;
  border-left: 4px solid var(--red);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--dark);
  max-width: 900px;
}

/* ==========================
   Footer Network
========================== */

.site-footer {
  width: 100%;
  margin-top: 80px;
  padding: 70px 20px 30px;
  background: var(--charcoal);
  color: rgba(255,255,255,.82);
  border-top: none;
}

.site-footer .container {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.footer-network {
  text-align: center;
}

.footer-network h3 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
}

.footer-network p {
  max-width: 760px;
  margin: 0 auto 50px;
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  line-height: 1.7;
}

.footer-sites {
  display: grid;
  gap: 24px;
}

.footer-card {
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: center;

  min-height: 230px;
  padding: 34px;

  text-align: left;
  text-decoration: none;

  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;

  transition:
    transform .25s ease,
    border-color .25s ease,
    background .25s ease;
}

.footer-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,.06);
}

.footer-card:nth-child(1):hover {
  border-color: rgba(31,94,168,.55);   /* Toronto Blue */
}

.footer-card:nth-child(2):hover {
  border-color: rgba(215,25,32,.55);   /* Muskoka Red */
}

.footer-card:nth-child(3):hover {
  border-color: rgba(233,181,55,.55);  /* Kawartha Gold */
}

.footer-card img {
  position: absolute;
  inset: 0;
  margin: auto;

  width: 180px;
  height: auto;

  opacity: .08;

  pointer-events: none;
  user-select: none;
}

.footer-card strong,
.footer-card span {
  position: relative;
  z-index: 2;
}

.footer-card strong {
  display: block;
  margin-bottom: 14px;

  color: var(--white);
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.footer-card span {
  max-width: 260px;

  color: rgba(255,255,255,.72);
  font-size: 1.15rem;
  line-height: 1.45;
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.10);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,.55);
  font-size: .95rem;
}

@media (min-width: 768px) {

  .footer-sites {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 767px) {

  .footer-card {
    min-height: 190px;
    padding: 28px;
  }

  .footer-card img {
    width: 145px;
    opacity: .08;
  }

  .footer-card strong {
    font-size: 1.6rem;
  }

  .footer-card span {
    font-size: 1rem;
    max-width: 220px;
  }

}

@media (min-width: 720px) {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
  }

  .logo-link {
    width: 160px;
    margin: 0;
  }

  .nav {
    justify-content: flex-end;
  }

  .site-header.scrolled {
    padding: 8px 32px;
  }

  .site-header.scrolled .logo-link {
    width: 110px;
    margin: 0;
  }

  .site-header.scrolled .nav {
    gap: 10px 14px;
    font-size: 0.86rem;
  }

  section[id] {
    scroll-margin-top: 82px;
  }

  .button-row {
    display: flex;
  }

  .trusted-logos {
    grid-template-columns: repeat(3, 1fr);
  }

  .event-grid,
  .flow-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .case-feature {
    grid-template-columns: 1fr 1fr;
    padding: 32px;
  }

  .case-feature:nth-of-type(even) picture {
    order: 2;
  }

  .about {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .dark {
    padding: 88px 32px;
  }
}

section[id] {
  scroll-margin-top: 170px;
}

@media (min-width: 720px) {
  section[id] {
    scroll-margin-top: 90px;
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    min-height: 78vh;
  }

  .trusted-logos {
    grid-template-columns: repeat(6, 1fr);
  }
}