/**
 * Tassia Hospital Design System & Main Stylesheet
 * Strictly NO gradients, NO emojis, centralized design tokens, faithfully matched to blueprints.
 */

:root {
  /* Brand Color Palette - Derived from Blueprint References */
  --th-primary: #003366;          /* Deep Navy Primary */
  --th-primary-hover: #002244;    /* Dark Navy Hover */
  --th-accent: #8b1528;           /* Crimson / Maroon Hero Accent (Avenue style) */
  --th-accent-hover: #6e0f1f;
  --th-blue: #0284c7;             /* Medical Sky Blue */
  --th-amber: #d97706;            /* Amber/Golden Subscribe Button (Blueprint 3) */
  --th-amber-hover: #b45309;
  
  /* Neutral Palette */
  --th-bg-dark: #071938;           /* Blueprint Footer Background */
  --th-bg-dark-sub: #040e21;       /* Sub-footer Dark Navy */
  --th-bg-light: #f8fafc;          /* Light Page Background */
  --th-bg-white: #ffffff;
  --th-card-bg: #ffffff;
  --th-border: #e2e8f0;
  --th-border-dark: #1e3a5f;

  /* Typography */
  --th-text-dark: #0f172a;        /* Deep Charcoal Body */
  --th-text-muted: #64748b;       /* Muted Body / Secondary */
  --th-text-light: #f1f5f9;       /* Light Text on Dark */
  --th-text-light-muted: #94a3b8;
  --th-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Spacing & Layout */
  --th-radius-sm: 4px;
  --th-radius-md: 8px;
  --th-radius-lg: 14px;
  --th-radius-full: 9999px;
  --th-max-width: 1240px;
  --th-header-height: 80px;
  
  /* Shadows */
  --th-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --th-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --th-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
}

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

html {
  font-family: var(--th-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--th-text-dark);
  background-color: var(--th-bg-white);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--th-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--th-blue);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--th-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  color: var(--th-primary);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 2.15rem; letter-spacing: -0.015em; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Top Utility Bar */
/* Top Utility Bar */
.th-topbar {
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--th-border);
  font-size: 0.85rem;
  color: var(--th-text-muted);
  padding: 8px 0;
}

/* Fluid edge-to-edge header & topbar containers - no wasted side gaps */
.th-topbar .container,
.th-header .container {
  max-width: 100%;
  width: 100%;
  padding-left: clamp(20px, 3vw, 48px);
  padding-right: clamp(20px, 3vw, 48px);
}

.th-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  width: 100%;
}

.th-topbar-items {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 24px);
  flex-wrap: nowrap;
}

.th-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--th-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.th-topbar-item a {
  color: var(--th-text-muted);
  white-space: nowrap;
}

.th-topbar-item a:hover {
  color: var(--th-primary);
}

.th-topbar-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--th-blue);
  flex-shrink: 0;
}

.th-topbar-emergency {
  font-weight: 700;
  color: var(--th-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Main Site Header (Fluid distribution, no squeezing) */
.th-header {
  background-color: var(--th-bg-white);
  border-bottom: 1px solid var(--th-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--th-shadow-sm);
}

.th-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--th-header-height);
  width: 100%;
  gap: clamp(16px, 2.5vw, 40px);
}

.th-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.th-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

/* Desktop Navigation - Equal Distribution & Strict Single Line */
.th-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: clamp(16px, 2vw, 36px);
}

.th-nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: space-evenly; /* Distributes menu items equally across available space */
  flex: 1;
  max-width: 980px;
  gap: clamp(8px, 1.4vw, 28px);
  margin: 0;
  padding: 0;
}

.th-nav-item {
  position: relative;
  flex-shrink: 0;
}

.th-nav-link {
  font-size: clamp(0.88rem, 0.95vw, 0.96rem);
  font-weight: 600;
  color: var(--th-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  white-space: nowrap; /* STRICT RULE: Never wrap text to second line */
  transition: color 0.2s ease;
}

.th-nav-link:hover,
.th-nav-item.current-menu-item .th-nav-link {
  color: var(--th-blue);
}

.th-nav-link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* Dropdown Menu */
.th-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--th-bg-white);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-md);
  box-shadow: var(--th-shadow-lg);
  min-width: 230px;
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
}

.th-nav-item:hover .th-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.th-dropdown li a {
  display: block;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--th-text-dark);
}

.th-dropdown li a:hover {
  background-color: var(--th-bg-light);
  color: var(--th-blue);
}

