/* =======================================================================
   GLOBAL.CSS - MASTER STYLES FOR ALL PAGES
   ======================================================================= */

/* -------------------------------------------------------------
   0. SMOOTH SCROLL & ACCESSIBILITY
------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Skip to Main Content Link (Accessibility) */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* -------------------------------------------------------------
   1. CSS VARIABLES & ROOT THEME TOKENS
------------------------------------------------------------- */
:root {
  --primary: #0b66c3;
  --primary-dark: #084b91;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --bg-light: #f7f8fb;
  --bg-section: #f9fafb;
  --text-main: #1f2933;
  --text-muted: #4b5563;
  --max-width: 1160px;
  --max-width-narrow: 900px;
  /* Standardized spacing */
  --section-padding: 90px;
  --section-padding-sm: 60px;
  --section-padding-lg: 112px;
}

/* -------------------------------------------------------------
   2. GLOBAL ELEMENT RESETS & TYPOGRAPHY
------------------------------------------------------------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: auto !important;
  min-height: 100% !important;
  /* ANDROID FIX: Prevent white overscroll area */
  overscroll-behavior: none;
  background-color: #0f172a !important;
}

html {
  background: #0f172a !important; /* Match footer - prevents white on overscroll */
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: #0f172a !important; /* Match footer color so no white shows */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
}

/* Main content - WEBKIT RECOMMENDED: Let flexbox handle layout naturally, no vh math */
main, 
#main-content,
.main-content {
  flex: 1 0 auto;
  background: #ffffff;
  min-height: auto !important; /* Do NOT use vh calculations - breaks Safari */
}

/* Header doesn't grow */
.site-header {
  flex-shrink: 0;
  background: #ffffff;
}

/* Footer - WEBKIT RECOMMENDED: margin-top auto pushes footer down naturally */
.site-footer {
  flex-shrink: 0;
  background: #0f172a;
  margin-top: auto;
}

/* Ensure sections have white background */
section {
  background-color: #ffffff;
}

section[style*="background"] {
  /* Allow inline background styles to override */
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 { 
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Left-align all section headings by default for consistency */
section h2 {
  text-align: left;
  margin-bottom: 1.5rem;
}

p { 
  font-size: 1.125rem;
  line-height: 1.7;
}

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

/* Photos and hero images get rounded corners and shadow */
section img:not(.benefit-icon):not([src*=".svg"]),
.service-card img,
.team-card img,
.fn-practitioner-image img {
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Icons and SVGs should have no border-radius/shadow */
img.benefit-icon,
img[src*=".svg"],
.fn-condition-icon img {
  border-radius: 0;
  box-shadow: none;
}

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

/* -------------------------------------------------------------
   3. GLOBAL LAYOUT
------------------------------------------------------------- */
.container,
.rm-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Sections */
.rm-section {
  padding: 112px 0 96px;
  background: #ffffff;
}

.rm-section-alt {
  padding: 112px 0 96px;
  background: var(--bg-section);
}

.rm-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 45px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.rm-heading p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Donation / Two-Column Grid */
.donation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.donation-text {
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .donation-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* -------------------------------------------------------------
   4. GLOBAL HEADER
------------------------------------------------------------- */

/* Top Utility Bar */
.header-top {
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 0;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-top-left,
.header-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-top-left a,
.header-top-right a {
  color: #e2e8f0;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-top-left svg,
.header-top-right svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Main Header */
.site-header {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: sticky;
  position: -webkit-sticky; /* Safari support */
  top: 0;
  z-index: 9999;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
}

.logo img { height: 70px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  color: #111827;
}

/* Dropdown Menu Styles */
.main-nav .has-dropdown {
  position: relative;
}

.main-nav .has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav .has-dropdown > a::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}

.main-nav .has-dropdown:hover > a::after {
  transform: rotate(180deg);
}

.main-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
  margin-top: 10px;
}

.main-nav .dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.main-nav .has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
}

.main-nav .dropdown li {
  padding: 0;
}

.main-nav .dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: #374151;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav .dropdown a:hover {
  background: #f3f4f6;
  color: var(--primary);
}

/* Mobile Header Toggle */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #cdd2d8;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.nav-toggle .bar {
  width: 22px;
  height: 2.5px;
  background: #111;
  margin: 4px 0;
  border-radius: 2px;
}

@media(max-width: 1024px){
  .nav-toggle { display: flex; }
  .header-inner { padding: 14px 20px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    align-items: flex-start;
  }
  nav.main-nav a { padding: 12px 0; font-size: 1.05rem; }
  .logo img { height: 55px; width: auto; }
  .header-cta { width: 100%; text-align: center; }
  
  /* Mobile Dropdown Styles */
  .main-nav .has-dropdown > a::after {
    margin-left: 6px;
  }
  .main-nav .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    padding: 0;
    margin: 0;
    display: none;
    background: transparent;
  }
  .main-nav .has-dropdown.open .dropdown {
    display: block;
  }
  .main-nav .has-dropdown.open > a::after {
    transform: rotate(180deg);
  }
  .main-nav .dropdown a {
    padding: 8px 0 8px 20px;
    font-size: 0.95rem;
    color: #6b7280;
  }
  .main-nav .dropdown a:hover {
    background: transparent;
    color: var(--primary);
  }
}

