/* =========================================================
   Apex Physio & Wellness — Shared Stylesheet
   ========================================================= */

/* ---------------------------------------------------------
   0. CSS Custom Properties
   --------------------------------------------------------- */
:root {
  --ap-white:      #FAFAFA;
  --ap-off-white:  #F4F6F5;
  --ap-light:      #E8EDEA;
  --ap-sage:       #7A9E8E;
  --ap-sage-dark:  #5C7D6E;
  --ap-slate:      #4A6572;
  --ap-charcoal:   #2A2F2E;
  --ap-mid:        #5C6662;
  --ap-warm:       #C4A882;

  --font-main: 'Nunito Sans', sans-serif;

  --nav-height: 72px;
  --container-max: 1200px;
  --section-pad: 80px;
  --section-pad-sm: 48px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgba(42,47,46,0.08);
  --shadow-md: 0 4px 16px rgba(42,47,46,0.10);
  --shadow-lg: 0 8px 32px rgba(42,47,46,0.14);

  --transition: 0.22s ease;
}

/* ---------------------------------------------------------
   1. Reset & Base
   --------------------------------------------------------- */
*,
*::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-main);
  font-weight: 400;
  color: var(--ap-charcoal);
  background-color: var(--ap-white);
  line-height: 1.7;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-main);
  border: none;
  background: none;
}

/* ---------------------------------------------------------
   2. Typography Scale
   --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  line-height: 1.2;
  color: var(--ap-charcoal);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.875rem; font-weight: 600; }

p {
  font-weight: 300;
  line-height: 1.8;
  color: var(--ap-mid);
}

strong { font-weight: 700; color: var(--ap-charcoal); }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ap-sage);
  margin-bottom: 12px;
}

.eyebrow--white {
  color: rgba(250,250,250,0.8);
}

.eyebrow--slate {
  color: var(--ap-slate);
}

.section-intro {
  max-width: 620px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ap-mid);
}

/* ---------------------------------------------------------
   3. Layout Utilities
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section {
  padding: var(--section-pad) 0;
}

.section--sm {
  padding: var(--section-pad-sm) 0;
}

.section--off-white {
  background-color: var(--ap-off-white);
}

.section--light {
  background-color: var(--ap-light);
}

.text-center { text-align: center; }
.text-left { text-align: left; }

/* ---------------------------------------------------------
   4. Buttons
   --------------------------------------------------------- */
.btn-primary,
.btn-outline-slate,
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--ap-sage);
  color: #fff;
  border: 2px solid var(--ap-sage);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--ap-sage-dark);
  border-color: var(--ap-sage-dark);
}

.btn-outline-slate {
  background-color: transparent;
  color: var(--ap-slate);
  border: 2px solid var(--ap-slate);
}

.btn-outline-slate:hover,
.btn-outline-slate:focus-visible {
  background-color: var(--ap-slate);
  color: #fff;
}

.btn-outline-white {
  background-color: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.75);
}

.btn-outline-white:hover,
.btn-outline-white:focus-visible {
  background-color: rgba(255,255,255,0.15);
  border-color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------------------------------------------------------
   5. Navigation
   --------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: var(--ap-white);
  border-bottom: 1px solid var(--ap-light);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.nav-scrolled {
  background-color: var(--ap-white);
  box-shadow: var(--shadow-md);
}

/* Transparent state for home page hero */
.page-home .site-nav:not(.nav-scrolled) {
  position: fixed;
  background-color: transparent;
  border-bottom-color: transparent;
}

.page-home .site-nav:not(.nav-scrolled) .nav-link,
.page-home .site-nav:not(.nav-scrolled) .nav-logo .logo-apex,
.page-home .site-nav:not(.nav-scrolled) .nav-logo .logo-sub {
  color: #fff;
}

.page-home .site-nav:not(.nav-scrolled) .nav-hamburger span {
  background-color: #fff;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.logo-apex {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ap-charcoal);
  transition: color var(--transition);
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ap-sage);
  transition: color var(--transition);
}

.page-home .site-nav:not(.nav-scrolled) .logo-sub {
  color: rgba(250,250,250,0.75);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ap-charcoal);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
}

