/* ============================================
   HealthCerts Design System — On-Brand
   Matches healthcareercerts.org brand identity
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg-dark: #333c4e;
  --bg-cream: #f5f5f5;
  --bg-white: #FFFFFF;
  --text-primary: #333333;
  --text-muted: #73838e;
  --text-light: #f2f3f5;
  --accent: #494eb2;
  --accent-hover: #3d41a0;
  --accent-light: rgba(73, 78, 178, 0.08);
  --trust-green: #65bc7b;
  --trust-green-light: rgba(101, 188, 123, 0.08);
  --border: #e0e2e6;
  --border-dark: #4e517c;
  --cyan: #75deff;
  --cyan-light: rgba(117, 222, 255, 0.12);
  --card-shadow: 0 1px 3px rgba(51, 60, 78, 0.04), 0 6px 16px rgba(51, 60, 78, 0.06);
  --card-shadow-hover: 0 2px 6px rgba(51, 60, 78, 0.06), 0 12px 28px rgba(51, 60, 78, 0.1);

  /* Typography scale — Barlow across the board for unified, readable look */
  --font-display: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  --h1-size: 4rem;
  --h2-size: 2.875rem;
  --h3-size: 1.625rem;
  --body-size: 1.1875rem;
  --small-size: 0.9375rem;
  --label-tracking: 0.08em;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-white);
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
}

h1 {
  font-size: var(--h1-size);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--h2-size);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--h3-size);
  line-height: 1.3;
}

p {
  line-height: 1.7;
}

.label-text {
  font-family: var(--font-body);
  font-size: var(--small-size);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--label-tracking);
}

/* --- Section heading accent line --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
}

.section-header::before {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 24px;
}

.section-header h2 {
  margin-bottom: 14px;
  color: var(--text-primary);
}

.section-header p {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Dark section header overrides */
.section--dark .section-header::before {
  background: var(--accent);
}

.section--dark .section-header h2 {
  color: var(--text-light);
}

.section--dark .section-header p {
  color: rgba(241, 245, 249, 0.7);
}

/* --- Layout --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--cream {
  background: var(--bg-cream);
}

.section--white {
  background: var(--bg-white);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

/* Gradient fade between sections */
.section--cream + .section--white::before,
.section--white + .section--cream::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin-bottom: -1px;
}


/* ============================================
   STICKY HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 68px;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: var(--bg-white);
  box-shadow: 0 1px 12px rgba(12, 18, 34, 0.06);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--text-light);
  letter-spacing: -0.01em;
  transition: color 0.35s ease;
}

.site-header.scrolled .header-logo {
  color: var(--text-primary);
}

.header-phone {
  color: rgba(241, 245, 249, 0.8);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.35s ease;
  margin-left: auto;
  margin-right: 20px;
}

.site-header.scrolled .header-phone {
  color: var(--text-muted);
}

.header-phone:hover {
  color: var(--accent);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  border: 1.5px solid rgba(241, 245, 249, 0.3);
  background: transparent;
  color: var(--text-light);
  transition: all 0.25s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-header.scrolled .header-cta {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.header-cta:hover {
  background: var(--accent);
  color: var(--bg-white);
  border-color: var(--accent);
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 36px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-white);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(212, 88, 42, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.02);
}

.btn--outline-light {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid rgba(241, 245, 249, 0.35);
}

.btn--outline-light:hover {
  background: rgba(241, 245, 249, 0.08);
  border-color: rgba(241, 245, 249, 0.6);
  transform: scale(1.02);
}

.btn--outline-accent {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  gap: 8px;
}

.btn--outline-accent:hover {
  background: var(--accent);
  color: var(--bg-white);
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(212, 88, 42, 0.25);
}

.btn--small {
  padding: 10px 22px;
  font-size: 0.875rem;
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: 140px 0 100px;
  background-color: var(--bg-dark);
  background-image:
    linear-gradient(95deg,
      var(--bg-dark) 0%,
      var(--bg-dark) 38%,
      rgba(35, 73, 98, 0.88) 55%,
      rgba(35, 73, 98, 0.62) 75%,
      rgba(35, 73, 98, 0.38) 100%),
    url("assets/landing-pages/img/content-3.webp");
  background-position: 0 0, right center;
  background-size: 100% 100%, cover;
  background-repeat: no-repeat, no-repeat;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

/* Hide the boxed image element — bg image now handles visuals */
.hero-image { display: none !important; }

