/* ============================================================
   Texas OnSite CPR — Redesign v1
   Aesthetic: editorial, Texas-heritage trust, refined serif display
   ============================================================ */

:root {
  /* Palette */
  --paper:        #F5F1E8;
  --paper-2:      #FAF6ED;
  --ink:          #0F1A14;
  --ink-soft:     #2A3A30;
  --pine:         #1F3A2E;
  --pine-deep:    #0F2419;
  --pine-soft:    #5A7A66;
  --rescue:       #D9531E;
  --rescue-deep:  #B33F12;
  --sand:         #C9BFA6;
  --warm-gray:    #9C9381;
  --line:         #E2DCCC;

  /* Typography */
  --display: 'Fraunces', 'Iowan Old Style', 'Apple Garamond', Georgia, serif;
  --body:    'Manrope', 'Helvetica Neue', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.5rem;
  --s-6:  2rem;
  --s-7:  3rem;
  --s-8:  4rem;
  --s-9:  6rem;
  --s-10: 8rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --container: 1200px;
  --measure: 62ch;
}

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(at 0% 0%, rgba(31,58,46,0.04) 0, transparent 60%),
    radial-gradient(at 100% 100%, rgba(217,83,30,0.03) 0, transparent 60%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
}

.desktop-only { display: inline; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  color: var(--pine-deep);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-variation-settings: 'opsz' 24; }
h4 { font-size: 1.125rem; font-family: var(--body); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1em; max-width: var(--measure); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rescue);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--rescue);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

/* ----- Top utility bar ----- */
.utility {
  background: var(--pine-deep);
  color: var(--paper);
  font-size: 0.8125rem;
}
.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem var(--s-5);
  max-width: var(--container);
  margin: 0 auto;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.utility a { color: var(--paper); }
.utility a:hover { color: var(--rescue); }
.utility .pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5BD27C;
  box-shadow: 0 0 0 0 rgba(91,210,124,0.6);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(91,210,124,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(91,210,124,0); }
  100% { box-shadow: 0 0 0 0 rgba(91,210,124,0); }
}

/* ----- Header / nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  max-width: var(--container);
  margin: 0 auto;
  gap: var(--s-6);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pine-deep);
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--pine-deep);
  color: var(--paper);
  border-radius: 4px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 3px 11px;
  border-left: 2px solid var(--rescue);
  border-top: 2px solid var(--rescue);
  border-bottom: 2px solid var(--rescue);
  pointer-events: none;
  opacity: 0;
}
.nav-list {
  display: flex;
  gap: var(--s-6);
  align-items: center;
}
.nav-list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 0.25rem 0;
  transition: color .25s var(--ease);
}
.nav-list a:hover { color: var(--pine-deep); }
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--rescue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-list a:hover::after,
.nav-list a.active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--pine-deep);
  color: var(--paper) !important;
  padding: 0.65rem 1.1rem !important;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.nav-cta:hover { background: var(--rescue); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink); position: relative;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }
.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); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--rescue);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 6px 18px rgba(217,83,30,0.18);
}
.btn-primary:hover { background: var(--rescue-deep); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 12px 28px rgba(217,83,30,0.28); }
.btn-secondary {
  background: var(--pine-deep);
  color: var(--paper);
}
.btn-secondary:hover { background: var(--pine); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--pine-deep);
  border: 1px solid var(--pine-deep);
}
.btn-ghost:hover { background: var(--pine-deep); color: var(--paper); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: var(--s-8) 0 var(--s-9);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-7);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2.75rem, 6.5vw, 5.75rem);
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--rescue);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.hero h1 .underline {
  display: inline-block;
  position: relative;
}
.hero h1 .underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.18em;
  background: var(--rescue);
  opacity: 0.18;
  z-index: -1;
}
.hero-lede {
  margin-top: var(--s-5);
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 52ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.hero-trust {
  margin-top: var(--s-6);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--warm-gray);
}
.hero-trust .stars {
  color: var(--rescue);
  letter-spacing: 0.1em;
}
.hero-aside {
  position: relative;
  padding: var(--s-6);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.hero-aside::before {
  content: '';
  position: absolute;
  top: -12px; left: var(--s-5);
  background: var(--rescue);
  color: var(--paper);
  font: 600 0.7rem/1 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
}
.hero-aside.next-class::before { content: 'NEXT OPEN CLASS'; }
.next-class .when {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--pine-deep);
}
.next-class .where { color: var(--ink-soft); font-weight: 500; }
.next-class .seats {
  display: inline-block;
  background: rgba(217,83,30,0.12);
  color: var(--rescue-deep);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}
.next-class .divider { height: 1px; background: var(--line); }
.next-class .quote-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--pine-deep);
}

/* Hero decoration */
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero-decor svg { position: absolute; }
.heart-pulse {
  bottom: 8%; left: -2%; width: 380px; opacity: 0.06;
  animation: heartbeat 3s var(--ease) infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); opacity: 0.05; }
  20%      { transform: scale(1.02); opacity: 0.07; }
  40%      { transform: scale(1);    opacity: 0.05; }
}
.heart-pulse { animation-duration: 6s; }