/* -------------------------------------------------------------
   5. GLOBAL BUTTON SYSTEM
------------------------------------------------------------- */
.btn-primary,
.header-cta {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fff !important;
  background: var(--primary);
  transition: .15s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-blue { background: var(--primary); }
.btn-dark { background: var(--primary-dark); }
.btn-accent { background: var(--accent); }
.btn-green { background: #059669; }

/* Secondary Button (outline style) */
.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--primary);
  transition: .15s ease;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Hover States */
.btn-primary:hover,
.btn-blue:hover,
.header-cta:hover { 
  background: var(--primary-dark); 
  transform: translateY(-2px);
}

.btn-accent:hover { background: var(--accent-dark) !important; }
.btn-green:hover { background: #047857 !important; }
.btn-dark:hover { background: #1f2933 !important; }

/* -------------------------------------------------------------
   6. GLOBAL CARD COMPONENTS
------------------------------------------------------------- */
.card-base {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
  padding: 32px;
  transition: transform 0.2s ease;
}

.cta-card {
  text-align: center;
}

.cta-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

/* -------------------------------------------------------------
   7. SECTION HEADING (Centered Headers)
------------------------------------------------------------- */
.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.section-heading h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.section-heading p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* -------------------------------------------------------------
   8. GLOBAL GRIDS
------------------------------------------------------------- */
.footer-grid,
.team-grid,
.cta-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 32px;
  justify-content: center;
}

.team-grid { 
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px)); 
  justify-content: center;
}

/* Centered card grids - for sections with 2-4 cards that should center */
.cta-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
}

/* -------------------------------------------------------------
   8b. TEAM MEMBER CARDS
------------------------------------------------------------- */
.team-member-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.team-member-card img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid #e0f2fe;
}

.team-member-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.team-member-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.team-member-card h3 a:hover {
  color: var(--primary);
}

.team-member-card .title {
  display: block;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-member-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
}

.team-member-card .btn-more {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.team-member-card .btn-more:hover {
  background: var(--primary);
  color: #fff;
}

/* Team Member (Homepage variant) */
.team-member {
  display: block;
  text-align: center;
  padding: 20px;
  border-radius: 16px;
  transition: transform 0.2s ease;
}

.team-member:hover {
  transform: translateY(-4px);
}

.team-member img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid #e0f2fe;
}

.team-member h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-member p {
  font-size: 0.9rem;
  color: #64748b;
}

.team-member .team-title {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* -------------------------------------------------------------
   9. GLOBAL ACCORDION
------------------------------------------------------------- */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-button {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
}

/* -------------------------------------------------------------
   10. SECTION BACKGROUNDS
------------------------------------------------------------- */
.section {
  padding: 60px 0;
}

.section-light {
  padding: 60px 0;
  background: #fff;
}

.section-alt {
  padding: 60px 0;
  background: #f9fafb;
}

/* -------------------------------------------------------------
   11. GLOBAL UTILITIES
------------------------------------------------------------- */
.section-accent-bar {
  height: 4px;
  width: 60px;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  background: var(--accent);
}

.section-accent-bar.regen { background: var(--primary); }
.section-accent-bar.family { background: #059669; }

/* Benefits List (Checkmark Style) */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.benefits-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Reveal Animation - use .reveal--disabled modifier to turn off */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.7s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal--disabled { opacity: 1; transform: none; transition: none; }

/* =======================================================================
   CONSOLIDATED RM-* COMPONENT SYSTEM (Used across service/doctor/non-surgical pages)
   ======================================================================= */

/* RM Hero - Standardized with modifiers for different heights */
.rm-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  color: #fff;
  overflow: hidden;
  padding: 100px 20px 60px;
}

.rm-hero--tall { min-height: 420px; }
.rm-hero--short { min-height: 25vh; padding: 80px 20px 40px; }
.rm-hero--medium { min-height: 50vh; padding: 120px 20px 80px; }

.rm-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.rm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 102, 195, 0.95) 0%, rgba(31, 41, 51, 0.8) 100%);
  z-index: 1;
}

/* Lighter overlay variant */
.rm-hero--light-overlay::before {
  background: linear-gradient(135deg, rgba(11, 102, 195, 0.60) 0%, rgba(31, 41, 51, 0.55) 100%);
}

/* Solid color variant (no image, no overlay) */
.rm-hero--solid {
  background-color: var(--primary);
}
.rm-hero--solid::before { content: none; }
.rm-hero--solid img { display: none; }

.rm-hero .content {
  position: relative;
  z-index: 5;
  max-width: 760px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.rm-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
  font-weight: 700;
}