.nav-link:hover {
  color: var(--ap-sage);
  background-color: var(--ap-off-white);
}

.nav-cta {
  margin-left: 8px;
  padding: 10px 22px;
  font-size: 0.78rem;
}

.dropdown-arrow {
  font-size: 0.65rem;
  transition: transform var(--transition);
}

/* Dropdown */
.nav-item--dropdown {
  position: relative;
}

.services-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 280px;
  background: var(--ap-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ap-light);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.services-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.services-dropdown a {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
}

.services-dropdown a strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ap-charcoal);
}

.services-dropdown a span {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--ap-mid);
  margin-top: 2px;
}

.services-dropdown a:hover {
  background-color: var(--ap-off-white);
}

.services-dropdown a:hover strong {
  color: var(--ap-sage);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  padding: 0;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ap-charcoal);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

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

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background-color: var(--ap-white);
  z-index: 800;
  overflow-y: auto;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open {
  transform: translateX(0);
}

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

.mobile-nav-links li a,
.mobile-services-toggle {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ap-charcoal);
  border-radius: var(--radius-sm);
  text-align: left;
  transition: background-color var(--transition), color var(--transition);
}

.mobile-nav-links li a:hover,
.mobile-services-toggle:hover {
  background-color: var(--ap-off-white);
  color: var(--ap-sage);
}

.mobile-services-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-main);
}

.mobile-services-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 16px;
}

.mobile-services-menu.open {
  max-height: 300px;
}

.mobile-services-menu li a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ap-mid);
}

.mobile-nav-links .btn-primary {
  display: block;
  text-align: center;
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

/* ---------------------------------------------------------
   6. Hero Sections
   --------------------------------------------------------- */
.hero-full {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-half {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42,47,46,0.55) 0%, rgba(42,47,46,0.2) 100%);
  z-index: 1;
}

.hero-overlay--darker {
  background: linear-gradient(135deg, rgba(42,47,46,0.68) 0%, rgba(42,47,46,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-panel {
  max-width: 580px;
}

.hero-panel h1 {
  color: #fff;
  margin-bottom: 20px;
}

.hero-panel p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-page {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-page h1 {
  color: #fff;
  margin-bottom: 16px;
}

.hero-page p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
}

/* ---------------------------------------------------------
   7. Trust Bar
   --------------------------------------------------------- */
.trust-bar {
  background-color: var(--ap-off-white);
  border-bottom: 1px solid var(--ap-light);
  padding: 36px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.trust-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ap-sage);
  line-height: 1;
}

.trust-stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ap-mid);
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------
   8. Service Cards
   --------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background-color: var(--ap-white);
  border: 1px solid var(--ap-light);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  border-left: 4px solid transparent;
}

.service-card:hover {
  border-left-color: var(--ap-sage);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ap-off-white);
  border-radius: var(--radius-sm);
  color: var(--ap-sage);
  flex-shrink: 0;
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--ap-sage);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ap-charcoal);
}

.service-card p {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--ap-mid);
  line-height: 1.7;
}

.condition-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  background-color: var(--ap-light);
  color: var(--ap-slate);
  border-radius: var(--radius-pill);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.service-card-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--ap-light);
}

.service-card-footer a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ap-sage);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition), gap var(--transition);
}

.service-card-footer a:hover {
  color: var(--ap-sage-dark);
  gap: 10px;
}

/* ---------------------------------------------------------
   9. Step Flow
   --------------------------------------------------------- */
.step-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 48px;
  position: relative;
}

.step-flow::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% - 1px);
  right: calc(12.5% - 1px);
  height: 2px;
  background: linear-gradient(90deg, var(--ap-sage) 0%, var(--ap-light) 100%);
  z-index: 0;
}

.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--ap-sage);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(122,158,142,0.35);
}

.step-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ap-charcoal);
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--ap-mid);
  line-height: 1.6;
}

/* ---------------------------------------------------------
   10. Team Cards
   --------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.team-card {
  background-color: var(--ap-white);
  border: 1px solid var(--ap-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.team-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-card-body {
  padding: 20px;
}

.team-card-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ap-charcoal);
  margin-bottom: 2px;
}

.team-card-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ap-sage);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.team-card-body p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--ap-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}

.team-card-body .btn-outline-slate {
  padding: 9px 18px;
  font-size: 0.75rem;
  width: 100%;
  justify-content: center;
}

/* Team Profile (full page, alternating) */
.team-profiles {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 64px;
}

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

