/* ==========================================================================
   PHYSIO WELLNESS CLINIC - SERVICES PAGE (services.css)
   Visual system adapted from index.css & about.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Color Palette */
  --color-primary: #2e6f40;
  --color-primary-dark: #1e4a2b;
  --color-primary-light: #3e8e54;
  --color-primary-subtle: #e8f4ec;

  --color-secondary: #1f4d8d;
  --color-secondary-dark: #153562;
  --color-secondary-light: #2c6ac2;

  --color-accent: #f04d23;
  --color-accent-hover: #d33c14;
  --color-accent-subtle: #feeeea;

  --color-bg-dark: #2e6f40;
  --color-bg-light: #ffffff;
  --color-bg-surface: #f9fbf9;
  --color-bg-glass: rgba(255, 255, 255, 0.16);
  --color-bg-glass-card: rgba(217, 217, 217, 0.18);
  --color-bg-glass-hover: rgba(255, 255, 255, 0.26);

  --color-text-white: #ffffff;
  --color-text-dark: #2e6f40;
  --color-text-heading: #172d1f;
  --color-text-body: #374151;
  --color-text-muted: #6b7280;
  --color-text-light-muted: rgba(255, 255, 255, 0.86);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-accent: 'Crimson Text', Georgia, serif;
  --font-mono: 'Anonymous Pro', monospace;

  /* Shadows & Elevation */
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.15);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Layout Sizing */
  --container-max-width: 1240px;
  --header-height: 85px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg-surface);
  color: var(--color-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast), color var(--transition-fast),
              transform var(--transition-fast), background var(--transition-fast);
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

ul { list-style: none; }

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding { padding: 5.5rem 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .8rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  border: 1px solid rgba(240, 77, 35, .2);
  padding: .35rem .9rem;
  border-radius: var(--radius-full);
}

.light-tag {
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .25);
}

.section-title {
  font-size: 2.45rem;
  font-weight: 700;
  margin-bottom: .85rem;
  letter-spacing: -.01em;
}

.section-title.dark { color: var(--color-primary); }
.section-title.light { color: #fff; }
.section-intro { text-align: center; max-width: 850px; margin: 0 auto 3rem; }
.section-intro.light { color: #fff; }

/* --------------------------------------------------------------------------
   3. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: .5rem 0;
  background: transparent;
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.scrolled {
  position: fixed;
  background: rgba(46, 111, 64, .96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .2);
  padding: 0;
}

.navbar {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header logo pinned flush to the container's LEFT edge; the nav bar gets its
   own right breathing room while staying pinned to the RIGHT edge. */
.site-header .brand-logo {
  padding-left: 0;
  margin-right: 4rem;
}

.site-header .nav-links {
  margin-right: 4rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: .875rem;
  z-index: 101;
}

.brand-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-icon-wrapper { transform: scale(1.05); }
.brand-icon-wrapper img { width: 100%; height: 100%; object-fit: contain; }

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(255, 255, 255, .85);
  transition: color var(--transition-normal), text-shadow var(--transition-normal);
}

.site-header.scrolled .brand-name { color: #fff; text-shadow: none; }

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255, 255, 255, .45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: .35rem .6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.site-header.scrolled .nav-links { background: transparent; border: none; box-shadow: none; backdrop-filter: none; }

.nav-link {
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: .5rem 1.1rem;
  border-radius: var(--radius-full);
}

.nav-link:hover { color: var(--color-primary-dark); background: rgba(255, 255, 255, .8); }
.nav-link.active { background: var(--color-primary); color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(46, 111, 64, .35); }

.site-header.scrolled .nav-link { color: rgba(255, 255, 255, .9); }
.site-header.scrolled .nav-link:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.site-header.scrolled .nav-link.active { background: #fff; color: var(--color-primary); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #2e6f40;
  color: #ffffff;
  z-index: 101;
}

.site-header.scrolled .mobile-toggle { background: #2e6f40; color: #fff; }

/* Social Media Icons (displayed right after the navigation links) */
.nav-social {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.9rem;
  padding-left: 0.95rem;
  border-left: 1px solid rgba(46, 111, 64, 0.3);
  flex-shrink: 0;
}

.nav-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-fast);
}

.nav-social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

.nav-social-link:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 111, 64, 0.35);
}

/* Social icons on the solid green (scrolled) header */
.site-header.scrolled .nav-social {
  border-left-color: rgba(255, 255, 255, 0.3);
}

