/* ==========================================================================
   UPPS Wellness TMS Clinic - Official Stylesheet (V3.0 Modern Overhaul)
   Strict Brand Kit Guidelines:
   - UPPS Blue: #1779BD
   - Sky Blue: #20A8D5
   - UPPS Green: #3B9B2D
   - Lime Green: #9CCB2D
   - Charcoal: #1A242D
   - Backgrounds: Clean Pure White (#FFFFFF) / Soft Slate Tints (#F4F8FB, #F8FAFC)
   - Typography: Montserrat (Headings) / Inter (Body)
   ========================================================================== */

:root {
  /* Official Brand Palette */
  --upps-blue: #1779BD;
  --upps-blue-hover: #125F95;
  --upps-blue-dark: #0E4870;
  --sky-blue: #20A8D5;
  --sky-blue-hover: #1994BC;
  --sky-blue-light: #EBF7FC;
  --sky-blue-subtle: #F2FAFD;
  
  --upps-green: #3B9B2D;
  --upps-green-hover: #2E7E23;
  --lime-green: #9CCB2D;
  --green-light: #EFF8EE;
  
  --charcoal: #1A242D;
  --charcoal-light: #3D4D5C;
  --text-secondary: #596773;
  --text-muted: #7A8996;
  
  /* Clinical Neutrals & Surfaces */
  --bg-page: #FFFFFF;
  --bg-soft: #F4F8FB;
  --bg-subtle: #F8FAFC;
  --bg-dark: #0B2133;
  --bg-dark-surface: #102C42;
  
  --border-line: #E2EBF1;
  --border-card: #E4EDF3;
  --border-focus: #1779BD;
  
  /* Modern Liquid Glass & Elevation Tokens */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 10px 30px -5px rgba(23, 121, 189, 0.08);
  
  --shadow-sm: 0 2px 8px rgba(14, 38, 59, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(14, 38, 59, 0.08);
  --shadow-lg: 0 20px 40px -10px rgba(14, 38, 59, 0.12);
  --shadow-hover: 0 22px 48px -12px rgba(23, 121, 189, 0.18);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  color: var(--charcoal);
  background-color: var(--bg-page);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* Universal Text & Link Word Wrapping to Prevent Overflow */
h1, h2, h3, h4, h5, h6, p, a, span, li, button, input, label {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.22;
  letter-spacing: -0.022em;
}

h1 {
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 700;
}

h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
}

h4 {
  font-size: 17px;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.text-blue { color: var(--upps-blue); }
.text-green { color: var(--upps-green); }
.text-sky { color: var(--sky-blue); }
.text-charcoal { color: var(--charcoal); }

/* Layout Containers */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(68px, 7.5vw, 104px) 0;
  position: relative;
}

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

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

.section-bg-dark {
  background-color: var(--bg-dark);
  color: #FFFFFF;
}

.section-head {
  margin-bottom: 52px;
}

.section-head.center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-desc {
  font-size: 17.5px;
  color: var(--text-secondary);
  margin-top: 14px;
  line-height: 1.7;
}

.section-bg-dark .section-desc {
  color: rgba(255, 255, 255, 0.88);
}

/* Eyebrows & Badges */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--upps-blue);
  background: var(--sky-blue-light);
  border: 1px solid rgba(32, 168, 213, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.eyebrow-light {
  color: #7FCDEE;
  background: rgba(32, 168, 213, 0.15);
  border-color: rgba(127, 205, 238, 0.3);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  background: var(--sky-blue-light);
  color: var(--upps-blue);
  border: 1px solid rgba(32, 168, 213, 0.2);
}

.badge-green {
  background: var(--green-light);
  color: var(--upps-green);
  border-color: rgba(59, 155, 45, 0.2);
}

/* Live Status Pulse Indicator */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* High-Status Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 13px 26px;
  min-height: 48px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--upps-blue);
  color: #FFFFFF !important;
  border-color: var(--upps-blue);
  box-shadow: 0 4px 14px rgba(23, 121, 189, 0.28);
}

.btn-primary:hover {
  background-color: var(--upps-blue-hover);
  border-color: var(--upps-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23, 121, 189, 0.38);
}

.btn-green {
  background-color: var(--upps-green);
  color: #FFFFFF !important;
  border-color: var(--upps-green);
  box-shadow: 0 4px 14px rgba(59, 155, 45, 0.25);
}