/* Header Action CTA Button (Avenue Healthcare Blueprint "BOOK NOW") */
.th-btn-book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--th-primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  border-radius: var(--th-radius-full);
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.th-btn-book:hover {
  background-color: var(--th-primary-hover);
  color: #ffffff;
}

.th-btn-book svg {
  width: 17px;
  height: 17px;
  stroke: #ffffff;
}

/* Mobile Menu Toggle */
.th-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--th-primary);
}

.th-mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* =========================================================
   HERO SLIDER SECTION (Blueprint Reference 1 - Full Bleed)
   ========================================================= */
.th-hero-slider {
  position: relative;
  width: 100%;
  /* Exactly fills remainder of viewport so header + hero slider is the ONLY thing visible upon landing */
  height: calc(100vh - 118px);
  height: calc(100dvh - 118px);
  min-height: 540px;
  max-height: none;
  overflow: hidden;
  background-color: #040e21;
  color: #ffffff;
}

/* Compensate for logged-in WordPress Admin Bar */
.admin-bar .th-hero-slider {
  height: calc(100vh - 150px);
  height: calc(100dvh - 150px);
}

@media (max-width: 782px) {
  .admin-bar .th-hero-slider {
    height: calc(100vh - 164px);
    height: calc(100dvh - 164px);
  }
}

.th-slides-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.th-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  display: flex;
  align-items: center;
}

.th-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.th-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.th-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.th-slide-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 25, 56, 0.5); /* Semi-transparent overlay covering full image */
  z-index: 2;
}

.th-slide-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding: 24px 0 80px;
  color: #ffffff;
}

.th-slide-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.th-slide-desc {
  font-size: clamp(0.98rem, 1.2vw, 1.15rem);
  line-height: 1.55;
  color: #e2e8f0;
  margin-bottom: 26px;
}

.th-slide-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.th-btn-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--th-accent); /* Solid maroon button from blueprint */
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--th-radius-md);
  border: 1px solid var(--th-accent);
  transition: background-color 0.2s ease;
}

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

.th-btn-outline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--th-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.85); /* Clean white outline button from blueprint */
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.th-btn-outline-action:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* Slider Bottom Navigation & Counter (Reference 1 bottom indicators) */
.th-slider-controls {
  position: absolute;
  bottom: 24px;
  left: 0;
  width: 100%;
  z-index: 10;
  pointer-events: none;
}

.th-slider-controls .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.th-slider-counter {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.th-slider-line {
  display: inline-block;
  width: 32px;
  height: 3px;
  background-color: var(--th-accent);
}

.th-slider-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.th-slider-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.th-slider-arrow.th-arrow-next {
  background-color: var(--th-accent);
}

.th-slider-arrow:hover {
  background-color: var(--th-accent-hover);
}

.th-slider-arrow svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
}

/* =========================================================
   SERVICES 6-CARD GRID (Blueprint Reference 2)
   ========================================================= */
.th-services-section {
  padding: 70px 0 80px;
  background-color: var(--th-bg-white);
}