.site-header.scrolled .nav-social-link {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  box-shadow: none;
}

.site-header.scrolled .nav-social-link:hover {
  background: #ffffff;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   4. PAGE HEADER (SERVICES TITLE)
   -------------------------------------------------------------------------- */
.services-page-header {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--color-primary);
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 3rem;
  color: #fff;
}

.services-page-header::before,
.services-page-header::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.services-page-header::before {
  width: 460px;
  height: 460px;
  top: -130px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 65%);
}

.services-page-header::after {
  width: 420px;
  height: 420px;
  bottom: -150px;
  left: -110px;
  background: radial-gradient(circle, rgba(255, 255, 255, .10), transparent 65%);
}

.services-page-header-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  animation: fadeInUp .8s ease-out both;
}

.services-page-header-inner .section-tag { margin-bottom: 1.25rem; }

.services-page-header-inner h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  color: #fff;
  margin-bottom: 1.1rem;
  letter-spacing: -.01em;
}

.services-page-header-inner p {
  color: rgba(255, 255, 255, .9);
  font-size: 1.12rem;
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto;
}

/* Physio service block */
.physio-section { background: var(--color-bg-surface); }

/* The container below runs full-bleed, so the practitioner card is capped to
   the standard content column and centred on the page with auto margins. */
.physio-section .container {
  max-width: none;
}

.physio-specialist-card {
  background: #fff;
  max-width: calc(var(--container-max-width) - 3rem);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   5. SPECIALIST PROFILE
   -------------------------------------------------------------------------- */
.specialist-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(46, 111, 64, .1);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-card);
}

.specialist-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-primary-subtle);
  box-shadow: var(--shadow-lg);
}

.specialist-photo img { width: 100%; height: 100%; object-fit: cover; }

.specialist-info h2 {
  font-size: 2.1rem;
  color: var(--color-text-heading);
  margin-bottom: .35rem;
}

.specialist-role {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.credentials-list { display: flex; flex-wrap: wrap; gap: .6rem; }

.credentials-list li {
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  background: var(--color-primary-subtle);
  border: 1px solid rgba(46, 111, 64, .18);
  padding: .45rem .85rem;
  border-radius: var(--radius-full);
}

/* Expandable practitioner profile */
.profile-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .5s cubic-bezier(.4, 0, .2, 1), opacity .4s ease;
}

.profile-details.open { max-height: 900px; opacity: 1; }

.profile-bio {
  margin-top: 1.5rem;
  color: var(--color-text-body);
  font-size: 1rem;
  line-height: 1.8;
}

.profile-focus {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem 1.5rem;
  margin-top: 1.25rem;
}

.profile-focus li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .95rem;
  color: var(--color-text-body);
  line-height: 1.5;
}

.profile-focus li::before {
  content: '✓';
  flex-shrink: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: .85rem;
  margin-top: .12em;
}

.profile-toggle {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  font-size: .92rem;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.profile-toggle:hover { background: var(--color-primary); color: #fff; }

.profile-toggle-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-normal);
}

.profile-toggle[aria-expanded="true"] .profile-toggle-icon { transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   6. INTRODUCTION (READING COLUMN)
   -------------------------------------------------------------------------- */
.physio-intro { margin: 0 auto; padding-top: 3.5rem; }

.intro-read { max-width: 900px; }

.intro-read p {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--color-text-body);
  margin-bottom: 1.25rem;
}

.intro-read p:last-child { margin-bottom: 0; }

.intro-read > p:first-child::first-letter {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--color-primary);
  float: left;
  line-height: .8;
  padding-right: .5rem;
}

/* --------------------------------------------------------------------------
   7. CORE SERVICES
   -------------------------------------------------------------------------- */
.services-section {
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 2.6rem 2.4rem;
  background: rgba(217, 217, 217, .16);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, .24);
  border-color: rgba(255, 255, 255, .4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.service-card::after {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  right: -70px;
  bottom: -70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  transition: transform var(--transition-slow);
  pointer-events: none;
}

.service-card:hover::after { transform: scale(1.4); }

.service-card.wide { grid-column: 1 / -1; }

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.service-number {
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .6);
}

.service-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 1.7rem;
}

.service-card h3 { font-size: 1.55rem; margin-bottom: .8rem; }

.service-context {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 1.1rem;
}