.rm-hero p {
  font-size: 1.2rem;
  line-height: 1.55;
  margin-bottom: 28px;
  color: #f3f4f6;
}

.rm-desktop-cta-hero {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .rm-desktop-cta-hero { display: none; }
}

/* RM Mobile Call CTA */
.rm-mobile-call {
  display: none;
  text-align: center;
  margin-top: 20px;
}

.rm-mobile-call a {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 900px) {
  .rm-mobile-call { display: block; margin-bottom: 20px; }
}

/* RM Container - with narrow variant */
.rm-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.rm-container--narrow {
  max-width: var(--max-width-narrow);
}

/* RM Sections - Standardized with CSS variables */
.rm-section { 
  padding: var(--section-padding) 0; 
  background: #fff;
}

.rm-section-alt { 
  padding: var(--section-padding) 0; 
  background: var(--bg-section); 
}

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

/* RM Heading - with left-align modifier */
.rm-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 45px;
}

.rm-heading--left {
  text-align: left;
  max-width: 100%;
  margin-bottom: 30px;
}

.rm-heading h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.rm-heading--left h2 {
  padding-top: 20px;
  border-top: 1px solid #d1d5db;
}

.rm-heading p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* RM Grid & Cards */
.rm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 320px));
  gap: 32px;
  justify-content: center;
}

.rm-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rm-card:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.rm-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

.rm-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* RM Two-Column Layout */
.rm-two-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 900px) {
  .rm-two-card { grid-template-columns: 1fr; }
}

/* RM Overview Layout */
.rm-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.rm-overview img {
  width: 100%;
  border-radius: 16px;
}

.rm-overview-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .rm-overview { grid-template-columns: 1fr; }
}

/* RM Why Section */
.rm-why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.rm-why img { width: 100%; border-radius: 16px; }
.rm-why ul { padding-left: 22px; line-height: 1.7; }
.rm-why li { margin-bottom: 10px; }

@media (max-width: 900px) {
  .rm-why { grid-template-columns: 1fr; }
}

/* RM Doctor Spotlight */
.rm-doc {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
}

.rm-doc img { width: 100%; border-radius: 16px; }

@media (max-width: 900px) {
  .rm-doc { grid-template-columns: 1fr; text-align: center; }
}

/* RM CTA */
.rm-cta { text-align: center; }
.rm-cta--left { text-align: left; }
.rm-cta h2 { font-size: 2rem; margin-bottom: 1rem; }
.rm-cta a { font-weight: 700; color: var(--primary); text-decoration: underline; }

/* =======================================================================
   UNIFIED FAQ COMPONENT (Single implementation)
   ======================================================================= */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Style for details.faq-item (interactive FAQ using native HTML) */
details.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-dark);
  list-style: none;
  position: relative;
  padding-right: 50px;
  transition: background 0.2s ease;
  font-size: 1.05rem;
}

details.faq-item summary:hover {
  background: #f8fafc;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item[open] summary {
  border-bottom: 1px solid #f0f0f0;
  background: #fcfcfc;
}

details.faq-item .faq-answer {
  padding: 20px 24px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-height: none;
  overflow: visible;
}

details.faq-item .faq-answer p {
  margin: 0;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-question span {
  flex: 1;
  padding-right: 16px;
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer,
.faq-answer.open {
  max-height: 600px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* FAQ Question button/div styling */
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-question span {
  flex-shrink: 0;
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 400;
  width: 24px;
  text-align: center;
}

/* FAQ using <details> element (alternative) */
.faq-details {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-details summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-dark);
  list-style: none;
  position: relative;
  padding-right: 50px;
  transition: background 0.2s ease;
}

.faq-details summary:hover {
  background: #f8fafc;
}

.faq-details summary::-webkit-details-marker { display: none; }

.faq-details summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
}

.faq-details[open] summary::after {
  content: "−";
}

.faq-details[open] summary {
  border-bottom: 1px solid #f0f0f0;
  background: #fcfcfc;
}

.faq-content {
  padding: 20px 24px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* =======================================================================
   UNIFIED SCROLL-TO-TOP BUTTON (Single implementation: .back-to-top)
   ANDROID FIX: Use pointer-events:none instead of display:none
   ======================================================================= */
.back-to-top,
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(11, 102, 195, 0.3);
  /* ANDROID FIX: Start fully transparent and non-interactive */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px) translateZ(0);
  -webkit-transform: translateY(20px) translateZ(0);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  /* Hardware acceleration for Android */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* ANDROID FIX: Prevent rendering white box when hidden */
  will-change: opacity, transform;
}

.back-to-top.visible,
.back-to-top.show,
#scrollTopBtn.visible,
#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) translateZ(0);
  -webkit-transform: translateY(0) translateZ(0);
}

.back-to-top:hover,
#scrollTopBtn:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(11, 102, 195, 0.4);
}

