/* 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);
}

@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 {
  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%;
}

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

.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(-5px);
  border-color: rgba(33, 84, 105, 0.22);
  box-shadow: 0 16px 36px rgba(33, 84, 105, 0.12);
}

.gallery-card {
  overflow: hidden;
}

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

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

.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-card img,
  .nav-link {
    transition: none;
  }

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

  .card-lift: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;
  }
}
