/* ══════════════════════════════════════════════════
   GP REHAB CHILD — DESIGN SYSTEM
   Inpatient Drug Rehab EMD Network
   ══════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --navy: #0c2340;
  --navy-deep: #081a30;
  --navy-90: rgba(12, 35, 64, 0.9);
  --teal: #1a8a7d;
  --teal-light: #22b8a6;
  --teal-10: rgba(26, 138, 125, 0.1);
  --teal-15: rgba(26, 138, 125, 0.15);
  --gold: #c8952e;
  --gold-light: #e8b84d;
  --warm-white: #faf8f5;
  --cream: #f5f1eb;
  --text: #2d3748;
  --text-light: #5a6577;
  --white: #ffffff;
  --border: #e2e8f0;
  --border-light: #e8ecf1;
  --green-soft: #e8f5e9;
  --blue-soft: #e3f2fd;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(12,35,64,0.15);
  --shadow-teal: 0 4px 20px rgba(26,138,125,0.35);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-pill: 20px;
  --font-heading: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: all 0.25s ease;
}

/* ── Google Fonts loaded in functions.php ── */

/* ── Global Reset Overrides ── */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
}

a { transition: var(--transition); }

/* Override GP defaults */
.site-content { background: var(--warm-white); }
.entry-content { max-width: 100%; padding: 0; }
.inside-article { padding: 0; }
article.page .entry-header { display: none; }

/* ══════════════════════════════════════════════════
   STICKY TOP BAR
   ══════════════════════════════════════════════════ */
.rehab-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--navy);
  transition: var(--transition);
  box-shadow: none;
}
.rehab-topbar.scrolled {
  background: var(--navy-90);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.rehab-topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  transition: height 0.3s ease;
}
.rehab-topbar.scrolled .rehab-topbar-inner { height: 56px; }

.rehab-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.rehab-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
}
.rehab-logo-text {
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.rehab-logo-city { color: var(--teal-light); }

.rehab-topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 12px rgba(26,138,125,0.3);
  transition: transform 0.2s ease;
}
.rehab-topbar-cta:hover {
  transform: translateY(-1px);
  color: var(--white) !important;
}

/* ══════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════ */
.rehab-hero {
  padding: 120px 24px 64px;
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 60%, #0e2f4f 100%);
  position: relative;
  overflow: hidden;
}
.rehab-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,138,125,0.08) 0%, transparent 70%);
}
.rehab-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,149,46,0.06) 0%, transparent 70%);
}
.rehab-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.rehab-hero-content { max-width: 720px; }

.rehab-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  background: var(--teal-15);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(26,138,125,0.25);
}
.rehab-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-light);
  animation: pulse 2s infinite;
}
.rehab-badge-text {
  color: var(--teal-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.rehab-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 20px;
}
.rehab-hero h1 .highlight {
  background: linear-gradient(135deg, var(--teal-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rehab-hero-desc {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
  margin: 0 0 32px;
  max-width: 600px;
}

.rehab-hero-ctas, .rehab-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.rehab-hero-fine {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.rehab-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white) !important;
  padding: 16px 32px;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--shadow-teal);
  transition: transform 0.2s ease;
  border: none;
  cursor: pointer;
}
.rehab-btn-primary:hover {
  transform: translateY(-2px);
  color: var(--white) !important;
}

.rehab-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white) !important;
  padding: 16px 28px;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}
.rehab-btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  color: var(--white) !important;
}

/* Trust badges row */
.rehab-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.rehab-trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rehab-trust-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--teal-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  flex-shrink: 0;
}
.rehab-trust-badge-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
}
.rehab-trust-badge-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* ══════════════════════════════════════════════════
   SOCIAL PROOF BAR
   ══════════════════════════════════════════════════ */
.rehab-proof-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 24px;
}
.rehab-proof-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}
.rehab-proof-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rehab-proof-num {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}
.rehab-proof-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}
.rehab-stars { display: flex; gap: 1px; color: var(--gold); }

/* ══════════════════════════════════════════════════
   SECTION PATTERNS
   ══════════════════════════════════════════════════ */
.rehab-section {
  padding: 64px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.rehab-section--cream { background: var(--cream); }
.rehab-section--navy { background: var(--navy); }
.rehab-section--full { max-width: 100%; }

.rehab-section-header {
  text-align: center;
  margin-bottom: 40px;
}
.rehab-section-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.rehab-section h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}
.rehab-section-desc {
  font-size: 16px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════
   SUBSTANCE CARDS GRID
   ══════════════════════════════════════════════════ */
.rehab-substances-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}
.rehab-substance-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.rehab-substance-card:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.rehab-substance-card-icon { font-size: 28px; }
.rehab-substance-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.rehab-substance-card:hover .rehab-substance-card-name { color: var(--white); }

/* ══════════════════════════════════════════════════
   TIMELINE / STEPS
   ══════════════════════════════════════════════════ */