.back-to-top:focus,
#scrollTopBtn:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.back-to-top svg,
#scrollTopBtn svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .back-to-top,
  #scrollTopBtn {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  
  .back-to-top svg,
  #scrollTopBtn svg {
    width: 20px;
    height: 20px;
  }
}

/* =======================================================================
   STANDARDIZED HERO MODIFIERS (for .hero class)
   ======================================================================= */
.hero--tall { min-height: 85vh; }
.hero--medium { min-height: 70vh; }
.hero--short { min-height: 50vh; }
.hero--auto { min-height: auto; }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 70px 0 40px;
  margin-bottom: 0;
}

.footer-section-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: #fff;
}

.footer-logo img { height: 70px; margin-bottom: 16px; }

.footer-links li { margin: 8px 0; line-height: 1.8; }
.footer-links a:hover { color: var(--primary); }

/* Footer bottom Schedule Appointment button - always push to right */
.site-footer [style*="border-top"] > a[style*="background: #f97316"],
.site-footer [style*="border-top"] > a[href*="sked.life"] {
  margin-left: auto;
}

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
}

/* Mobile Sticky CTA */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #1e293b; /* Dark background to prevent white box on Android */
  box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
  padding: 10px 20px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  /* Android fix: hardware acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.mobile-cta-bar .btn-primary {
  width: 100%;
  padding: 14px 20px;
  text-align: center;
  font-size: 1.1rem;
  border-radius: 999px !important;
}

/* Hide mobile CTA on desktop */
@media(min-width:769px){
  .mobile-cta-bar { display:none; }
}

/* Mobile CTA spacer - add this class to a div before mobile-cta-bar */
.mobile-cta-spacer {
  display: none;
}

@media(max-width:768px){
  .mobile-cta-spacer {
    display: block;
    height: 70px;
  }
}

/* -------------------------------------------------------------
   10. ADAPTIVE CTA TEXT (Header Phone Buttons)
------------------------------------------------------------- */
.cta-text-desktop { display: none; }
.cta-text-mobile { display: inline; }

@media (min-width: 1025px) {
  .cta-text-desktop { display: inline; }
  .cta-text-mobile { display: none; }
}

/* -------------------------------------------------------------
   11. DESKTOP CTA FLOAT
------------------------------------------------------------- */
.desktop-cta-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 990;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
@media(max-width: 1024px) {
  .desktop-cta-float { display: none; }
}

/* -------------------------------------------------------------
   12. HERO SECTION STYLES
------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: white;
  text-align: left;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(.55);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.65));
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 60px 20px;
  max-width: 600px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.hero-kicker {
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-subtitle {
  color: #e5e7eb;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-content .container {
  padding: 0 20px;
}

/* -------------------------------------------------------------
   13. SECTION KICKER, TITLE & INTRO
------------------------------------------------------------- */
section { padding: 75px 0; }

.section-kicker {
  text-align: center;
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--primary);
  margin-bottom: 6px;
}

.section-title {
  text-align: center;
  font-size: 2.15rem;
  margin: 0 0 22px;
}

.section-intro {
  text-align: center;
  margin: 0 auto 40px;
  max-width: 680px;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   14. TRUST BADGES
------------------------------------------------------------- */
.trust-badge-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 30px;
  margin: 24px 0 0;
}

.trust-badge-item {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.trust-badge-item svg {
  color: var(--accent);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* -------------------------------------------------------------
   15. SERVICE CARD GRID (FM-GRID)
------------------------------------------------------------- */
.fm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 32px;
  margin-top: 50px;
  justify-content: center;
}

.fm-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  text-align: center;
  transition: all 0.3s ease;
}

.fm-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.fm-card-icon {
  color: var(--primary);
  background: var(--bg-light);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 12px;
}

/* NOTE: FAQ styles are now consolidated in the UNIFIED FAQ COMPONENT section above */

/* -------------------------------------------------------------
   17. SECONDARY CTA BUTTON
------------------------------------------------------------- */
.header-cta-secondary {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  color: var(--accent) !important;
  border: 2px solid var(--accent);
  transition: .15s ease;
  white-space: nowrap;
}

.header-cta-secondary:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

/* White variant for hero sections */
.btn-outline-white {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  color: #fff !important;
  border: 2px solid #fff;
  transition: .15s ease;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------
   17B. PRACTITIONER SECTION (Meet Your Doctor/Chiropractor)
------------------------------------------------------------- */
.fn-practitioner-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.fn-practitioner-image img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.fn-practitioner-content h2 {
  margin-bottom: 8px;
}

.fn-practitioner-content h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.fn-practitioner-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .fn-practitioner-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .fn-practitioner-image img {
    max-width: 200px;
    margin: 0 auto;
  }
}

/* -------------------------------------------------------------
   17C. CONDITIONS GRID & CARDS
------------------------------------------------------------- */
.fn-conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.fn-condition-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
  transition: .25s;
  border: 1px solid #eef2f6;
  text-align: center;
}

.fn-condition-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .1);
}