.btn-green:hover {
  background-color: var(--upps-green-hover);
  border-color: var(--upps-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 155, 45, 0.35);
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background-color: #FFFFFF;
  color: var(--upps-blue) !important;
  border-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.btn-outline-blue {
  background-color: transparent;
  color: var(--upps-blue);
  border-color: var(--upps-blue);
}

.btn-outline-blue:hover {
  background-color: var(--upps-blue);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23, 121, 189, 0.25);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
  min-height: 40px;
}

.btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Header & Navigation (Floating Glass Scrolled Island)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-line);
  transition: all 0.35s var(--ease);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 30px -8px rgba(14, 38, 59, 0.1);
  border-bottom-color: rgba(226, 235, 241, 0.6);
}

.nav-wrap {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 8px clamp(16px, 2.8vw, 40px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  height: clamp(56px, 4.8vw, 72px);
  width: auto;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}

.nav-logo:hover {
  transform: scale(1.02);
}

nav[aria-label="Primary Navigation"] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.8vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  position: relative;
  letter-spacing: 0.1px;
  transition: all 0.25s var(--ease);
}

.nav-links a:hover {
  color: var(--upps-blue);
  background: var(--sky-blue-light);
}

.nav-links a.is-active {
  color: var(--upps-blue);
  background: var(--sky-blue-light);
  box-shadow: inset 0 0 0 1px rgba(32, 168, 213, 0.25);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--charcoal);
  font-family: 'Montserrat', sans-serif;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: #F4F8FB;
  border: 1px solid var(--border-line);
  transition: all 0.25s var(--ease);
}

.nav-phone-link svg {
  stroke: var(--upps-blue);
  flex-shrink: 0;
}

.nav-phone-link:hover {
  color: var(--upps-blue);
  background: var(--sky-blue-light);
  border-color: rgba(32, 168, 213, 0.3);
}

/* Mobile Navigation Toggle (Interactive Hamburger) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: all 0.25s var(--ease);
  position: relative;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: var(--bg-soft);
  border-color: var(--upps-blue);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), background-color 0.3s var(--ease);
  transform-origin: center;
}

.nav-toggle.is-open {
  background: var(--sky-blue-light);
  border-color: var(--upps-blue);
}

.nav-toggle.is-open span {
  background: var(--upps-blue);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7.2px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7.2px) rotate(-45deg);
}

/* Mobile Drawer Backdrop Overlay */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 33, 51, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  pointer-events: none;
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 2px solid var(--upps-blue);
  box-shadow: 0 20px 40px rgba(11, 33, 51, 0.22);
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease), visibility 0.35s var(--ease);
  z-index: 999;
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Montserrat', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--charcoal);
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
  text-decoration: none;
}

.mobile-nav-links a svg {
  stroke: var(--text-muted);
  transition: transform 0.2s var(--ease), stroke 0.2s var(--ease);
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
  background: var(--bg-soft);
  color: var(--upps-blue);
}

.mobile-nav-links a:hover svg,
.mobile-nav-links a:active svg {
  stroke: var(--upps-blue);
  transform: translateX(3px);
}

.mobile-nav-links a.is-active {
  background: var(--sky-blue-light);
  color: var(--upps-blue);
  border-color: rgba(32, 168, 213, 0.35);
  font-weight: 700;
}

.mobile-nav-links a.is-active svg {
  stroke: var(--upps-blue);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-line);
}

.mobile-nav-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #F4F8FB;
  border: 1px solid var(--border-line);
  color: var(--charcoal);
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--ease);
}

.mobile-nav-call:hover {
  background: var(--sky-blue-light);
  border-color: rgba(32, 168, 213, 0.4);
}

.mobile-nav-call svg {
  stroke: var(--upps-blue);
  flex-shrink: 0;
}

.mobile-nav-call strong {
  color: var(--upps-blue);
}

.mobile-nav-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 14.5px;
  padding: 13px 20px;
}

.mobile-nav-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

body.nav-menu-open {
  overflow: hidden !important;
  touch-action: none;
}

