/* ============================================
   Ember Health Academy — Custom Theme
   Colors: Light Teal #4AAFA8, Orange #E86A3A, White
   ============================================ */

:root {
  --teal: #4AAFA8;
  --teal-light: #E8F6F5;
  --teal-dark: #3A8F87;
  --orange: #E86A3A;
  --orange-light: #FDF0EB;
  --white: #FFFFFF;
  --off-white: #F7F9F8;
  --text-primary: #1A2E2D;
  --text-secondary: #4A6361;
  --text-muted: #7A9693;
  --border: #D4E8E6;
  --shadow-sm: 0 1px 3px rgba(74,175,168,0.08);
  --shadow-md: 0 4px 16px rgba(74,175,168,0.12);
  --shadow-lg: 0 12px 40px rgba(74,175,168,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,249,248,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  flex: 1;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--teal); }

.nav-cta {
  margin-left: auto;
  background: var(--teal);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.nav-cta:hover { background: var(--teal-dark); }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(180deg, #EDF8F7 0%, var(--off-white) 60%);
  padding: 80px 24px 0;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 520px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: white;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--teal);
  text-decoration: none;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--teal);
  transition: background 0.2s, transform 0.15s;
}

.btn-secondary:hover { background: var(--teal-light); transform: translateY(-1px); }

.btn-large { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---- HERO STATS ROW ---- */
.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.hero-stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--teal);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.3;
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---- HERO VISUAL / CARD STACK ---- */
.hero-visual { display: flex; justify-content: center; align-items: center; }

.hero-card-stack {
  position: relative;
  width: 320px;
  height: 320px;
}

.hero-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-card-back {
  width: 160px;
  top: 10px;
  left: -10px;
  transform: rotate(-6deg);
  opacity: 0.7;
}

.hero-card-main {
  width: 260px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 28px;
  border: 2px solid var(--teal);
  box-shadow: var(--shadow-lg);
}

.hero-card-front {
  width: 140px;
  bottom: 20px;
  right: -10px;
  transform: rotate(5deg);
  opacity: 0.85;
  border: 1px solid var(--orange);
}

.card-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.badge-teal { background: var(--teal-light); color: var(--teal-dark); }
.badge-orange { background: var(--orange-light); color: var(--orange); }
.badge-white { background: #f0f0f0; color: #555; }

.card-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.card-check {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- HERO BOTTOM BAR ---- */
.hero-bottom-bar {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 16px 24px;
  background: var(--teal);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.bar-text {
  font-size: 0.8rem;
  color: white;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ---- SECTION SHARED ---- */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* ---- WHO WE SERVE ---- */
.who-we-serve { background: white; }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.audience-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.audience-card-accent {
  background: var(--orange-light);
  border-color: rgba(232,106,58,0.2);
}

.audience-icon { margin-bottom: 20px; }

.audience-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.audience-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.audience-tags {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audience-tags li {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-dark);
  padding-left: 16px;
  position: relative;
}

.audience-tags li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.audience-tags-orange li { color: var(--orange); }
.audience-tags-orange li::before { background: var(--orange); }

/* ---- PROGRAMS ---- */
.programs { background: var(--off-white); }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.program-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.program-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.program-card-featured {
  border: 2px solid var(--orange);
  background: #FFFAF7;
}

.program-card-cta { background: var(--teal); border-color: var(--teal-dark); }
.program-card-cta h3, .program-card-cta p { color: white; }
.program-card-cta .program-features li { color: rgba(255,255,255,0.85); }
.program-card-cta .program-features li::before { background: rgba(255,255,255,0.6); }

.program-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--orange);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 20px;
}

.program-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.program-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.program-delivery {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-light);
  padding: 3px 8px;
  border-radius: 20px;
}

.program-hours {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.program-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.program-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
  flex: 1;
}

.program-features li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.program-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.program-cta {
  display: inline-block;
  text-align: center;
  background: var(--teal);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.program-cta:hover { background: var(--teal-dark); }

.program-cta-orange { background: var(--orange); }
.program-cta-orange:hover { background: #d55a2d; }

/* ---- WHY US ---- */
.why-us { background: white; }

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}

.why-us-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
}

.why-us-pillars {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pillar-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--teal-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pillar p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* Stats card */
.stats-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
}

.stat-big {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--teal);
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

.quote-card {
  background: var(--teal);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  color: white;
}

.quote-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 12px;
}

.quote-attr {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

/* ---- CLOSING / HEALTHCARE ORGS ---- */
.closing { background: var(--off-white); }

.closing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.closing-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 20px 0 28px;
}

.closing-services {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.closing-cta-box {
  background: var(--teal-light);
  border: 2px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.closing-cta-box h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.closing-cta-box p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ---- FOOTER ---- */
footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: white;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.875rem;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.5);
}

.footer-contact p {
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer-contact a {
  color: var(--teal);
  text-decoration: none;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col li a:hover { color: var(--teal); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-note { color: rgba(255,255,255,0.35); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .why-us-grid { grid-template-columns: 1fr; }
  .closing-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: 0; }
  .hero { padding: 40px 20px 0; }
  .section-inner { padding: 60px 20px; }
  .programs-grid { grid-template-columns: 1fr; }
  .hero-stat-row { flex-direction: column; gap: 16px; }
  .hero-stat-divider { display: none; }
  .hero-stat { align-items: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-links { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; justify-content: center; }
}