.service-list { display: flex; flex-direction: column; gap: .6rem; }

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: rgba(255, 255, 255, .94);
  font-size: .97rem;
  line-height: 1.55;
}

.service-list li::before {
  content: '✓';
  flex-shrink: 0;
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: .12em;
}

/* Wide (5th) card with two column lists */
.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.service-split .service-column .service-context { margin-bottom: .9rem; }

/* --------------------------------------------------------------------------
   7b. OCCUPATIONAL THERAPY
   -------------------------------------------------------------------------- */
.ot-section { background: #fff; }

.ot-specialist-card { background: var(--color-bg-surface); }

.ot-intro { margin: 3rem auto; }

.ot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.ot-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 2.4rem 2.2rem;
  background: #fff;
  border: 1px solid rgba(46, 111, 64, .14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.ot-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.ot-card.wide { grid-column: 1 / -1; }

.ot-card .service-top { margin-bottom: 1.35rem; }

.ot-number { color: var(--color-primary); opacity: .55; }

.ot-icon {
  background: var(--color-primary-subtle);
  border-color: rgba(46, 111, 64, .2);
}

.ot-card h3 { font-size: 1.45rem; color: var(--color-primary); margin-bottom: .75rem; }

.ot-context { color: var(--color-text-muted); }

.ot-list li { color: var(--color-text-body); }
.ot-list li::before { color: var(--color-primary); }

.ot-list-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem 2rem;
}

.ot-card.goals { background: var(--color-primary); color: #fff; }
.ot-card.goals h3 { color: #fff; }
.ot-card.goals .ot-number { color: rgba(255, 255, 255, .6); opacity: 1; }
.ot-card.goals .ot-icon { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .3); }
.ot-card.goals .ot-context { color: rgba(255, 255, 255, .8); }
.ot-card.goals .ot-list li { color: rgba(255, 255, 255, .95); }

/* --------------------------------------------------------------------------
   7c. MEDIA GALLERY (IMAGES & VIDEOS)
   -------------------------------------------------------------------------- */
.gallery-section { background: #fff; }

.gallery-lede {
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.media-carousel {
  position: relative;
}

.media-viewport {
  overflow: hidden;
  padding: .5rem 0 1.25rem;
}

.media-track {
  display: flex;
  gap: 2rem;
  transition: transform var(--transition-slow);
  will-change: transform;
}

.media-track .media-item {
  flex: 0 0 calc((100% - 4rem) / 3);
  min-width: 0;
  cursor: zoom-in;
}

.media-item--video { cursor: pointer; }

/* Per-service galleries share the same markup/CSS as the global gallery.
   The JS now instantiates every .media-carousel on the page, and each one
   must have its own unique track / prev / next / dots IDs (see Services.html).
   A few small overrides keep multiple carousels on the same page from clashing. */
.media-carousel + .media-carousel {
  margin-top: 2.5rem;
}

.media-carousel:not(:first-child) .media-viewport {
  padding-top: 1.25rem;
}

.media-item {
  overflow: hidden;
  margin: 0;
  background: var(--color-bg-surface);
  border: 1px solid rgba(46, 111, 64, .14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.media-item:hover,
.media-item:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.media-item:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.media-thumb {
  position: relative;
  overflow: hidden;
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--color-primary-subtle);
  transition: transform var(--transition-normal);
}

.media-item:hover .media-thumb img,
.media-item:hover .media-thumb video { transform: scale(1.05); }

.video-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(rgba(23, 45, 31, .05), rgba(23, 45, 31, .38));
  pointer-events: none;
}

.video-badge svg {
  width: 62px;
  height: 62px;
  padding: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.media-item--video:hover .video-badge svg { transform: scale(1.1); }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: background var(--transition-fast), opacity var(--transition-fast);
}

.carousel-arrow:hover:not(:disabled) { background: var(--color-primary-dark); }
.carousel-arrow:disabled { opacity: .35; cursor: default; }
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-prev { left: -10px; }
.carousel-next { right: -10px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
  background: rgba(46, 111, 64, .25);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.carousel-dot:hover { background: rgba(46, 111, 64, .5); }

.carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

.media-item figcaption {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 1.25rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.media-item--video figcaption { color: var(--color-text-body); }

/* --------------------------------------------------------------------------
   7d. LIGHTBOX (MEDIA POPUP)
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 5rem;
  background: rgba(13, 24, 17, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .3s ease;
}

.lightbox[hidden] { display: none; }

.lightbox.open { opacity: 1; }

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0;
  max-width: min(1000px, 100%);
  animation: fadeInUp .35s ease-out both;
}

.lightbox-media img,
.lightbox-media video {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  background: #000;
}

.lightbox-media video { width: min(880px, 100%); }

.lightbox-figure figcaption {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .65);
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  transition: background var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-arrow:hover { background: rgba(255, 255, 255, .28); }

.lightbox-close { top: 1.5rem; right: 1.75rem; }

.lightbox-arrow { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-close svg,
.lightbox-arrow svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   8. FINANCIAL SUPPORT (PMB & CASH PATIENTS)
   -------------------------------------------------------------------------- */
.finance-section { padding: 5.5rem 0; background: var(--color-bg-surface); }

.finance-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: #fff;
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
}

.finance-card::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  right: -100px;
  top: -100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  pointer-events: none;
}

.finance-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.finance-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  font-size: 1.8rem;
  flex-shrink: 0;
}

.finance-head h2 { font-size: 2.1rem; }

.finance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.finance-col {
  position: relative;
  z-index: 1;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.finance-col h3 {
  font-size: 1.25rem;
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.finance-col p {
  color: rgba(255, 255, 255, .9);
  line-height: 1.75;
  font-size: .98rem;
}

/* --------------------------------------------------------------------------
   9. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding: 4.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 1rem; }

.site-footer .brand-logo { text-decoration: none; }

.site-footer .footer-brand-name { color: #fff; text-shadow: none; white-space: nowrap; }

.footer-desc {
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
  line-height: 1.65;
  max-width: 320px;
}

/* Social media icons (footer brand column) */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: .25rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  transition: all var(--transition-fast);
}

.footer-social-link svg { width: 17px; height: 17px; fill: currentColor; display: block; }

.footer-social-link:hover {
  background: #fff;
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

.footer-heading { font-size: 1.2rem; margin-bottom: 1.25rem; color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: .75rem; }
.footer-links a { color: rgba(255, 255, 255, .82); font-size: .95rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .75);
}

/* --------------------------------------------------------------------------
   10. ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE SYSTEM
   -------------------------------------------------------------------------- */

/* Large tablets / small desktops */
@media (max-width: 1200px) {
  :root { --container-max-width: 960px; }
  .nav-link { padding: .45rem .85rem; font-size: .9rem; }
  /* Not enough room for the inline social icons between 993px–1200px —
     they reappear inside the mobile drawer below 992px. */
  .nav-social { display: none; }
}

/* Tablets - landscape & large tablets */
@media (max-width: 992px) {
  :root { --container-max-width: 720px; }
  .section-padding { padding: 4.5rem 0; }

  .mobile-toggle { display: flex; }

  .site-header .brand-logo { padding-left: 0; margin-right: 2rem; }
  .site-header .nav-links { margin-right: 2rem; }

  /* Navigation Drawer */
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--color-primary);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1.5rem;
    gap: .75rem;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-top: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: transform .45s cubic-bezier(.16, 1, .3, 1), opacity .45s ease, visibility .45s ease;
    /* Keep the drawer within the viewport once the services submenu expands */
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }

  .nav-link {
    font-size: 1.1rem;
    padding: .85rem 1.25rem;
    border-radius: var(--radius-sm);
    text-align: center;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
  }

  .nav-link:hover,
  .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .3);
  }

  .site-header.scrolled .nav-links {
    background: var(--color-primary);
  }

  /* Social icons inside the mobile navigation drawer */
  .nav-social {
    display: flex;
    margin: .5rem 0 0;
    padding: 1.1rem 0 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, .2);
    justify-content: center;
    gap: .9rem;
  }

  .nav-social-link {
    width: 42px;
    height: 42px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: none;
  }

  .nav-social-link svg { width: 18px; height: 18px; }

  .nav-social-link:hover {
    background: rgba(255, 255, 255, .25);
    color: #fff;
    transform: none;
  }

  .specialist-card { grid-template-columns: 280px 1fr; padding: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card.wide { grid-column: auto; }
  .media-track .media-item { flex-basis: calc((100% - 2rem) / 2); }
}