.th-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.th-section-title-services {
  color: #8b1528; /* Magenta/Burgundy tone matching Blueprint 2 "Our Services" */
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.th-section-subtitle {
  color: var(--th-text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

/* 6-Card Grid (2 rows x 3 columns) */
.th-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.th-service-card {
  position: relative;
  height: 290px;
  border-radius: var(--th-radius-lg);
  overflow: hidden;
  box-shadow: var(--th-shadow-md);
  border: 1px solid var(--th-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.th-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--th-shadow-lg);
}

.th-service-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.th-service-card:hover .th-service-card-img {
  transform: scale(1.03);
}

/* Centered White Label Badge Overlay (Blueprint Reference 2) */
.th-service-badge {
  position: relative;
  z-index: 2;
  background-color: #ffffff;
  border: 1px solid #1e3a8a; /* Deep blue border matching blueprint */
  border-radius: var(--th-radius-sm);
  padding: 10px 22px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  max-width: 82%;
}

.th-service-badge span {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e3a8a; /* Blueprint navy uppercase font */
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* "VIEW ALL SERVICES" Centered Button */
.th-services-cta-wrapper {
  text-align: center;
}

.th-btn-view-services {
  display: inline-block;
  background-color: #1e3a8a; /* Deep navy button matching blueprint */
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 14px 38px;
  border-radius: var(--th-radius-sm);
  transition: background-color 0.2s ease;
}

.th-btn-view-services:hover {
  background-color: #0f245c;
}

/* =========================================================
   INSURANCES ACCEPTED (Real Signboard 4 & 5)
   ========================================================= */
.th-insurance-section {
  padding: 60px 0;
  background-color: var(--th-bg-light);
  border-top: 1px solid var(--th-border);
  border-bottom: 1px solid var(--th-border);
}

.th-insurance-title {
  text-align: center;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--th-primary);
  margin-bottom: 10px;
}

.th-insurance-subtitle {
  text-align: center;
  color: var(--th-text-muted);
  font-size: 1rem;
  margin-bottom: 36px;
}

.th-insurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.th-insurance-card {
  background-color: var(--th-bg-white);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--th-shadow-sm);
  transition: transform 0.2s ease;
  height: 84px;
}

.th-insurance-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.th-insurance-card img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

/* =========================================================
   ABOUT / TRUST SUMMARY SECTION
   ========================================================= */
.th-about-section {
  padding: 80px 0;
  background-color: var(--th-bg-white);
}

.th-about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.th-about-text h2 {
  font-size: 2.25rem;
  color: var(--th-primary);
  margin-bottom: 20px;
}

.th-about-text p {
  color: var(--th-text-dark);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.th-clinical-overview-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.th-about-image-wrapper {
  position: relative;
  border-radius: var(--th-radius-lg);
  overflow: hidden;
  box-shadow: var(--th-shadow-lg);
}

.th-about-image-wrapper img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

/* Emergency Callout Banner */
.th-emergency-banner {
  background-color: var(--th-primary);
  color: #ffffff;
  padding: 36px 0;
}

.th-emergency-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.th-emergency-content h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.th-emergency-content p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.th-emergency-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.th-btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  color: var(--th-primary) !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--th-radius-md);
  font-size: 0.95rem;
}

.th-btn-call:hover {
  background-color: #f1f5f9;
}

.th-btn-call svg {
  width: 18px;
  height: 18px;
  stroke: var(--th-primary);
}

/* =========================================================
   FOOTER (Blueprint Reference 3)
   Exact reproduction of 3 columns, colors, inputs and typography
   ========================================================= */
.th-footer {
  background-color: var(--th-bg-dark); /* Dark navy matching blueprint */
  color: #ffffff;
  padding: 70px 0 0;
  margin-top: auto;
}

.th-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 1fr 1fr; /* 4 columns: Newsletter, Contact, Quick Links, Patient Info */
  gap: 36px;
  padding-bottom: 60px;
}

.th-footer-col h4 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.th-footer-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 360px;
}

/* Column 1: Newsletter Input + Amber Subscribe Button (Reference 3) */
.th-subscribe-form {
  display: flex;
  margin-bottom: 28px;
  max-width: 380px;
}

.th-subscribe-input {
  flex: 1;
  background-color: #0c234b; /* Dark navy input field */
  border: 1px solid #1e3a5f;
  border-right: none;
  border-radius: var(--th-radius-sm) 0 0 var(--th-radius-sm);
  color: #ffffff;
  padding: 12px 16px;
  font-size: 0.9rem;
  outline: none;
}

.th-subscribe-input::placeholder {
  color: #94a3b8;
}

.th-subscribe-input:focus {
  border-color: var(--th-amber);
}

.th-subscribe-btn {
  background-color: var(--th-amber); /* Amber/Golden button from Blueprint 3 */
  color: #ffffff;
  border: 1px solid var(--th-amber);
  border-radius: 0 var(--th-radius-sm) var(--th-radius-sm) 0;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 22px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.th-subscribe-btn:hover {
  background-color: var(--th-amber-hover);
  border-color: var(--th-amber-hover);
}

/* Social Media Icons (Reference 3 circular dark badges) */
.th-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.th-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #0f2c5d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.th-social-icon:hover {
  background-color: var(--th-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

.th-social-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Column 2: Contact Information (Reference 3) */
.th-footer-contact-list {
  list-style: none;
}

.th-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.th-footer-contact-item a {
  color: #cbd5e1;
}

.th-footer-contact-item a:hover {
  color: #ffffff;
}

.th-footer-contact-icon {
  width: 20px;
  height: 20px;
  stroke: #94a3b8;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Column 3: Quick Links (Reference 3) */
.th-footer-links-list {
  list-style: none;
}

.th-footer-links-list li {
  margin-bottom: 12px;
}

.th-footer-links-list a {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.th-footer-links-list a:hover {
  color: #ffffff;
  padding-left: 4px;
}

/* Sub-Footer Copyright Bar */
.th-subfooter {
  background-color: var(--th-bg-dark-sub); /* Darker bottom strip */
  border-top: 1px solid #112952;
  padding: 22px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* =========================================================
   PAGE HERO & INNER PAGES (About, Services, Contact, etc.)
   ========================================================= */
.th-page-hero {
  background-color: var(--th-primary);
  color: #ffffff;
  padding: 56px 0;
  border-bottom: 1px solid var(--th-border);
}

.th-page-hero h1 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.th-page-hero p {
  color: #cbd5e1;
  font-size: 1.1rem;
  max-width: 650px;
}

.th-page-content {
  padding: 60px 0 80px;
  background-color: var(--th-bg-white);
}

/* Form Styles */
.th-form-group {
  margin-bottom: 20px;
}

.th-form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--th-primary);
}

.th-form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-md);
  font-size: 0.95rem;
  color: var(--th-text-dark);
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

.th-form-control:focus {
  border-color: var(--th-primary);
  box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.1);
}

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

.th-form-submit-btn {
  background-color: var(--th-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--th-radius-md);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.th-form-submit-btn:hover {
  background-color: var(--th-primary-hover);
}

.th-form-alert {
  padding: 14px 18px;
  border-radius: var(--th-radius-md);
  margin-bottom: 20px;
  font-size: 0.95rem;
  display: none;
}

.th-form-alert.success {
  display: block;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.th-form-alert.error {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* FAQ Accordion */
.th-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 840px;
  margin: 0 auto;
}

.th-faq-item {
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-md);
  background-color: var(--th-bg-white);
  overflow: hidden;
}

.th-faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--th-primary);
}

