/* Reactive Physiotherapy Clinic — shared styles */

:root {
  --brand: #215469;
  --brand-dark: #143848;
  --brand-deeper: #0e2a36;
  --brand-mid: #2c6d86;
  --brand-cyan: #3a8499;
  --brand-soft: #e7f2f6;
  --brand-mist: #f4f9fb;
  --brand-ice: #f8fcfd;
  --brand-border: #d4e5eb;
  --header-offset: 7.25rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

#home,
#about,
#services,
#why-choose-us,
#contact,
#pain-orthopedic,
#rehabilitation,
#neurological,
#geriatric,
#sports-fitness,
#techniques,
#home-physiotherapy,
#personalized-assessment {
  scroll-margin-top: var(--header-offset);
}

@media (max-width: 1023px) {
  :root {
    --header-offset: 4.5rem;
  }
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Poppins, sans-serif;
  color: #1a3340;
  background: #fff;
}

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

h1, h2, h3, p, li {
  overflow-wrap: break-word;
  max-width: 100%;
}

.site-container > * {
  min-width: 0;
  max-width: 100%;
}

.site-container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .site-container {
    padding-inline: 1.5rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
}

.site-header.is-scrolled .main-nav {
  box-shadow: 0 8px 24px rgba(33, 84, 105, 0.08);
}

.topbar {
  background: var(--brand-deeper);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

.brand-logo {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .brand-logo {
    height: 48px;
    max-width: 196px;
  }
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a3a48;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  border-radius: 99px;
  background: var(--brand-cyan);
}

#mobile-menu .js-nav-link.is-active {
  color: var(--brand);
}

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.32s ease, opacity 0.24s ease;
}

#mobile-menu.is-open {
  max-height: 28rem;
  opacity: 1;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 60% at 8% 12%, rgba(58, 132, 153, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 50% at 96% 8%, rgba(33, 84, 105, 0.1), transparent 50%),
    linear-gradient(180deg, #f7fbfd 0%, #ffffff 72%);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.hero-orb-1 {
  width: 22rem;
  height: 22rem;
  top: -6rem;
  right: -4rem;
  background: radial-gradient(circle, rgba(58, 132, 153, 0.16), transparent 68%);
}

.hero-orb-2 {
  width: 16rem;
  height: 16rem;
  bottom: 10%;
  left: -5rem;
  background: radial-gradient(circle, rgba(33, 84, 105, 0.1), transparent 70%);
}

.hero-frame {
  position: relative;
  max-width: 100%;
}

.media-frame {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--brand-border);
  background: var(--brand-ice);
  box-shadow: 0 12px 32px rgba(33, 84, 105, 0.1);
}

.media-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.media-frame-hero {
  aspect-ratio: 3 / 2;
  border-color: #fff;
  box-shadow: 0 18px 44px rgba(33, 84, 105, 0.14);
}

.media-frame-hero img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.media-frame-clinic img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.media-frame-profile {
  display: flex;
  justify-content: center;
}

.media-frame-profile img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(38rem, 82vh);
  object-fit: contain;
  object-position: center top;
}

.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--brand-border);
  box-shadow: 0 10px 30px rgba(33, 84, 105, 0.12);
}

/* Section helpers */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brand-mid);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 1.35rem;
  height: 2px;
  border-radius: 99px;
  background: var(--brand-cyan);
}

.section-label.is-center {
  justify-content: center;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: var(--brand-soft);
  color: var(--brand);
}

.card-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-lift:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 84, 105, 0.22);
  box-shadow: 0 14px 34px rgba(33, 84, 105, 0.12);
}

.why-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
  border: 1px solid var(--brand-border);
  box-shadow: 0 10px 28px rgba(33, 84, 105, 0.07);
}

.why-card .icon-box {
  border-radius: 999px;
}

#gallery .gallery-card {
  min-width: 0;
  aspect-ratio: 4 / 3;
  transition: box-shadow 0.3s ease;
}

#gallery .gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

#gallery .gallery-card:hover {
  box-shadow: 0 16px 36px rgba(33, 84, 105, 0.14);
}

#gallery .gallery-card:hover img {
  transform: scale(1.02);
}

.lucide-star {
  fill: currentColor;
}

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #1a4d60 0%, #215469 48%, #2c6d86 100%);
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.cta-band::before {
  width: 18rem;
  height: 18rem;
  right: -4rem;
  top: -6rem;
  background: rgba(255, 255, 255, 0.08);
}

.cta-band::after {
  width: 12rem;
  height: 12rem;
  left: -3rem;
  bottom: -5rem;
  background: rgba(14, 42, 54, 0.25);
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 0.85rem;
  padding: 0.55rem 0.75rem;
}

.footer-logo-wrap img {
  height: 42px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
}