/* Tablets - portrait & phablets */
@media (max-width: 768px) {
  :root { --container-max-width: 540px; --header-height: 76px; }
  .container { padding: 0 1.25rem; }
  .site-header .brand-logo { padding-left: 0; margin-right: 1rem; }
  .site-header .nav-links { margin-right: 1.5rem; }
  .section-padding { padding: 4rem 0; }
  .section-title { font-size: 2rem; }

  .brand-icon-wrapper { width: 44px; height: 44px; }
  .brand-name { font-size: 1.05rem; }

  .services-page-header { min-height: auto; padding-top: calc(var(--header-height) + 1.5rem); }
  .services-page-header-inner h1 { font-size: 2.4rem; }

  .ot-grid { grid-template-columns: 1fr; }
  .ot-card.wide { grid-column: auto; }
  .ot-list-split { grid-template-columns: 1fr; }
  .profile-focus { grid-template-columns: 1fr; }

  .specialist-card { grid-template-columns: 1fr; }
  .specialist-photo { max-width: 340px; margin-inline: auto; }
  .specialist-info { text-align: center; }
  .credentials-list { justify-content: center; }

  .profile-focus { grid-template-columns: 1fr; }

  .service-card { padding: 2rem 1.6rem; }
  .service-split { grid-template-columns: 1fr; gap: 1.5rem; }
  .media-track { gap: 1.5rem; }
  .media-track .media-item { flex-basis: 100%; }
  .carousel-arrow { width: 40px; height: 40px; }
  .carousel-dots { margin-top: .75rem; }
  .carousel-dot { width: 8px; height: 8px; }
  .lightbox { padding: 1.75rem 4rem; }

  .finance-section { padding: 4rem 0; }
  .finance-card { padding: 2.5rem 1.75rem; }
  .finance-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Smartphones & compact screens */
@media (max-width: 576px) {
  .container { padding: 0 1.25rem; }
  .site-header .brand-logo { padding-left: 0; margin-right: 1rem; }
  .site-header .nav-links { margin-right: 1.5rem; }
  .section-padding { padding: 3.25rem 0; }
  .section-title { font-size: 1.65rem; }

  .services-page-header-inner h1 { font-size: 2rem; }
  .services-page-header-inner p { font-size: 1rem; }

  .specialist-card { padding: 1.75rem; }
  .specialist-info h2 { font-size: 1.7rem; }

  .lightbox { padding: 1.25rem 3.25rem; }
  .lightbox-close { top: 1rem; right: 1rem; }
  .lightbox-close,
  .lightbox-arrow { width: 42px; height: 42px; }
  .lightbox-media img,
  .lightbox-media video { max-height: 62vh; }

  .finance-head { flex-direction: column; text-align: center; }
  .finance-head h2 { font-size: 1.8rem; }

  .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand { grid-column: auto; }
}
/* --------------------------------------------------------------------------
   7e. ORTHOTICS & PROSTHETICS / SOCIAL WORK / MEDICO-LEGAL / CORPORATE & WELLNESS / BIOKINETICS
   -------------------------------------------------------------------------- */
.op-section { background: var(--color-bg-surface); }
.sw-section { background: #fff; }
.ml-section { background: var(--color-bg-surface); }
.cw-section { background: #fff; }
.bk-section { background: var(--color-bg-surface); }
.op-specialist-card,
.ml-specialist-card,
.cw-specialist-card { background: #fff; }
.sw-specialist-card { background: var(--color-bg-surface); }
.bk-specialist-card { background: var(--color-bg-surface); }
.op-intro,
.sw-intro,
.ml-intro,
.cw-intro,
.bk-intro { margin: 3rem auto; }
/* Practitioner photo placeholder (replace with an <img> when the photo is ready) */
.specialist-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 32% 18%, rgba(46, 111, 64, .14), transparent 55%),
    linear-gradient(165deg, var(--color-primary-subtle) 0%, #f5faf6 100%);
}

.specialist-photo-placeholder svg {
  width: 66px;
  height: 66px;
  color: var(--color-primary);
  opacity: .5;
}

.photo-coming-soon-label {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--color-primary);
}

.photo-coming-soon-hint {
  font-size: .84rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 230px;
}

/* Two-column sub-list layout for the new service cards */
.ot-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem 2.25rem;
}

.ot-split-column { min-width: 0; }

.ot-sublist-title {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 1.75rem 0 .9rem;
}

.ot-split-column:first-child .ot-sublist-title,
.ot-split + .ot-sublist-title { margin-top: 1.5rem; }

.ot-card .ot-note {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(46, 111, 64, .14);
  font-size: .97rem;
  line-height: 1.75;
  color: var(--color-text-body);
}

.ot-card.goals .ot-note {
  border-top-color: rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .85);
}

