/* ============================================================
   Components — Reusable UI patterns
   ============================================================ */

/* --- Buttons --- */
.apoh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: var(--w-bold);
  font-size: var(--fs-body);
  letter-spacing: 0;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  white-space: nowrap;
  line-height: 1;
}

.apoh-btn--primary { background: var(--apoh-green); color: var(--fg-on-green); }
.apoh-btn--primary:hover { background: var(--apoh-green-darker); text-decoration: none; }
.apoh-btn--primary:active { background: var(--apoh-green-darkest); transform: translateY(1px); }

.apoh-btn--secondary { background: var(--apoh-blue); color: var(--fg-on-blue); }
.apoh-btn--secondary:hover { background: var(--apoh-blue-darker); text-decoration: none; }
.apoh-btn--secondary:active { background: var(--apoh-blue-darkest); transform: translateY(1px); }

.apoh-btn--ghost {
  background: transparent;
  color: var(--apoh-blue);
  border: 1.5px solid var(--apoh-blue);
}
.apoh-btn--ghost:hover { background: var(--apoh-blue-tint); text-decoration: none; }

.apoh-btn--sm { padding: 10px 18px; font-size: var(--fs-small); }
.apoh-btn--lg { padding: 18px 36px; font-size: var(--fs-body-lg); }

/* --- Cards --- */
.apoh-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-8);
}
.apoh-card--lg { border-radius: var(--radius-xl); padding: var(--space-10); }
.apoh-card--clickable {
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.apoh-card--clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Form inputs --- */
.apoh-input {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--fg-1);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  width: 100%;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.apoh-input:focus {
  outline: none;
  border-color: var(--apoh-blue);
  box-shadow: 0 0 0 3px rgba(36, 106, 180, 0.15);
}

.apoh-label {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: var(--w-bold);
  color: var(--fg-1);
  display: block;
  margin-bottom: 6px;
}

textarea.apoh-input {
  resize: vertical;
  min-height: 100px;
}

select.apoh-input {
  appearance: none;
  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='%23585961' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* --- Step circles (Admissions process) --- */
.apoh-step {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-slab);
  font-weight: var(--w-bold);
  font-size: 28px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}
.apoh-step--sm { width: 40px; height: 40px; font-size: 20px; }
.apoh-step--lg { width: 72px; height: 72px; font-size: 36px; }
.apoh-step--1 { background: var(--step-1); }
.apoh-step--2 { background: var(--step-2); }
.apoh-step--3 { background: var(--step-3); }
.apoh-step--4 { background: var(--step-4); }

/* --- Section label (eyebrow) --- */
.apoh-section-label {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: var(--w-bold);
  letter-spacing: var(--tracking-allcaps);
  text-transform: uppercase;
  color: var(--apoh-blue);
}
.apoh-section-label--green { color: var(--apoh-green); }
.apoh-section-label--orange { color: var(--apoh-orange); }
.apoh-section-label--white { color: #fff; }

/* --- Star rating row --- */
.apoh-star-row {
  display: inline-flex;
  gap: 2px;
}
.apoh-star-row svg {
  width: 18px;
  height: 18px;
  fill: var(--apoh-gold);
}

/* --- Phone CTA --- */
.apoh-phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: var(--w-bold);
  color: var(--apoh-blue);
  text-decoration: none;
  white-space: nowrap;
}
.apoh-phone-cta:hover { text-decoration: none; color: var(--apoh-blue-darker); }
.apoh-phone-cta svg { width: 20px; height: 20px; flex-shrink: 0; }
.apoh-phone-cta--white { color: #fff; }
.apoh-phone-cta--white:hover { color: rgba(255, 255, 255, 0.85); }
.apoh-phone-cta--lg { font-size: var(--fs-body-lg); }
.apoh-phone-cta--lg svg { width: 24px; height: 24px; }

/* --- Swoosh (brand ornament) --- */
.apoh-swoosh {
  display: block;
  color: var(--apoh-green);
}

/* --- Breadcrumbs --- */
.apoh-breadcrumbs {
  background: #FAFAF9;
  border-bottom: 1px solid #E7E7E5;
  font-size: 13px;
  color: #9A9CA3;
  position: relative;
  z-index: 5;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.apoh-breadcrumbs .apoh-container {
  padding-top: 12px;
  padding-bottom: 12px;
}
.apoh-breadcrumbs__current { color: #1F2A3D; font-weight: 600; }
.apoh-breadcrumbs__sep { margin: 0 8px; color: var(--border-strong); }
.apoh-breadcrumbs a { color: var(--fg-1); text-decoration: none; }
.apoh-breadcrumbs a:hover { color: var(--fg-link); }

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(180deg, #FAFAF9 0%, #fff 100%);
  border-bottom: 1px solid var(--border-hairline);
  padding: 64px 32px 56px;
  text-align: center;
}
.page-header__inner {
  max-width: 1080px;
  margin: 0 auto;
}
.page-header__title {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 900;
  color: #1F2A3D;
  letter-spacing: -0.025em;
  margin: 0 auto 22px;
  max-width: 920px;
  text-wrap: balance;
}
.page-header__title em {
  font-style: italic;
  color: var(--apoh-blue);
  font-family: var(--font-slab);
}
.page-header__lead {
  font-size: 19px;
  line-height: 1.55;
  color: #585961;
  max-width: 780px;
  margin: 0 auto 28px;
  font-weight: 400;
}
@media (max-width: 768px) {
  .page-header { padding: 40px 20px 36px; }
  .page-header__title { font-size: 36px; }
}

/* ── Video Modal Lightbox ── */
.apoh-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.apoh-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 26, 45, 0.85);
  backdrop-filter: blur(4px);
}

.apoh-video-modal__content {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  background: #000;
}

.apoh-video-modal__content iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.apoh-video-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.apoh-video-modal__close:hover { background: rgba(0, 0, 0, 0.8); }

/* ── Video Thumbnail Card (reusable) ── */
.award__video-inner,
.info-video__thumb,
[data-video-url] .video-thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  background: #0E1A2D;
}

.award__video-inner img,
.info-video__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.award__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 26, 61, 0.35) 0%, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.award__video-play,
.info-video__play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