/* ----- Logo wall ----- */
.logo-wall {
  background: var(--pine-deep);
  color: var(--paper);
  padding: var(--s-7) 0;
  position: relative;
  overflow: hidden;
}
.logo-wall .label {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: var(--s-5);
  font-weight: 600;
}
.logo-marquee {
  display: flex;
  gap: var(--s-9);
  align-items: center;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: 0.02em;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.logo-marquee span {
  opacity: 0.7;
  transition: opacity .25s var(--ease);
}
.logo-marquee span:hover { opacity: 1; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----- Stats / numbers ----- */
.stats {
  padding: var(--s-9) 0;
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}
.stat .num {
  font-family: var(--display);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  color: var(--pine-deep);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.stat .num .small { font-size: 0.6em; color: var(--rescue); }
.stat .label {
  margin-top: var(--s-3);
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 24ch;
}

/* ----- Sections ----- */
.section { padding: var(--s-9) 0; }
.section-tight { padding: var(--s-8) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-7);
  align-items: end;
}
.section-head h2 { max-width: 14ch; }
.section-head .lede { color: var(--ink-soft); }

/* ----- Two-path split ----- */
.split-path {
  background: var(--paper-2);
  position: relative;
}
.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}
.path-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: var(--s-7);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.path-card:hover {
  transform: translateY(-4px);
  border-color: var(--pine-soft);
  box-shadow: 0 30px 60px -30px rgba(15,36,25,0.25);
}
.path-card .path-num {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: var(--rescue);
  text-transform: uppercase;
  font-style: italic;
}
.path-card h3 { font-size: 2rem; }
.path-card ul { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.path-card ul li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  color: var(--ink-soft);
}
.path-card ul li::before {
  content: ''; width: 18px; height: 18px; flex: 0 0 18px;
  margin-top: 4px;
  background: var(--pine);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 8'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 8'/></svg>") no-repeat center / contain;
}
.path-card .price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding-top: var(--s-4);
  border-top: 1px dashed var(--line);
}
.path-card .price .amount {
  font-family: var(--display); font-size: 2rem; color: var(--pine-deep);
}
.path-card .price .from {
  font-size: 0.8rem; color: var(--warm-gray); text-transform: uppercase; letter-spacing: 0.12em;
}

/* ----- How it works ----- */
.how {
  background: var(--pine-deep);
  color: var(--paper);
}
.how h2, .how h3 { color: var(--paper); }
.how .eyebrow { color: var(--rescue); }
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  position: relative;
  margin-top: var(--s-6);
}
.how-steps::before {
  content: '';
  position: absolute;
  top: 32px; left: 5%; right: 5%;
  height: 1px;
  background: rgba(245,241,232,0.18);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
}
.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--pine-deep);
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: var(--s-4);
  border: 4px solid var(--pine-deep);
}
.step h3 { color: var(--paper); margin-bottom: var(--s-2); }
.step p { color: rgba(245,241,232,0.78); }