/* ==========================================================================
   Hero Section (Atmospheric Medical Authority)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 90vh;
  padding-top: 140px;
  padding-bottom: 84px;
  display: flex;
  align-items: center;
  background-color: var(--bg-dark);
  color: #FFFFFF;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  z-index: 1;
  transform: scale(1.05);
  transition: opacity 0.8s ease-in-out, transform 5s ease-out;
  pointer-events: none;
  will-change: opacity, transform;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(11, 33, 51, 0.72) 0%,
    rgba(11, 33, 51, 0.86) 55%,
    rgba(11, 33, 51, 0.97) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  color: #FFFFFF;
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 22px;
}

.hero-title .highlight {
  color: #7FCDEE;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 1.8vw, 19.5px);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13.5px;
  font-weight: 500;
}

.trust-item svg {
  stroke: var(--lime-green);
  flex-shrink: 0;
}

/* Page Sub-Hero Banner (About, TMS, FAQ, Contact) */
.page-hero {
  position: relative;
  padding-top: 160px;
  padding-bottom: 80px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
}

.page-hero .container {
  position: relative;
  z-index: 3;
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(11, 33, 51, 0.75) 0%,
    rgba(11, 33, 51, 0.92) 100%
  );
}

.page-hero h1 {
  color: #FFFFFF;
  max-width: 860px;
  margin: 0 auto 16px;
  font-size: clamp(28px, 3.8vw, 44px);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 700px;
  margin: 0 auto;
  font-size: clamp(16px, 1.7vw, 18.5px);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 14px;
}

.breadcrumbs a {
  color: #7FCDEE;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Bento Conditions Grid & Cards (Modern Layering)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 36px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--upps-blue);
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--sky-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: all 0.3s var(--ease);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--upps-blue);
  transition: stroke 0.3s var(--ease);
}

.card:hover .card-icon {
  background: var(--upps-blue);
  transform: scale(1.06);
}

.card:hover .card-icon svg {
  stroke: #FFFFFF;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--upps-blue);
  position: relative;
  padding-bottom: 3px;
}

.card-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--sky-blue);
  transition: width 0.3s var(--ease);
}

.card:hover .card-link::after {
  width: 100%;
}

/* ==========================================================================
   Split Sections (What is TMS, Science, Leadership)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.split.reverse .split-media {
  order: -1;
}

.split-text h2 {
  margin-bottom: 20px;
}

.split-text p {
  margin-bottom: 18px;
  font-size: 16.5px;
}

.framed-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-md);
  position: relative;
}

.framed-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.framed-image:hover img {
  transform: scale(1.03);
}

.framed-image-tall {
  aspect-ratio: 16 / 11;
  min-height: 380px;
}

.split-balanced {
  align-items: center;
  margin-bottom: 48px;
}

/* 3 Feature Pillars */
.tms-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--upps-blue);
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-icon svg {
  stroke: var(--upps-green);
}

.pillar-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0;
}

.pillar-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================================
   5-Step Patient Roadmap (Connected Neural Pathway)
   ========================================================================== */
.patient-journey-section {
  position: relative;
  background-color: var(--bg-page);
  padding: 84px 0;
}

.journey-flow-wrapper {
  position: relative;
  margin-top: 36px;
  padding-top: 24px;
}

/* Desktop Connecting Neural Line */
.journey-track-line {
  position: absolute;
  top: 45px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, #20A8D5 0%, #1779BD 50%, #3B9B2D 100%);
  border-radius: 4px;
  z-index: 1;
  box-shadow: 0 0 12px rgba(32, 168, 213, 0.35);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
  z-index: 2;
}

.step-card {
  background: #FFFFFF;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  box-shadow: 0 4px 16px rgba(23, 121, 189, 0.05);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px -10px rgba(23, 121, 189, 0.18);
  border-color: var(--upps-blue);
}

.step-card.featured-step {
  border-color: rgba(23, 121, 189, 0.35);
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFE 100%);
}

.step-node-anchor {
  display: flex;
  justify-content: center;
  margin-top: -22px;
  position: relative;
  z-index: 3;
}

.step-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2.5px solid var(--upps-blue);
  color: var(--upps-blue);
  box-shadow: 0 0 0 4px #EBF7FC, 0 4px 12px rgba(23, 121, 189, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s var(--ease);
}

.step-card:hover .step-badge {
  background: var(--upps-blue);
  color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 0 0 6px rgba(23, 121, 189, 0.2), 0 6px 16px rgba(23, 121, 189, 0.25);
}

.step-card.featured-step .step-badge {
  border-color: var(--upps-green);
  color: var(--upps-green);
  box-shadow: 0 0 0 4px #EFF8EE, 0 4px 12px rgba(59, 155, 45, 0.15);
}