.team-profile--reverse {
  grid-template-columns: 1.4fr 1fr;
}

.team-profile--reverse .team-profile-img {
  order: 2;
}

.team-profile--reverse .team-profile-body {
  order: 1;
}

.team-profile-img img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  max-height: 620px;
}

.team-profile-body {
  padding-top: 12px;
}

.team-profile-body h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--ap-charcoal);
  margin-bottom: 4px;
}

.team-profile-discipline {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-sage);
  margin-bottom: 6px;
}

.team-profile-exp {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ap-mid);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ap-light);
}

.team-profile-body p {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--ap-mid);
  margin-bottom: 20px;
}

.team-profile-specialties {
  margin-top: 24px;
}

.team-profile-specialties h5 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-mid);
  margin-bottom: 12px;
}

.team-profile-specialties .condition-tags {
  margin-top: 0;
}

.team-profile-cta {
  margin-top: 28px;
}

/* ---------------------------------------------------------
   11. Insurance Strip
   --------------------------------------------------------- */
.insurance-strip {
  background-color: var(--ap-sage);
  padding: 40px 0;
}

.insurance-strip-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.insurance-strip h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.insurer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.insurer-pill {
  padding: 5px 14px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

/* ---------------------------------------------------------
   12. Area Pills
   --------------------------------------------------------- */
.area-pills-section {
  padding: 48px 0;
  background-color: var(--ap-white);
  border-top: 1px solid var(--ap-light);
  border-bottom: 1px solid var(--ap-light);
}

.area-pills-section .section-header {
  text-align: center;
  margin-bottom: 24px;
}

.area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.area-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background-color: var(--ap-off-white);
  border: 1px solid var(--ap-light);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ap-slate);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.area-pill:hover {
  background-color: var(--ap-sage);
  color: #fff;
  border-color: var(--ap-sage);
}

/* ---------------------------------------------------------
   13. FAQ Accordion
   --------------------------------------------------------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  margin-top: 48px;
}

.faq-category {
  margin-bottom: 40px;
}

.faq-category-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ap-sage);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ap-light);
}

.faq-item {
  border-bottom: 1px solid var(--ap-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ap-charcoal);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition);
  gap: 16px;
}

.faq-question:hover {
  color: var(--ap-sage);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--ap-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--ap-sage);
  font-weight: 400;
  transition: background-color var(--transition), transform var(--transition);
}

.faq-item.open .faq-icon {
  background-color: var(--ap-sage);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding-bottom: 20px;
}

.faq-answer-inner p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ap-mid);
  line-height: 1.8;
}

/* ---------------------------------------------------------
   14. Footer CTA
   --------------------------------------------------------- */
.footer-cta {
  background-color: var(--ap-slate);
  padding: 72px 0;
  text-align: center;
}

.footer-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.footer-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 32px;
}

/* ---------------------------------------------------------
   15. Footer
   --------------------------------------------------------- */
.site-footer {
  background-color: var(--ap-charcoal);
  color: var(--ap-white);
  padding: 60px 0 0;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 48px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.footer-col--brand p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-top: 20px;
  max-width: 320px;
}

.footer-accepting {
  margin-top: 16px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--ap-sage) !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-logo .logo-apex {
  color: var(--ap-white);
}

.footer-col--links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col--links ul li a {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col--links ul li a::before {
  content: '→';
  font-size: 0.75rem;
  color: var(--ap-sage);
}

.footer-col--links ul li a:hover {
  color: var(--ap-white);
}

.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  gap: 12px;
}

.footer-hours li span:first-child {
  font-weight: 400;
  color: rgba(255,255,255,0.8);
}

.footer-col--contact p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col--contact p a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-col--contact p a:hover {
  color: var(--ap-sage);
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 48px auto 0;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
}

/* ---------------------------------------------------------
   16. Booking Form
   --------------------------------------------------------- */
.booking-section {
  padding: var(--section-pad) 0;
}

