/* ==========================================================================
   HSC Chiropractic Treatment - Modern Design System & Responsive Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* --- CSS Variables / Design Tokens --- */
:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --primary-glow: rgba(2, 132, 199, 0.25);
  
  --secondary: #0f766e;
  --secondary-hover: #115e59;
  --secondary-light: #ccfbf1;

  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-light: #ffedd5;

  --success: #10b981;
  --success-light: #d1fae5;

  --dark: #0f172a;
  --dark-light: #1e293b;
  --slate: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;
  
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-dark-surface: #111827;

  --border: #e2e8f0;
  --border-focus: #38bdf8;
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 35px -10px rgba(15, 23, 42, 0.15), 0 10px 15px -5px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.2);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --header-height: 80px;
  --topbar-height: 40px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--slate);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

img, picture, svg, video, iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

p, h1, h2, h3, h4, h5, h6, span, a, li, blockquote {
  overflow-wrap: break-word;
  word-break: break-word;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.25;
  font-weight: 700;
}

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

/* --- Layout Container & Grids --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(20px, env(safe-area-inset-left, 20px));
  padding-right: max(20px, env(safe-area-inset-right, 20px));
}

.container-wide {
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(20px, env(safe-area-inset-left, 20px));
  padding-right: max(20px, env(safe-area-inset-right, 20px));
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(20px, env(safe-area-inset-left, 20px));
  padding-right: max(20px, env(safe-area-inset-right, 20px));
}

.grid {
  display: grid;
  gap: 24px;
  width: 100%;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --- Typography Helpers --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* --- Section Formatting --- */
.section {
  padding: 80px 0;
  position: relative;
}

.section-sm {
  padding: 50px 0;
}

.section-alt {
  background-color: var(--bg-surface-alt);
}

.section-dark {
  background-color: var(--dark);
  color: #e2e8f0;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: #ffffff;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 50px auto;
  text-align: center;
}

.section-header.text-left {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

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

.section-title {
  font-size: 2.35rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--primary);
  position: relative;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(2, 132, 199, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(2, 132, 199, 0.45);
  color: #ffffff;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.35);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(249, 115, 22, 0.45);
  color: #ffffff;
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background-color: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--dark);
}
.btn-outline:hover {
  background-color: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--dark);
  border-color: #ffffff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* --- Top Announcement / Contact Bar --- */
.top-bar {
  background: var(--dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 50;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar-height);
  padding: 6px 0;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cbd5e1;
  transition: color var(--transition-fast);
}
.top-bar-item:hover {
  color: #38bdf8;
}

.top-bar-item svg {
  width: 15px;
  height: 15px;
  color: #38bdf8;
  flex-shrink: 0;
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.top-bar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  transition: all var(--transition-fast);
}
.top-bar-social a:hover {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.1);
}
.top-bar-social a svg {
  width: 13px;
  height: 13px;
}

/* --- Sticky Modern Header --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: all var(--transition-base);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

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

.site-logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}
.site-logo:hover img {
  transform: scale(1.02);
}

/* --- Desktop Navigation --- */
.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: var(--slate);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-link svg.dropdown-arrow {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}
.nav-item:hover .nav-link svg.dropdown-arrow {
  transform: rotate(180deg);
}

/* Mega Dropdown for Treatments */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -120px;
  width: 660px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-base);
  z-index: 110;
  pointer-events: none;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-header {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dropdown-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dropdown-header a {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 12px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate);
  transition: all var(--transition-fast);
}
.dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  transform: translateX(3px);
}
.dropdown-item::before {
  content: "•";
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--dark);
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  z-index: 150;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--dark);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Drawer Navigation --- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-surface);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 140;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-smooth);
  overflow-y: auto;
  padding: 70px 24px 30px 24px;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 130;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}
.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.mobile-submenu {
  display: none;
  padding: 8px 0 8px 16px;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  margin-top: 4px;
}
.mobile-submenu.open {
  display: flex;
}
.mobile-submenu a {
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--slate);
  border-radius: var(--radius-sm);
}
.mobile-submenu a:hover {
  color: var(--primary);
}