[data-video-url]:hover .award__video-play,
[data-video-url]:hover .info-video__play {
  transform: scale(1.08);
}

.award__video-duration {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
}

.award__video-caption {
  font-size: 13px;
  color: var(--fg-2);
  margin-top: 12px;
  line-height: 1.4;
}

.award__video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #89BE40 0%, #246AB4 100%);
}

/* ── 404 Page ── */
.apoh-404 {
  padding: 80px 0 100px;
  text-align: center;
}

.apoh-404__inner { max-width: 640px; margin: 0 auto; }

.apoh-404__code {
  font-family: var(--font-slab);
  font-size: 120px;
  font-weight: 900;
  color: var(--apoh-green);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  opacity: 0.3;
}

.apoh-404__title {
  font-size: 40px;
  font-weight: 900;
  color: #1F2A3D;
  margin: 0 0 16px;
}

.apoh-404__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-1);
  margin: 0 0 32px;
}

.apoh-404__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.apoh-404__links {
  text-align: left;
  background: var(--bg-subtle);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 32px;
}

.apoh-404__links-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--apoh-blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.apoh-404__links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.apoh-404__links li { margin: 0; }

.apoh-404__links a {
  font-size: 15px;
  font-weight: 600;
  color: #1F2A3D;
  text-decoration: none;
}
.apoh-404__links a:hover { color: var(--apoh-blue); }

.apoh-404__phone { margin-top: 24px; }
.apoh-404__phone p {
  font-size: 13px;
  color: var(--fg-2);
  margin: 0 0 12px;
}

@media (max-width: 768px) {
  .apoh-404__code { font-size: 80px; }
  .apoh-404__title { font-size: 30px; }
  .apoh-404__links ul { grid-template-columns: 1fr; }
}

/* ── Callback Form (shared across templates) ── */
.callback-form { background: linear-gradient(180deg, #fff 0%, #F0F5FB 60%, #fff 100%); }
.callback-form__header { text-align: center; margin-bottom: 32px; }

.callback-form__title {
  font-size: 36px;
  font-weight: 900;
  color: #1F2A3D;
  margin: 12px 0 10px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.callback-form__title-accent { color: var(--apoh-blue); }

.callback-form__lead {
  font-size: 15px;
  color: var(--fg-1);
  margin: 0 auto;
  max-width: 540px;
  line-height: 1.5;
}

.callback-form__body {
  box-shadow: 0 18px 50px rgba(31, 42, 61, 0.07);
}

.callback-form__badges {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fg-1);
  flex-wrap: wrap;
}

.callback-form__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 768px) {
  .callback-form__title { font-size: 28px; }
}

/* ── Get Help Now (global closing CTA) ── */
.get-help {
  background: linear-gradient(180deg, #fff 0%, #F0F5FB 100%);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border-hairline);
}

.get-help__inner { max-width: 880px; }

.get-help__title {
  font-size: 38px;
  font-weight: 900;
  color: #1F2A3D;
  margin: 12px 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: pretty;
}

.get-help__accent { color: var(--apoh-blue); }

.get-help__note { font-size: 16px; color: var(--fg-1); margin: 0 0 28px; line-height: 1.6; }
.get-help__ctas { display: inline-flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── In-Network Band (global insurance callout) ── */
.in-network {
  background: #fff;
  padding: 40px 0;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.in-network__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1280px;
}

.in-network__left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.in-network__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #E9F0F9;
  color: var(--apoh-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.in-network__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--apoh-blue);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.in-network__text {
  font-size: 16px;
  font-weight: 700;
  color: #1F2A3D;
  line-height: 1.3;
  margin: 0;
}
