/*
Theme Name: FirstCPR Custom
Version: 1.0
Author: FirstCPR
Description: Custom FirstCPR Theme
*/

:root {
  --navy: #09213e;
  --blue: #0a5db8;
  --blue-strong: #073f86;
  --blue-soft: #e9f3ff;
  --red: #d6223a;
  --red-dark: #ab1429;
  --teal: #008f83;
  --gold: #e2a51d;
  --ink: #172238;
  --muted: #66758c;
  --line: #d9e2ee;
  --paper: #ffffff;
  --mist: #f6f9fc;
  --shadow: 0 18px 50px rgba(9, 33, 62, 0.14);
  --radius: 8px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Never let an image or icon push the layout wider than the screen. */
img,
svg {
  max-width: 100%;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 999;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--navy);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  color: var(--paper);
  background: rgba(9, 33, 62, 0.64);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 8px 30px rgba(9, 33, 62, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  display: block;
  height: 38px;
  width: auto;
}

/* Logo sits on the dark translucent header over the hero: render it white.
   Once scrolled, the header turns white, so restore the original blue logo. */
.site-header .brand-logo {
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.site-header.is-scrolled .brand-logo {
  filter: none;
}

/* Footer sits on the dark navy background, so keep the logo white there too. */
.footer-brand .brand-logo {
  height: 46px;
  filter: brightness(0) invert(1);
}

.svg-icon {
  display: block;
  width: 1em;
  height: 1em;
}

.brand strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: currentColor;
  font-size: 0.74rem;
  line-height: 1.2;
  opacity: 0.72;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: currentColor;
  font-size: 0.92rem;
  font-weight: 700;
  opacity: 0.78;
}

.site-nav a:hover,
.site-nav a.is-active,
.site-nav .current-menu-item > a {
  background: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a.is-active,
.site-header.is-scrolled .site-nav .current-menu-item > a {
  color: var(--blue-strong);
  background: var(--blue-soft);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--red);
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(214, 34, 58, 0.28);
}

.header-cta:hover {
  background: var(--red-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.site-header.is-scrolled .nav-toggle {
  border-color: var(--line);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
  background: var(--navy);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.98) contrast(1.04);
}

.hero-media img:first-child {
  object-position: center 52%;
}

.hero-media img:nth-child(2) {
  object-position: center 42%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 24, 45, 0.9) 0%, rgba(7, 24, 45, 0.72) 42%, rgba(7, 24, 45, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 24, 45, 0.26) 0%, rgba(7, 24, 45, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: calc(var(--header-height) + 64px) 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffccd4;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: 4.6rem;
  line-height: 0.95;
}

.hero h1 {
  max-width: 980px;
  font-size: 4rem;
  line-height: 1.02;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 2.55rem;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.12rem;
  line-height: 1.25;
}

.hero-tagline {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 800;
}

.hero-copy {
  max-width: 700px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
  text-align: center;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button-primary:hover {
  background: var(--red-dark);
}

.button-secondary {
  color: var(--paper);
  background: var(--blue);
}

.button-secondary:hover {
  background: var(--blue-strong);
}

.button-ghost {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 30px;
  background: var(--paper);
}

.metric strong {
  color: var(--blue-strong);
  font-size: 2.15rem;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: 96px 0;
}

.section-shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 64px;
  align-items: start;
}

/* Text-only two-column sections (intro, about) have a short heading beside a
   taller body, which leaves the heading stranded at the top. Centering it
   vertically balances the whitespace. Image layouts keep their top alignment. */
.two-column:not(.media-layout) {
  align-items: center;
}

.intro-cta {
  margin-top: 24px;
}

.about-wordmark {
  display: block;
  width: min(360px, 100%);
  height: auto;
  margin: 18px 0 0;
}

/* Intro heading: accent word in a blue-to-red gradient. */
.intro-heading span {
  background: linear-gradient(90deg, var(--blue), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Inner-page header banner (sits under the fixed header on subpages). */
.page-banner {
  padding: calc(var(--header-height) + 70px) 0 64px;
  background: var(--navy);
  color: var(--paper);
}

.page-banner .eyebrow {
  color: #ffccd4;
}

.page-banner h1 {
  margin: 0 0 16px;
  font-size: 3rem;
  line-height: 1.06;
}

.page-banner p {
  max-width: 60ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}

/* ---- Community Safety Survey ---- */
.survey-shell {
  max-width: 760px;
}

.survey-intro {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.12rem;
}

.survey-form {
  display: grid;
  gap: 20px;
}

.survey-q {
  margin: 0;
  padding: 28px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 40px rgba(9, 33, 62, 0.06);
}

.survey-q legend {
  display: block;
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.32;
  white-space: normal;
}

.survey-q legend span {
  display: inline-block;
  color: var(--muted);
  font-weight: 600;
}

.survey-option {
  clear: both;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: #34455d;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

.survey-option + .survey-option {
  margin-top: 4px;
}

.survey-option:hover {
  background: var(--blue-soft);
}

.survey-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.survey-sublegend {
  margin: 14px 0 4px;
  color: var(--ink);
  font-weight: 700;
}

.survey-fields {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.survey-fields label {
  display: grid;
  gap: 6px;
  color: #34455d;
  font-size: 0.92rem;
  font-weight: 600;
}

.survey-fields input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.survey-submit {
  justify-self: start;
  margin-top: 4px;
}

/* CPR Need Assessment result card */
.survey-result {
  padding: 48px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 24px 64px rgba(9, 33, 62, 0.1);
  text-align: center;
}

.result-eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gauge {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
}

.gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-track {
  fill: none;
  stroke: #e6ecf3;
  stroke-width: 12;
}

.gauge-fill {
  fill: none;
  stroke: var(--blue);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s ease-out;
}

.gauge-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 2.7rem;
  font-weight: 800;
}

.result-category {
  margin: 0 0 12px;
  font-size: 1.8rem;
}

.result-explanation {
  max-width: 54ch;
  margin: 0 auto 28px;
  color: #34455d;
  font-size: 1.05rem;
}

.result-cta {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.result-cta-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
}

/* Color bands */
.survey-result.band-green .gauge-fill { stroke: #1f9d57; }
.survey-result.band-green .result-category { color: #1f9d57; }
.survey-result.band-yellow .gauge-fill { stroke: #e0a400; }
.survey-result.band-yellow .result-category { color: #b9860b; }
.survey-result.band-orange .gauge-fill { stroke: #e8731c; }
.survey-result.band-orange .result-category { color: #d2620f; }
.survey-result.band-red .gauge-fill { stroke: var(--red); }
.survey-result.band-red .result-category { color: var(--red); }

@media (max-width: 680px) {
  .survey-q {
    padding: 22px 18px 24px;
  }

  .survey-q legend {
    font-size: 1rem;
  }

  .survey-option {
    align-items: flex-start;
    padding: 10px;
  }

  .survey-option input {
    margin-top: 0.12em;
  }

  .survey-fields {
    grid-template-columns: 1fr;
  }
}

.lead-copy p,
.lead {
  color: #3f4f66;
  font-size: 1.08rem;
}

.lead-copy p:last-child,
.lead:last-child {
  margin-bottom: 0;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.about-highlights div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}

.about-highlights strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.about-highlights span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 54px;
}

.pillar {
  min-height: 178px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.pillar span {
  display: block;
  margin-bottom: 20px;
  color: var(--red);
  font-weight: 900;
}

.pillar strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.05rem;
}

.pillar p {
  margin-bottom: 0;
  color: var(--muted);
}

.services-section,
.ai-section,
.contact-section {
  background: var(--mist);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 40px rgba(9, 33, 62, 0.07);
}

.service-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue);
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-card p {
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 24px;
  color: #34455d;
  font-weight: 650;
}

.service-card li {
  position: relative;
  padding-left: 18px;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.service-card a {
  margin-top: auto;
  color: var(--blue-strong);
  font-weight: 900;
}

.media-band {
  background: var(--paper);
}

.media-layout {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
}

.media-layout.reverse {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.course-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.course-grid p {
  margin-bottom: 14px;
  color: var(--muted);
}

dl {
  margin: 0;
}

dt {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 0 0 10px;
  color: var(--muted);
}

.ssi-levels {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ssi-levels::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 32px;
  height: 2px;
  background: var(--line);
}

.ssi-levels article {
  position: relative;
  padding: 76px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.ssi-levels span {
  position: absolute;
  left: 22px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--blue);
  font-size: 0.92rem;
  font-weight: 900;
}

/* Certification ladder: Bronze → Silver → Gold → Platinum */
.ssi-levels .tier-bronze {
  background: #b5732e;
}

.ssi-levels .tier-silver {
  background: #8e99a6;
}

.ssi-levels .tier-gold {
  background: #d4a017;
  color: var(--navy);
}

.ssi-levels .tier-platinum {
  background: #4b5563;
}

/* Individuals page: softer blue progression instead of metal tiers. */
#ssi-individuals .tier-bronze {
  background: #6aa3dd;
  color: var(--paper);
}

#ssi-individuals .tier-silver {
  background: #2f7fc4;
  color: var(--paper);
}

#ssi-individuals .tier-gold {
  background: var(--blue);
  color: var(--paper);
}

#ssi-individuals .tier-platinum {
  background: var(--blue-strong);
  color: var(--paper);
}

.ssi-levels li,
.check-list li,
.benefits li {
  position: relative;
  padding-left: 26px;
  color: #34455d;
  font-weight: 650;
}

.ssi-levels li + li,
.check-list li + li,
.benefits li + li {
  margin-top: 10px;
}

.ssi-levels li::before,
.check-list li::before,
.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: inset 0 0 0 4px var(--paper);
  border: 1px solid rgba(0, 143, 131, 0.32);
}

.benefits {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 32px;
  margin-top: 30px;
  padding: 30px;
  border-left: 6px solid var(--teal);
  background: #f0fbfa;
  border-radius: var(--radius);
}

.benefits h3 {
  margin-bottom: 0;
}

.benefits ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.feature-list article {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.feature-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 28px 0 30px;
}

.partners-section {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: var(--navy);
}

.partner-bg {
  position: absolute;
  inset: 0;
}

.partner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  opacity: 0.42;
}

.partners-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 33, 62, 0.94), rgba(9, 33, 62, 0.62));
}

.partner-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.partners-section h2,
.partners-section h3 {
  color: var(--paper);
}

.partners-section p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
}

.partner-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 32px 0;
}