.step-card.featured-step:hover .step-badge {
  background: var(--upps-green);
  color: #FFFFFF;
  box-shadow: 0 0 0 6px rgba(59, 155, 45, 0.2), 0 6px 16px rgba(59, 155, 45, 0.25);
}

.step-card-body {
  padding: 22px 18px 0 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.step-phase-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--upps-blue);
  background: var(--sky-blue-light);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.step-phase-tag.phase-active {
  background: var(--green-light);
  color: var(--upps-green);
}

.step-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #F4F8FB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--upps-blue);
  transition: all 0.3s var(--ease);
}

.step-card:hover .step-icon-wrap {
  background: var(--sky-blue-light);
  color: var(--sky-blue);
  transform: scale(1.08);
}

.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
  line-height: 1.35;
}

.step-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 16px;
}

.step-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid #F0F4F8;
  margin-top: auto;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #F8FAFC;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid #E8EFF4;
}

.meta-tag svg {
  stroke: var(--sky-blue);
  flex-shrink: 0;
}

.meta-tag.highlight-time {
  background: var(--sky-blue-light);
  border-color: #D3EEF9;
  color: var(--upps-blue);
}

.meta-tag.highlight-green {
  background: var(--green-light);
  border-color: #D2ECCF;
  color: var(--upps-green);
}

/* Reassurance Strip */
.journey-reassurance-bar {
  margin-top: 40px;
  background: #F4F8FB;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}

.reassurance-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--charcoal);
}

.reassurance-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--upps-green);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reassurance-divider {
  width: 1px;
  height: 24px;
  background: #D8E4EC;
}

/* ==========================================================================
   Clinical Statistics Strip (Animated Count-Up Ready)
   ========================================================================== */
.stats-strip {
  background: linear-gradient(135deg, #1779BD 0%, #0E4B75 100%);
  color: #FFFFFF;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

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

.stat-item h3 {
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat-item h3 .accent-num {
  color: var(--lime-green);
}

.stat-item p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  max-width: 240px;
  margin: 0 auto;
}

/* ==========================================================================
   Medical Aid & Scheme Funding (South Africa)
   ========================================================================== */
.funding-section {
  background: linear-gradient(180deg, #F4F8FB 0%, #EAF2F8 100%);
  padding: clamp(64px, 7vw, 96px) 0;
}

.medical-aid-container {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 54px);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.medical-aid-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--upps-blue) 0%, var(--sky-blue) 50%, var(--upps-green) 100%);
}

.schemes-showcase {
  margin: 28px 0 40px;
  text-align: center;
}

.schemes-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: block;
}

.schemes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.scheme-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F4F8FB;
  border: 1px solid #DCE7EE;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--charcoal);
  transition: all 0.3s var(--ease);
}

.scheme-pill:hover {
  background: #FFFFFF;
  border-color: var(--upps-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(23, 121, 189, 0.1);
  color: var(--upps-blue);
}

.scheme-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--upps-green);
  flex-shrink: 0;
}

.funding-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.funding-card {
  background: #FAFDFF;
  border: 1px solid #DFEBF3;
  border-radius: var(--radius-md);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.funding-card:hover {
  transform: translateY(-6px);
  background: #FFFFFF;
  border-color: var(--upps-blue);
  box-shadow: var(--shadow-md);
}

.funding-card.featured-funding {
  background: #FFFFFF;
  border-color: rgba(59, 155, 45, 0.35);
  box-shadow: 0 6px 20px rgba(59, 155, 45, 0.08);
}

.funding-card.featured-funding:hover {
  border-color: var(--upps-green);
  box-shadow: 0 18px 36px -10px rgba(59, 155, 45, 0.2);
}

.funding-step-num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: rgba(23, 121, 189, 0.1);
  line-height: 1;
}

.funding-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.funding-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--sky-blue-light);
  color: var(--upps-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.featured-funding .funding-icon-wrap {
  background: var(--green-light);
  color: var(--upps-green);
}

.funding-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--upps-blue);
  background: rgba(23, 121, 189, 0.08);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.funding-badge.badge-green {
  color: var(--upps-green);
  background: rgba(59, 155, 45, 0.1);
}

.funding-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
  line-height: 1.35;
}

.funding-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 16px;
}

.funding-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #F0F6FA;
  border: 1px solid #D8E6F0;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  margin-top: auto;
}

.funding-meta-pill svg {
  stroke: var(--upps-blue);
}

.funding-meta-pill.pill-green {
  background: #F1F9EE;
  border-color: #D4EDCE;
  color: #2E7E23;
}