/* ----- Course catalog ----- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.course {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--s-5);
  transition: transform .35s var(--ease), background .35s var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  overflow: hidden;
}
.course::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--pine-deep);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s var(--ease);
  z-index: 0;
}
.course > * { position: relative; z-index: 1; }
.course:hover { transform: translateY(-3px); }
.course:hover::before { transform: scaleY(1); }
.course:hover, .course:hover h3, .course:hover p, .course:hover .meta { color: var(--paper); }
.course:hover h3 { color: var(--paper) !important; }
.course:hover .meta { color: var(--sand); }
.course:hover .price-tag { background: var(--rescue); color: var(--paper); }
.course .meta {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rescue);
  font-weight: 600;
}
.course h3 {
  font-size: 1.4rem;
  transition: color .35s var(--ease);
}
.course p { color: var(--ink-soft); transition: color .35s var(--ease); margin: 0; }
.course .price-tag {
  margin-top: auto;
  align-self: flex-start;
  background: var(--paper);
  color: var(--pine-deep);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  transition: all .35s var(--ease);
}

/* ----- Pull quote / testimonial ----- */
.testimonial {
  background: var(--paper-2);
  padding: var(--s-9) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quote-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-7);
  align-items: start;
}
.quote-mark {
  font-family: var(--display);
  font-size: clamp(6rem, 12vw, 10rem);
  line-height: 0.7;
  color: var(--rescue);
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.quote-text {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  line-height: 1.25;
  color: var(--pine-deep);
  font-variation-settings: 'opsz' 36, 'SOFT' 50;
  letter-spacing: -0.005em;
}
.quote-attr {
  margin-top: var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.quote-attr .name { font-weight: 700; color: var(--ink); }
.quote-attr .sep { color: var(--warm-gray); }

/* Multi-testimonial grid */
.tg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}
.tg-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.tg-card .stars { color: var(--rescue); letter-spacing: 0.1em; font-size: 0.9rem; }
.tg-card p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.tg-card .who { font-size: 0.85rem; color: var(--warm-gray); margin-top: auto; }
.tg-card .who strong { color: var(--ink); display: block; }

/* ----- FAQ ----- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: var(--s-5) 0;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--pine-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
}
.faq-q .icon {
  width: 32px; height: 32px; flex: 0 0 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  color: var(--pine-deep);
}
.faq-item[open] .faq-q .icon {
  background: var(--rescue);
  border-color: var(--rescue);
  color: var(--paper);
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 0 var(--s-5);
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ----- CTA banner ----- */
.cta-banner {
  background: linear-gradient(135deg, var(--pine-deep) 0%, #1a3225 100%);
  color: var(--paper);
  padding: var(--s-9) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--paper); max-width: 22ch; }
.cta-banner p { color: rgba(245,241,232,0.8); max-width: 50ch; }
.cta-banner .actions { margin-top: var(--s-6); display: flex; gap: var(--s-3); flex-wrap: wrap; }
.cta-banner .pattern {
  position: absolute;
  right: -100px; top: -50px;
  width: 500px; height: 500px;
  border: 1px solid rgba(217,83,30,0.2);
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner .pattern::before, .cta-banner .pattern::after {
  content: '';
  position: absolute;
  inset: 50px;
  border: 1px solid rgba(217,83,30,0.18);
  border-radius: 50%;
}
.cta-banner .pattern::after { inset: 100px; }

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-9) 0 var(--s-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--s-6);
}
.footer-grid h4 {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--rescue);
  margin-bottom: var(--s-3);
}
.footer-grid ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-grid a { color: rgba(245,241,232,0.7); transition: color .25s var(--ease); }
.footer-grid a:hover { color: var(--paper); }
.footer-grid .brand p { color: rgba(245,241,232,0.6); margin-top: var(--s-3); }
.footer-bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(245,241,232,0.12);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(245,241,232,0.55);
  gap: var(--s-4);
  flex-wrap: wrap;
}
.footer-bottom .certs { display: flex; gap: var(--s-4); }

/* ----- Forms ----- */
.form-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: var(--s-7);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.form-grid .full { grid-column: 1 / -1; }
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.field input, .field select, .field textarea {
  font: inherit;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  transition: border .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(31,58,46,0.12);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .err {
  color: var(--rescue-deep);
  font-size: 0.8rem;
  display: none;
}
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--rescue); }

.form-message {
  margin-top: var(--s-4);
  padding: var(--s-4);
  border-radius: 8px;
  display: none;
}
.form-message.show { display: block; }
.form-message.success { background: rgba(91,210,124,0.12); color: #1F6B3A; border: 1px solid rgba(91,210,124,0.4); }

/* ----- Page header (interior) ----- */
.page-head {
  padding: var(--s-9) 0 var(--s-7);
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 18ch;
}
.page-head .lede {
  margin-top: var(--s-4);
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 60ch;
}
.crumb {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: var(--s-4);
  display: flex;
  gap: 0.5rem;
}
.crumb a { color: var(--rescue); }

/* ----- About-specific ----- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: start;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
}
.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-year {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--rescue);
  font-style: italic;
}
.timeline h3 { margin-bottom: 0.4rem; }
.timeline p { margin: 0; color: var(--ink-soft); }

.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-5);
}
.cred {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  text-align: center;
}
.cred .badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--pine-deep);
  color: var(--paper);
  display: grid; place-items: center;
  margin: 0 auto var(--s-3);
}
.cred h4 { color: var(--pine-deep); margin-bottom: 0.3rem; }
.cred p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ----- Sticky mobile call bar ----- */
.call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--rescue);
  color: var(--paper);
  z-index: 60;
  padding: 0.85rem var(--s-4);
  font-weight: 700;
  text-align: center;
  box-shadow: 0 -8px 18px rgba(0,0,0,0.12);
}
.call-bar a { color: var(--paper); display: flex; align-items: center; justify-content: center; gap: 0.6rem; }

