/* ============================================================
   Atlas Physio — Responsive Design System
   Breakpoints: 1200 | 960 | 700 | 480 | 380
   ============================================================ */

/* === CSS CUSTOM PROPERTIES === */
:root {
  --primary: #0ea5e9;
  --primary-light: #e0f2fe;
  --primary-dark: #0369a1;
  --primary-700: #0284c7;
  --secondary: #10b981;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --light-bg: #f1f5f9;
  --card: #ffffff;
  --muted: #64748b;
  --gray-text: #94a3b8;
  --dark: #0f172a;
  --radius-sm: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 4px 20px rgba(2, 6, 23, .06);
  --shadow-md: 0 12px 40px rgba(2, 6, 23, .10);
  --transition: all .3s cubic-bezier(.4, 0, .2, 1);
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* === LAYOUT === */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === HEADER === */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

body {
  padding-top: var(--header-h);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--dark);
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.4rem;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: .2rem;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  padding: .45rem .7rem;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-book-btn {
  flex-shrink: 0;
}

#mobile-menu-btn {
  display: none;
  border: none;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.2rem;
  padding: .5rem .75rem;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.15rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  transition: var(--transition);
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: #fff;
  box-shadow: 0 4px 16px rgba(14, 165, 233, .25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14, 165, 233, .38);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-full {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

/* === HERO === */
.hero {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 4rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(14, 165, 233, .04), rgba(6, 182, 212, .06));
  margin-top: 1.5rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), #06b6d4, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p {
  color: var(--muted);
  margin-top: 1rem;
  font-size: 1.05rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 800px;
}

.hero-image {
  width: 100%;
  max-width: 440px;
  max-height: 520px;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .12);
  object-fit: cover;
  object-position: center top;
  animation: float3d 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes float3d {
  0% {
    transform: translateY(0) rotateY(0deg) rotateX(0deg);
    box-shadow: 0 24px 60px rgba(2, 6, 23, .12);
  }

  25% {
    transform: translateY(-12px) rotateY(3deg) rotateX(2deg);
    box-shadow: -8px 32px 50px rgba(2, 6, 23, .15);
  }

  50% {
    transform: translateY(-6px) rotateY(-2deg) rotateX(-1deg);
    box-shadow: 8px 28px 55px rgba(2, 6, 23, .13);
  }

  75% {
    transform: translateY(-14px) rotateY(2deg) rotateX(1deg);
    box-shadow: -4px 34px 48px rgba(2, 6, 23, .16);
  }

  100% {
    transform: translateY(0) rotateY(0deg) rotateX(0deg);
    box-shadow: 0 24px 60px rgba(2, 6, 23, .12);
  }
}

/* Fade-in animation */
.animate-fade-in {
  animation: fadeIn .8s ease-out both;
}

.delay-1 {
  animation-delay: .3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === SECTIONS === */
section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.section-header p {
  color: var(--muted);
  margin-top: .4rem;
  font-size: 1rem;
}

/* === BOOKING INLINE === */
.booking-inline-section {
  background: linear-gradient(135deg, rgba(14, 165, 233, .02), rgba(16, 185, 129, .03));
  padding: 3rem 0;
}

.booking-inline-card {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 2.5rem;
  align-items: start;
}

.booking-inline-info h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: .6rem;
}

.booking-inline-info p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.booking-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}

.booking-perks div {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .88rem;
}

.booking-perks div i {
  color: var(--secondary);
  flex-shrink: 0;
}

.booking-therapy-visual {
  position: relative;
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(14, 165, 233, .12);
  isolation: isolate;
}

.booking-therapy-visual::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, .68));
  z-index: 1;
  pointer-events: none;
}

.booking-therapy-visual img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  transition: transform .5s ease;
}

.booking-therapy-visual:hover img {
  transform: scale(1.025);
}

.booking-therapy-visual figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  font-size: .78rem;
  line-height: 1.4;
}

.booking-therapy-visual figcaption strong {
  display: block;
  font-size: .92rem;
}

.booking-visual-icon {
  display: flex;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(14, 165, 233, .92);
  font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(2, 6, 23, .2);
}

.booking-inline-form {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, .04);
}

/* === FORMS === */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--dark);
}

.label-optional {
  font-weight: 400;
  color: var(--muted);
}

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  font-family: inherit;
  font-size: .9rem;
  transition: var(--transition);
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .1);
}

