/* Brand and layout */
:root {
  color-scheme: light;
  --bg: #f7fbfd;
  --bg-alt: #ffffff;
  --text: #0f1c24;
  --dark: #0f1c24;
  --muted: #506070;
  --primary: #0f5b78;
  --secondary: #08a6a6;
  --accent: #f0faf5;
  --border: #d9e5ef;
  --shadow: 0 25px 60px rgba(15, 91, 120, 0.12);
  --radius-lg: 32px;
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --transition: 0.3s ease;
  font-family: "Segoe UI", -apple-system, "Inter", "Roboto", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  padding-top: 94px;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

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

a:hover,
a:focus {
  text-decoration: none;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: #fff;
  box-shadow: 0 15px 35px rgba(15, 91, 120, 0.08);

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;

  z-index: 3000;
}

.navbar .logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.navbar .logo-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
}

.navbar .logo-img {
  height: 46px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 12px;
}
.navbar .logo-text[hidden] {
  display: none !important;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--muted);
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
}

.nav-links a.is-active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-outline {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
}

.mobile-booking-trigger {
  display: none;
}

.mobile-booking-dialog {
  display: none;
}

.hamburger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(15, 91, 120, 0.25);
  background: linear-gradient(135deg, #ffffff, #f0f6fb);
  box-shadow: 0 12px 25px rgba(15, 91, 120, 0.15);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.hamburger span {
  display: block;
  height: 3px;
  width: 24px;
  background-color: var(--dark);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger span:nth-child(2) {
  width: 18px;
  align-self: flex-end;
}

.hamburger:hover {
  box-shadow: 0 18px 35px rgba(15, 91, 120, 0.25);
  transform: translateY(-1px);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  padding: 5rem 2rem 2rem;
  visibility: hidden;
  transform: translate3d(100%, 0, 0);
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .22s;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav-links {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.mobile-nav-links li {
  margin-bottom: 1.3rem;
}

.mobile-nav-links a {
  color: var(--dark);
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
  padding: 0.4rem 0;
  transition: var(--transition);
}

.mobile-nav-links a i {
  width: 24px;
  margin-right: 10px;
  text-align: center;
  display: inline-block;
}

.mobile-nav-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.floating-call-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #08a6a6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 9999;
  isolation: isolate;
}

.floating-call-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 2px solid rgba(37, 211, 102, 0.5);
  border-radius: inherit;
  opacity: 0;
  transform: scale(1);
  animation: pulse-ring 2.2s ease-out infinite;
  pointer-events: none;
}

.floating-call-btn img {
  width: 30px;
  height: 30px;
}

.floating-call-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

@keyframes pulse-ring {
  0% {
    opacity: 0.48;
    transform: scale(0.98);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.48);
  }
}

.hero-slider {
  position: relative;
  min-height: calc(100vh - 94px);
  background: transparent;
  color: #f5f5f5;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

.hero-slider__slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-image: var(--slide-image);
  background-size: cover;
  background-position: var(--slide-desktop-x, 50%) var(--slide-desktop-y, 50%);
  background-color: transparent;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
}

.hero-slide__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--slide-desktop-x, 50%) var(--slide-desktop-y, 50%);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 20% 40%, rgba(0,0,0,0.65), transparent 55%),
              linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.25) 100%);
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slider__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 4rem 5vw;
  min-height: calc(100vh - 94px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  color: #f9fbff;
}

.hero-slider__content h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.2;
  text-shadow: 3px 3px 14px rgba(0, 0, 0, 0.7);
}

.hero-slider__content p {
  font-size: 1.2rem;
  max-width: 560px;
  color: #e8edf5;
  line-height: 1.6;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.65);
}

.hero-slider__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2.5rem;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, #0f5b78, #08a6a6);
  color: #fff;
  box-shadow: 0 15px 35px rgba(8, 166, 166, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(8, 166, 166, 0.45);
}

.cta-button.is-hidden {
  display: none;
}

.services-showcase {
  background: #f8fafc;
}

.services-view-all {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.services-showcase .section-header {
  text-align: center;
}
.services-methods {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 240px;
}

.services-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
}

.services-showcase .section-header p {
  max-width: 640px;
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
/* Prevent service cards from overflowing on very small screens */
@media (max-width: 540px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}



.service-category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem auto 0;
  max-width: 1100px;
}

.service-category-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #dbe5ef;
  background: #fff;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-category-tab:hover,
.service-category-tab.is-active {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(15, 91, 120, 0.08);
}

.service-category-section {
  scroll-margin-top: 110px;
  margin-top: 3rem;
}

.service-category-heading {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 1.5rem;
}

.service-category-heading h2 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.service-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 91, 120, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: 0 20px 45px rgba(15, 91, 120, 0.14);
}

.service-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 91, 120, 0.25), rgba(8, 166, 166, 0.25));
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #0f5b78, #08a6a6);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.service-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.duration-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  background: #eef3f8;
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.service-card-title {
  font-size: 1.25rem;
  color: var(--dark);
  margin: 0;
}
.service-card-description {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
  min-height: 3.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.service-price {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: #eef3f8;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.service-price span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.service-card-actions {
  width: 100%;
}

.service-card-button {
  width: 100%;
  min-height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.service-card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 91, 120, 0.25);
}