.th-faq-question svg {
  width: 20px;
  height: 20px;
  stroke: var(--th-primary);
  transition: transform 0.2s ease;
}

.th-faq-item.active .th-faq-question svg {
  transform: rotate(180deg);
}

.th-faq-answer {
  padding: 0 24px 20px;
  display: none;
  color: var(--th-text-dark);
  font-size: 0.98rem;
  line-height: 1.65;
}

.th-faq-item.active .th-faq-answer {
  display: block;
}

/* =========================================================
   FLOATING WHATSAPP CHAT SUPPORT (Requirement 10)
   ========================================================= */
.th-wa-floating {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
}

.th-wa-launcher {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366; /* Official WhatsApp Green */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.th-wa-launcher:hover {
  background-color: #20ba5a;
  transform: scale(1.05);
}

.th-wa-launcher svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

/* WhatsApp Chat Panel Modal */
.th-wa-panel {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 340px;
  background-color: #ffffff;
  border-radius: var(--th-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--th-border);
  overflow: hidden;
  display: none;
  animation: thFadeIn 0.2s ease;
}

.th-wa-panel.open {
  display: block;
}

.th-wa-header {
  background-color: #075e54; /* Official WhatsApp Header Dark Green */
  color: #ffffff;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.th-wa-title {
  font-weight: 700;
  font-size: 1rem;
}

.th-wa-subtitle {
  font-size: 0.78rem;
  color: #c7eed8;
}

.th-wa-close {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
}

.th-wa-close svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
}

.th-wa-body {
  padding: 18px;
  background-color: #efeae2; /* Authentic WhatsApp chat bubble background */
}

.th-wa-bubble {
  background-color: #ffffff;
  padding: 12px 14px;
  border-radius: 8px 8px 8px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font-size: 0.88rem;
  color: #111b21;
  line-height: 1.45;
  margin-bottom: 14px;
}

.th-wa-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.88rem;
  outline: none;
  margin-bottom: 12px;
  background-color: #ffffff;
}

.th-wa-send-btn {
  width: 100%;
  background-color: #25d366;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 11px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.th-wa-send-btn:hover {
  background-color: #20ba5a;
}

.th-wa-fallback-call {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 0.8rem;
  color: #64748b;
}

.th-wa-fallback-call a {
  color: #003366;
  font-weight: 600;
}

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

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 1024px) {
  .th-nav {
    display: none;
  }
  .th-nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--th-header-height);
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid var(--th-border);
    padding: 20px;
    box-shadow: var(--th-shadow-lg);
  }
  .th-nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
  }
  .th-mobile-toggle {
    display: block;
  }
  .th-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .th-insurance-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .th-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .th-hero-slider {
    height: calc(100vh - 114px);
    height: calc(100dvh - 114px);
    min-height: 520px;
  }
  .th-slides-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .th-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .th-slide-content {
    padding: 30px 0 100px;
  }
  .th-slide-title {
    font-size: 2.1rem;
  }
  .th-services-grid {
    grid-template-columns: 1fr;
  }
  .th-insurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .th-about-layout {
    grid-template-columns: 1fr;
  }
  .th-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .th-form-row {
    grid-template-columns: 1fr;
  }
  .th-topbar-items {
    display: none;
  }
}