.partner-types article {
  min-height: 168px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.partner-types p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.about-section {
  background: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 54px;
  align-items: start;
}

address {
  display: grid;
  gap: 6px;
  margin-top: 30px;
  color: #3f4f66;
  font-style: normal;
}

address strong {
  color: var(--navy);
}

address a {
  color: var(--blue-strong);
  font-weight: 800;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 850;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd8e8;
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: var(--paper);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(10, 93, 184, 0.18);
  border-color: var(--blue);
}

.form-note {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #07182d;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.6fr));
  gap: 42px;
  padding: 52px 0;
}

.footer-brand {
  margin-bottom: 18px;
  color: var(--paper);
}

.site-footer p {
  max-width: 360px;
  margin-bottom: 0;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--paper);
  font-size: 0.94rem;
}

.site-footer a:not(.brand) {
  display: block;
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: var(--paper);
}

.footer-bottom {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto auto;
    gap: 14px;
  }

  .site-nav {
    position: fixed;
    left: 24px;
    right: 24px;
    top: calc(var(--header-height) + 10px);
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav .nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .site-nav a {
    justify-content: center;
    color: var(--ink);
    background: var(--mist);
  }

  .site-nav a:hover,
  .site-nav a.is-active {
    color: var(--blue-strong);
    background: var(--blue-soft);
  }

  .nav-toggle {
    display: block;
  }

  .header-cta {
    min-width: 132px;
  }

  .service-grid,
  .partner-types {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    min-height: 380px;
  }

  .ssi-levels {
    grid-template-columns: repeat(2, 1fr);
  }

  .ssi-levels::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 12px 20px;
  }

  h1 {
    font-size: 3.5rem;
  }

  .hero h1 {
    max-width: 760px;
    font-size: 3rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-media {
    grid-template-columns: 1fr;
  }

  .hero-media img:not(:first-child) {
    display: none;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(7, 24, 45, 0.92), rgba(7, 24, 45, 0.52));
  }

  .impact-strip,
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-column,
  .media-layout,
  .media-layout.reverse,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .media-frame img {
    min-height: 430px;
  }

  .benefits {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  :root {
    --header-height: 70px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .brand small {
    display: none;
  }

  /* Keep the primary CTA visible on phones (compact), placed before the menu button. */
  .header-cta {
    order: 1;
    min-width: 0;
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.85rem;
  }

  .nav-toggle {
    order: 2;
    justify-self: end;
  }

  .site-nav {
    left: 16px;
    right: 16px;
    top: calc(var(--header-height) + 8px);
  }

  .site-nav .nav-list {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .section-shell,
  .footer-bottom {
    width: min(100% - 32px, 1160px);
  }

  .hero-content {
    padding-top: calc(var(--header-height) + 46px);
    padding-bottom: 54px;
  }

  h1 {
    font-size: 2.8rem;
  }

  .hero h1 {
    font-size: 2.28rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 1.78rem;
  }

  .hero-tagline {
    font-size: 1.28rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .impact-strip,
  .pillar-grid,
  .service-grid,
  .course-grid,
  .ssi-levels,
  .feature-list,
  .partner-types,
  .benefits ul,
  .contact-form,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .metric {
    min-height: 96px;
    padding: 22px 20px;
  }

  .metric strong {
    font-size: 1.85rem;
  }

  .service-card {
    min-height: auto;
  }

  .media-frame img {
    min-height: 360px;
  }

  .contact-form .full,
  .form-note {
    grid-column: auto;
  }
}

/* ===== Homepage conversion sections ===== */

/* What We Offer */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.offer-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 40px rgba(9, 33, 62, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(9, 33, 62, 0.13);
}

.offer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue-strong);
}

.offer-icon .svg-icon {
  width: 28px;
  height: 28px;
}

.offer-card h3 {
  margin: 0 0 8px;
}

.offer-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.offer-link {
  margin-top: auto;
  color: var(--blue-strong);
  font-weight: 900;
}

/* Choose Your Path */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.path-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 40px rgba(9, 33, 62, 0.07);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.path-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(9, 33, 62, 0.13);
}