/* Text readability safety net on top of background image */
.hero h1,
.hero-sub,
.hero-badge,
.hero-link {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

/* Subtle bottom fade for trust-bar contrast */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(180deg, transparent 0%, rgba(35, 73, 98, 0.55) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Grain overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  mix-blend-mode: overlay;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 1140px;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  max-width: 640px;
  margin-bottom: 20px;
  color: var(--text-light);
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.6s ease forwards;
  animation-delay: 0.1s;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.1875rem;
  max-width: 540px;
  color: rgba(241, 245, 249, 0.75);
  margin-bottom: 36px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.6s ease forwards;
  animation-delay: 0.2s;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 0;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.6s ease forwards;
  animation-delay: 0.3s;
}

.hero-link {
  color: rgba(241, 245, 249, 0.65);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.hero-link:hover {
  color: var(--text-light);
}

/* Hero badge / pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 88, 42, 0.12);
  border: 1px solid rgba(212, 88, 42, 0.25);
  color: rgba(241, 245, 249, 0.9);
  padding: 8px 18px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: var(--small-size);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.6s ease forwards;
  animation-delay: 0s;
}

.hero-badge-icon {
  color: var(--accent);
  font-size: 0.875rem;
}

/* Trust bar in hero */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(241, 245, 249, 0.1);
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.6s ease forwards;
  animation-delay: 0.4s;
}

.trust-bar-item {
  text-align: center;
}

.trust-bar-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.trust-bar-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(241, 245, 249, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero fade-in animation */
@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================
   PARTNER CLINIC LOGOS
   ============================================ */
.partners {
  padding: 52px 0;
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.partners-label {
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--small-size);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--label-tracking);
  margin-bottom: 28px;
}

/* --- Logo grids: uniform height, centered, clean alignment --- */
.partners-grid,
.logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 0;
}

.partners-grid img,
.logos-grid img,
.logo-item img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.85;
  transition: all 0.25s ease;
}

.partners-grid img:hover,
.logos-grid img:hover,
.logo-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 8px 16px;
}

.partner-logo {
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: transparent;
  transition: border-color 0.2s ease;
}

.partner-logo img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.partner-logo:hover {
  border-color: var(--accent);
}

/* Employer strip */
.employer-strip {
  text-align: center;
  padding: 40px 0 24px;
}

.employer-strip img {
  max-width: 700px;
  width: 100%;
  height: auto;
  margin: 16px auto 0;
  display: block;
}

.employer-logos {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.employer-logos img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.85;
  transition: all 0.25s ease;
}

.employer-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* --- Payment plan banner --- */
.payment-banner {
  background: var(--accent-light);
  border: 1px solid rgba(73, 78, 178, 0.15);
  border-radius: 12px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  text-align: center;
  flex-wrap: wrap;
}

.payment-banner .payment-icon {
  font-size: 1.5rem;
}

.payment-banner .payment-text {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.payment-banner .payment-sub {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- Guarantee badge update --- */
.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(101, 188, 123, 0.12);
  border: 1px solid rgba(101, 188, 123, 0.25);
  color: var(--trust-green);
  padding: 8px 18px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Mobile marquee for partner logos */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partners-marquee {
  display: none;
}


/* ============================================
   LEAD CAPTURE FORM
   ============================================ */
.form-section {
  padding: 96px 0;
  background: var(--bg-cream);
  position: relative;
}

.form-wrapper {
  max-width: 540px;
  margin: 0 auto;
}

.form-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 44px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  position: relative;
}

/* Overlap effect: form floats above section boundary */
.form-card--overlap {
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.form-card h2 {
  margin-bottom: 8px;
  text-align: center;
}

.form-card .form-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.9375rem;
  font-family: var(--font-body);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--small-size);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 88, 42, 0.08);
}

.form-group input::placeholder {
  color: #C7C4BF;
}

.form-submit {
  width: 100%;
  padding: 17px;
  background: var(--accent);
  color: var(--bg-white);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 8px;
  letter-spacing: 0.01em;
}

.form-submit:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(212, 88, 42, 0.3);
}

.form-phone {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.form-phone a {
  color: var(--accent);
  font-weight: 500;
}

.form-phone a:hover {
  text-decoration: underline;
}


/* ============================================
   5 PILLARS / WHY SECTION
   ============================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 36px;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section--cream .pillar-card {
  background: var(--bg-white);
}

.section--white .pillar-card {
  background: var(--bg-cream);
  border-color: transparent;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.pillar-card h3 {
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Fifth card centers on last row */
.pillars-grid .pillar-card:nth-child(4) {
  grid-column: 1 / 2;
}
.pillars-grid .pillar-card:nth-child(5) {
  grid-column: 2 / 3;
}


/* ============================================
   INSTRUCTOR CARDS
   ============================================ */
.instructors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.instructor-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 36px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section--cream .instructor-card {
  background: var(--bg-white);
}

.instructor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.instructor-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bg-cream) 0%, #EDE8E0 50%, #DDD5CA 100%);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.75rem;
}