/* ----- Reveal-on-scroll -----
   Visible by default; .js opts in to hidden-then-reveal so no-JS / capture is safe. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ----- New: Google-review proof bar ----- */
.proof-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: var(--s-4);
}
.proof-bar .g-mark {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #4285F4, #DB4437);
  color: white;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.7rem;
}
.proof-bar .stars { color: var(--rescue); letter-spacing: 0.1em; font-size: 0.95rem; }

/* ----- New: instructor portrait card ----- */
.portrait-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: var(--s-5);
  display: flex;
  gap: var(--s-4);
  align-items: center;
}
.portrait {
  width: 96px; height: 96px;
  flex: 0 0 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pine) 0%, var(--pine-deep) 100%);
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.portrait::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--rescue);
  border-radius: 50%;
  opacity: 0.4;
}
.portrait-card .meta {
  font-family: var(--body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rescue);
  font-weight: 700;
}
.portrait-card h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.portrait-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ----- New: photo placeholder block ----- */
.photo-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(31,58,46,0.85), rgba(15,36,25,0.95)),
    repeating-linear-gradient(45deg, var(--pine) 0 12px, var(--pine-deep) 12px 24px);
  border: 1px solid var(--line);
  display: grid;
  place-items: end start;
  padding: var(--s-4);
  color: var(--paper);
}
.photo-frame .caption {
  font-family: var(--display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 36;
  background: rgba(0,0,0,0.4);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
}
.photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(217,83,30,0.3), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(245,241,232,0.15), transparent 50%);
}
.photo-frame.compact { aspect-ratio: 16 / 10; }

/* ----- New: hero price anchor ----- */
.price-anchor {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: var(--s-2);
  padding: 0.4rem 0.8rem;
  background: rgba(217,83,30,0.08);
  color: var(--rescue-deep);
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
}
.price-anchor .num { font-family: var(--display); font-size: 1.3rem; }

/* ----- New: home estimator (compact) ----- */
.home-estimator {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: var(--s-6);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--s-4);
  align-items: end;
  margin-top: var(--s-5);
}
.home-estimator .field { gap: 0.3rem; }
.home-estimator .out {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--pine-deep);
  white-space: nowrap;
}

/* ----- New: BLS vs Heartsaver disambiguator ----- */
.disambig {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--s-5);
  margin-bottom: var(--s-6);
}
.disambig .col {
  border-left: 3px solid var(--rescue);
  padding-left: var(--s-4);
}
.disambig h4 { color: var(--pine-deep); margin-bottom: 0.3rem; }
.disambig p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* ----- Spanish toggle in utility ----- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(245,241,232,0.3);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--rescue); color: var(--rescue); }
.lang-toggle .flag {
  width: 16px; height: 11px;
  background: linear-gradient(to bottom, #C8102E 33%, white 33% 66%, #006847 66%);
  border-radius: 2px;
}

/* ----- New: payment / PO note ----- */
.payment-note {
  background: var(--paper-2);
  border-left: 3px solid var(--pine-deep);
  padding: var(--s-4) var(--s-5);
  border-radius: 0 8px 8px 0;
  margin-top: var(--s-5);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.payment-note strong { color: var(--ink); }

/* ----- New: schedule freshness note ----- */
.schedule-note {
  margin-top: var(--s-4);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--warm-gray);
  font-style: italic;
  font-family: var(--display);
  font-variation-settings: 'opsz' 14;
}
.schedule-note::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #5BD27C;
  box-shadow: 0 0 0 0 rgba(91,210,124,0.5);
  animation: pulse 2.5s var(--ease) infinite;
}

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .home-estimator { grid-template-columns: 1fr; align-items: stretch; }
  .home-estimator .out { text-align: center; }
  .disambig { grid-template-columns: 1fr; }
  .portrait-card { flex-direction: column; align-items: flex-start; }
  .portrait { width: 72px; height: 72px; flex: 0 0 72px; font-size: 1.8rem; }
  .hero h1 { font-size: clamp(2.25rem, 9vw, 3.5rem); }
  .hero { padding: var(--s-7) 0 var(--s-8); }
  .hero-grid, .path-grid, .about-grid, .section-head { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
  .courses-grid, .tg, .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .quote-block { grid-template-columns: 1fr; gap: var(--s-3); }
  .nav-list {
    position: fixed;
    inset: 64px 0 60px 0;
    z-index: 70;
    background: var(--paper);
    flex-direction: column;
    padding: var(--s-7);
    gap: var(--s-5);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s var(--ease), visibility 0s linear .35s;
    align-items: flex-start;
    visibility: hidden;
    pointer-events: none;
  }
  .nav-list.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform .35s var(--ease), visibility 0s linear 0s;
  }
  .nav-list a { font-size: 1.4rem; }
  .nav-toggle { display: inline-flex; }
  .utility { display: none; }
  .call-bar { display: block; }
  body { padding-bottom: 88px; }
  .hero-photo { margin: var(--s-5) 0 0 0; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; min-height: 44px; }
  .desktop-only { display: none; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .courses-grid, .tg, .cred-grid, .footer-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; }
}

