/* ==========================================================================
   OPL Helpline — Compassionate Care (#10) + Tab-Based Sections (#5)
   Domain: oplhelpline.space
   Generated: 2026-02-13
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Open+Sans:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #7B68A6;
  --primary-dark: #5E4D8A;
  --primary-light: #9B8CC0;
  --secondary: #C9A0C9;
  --secondary-light: #E0C8E0;
  --accent: #F0B5B5;
  --accent-dark: #D9918F;
  --text: #3D3250;
  --text-light: #6B5E7E;
  --bg: #FBF9FC;
  --bg-alt: #FFFFFF;
  --bg-soft: #F3EEF6;
  --border: #E5DCF0;
  --shadow: rgba(123, 104, 166, 0.12);
  --shadow-lg: rgba(123, 104, 166, 0.18);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
  --font-heading: 'Poppins', 'Libre Baskerville', serif;
  --font-body: 'Open Sans', sans-serif;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  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); }

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; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* --- Header --- */
.site-header {
  background: var(--bg-alt);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px var(--shadow);
}

.header-top {
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-top a { color: #fff; }
.header-top a:hover { color: var(--accent); }

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}
.logo span { color: var(--secondary); }

/* --- Primary Tab Navigation --- */
.tab-nav {
  background: var(--bg-soft);
  border-bottom: 2px solid var(--border);
}
.tab-nav .container {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-nav a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.25rem;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  position: relative;
}
.tab-nav a:hover {
  color: var(--primary);
  background: rgba(123, 104, 166, 0.06);
}
.tab-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(123, 104, 166, 0.08);
  font-weight: 600;
}
.tab-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Mobile hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary);
}
.hamburger svg { width: 28px; height: 28px; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.header-cta:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--shadow-lg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61,50,80,0.72) 0%, rgba(123,104,166,0.55) 50%, rgba(201,160,201,0.35) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  max-width: 680px;
  padding: 3rem 0;
}
.hero-content h1 {
  color: #fff;
  font-size: 2.75rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero-content p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: var(--text);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(240,181,181,0.4);
}
.btn-secondary {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover {
  background: #fff;
  color: var(--primary);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-purple {
  background: var(--primary);
  color: #fff;
}
.btn-purple:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--shadow-lg);
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--bg-alt);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.trust-bar .container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
}
.trust-item svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
  flex-shrink: 0;
}

/* --- Section Styles --- */
.section {
  padding: 4rem 0;
}
.section-alt {
  background: var(--bg-soft);
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}
.section-header h2 {
  margin-bottom: 0.75rem;
  position: relative;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 0.75rem auto 0;
}
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* --- Inner Tab System --- */
.inner-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.inner-tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  margin-bottom: -2px;
}
.inner-tab-btn:hover {
  color: var(--primary);
}
.inner-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.inner-tab-content {
  display: none;
  animation: fadeTab 0.4s ease;
}
.inner-tab-content.active {
  display: block;
}
@keyframes fadeTab {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--shadow-lg);
}
.card-image {
  height: 200px;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-image img {
  transform: scale(1.05);
}
.card-body {
  padding: 1.5rem;
}
.card-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
}
.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #fff;
}
.card-icon svg { width: 24px; height: 24px; }