.funding-meta-pill.pill-green svg {
  stroke: var(--upps-green);
}

/* Bottom Assistance Action Bar */
.funding-cta-strip {
  background: linear-gradient(135deg, #1779BD 0%, #10598D 100%);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #FFFFFF;
}

.funding-cta-content h4 {
  font-size: 17.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.funding-cta-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.funding-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   Frosted Testimonials Carousel
   ========================================================================== */
.testimonials {
  position: relative;
  background-color: var(--bg-dark);
  color: #FFFFFF;
  overflow: hidden;
  padding: clamp(80px, 9vw, 120px) 0;
}

.testimonials-bg-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.testimonials-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.testimonials-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(11, 33, 51, 0.82) 0%,
    rgba(11, 33, 51, 0.9) 50%,
    rgba(11, 33, 51, 0.96) 100%
  );
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.testimonials-inner {
  position: relative;
  z-index: 3;
}

.testimonials h2 {
  color: #FFFFFF;
}

.carousel-wrapper {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.quote-carousel {
  position: relative;
  width: 100%;
  margin: 0 auto;
  min-height: 240px;
  padding: 48px 52px;
  border-radius: var(--radius-lg);
  background: rgba(16, 44, 66, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.45);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
}

.carousel-arrow-prev { left: -24px; }
.carousel-arrow-next { right: -24px; }

.carousel-arrow:hover {
  background: var(--upps-blue);
  border-color: var(--upps-blue);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.quote-slide {
  display: none;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.quote-slide.is-active {
  display: block;
  opacity: 1;
}

.quote-icon {
  font-size: 48px;
  line-height: 1;
  color: var(--sky-blue);
  margin-bottom: 16px;
  font-family: Georgia, serif;
}

.quote-text {
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 300;
  line-height: 1.68;
  color: #FFFFFF;
  margin-bottom: 22px;
}

.quote-author {
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #7FCDEE;
}

.quote-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}

.quote-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.quote-dot.is-active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  transform: scale(1.25);
}

/* ==========================================================================
   Elevated Comparison Matrix Table (TMS vs Drugs vs ECT)
   ========================================================================== */
.mobile-table-hint {
  display: none;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-md);
  background: #FFFFFF;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 680px;
}

.compare-table th,
.compare-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-line);
  font-size: 15px;
}

.compare-table th {
  background: var(--bg-soft);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--charcoal);
  font-size: 15px;
}

.compare-table th.highlight-col,
.compare-table td.highlight-col {
  background: rgba(23, 121, 189, 0.05);
  font-weight: 600;
  color: var(--upps-blue);
  border-left: 2px solid var(--upps-blue);
  border-right: 2px solid var(--upps-blue);
}

.compare-table th.highlight-col {
  background: var(--upps-blue);
  color: #FFFFFF;
}

/* ==========================================================================
   Interactive Protocol Switcher Tabs (TMS.html)
   ========================================================================== */
.protocol-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.protocol-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: #FFFFFF;
  border: 1.5px solid var(--border-line);
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.protocol-tab-btn svg {
  flex-shrink: 0;
  stroke: var(--upps-blue);
  transition: stroke 0.25s var(--ease);
}

.protocol-tab-btn:hover {
  border-color: var(--upps-blue);
  color: var(--upps-blue);
  background: var(--sky-blue-light);
}

.protocol-tab-btn.is-active {
  background: var(--upps-blue);
  border-color: var(--upps-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(23, 121, 189, 0.25);
}

.protocol-tab-btn.is-active svg {
  stroke: #FFFFFF;
}

.protocol-panel {
  display: none;
}

.protocol-panel.is-active {
  display: block;
  animation: fadeIn 0.4s var(--ease);
}

/* ==========================================================================
   Interactive Candidacy Screener (5-Step Assessment)
   ========================================================================== */
.screener-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: var(--shadow-md);
  max-width: 780px;
  margin: 0 auto;
}

.screener-progress {
  height: 6px;
  background: var(--border-line);
  border-radius: 4px;
  margin-bottom: 32px;
  overflow: hidden;
}

.screener-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--upps-blue), var(--sky-blue));
  width: 20%;
  transition: width 0.4s var(--ease);
}

.screener-step {
  display: none;
}

.screener-step.is-active {
  display: block;
  animation: fadeIn 0.4s var(--ease);
}

.screener-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 32px;
}