.rehab-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.rehab-step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.rehab-step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 14px 0 0 14px;
}
.rehab-step-card--teal::before { background: var(--teal); }
.rehab-step-card--navy::before { background: var(--navy); }
.rehab-step-card--gold::before { background: var(--gold); }

.rehab-step-num {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
  opacity: 0.12;
}
.rehab-step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0 10px;
}
.rehab-step-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-light);
  margin: 0;
}

/* ══════════════════════════════════════════════════
   TWO-COLUMN LAYOUT (Why Choose + Insurance CTA)
   ══════════════════════════════════════════════════ */
.rehab-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

.rehab-checklist { display: flex; flex-direction: column; gap: 14px; }
.rehab-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.rehab-check-icon {
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--teal);
}
.rehab-check-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.rehab-cta-card {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 36px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.rehab-cta-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(26,138,125,0.15);
}
.rehab-cta-card h3 {
  color: var(--white);
  font-size: 24px;
  margin: 0 0 20px;
  position: relative;
}
.rehab-cta-card p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.8;
  margin: 0 0 24px;
  position: relative;
}
.rehab-cta-card .rehab-btn-primary { width: 100%; justify-content: center; }
.rehab-cta-card-fine {
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
  margin-top: 12px;
  position: relative;
}

/* ══════════════════════════════════════════════════
   INSURANCE LOGO BAR
   ══════════════════════════════════════════════════ */
.rehab-insurance-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.rehab-insurance-logo {
  background: var(--white);
  border-radius: 10px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  min-width: 140px;
}
.rehab-insurance-logo span {
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════
   FAQ ACCORDION
   ══════════════════════════════════════════════════ */
.rehab-faq-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 8px 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 0 auto;
}
.rehab-faq-item {
  border-bottom: 1px solid var(--border);
}
.rehab-faq-item:last-child { border-bottom: none; }

.rehab-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  line-height: 1.4;
}
.rehab-faq-question:hover { color: var(--teal); }

.rehab-faq-chevron {
  margin-left: 16px;
  flex-shrink: 0;
  color: var(--teal);
  transition: transform 0.3s ease;
  width: 20px;
  height: 20px;
}
.rehab-faq-item.open .rehab-faq-chevron { transform: rotate(180deg); }

.rehab-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding-bottom: 0;
}
.rehab-faq-item.open .rehab-faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}
.rehab-faq-answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
}

/* ══════════════════════════════════════════════════
   INTERNAL LINKS GRID
   ══════════════════════════════════════════════════ */
.rehab-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.rehab-link-card {
  display: block;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy) !important;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.rehab-link-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: var(--teal) !important;
}

/* ══════════════════════════════════════════════════
   NEARBY CITY PILLS
   ══════════════════════════════════════════════════ */
.rehab-nearby-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rehab-nearby-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  background: var(--blue-soft);
  color: var(--navy) !important;
  text-decoration: none !important;
  font-weight: 500;
  border: 1px solid #bbdefb;
  transition: var(--transition);
}
.rehab-nearby-pill:hover {
  background: var(--navy);
  color: var(--white) !important;
  border-color: var(--navy);
}

/* ══════════════════════════════════════════════════
   FINAL CTA SECTION
   ══════════════════════════════════════════════════ */
.rehab-final-cta {
  padding: 64px 24px;
  background: var(--navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.rehab-final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,138,125,0.1) 0%, transparent 70%);
}
.rehab-final-cta-inner {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.rehab-final-cta h2 {
  color: var(--white);
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 16px;
  line-height: 1.2;
}
.rehab-final-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 32px;
  line-height: 1.6;
}
.rehab-final-cta .rehab-btn-primary {
  font-size: 18px;
  padding: 18px 40px;
  border-radius: 12px;
}
.rehab-final-cta-fine {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.rehab-footer {
  padding: 40px 24px 24px;
  background: var(--navy-deep);
}
.rehab-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.rehab-footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}
.rehab-footer-brand { max-width: 280px; }
.rehab-footer-brand-name {
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font-heading);
  margin-bottom: 12px;
}
.rehab-footer-brand-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.rehab-footer-col-title {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.rehab-footer a {
  display: block;
  color: rgba(255,255,255,0.4) !important;
  font-size: 13px;
  text-decoration: none !important;
  margin-bottom: 8px;
}
.rehab-footer a:hover { color: var(--teal-light) !important; }

.rehab-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ══════════════════════════════════════════════════
   STICKY MOBILE CTA
   ══════════════════════════════════════════════════ */
.rehab-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-90);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  z-index: 9998;
  border-top: 2px solid var(--teal);
  display: none;
}
.rehab-mobile-cta .rehab-btn-primary {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 14px;
}

@media (max-width: 768px) {
  .rehab-mobile-cta { display: block; }
  body { padding-bottom: 70px; }
  .rehab-hero { padding-top: 100px; padding-bottom: 48px; }
  .rehab-trust-badges { flex-direction: column; gap: 16px; }
  .rehab-proof-bar-inner { gap: 20px; }
  .rehab-two-col { gap: 24px; }
  .rehab-footer-grid { flex-direction: column; }
}

