/* ==========================================================================
   LA Serenity Springs - Calm Ocean (#1) + Tab-Based Sections (#5)
   Generated: 2026-02-06
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;600;700&family=Open+Sans:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #4A90A4;
  --primary-dark: #3A7A8E;
  --primary-light: #5BA0B4;
  --secondary: #7BC4C4;
  --secondary-light: #9DD5D5;
  --accent: #F0F7F4;
  --text: #2C3E50;
  --text-light: #5A6C7D;
  --text-muted: #8B9DAF;
  --bg-white: #FFFFFF;
  --bg-light: #F8FBFC;
  --bg-section: #F0F7F9;
  --border: #D4E6EC;
  --border-light: #E8F1F4;
  --shadow: rgba(74, 144, 164, 0.1);
  --shadow-md: rgba(74, 144, 164, 0.15);
  --shadow-lg: rgba(74, 144, 164, 0.2);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font-heading: 'Lato', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --header-height: 80px;
  --tab-bar-height: 50px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

/* --- 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-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }

/* --- Skip Navigation --- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  font-size: 0.875rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-nav:focus { top: 0; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.3;
  font-weight: 600;
}

h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.625rem; }
p { margin-bottom: 1rem; }

.section-subtitle {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin-top: 12px;
  border-radius: 2px;
}

.section-title--center::after { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section--light { background: var(--bg-light); }
.section--accent { background: var(--accent); }
.section--ocean {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}
.section--ocean h2, .section--ocean h3, .section--ocean .section-title { color: #fff; }
.section--ocean .section-title::after { background: linear-gradient(90deg, var(--secondary), #fff); }
.section--ocean p, .section--ocean li { color: rgba(255,255,255,0.9); }
.section--ocean .testimonial-card { color: var(--text); }
.section--ocean .testimonial-card p { color: var(--text); }
.section--ocean .testimonial-card .testimonial-card__text { color: var(--text); }
.section--ocean .testimonial-card .testimonial-card__author { color: var(--primary); }
.section--ocean .testimonial-card .testimonial-card__program { color: var(--text-muted); }

/* --- Grid --- */
.grid { display: grid; gap: 30px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-white);
  box-shadow: 0 2px 20px var(--shadow);
  transition: all var(--transition);
}

.header__top {
  background: var(--primary);
  color: #fff;
  padding: 6px 0;
  font-size: 0.8125rem;
}

.header__top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__top a {
  color: #fff;
  font-weight: 500;
}

.header__top a:hover { color: var(--secondary-light); }

.header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  height: var(--header-height);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
}

.header__logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.header__nav { display: flex; align-items: center; gap: 28px; }

.header__nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  padding: 4px 0;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.header__nav a:hover::after,
.header__nav a.active::after { width: 100%; }

.header__nav a:hover { color: var(--primary); }

.header__cta-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
}

.header__cta-phone svg { width: 18px; height: 18px; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 15px var(--shadow-md);
}

.btn-cta:hover {
  background: linear-gradient(135deg, var(--primary-dark), #2E6B7A);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-lg);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-white:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Tab Bar (Architecture #5) --- */
.tab-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 10px var(--shadow);
}

.tab-bar__inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-bar__inner::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 14px 24px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  position: relative;
}

.tab-btn:hover {
  color: var(--primary);
  background: var(--accent);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: calc(var(--header-height) + 36px);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,144,164,0.85) 0%, rgba(44,62,80,0.75) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: #fff;
  padding: 60px 0;
}

.hero__content h1 {
  color: #fff;
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.hero__content p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
}

.hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.hero__phone svg { width: 22px; height: 22px; }

/* Inner page hero */
.hero--inner {
  min-height: 350px;
}

.hero--inner .hero__content h1 { font-size: 2.25rem; }

/* --- Wave Divider --- */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

.wave-divider--flip { transform: rotate(180deg); }

/* --- Trust Bar --- */
.trust-bar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}

.trust-bar__inner {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.trust-item__icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

/* --- Cards --- */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-md);
}

.card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card__body { padding: 24px; }
.card__body h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card__body p { color: var(--text-light); font-size: 0.9375rem; margin-bottom: 1rem; }

.card__icon {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card--highlight { border-top: 3px solid var(--primary); }

/* --- Program Cards --- */
.program-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-md);
  border-color: var(--primary);
}

.program-card__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.program-card h3 { margin-bottom: 0.75rem; }
.program-card p { color: var(--text-light); font-size: 0.9375rem; }

/* --- Stats --- */
.stats { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; padding: 40px 0; }

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat__label {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-top: 8px;
}

.section--ocean .stat__number { color: #fff; }
.section--ocean .stat__label { color: rgba(255,255,255,0.8); }

/* --- Testimonials --- */
.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border-light);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--secondary-light);
  font-family: Georgia, serif;
  position: absolute;
  top: 16px;
  left: 24px;
  line-height: 1;
}

.testimonial-card__text {
  font-style: italic;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-top: 24px;
}

.testimonial-card__author {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9375rem;
}

.testimonial-card__program {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover { border-color: var(--primary); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  background: var(--bg-white);
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-align: left;
  gap: 16px;
}

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

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform var(--transition);
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

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

.faq-answer__inner {
  padding: 0 24px 18px;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.faq-item.active .faq-answer { max-height: 500px; }
.faq-item.active .faq-question { color: var(--primary); }

/* --- Insurance Grid --- */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.insurance-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
  transition: all var(--transition);
}

.insurance-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--shadow);
}

/* --- Timeline / Steps --- */
.steps { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }

.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  position: relative;
}

.step__number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 16px;
}

.step h4 { margin-bottom: 0.5rem; }
.step p { color: var(--text-light); font-size: 0.875rem; }

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* --- Blog Cards --- */
.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-md);
}