.mobile-drawer-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
  padding: 80px 0 90px 0;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, rgba(2, 132, 199, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: #ffffff;
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.hero-badge-wrap .rating-stars {
  color: #f59e0b;
  display: flex;
  gap: 2px;
}

.hero-badge-wrap span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
}

.hero-title {
  font-size: 3.2rem;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, var(--primary) 0%, #0284c7 50%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.18rem;
  color: var(--slate);
  margin-bottom: 30px;
  max-width: 580px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 25px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-number span {
  color: var(--primary);
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hero Media / Booking Card */
.hero-media-wrap {
  position: relative;
  z-index: 2;
}

.hero-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(2, 132, 199, 0.15);
  padding: 32px;
  position: relative;
}

.hero-card-header {
  margin-bottom: 20px;
}

.hero-card-header h3 {
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.hero-card-header p {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-floating-badge {
  position: absolute;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.hero-floating-badge.badge-top {
  top: -24px;
  right: -20px;
}

.hero-floating-badge.badge-bottom {
  bottom: -24px;
  left: -20px;
  animation-delay: 2s;
}

.floating-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.floating-badge-icon.green {
  background: var(--success-light);
  color: var(--success);
}

.floating-badge-text h5 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0;
}
.floating-badge-text p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- Features / Quick Highlights --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.3);
}
.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all var(--transition-fast);
}
.feature-card:hover .feature-icon-wrap {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* --- Treatments / Condition Cards Grid --- */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.treatment-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.treatment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(2, 132, 199, 0.35);
}

.treatment-image {
  position: relative;
  height: 210px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.treatment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.treatment-card:hover .treatment-image img {
  transform: scale(1.08);
}

.treatment-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.treatment-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.treatment-title {
  font-size: 1.28rem;
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}
.treatment-card:hover .treatment-title {
  color: var(--primary);
}

.treatment-desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.treatment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.treatment-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}
.treatment-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}
.treatment-card:hover .treatment-link svg {
  transform: translateX(4px);
}

/* --- Why Choose Us Split Grid --- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-image-wrap {
  position: relative;
}

.split-image-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.split-image-accent {
  position: absolute;
  bottom: -30px;
  right: -25px;
  width: 55%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid #ffffff;
  box-shadow: var(--shadow-xl);
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.benefit-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.benefit-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-text h4 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}
.benefit-text p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* --- Video Section --- */
.video-card-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #000000;
}

.video-container-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect */
  height: 0;
  overflow: hidden;
}

.video-container-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Testimonials Carousel / Grid --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-rating {
  color: #f59e0b;
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}

.testimonial-quote {
  font-size: 0.98rem;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.author-info h4 {
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- Image Utilities & Card Enhancements --- */
.hero-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 4px solid #ffffff;
  background: var(--bg-surface-alt);
}

.hero-image-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.hero-image-card:hover img {
  transform: scale(1.04);
}

.hero-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.hero-floating-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
  font-weight: 700;
  font-size: 1.05rem;
}

.hero-floating-text {
  font-size: 0.82rem;
  color: #cbd5e1;
}

/* Photo Collage in About Sections */
.photo-collage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  position: relative;
}

.photo-collage-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.photo-collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.photo-collage-item:hover img {
  transform: scale(1.05);
}

.photo-collage-main {
  height: 380px;
}

.photo-collage-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 380px;
}

.photo-collage-side .photo-collage-item {
  height: 182px;
}

.photo-badge-experience {
  position: absolute;
  bottom: -16px;
  right: 16px;
  background: var(--primary);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  text-align: center;
  z-index: 2;
}

.photo-badge-experience .years {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
}

.photo-badge-experience .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* Rich Condition Cards with Real Photography */
.condition-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.condition-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: #bae6fd;
}

.condition-card-img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--bg-surface-alt);
}

.condition-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.condition-card:hover .condition-card-img-wrap img {
  transform: scale(1.08);
}

.condition-card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.condition-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.condition-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.condition-card-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.condition-card-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.condition-card:hover .condition-card-link {
  gap: 10px;
  color: var(--primary-hover);
}

/* --- Appointment Booking Section --- */
.booking-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.booking-info h2 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.booking-info p {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.booking-perks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 35px;
}