.booking-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--ap-white);
  border: 1px solid var(--ap-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 22px;
}

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

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ap-charcoal);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--ap-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ap-charcoal);
  background-color: var(--ap-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(92,102,98,0.45);
  font-weight: 300;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--ap-sage);
  box-shadow: 0 0 0 3px rgba(122,158,142,0.15);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C6662' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

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

.form-submit {
  width: 100%;
  padding: 15px;
  font-size: 0.88rem;
  justify-content: center;
  margin-top: 8px;
}

.form-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.form-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--ap-light);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ap-mid);
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition), color var(--transition);
}

.form-check-label input {
  accent-color: var(--ap-sage);
}

.form-check-label:has(input:checked) {
  border-color: var(--ap-sage);
  background-color: rgba(122,158,142,0.08);
  color: var(--ap-sage-dark);
}

.insurance-note {
  background-color: var(--ap-off-white);
  border-left: 3px solid var(--ap-sage);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 16px;
}

.insurance-note p {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ap-mid);
}

.demo-note {
  font-size: 0.8rem;
  color: rgba(92,102,98,0.55);
  font-style: italic;
  margin-top: 14px;
  text-align: center;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   17. Service Page Layout
   --------------------------------------------------------- */
.service-page-layout {
  padding: var(--section-pad) 0;
}

.service-page-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: start;
}

.service-page-main h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--ap-charcoal);
  margin-bottom: 24px;
}

.service-page-main p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ap-mid);
  line-height: 1.85;
  margin-bottom: 18px;
}

.service-detail-img {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 4/5;
  object-fit: cover;
}

.conditions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.conditions-grid h3 {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-mid);
  margin-bottom: 4px;
}

/* Practitioner pull card */
.practitioner-card {
  background: var(--ap-off-white);
  border: 1px solid var(--ap-light);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.practitioner-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.practitioner-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ap-charcoal);
  margin-bottom: 4px;
}

.practitioner-card .prac-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ap-sage);
  margin-bottom: 12px;
}

.practitioner-card p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ap-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

.practitioner-card .btn-primary {
  width: 100%;
  justify-content: center;
  font-size: 0.8rem;
}

/* First visit steps on service pages */
.first-visit-section {
  padding: var(--section-pad) 0;
  background-color: var(--ap-off-white);
}

.first-visit-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 700px;
  margin: 40px auto 0;
}

.first-visit-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--ap-white);
  border: 1px solid var(--ap-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.first-visit-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ap-sage);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.first-visit-step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ap-charcoal);
  margin-bottom: 6px;
}

.first-visit-step p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ap-mid);
  line-height: 1.7;
}

/* ---------------------------------------------------------
   18. Page Section Headers
   --------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 16px;
}

.section-header h2 {
  margin-top: 8px;
}

/* ---------------------------------------------------------
   19. Quick-Select Discipline Cards (Booking Page)
   --------------------------------------------------------- */
.discipline-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.discipline-card {
  border: 2px solid var(--ap-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}

.discipline-card:hover {
  border-color: var(--ap-sage);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.discipline-card svg {
  width: 36px;
  height: 36px;
  stroke: var(--ap-sage);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.discipline-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ap-charcoal);
}

.discipline-card p {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--ap-mid);
  line-height: 1.6;
}

/* ---------------------------------------------------------
   20. Insurance Page
   --------------------------------------------------------- */
.insurer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.insurer-item {
  border: 1.5px solid var(--ap-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  background: var(--ap-white);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ap-charcoal);
  text-align: center;
  transition: border-color var(--transition);
}

.insurer-item:hover {
  border-color: var(--ap-sage);
  color: var(--ap-sage-dark);
}

.coverage-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 0.92rem;
}

.coverage-table th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ap-mid);
  background: var(--ap-off-white);
  padding: 14px 20px;
  text-align: left;
  border-bottom: 2px solid var(--ap-light);
}

.coverage-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--ap-light);
  color: var(--ap-mid);
  font-weight: 300;
  vertical-align: top;
  line-height: 1.6;
}

.coverage-table tr:last-child td {
  border-bottom: none;
}

.coverage-table td:first-child {
  font-weight: 600;
  color: var(--ap-charcoal);
}