/* === Article / Blog / Resources (v1) === */
.article { padding: var(--s-9) 0; }
.article-grid {
  display: grid;
  grid-template-columns: 1fr min(72ch, 100%) 1fr;
}
.article-grid > * { grid-column: 2; }
.article-grid > .full-bleed {
  grid-column: 1 / -1;
  margin-bottom: var(--s-7);
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center;
  font-size: 0.85rem; color: var(--warm-gray); margin-bottom: var(--s-4);
}
.article-meta .pill {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.6rem; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line);
  color: var(--ink-soft); font-weight: 600;
}
.article h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin-bottom: var(--s-5); }
.article-lede {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.4; color: var(--ink-soft);
  font-variation-settings: 'opsz' 24;
  margin-bottom: var(--s-6); max-width: 50ch;
}
.article-hero {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 14px; margin: var(--s-6) 0 var(--s-7);
}
.article-body { font-size: 1.0625rem; line-height: 1.7; }
.article-body h2, .article-body h3, .article-body h4 {
  font-family: var(--display); margin: var(--s-7) 0 var(--s-3);
  color: var(--pine-deep);
}
.article-body h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); font-variation-settings: 'opsz' 36, 'SOFT' 50; }
.article-body h3 { font-size: 1.25rem; }
.article-body h4 { font-size: 1.05rem; font-family: var(--body); font-weight: 700; letter-spacing: 0.01em; }
.article-body p { margin: 0 0 var(--s-4); color: var(--ink); max-width: none; }
.article-body ul, .article-body ol {
  list-style: none; margin: 0 0 var(--s-5); padding: 0;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.article-body ul li, .article-body ol li {
  position: relative; padding-left: 1.4rem; color: var(--ink);
}
.article-body ul li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; background: var(--rescue);
  border-radius: 1px; transform: rotate(45deg);
}
.article-body ol { counter-reset: olc; }
.article-body ol li { counter-increment: olc; }
.article-body ol li::before {
  content: counter(olc) '.';
  position: absolute; left: 0; top: 0;
  font-family: var(--display); font-style: italic;
  font-weight: 600; color: var(--rescue);
}
.article-body strong { color: var(--pine-deep); font-weight: 700; }
.article-body blockquote {
  border-left: 3px solid var(--rescue);
  padding: 0.4rem 0 0.4rem var(--s-5);
  margin: var(--s-5) 0;
  font-family: var(--display); font-size: 1.25rem;
  font-style: italic; color: var(--pine-deep);
  font-variation-settings: 'opsz' 24, 'SOFT' 50;
}
.article-body a {
  color: var(--rescue-deep);
  border-bottom: 1px solid currentColor;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.article-body a:hover { color: var(--paper); background: var(--rescue); padding: 0 0.15em; }

.article-author {
  margin-top: var(--s-8); padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  display: flex; gap: var(--s-4); align-items: flex-start;
}
.article-author .avatar {
  width: 64px; height: 64px; flex: 0 0 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pine), var(--pine-deep));
  display: grid; place-items: center;
  color: var(--paper); font-family: var(--display);
  font-weight: 600; font-size: 1.6rem;
}
.article-author .meta {
  font-size: 0.8rem; letter-spacing: 0.14em;
  color: var(--rescue); text-transform: uppercase; font-weight: 700;
}
.article-author h4 { color: var(--pine-deep); margin: 0.2rem 0; font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.article-author p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.article-cta {
  margin-top: var(--s-7); padding: var(--s-6);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 14px; text-align: center;
}
.article-cta h3 { color: var(--pine-deep); font-family: var(--display); font-size: 1.5rem; margin-bottom: var(--s-3); }
.article-cta .actions { display: inline-flex; flex-wrap: wrap; gap: var(--s-3); }

.blog-index {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6);
}
.blog-card {
  display: flex; flex-direction: column;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(15,36,25,0.25); }