.blog-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card__body { padding: 24px; }

.blog-card__category {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.blog-card__title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-card__excerpt {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.blog-card__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- Schedule Table --- */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
}

.schedule-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9375rem;
}

.schedule-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9375rem;
}

.schedule-table tr:nth-child(even) { background: var(--bg-light); }
.schedule-table tr:hover { background: var(--accent); }

/* --- Contact Info --- */
.contact-info-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border-light);
}

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-item__icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.125rem;
  flex-shrink: 0;
}

.contact-info-item h4 { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; margin-bottom: 2px; }
.contact-info-item p { font-weight: 500; margin-bottom: 0; }
.contact-info-item a { font-weight: 500; }

/* --- Map --- */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border-light);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

/* --- Amenities List --- */
.amenities-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-weight: 500;
  transition: all var(--transition);
}

.amenity-item:hover { border-color: var(--primary); background: var(--accent); }

.amenity-item__check {
  color: var(--secondary);
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 12px 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { margin: 0 6px; }

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.cta-section h2 { color: #fff; font-size: 2rem; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.9); font-size: 1.125rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.cta-section .btn-white { font-size: 1.0625rem; padding: 14px 32px; }

.cta-phone {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.cta-phone a { color: #fff; }
.cta-phone a:hover { color: var(--secondary-light); }

/* --- Features List --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.feature-item:hover { box-shadow: 0 4px 15px var(--shadow); border-color: var(--primary); }

.feature-item__icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-item h4 { font-size: 1rem; margin-bottom: 4px; }
.feature-item p { font-size: 0.875rem; color: var(--text-light); margin-bottom: 0; }

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  margin: 24px 0;
}

.comparison-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  font-size: 0.9375rem;
}

.comparison-table td:first-child { text-align: left; font-weight: 500; }
.comparison-table tr:nth-child(even) { background: var(--bg-light); }

/* --- Modalities --- */
.modality-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.modality-item {
  padding: 24px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 10px var(--shadow);
}

.modality-item h4 { color: var(--primary); margin-bottom: 8px; }
.modality-item p { font-size: 0.9375rem; color: var(--text-light); margin-bottom: 0; }

/* --- Team --- */
.team-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border-light);
}

.team-card__avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.team-card h4 { margin-bottom: 4px; }
.team-card__title { color: var(--primary); font-weight: 500; font-size: 0.875rem; margin-bottom: 8px; }
.team-card__credentials { font-size: 0.8125rem; color: var(--text-muted); }

/* --- Privacy / Legal --- */
.legal-content h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; color: var(--primary); }
.legal-content h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { padding-left: 20px; margin-bottom: 1rem; }
.legal-content ul li { position: relative; padding-left: 16px; margin-bottom: 6px; color: var(--text-light); }
.legal-content ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }

/* --- Footer --- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand { max-width: 320px; }

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.875rem;
}

.footer p { font-size: 0.9375rem; line-height: 1.7; margin-bottom: 16px; }

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer__links li { margin-bottom: 10px; }
.footer__links a { color: rgba(255,255,255,0.7); font-size: 0.9375rem; }
.footer__links a:hover { color: var(--secondary-light); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
}

.footer__contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; color: var(--secondary); }
.footer__contact-item a { color: rgba(255,255,255,0.8); }
.footer__contact-item a:hover { color: var(--secondary-light); }

.footer__bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

.footer__bottom a { color: rgba(255,255,255,0.5); }
.footer__bottom a:hover { color: var(--secondary-light); }

.footer__hipaa {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats { gap: 40px; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  .section { padding: 50px 0; }

  .header__nav { display: none; }
  .header__nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 20px;
    box-shadow: 0 10px 30px var(--shadow-lg);
    gap: 0;
  }
  .header__nav.active a { padding: 12px 0; border-bottom: 1px solid var(--border-light); }
  .menu-toggle { display: flex; }

  .hero { min-height: 450px; margin-top: calc(var(--header-height) + 36px); }
  .hero__content h1 { font-size: 2rem; }
  .hero--inner { min-height: 280px; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }

  .trust-bar__inner { gap: 24px; flex-direction: column; align-items: center; }
  .stats { flex-direction: column; align-items: center; gap: 24px; }
  .steps { flex-direction: column; align-items: center; }

  .tab-bar__inner { padding: 0 10px; }
  .tab-btn { padding: 12px 16px; font-size: 0.8125rem; }

  .hero__btns { flex-direction: column; }
  .hero__btns .btn-cta, .hero__btns .btn-white { width: 100%; justify-content: center; }

  .footer__bottom { flex-direction: column; text-align: center; }

  .comparison-table { font-size: 0.8125rem; }
  .comparison-table th, .comparison-table td { padding: 8px 10px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .hero { min-height: 400px; }
}

/* --- Utility --- */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.pt-0 { padding-top: 0; }

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px var(--shadow-md);
  z-index: 800;
  transition: all var(--transition);
}

.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
.back-to-top.visible { display: flex; }

/* --- Sticky CTA Mobile --- */
.sticky-cta-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  padding: 12px 20px;
  z-index: 800;
  box-shadow: 0 -4px 15px var(--shadow-md);
}

.sticky-cta-mobile a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
}

@media (max-width: 768px) {
  .sticky-cta-mobile { display: block; }
  .back-to-top { bottom: 70px; }
}

/* --- Print --- */
@media print {
  .header, .footer, .sticky-cta-mobile, .back-to-top, .tab-bar { display: none; }
  .hero { min-height: auto; margin-top: 0; }
  .section { padding: 20px 0; }
  body { color: #000; }
}