.screener-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1.5px solid var(--border-line);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s var(--ease);
  background: #FFFFFF;
}

.screener-option svg {
  flex-shrink: 0;
  stroke: var(--upps-blue);
  transition: transform 0.25s var(--ease);
}

.screener-option:hover {
  border-color: var(--upps-blue);
  background: var(--bg-soft);
  transform: translateX(4px);
}

.screener-option:hover svg {
  transform: scale(1.15);
}

.screener-option.is-selected {
  border-color: var(--upps-blue);
  background: var(--sky-blue-light);
  color: var(--upps-blue);
  box-shadow: inset 0 0 0 1px var(--upps-blue);
}

.screener-option.is-selected svg {
  stroke: var(--upps-blue);
}

.screener-result {
  text-align: center;
  padding: 20px 0;
}

.screener-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--upps-green);
  color: #FFFFFF;
  margin-bottom: 20px;
}

/* ==========================================================================
   Searchable FAQ & Categories Accordion
   ========================================================================== */
.faq-search-wrap {
  max-width: 640px;
  margin: 0 auto 32px;
}

.faq-search-input {
  width: 100%;
  padding: 14px 20px 14px 44px;
  border: 1.5px solid var(--border-line);
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  background: #FFFFFF url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%231779BD" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>') no-repeat 16px center;
  transition: all 0.25s var(--ease);
}

.faq-search-input:focus {
  outline: none;
  border-color: var(--upps-blue);
  box-shadow: 0 0 0 4px rgba(23, 121, 189, 0.12);
}

.faq-cat-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.faq-cat-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  background: #FFFFFF;
  border: 1px solid var(--border-line);
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.faq-cat-pill:hover,
.faq-cat-pill.is-active {
  background: var(--upps-blue);
  border-color: var(--upps-blue);
  color: #FFFFFF;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.faq-item.is-open {
  border-color: var(--upps-blue);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.faq-question:hover {
  color: var(--upps-blue);
}

.faq-icon {
  width: 22px;
  height: 22px;
  stroke: var(--upps-blue);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
  padding: 0 28px;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.7;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
  padding: 0 28px 24px;
}

/* ==========================================================================
   Consultation & Contact Forms
   ========================================================================== */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
}

.contact-info-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-detail-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  stroke: var(--upps-blue);
  width: 22px;
  height: 22px;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--upps-blue);
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--sky-blue-light);
  transition: all 0.2s;
}

.copy-btn:hover {
  background: var(--upps-blue);
  color: #FFFFFF;
}

.form-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--charcoal);
}

.form-control {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--charcoal);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.form-control:focus {
  outline: none;
  border-color: var(--upps-blue);
  box-shadow: 0 0 0 3px rgba(23, 121, 189, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   Mobile Bottom Quick-Action Bar (Fixed App-Like Mobile UX)
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-line);
  padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-bottom-bar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 10px;
}

.mobile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  text-align: center;
  white-space: nowrap;
}

.btn-mobile-call {
  background: #F4F8FB;
  color: var(--charcoal);
  border: 1px solid var(--border-line);
}

.btn-mobile-wa {
  background: #25D366;
  color: #FFFFFF;
}

.btn-mobile-book {
  background: var(--upps-blue);
  color: #FFFFFF;
}

/* Floating WhatsApp Action (Desktop) */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF;
  padding: 12px 20px 12px 14px;
  border-radius: var(--radius-pill);
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  color: #FFFFFF;
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  fill: #FFFFFF;
}