/* Checkmarks stay visible on the dark "goals" cards */
.ot-card.goals .ot-list li::before { color: rgba(255, 255, 255, .65); }

/* Body paragraphs inside the wide service cards (e.g. Medico-Legal Assessments) */
.ot-card .ot-text {
  font-size: .97rem;
  line-height: 1.75;
  color: var(--color-text-body);
}

.ot-card .ot-text + .ot-text { margin-top: .9rem; }

.ot-card .ot-note + .service-list { margin-top: .9rem; }

/* Supporting document images (e.g. Medico-Legal RAF documents) */
.ml-docs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.ml-doc {
  margin: 0;
  overflow: hidden;
  background: var(--color-bg-surface);
  border: 1px solid rgba(46, 111, 64, .14);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.ml-doc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.ml-doc a { display: block; }

.ml-doc img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.ml-doc figcaption {
  padding: .9rem 1.1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  border-top: 1px solid rgba(46, 111, 64, .14);
}

@media (max-width: 768px) {
  .ot-split { grid-template-columns: 1fr; gap: .25rem 0; }
  .ml-docs { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   7f. SERVICES NAV DROPDOWN
   -------------------------------------------------------------------------- */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
}

.nav-dropdown-arrow {
  width: 15px;
  height: 15px;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown.open .nav-dropdown-arrow,
.nav-dropdown:focus-within .nav-dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .6rem;
  background: #fff;
  border: 1px solid rgba(46, 111, 64, .16);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
  z-index: 130;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: .55rem .95rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-text-heading);
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown-link:hover {
  background: var(--color-primary);
  color: #fff;
}

@media (max-width: 992px) {
  /* Stack the Services tab and its submenu so the tab fills the drawer width
     and matches the size of the other nav tabs. */
  .nav-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown-trigger {
    justify-content: center;
    display: flex;
    width: 100%;
  }

  /* Mobile/tablet: the submenu is collapsed by default and drops down when the
     Services tab is tapped (JS toggles the .open class on .nav-dropdown). */
  .nav-dropdown-menu,
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    padding: 0 .35rem;
    margin-top: 0;
    transition: max-height .35s ease, opacity .35s ease, padding .35s ease,
                margin-top .35s ease, visibility .35s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 520px;
    opacity: 1;
    visibility: visible;
    padding: .35rem;
    margin-top: .25rem;
  }

  .nav-dropdown-link {
    text-align: center;
    white-space: normal;
    color: #fff;
  }

  .nav-dropdown-link:hover { background: rgba(255, 255, 255, .18); color: #fff; }

  /* Keep the chevron visible on mobile so users know the Services tab expands,
     and flip it while the submenu is open. */
  .nav-dropdown-arrow { width: 16px; height: 16px; flex-shrink: 0; }
  .nav-dropdown.open .nav-dropdown-arrow { transform: rotate(180deg); }
}

/* Small phones */
@media (max-width: 480px) {
  .section-tag { font-size: .7rem; letter-spacing: 1.2px; }
  .service-card h3 { font-size: 1.35rem; }
}

/* --------------------------------------------------------------------------
   FOOTER SOCIAL ICONS - SELF-CONTAINED SIZING (MOBILE-SAFE)
   These rules style the footer social icons only. The selectors
   (.footer-social / .footer-social-link) are intentionally separate from the
   header and mobile-drawer social icons (.nav-social / .nav-social-link), so
   the two groups never share CSS and can never affect each other.
   -------------------------------------------------------------------------- */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.footer-social-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  border-radius: 50%;
  overflow: hidden;
}

.footer-social-link svg {
  display: block;
  width: 17px;
  height: 17px;
  max-width: 100%;
  max-height: 100%;
  fill: currentColor;
}

/* Phones / tablets: keep the footer icons compact instead of oversized */
@media (max-width: 768px) {
  .footer-social { gap: 0.45rem; }
  .footer-social-link { width: 32px; height: 32px; max-width: 32px; max-height: 32px; }
  .footer-social-link svg { width: 15px; height: 15px; }
}

@media (max-width: 480px) {
  .footer-social { gap: 0.4rem; }
  .footer-social-link { width: 30px; height: 30px; max-width: 30px; max-height: 30px; }
  .footer-social-link svg { width: 14px; height: 14px; }
}