.fn-condition-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border-radius: 50%;
  border: 2px solid #bae6fd;
}

.fn-condition-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.fn-condition-card > img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
}

.fn-condition-card h3 {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.fn-condition-card p {
  text-align: center;
  color: var(--text-muted);
  line-height: 1.55;
}

.fn-condition-card ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  text-align: left;
}

.fn-condition-card ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.4;
  border-bottom: 1px solid #f1f5f9;
}

.fn-condition-card ul li:last-child {
  border-bottom: none;
}

.fn-condition-card ul li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: #0b66c3;
  font-weight: 700;
  font-size: 0.9rem;
}

/* -------------------------------------------------------------
   17C-B. AUTHOR BYLINE
------------------------------------------------------------- */
.author-byline {
  background: #f8fafc;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.author-byline .container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #64748b;
}

.author-byline img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.author-byline a {
  color: var(--primary);
  font-weight: 500;
}

/* -------------------------------------------------------------
   17C-C. BREADCRUMB NAV
------------------------------------------------------------- */
.breadcrumb-nav {
  background: #fff;
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #64748b;
}

.breadcrumb-list a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #94a3b8;
}

.breadcrumb-current {
  color: #1f2933;
  font-weight: 500;
}

/* -------------------------------------------------------------
   17D. PROCESS GRID (How It Works Steps)
------------------------------------------------------------- */
.fn-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  gap: 24px;
  margin: 24px 0;
  justify-content: center;
}

.fn-process-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
}

.fn-process-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.fn-process-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.fn-process-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* -------------------------------------------------------------
   17E. EXPECT GRID (What to Expect Steps)
------------------------------------------------------------- */
.fn-expect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  gap: 24px;
  margin: 24px 0;
  justify-content: center;
}

.fn-expect-step {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  position: relative;
}

.fn-step-number {
  position: absolute;
  top: -12px;
  left: 20px;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.fn-expect-step h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  padding-top: 8px;
}

.fn-expect-step p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* -------------------------------------------------------------
   17F. BENEFIT ICON SIZING
------------------------------------------------------------- */
.benefit-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  object-fit: contain;
}

/* -------------------------------------------------------------
   18. BENEFITS GRID (Functional Nutrition, etc.)
------------------------------------------------------------- */
.fn-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  gap: 24px;
  margin: 24px 0;
  justify-content: center;
}

.fn-benefits-grid .benefit-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fn-benefits-grid .benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.fn-benefits-grid .benefit-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.fn-benefits-grid .benefit-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* -------------------------------------------------------------
   19. RELATED LINKS GRID (SEO Internal Linking)
------------------------------------------------------------- */
.related-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 280px));
  gap: 16px;
  margin: 24px 0;
  justify-content: center;
}

.related-link {
  display: block;
  padding: 16px 20px;
  background: var(--bg-light);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.related-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 102, 195, 0.25);
}

.text-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.text-link:hover {
  color: var(--primary-dark);
}

/* =======================================================================
   GLOBAL MOBILE RESPONSIVE STYLES
   ======================================================================= */

@media (max-width: 768px) {
  /* Typography */
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.25rem; }
  p { font-size: 1rem; }
  
  /* Buttons */
  .btn-primary,
  .btn-accent,
  .btn-green,
  .header-cta {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  /* Footer Mobile */
  .site-footer {
    margin-bottom: 0 !important;
    padding-bottom: 40px;
  }
  
  .site-footer .container > div:first-child {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 30px !important;
  }
  
  .site-footer ul {
    text-align: center;
  }
  
  .site-footer [style*="border-top"] {
    flex-direction: column !important;
    text-align: center;
    gap: 20px !important;
  }
  
  .site-footer [style*="border-top"] > div:last-child {
    width: 100%;
  }
  
  .site-footer [style*="border-top"] a[style*="background: #f97316"] {
    width: 100%;
    max-width: 280px;
  }
  
  /* Scroll to top button */
  #scrollTopBtn {
    bottom: 80px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
  
  /* Form elements */
  input, select, textarea {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
  }
  
  /* Tables */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Related links */
  .related-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  /* Extra small adjustments */
  .container {
    padding: 0 12px;
  }
  
  .btn-primary,
  .btn-accent,
  .header-cta {
    width: 100%;
    text-align: center;
  }
}