.path-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-strong);
}

.path-icon .svg-icon {
  width: 38px;
  height: 38px;
}

.path-card h3 {
  margin: 0 0 8px;
}

.path-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

.path-card .button {
  margin-top: auto;
}

/* Who We Serve */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.serve-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.serve-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: var(--radius);
  color: var(--blue-strong);
  background: var(--blue-soft);
}

.serve-item .svg-icon {
  width: 19px;
  height: 19px;
}

/* Why CPR Matters */
.why-section {
  background: var(--navy);
  color: var(--paper);
}

.why-section .eyebrow {
  color: #ffccd4;
}

.why-inner {
  text-align: center;
}

.why-inner h2 {
  color: var(--paper);
}

.why-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 34px 0;
  text-align: left;
}

.why-point {
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.why-point strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.why-point p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* SSI flow connector */
.pillar-flow {
  position: relative;
}

.pillar-flow::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.pillar-flow .pillar {
  position: relative;
  z-index: 1;
}

/* Trust & Credibility */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
}

.trust-badge svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--teal);
}

.trust-badge span {
  line-height: 1.3;
}

/* Testimonials */
.testimonials {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.testimonial {
  display: none;
  margin: 0;
}

.testimonial.is-active {
  display: block;
}

.testimonial blockquote {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.5;
}

.testimonial cite {
  font-style: normal;
  font-weight: 800;
  color: var(--blue-strong);
}

.testimonial cite span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Final CTA */
.final-cta {
  padding: 96px 0;
  background: linear-gradient(120deg, var(--navy), var(--blue-strong));
  color: var(--paper);
  text-align: center;
}

.final-cta h2 {
  margin: 0 0 12px;
  color: var(--paper);
  font-size: 2.6rem;
}

.final-cta p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* CPR Readiness Assessment */
.readiness-section {
  background: var(--mist);
}

.readiness-content {
  max-width: 760px;
  text-align: center;
}

.readiness-content h2 {
  margin-bottom: 12px;
}

.readiness-content p:not(.eyebrow) {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.12rem;
}

@media (max-width: 1120px) {
  .offer-grid,
  .trust-grid,
  .why-points {
    grid-template-columns: repeat(2, 1fr);
  }

  .serve-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillar-flow::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .path-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .about-highlights,
  .offer-grid,
  .serve-grid,
  .trust-grid,
  .why-points {
    grid-template-columns: 1fr;
  }

  .final-cta {
    padding: 68px 0;
  }

  .final-cta h2 {
    font-size: 2rem;
  }
}