/* --- Why Choose Us --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.feature-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.feature-item:hover {
  border-color: var(--secondary);
  box-shadow: 0 6px 24px var(--shadow);
}
.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--bg-soft), var(--secondary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-item h4 { margin-bottom: 0.5rem; }
.feature-item p { color: var(--text-light); font-size: 0.9rem; }

/* --- Stats --- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* --- Testimonials --- */
.testimonial-carousel {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
}
.testimonial-slide {
  display: none;
  text-align: center;
  padding: 2rem;
}
.testimonial-slide.active {
  display: block;
  animation: fadeTab 0.5s ease;
}
.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.25rem;
  position: relative;
  padding: 0 2rem;
}
.testimonial-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--secondary);
  position: absolute;
  top: -1.5rem;
  left: 0;
  font-family: var(--font-heading);
  line-height: 1;
}
.testimonial-author {
  font-weight: 600;
  color: var(--primary);
}
.testimonial-program {
  font-size: 0.875rem;
  color: var(--text-light);
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.testimonial-dot.active {
  background: var(--primary);
}

/* --- Amenities Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--secondary) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { opacity: 0.9; font-size: 1.1rem; max-width: 600px; margin: 0 auto 1.75rem; }
.cta-phone {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 1.5rem;
}
.cta-phone:hover { color: var(--accent); }

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--text-light);
}
.breadcrumbs a { color: var(--primary); }
.breadcrumbs span { margin: 0 0.5rem; }

/* --- Inner Page Hero --- */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.page-hero .hero-overlay {
  background: linear-gradient(135deg, rgba(61,50,80,0.7) 0%, rgba(123,104,166,0.5) 100%);
}
.page-hero .hero-content h1 { font-size: 2.25rem; }

/* --- Team Section --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.team-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #fff;
  font-size: 1.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
}
.team-card h4 { margin-bottom: 0.25rem; }
.team-card .team-title {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.team-card .team-creds {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--bg-alt);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: all var(--transition);
}
.faq-question:hover {
  color: var(--primary);
  background: var(--bg-soft);
}
.faq-question.active {
  color: var(--primary);
  background: var(--bg-soft);
}
.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--primary);
}
.faq-question.active .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer.open {
  max-height: 500px;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Insurance Grid --- */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.insurance-item {
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 500;
  transition: all var(--transition);
}
.insurance-item:hover {
  border-color: var(--primary);
  background: var(--bg-soft);
}

/* --- Contact Info --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.contact-card {
  padding: 2rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}
.contact-card svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
  margin-bottom: 1rem;
}
.contact-card h4 { margin-bottom: 0.5rem; }
.contact-card a {
  font-size: 1.1rem;
  font-weight: 600;
}

/* --- Map --- */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  margin: 2rem 0;
}
.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--shadow);
}
.blog-card-image {
  height: 200px;
  overflow: hidden;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-body {
  padding: 1.5rem;
}
.blog-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-soft);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.blog-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.blog-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
}
.blog-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* --- Step Timeline --- */
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}
.step-item {
  text-align: center;
  position: relative;
}
.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  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 1rem;
}
.step-item h4 { margin-bottom: 0.5rem; }
.step-item p { font-size: 0.9rem; color: var(--text-light); }

/* --- Treatment Modalities --- */
.modalities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.modality-chip {
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 500;
  transition: all var(--transition);
}
.modality-chip:hover {
  border-color: var(--secondary);
  background: var(--bg-soft);
}

/* --- Daily Schedule --- */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.schedule-table th {
  background: var(--primary);
  color: #fff;
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-weight: 600;
}
.schedule-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.schedule-table tr:nth-child(even) {
  background: var(--bg-soft);
}

/* --- Privacy Page --- */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}
.privacy-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}
.privacy-content h2::after { display: none; }
.privacy-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.privacy-content li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* --- Footer --- */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.footer-col p { font-size: 0.9rem; line-height: 1.7; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  display: block;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-phone {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent) !important;
  margin-top: 0.5rem;
  display: inline-block !important;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.6); display: inline; }

/* --- Checklist --- */
.checklist {
  list-style: none;
  padding: 0;
}
.checklist li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  color: var(--text-light);
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 1.5rem 0;
}
.comparison-table th {
  background: var(--primary);
  color: #fff;
  padding: 0.875rem 1rem;
  font-weight: 600;
  text-align: left;
}
.comparison-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
}
.comparison-table tr:nth-child(even) { background: var(--bg-soft); }

/* --- Inline Content Layout --- */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.content-split.reverse { direction: rtl; }
.content-split.reverse > * { direction: ltr; }
.content-split-image {
  border-radius: var(--radius);
  overflow: hidden;
}
.content-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- HIPAA Notice --- */
.hipaa-notice {
  background: var(--bg-soft);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .content-split { grid-template-columns: 1fr; gap: 2rem; }
  .content-split.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero { min-height: 420px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .page-hero { min-height: 260px; }

  .hamburger { display: block; }
  .tab-nav { display: none; }
  .tab-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--bg-alt);
    z-index: 999;
    padding: 4rem 1.5rem 2rem;
    overflow-y: auto;
  }
  .tab-nav.open a {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
    font-size: 1.1rem;
  }
  .tab-nav.open a.active {
    border-bottom-color: var(--border);
    border-left-color: var(--primary);
  }
  .tab-nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    display: block;
  }

  .header-top .container { flex-direction: column; gap: 0.25rem; text-align: center; }
  .trust-bar .container { gap: 1.5rem; }

  .stats-row { gap: 1.5rem; }
  .stat-number { font-size: 2rem; }

  .inner-tabs { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; }
  .inner-tab-btn { white-space: nowrap; flex-shrink: 0; }

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

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-content h1 { font-size: 1.75rem; }
  .header-cta span { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}