.instructor-card h3 {
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.instructor-credential {
  color: var(--trust-green);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.instructor-bio {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}


/* ============================================
   CURRICULUM TIMELINE
   ============================================ */
.curriculum-timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.curriculum-timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: 28px;
  margin-bottom: 44px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
}

.timeline-content {
  flex: 1;
  padding-top: 4px;
}

.timeline-weeks {
  font-family: var(--font-body);
  font-size: var(--small-size);
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.timeline-content h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}


/* ============================================
   TESTIMONIALS — Masonry stagger
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 24px;
  align-items: start;
}

.testimonial-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 36px;
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section--cream .testimonial-card {
  background: var(--bg-white);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

/* First card is taller / more prominent */
.testimonial-card:first-child {
  padding: 44px;
}

/* Second card offset down for masonry stagger */
.testimonial-card:nth-child(2) {
  margin-top: 32px;
}

.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 8px;
  display: block;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 24px;
}

.testimonial-card:first-child .testimonial-quote {
  font-size: 1.1875rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-light), rgba(212, 88, 42, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
}

.testimonial-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.testimonial-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.testimonial-outcome {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--trust-green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


/* ============================================
   METRICS BAR (dark section)
   ============================================ */
.metrics-bar {
  padding: 80px 0;
  background: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

/* Subtle grain on metrics */
.metrics-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  mix-blend-mode: overlay;
}

.metrics-bar .container {
  position: relative;
  z-index: 1;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.metric-item h3 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric-item p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(241, 245, 249, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  cursor: pointer;
  user-select: none;
  gap: 20px;
}

.faq-question h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 400;
  color: var(--text-primary);
  flex: 1;
  transition: color 0.2s ease;
}

.faq-question:hover h3 {
  color: var(--accent);
}

.faq-toggle {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent);
  transition: all 0.25s ease;
  font-family: var(--font-body);
  font-weight: 300;
}

.faq-item.active .faq-toggle {
  background: var(--accent);
  color: var(--bg-white);
  border-color: var(--accent);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 640px;
}


/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  padding: 96px 0;
  background: var(--bg-cream);
  text-align: center;
}

.final-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.final-cta p {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1.0625rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .btn {
  margin-bottom: 20px;
}

.final-cta-phone {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.final-cta-phone a {
  color: var(--accent);
  font-weight: 500;
}

.final-cta-phone a:hover {
  text-decoration: underline;
}


/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(241, 245, 249, 0.6);
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--text-light);
  margin-bottom: 14px;
  display: block;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 280px;
  color: rgba(241, 245, 249, 0.5);
}

.footer-col h4 {
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: var(--small-size);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--label-tracking);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.9375rem;
  color: rgba(241, 245, 249, 0.5);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--text-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(241, 245, 249, 0.35);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(241, 245, 249, 0.06);
  border: 1px solid rgba(241, 245, 249, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(241, 245, 249, 0.45);
  transition: all 0.2s;
}

.social-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-white);
}


/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   EXTERNSHIP PAGE — Steps
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 auto 20px;
}

.step-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 280px;
  margin: 0 auto;
}


/* ============================================
   EXTERNSHIP PAGE — Competitor quotes
   ============================================ */
.competitor-quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.competitor-quote {
  background: var(--bg-white);
  border-left: 3px solid #C75B3A;
  border-radius: 0 12px 12px 0;
  padding: 28px 28px 28px 24px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.competitor-quote p {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.competitor-quote cite {
  font-family: var(--font-body);
  font-size: var(--small-size);
  color: var(--text-muted);
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


/* ============================================
   EXTERNSHIP PAGE — Clinic map
   ============================================ */
.clinic-map {
  background: var(--bg-dark);
  border-radius: 16px;
  padding: 56px 48px;
  text-align: center;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}

.clinic-map::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  mix-blend-mode: overlay;
}

.clinic-map > * {
  position: relative;
  z-index: 1;
}

.clinic-map h3 {
  color: var(--text-light);
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.clinic-map p {
  color: rgba(241, 245, 249, 0.6);
  margin-bottom: 24px;
  font-size: 0.9375rem;
}

.state-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.state-tag {
  background: transparent;
  border: 1px solid rgba(241, 245, 249, 0.2);
  color: var(--text-light);
  padding: 10px 24px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.state-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* ============================================
   CALIFORNIA PAGE — Compliance card
   ============================================ */
.ca-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 106, 79, 0.12);
  border: 1px solid rgba(45, 106, 79, 0.25);
  color: #5DB88A;
  padding: 8px 18px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: var(--small-size);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.6s ease forwards;
  animation-delay: 0s;
}

.compliance-section {
  padding: 96px 0;
  background: var(--bg-white);
}

.compliance-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--trust-green-light);
  border: 1px solid rgba(45, 106, 79, 0.15);
  border-radius: 16px;
  padding: 48px;
}