/* ══════════════════════════════════════════════════
   CONTENT BODY STYLES (for inner pages)
   ══════════════════════════════════════════════════ */
.rehab-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}
.rehab-content h2 {
  font-size: 28px;
  margin: 48px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.rehab-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.rehab-content h3 {
  font-size: 22px;
  margin: 32px 0 12px;
}
.rehab-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 20px;
}
.rehab-content ul, .rehab-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
.rehab-content li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 8px;
}

/* Comparison table */
.rehab-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.rehab-comparison-table thead {
  background: var(--navy);
  color: var(--white);
}
.rehab-comparison-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.rehab-comparison-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.rehab-comparison-table tr:nth-child(even) { background: var(--cream); }
.rehab-comparison-table tr:hover { background: var(--blue-soft); }

/* Callout boxes */
.rehab-callout {
  padding: 24px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  border-left: 4px solid;
}
.rehab-callout--info {
  background: var(--blue-soft);
  border-color: #2196F3;
}
.rehab-callout--warning {
  background: #fff3cd;
  border-color: var(--gold);
}
.rehab-callout--success {
  background: var(--green-soft);
  border-color: var(--teal);
}
.rehab-callout p { margin: 0; font-size: 15px; }

/* ══════════════════════════════════════════════════
   HIDE GP DEFAULT ELEMENTS
   ══════════════════════════════════════════════════ */
.rehab-page .site-header,
.rehab-page .site-footer,
.rehab-page #secondary,
.rehab-page .entry-meta,
.rehab-page .post-navigation,
.rehab-page .comments-area {
  display: none !important;
}
.rehab-page .site-content {
  padding: 0 !important;
  margin: 0 !important;
}
.rehab-page .container.grid-container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ══════════════════════════════════════════════
   DESKTOP NAVIGATION
   ══════════════════════════════════════════════ */
.rehab-nav {
  display: none;
  align-items: center;
  gap: 2px;
  margin: 0 auto 0 24px;
}
@media (min-width: 900px) {
  .rehab-nav { display: flex; }
}
.rehab-nav-item {
  position: relative;
}
.rehab-nav-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.rehab-nav-toggle:hover,
.rehab-nav-toggle:focus-visible {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.rehab-nav-toggle svg {
  transition: transform 0.2s;
}
.rehab-nav-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Dropdown */
.rehab-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
  min-width: 220px;
  padding: 6px 0;
  z-index: 9999;
  margin-top: 4px;
}
.rehab-nav-dropdown.open {
  display: block;
  animation: rehab-dropdown-in 0.15s ease-out;
}
@keyframes rehab-dropdown-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rehab-nav-dropdown a {
  display: block;
  padding: 10px 18px;
  color: #1a2332;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
}
.rehab-nav-dropdown a:hover,
.rehab-nav-dropdown a:focus-visible {
  background: #f0f6fa;
  color: #247c8a;
}

/* ══════════════════════════════════════════════
   HAMBURGER BUTTON (MOBILE)
   ══════════════════════════════════════════════ */
.rehab-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  margin-right: 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.rehab-hamburger:hover {
  background: rgba(255,255,255,0.1);
}
.rehab-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.rehab-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.rehab-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.rehab-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (min-width: 900px) {
  .rehab-hamburger { display: none; }
}

/* ══════════════════════════════════════════════
   MOBILE NAV DRAWER
   ══════════════════════════════════════════════ */
.rehab-mobile-nav {
  display: none;
  background: #1a2332;
  padding: 16px 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.rehab-mobile-nav.open {
  display: block;
  animation: rehab-slide-down 0.2s ease-out;
}
@keyframes rehab-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rehab-mobile-nav-section {
  margin-bottom: 16px;
}
.rehab-mobile-nav-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
  padding: 0 4px;
}
.rehab-mobile-nav-section a {
  display: block;
  padding: 9px 4px 9px 12px;
  color: rgba(255,255,255,0.88);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.12s;
}
.rehab-mobile-nav-section a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.rehab-mobile-nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: #247c8a;
  color: #fff !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 8px;
}

/* Body scroll lock when mobile nav open */
body.rehab-nav-open {
  overflow: hidden;
}
@media (min-width: 900px) {
  .rehab-mobile-nav { display: none !important; }
}

/* ══════════════════════════════════════════════
   BREADCRUMBS
   ══════════════════════════════════════════════ */
.rehab-breadcrumbs {
  background: #f0f0ea;
  padding: 12px 0;
  margin-top: 64px; /* below sticky topbar */
  border-bottom: 1px solid #e0dfd8;
}
.rehab-breadcrumbs-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: #6b7280;
}
.rehab-breadcrumbs a {
  color: #247c8a;
  text-decoration: none;
}
.rehab-breadcrumbs a:hover {
  text-decoration: underline;
}
.rehab-bc-sep {
  margin: 0 8px;
  color: #9ca3af;
}

/* Adjust main content top margin on inner pages (breadcrumbs absorb margin) */
.rehab-breadcrumbs + .rehab-main {
  margin-top: 0;
}