.booking-perk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f1f5f9;
  font-weight: 500;
}
.booking-perk-item svg {
  width: 20px;
  height: 20px;
  color: #38bdf8;
  flex-shrink: 0;
}

.booking-form-card {
  background: #ffffff;
  color: var(--slate);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-xl);
}

.booking-form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--dark);
}
.booking-form-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

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

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  color: var(--dark);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

/* --- FAQ Accordion --- */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: var(--shadow-md);
}

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

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

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--primary);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.faq-answer-inner {
  padding: 0 24px 22px 24px;
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.65;
}

/* --- Modern Footer --- */
.site-footer {
  background-color: #0b1120;
  color: #94a3b8;
  padding-top: 80px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 16px 0 24px 0;
  color: #cbd5e1;
}

.footer-title {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover {
  color: #38bdf8;
  transform: translateX(4px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #cbd5e1;
}
.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: #38bdf8;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  font-size: 0.85rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a {
  color: #38bdf8;
  font-weight: 500;
}
.footer-bottom a:hover {
  text-decoration: underline;
}

/* --- Floating Action Bar (Bottom 3 Buttons) --- */
.mobile-bottom-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50px;
  box-shadow: 
    0 16px 40px -6px rgba(15, 23, 42, 0.2),
    0 4px 14px -2px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(15, 23, 42, 0.04),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
  padding: 7px 9px;
  transition: all var(--transition-base);
  animation: slideUpDock 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideUpDock {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mobile-bottom-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-bottom-btn {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 15px;
  border-radius: 50px;
  font-family: var(--font-heading), 'Outfit', sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.mobile-bottom-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.mobile-bottom-btn span {
  white-space: nowrap;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.mobile-bottom-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.mobile-bottom-btn:hover svg {
  transform: scale(1.15);
}

.mobile-bottom-btn:active {
  transform: scale(0.94);
  filter: brightness(0.92);
}

/* Call Button */
.btn-call-mobile {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-call-mobile:hover {
  box-shadow: 0 6px 18px -2px rgba(15, 23, 42, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* WhatsApp Button */
.btn-whatsapp-mobile {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px -2px rgba(37, 211, 102, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-whatsapp-mobile:hover {
  box-shadow: 0 6px 20px -2px rgba(37, 211, 102, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-whatsapp-mobile svg {
  width: 18px;
  height: 18px;
}

/* Book Visit Button */
.btn-book-mobile {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px -2px rgba(2, 132, 199, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: pulse-glow-cta 3.5s infinite ease-in-out;
}
.btn-book-mobile:hover {
  box-shadow: 0 6px 22px -2px rgba(2, 132, 199, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Shimmer Light Reflection on Book Visit */
.btn-book-mobile::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: buttonShimmer 4.5s infinite;
  pointer-events: none;
}

@keyframes buttonShimmer {
  0%, 70% {
    left: -60%;
  }
  100% {
    left: 140%;
  }
}

@keyframes pulse-glow-cta {
  0%, 100% {
    box-shadow: 0 4px 18px -2px rgba(2, 132, 199, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow: 0 4px 24px 0 rgba(2, 132, 199, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 90;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
}

/* --- Page Breadcrumb Banner --- */
.page-banner {
  background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
  color: #ffffff;
  padding: 60px 0;
  position: relative;
  text-align: center;
}

.page-banner-title {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #94a3b8;
}

.breadcrumb-trail a {
  color: #38bdf8;
  font-weight: 500;
}
.breadcrumb-trail a:hover {
  text-decoration: underline;
}

/* --- Service Single Page Layout --- */
.service-single-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.service-main-content {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.service-hero-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 30px;
  max-height: 400px;
}
.service-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-main-content h2 {
  font-size: 1.65rem;
  margin: 28px 0 14px 0;
  color: var(--dark);
}
.service-main-content h2:first-of-type {
  margin-top: 0;
}

.service-main-content p {
  color: var(--slate);
  font-size: 1.02rem;
  line-height: 1.7;
}

.symptoms-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 30px 0;
}

.symptom-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
}
.symptom-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Service Sidebar */
.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.sidebar-widget-title {
  font-size: 1.15rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.services-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.services-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--bg-surface-alt);
  transition: all var(--transition-fast);
}

.services-nav-link:hover, .services-nav-link.active {
  background: var(--primary);
  color: #ffffff;
  transform: translateX(4px);
}

.sidebar-cta-card {
  background: linear-gradient(135deg, var(--primary) 0%, #0369a1 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
}
.sidebar-cta-card h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.sidebar-cta-card p {
  color: #e0f2fe;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* --- Gallery Grid --- */
.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-tab:hover, .filter-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

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

.gallery-item-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: #ffffff;
}

.gallery-item-card:hover img {
  transform: scale(1.1);
}
.gallery-item-card:hover .gallery-item-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* --- Job Openings / Careers --- */
.job-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.job-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.3);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.job-card-title {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.job-card-dept {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.job-pill {
  background: var(--accent-light);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.job-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 24px 0;
}

.job-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--slate);
}
.job-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

/* ==========================================================================
   Comprehensive Cross-Device Responsive System (iOS, Android & All Screens)
   ========================================================================== */

/* --- Desktops & Laptops (<= 1200px) --- */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .treatments-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Tablets & Landscape Mobiles (<= 991px) --- */
@media (max-width: 991px) {
  :root {
    --header-height: 68px;
  }
  
  .main-nav {
    display: none !important;
  }
  .mobile-toggle {
    display: flex;
  }
  .header-actions .btn {
    display: none;
  }

  /* Stack main section grids */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-floating-badge {
    display: none;
  }
  .hero-card {
    max-width: 100%;
    margin: 0 auto;
  }

  .split-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split-image-accent {
    display: none;
  }

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

  .service-single-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .service-sidebar {
    position: static;
    top: auto;
    width: 100%;
  }

  .job-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Floating Bottom Dock on Mobile/Tablet */
  .mobile-bottom-bar {
    display: block;
    left: 12px;
    right: 12px;
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
    width: auto;
    max-width: 480px;
    margin: 0 auto;
    padding: 7px 8px;
    border-radius: 24px;
  }
  
  .mobile-bottom-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1.25fr;
    gap: 7px;
    width: 100%;
  }

  .mobile-bottom-btn {
    height: 46px;
    padding: 0 8px;
    border-radius: 16px;
    font-size: 0.82rem;
    gap: 6px;
  }

  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .back-to-top {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px;
  }
}

/* --- Phablets & Large Phones (<= 768px) --- */
@media (max-width: 768px) {
  /* Prevent iOS Safari Zoom on Input Focus */
  input, select, textarea {
    font-size: 16px !important;
  }

  .section {
    padding: 50px 0;
  }
  .section-sm {
    padding: 35px 0;
  }
  
  .top-bar {
    display: none;
  }

  .section-header {
    margin-bottom: 35px;
  }
  .section-title {
    font-size: 1.95rem;
    line-height: 1.2;
  }
  .section-desc {
    font-size: 0.98rem;
  }

  .hero-section {
    padding: 36px 0 50px 0;
  }
  .hero-title {
    font-size: 2.15rem;
    line-height: 1.18;
  }
  .hero-lead {
    font-size: 1.02rem;
    margin-bottom: 24px;
  }
  
  .hero-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 20px;
    text-align: center;
  }
  .hero-stat-number {
    font-size: 1.6rem;
  }
  .hero-stat-label {
    font-size: 0.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card {
    padding: 24px 20px;
  }

  .treatments-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .treatment-image {
    height: 190px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 40px;
  }
  .site-footer {
    padding-top: 50px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Photo Collage Stack */
  .photo-collage {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .photo-collage-main {
    height: 240px;
  }
  .photo-collage-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
    gap: 12px;
  }
  .photo-collage-side .photo-collage-item {
    height: 130px;
  }
  .photo-badge-experience {
    position: static;
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }

  .symptoms-checklist {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .booking-info h2 {
    font-size: 2rem;
  }
  .booking-form-card {
    padding: 28px 20px;
  }

  .service-main-content {
    padding: 28px 20px;
  }
  .service-main-content h2 {
    font-size: 1.45rem;
  }

  .page-banner {
    padding: 40px 0;
  }
  .page-banner-title {
    font-size: 2rem;
  }
}

/* --- Standard Mobile Phones (<= 576px) --- */
@media (max-width: 576px) {
  .container, .container-wide, .container-narrow {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding: 44px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 1.9rem;
  }
  .hero-badge-wrap {
    padding: 5px 12px;
    margin-bottom: 16px;
  }
  .hero-badge-wrap span {
    font-size: 0.78rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 30px;
  }
  .hero-actions .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .booking-form-card {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
  }
  .booking-form-card h3 {
    font-size: 1.35rem;
  }

  .service-main-content {
    padding: 22px 16px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 0.96rem;
  }
  .faq-answer-inner {
    padding: 0 18px 18px 18px;
    font-size: 0.9rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .filter-tab {
    padding: 6px 14px;
    font-size: 0.82rem;
  }
  .gallery-filter-tabs {
    gap: 8px;
    margin-bottom: 24px;
  }

  .lightbox-modal {
    padding: 14px;
  }
  .lightbox-close {
    top: 14px;
    right: 14px;
  }
}

/* --- Compact Mobiles (iPhone 12/13/14/15/16, Galaxy S/A series) (<= 420px) --- */
@media (max-width: 420px) {
  :root {
    --header-height: 62px;
  }

  .site-logo img {
    height: 38px;
    max-width: 165px;
  }

  .mobile-toggle {
    width: 42px;
    height: 42px;
    padding: 8px;
  }

  .hero-title {
    font-size: 1.68rem;
  }
  .hero-lead {
    font-size: 0.94rem;
  }
  
  .hero-stats-row {
    gap: 8px;
  }
  .hero-stat-number {
    font-size: 1.35rem;
  }
  .hero-stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }

  .section-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
  .section-title {
    font-size: 1.55rem;
  }

  .treatment-image {
    height: 175px;
  }
  .treatment-content {
    padding: 18px 14px;
  }
  .treatment-title {
    font-size: 1.15rem;
  }
  .treatment-desc {
    font-size: 0.86rem;
  }

  .benefit-item {
    gap: 12px;
  }
  .benefit-text h4 {
    font-size: 0.98rem;
  }
  .benefit-text p {
    font-size: 0.85rem;
  }

  .testimonial-card {
    padding: 20px 16px;
  }
  .testimonial-quote {
    font-size: 0.9rem;
  }

  .mobile-bottom-bar {
    left: 8px;
    right: 8px;
    bottom: max(10px, env(safe-area-inset-bottom, 10px));
    padding: 6px 7px;
    border-radius: 20px;
  }

  .mobile-bottom-bar-inner {
    gap: 6px;
    grid-template-columns: 1fr 1.1fr 1.2fr;
  }

  .mobile-bottom-btn {
    height: 44px;
    padding: 0 6px;
    border-radius: 14px;
    font-size: 0.78rem;
    gap: 5px;
  }

  .mobile-bottom-btn svg {
    width: 15px;
    height: 15px;
  }
}

/* --- Tiny Mobiles (Galaxy Fold Cover, iPhone SE 1st gen, <= 360px) --- */
@media (max-width: 360px) {
  .container, .container-wide, .container-narrow {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-logo img {
    height: 34px;
    max-width: 140px;
  }

  .hero-title {
    font-size: 1.48rem;
  }
  .hero-card {
    padding: 18px 12px;
  }
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section-title {
    font-size: 1.4rem;
  }

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

  .mobile-drawer {
    width: 280px;
    padding: 65px 16px 20px 16px;
  }

  .mobile-bottom-bar {
    left: 4px;
    right: 4px;
    bottom: max(8px, env(safe-area-inset-bottom, 8px));
    padding: 5px;
    border-radius: 16px;
  }

  .mobile-bottom-bar-inner {
    gap: 4px;
    grid-template-columns: 1fr 1fr 1.1fr;
  }

  .mobile-bottom-btn {
    height: 40px;
    padding: 0 4px;
    border-radius: 12px;
    font-size: 0.72rem;
    gap: 3px;
  }

  .mobile-bottom-btn svg {
    width: 14px;
    height: 14px;
  }
}