.blog-card .thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--pine), var(--pine-deep));
  position: relative; overflow: hidden;
}
.blog-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.blog-card:hover .thumb img { transform: scale(1.05); }
.blog-card .body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.blog-card .pubdate {
  font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--rescue); font-weight: 700;
}
.blog-card h3 {
  font-size: 1.3rem; line-height: 1.2; color: var(--pine-deep);
  font-variation-settings: 'opsz' 36;
}
.blog-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.blog-card .read-more {
  margin-top: auto; font-weight: 600; color: var(--rescue);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.blog-index .blog-card.featured { grid-column: span 2; }
.blog-index .blog-card.featured .thumb { aspect-ratio: 16 / 8; }
.blog-index .blog-card.featured h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

.resources-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5);
}
.resource-card {
  display: flex; align-items: flex-start; gap: var(--s-4);
  padding: var(--s-5);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.resource-card:hover { transform: translateY(-2px); border-color: var(--pine-soft); }
.resource-card .icon-tile {
  width: 56px; height: 56px; flex: 0 0 56px;
  display: grid; place-items: center;
  background: var(--pine-deep); color: var(--paper);
  border-radius: 10px; font-family: var(--display);
  font-style: italic; font-weight: 600; font-size: 1.4rem;
}
.resource-card h3 { font-size: 1.15rem; color: var(--pine-deep); margin-bottom: 0.3rem; }
.resource-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.resource-card .external::after { content: ' ↗'; color: var(--rescue); }

.hero-photo {
  margin: 0; border-radius: 16px; overflow: hidden;
  position: relative; aspect-ratio: 4 / 3;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo .badge {
  position: absolute; top: var(--s-4); right: var(--s-4);
  background: rgba(15,36,25,0.85); color: var(--paper);
  padding: 0.5rem 0.8rem; border-radius: 8px;
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 700; backdrop-filter: blur(10px);
}

.course .course-thumb {
  aspect-ratio: 1 / 1; border-radius: 8px;
  overflow: hidden; margin-bottom: var(--s-3);
  background: var(--pine);
}
.course .course-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.course:hover .course-thumb img { transform: scale(1.04); }

figure.photo {
  margin: 0; border-radius: 12px; overflow: hidden; position: relative;
}
figure.photo img { width: 100%; height: auto; display: block; }
figure.photo figcaption {
  position: absolute; left: var(--s-4); bottom: var(--s-4);
  background: rgba(15,36,25,0.8); color: var(--paper);
  padding: 0.5rem 0.8rem; border-radius: 6px;
  font-size: 0.85rem; font-family: var(--display);
  font-style: italic; font-variation-settings: 'opsz' 14;
  backdrop-filter: blur(8px);
}

.enrollware-panel {
  background: var(--pine-deep); color: var(--paper);
  padding: var(--s-7); border-radius: 14px;
  display: grid; grid-template-columns: 1fr auto;
  gap: var(--s-5); align-items: center;
}
.enrollware-panel h3 {
  color: var(--paper); font-family: var(--display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin-bottom: 0.4rem;
}
.enrollware-panel p { color: rgba(245,241,232,0.78); margin: 0; max-width: 50ch; }
.enrollware-panel .actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

@media (max-width: 980px) {
  .blog-index { grid-template-columns: repeat(2, 1fr); }
  .blog-index .blog-card.featured { grid-column: span 2; }
  .resources-grid { grid-template-columns: 1fr; }
  .enrollware-panel { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .blog-index { grid-template-columns: 1fr; }
  .blog-index .blog-card.featured { grid-column: span 1; }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