.form-control:is(textarea) {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-error-message {
  display: none;
  background: #fee2e2;
  color: #991b1b;
  padding: .75rem 1rem;
  border-radius: 10px;
  font-size: .88rem;
  margin-top: .5rem;
}

/* === ABOUT === */
.about-section {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-headline {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: .5rem;
}

.about-subheadline {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.about-content p {
  color: var(--muted);
  margin-bottom: .8rem;
  line-height: 1.7;
}

.about-features {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  background: var(--primary-light);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  width: 100%;
}

.floating-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 8px 24px rgba(14, 165, 233, .3);
}

/* === SERVICES MARQUEE === */
.services-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 10% 15%, rgba(14, 165, 233, .11), transparent 28%),
    radial-gradient(circle at 92% 82%, rgba(16, 185, 129, .09), transparent 26%), #fff;
  padding-block: 5rem;
}

.services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
  pointer-events: none;
}

.services-section .section-header {
  position: relative;
  z-index: 1;
}

.services-carousel {
  position: relative;
  z-index: 1;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  padding: 1rem 0 1.5rem;
}

.services-carousel::before,
.services-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(10vw, 120px);
  pointer-events: none;
}

.services-carousel::before {
  left: 0;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}

.services-carousel::after {
  right: 0;
  background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
}

.services-carousel-track {
  display: flex;
  width: max-content;
  animation: servicesMarquee 54s linear infinite;
  will-change: transform;
}

.services-carousel:hover .services-carousel-track,
.services-carousel:focus-within .services-carousel-track {
  animation-play-state: paused;
}

.services-card-group {
  display: flex;
  gap: 1.25rem;
  padding-right: 1.25rem;
}

.service-card {
  position: relative;
  display: flex;
  flex: 0 0 290px;
  width: 290px;
  min-height: 310px;
  flex-direction: column;
  padding: 1.45rem;
  border: 1px solid rgba(14, 165, 233, .16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(240, 249, 255, .9));
  box-shadow: 0 14px 38px rgba(15, 23, 42, .08), inset 0 1px 0 #fff;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--primary), #06b6d4, var(--secondary));
  opacity: .72;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(14, 165, 233, .38);
  box-shadow: 0 22px 52px rgba(14, 165, 233, .16), inset 0 1px 0 #fff;
}

.service-card:focus-visible {
  outline: 3px solid rgba(14, 165, 233, .32);
  outline-offset: 4px;
}

.service-card h3 {
  margin: 0 0 .8rem;
  color: var(--dark);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.35;
}

.service-card p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.7;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin: auto auto 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-light), #fff);
  color: var(--primary-dark);
  font-size: 1.9rem;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, .16), 0 10px 24px rgba(14, 165, 233, .12);
}

@keyframes servicesMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-carousel {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .services-carousel::-webkit-scrollbar {
    display: none;
  }

  .services-carousel-track {
    animation: none;
  }

  .hero-image {
    animation: none;
  }
}

/* === DOCTORS === */
.doctors-section {
  background: #fff;
}

.doctors-carousel {
  position: relative;
  padding: 0 3rem;
}

.doctors-carousel-viewport {
  overflow: hidden;
  scrollbar-width: none;
}

.doctors-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.doctors-grid {
  display: flex;
  gap: 1.5rem;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.doctor-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .04);
  transition: var(--transition);
  display: flex;
  flex: 0 0 calc((100% - 1.5rem) / 2);
  flex-direction: column;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.doctor-img-container {
  height: clamp(260px, 28vw, 340px);
  overflow: hidden;
}

.doctor-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transition: transform .4s ease;
}

.doctor-card:hover .doctor-img-container img {
  transform: scale(1.05);
}

.doctor-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.doctor-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.doctor-spec {
  color: var(--primary-dark);
  font-weight: 500;
  font-size: .88rem;
}

.doctor-meta {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-size: .85rem;
  margin-top: .2rem;
}

.doctor-info .btn-outline {
  margin-top: .6rem;
  text-align: center;
  justify-content: center;
}

.doctor-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--dark);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
}

.doctor-carousel-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}

.doctor-carousel-btn:disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

.doctor-carousel-prev {
  left: 0;
}

.doctor-carousel-next {
  right: 0;
}

.doctor-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin-top: 1.4rem;
  min-height: 10px;
}

.doctor-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.doctor-carousel-dot.active {
  width: 24px;
  background: var(--primary);
}

/* === REVIEWS === */
.reviews-section {
  background: #fff;
}