/* -------------------------------------------------------------
   TRUST BAR COMPONENT
------------------------------------------------------------- */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 30px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.trust-item {
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.trust-item:hover {
  transform: translateY(-2px);
}

.trust-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.trust-label {
  font-size: 0.85rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .trust-bar {
    gap: 24px;
    padding: 24px 16px;
  }
  
  .trust-item {
    flex: 0 0 calc(50% - 12px);
  }
  
  .trust-number {
    font-size: 1.5rem;
  }
  
  .trust-label {
    font-size: 0.75rem;
  }
  
  /* Nutrition section mobile */
  .nutrition-two-col {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* -------------------------------------------------------------
   CONTACT FORM STYLES
------------------------------------------------------------- */
.contact-form-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  max-width: 700px;
  margin: 0 auto;
}

.gilead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #374151;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 102, 195, 0.15);
}

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

.form-note {
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
  padding: 12px;
  background: #fef3c7;
  border-radius: 8px;
  border: 1px solid #fcd34d;
}

.gilead-form button[type="submit"] {
  align-self: center;
  min-width: 200px;
}

@media (max-width: 600px) {
  .contact-form-box {
    padding: 24px 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* =======================================================================
   BACK TO TOP BUTTON
   ======================================================================= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(11, 102, 195, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(11, 102, 195, 0.4);
}

.back-to-top:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* =======================================================================
   PRINT STYLES
   ======================================================================= */
@media print {
  /* Hide non-essential elements */
  .site-header,
  .nav-toggle,
  .main-nav,
  .mobile-cta-bar,
  .desktop-cta-float,
  .back-to-top,
  .skip-to-content,
  .hero-buttons,
  .btn-primary,
  .btn-accent,
  .btn-outline,
  .cta-section,
  .faq-section,
  footer,
  .site-footer,
  iframe,
  video,
  .hero-overlay,
  .hero-bg {
    display: none !important;
  }
  
  /* Reset backgrounds and colors for ink saving */
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    line-height: 1.5;
  }
  
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  /* Ensure content is full width */
  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Make links visible */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
  
  a[href^="#"]::after,
  a[href^="javascript"]::after,
  a[href^="tel"]::after {
    content: "";
  }
  
  /* Ensure images print properly */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  
  /* Prevent page breaks inside important elements */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  p, blockquote, ul, ol, dl, table, pre {
    page-break-inside: avoid;
  }
  
  /* Add page margins */
  @page {
    margin: 2cm;
  }
  
  /* Show hero content without background */
  .hero {
    background: none !important;
    padding: 20px 0 !important;
    min-height: auto !important;
  }
  
  .hero-content {
    position: relative !important;
    transform: none !important;
  }
  
  /* Print-friendly sections */
  section {
    padding: 20px 0 !important;
    page-break-inside: avoid;
  }
  
  /* Add URL to the bottom of the page */
  body::after {
    content: "Printed from: gileadhealingcenter.com";
    display: block;
    text-align: center;
    font-size: 10pt;
    color: #666;
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
  }
}

/* =======================================================================
   ENHANCED FOCUS STYLES (Accessibility)
   ======================================================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Remove default outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* =======================================================================
   MOBILE WHITE SPACE FIX - Proper fix for all 4 root causes
   ======================================================================= */
@media (max-width: 768px) {
  /* CAUSE #1 FIX: Use height:100% not min-height:100vh */
  html {
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    /* No min-height: 100vh or -webkit-fill-available */
    overflow-x: hidden;
    overflow-y: auto;
    /* ANDROID FIX: Prevent elastic overscroll white flash */
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
  }
  
  body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100%;
    height: auto;
    /* ANDROID FIX: Prevent elastic overscroll */
    overscroll-behavior-y: none;
  }
  
  /* CAUSE #2 FIX: Footer with explicit background */
  footer.site-footer,
  .site-footer {
    margin-bottom: 0 !important;
    padding-bottom: 24px !important;
    background: #0f172a !important;
  }
  
  /* CAUSE #4 FIX: Back-to-top safer positioning */
  .back-to-top {
    bottom: 20px !important;
    right: 20px !important;
  }
  
  /* Clean up pseudo-elements */
  body::after,
  footer.site-footer::after,
  .site-footer::after {
    display: none !important;
    content: none !important;
  }
}

/* =======================================================================
   FOOTER BACKGROUND - SIMPLIFIED
   ======================================================================= */
.site-footer,
footer {
  position: relative;
  background: #0f172a;
}

/* Back to top button positioning */
.back-to-top {
  z-index: 9999;
}

/* =======================================================================
   MOBILE OPTIMIZATIONS
   Comprehensive mobile-first improvements for touch, accessibility,
   readability, and user experience
   ======================================================================= */

/* =======================================================================
   TAP TARGET IMPROVEMENTS (Minimum 48px × 48px)
   Google recommends minimum 48×48px for touch targets
   ======================================================================= */

/* Navigation links - larger touch targets */
@media (max-width: 1024px) {
  .main-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 14px 16px !important;
  }
  
  .main-nav .dropdown a {
    min-height: 44px;
    padding: 12px 20px !important;
  }
  
  /* Hamburger menu button - larger */
  .nav-toggle {
    min-width: 48px;
    min-height: 48px;
    width: 48px;
    height: 48px;
  }
}