.compliance-card h2 {
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 2rem;
}

.compliance-card .compliance-sub {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.9375rem;
}

.compliance-list {
  list-style: none;
}

.compliance-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.compliance-list li:last-child {
  margin-bottom: 0;
}

.compliance-check {
  color: var(--trust-green);
  font-weight: 700;
  font-size: 1.125rem;
  min-width: 22px;
  padding-top: 2px;
}


/* ============================================
   RESPONSIVE — Tablet (1024px)
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --h1-size: 3.25rem;
    --h2-size: 2.375rem;
    --h3-size: 1.5rem;
    --body-size: 1.125rem;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillars-grid .pillar-card:nth-child(4),
  .pillars-grid .pillar-card:nth-child(5) {
    grid-column: auto;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonial-card:nth-child(2) {
    margin-top: 0;
  }
  .testimonial-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
  }

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


/* ============================================
   RESPONSIVE — Mobile (768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --h1-size: 2.625rem;
    --h2-size: 2rem;
    --h3-size: 1.375rem;
    --body-size: 1.0625rem;
  }

  .section {
    padding: 64px 0;
  }

  /* Header mobile */
  .header-phone {
    display: none;
  }

  .site-header {
    height: 60px;
  }

  /* Hero mobile — heavier overlay so text reads against any part of bg image */
  .hero {
    padding: 100px 0 72px;
    min-height: 0;
    background-image:
      linear-gradient(180deg,
        rgba(35, 73, 98, 0.84) 0%,
        rgba(35, 73, 98, 0.92) 65%,
        var(--bg-dark) 100%),
      url("assets/landing-pages/img/content-3.webp");
    background-position: 0 0, center center;
    background-size: 100% 100%, cover;
  }

  .hero-split {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Boxed image already hidden globally — keep these legacy rules harmless */
  .hero-image { display: none !important; }

  .hero-sub {
    font-size: 1.0625rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
  }

  /* Partners/logos mobile — centered wrap */
  .partners-grid,
  .logos-grid {
    gap: 20px;
    justify-content: center;
  }

  .partners-grid img,
  .logos-grid img,
  .logo-item img {
    height: 36px;
  }

  .logo-item {
    height: 52px;
    padding: 6px 12px;
  }

  .employer-logos {
    gap: 24px;
  }

  .employer-logos img {
    height: 36px;
  }

  .payment-banner {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
  }

  /* Program card + enrollment mobile — stack vertically */
  .form-section [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Form mobile */
  .form-card {
    padding: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Pillars mobile */
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  /* Instructors mobile */
  .instructors-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Timeline mobile */
  .curriculum-timeline::before {
    left: 23px;
  }

  /* Testimonials mobile */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-card:last-child {
    max-width: none;
  }

  /* Metrics mobile */
  .metrics-bar {
    padding: 56px 0;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .metric-item h3 {
    font-size: 2.25rem;
  }

  /* FAQ mobile */
  .faq-question h3 {
    font-size: 1.0625rem;
  }

  /* Final CTA mobile */
  .final-cta h2 {
    font-size: 1.75rem;
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Steps mobile */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps-grid::before {
    display: none;
  }

  /* Competitor quotes mobile */
  .competitor-quotes-grid {
    grid-template-columns: 1fr;
  }

  /* Clinic map mobile */
  .clinic-map {
    padding: 40px 24px;
  }

  .state-tags {
    gap: 8px;
  }

  .state-tag {
    padding: 8px 18px;
    font-size: 0.8125rem;
  }

  /* Section header */
  .section-header {
    margin-bottom: 40px;
  }
}


/* ============================================
   RESPONSIVE — Small mobile (480px)
   ============================================ */
@media (max-width: 480px) {
  :root {
    --h1-size: 2.25rem;
    --h2-size: 1.75rem;
    --h3-size: 1.25rem;
    --body-size: 1.0625rem;
  }

  /* Fix mobile logo overlap with CTA button — hide subtitle span, shrink logo */
  .hcc-landing-page .site-header .header-logo span {
    display: none !important;
  }
  .hcc-landing-page .site-header .header-logo img {
    height: 36px !important;
  }
  .hcc-landing-page .site-header .header-cta {
    padding: 8px 14px !important;
    font-size: 12px !important;
    letter-spacing: 0.02em !important;
  }
  .hcc-landing-page .site-header .header-inner {
    gap: 8px !important;
    padding: 0 16px !important;
  }

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

  .hero {
    padding: 88px 0 56px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-sub {
    max-width: 100%;
    font-size: 1rem;
  }

  .form-card--overlap {
    margin-top: -24px;
  }

  .compliance-card {
    padding: 28px;
  }
}