.coverage-table tr:hover td {
  background: var(--ap-off-white);
}

/* ---------------------------------------------------------
   21. Contact Page
   --------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  margin-top: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ap-charcoal);
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--ap-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail-body h5 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-mid);
  margin-bottom: 4px;
}

.contact-detail-body p,
.contact-detail-body a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ap-charcoal);
  line-height: 1.6;
}

.contact-detail-body a:hover {
  color: var(--ap-sage);
}

.contact-hours {
  margin-top: 4px;
}

.contact-hours li {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ap-mid);
  padding: 4px 0;
  border-bottom: 1px solid var(--ap-light);
  gap: 12px;
}

.contact-hours li span:first-child {
  font-weight: 400;
  color: var(--ap-charcoal);
}

/* ---------------------------------------------------------
   22. Area Pages
   --------------------------------------------------------- */
.area-page-body {
  padding: var(--section-pad) 0;
}

.area-page-body p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ap-mid);
  line-height: 1.85;
  margin-bottom: 20px;
  max-width: 800px;
}

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

.area-highlight {
  background: var(--ap-off-white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--ap-light);
}

.area-highlight h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ap-charcoal);
  margin-bottom: 8px;
}

.area-highlight p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ap-mid);
  line-height: 1.65;
}

/* ---------------------------------------------------------
   23. Philosophy Section (Team Page)
   --------------------------------------------------------- */
.philosophy-section {
  background-color: var(--ap-off-white);
  padding: var(--section-pad) 0;
  margin-top: var(--section-pad);
}

.philosophy-section .container--narrow p {
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--ap-mid);
  line-height: 1.9;
  margin-bottom: 24px;
}

/* ---------------------------------------------------------
   24. Misc Components
   --------------------------------------------------------- */
.divider {
  height: 1px;
  background: var(--ap-light);
  margin: 48px 0;
}

.text-sage { color: var(--ap-sage); }
.text-slate { color: var(--ap-slate); }
.text-white { color: #fff; }
.text-charcoal { color: var(--ap-charcoal); }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ---------------------------------------------------------
   25. Responsive — Tablet (768px)
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .discipline-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-profile,
  .team-profile--reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .team-profile--reverse .team-profile-img {
    order: 0;
  }

  .team-profile--reverse .team-profile-body {
    order: 0;
  }

  .team-profile-img img {
    max-height: 400px;
  }

  .service-page-grid {
    grid-template-columns: 1fr;
  }

  .practitioner-card {
    position: static;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: start;
  }

  .practitioner-card img {
    margin-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .insurer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-flow {
    flex-wrap: wrap;
    gap: 24px;
  }

  .step-flow::before {
    display: none;
  }

  .step-item {
    flex: 1 1 calc(50% - 24px);
    min-width: 200px;
  }

  .area-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 56px;
    --section-pad-sm: 36px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-bar-inner {
    justify-content: center;
    gap: 32px 48px;
  }

  .trust-stat {
    min-width: 120px;
  }

  .insurance-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .discipline-cards {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .booking-form-wrapper {
    padding: 28px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-col--brand {
    grid-column: auto;
  }

  .hero-panel p {
    font-size: 1rem;
  }

  .coverage-table {
    font-size: 0.82rem;
  }

  .coverage-table th,
  .coverage-table td {
    padding: 10px 12px;
  }

  .insurer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------------------------------------------------------
   26. Responsive — Mobile (375px)
   --------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --section-pad: 48px;
  }

  .container {
    padding: 0 16px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .discipline-cards {
    grid-template-columns: 1fr;
  }

  .step-item {
    flex: 1 1 100%;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn-primary,
  .btn-group .btn-outline-slate,
  .btn-group .btn-outline-white {
    width: 100%;
    justify-content: center;
  }

  .area-pills {
    gap: 8px;
  }

  .trust-stat-number {
    font-size: 1.6rem;
  }

  .insurance-strip-inner .btn-outline-white {
    width: 100%;
    justify-content: center;
  }

  .area-highlights {
    grid-template-columns: 1fr;
  }

  .insurer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .practitioner-card {
    grid-template-columns: 1fr;
  }
}