/* All buttons - minimum touch target */
@media (max-width: 768px) {
  .btn-primary,
  .btn-accent,
  .btn-green,
  .btn-blue,
  .btn-dark,
  .btn-secondary,
  .btn-outline,
  .btn-outline-light,
  .header-cta,
  .header-cta-secondary,
  button[type="submit"] {
    min-height: 48px;
    min-width: 48px;
    padding: 14px 24px;
    font-size: 1rem;
  }
  
  /* FAQ items - larger touch area */
  details.faq-item summary,
  .faq-question {
    min-height: 56px;
    padding: 16px 50px 16px 20px;
  }
  
  /* Footer links - larger touch targets */
  .footer-links a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
    padding: 0 8px;
  }
  
  .footer-legal-links a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
    padding: 0 12px;
  }
  
  /* Download cards */
  .download-card {
    min-height: 60px;
    padding: 16px 20px;
  }
  
  /* Team cards - Read More button */
  .team-member-card .btn-more {
    min-height: 48px;
    padding: 12px 28px;
  }
  
  /* Related links */
  .related-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
  }
  
  /* Breadcrumb links */
  .breadcrumb-list a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 4px;
  }
}

/* =======================================================================
   BUTTON CONTRAST IMPROVEMENTS
   WCAG AA requires 4.5:1 for normal text, 3:1 for large text
   ======================================================================= */

/* Primary button - enhanced contrast */
.btn-primary,
.btn-blue,
.header-cta {
  background: #0958a8;
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.btn-primary:hover,
.btn-blue:hover,
.header-cta:hover {
  background: #074584;
}

/* Accent button - enhanced contrast */
.btn-accent,
.header-cta-secondary {
  background: #e85d0f;
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.btn-accent:hover,
.header-cta-secondary:hover {
  background: #c94f0d;
}

/* Green button - enhanced contrast */
.btn-green {
  background: #047857;
  color: #ffffff !important;
}

.btn-green:hover {
  background: #065f46;
}

/* Outline buttons - better visibility */
.btn-secondary,
.btn-outline {
  border-width: 2px;
  border-color: #0958a8;
  color: #0958a8;
  font-weight: 600;
}

.btn-outline-light {
  border-width: 2px;
  border-color: #ffffff;
}

/* Mobile CTA bar - high contrast */
@media (max-width: 768px) {
  .mobile-cta-bar .btn-primary {
    background: #e85d0f;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  
  .mobile-cta-bar .btn-primary:active {
    background: #c94f0d;
    transform: scale(0.98);
  }
}

/* =======================================================================
   CLICK-TO-CALL ENHANCEMENTS
   ======================================================================= */

/* Global click-to-call styling */
a[href^="tel:"] {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  /* Hero phone button - prominent */
  .hero-buttons a[href^="tel:"],
  a.btn-primary[href^="tel:"],
  a.btn-accent[href^="tel:"] {
    background: #e85d0f;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  
  /* Contact info cards - phone emphasis */
  .contact-card a[href^="tel:"] {
    display: block;
    background: var(--primary);
    color: #fff !important;
    padding: 14px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 12px;
    text-decoration: none;
  }
}

/* =======================================================================
   FORM OPTIMIZATIONS
   ======================================================================= */

@media (max-width: 768px) {
  /* Form container */
  .contact-form-box,
  .form-container {
    padding: 20px 16px;
  }
  
  /* Form fields - larger touch targets */
  .form-field input,
  .form-field select,
  .form-field textarea {
    min-height: 52px;
    padding: 14px 16px;
    font-size: 16px !important;
    border-radius: 10px;
    border: 2px solid #d1d5db;
  }
  
  .form-field input:focus,
  .form-field select:focus,
  .form-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11, 102, 195, 0.15);
  }
  
  /* Labels - better readability */
  .form-field label {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #1f2937;
  }
  
  /* Textarea - reasonable height */
  .form-field textarea {
    min-height: 100px;
    max-height: 150px;
  }
  
  /* Form rows - single column on mobile */
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Submit button - full width, prominent */
  .gilead-form button[type="submit"],
  form button[type="submit"],
  .form-submit {
    width: 100%;
    min-height: 54px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 8px;
    background: #e85d0f;
  }
  
  /* Form note - more compact */
  .form-note {
    font-size: 0.85rem;
    padding: 10px 14px;
  }
  
  /* Select dropdown arrow - larger tap area */
  .form-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    padding-right: 48px;
  }
}

/* =======================================================================
   TEXT DENSITY IMPROVEMENTS
   ======================================================================= */

@media (max-width: 768px) {
  /* Base text - improved line height and spacing */
  p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
  }
  
  /* Section introductions - more breathing room */
  .section-intro,
  .section-heading p,
  .rm-heading p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }
  
  /* Lists - better spacing */
  ul, ol {
    padding-left: 24px;
  }
  
  li {
    margin-bottom: 10px;
    line-height: 1.65;
  }
  
  /* Benefits lists - improved readability */
  .benefits-list li {
    padding-left: 32px;
    margin-bottom: 14px;
    line-height: 1.6;
  }
  
  /* Card text - appropriate sizing */
  .service-card p,
  .team-member-card p,
  .rm-card p,
  .fm-card p {
    font-size: 0.95rem;
    line-height: 1.65;
  }
  
  /* Policy/legal pages - better readability */
  .policy-content p,
  .policy-content li {
    font-size: 0.95rem;
    line-height: 1.75;
  }
  
  /* FAQ answers - clearer text */
  .faq-answer p,
  details.faq-item .faq-answer {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  /* Section headers - centered with proper spacing */
  .section-heading,
  .rm-heading {
    margin-bottom: 32px;
    padding: 0 8px;
  }
}