.reviews-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(14, 165, 233, .06), rgba(99, 102, 241, .06));
  border: 1px solid rgba(14, 165, 233, .12);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  gap: 2rem;
}

.reviews-score {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
}

.score-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.score-stars {
  display: flex;
  gap: 3px;
  font-size: 1.2rem;
  color: var(--accent);
}

.score-label {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 500;
}

.reviews-cta {
  text-align: right;
  flex-shrink: 0;
}

.reviews-cta p {
  color: var(--muted);
  margin-bottom: .65rem;
  font-size: .9rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, .04);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.review-meta {
  flex: 1;
}

.review-author {
  font-weight: 700;
  font-size: .95rem;
  color: var(--dark);
}

.review-service-tag {
  font-size: .75rem;
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
  padding: .15rem .5rem;
  border-radius: 999px;
}

.review-stars {
  display: flex;
  gap: 2px;
  color: var(--accent);
  font-size: .85rem;
  margin-bottom: .6rem;
}

.review-text {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
  font-style: italic;
}

.review-date {
  font-size: .75rem;
  color: var(--gray-text);
  margin-top: .6rem;
}

.review-loading {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
  grid-column: 1 / -1;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.review-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
  grid-column: 1 / -1;
}

/* Star picker */
.star-picker {
  display: flex;
  gap: .5rem;
  margin-top: .3rem;
}

.star-pick {
  font-size: 1.8rem;
  cursor: pointer;
  color: #d1d5db;
  transition: color .15s ease;
}

.star-pick:hover,
.star-pick.active {
  color: var(--accent);
}

/* === FAQ === */
.faq-section {
  background: var(--bg);
}

.faq-container {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border-radius: 12px;
  margin-bottom: .75rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .04);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(14, 165, 233, .15);
}

.faq-question {
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: .95rem;
  user-select: none;
}

.faq-question i {
  transition: transform .3s ease;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 1rem;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  color: var(--muted);
  font-size: .9rem;
  transition: all .3s ease;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.25rem 1.1rem;
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1200;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--card);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .22);
  animation: modalIn .3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(.95) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-header h3 i {
  color: var(--accent);
  margin-right: .4rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--light-bg);
  color: var(--dark);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, .06);
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  flex-wrap: wrap;
}