.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal,
  .card-lift,
  #gallery .gallery-card img,
  .nav-link,
  #services .service-card,
  #services .service-panel,
  #services .service-panel-body,
  #services .service-plus::after,
  #services .services-feature-card {
    transition: none;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }

  .card-lift:hover,
  #services .service-card:hover {
    transform: none;
  }

  .whatsapp-float:hover {
    transform: none;
  }
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 28px rgba(33, 84, 105, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float:hover {
  background: var(--brand-mid);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(33, 84, 105, 0.38);
}

.whatsapp-float svg {
  display: block;
}

@media (min-width: 768px) {
  .whatsapp-float {
    right: 24px;
    bottom: 24px;
    width: 3.5rem;
    height: 3.5rem;
  }
}

#services .services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

@media (min-width: 640px) {
  #services .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  #services .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

#services .service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  box-shadow: 0 10px 28px rgba(33, 84, 105, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#services .service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  transition: background-color 0.3s ease;
}

#services .service-icon-sm {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

#services .service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(33, 84, 105, 0.22);
  box-shadow: 0 18px 40px rgba(33, 84, 105, 0.14);
}

#services .service-card:hover .service-icon {
  background: #d4eaf1;
}

#services .services-feature {
  width: 100%;
  max-width: 1150px;
}

#services .services-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 1rem;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(15, 60, 90, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#services .services-feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(33, 84, 105, 0.2);
  box-shadow: 0 14px 36px rgba(15, 60, 90, 0.1);
}

#services .services-feature-media,
#services .services-feature-copy {
  min-width: 0;
}

#services .services-feature-media {
  overflow: hidden;
  width: 100%;
  height: 250px;
  border-radius: 16px;
  border: 1px solid var(--brand-border);
  background: var(--brand-ice);
  box-shadow: 0 8px 20px rgba(33, 84, 105, 0.08);
}

#services .services-feature-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center 18%;
}

@media (min-width: 768px) {
  #services .services-feature-card {
    grid-template-columns: 42% 58%;
    gap: 1rem;
    padding: 12px 14px;
  }

  #services .services-feature-media {
    height: 100%;
    min-height: 300px;
    max-height: 330px;
  }
}

@media (min-width: 1024px) {
  #services .services-feature-card {
    grid-template-columns: 40% 60%;
    gap: 1.15rem;
    padding: 14px;
  }
}

#services .service-panel {
  background: #fff;
  border: 1px solid var(--brand-border);
  box-shadow: 0 8px 24px rgba(33, 84, 105, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
}

#services .service-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(33, 84, 105, 0.22);
  box-shadow: 0 14px 32px rgba(33, 84, 105, 0.1);
}

#services .service-panel-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

#services .service-panel-sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}

#services .service-plus {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
}

#services .service-plus::before,
#services .service-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 99px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

#services .service-plus::before {
  width: 12px;
  height: 2px;
}

#services .service-plus::after {
  width: 2px;
  height: 12px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#services .service-panel.is-open .service-plus::after {
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0);
}

#services .service-panel-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.32s ease, opacity 0.24s ease;
}

#services .service-panel.is-open .service-panel-body {
  grid-template-rows: 1fr;
  opacity: 1;
}

#services .service-panel-body-inner {
  overflow: hidden;
  min-height: 0;
}

#services .service-panel.is-open {
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fb 100%);
  border-color: rgba(33, 84, 105, 0.3);
  box-shadow: 0 14px 34px rgba(33, 84, 105, 0.12);
  transform: none;
}

.reviews-section {
  position: relative;
  overflow: hidden;
}

.reviews-section::before {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  right: -6rem;
  top: 2rem;
  border-radius: 999px;
  background: rgba(58, 132, 153, 0.07);
  pointer-events: none;
}

.reviews-slider {
  --reviews-visible: 1;
}

.reviews-shell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.reviews-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.reviews-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.reviews-slide {
  flex: 0 0 calc(100% / var(--reviews-visible));
  min-width: 0;
  padding: 0 0.45rem;
  box-sizing: border-box;
}

.review-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 16.5rem;
  padding: 1.35rem 1.4rem;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(33, 84, 105, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 84, 105, 0.2);
  box-shadow: 0 16px 36px rgba(33, 84, 105, 0.12);
}

.review-stars {
  color: #f4b400;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  line-height: 1;
}

.reviews-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 6px 16px rgba(33, 84, 105, 0.08);
  cursor: pointer;
}

.reviews-nav:hover,
.reviews-nav:focus-visible {
  background: var(--brand-soft);
  outline: none;
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.reviews-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c5d8df;
  cursor: pointer;
}

.reviews-dot.is-active {
  width: 1.15rem;
  background: var(--brand);
}

@media (min-width: 768px) {
  .reviews-slider {
    --reviews-visible: 2;
  }
}

@media (min-width: 1280px) {
  .reviews-slider {
    --reviews-visible: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track,
  .review-card {
    transition: none;
  }

  .review-card:hover {
    transform: none;
  }
}