.therapy-massage { border-left: 4px solid #0f5b78; }
.therapy-exercise { border-left: 4px solid #08a6a6; }
.therapy-electro { border-left: 4px solid #f59e0b; }
.therapy-manual { border-left: 4px solid #ef4444; }
.therapy-sports { border-left: 4px solid #8b5cf6; }
.therapy-neuro { border-left: 4px solid #06b6d4; }

.hero-slider__controls {
  position: absolute;
  top: 50%;
  left: 5vw;
  right: 5vw;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
}

.hero-slider__arrows {
  display: flex;
  gap: 0.5rem;
  pointer-events: auto;
}

.hero-slider__arrow,
.hero-slider__pause {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-slider__arrow:hover,
.hero-slider__pause:hover {
  background: rgba(8, 166, 166, 0.6);
  transform: scale(1.05);
}

.hero-slider:focus-visible,
.hero-slider__arrow:focus-visible,
.hero-slider__pause:focus-visible,
.hero-slider .dot:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.hero-slider:focus-visible {
  outline-offset: -5px;
}

.hero-slider__pause[hidden] {
  display: none !important;
}

.hero-slider__pause-icon {
  display: inline-flex;
}

.hero-slider__pause-icon--play,
.hero-slider__pause.is-paused .hero-slider__pause-icon--pause {
  display: none;
}

.hero-slider__pause.is-paused .hero-slider__pause-icon--play {
  display: inline-flex;
}

.hero-slider__dots {
  display: none;
}

.dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
  padding: 0;
}

.dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.3s ease, transform 0.3s ease;
}

.dot.is-active::before {
  background: #08a6a6;
  transform: translate(-50%, -50%) scale(1.2);
}

@media (max-width: 768px) {
  body {
    padding-top: 78px;
  }

  .hero-slider {
    min-height: calc(100vh - 78px);
  }

  .hero-slider__content {
  padding: 2rem 1.5rem 5.5rem;
  min-height: calc(100vh - 78px);
  transform: translateY(-28px);
}

  .hero-slider__controls {
    top: auto;
    bottom: 2.75rem;
    left: 0;
    right: 0;
    transform: none;
    justify-content: center;
    align-items: center;
  }

  .hero-slider__cta {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero-slide {
    background-size: cover;
    background-repeat: no-repeat;
  }

  .hero-slide__media img {
    object-position: var(--slide-mobile-x, 50%) var(--slide-mobile-y, 50%);
  }

  .hero-slide:nth-child(1) {
    background-position: 52% center;
  }

  .hero-slide:nth-child(2) {
    background-position: 60% center;
  }

  .hero-slide:nth-child(3) {
    background-position: 62% center;
  }

  .hero-slider__arrows,
  .hero-slider__indicator {
    display: none;
  }

  .hero-slider__dots {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

.close-menu {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
}

.close-menu:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-actions .btn,
.mobile-actions .btn-outline {
  width: 100%;
  justify-content: center;
}

@media (max-width: 992px) {
  /* Mobile header only: booking | centered logo | menu. Desktop stays unchanged. */
  .navbar {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    column-gap: 10px;
  }

  .navbar > nav,
  .navbar .nav-actions {
    display: none;
  }

  .mobile-booking-trigger {
    grid-column: 1;
    justify-self: start;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(8, 166, 166, 0.34);
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #eafafa);
    color: #087f8c;
    box-shadow: 0 12px 25px rgba(15, 91, 120, 0.13);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
  }

  .mobile-booking-trigger svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-booking-trigger:hover,
  .mobile-booking-trigger:focus-visible {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    box-shadow: 0 16px 30px rgba(15, 91, 120, 0.22);
    outline: 3px solid rgba(8, 166, 166, 0.2);
    outline-offset: 2px;
  }

  .navbar .logo {
    grid-column: 2;
    justify-self: center;
    min-width: 0;
    max-width: 100%;
  }

  .navbar .logo-img {
    max-width: min(145px, 100%);
  }

  .hamburger {
    grid-column: 3;
    justify-self: end;
    display: flex;
  }

  .mobile-booking-dialog {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 5000;
    visibility: hidden;
    pointer-events: none;
  }

  .mobile-booking-dialog[aria-hidden="false"] {
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-booking-dialog__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(3, 31, 48, 0.58);
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .mobile-booking-dialog__panel {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 28px 18px 20px;
    border: 1px solid rgba(15, 91, 120, 0.14);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(3, 31, 48, 0.3);
    transform: translateY(calc(100% + 30px));
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
  }

  .mobile-booking-dialog[aria-hidden="false"] .mobile-booking-dialog__backdrop {
    opacity: 1;
  }

  .mobile-booking-dialog[aria-hidden="false"] .mobile-booking-dialog__panel {
    transform: translateY(0);
  }

  .mobile-booking-dialog__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(15, 91, 120, 0.16);
    border-radius: 14px;
    background: #f3f8fb;
    color: var(--dark);
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-booking-dialog__eyebrow {
    margin: 0 52px 7px 0;
    color: #087f8c;
    font-size: 0.86rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-booking-dialog h2 {
    margin: 0 48px 10px 0;
    color: var(--dark);
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.14;
  }

  .mobile-booking-dialog__intro {
    margin: 0 0 18px;
    color: #41596a;
    font-size: 1rem;
    line-height: 1.55;
  }

  .mobile-booking-dialog__actions {
    display: grid;
    gap: 12px;
  }

  .mobile-booking-option {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid rgba(15, 91, 120, 0.16);
    border-radius: 18px;
    background: #ffffff;
    color: var(--dark);
    box-shadow: 0 10px 24px rgba(15, 91, 120, 0.08);
  }

  .mobile-booking-option--online {
    border-color: rgba(8, 166, 166, 0.3);
    background: linear-gradient(135deg, #f2ffff, #e7f8f8);
  }

  .mobile-booking-option__icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: rgba(8, 166, 166, 0.12);
    color: #087f8c;
  }

  .mobile-booking-option__icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-booking-option__copy {
    min-width: 0;
  }

  .mobile-booking-option__copy strong,
  .mobile-booking-option__copy small {
    display: block;
  }

  .mobile-booking-option__copy strong {
    color: var(--dark);
    font-size: 1.02rem;
    line-height: 1.25;
  }

  .mobile-booking-option__copy small {
    margin-top: 3px;
    color: #526c7d;
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .mobile-booking-option__arrow {
    color: #087f8c;
    font-size: 1.45rem;
    font-weight: 800;
  }

  .mobile-booking-option:focus-visible {
    outline: 3px solid rgba(8, 166, 166, 0.24);
    outline-offset: 2px;
  }

  .mobile-booking-dialog__note {
    margin: 14px 0 0;
    color: #526c7d;
    font-size: 0.86rem;
    text-align: center;
  }

  body.mobile-booking-open {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  .page-hero,
  .section {
    padding: 2.5rem 1.5rem;
  }
  .card-grid,
  .grid--two,
  .grid--three,
  .team-grid {
    grid-template-columns: 1fr;
  }
  .section--split .split {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .mobile-menu {
    width: 280px;
  }
}

@media (max-width: 360px) {
  .navbar {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    column-gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .mobile-booking-trigger,
  .hamburger {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .navbar .logo-img {
    max-width: 126px;
    height: 40px;
  }

  .mobile-booking-dialog__panel {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 480px) {
  .navbar .logo {
    font-size: 1rem;
  }
  .btn,
  .btn-outline,
  .btn-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 15px 35px rgba(15, 91, 120, 0.25);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
}

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

.btn:hover {
  transform: translateY(-3px);
}

main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  padding: 2.75rem 5vw;
  overflow-x: hidden;
}

.section + .section {
  padding-top: 1.5rem;
}

.section--dark-combo {
  background: linear-gradient(135deg, #0f1c24 0%, #0f5b78 55%, #084c63 100%);
  padding: 0;
}

.section--dark-combo .section.is-nested {
  background: transparent;
  padding: 2.75rem 5vw;
}

.section--dark-combo .section.is-nested + .section.is-nested {
  padding-top: 1.5rem;
}

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

.section--contrast {
  background: #0f1c24;
  color: #fff;
}

.section-header {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2f6f8f;
}

.page-hero {
  padding: 4rem 5vw;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.page-hero--compact {
  padding-top: 3rem;
}

.hero-copy {
  padding-right: 1rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.hero-stats li {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}


/* =========================================== */
/* Branded page heroes without image placeholders */
/* Services, Blog and Contact */
/* =========================================== */
.page-hero--branded {
  position: relative;
  isolation: isolate;
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: clamp(2.25rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 18%, rgba(126, 231, 239, 0.28), transparent 34%),
    radial-gradient(circle at 8% 92%, rgba(8, 166, 166, 0.22), transparent 34%),
    linear-gradient(135deg, #062f4f 0%, #0f5b78 58%, #07334e 100%);
  color: #ffffff;
  box-shadow: 0 26px 70px rgba(15, 91, 120, 0.22);
}

.page-hero--branded::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: calc(var(--radius-lg) - 1px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.page-hero--branded::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 34px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.page-hero--branded .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-right: 0;
}

.page-hero--branded .eyebrow {
  color: #9ff4f4;
}

.page-hero--branded h1 {
  color: #ffffff;
  font-size: clamp(2.25rem, 4vw, 4rem);
  letter-spacing: -0.04em;
}

.page-hero--branded p {
  color: #eaf6fb;
  font-size: 1.08rem;
  max-width: 760px;
}

.page-hero--branded .hero-cta {
  margin-top: 1.5rem;
}

.page-hero--branded .btn-primary {
  background: linear-gradient(135deg, #08a6a6, #0f8ab0);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(8, 166, 166, 0.3);
}

.page-hero--branded .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.page-hero--branded .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.page-hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
}

.page-hero-badges span::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #7ee7ef;
  box-shadow: 0 0 0 4px rgba(126, 231, 239, 0.16);
}

@media (max-width: 768px) {
  .page-hero--branded {
    margin: 1.25rem 1rem 0;
    padding: 2rem 1.35rem;
    border-radius: 24px;
  }

  .page-hero--branded h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .page-hero-badges {
    gap: 0.55rem;
  }

  .page-hero-badges span {
    width: 100%;
    justify-content: flex-start;
  }
}

.image-slot {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: #fff;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.image-slot code {
  background: #eef3f8;
  padding: 0 0.4rem;
  border-radius: 6px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card-grid--rows {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Blog articles: force three cards per row on desktop, two on tablet, one on mobile */
.card-grid--articles {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Certificates on homepage: two per row on desktop */
.card-grid--certificates {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .card-grid--articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .card-grid--articles {
    grid-template-columns: 1fr;
  }
  
  .card-grid--certificates {
    grid-template-columns: 1fr;
  }
}

.card-grid--articles .card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Ensure article card images keep a consistent size and don't stretch */
.card-grid--articles .image-slot {
  /* article thumbnails: remove dashed placeholder frame and make them sit inside cards */
  min-height: 140px;
  height: 180px;
  padding: 0; /* no extra inner padding */
  overflow: hidden;
  display: block;
  border: none;
  background: transparent;
  border-radius: 14px;
}

.card-grid--articles .image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Certificates should also not use the dashed placeholder frame */
.card-grid--certificates .image-slot {
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .card-grid--articles .image-slot {
    height: 140px;
    min-height: 140px;
  }
}

/* Post cover image: clean responsive crop on article page */
.image-slot[data-slot="post-cover"] {
  aspect-ratio: 16 / 10;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: none;
  border-radius: 14px;
  background: transparent;
}

.image-slot[data-slot="post-cover"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 480px) {
  .image-slot[data-slot="post-cover"] {
    aspect-ratio: 4 / 3;
  }
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(15, 91, 120, 0.18);
}

.rich-text {
  color: var(--dark);
  line-height: 1.6;
}
.rich-text p {
  margin: 0 0 0.9rem;
  color: var(--dark);
}
.rich-text ul, .rich-text ol {
  margin: 0 0 1rem 1.2rem;
  color: var(--dark);
}
.rich-text li {
  margin-bottom: 0.35rem;
}

.policy-hero,
.policy-hero h1,
.policy-hero p {
  color: var(--dark);
}
.policy-card {
  color: var(--dark);
}
.policy-card .rich-text p,
.policy-card .rich-text li,
.policy-card .rich-text {
  color: var(--dark);
}

.card ul {
  padding-left: 1rem;
  color: var(--muted);
}

.text-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.panel {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.timeline--vertical {
  list-style: none;
  padding: 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.timeline--vertical li {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.section--split .split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.form {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

input,
select,
textarea {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(8, 166, 166, 0.15);
}

.steps {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

.steps li {
  margin-bottom: 0.4rem;
}

.steps li::before {
  content: "-";
  color: var(--primary);
  margin-right: 0.5rem;
}

.section--cta {
  background: #0f1c24;
  color: #fff;
  padding: 3rem 1.25rem;
}
.section--cta p {
  color: rgba(255, 255, 255, 0.9);
}

.section--cta-final p {
  color: rgba(255, 255, 255, 0.92);
}

.cta-box {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.section--cta-final .cta-box {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  justify-items: center;
}
.section--cta-final .cta-box > * {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* =========================================== */
/* Kphysio Home Rehab CTA - под hero слайдера */
/* =========================================== */
.kphysio-home-rehab {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(86, 225, 209, 0.22), transparent 32%),
    radial-gradient(circle at 88% 90%, rgba(8, 166, 166, 0.16), transparent 34%),
    linear-gradient(135deg, #071f33 0%, #0b314c 54%, #0f405d 100%);
  color: #ffffff;
}

.kphysio-home-rehab::after {
  content: "";
  position: absolute;
  inset: auto -90px -140px auto;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(86, 225, 209, 0.12);
  pointer-events: none;
}

.kphysio-home-rehab__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}

.kphysio-home-rehab .eyebrow {
  color: #56e1d1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.kphysio-home-rehab h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  max-width: 760px;
  margin-bottom: 1rem;
}

.kphysio-home-rehab__lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0;
}

.kphysio-home-rehab__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.65rem;
}

.kphysio-home-rehab__actions .btn {
  box-shadow: 0 16px 38px rgba(8, 166, 166, 0.32);
}

.kphysio-home-rehab__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.kphysio-home-rehab__phone:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(86, 225, 209, 0.65);
}

.kphysio-home-rehab__panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(6px);
}

.kphysio-home-rehab__panel-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.kphysio-home-rehab__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.kphysio-home-rehab__list li {
  position: relative;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  line-height: 1.45;
}

.kphysio-home-rehab__list li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  background: #56e1d1;
  color: #062f4f;
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(86, 225, 209, 0.22);
}

@media (max-width: 920px) {
  .kphysio-home-rehab__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .kphysio-home-rehab {
    padding: 2.6rem 1.25rem;
  }

  .kphysio-home-rehab__panel {
    border-radius: 22px;
  }

  .kphysio-home-rehab__actions,
  .kphysio-home-rehab__actions .btn,
  .kphysio-home-rehab__phone {
    width: 100%;
  }
}

.section--cta-final .image-slot {
  width: min(100%, 607px);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 607 / 247;
  display: block;
  padding: 0;
  overflow: hidden;
}

.section--cta-final .image-slot img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.cta-box .image-slot {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #d8e2ea;
}

@media (max-width: 768px) {
  .section--cta .cta-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .section--cta .hero-cta {
    justify-content: center;
  }
  .section--cta-final .cta-box {
    grid-template-columns: 1fr;
  }
}

.card-grid--articles .image-slot,
.team-card .image-slot,
.card-grid--rows .image-slot {
  min-height: 180px;
}

.section--zigzag {
  background: linear-gradient(135deg, #0f1c24 0%, #0f5b78 55%, #084c63 100%);
  color: #eef5fb;
}

.zigzag-grid {
  display: grid;
  gap: 2.5rem;
}

.zigzag-item {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.zigzag-item.is-reverse {
  direction: rtl;
}

.zigzag-item.is-reverse > * {
  direction: ltr;
}

.zigzag-content {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zigzag-content h3 {
  margin: 0 0 0.6rem;
  color: #fff;
}

.zigzag-content p {
  color: #d8e2ea;
}

.zigzag-content .btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-weight: 700;
  box-shadow: 0 15px 35px rgba(15, 91, 120, 0.25);
}

.zigzag-content .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(15, 91, 120, 0.35);
}

.zigzag-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.zigzag-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.zigzag-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.feature-list article {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

/* =========================================== */
/* Footer - Kphysio branding + contrast fix */
/* =========================================== */
.site-footer {
  padding: 2.4rem 5vw 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: linear-gradient(135deg, #062f4f 0%, #0f5b78 58%, #073247 100%);
  color: #eaf6fb;
  border-top: 4px solid var(--secondary);
}

.site-footer p,
.site-footer li,
.site-footer span,
.site-footer .footer-bottom-text {
  color: #eaf6fb;
}

.footer-top {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-logo {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.footer-logo-img {
  max-height: 50px;
  width: auto;
  display: block;
  margin-bottom: 0.6rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-headline {
  margin: 0 0 0.45rem;
  color: #ffffff;
  font-weight: 800;
}

.site-footer strong,
.footer-top h4 {
  color: #ffffff;
}

.footer-top h4 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer-top ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer a,
.footer-top ul a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.site-footer a:hover,
.site-footer a:focus,
.footer-top ul a:hover,
.footer-top ul a:focus {
  color: #7ee7ef;
  text-decoration: underline;
}

.footer-top ul a:hover,
.footer-top ul a:focus {
  transform: translateX(3px);
}

.footer-contact {
  margin-top: 0.9rem;
}

.footer-contact p {
  margin: 0.25rem 0;
  color: #ffffff;
}

.footer-contact a {
  color: #ffffff;
  font-weight: 800;
}

.footer-hours {
  font-family: inherit;
  color: #eaf6fb;
  font-size: 15px;
}

.footer-hours h4 {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.footer-hours ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-hours li {
  display: flex;
  gap: 10px;
  max-width: 240px;
  margin-bottom: 3px;
}

.footer-hours li span:first-child {
  font-weight: 700;
  width: 50px;
  display: inline-block;
  color: #ffffff;
}

.footer-hours .closed {
  color: #ffd7d7;
  font-weight: 900;
  text-transform: uppercase;
  animation: none;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 700;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}


.footer-social__text-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.footer-social a:hover,
.footer-social a:focus {
  background: rgba(126, 231, 239, 0.18);
  border-color: rgba(126, 231, 239, 0.65);
  transform: translateY(-2px);
}

.footer-bottom {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.20);
  padding-top: 1.5rem;
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-bottom-text {
  color: #ffffff;
  font-weight: 800;
  margin: 0;
  line-height: 1.5;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  min-width: 240px;
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

.toast[data-type="error"] {
  background: #c95252;
}

[data-section] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-section].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keep services and about pages visible without reveal animations */
.page-services [data-section] {
  opacity: 1;
  transform: none;
  transition: none;
}
.page-about [data-section] {
  opacity: 1;
  transform: none;
  transition: none;
}
.page-about [data-section].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.menu-open .overlay {
  opacity: 1;
  visibility: visible;
}

.menu-open .mobile-menu {
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
}




.section--faq {
  background: linear-gradient(135deg, #0f1c24 0%, #0f5b78 55%, #084c63 100%);
  color: #eef5fb;
}

.section--faq .section-header p {
  color: #e5f4ff;
}

.faq-list {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.faq-item.is-open {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  text-align: left;
}

.faq-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-toggle::before {
  width: 10px;
  height: 2px;
}

.faq-toggle::after {
  width: 2px;
  height: 10px;
}

.faq-item.is-open .faq-toggle::after {
  transform: scaleY(0);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  opacity: 0.7;
  padding: 0 1.4rem;
  display: block;
}

.faq-item.is-open .faq-answer {
  max-height: 400px;
  padding-bottom: 1.1rem;
  opacity: 1;
}

.faq-answer p {
  color: #d8e2ea;
  margin: 0;
}

/* =========================================== */
/* ПОПРАВКА НА КОДА ДЕАКТИВИРАНЕ НА АНИМАЦИИТЕ / КОЛЕГИ НЕ ПИПАЙТЕ ТУК !             */
/* =========================================== */

/* Деактивиране на анимациите за blog статии на мобилни устройства */
@media (max-width: 768px) {
  /* Важно: Деактивирайте opacity за всички data-section на blog страницата */
  body.page-insights [data-section],
  body.page-blog [data-section] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  /* Гарантирайте, че статиите се виждат */
  .card-grid--articles {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Принудително показване на всяка статия */
  .card-grid--articles .card {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    display: flex !important;
  }
  
  /* Деактивиране на scroll animations за мобилни */
  [data-section] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Допълнителна безопасност: деактивирайте анимации за всички blog страници */
.page-insights .section,
.page-blog .section {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Global fix: show all custom admin pages without scroll animation issues */
body[class^="page-"] main > .section[data-section],
body[class*=" page-"] main > .section[data-section] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  visibility: visible !important;
}

body[class^="page-"] .page-body,
body[class*=" page-"] .page-body {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  overflow: visible !important;
}


/* =========================================== */
/* Blog excerpt "Виж още" - пази подредбата на картите */
/* =========================================== */
.card-grid--articles .article-card,
.card-grid--articles .card {
  height: 100%;
}

.card-grid--articles .article-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-grid--articles .article-card-excerpt {
  position: relative;
  max-height: 8.25rem;
  overflow: hidden;
  transition: max-height 0.35s ease;
  margin-bottom: 0;
}

.card-grid--articles .article-card-excerpt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 85%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.card-grid--articles .article-card-excerpt.is-expanded {
  max-height: 36rem;
}

.card-grid--articles .article-card-excerpt.is-expanded::after {
  opacity: 0;
}

.card-grid--articles .article-excerpt-toggle {
  display: none;
  align-self: flex-start;
  margin: -0.25rem 0 0.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.card-grid--articles .article-excerpt-toggle.is-visible {
  display: inline-flex;
}

.card-grid--articles .article-excerpt-toggle:hover {
  color: var(--secondary);
}

.card-grid--articles .article-card-link,
.card-grid--articles .btn-primary {
  margin-top: auto;
}

/* =========================================== */
/* Blog post tags - visible for users and crawlable for Google */
/* =========================================== */
.post-article {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.post-tags {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-tags__label {
  font-weight: 800;
  color: var(--dark);
}

.post-tags__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .post-tags {
    display: block;
  }

  .post-tags__list {
    margin-top: 0.6rem;
  }
}

/* =========================================== */
/* SEO anchors and internal links - crawlable */
/* =========================================== */
.seo-anchor-menu {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 24px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 91, 120, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.seo-anchor-menu span {
  font-weight: 800;
  color: var(--dark);
}

.seo-anchor-menu ul,
.seo-related-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.seo-anchor-menu ul {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.seo-anchor-menu a,
.seo-related-links a {
  text-decoration: none;
  font-weight: 800;
}

.seo-anchor-menu a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  color: var(--primary);
  background: rgba(15, 91, 120, 0.04);
}

.seo-anchor-menu a:hover,
.seo-related-links a:hover {
  color: var(--accent);
}

.seo-related-card {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 91, 120, 0.07);
}

.seo-related-card .section-header {
  margin-bottom: 18px;
}

.seo-related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.seo-related-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--dark);
  background: rgba(8, 166, 166, 0.04);
}

.seo-related-links a::after {
  content: '→';
  color: var(--primary);
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .seo-anchor-menu {
    align-items: flex-start;
  }

  .seo-anchor-menu ul,
  .seo-anchor-menu a {
    width: 100%;
  }
}

/* =========================================== */
/* Site search: desktop header and mobile menu */
/* =========================================== */
.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;
}

.site-search-trigger {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  border: 1px solid rgba(15, 91, 120, 0.22);
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 91, 120, 0.1);
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.site-search-trigger svg,
.mobile-site-search__field svg,
.site-search-dialog__field svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-search-trigger:hover,
.site-search-trigger:focus-visible,
.site-search-trigger[aria-expanded="true"] {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 91, 120, 0.2);
  outline: none;
}

.mobile-site-search {
  margin: 0 0 1.5rem;
}

.mobile-site-search__form,
.site-search-dialog__form {
  margin: 0;
}

.mobile-site-search__field,
.site-search-dialog__field {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--primary);
}

.mobile-site-search__field svg,
.site-search-dialog__field svg {
  position: absolute;
  left: 16px;
  z-index: 1;
  pointer-events: none;
}

.mobile-site-search__field input,
.site-search-dialog__field input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--dark);
  font: inherit;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.mobile-site-search__field input {
  min-height: 50px;
  padding: 0.75rem 0.9rem 0.75rem 3rem;
  border-radius: 14px;
  font-size: 0.95rem;
}

.mobile-site-search__field input:focus,
.site-search-dialog__field input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(8, 166, 166, 0.13);
}

.site-search-status {
  min-height: 1.35em;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.mobile-site-search__results {
  max-height: 42vh;
  margin-top: 0.65rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 91, 120, 0.12);
}

.site-search-dialog {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: start center;
  padding: clamp(88px, 11vh, 130px) 20px 30px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.site-search-dialog.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-search-dialog__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(4, 22, 34, 0.72);
  backdrop-filter: blur(5px);
  cursor: default;
}

.site-search-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(720px, calc(100vh - 110px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid rgba(15, 91, 120, 0.14);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.22s ease;
}

.site-search-dialog.is-open .site-search-dialog__panel {
  transform: translateY(0) scale(1);
}

.site-search-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #ffffff;
  color: var(--dark);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.site-search-dialog__close:hover,
.site-search-dialog__close:focus-visible {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: rotate(4deg);
  outline: none;
}

.site-search-dialog__panel > .eyebrow {
  margin-bottom: 0.45rem;
}

.site-search-dialog__panel h2 {
  margin: 0;
  padding-right: 44px;
  color: var(--dark);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.site-search-dialog__intro {
  margin: 0.7rem 0 1.35rem;
  max-width: 620px;
}

.site-search-dialog__field input {
  min-height: 58px;
  padding: 0.9rem 1rem 0.9rem 3.25rem;
  border-radius: 16px;
  font-size: 1rem;
}

.site-search-dialog__results {
  max-height: min(390px, 48vh);
  margin-top: 0.7rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.site-search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e7eef4;
  background: #ffffff;
  color: var(--dark);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-search-result:last-child {
  border-bottom: 0;
}

.site-search-result:hover,
.site-search-result:focus-visible {
  background: #f0faf9;
  transform: translateX(2px);
  outline: none;
}

.site-search-result__copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.site-search-result__type {
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-search-result__title {
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.3;
}

.site-search-result__excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.site-search-result__arrow {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 800;
}

.site-search-empty {
  padding: 1rem;
  color: var(--muted);
  text-align: center;
}

body.site-search-open {
  overflow: hidden;
}

@media (max-width: 992px) {
  .site-search-trigger {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-search-result {
    padding: 0.8rem 0.85rem;
  }

  .site-search-result__excerpt {
    -webkit-line-clamp: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-booking-trigger,
  .mobile-booking-dialog__backdrop,
  .mobile-booking-dialog__panel,
  .site-search-trigger,
  .site-search-dialog,
  .site-search-dialog__panel,
  .site-search-result {
    transition: none;
  }
}

/* Individual services, blog articles and thematic pages are styled in assets/css/detail-pages.css. */


/* Shared public-form protection and consent controls */
.form-honeypot {
  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;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.form-consent input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
}

.form-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

form[aria-busy="true"] [type="submit"],
form .btn:disabled,
form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* ============================================================================
   KPHYSIO PREMIUM HOME HEADER — 2026-07
   Scoped to the home page only. Keeps the existing sticky header appearance
   after scroll while letting the header sit cleanly over the hero at the top.
============================================================================ */
.page-home {
  padding-top: 0;
}

.page-home .navbar {
  transition:
    background-color .28s ease,
    box-shadow .28s ease,
    border-color .28s ease,
    padding .28s ease;
}

.page-home .navbar:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(4, 22, 34, .58) 0%, rgba(4, 22, 34, .18) 62%, rgba(4, 22, 34, 0) 100%);
  box-shadow: none;
  border-bottom-color: transparent;
}

/* At the very top use a crisp text wordmark instead of scaling the raster logo. */
.page-home .navbar:not(.is-scrolled) .logo-img,
.page-home .navbar:not(.is-scrolled) .logo-text {
  display: none !important;
}

.page-home .navbar:not(.is-scrolled) .logo::after {
  content: "kphysio";
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 4px;
  color: #fff;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: lowercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .24);
}

.page-home .navbar:not(.is-scrolled) .nav-links a {
  color: rgba(255, 255, 255, .88);
}

.page-home .navbar:not(.is-scrolled) .nav-links a:hover,
.page-home .navbar:not(.is-scrolled) .nav-links a:focus-visible,
.page-home .navbar:not(.is-scrolled) .nav-links a.is-active {
  color: #fff;
}

.page-home .navbar:not(.is-scrolled) .nav-links a.is-active {
  text-shadow: 0 1px 16px rgba(0, 0, 0, .22);
}

.page-home .navbar:not(.is-scrolled) .site-search-trigger,
.page-home .navbar:not(.is-scrolled) .btn-outline {
  border-color: rgba(255, 255, 255, .64);
  background: rgba(6, 28, 42, .16);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-home .navbar:not(.is-scrolled) .site-search-trigger:hover,
.page-home .navbar:not(.is-scrolled) .site-search-trigger:focus-visible,
.page-home .navbar:not(.is-scrolled) .btn-outline:hover,
.page-home .navbar:not(.is-scrolled) .btn-outline:focus-visible {
  border-color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

/* Preserve the existing high-attention appointment CTA in both header states. */
.page-home .navbar .nav-actions > .btn.btn-primary {
  box-shadow: 0 10px 28px rgba(8, 166, 166, .22);
}

@media (max-width: 992px) {
  /* Stable mobile order in both states: menu | brand | calendar. */
  .page-home .navbar {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .page-home .hamburger {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
  }

  .page-home .navbar .logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
  }

  .page-home .mobile-booking-trigger {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  .page-home .navbar:not(.is-scrolled) {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .page-home .navbar:not(.is-scrolled) .hamburger,
  .page-home .navbar:not(.is-scrolled) .mobile-booking-trigger {
    border-color: rgba(255, 255, 255, .52);
    background: rgba(7, 26, 39, .18);
    color: #fff;
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .page-home .navbar:not(.is-scrolled) .hamburger span {
    background-color: #fff;
  }

  .page-home .navbar:not(.is-scrolled) .mobile-booking-trigger svg {
    stroke: currentColor;
  }

  .page-home .navbar:not(.is-scrolled) .logo::after {
    min-height: 38px;
    font-size: clamp(1.35rem, 7vw, 1.8rem);
    letter-spacing: .14em;
  }
}

/* ============================================================================
   KPHYSIO SITE-WIDE PREMIUM LAYER — 2026-07-20
   Goals:
   - preserve existing content, imagery, routes and functionality;
   - keep the homepage carousel intact;
   - use a dark premium top header with white controls on internal pages;
   - return to the established white sticky header after scroll;
   - keep mobile header stable: menu | brand | calendar;
   - improve hierarchy without adding heavy assets or third-party fonts.
============================================================================ */
:root {
  --kph-premium-ink: #082a40;
  --kph-premium-ink-2: #0b3f59;
  --kph-premium-teal: #0798a1;
  --kph-premium-teal-dark: #087684;
  --kph-premium-soft: #f4f8f9;
  --kph-premium-surface: #ffffff;
  --kph-premium-line: #d9e6e9;
  --kph-premium-muted: #58707d;
  --kph-premium-shadow: 0 18px 46px rgba(7, 43, 63, .075);
  --kph-premium-shadow-hover: 0 24px 58px rgba(7, 43, 63, .11);
}

/* Keep transitions cheap and predictable. */
.navbar {
  transition: background-color .24s ease, box-shadow .24s ease, border-color .24s ease, padding .24s ease;
}

/* Internal pages: premium dark header at the top, white sticky header after scroll. */
body:not(.page-home) .navbar:not(.is-scrolled) {
  background:
    radial-gradient(circle at 84% -90%, rgba(18, 176, 178, .32), transparent 48%),
    linear-gradient(112deg, #061c2b 0%, #082f48 52%, #0a4558 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 34px rgba(4, 25, 38, .15);
}

body:not(.page-home) .navbar:not(.is-scrolled) .logo-img,
body:not(.page-home) .navbar:not(.is-scrolled) .logo-text {
  display: none !important;
}

body:not(.page-home) .navbar:not(.is-scrolled) .logo::after {
  content: "kphysio";
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 4px;
  color: #fff;
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: lowercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .18);
}

body:not(.page-home) .navbar:not(.is-scrolled) .nav-links a {
  color: rgba(255, 255, 255, .88);
}

body:not(.page-home) .navbar:not(.is-scrolled) .nav-links a:hover,
body:not(.page-home) .navbar:not(.is-scrolled) .nav-links a:focus-visible,
body:not(.page-home) .navbar:not(.is-scrolled) .nav-links a.is-active {
  color: #fff;
}

body:not(.page-home) .navbar:not(.is-scrolled) .site-search-trigger,
body:not(.page-home) .navbar:not(.is-scrolled) .btn-outline {
  border-color: rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .045);
  color: #fff;
  box-shadow: none;
}

body:not(.page-home) .navbar:not(.is-scrolled) .site-search-trigger:hover,
body:not(.page-home) .navbar:not(.is-scrolled) .site-search-trigger:focus-visible,
body:not(.page-home) .navbar:not(.is-scrolled) .btn-outline:hover,
body:not(.page-home) .navbar:not(.is-scrolled) .btn-outline:focus-visible {
  border-color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

/* Keep booking as the strongest header action. */
.navbar .nav-actions > .btn.btn-primary {
  min-height: 50px;
  padding-inline: 1.55rem;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, #078b99 0%, #0aa7aa 100%);
  box-shadow: 0 12px 26px rgba(8, 150, 158, .22);
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, .985);
  border-bottom: 1px solid rgba(8, 47, 73, .08);
  box-shadow: 0 12px 32px rgba(8, 47, 73, .08);
}

body:not(.page-home) .navbar.is-scrolled .logo::after {
  display: none;
}

/* Stable header ordering on every mobile page. */
@media (max-width: 992px) {
  .navbar {
    grid-template-columns: 48px minmax(0, 1fr) 48px !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
  }

  .hamburger {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    align-self: center !important;
  }

  .navbar .logo {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    align-self: center !important;
  }

  .mobile-booking-trigger {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
  }

  body:not(.page-home) .navbar:not(.is-scrolled) .hamburger,
  body:not(.page-home) .navbar:not(.is-scrolled) .mobile-booking-trigger {
    border-color: rgba(255, 255, 255, .46);
    background: rgba(255, 255, 255, .055);
    color: #fff;
    box-shadow: none;
  }

  body:not(.page-home) .navbar:not(.is-scrolled) .hamburger span {
    background: #fff;
  }

  body:not(.page-home) .navbar:not(.is-scrolled) .logo::after {
    min-height: 38px;
    font-size: clamp(1.35rem, 7vw, 1.8rem);
    letter-spacing: .14em;
  }
}

/* Global internal-page rhythm. Do not alter home or dedicated detail-page geometry. */
body:not(.page-home):not(.page-appointment) {
  background: #f7fafb;
}

body:not(.page-home):not(.page-appointment) main:not(.kpd-page) {
  background: #f7fafb;
}

body:not(.page-home):not(.page-appointment) main:not(.kpd-page) > .section {
  padding-top: clamp(64px, 7vw, 96px);
  padding-bottom: clamp(64px, 7vw, 96px);
}

body:not(.page-home):not(.page-appointment) main:not(.kpd-page) > .section + .section {
  padding-top: clamp(56px, 6vw, 84px);
}

.section-header h1,
.section-header h2,
.page-hero h1 {
  letter-spacing: -.035em;
  text-wrap: balance;
}

.section-header > p:last-child {
  max-width: 760px;
  line-height: 1.72;
}

/* Branded heroes for Services, Blog and Contact. */
.page-hero--branded {
  max-width: 1240px;
  margin-top: clamp(24px, 3.5vw, 44px);
  padding: clamp(38px, 5vw, 72px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 12%, rgba(36, 203, 197, .18), transparent 30%),
    radial-gradient(circle at 8% 96%, rgba(8, 131, 151, .22), transparent 34%),
    linear-gradient(130deg, #061f31 0%, #083b55 58%, #0a5361 100%);
  box-shadow: 0 26px 64px rgba(6, 37, 53, .14);
}

.page-hero--branded::before {
  border-color: rgba(255, 255, 255, .1);
}

.page-hero--branded::after {
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -170px;
  border-width: 42px;
  border-color: rgba(255, 255, 255, .055);
}

.page-hero--branded .hero-copy {
  max-width: 860px;
}

.page-hero--branded h1 {
  max-width: 820px;
  font-size: clamp(2.45rem, 4.4vw, 4.7rem);
  font-weight: 760;
  line-height: 1.03;
}

.page-hero--branded p {
  max-width: 720px;
  color: rgba(243, 251, 253, .86);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.72;
}

.page-hero--branded .eyebrow {
  color: #83e3de;
}

.page-hero-badges {
  margin-top: 1.9rem;
  gap: .6rem;
}

.page-hero-badges span {
  padding: .62rem .9rem;
  border-color: rgba(255,255,255,.17);
  background: rgba(255,255,255,.075);
  font-weight: 700;
}

.page-hero-badges span::before {
  width: .4rem;
  height: .4rem;
  background: #62d8d2;
  box-shadow: none;
}

/* Generic page surfaces: quieter, more editorial. */
.card,
.panel,
.form,
.team-card {
  border: 1px solid var(--kph-premium-line);
  border-radius: 18px;
  box-shadow: var(--kph-premium-shadow);
}

.card:hover,
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--kph-premium-shadow-hover);
}

.panel,
.form {
  background: #fff;
}

.form input,
.form select,
.form textarea {
  min-height: 50px;
  border-radius: 12px;
  border-color: #cfdde2;
  background: #fff;
}

.form textarea {
  min-height: 130px;
}

/* Services listing. */
.page-services .services-showcase {
  background: #f5f8f9;
}

.page-services .services-methods {
  min-height: 0;
  margin-bottom: 30px !important;
}

.page-services .service-category-tabs {
  position: relative;
  z-index: 3;
  gap: 8px;
  margin-top: 1.6rem;
}

.page-services .service-category-tab {
  min-height: 44px;
  padding: .7rem 1rem;
  border-color: #d6e3e7;
  background: rgba(255,255,255,.9);
  font-weight: 720;
  box-shadow: none;
}

.page-services .service-category-tab:hover,
.page-services .service-category-tab.is-active {
  transform: none;
  border-color: #8ec9cd;
  background: #eaf7f6;
  color: #075f69;
  box-shadow: none;
}

.page-services .service-category-section {
  margin-top: clamp(42px, 5vw, 70px);
}

.page-services .service-category-heading {
  margin-bottom: 24px;
}

.page-services .services-grid {
  gap: 24px;
}

.page-services .service-card {
  border: 1px solid var(--kph-premium-line);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(7, 47, 70, .055);
}

.page-services .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(7, 47, 70, .09);
}

.page-services .service-card-image {
  height: clamp(220px, 24vw, 280px);
}

.page-services .service-card-content {
  padding: 24px;
  gap: .7rem;
}

.page-services .duration-badge,
.page-services .service-price {
  background: #f1f6f7;
  border: 1px solid #e2ebed;
}

.page-services .service-card-button {
  border-radius: 12px;
  background: #083f59;
  box-shadow: none;
}

.page-services .service-card-button:hover {
  background: #075f69;
  box-shadow: 0 10px 22px rgba(7, 95, 105, .16);
}

/* Blog listing. */
.page-insights main:not(.kpd-page) > .section:not(.page-hero) {
  background: #f7fafb;
}

.page-insights .card-grid--articles {
  gap: 26px;
}

.page-insights .card-grid--articles .card {
  padding: 0;
  overflow: hidden;
  gap: 0;
  border: 1px solid var(--kph-premium-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(7,47,70,.055);
}

.page-insights .card-grid--articles .image-slot {
  height: 220px;
  border-radius: 0;
}

.page-insights .card-grid--articles .article-card-title,
.page-insights .card-grid--articles .article-card-excerpt,
.page-insights .card-grid--articles .article-excerpt-toggle,
.page-insights .card-grid--articles .article-card-link,
.page-insights .card-grid--articles .btn-primary {
  margin-left: 22px;
  margin-right: 22px;
}

.page-insights .card-grid--articles .article-card-title {
  margin-top: 20px;
  font-size: 1.22rem;
  line-height: 1.32;
}

.page-insights .card-grid--articles .article-card-excerpt {
  margin-top: 8px;
  color: var(--kph-premium-muted);
  line-height: 1.65;
}

.page-insights .card-grid--articles .article-card-link,
.page-insights .card-grid--articles .btn-primary {
  margin-top: 18px;
  margin-bottom: 22px;
  align-self: flex-start;
}

/* Contact. */
.page-contact .section--split .split {
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 30px;
  align-items: start;
}

.page-contact .form,
.page-contact .panel {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 20px;
}

.page-contact .panel {
  background: #082f49;
  color: #fff;
}

.page-contact .panel h2,
.page-contact .panel h3,
.page-contact .panel h4,
.page-contact .panel a {
  color: #fff;
}

.page-contact .panel p,
.page-contact .panel li,
.page-contact .panel .contact-meta {
  color: rgba(255,255,255,.78);
}

.page-contact .map-embed {
  overflow: hidden;
  border-radius: 16px;
}

/* About: make the current dark zig-zag calmer and more photographic. */
.page-about .section--dark-combo {
  background:
    radial-gradient(circle at 88% 12%, rgba(10, 163, 164, .16), transparent 28%),
    linear-gradient(135deg, #061f31 0%, #083b55 56%, #0a4f5c 100%);
}

.page-about .section--dark-combo .section.is-nested {
  padding-top: clamp(70px, 8vw, 108px);
  padding-bottom: clamp(70px, 8vw, 108px);
}

.page-about .zigzag-grid {
  gap: clamp(34px, 6vw, 76px);
}

.page-about .zigzag-item {
  gap: clamp(28px, 5vw, 64px);
}

.page-about .zigzag-content {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-about .zigzag-content h3 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 720;
}

.page-about .zigzag-content p {
  color: rgba(255,255,255,.78);
  line-height: 1.75;
}

.page-about .zigzag-image {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.16);
}

/* Reviews: override the embedded legacy orange/Google-like styling with brand styling. */
.page-reviews main > .section:first-of-type {
  padding-bottom: 28px !important;
}

.page-reviews .reviews-container {
  gap: 30px !important;
}

.page-reviews .review-form-section {
  padding: clamp(24px, 3vw, 34px) !important;
  border: 1px solid var(--kph-premium-line) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: var(--kph-premium-shadow) !important;
}

.page-reviews .form-input {
  min-height: 50px !important;
  border: 1px solid #cfdde2 !important;
  border-radius: 12px !important;
  background: #fff !important;
}

.page-reviews .form-input:focus {
  border-color: var(--kph-premium-teal) !important;
  box-shadow: 0 0 0 4px rgba(7,152,161,.1) !important;
}

.page-reviews .btn-submit {
  min-height: 52px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #083f59, #0798a1) !important;
  box-shadow: 0 12px 26px rgba(7,152,161,.18) !important;
}

.page-reviews .review-card {
  border: 1px solid var(--kph-premium-line) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: 0 8px 24px rgba(7,47,70,.045) !important;
}

.page-reviews .review-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 34px rgba(7,47,70,.075) !important;
}

.page-reviews .reviews-count {
  background: #e9f7f6 !important;
  color: #075f69 !important;
}

.page-reviews .rating-label {
  min-width: 34px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
}

/* Price page. */
.page-price .pricing-switch {
  width: fit-content;
  max-width: 100%;
  margin: 30px auto 24px;
  padding: 6px;
  border: 1px solid var(--kph-premium-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7,47,70,.055);
}

.page-price .pricing-switch button {
  min-height: 42px;
  border-radius: 999px;
}

.page-price .pricing-table {
  width: min(980px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--kph-premium-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--kph-premium-shadow);
}

/* CTA sections: one strong premium dark surface, not a heavy gradient everywhere. */
.section--cta {
  background: #061f31;
}

.section--cta .cta-box {
  width: min(1180px, 100%);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(8,63,89,.82), rgba(7,95,105,.72));
}

/* Footer: quieter premium finish. */
footer,
.footer {
  background: #061c2b;
}

.footer-top {
  border-top-color: rgba(255,255,255,.08);
}

.footer-social a {
  box-shadow: none;
}

/* Embedded custom Team page: reduce card heaviness without changing content. */
.page-ekip .kpe-team {
  width: min(1180px, calc(100% - 32px)) !important;
  padding-top: 34px !important;
  padding-bottom: 76px !important;
}

.page-ekip .kpe-hero {
  border-radius: 26px !important;
  border-color: var(--kph-premium-line) !important;
  background: linear-gradient(135deg, #ffffff 0%, #f5fafb 100%) !important;
  box-shadow: var(--kph-premium-shadow) !important;
}

.page-ekip .kpe-hero h2,
.page-ekip .kpe-section-head h2 {
  font-weight: 760 !important;
}

.page-ekip .kpe-trust-item,
.page-ekip .kpe-scan-card {
  border-radius: 18px !important;
  box-shadow: 0 10px 28px rgba(7,47,70,.055) !important;
}

/* Embedded custom Portfolio/Clinical cases page: keep structure, refine visual weight. */
.page-portfolio .kp-portfolio {
  --kp-bg: #f6f9fa !important;
  --kp-shadow: 0 16px 42px rgba(7,59,104,.07) !important;
  background: #f6f9fa !important;
}

.page-portfolio .kp-topbar {
  display: none !important;
}

.page-portfolio .kp-hero {
  padding-top: 68px !important;
  background: linear-gradient(180deg, #f2f7f8 0%, #ffffff 60%, #f6f9fa 100%) !important;
}

.page-portfolio .kp-hero h1,
.page-portfolio .kp-section-head h2 {
  font-weight: 760 !important;
}

.page-portfolio .kp-contact-card,
.page-portfolio .kp-process-card,
.page-portfolio .kp-case,
.page-portfolio .kp-summary-box,
.page-portfolio .kp-final-contact {
  border-radius: 18px !important;
  box-shadow: 0 10px 28px rgba(7,59,104,.055) !important;
}

/* Minimum interactive sizes and visible keyboard focus. */
:where(.btn, .btn-outline, .service-category-tab, .service-card-button, .site-search-trigger, .hamburger, .mobile-booking-trigger) {
  min-height: 44px;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(7, 152, 161, .32);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .page-hero--branded {
    margin: 18px 12px 0;
    padding: 30px 22px;
    border-radius: 22px;
  }

  .page-hero--branded h1 {
    font-size: clamp(2.05rem, 10vw, 3.1rem);
  }

  .page-hero-badges span {
    width: auto;
    min-height: 40px;
  }

  body:not(.page-home):not(.page-appointment) main:not(.kpd-page) > .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .page-services .service-card-image {
    height: 220px;
  }

  .page-insights .card-grid--articles .image-slot {
    height: 200px;
    min-height: 200px;
  }

  .page-contact .section--split .split {
    gap: 20px;
  }

  .page-ekip .kpe-team {
    width: calc(100% - 20px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar,
  .card,
  .service-card,
  .team-card,
  .review-card {
    transition: none !important;
  }
}

/* ============================================================================
   KPHYSIO PREMIUM REFINEMENT — 2026-07-20
   Purpose:
   - keep the white-on-dark header treatment at the top of internal pages;
   - return to the established light sticky header after scroll;
   - replace raster branding with a crisp text wordmark only in the top state;
   - simplify oversized branded hero cards into quieter editorial mastheads;
   - reduce expensive blur effects on mobile without changing functionality.
============================================================================ */

/* Explicit wordmark is preferable to generated pseudo-element content. */
.navbar .logo-wordmark {
  display: none;
  width: 140px;
  height: 46px;
  min-width: 140px;
  min-height: 46px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  box-shadow: none;
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
  text-transform: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-home .navbar:not(.is-scrolled) .logo::after,
body:not(.page-home) .navbar:not(.is-scrolled) .logo::after {
  content: none !important;
  display: none !important;
}

.page-home .navbar:not(.is-scrolled) .logo-wordmark,
body:not(.page-home) .navbar:not(.is-scrolled) .logo-wordmark {
  display: inline-flex;
}

.navbar.is-scrolled .logo-img,
.navbar.is-scrolled .logo-text {
  display: none !important;
}

.navbar.is-scrolled .logo-wordmark {
  display: inline-flex !important;
  width: 140px;
  height: 46px;
  min-width: 140px;
  min-height: 46px;
  padding: 0 12px;

  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;

  align-items: center;
  justify-content: center;

  color: #075278;
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;

  box-sizing: border-box;
}

/* Internal top-state header: restrained dark surface, no oversized visual effects. */
body:not(.page-home) .navbar:not(.is-scrolled) {
  background: linear-gradient(108deg, #061d2c 0%, #082f46 56%, #0a4451 100%);
  border-bottom: 1px solid rgba(255,255,255,.09);
  box-shadow: none;
}

body:not(.page-home) .navbar:not(.is-scrolled) .nav-links a {
  color: rgba(255,255,255,.9);
}

body:not(.page-home) .navbar:not(.is-scrolled) .nav-links a.is-active,
body:not(.page-home) .navbar:not(.is-scrolled) .nav-links a:hover,
body:not(.page-home) .navbar:not(.is-scrolled) .nav-links a:focus-visible {
  color: #fff;
}

/* Branded internal heroes: keep the message, remove the oversized dark "card" look. */
.page-hero--branded {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(56px, 6vw, 88px) 5vw clamp(52px, 5.5vw, 80px);
  border: 0;
  border-bottom: 1px solid #dce8eb;
  border-radius: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(7,152,161,.08), transparent 28rem),
    linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%);
  color: var(--kph-premium-ink);
  box-shadow: none;
  overflow: hidden;
}

.page-hero--branded::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(7,152,161,.05), transparent 32%);
  pointer-events: none;
}

.page-hero--branded::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: max(4vw, 24px);
  bottom: -150px;
  border: 1px solid rgba(7,152,161,.12);
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
}

.page-hero--branded .hero-copy {
  width: min(1180px, 100%);
  max-width: 1180px;
  margin: 0 auto;
  padding-right: 0;
}

.page-hero--branded .eyebrow {
  color: #087f86;
}

.page-hero--branded h1 {
  max-width: 900px;
  color: #082f49;
  font-size: clamp(2.35rem, 4.4vw, 4.35rem);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -.04em;
}

.page-hero--branded p {
  max-width: 760px;
  color: #526d7b;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.72;
}

.page-hero--branded .hero-cta {
  margin-top: 1.65rem;
}

.page-hero--branded .btn-primary {
  background: linear-gradient(135deg, #078b99 0%, #0aa7aa 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(8,150,158,.17);
}

.page-hero--branded .btn-secondary {
  border: 1px solid #b9d0d7;
  background: #fff;
  color: #0a455b;
  box-shadow: none;
}

.page-hero--branded .btn-secondary:hover,
.page-hero--branded .btn-secondary:focus-visible {
  border-color: #88b7bf;
  background: #f2f9f9;
  color: #075f69;
}

/* Contact already contains the actionable form and information directly below. */
.page-contact .page-hero--contact {
  padding-top: clamp(48px, 5vw, 70px);
  padding-bottom: clamp(44px, 4.5vw, 64px);
}

.page-contact .page-hero--contact h1 {
  max-width: 820px;
}

/* One conversion CTA is valuable; keep it visually strong but compact. */
.section--cta {
  background: #f7fafb;
}

.section--cta .cta-box {
  padding: clamp(28px, 4vw, 44px);
  border-radius: 20px;
  background: linear-gradient(118deg, #07283d 0%, #084b5b 100%);
  box-shadow: 0 16px 38px rgba(6,38,55,.11);
}

/* Reduce paint cost from blur on the smallest devices. */
@media (max-width: 768px) {
  .page-home .navbar:not(.is-scrolled) .site-search-trigger,
  .page-home .navbar:not(.is-scrolled) .btn-outline,
  .page-home .navbar:not(.is-scrolled) .hamburger,
  .page-home .navbar:not(.is-scrolled) .mobile-booking-trigger,
  .page-home .hero-google-rating {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .page-hero--branded {
    margin: 0;
    padding: 44px 22px 46px;
    border-radius: 0;
  }

  .page-hero--branded h1 {
    font-size: clamp(2rem, 9.5vw, 3rem);
    line-height: 1.08;
  }

  .page-hero--branded::after {
    width: 160px;
    height: 160px;
    right: -50px;
    bottom: -105px;
  }

  .navbar .logo-wordmark,
  .page-home .navbar:not(.is-scrolled) .logo-wordmark,
  body:not(.page-home) .navbar:not(.is-scrolled) .logo-wordmark {
    width: 126px;
    height: 40px;
    min-width: 126px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 11px;
    font-size: 1.48rem;
    letter-spacing: -.03em;
    box-sizing: border-box;
  }

  .navbar.is-scrolled .logo-wordmark {
  width: 126px;
  height: 40px;
  min-width: 126px;
  min-height: 40px;
  padding: 0 10px;

  background: transparent;
  border: none;
  box-shadow: none;

  color: #075278;
  font-size: 1.48rem;
  letter-spacing: -.03em;
}
}


/* ============================================================================
   KPHYSIO MOBILE PERFORMANCE LAYER — 2026-07-22
   Reduces fixed-layer repainting and scroll-time JavaScript work without
   changing the approved visual hierarchy.
============================================================================ */

.header-state-marker {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.header-state-marker {
  top: 24px;
}


body.menu-open,
body.mobile-booking-open,
body.site-search-open {
  overflow: hidden;
}

:where(a, button, input, select, textarea) {
  touch-action: manipulation;
}

@media (max-width: 768px) {
  /* The mobile header changes state once near the top. An animated padding,
     shadow and background transition made that state change unnecessarily
     expensive on lower-end phones. */
  .navbar,
  .page-home .navbar {
    transition: none !important;
    contain: paint;
  }

  /* A permanent pulse keeps a compositor layer active for the entire visit.
     The call button remains fixed and visually prominent without animation. */
  .floating-call-btn {
    transition: none !important;
    box-shadow: 0 3px 9px rgba(0, 0, 0, .22);
    contain: paint;
  }

  .floating-call-btn::before {
    display: none !important;
    animation: none !important;
  }

  .floating-call-btn:hover,
  .floating-call-btn:focus-visible {
    transform: none;
    box-shadow: 0 3px 9px rgba(0, 0, 0, .22);
  }

  .overlay {
    transition: opacity .18s ease, visibility .18s ease;
  }

  .mobile-menu {
    transition-duration: .18s;
  }

  .mobile-booking-dialog__backdrop,
  .site-search-dialog__backdrop {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .mobile-booking-dialog__panel {
    transition-duration: .2s;
  }
}

@media (hover: none), (pointer: coarse) {
  .hamburger:hover,
  .mobile-booking-trigger:hover,
  .mobile-nav-links a:hover,
  .site-search-result:hover {
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .kphysio-home-rehab__panel {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}