/* =======================================================================
   ALIGNMENT & LAYOUT FIXES
   ======================================================================= */

@media (max-width: 768px) {
  /* Container padding */
  .container,
  .rm-container {
    padding: 0 16px;
  }
  
  /* Hero section */
  .hero {
    min-height: 45vh;
    padding: 80px 16px 60px;
  }
  
  .hero-content {
    text-align: center;
    padding: 0;
    max-width: 100%;
  }
  
  .hero h1 {
    text-align: center;
  }
  
  .hero-subtitle {
    text-align: center;
    max-width: 100%;
  }
  
  .hero-kicker {
    text-align: center;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .hero-buttons a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  /* Service/RM hero */
  .service-hero,
  .rm-hero {
    text-align: center;
    justify-content: center;
  }
  
  .service-hero .content,
  .rm-hero .content {
    text-align: center;
    max-width: 100%;
  }
  
  /* Two-column grids - stack on mobile */
  .rm-overview,
  .rm-why,
  .rm-doc,
  .rm-two-card,
  .fn-practitioner-grid,
  .donation-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* Card grids - single column */
  .service-grid,
  .services-grid,
  .rm-grid,
  .team-grid,
  .fm-grid,
  .cta-grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Process/step grids */
  .fn-process-grid,
  .fn-expect-grid,
  .fn-benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Team member images - centered */
  .team-member-card img,
  .team-member img {
    margin: 0 auto 16px;
  }
  
  /* Practitioner grid - centered image */
  .fn-practitioner-image img {
    margin: 0 auto;
    max-width: 200px;
  }
  
  .fn-practitioner-content {
    text-align: center;
  }
  
  /* Download cards - stack content */
  .download-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .download-card-btn {
    width: 100%;
  }
  
  /* Section padding - reduced on mobile */
  section,
  .rm-section,
  .rm-section-alt {
    padding: 50px 0;
  }
  
  /* Footer alignment */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .footer-logo {
    margin: 0 auto 16px;
  }
  
  .footer-logo img {
    margin: 0 auto;
  }
  
  .footer-links,
  .footer-hours,
  .footer-contact {
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .footer-legal-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* Trust bar - 2 columns on mobile */
  .trust-bar {
    gap: 16px;
    padding: 20px 16px;
  }
  
  .trust-item {
    flex: 0 0 calc(50% - 8px);
  }
  
  /* Breadcrumbs - wrap properly */
  .breadcrumb-nav {
    padding: 10px 16px;
  }
  
  .breadcrumb-list {
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 4px;
  }
}

/* =======================================================================
   MOBILE CTA BAR IMPROVEMENTS
   ======================================================================= */

@media (max-width: 768px) {
  .mobile-cta-bar {
    padding: 12px 16px;
    background: linear-gradient(to top, #1e293b 0%, #1e293b 100%);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
  }
  
  .mobile-cta-bar .btn-primary {
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    background: linear-gradient(135deg, #e85d0f 0%, #f97316 100%);
  }
  
  /* Adjust back-to-top position to avoid overlap */
  .back-to-top,
  #scrollTopBtn {
    bottom: 80px !important;
    right: 16px;
  }
  
  /* Mobile CTA spacer */
  .mobile-cta-spacer {
    height: 76px;
  }
}

/* =======================================================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================================================= */

/* Touch-action for better scrolling */
html {
  touch-action: manipulation;
}

/* Prevent text selection during touch interactions */
button,
.btn-primary,
.btn-accent,
.nav-toggle {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Active states for touch feedback */
@media (max-width: 768px) {
  .btn-primary:active,
  .btn-accent:active,
  .header-cta:active {
    transform: scale(0.97);
    opacity: 0.9;
  }
  
  .service-card:active,
  .team-member-card:active,
  .rm-card:active {
    transform: scale(0.98);
  }
}

/* =======================================================================
   LANDSCAPE MOBILE ADJUSTMENTS
   ======================================================================= */

@media (max-width: 900px) and (orientation: landscape) {
  .hero {
    min-height: 70vh;
    padding: 60px 20px 40px;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  section,
  .rm-section {
    padding: 40px 0;
  }
}

/* =======================================================================
   SAFE AREA INSETS (Notched phones)
   ======================================================================= */

@supports (padding: max(0px)) {
  .mobile-cta-bar {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  
  .site-footer {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  
  .hero {
    padding-top: max(80px, calc(60px + env(safe-area-inset-top)));
  }
}