/* === FOOTER === */
footer {
  background: linear-gradient(180deg, var(--dark), #020617);
  color: #fff;
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  margin-bottom: .75rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-brand h3 i {
  color: var(--primary);
}

.footer-brand p {
  color: var(--gray-text);
  font-size: .88rem;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: .75rem;
  font-size: .95rem;
  color: var(--primary);
}

.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  align-items: flex-start;
}

.footer-links a {
  color: var(--gray-text);
  font-size: .88rem;
  transition: color .2s;
  text-align: left;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact p {
  margin-bottom: .5rem;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-contact p i {
  color: var(--secondary);
  flex-shrink: 0;
}

.footer-contact a {
  color: #fff;
}

.footer-contact a:hover {
  opacity: .8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 1.25rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--gray-text);
  font-size: .82rem;
}

/* === FLOATING WIDGET === */
.ai-widget {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 9999;
}

.quick-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.quick-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  transition: .3s;
}

.quick-btn:hover {
  transform: translateY(-4px) scale(1.1);
}

.btn-call {
  background: #16a34a;
}

.btn-book {
  background: var(--primary);
}

.btn-chat {
  background: #25D366;
}

/* === UTILITIES === */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

/* ============================================================
   RESPONSIVE — 1100px
   ============================================================ */
@media (max-width: 1100px) {
  .booking-inline-card {
    grid-template-columns: 1fr 400px;
    gap: 2rem;
  }

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

  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-links nav {
    align-items: flex-start;
  }
}

/* ============================================================
   RESPONSIVE — 960px (tablet landscape)
   ============================================================ */
@media (max-width: 960px) {
  #mobile-menu-btn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.5rem 1.5rem 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
    z-index: 199;
    gap: .5rem;
    align-items: stretch;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
  }

  .nav-links.mobile-open a {
    padding: .85rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
    display: block;
  }

  .nav-book-btn {
    display: none;
  }

  .booking-inline-card {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image-wrapper {
    order: -1;
  }

  .about-image {
    max-height: 340px;
    width: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctor-card {
    flex-basis: calc((100% - 1.5rem) / 2);
  }

  .doctor-img-container {
    height: clamp(220px, 36vw, 280px);
  }
}

/* ============================================================
   RESPONSIVE — 700px (mobile)
   ============================================================ */
@media (max-width: 700px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3rem 0;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    padding: 1.75rem 1rem;
    gap: 1.5rem;
    margin-top: .5rem;
    border-radius: 12px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: .95rem;
  }

  .hero-actions {
    gap: .75rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-image-wrapper {
    width: 100%;
  }

  .hero-image {
    max-width: 100%;
    max-height: 280px;
    border-radius: 14px;
    animation: none;
    object-fit: cover;
    object-position: center 15%;
  }

  /* Booking */
  .booking-perks {
    grid-template-columns: 1fr;
  }

  .booking-therapy-visual img {
    height: 230px;
  }

  .booking-inline-form {
    padding: 1.25rem;
  }

  /* About */
  .about-headline {
    font-size: 1.6rem;
  }

  /* Services */
  .services-section {
    padding-block: 3.5rem;
  }

  .services-carousel {
    padding-block: .5rem 1rem;
  }

  .services-carousel::before,
  .services-carousel::after {
    width: 40px;
  }

  .services-card-group {
    gap: .9rem;
    padding-right: .9rem;
  }

  .service-card {
    flex-basis: 260px;
    width: 260px;
    min-height: 320px;
    padding: 1.25rem;
  }

  /* Doctors */
  .doctors-carousel {
    padding: 0 2.25rem;
  }

  .doctors-grid {
    gap: 1rem;
  }

  .doctor-card {
    flex-basis: 100%;
  }

  .doctor-img-container {
    height: clamp(200px, 55vw, 280px);
  }

  .doctor-carousel-btn {
    width: 36px;
    height: 36px;
  }

  /* Reviews */
  .reviews-banner {
    padding: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .reviews-score {
    align-items: flex-start;
  }

  .reviews-cta {
    text-align: left;
  }

  .reviews-cta .btn {
    width: 100%;
    justify-content: center;
  }

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

  .score-number {
    font-size: 2.5rem;
  }

  /* Modal — sheet from bottom on mobile */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }

  .modal-header {
    padding: 1.1rem 1.25rem;
  }

  .modal-body {
    padding: 1.25rem;
  }

  .modal-footer {
    padding: .9rem 1.25rem;
    gap: .5rem;
  }

  .modal-footer .btn {
    flex: 1;
  }

  /* Footer */
  footer {
    padding-bottom: 5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-brand {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    margin-bottom: 1.5rem;
  }

  .footer-links {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    margin-bottom: 1.5rem;
  }

  .footer-contact {
    grid-column: auto;
    padding-bottom: 1.5rem;
  }

  .footer-links nav {
    align-items: flex-start;
    gap: .6rem;
  }

  .footer-links a {
    font-size: .9rem;
    display: block;
  }

  .footer-bottom p {
    font-size: .78rem;
  }

  /* Buttons */
  .btn {
    font-size: .95rem;
  }

  .form-control {
    font-size: 16px;
  }

  /* prevent iOS zoom */

  /* FAQs */
  .faq-question {
    font-size: .9rem;
  }
}

/* ============================================================
   RESPONSIVE — 480px (small phone)
   ============================================================ */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .location-badge {
    font-size: .75rem;
  }

  .section-header h2 {
    font-size: 1.45rem;
  }

  .section-header p {
    font-size: .9rem;
  }

  .booking-inline-info h2 {
    font-size: 1.3rem;
  }

  .about-headline {
    font-size: 1.45rem;
  }

  .reviews-banner {
    padding: 1rem;
  }

  .score-number {
    font-size: 2.2rem;
  }

  .quick-btn {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .ai-widget {
    right: 12px;
    bottom: 16px;
  }

  .quick-actions {
    gap: 8px;
  }
}

/* ============================================================
   RESPONSIVE — 380px (very small)
   ============================================================ */
@media (max-width: 380px) {
  .container {
    padding: 0 .85rem;
  }

  .quick-btn {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .quick-actions {
    gap: 6px;
  }

  .ai-widget {
    right: 8px;
    bottom: 12px;
  }

  .hero-content h1 {
    font-size: 1.55rem;
  }

  .doctors-carousel {
    padding: 0 1.8rem;
  }

  .doctor-carousel-btn {
    width: 32px;
    height: 32px;
    font-size: .8rem;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  .service-card {
    flex-basis: 240px;
    width: 240px;
  }
}