/* ==========================================================================
   Footer (HPCSA Medical Authority & Crisis Guidance)
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 80px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
  background: #FFFFFF;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
  box-sizing: content-box;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 16px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  transition: color 0.25s var(--ease);
}

.footer-links a:hover {
  color: #7FCDEE;
}

.footer-crisis-box {
  background: rgba(23, 121, 189, 0.18);
  border: 1px solid rgba(127, 205, 238, 0.35);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 14px;
}

.footer-crisis-box strong {
  color: #FFFFFF;
  display: block;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive Breakpoints & Full Mobile Optimization
   - Zero horizontal overflow
   - Interactive Hamburger Drawer
   - Seamless thumb-friendly tap targets
   - iOS safe area padding
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-phone-link { display: none; }
  .nav-links { gap: clamp(10px, 1.4vw, 20px); }
  
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .journey-track-line { display: none; }
  .roadmap-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .funding-flow-grid { grid-template-columns: repeat(2, 1fr); }
  .funding-card.featured-funding { grid-column: span 2; }
  .funding-cta-strip { flex-direction: column; align-items: flex-start; gap: 20px; }
  .funding-cta-actions { width: 100%; justify-content: flex-start; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-split { grid-template-columns: 1fr; gap: 36px; }
  
  .tms-pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  
  .carousel-arrow-prev { left: 8px; }
  .carousel-arrow-next { right: 8px; }
}

@media (max-width: 900px) {
  .site-header {
    height: 72px;
  }
  .nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
  }
  nav[aria-label="Primary Navigation"],
  .nav-links,
  .nav-phone-link {
    display: none !important;
  }
  .nav-toggle {
    display: flex;
  }
  
  /* Split Layouts (Text always first, Image second - never adjacent images) */
  .split, .split.reverse, .split.split-balanced {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
  }
  .split-text {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .split-media {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .framed-image-tall {
    min-height: auto !important;
    aspect-ratio: 16 / 10 !important;
  }
  .tms-pillars-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }
  .pillar-card {
    padding: 22px 18px !important;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 68px;
  }
  .nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    height: 100%;
    gap: 12px;
  }
  .nav-brand {
    max-width: 140px;
  }
  .nav-logo {
    height: 46px;
    max-width: 100%;
  }
  nav[aria-label="Primary Navigation"],
  .nav-links,
  .nav-phone-link {
    display: none !important;
  }
  .nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .nav-cta .btn {
    display: none !important; /* Prominently featured inside mobile drawer and sticky bottom bar */
  }
  .nav-toggle {
    display: flex;
  }
  
  .mobile-nav {
    top: 68px;
    max-height: calc(100vh - 68px);
  }
  
  /* Containers & Section Spacing */
  .container {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
  }
  .container-narrow {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
  }
  .section {
    padding: 52px 0;
  }
  .section-head {
    margin-bottom: 32px;
  }
  .section-head.center {
    text-align: left;
  }
  .section-head.center .eyebrow {
    margin-left: 0;
    margin-right: 0;
  }
  .section-desc {
    font-size: 15px;
    line-height: 1.65;
  }
  
  /* Hero Sections */
  .hero {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 50px;
  }
  .hero-inner {
    text-align: left;
  }
  .hero-title {
    font-size: clamp(26px, 6.8vw, 38px);
    line-height: 1.2;
    margin-bottom: 16px;
    text-align: left;
  }
  .hero-sub {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px;
    text-align: left;
  }
  .hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 28px;
  }
  .hero-btns .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 13px 20px;
  }
  .hero-trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 18px;
  }
  .trust-item {
    font-size: 12.8px;
  }
  
  /* Page Hero (About, TMS, FAQ, Contact) */
  .page-hero {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 44px;
    text-align: left;
  }
  .page-hero .container {
    text-align: left;
  }
  .page-hero h1 {
    font-size: clamp(25px, 6.5vw, 36px);
    line-height: 1.22;
    margin-bottom: 14px;
  }
  .page-hero p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
  }
  .breadcrumbs {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 12px;
  }
  
  /* Content Grids */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card {
    padding: 24px 18px;
  }
  
  /* Clinical Roadmap */
  .roadmap-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .step-card {
    padding: 0 0 18px 0;
  }
  .step-card-body {
    padding: 12px 18px 0;
  }
  .journey-reassurance-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 16px;
  }
  .reassurance-divider {
    display: none;
  }
  
  /* Animated Statistics Strip */
  .stats-strip {
    padding: 48px 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 14px;
  }
  .stat-item h3 {
    font-size: clamp(28px, 6.5vw, 36px);
    margin-bottom: 4px;
  }
  .stat-item p {
    font-size: 12.5px;
    line-height: 1.45;
  }
  
  /* Medical Aid Funding */
  .funding-flow-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .funding-card {
    padding: 22px 18px;
  }
  .funding-card.featured-funding {
    grid-column: auto;
  }
  .funding-cta-strip {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }
  .funding-cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .funding-cta-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  /* Testimonials Carousel (No text overlap; dedicated bottom navigation bar) */
  .testimonials {
    padding: 56px 0;
  }
  .carousel-wrapper {
    position: relative;
    padding-bottom: 64px !important;
  }
  .quote-carousel {
    padding: 32px 20px 24px !important;
    min-height: auto;
    border-radius: var(--radius-md);
  }
  .quote-icon {
    font-size: 32px;
    margin-bottom: 10px;
  }
  .quote-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .quote-author {
    font-size: 14px;
  }
  .quote-condition {
    font-size: 12px;
  }
  .carousel-arrow {
    position: absolute !important;
    top: auto !important;
    bottom: 6px !important;
    transform: none !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(16, 44, 66, 0.85) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    z-index: 10;
  }
  .carousel-arrow:hover,
  .carousel-arrow:active {
    background: var(--upps-blue) !important;
    transform: scale(1.05) !important;
  }
  .carousel-arrow-prev {
    left: calc(50% - 90px) !important;
    right: auto !important;
  }
  .carousel-arrow-next {
    right: calc(50% - 90px) !important;
    left: auto !important;
  }
  .carousel-arrow svg {
    width: 18px;
    height: 18px;
  }
  .quote-dots {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  
  /* Interactive Candidacy Screener */
  .screener-card {
    padding: 24px 16px;
    border-radius: var(--radius-md);
  }
  .screener-progress {
    margin-bottom: 24px;
  }
  .screener-step h3 {
    font-size: 18px;
    line-height: 1.35;
  }
  .screener-step p {
    font-size: 14px;
  }
  .screener-options {
    gap: 10px;
    margin: 18px 0 24px;
  }
  .screener-option {
    padding: 13px 14px;
    font-size: 14px;
    gap: 10px;
  }
  .screener-actions {
    flex-direction: column-reverse;
    gap: 10px;
    width: 100%;
  }
  .screener-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .screener-result-card {
    padding: 24px 16px;
  }
  .screener-result-card h3 {
    font-size: 20px;
  }
  .screener-result-card p {
    font-size: 14px;
  }
  
  /* Clinical Protocol Tabs (tms.html) */
  .protocol-tabs-nav {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-bottom: 24px;
  }
  .protocol-tab-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 13.5px;
  }
  
  /* Comparison Matrix Table (tms.html) */
  .mobile-table-hint {
    display: block !important;
  }
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
  }
  .compare-table {
    min-width: 560px;
  }
  .compare-table th,
  .compare-table td {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.45;
  }
  
  /* FAQ Page (faq.html) */
  .faq-search-wrap {
    max-width: 100%;
    padding: 0;
  }
  .faq-search-input {
    font-size: 16px;
    padding: 12px 16px 12px 42px;
  }
  .faq-cat-pills {
    gap: 6px;
    margin-bottom: 24px;
  }
  .faq-cat-pill {
    font-size: 12px;
    padding: 7px 14px;
  }
  .faq-question {
    padding: 16px 18px;
    font-size: 15px;
  }
  .faq-answer {
    padding: 0 18px;
    font-size: 14px;
  }
  .faq-item.is-open .faq-answer {
    padding: 0 18px 20px;
  }
  
  /* Contact & Consultation (contact.html) */
  .contact-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-info-card {
    padding: 24px 18px;
  }
  .form-card {
    padding: 24px 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .form-control {
    font-size: 16px; /* Prevents auto-zoom on iOS Safari */
    padding: 12px 14px;
  }
  
  /* Mobile Bottom Quick-Action Bar */
  .mobile-bottom-bar {
    display: block;
    z-index: 997;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-bottom-bar-inner {
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 8px;
  }
  .mobile-action-btn {
    font-size: 11.5px;
    padding: 9px 4px;
    border-radius: var(--radius-sm);
  }
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .whatsapp-float {
    display: none;
  }
  
  /* Footer */
  .site-footer {
    padding: 50px 0 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  /* Universal Wrap for Mobile Buttons */
  .btn {
    white-space: normal;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .stat-item h3 {
    font-size: 34px;
  }
  
  .carousel-arrow {
    width: 32px;
    height: 32px;
  }
  .carousel-arrow svg {
    width: 14px;
    height: 14px;
  }
  .quote-carousel {
    padding: 26px 14px;
  }
  
  .mobile-bottom-bar-inner {
    gap: 6px;
  }
  .mobile-action-btn {
    font-size: 11px;
    padding: 8px 2px;
    gap: 4px;
  }
  .mobile-action-btn svg {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 360px) {
  .nav-brand {
    max-width: 120px;
  }
  .nav-logo {
    height: 40px;
  }
  .container,
  .container-narrow {
    padding: 0 12px;
  }
  .card,
  .form-card,
  .contact-info-card,
  .screener-card {
    padding: 20px 14px;
  }
}
