/* ============================================================
   Homepage additions — 3 SEO sections (HUD 2026, State Cards,
   Legitimacy Checklist). Loaded only on the homepage.
   Uses existing global variables from css/style.css.
   ============================================================ */

/* ---------- SECTION 1 — HUD 2026 Enforcement Change ---------- */
.hp-hud {
  background: var(--color-bg-warm);
  padding: 72px 0 64px;
}
.hp-hud__inner {
  max-width: 900px;
  margin: 0 auto;
}
.hp-hud__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 91, 46, 0.07);
  border: 1px solid rgba(255, 91, 46, 0.22);
  color: var(--color-orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hp-hud__badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.hp-hud__h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-navy);
  margin: 16px 0 14px;
}
.hp-hud__lead {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  color: var(--color-navy);
  opacity: 0.78;
  margin: 0 0 32px;
}
.hp-hud__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hp-hud__card {
  border-radius: var(--radius-lg);
  padding: 24px;
}
.hp-hud__card--changed { background: #fff5f5; border: 1px solid rgba(192, 57, 43, 0.18); }
.hp-hud__card--same    { background: #f0fbf5; border: 1px solid rgba(45, 122, 79, 0.18); }
.hp-hud__card-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hp-hud__card-label svg { width: 16px; height: 16px; flex-shrink: 0; }
.hp-hud__card-label--changed { color: #c0392b; }
.hp-hud__card-label--same    { color: #2d7a4f; }
.hp-hud__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hp-hud__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-navy);
  opacity: 0.85;
}
.hp-hud__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}
.hp-hud__callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-bg-peach);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-navy);
}
.hp-hud__callout svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.hp-hud__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
}
.hp-hud__textlink {
  color: var(--color-orange);
  text-decoration: underline;
  font-weight: 700;
  font-size: 15px;
}
.hp-hud__btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--color-orange);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 900;
  font-size: 16px;
  box-shadow: var(--shadow-cta);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.hp-hud__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-cta-hover); color: #fff; text-decoration: none; }

@media (max-width: 900px) {
  .hp-hud { padding: 56px 0 48px; }
  .hp-hud__grid { grid-template-columns: 1fr; }
  .hp-hud__links { flex-direction: column; align-items: stretch; gap: 14px; }
  .hp-hud__textlink { text-align: center; }
  .hp-hud__btn { text-align: center; }
}

/* ---------- SECTION 2 — State Clinician Callouts ---------- */
.hp-states {
  background: var(--color-bg-warm);
  padding: 80px 0 72px;
}
.hp-states__eyebrow {
  text-align: center;
  color: var(--color-orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.hp-states__h2 {
  text-align: center;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-navy);
  margin: 0 0 14px;
}
.hp-states__sub {
  text-align: center;
  max-width: 722px;
  margin: 0 auto 36px;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.6;
  color: var(--color-navy);
  opacity: 0.72;
}
.hp-states__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hp-state-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-decoration: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.hp-state-card:hover {
  border-color: var(--color-orange);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  text-decoration: none;
}
.hp-state-card:hover .hp-state-card__name,
.hp-state-card:hover .hp-state-card__note { text-decoration: none; }
.hp-state-card__abbr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(255, 91, 46, 0.08);
  border: 1px solid rgba(255, 91, 46, 0.14);
  color: var(--color-orange);
  font-size: 13px;
  font-weight: 900;
}
.hp-state-card__text { flex: 1; min-width: 0; }
.hp-state-card__name { display: block; font-size: 15px; font-weight: 700; color: var(--color-navy); }
.hp-state-card__note { display: block; font-size: 12px; color: var(--color-text-secondary); margin-top: 2px; }
.hp-state-card__arrow {
  color: var(--color-orange);
  font-size: 16px;
  opacity: 0.5;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.hp-state-card:hover .hp-state-card__arrow { opacity: 1; transform: translateX(3px); }
.hp-states__foot {
  text-align: center;
  margin: 34px 0 0;
  font-size: 15px;
  color: var(--color-navy);
  opacity: 0.8;
}
.hp-states__foot-link { color: var(--color-orange); font-weight: 700; text-decoration: none; }
.hp-states__foot-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hp-states { padding: 56px 0 48px; }
  .hp-states__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hp-states__grid { grid-template-columns: 1fr; }
  .hp-state-card__abbr { width: 38px; height: 38px; }
}

/* ---------- SECTION 3 — Legitimate vs Fake Checklist ---------- */
.hp-legit {
  background: var(--color-bg-warm);
  padding: 80px 0 72px;
}
.hp-legit__inner { max-width: 1080px; margin: 0 auto; }
.hp-legit__eyebrow {
  text-align: center;
  color: var(--color-orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.hp-legit__h2 {
  text-align: center;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-navy);
  margin: 0 0 14px;
}
.hp-legit__sub {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.6;
  color: var(--color-navy);
  opacity: 0.72;
}
.hp-legit__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hp-legit-card {
  display: flex;
  gap: 14px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-orange);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.hp-legit-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.hp-legit-card__num {
  font-size: 22px;
  font-weight: 900;
  color: var(--color-orange);
  opacity: 0.25;
  flex-shrink: 0;
  line-height: 1;
}
.hp-legit-card__body { flex: 1; }
.hp-legit-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 8px;
  line-height: 1.3;
}
.hp-legit-card__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-navy);
  opacity: 0.78;
  margin: 0 0 14px;
}
.hp-legit-pill {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  line-height: 1.4;
}
.hp-legit-pill svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 1px; }
.hp-legit-pill + .hp-legit-pill { margin-top: 8px; }
.hp-legit-pill--pass { background: rgba(45, 122, 79, 0.07); color: #2d7a4f; }
.hp-legit-pill--flag { background: rgba(192, 57, 43, 0.06); color: #c0392b; }
/* Standalone CTA section (moved out of the legitimacy checklist) */
.hp-cta-section {
  background: var(--color-bg-white);
  padding: 80px 0 ;
}
.hp-legit-cta {
  background: var(--color-bg-peach);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 40px 48px;
  border: 1.5px solid rgba(255, 91, 46, 0.15);
}
.hp-legit-cta__icon { color: var(--color-orange); }
.hp-legit-cta__icon svg { width: 40px; height: 40px; }
.hp-legit-cta__h {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  color: var(--color-navy);;
  margin: 12px 0 10px;
}
.hp-legit-cta__p {
  color: var(--color-text-body);
  opacity: 0.65;
  font-size: 15px;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 24px;
}
.hp-legit-cta__btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--color-orange);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 900;
  font-size: 16px;
  box-shadow: var(--shadow-cta);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.hp-legit-cta__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-cta-hover); color: #fff; text-decoration: none; }

@media (max-width: 900px) {
  .hp-legit { padding: 56px 0 48px; }
  .hp-legit__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hp-legit__grid { grid-template-columns: 1fr; }
  .hp-legit-cta { padding: 32px; }
}
