/* Green theme */
:root {
  --color-primary: #2d6a4f;
  --color-primary-dark: #1b4332;
  --color-primary-mid: #40916c;
  --color-secondary: #d8f3dc;
  --color-secondary-bright: #b7e4c7;
  --color-panel-deep: #0f2818;
  --color-text: #1e293b;
  --color-muted: #64748b;
  --color-bg: #f8fbf9;
  --color-white: #fff;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  /* Sans at 700 reads clearly bold on screen; serif headings often look too light */
  --font-heading: "Source Sans 3", system-ui, sans-serif;
  /* Footer: accent for underlines & list markers (reference-style mobile footer) */
  --footer-accent: #e8943a;
  --header-h: 72px;
  --topbar-h: 40px;
  /* Fallback before JS measures `.site-header`; overwritten in main.js */
  --anchor-offset: calc(var(--topbar-h) + var(--header-h) + 12px);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --container: min(1180px, 92vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--color-primary);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Top bar */
.top-bar {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.875rem;
  min-height: var(--topbar-h);
}

.top-bar a {
  color: inherit;
  text-decoration: none;
}

.top-bar a:hover {
  text-decoration: underline;
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--topbar-h);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar__contact {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  line-height: 1.35;
}

.top-bar__group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar__group--phones .top-bar__phone-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
}

.top-bar__ico {
  flex-shrink: 0;
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.95;
  margin-top: 0.05rem;
}

.top-bar__sep {
  opacity: 0.85;
  user-select: none;
}

.top-bar__social {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .top-bar {
    min-height: 0;
  }

  .top-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.6rem;
    min-height: 0;
    padding-block: 0.55rem 0.65rem;
  }

  .top-bar__contact {
    font-size: 0.8125rem;
  }

  /* Beat later `.social-icons { display: inline-flex }` (same element has both classes) */
  .top-bar__social.social-icons {
    display: none;
  }
}

.social-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.social-icon {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.2s, transform 0.2s;
}

.social-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.social-icon:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: var(--shadow);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand img {
  max-height: 52px;
  width: auto;
  height: auto;
  display: block;
}

.brand--text {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand--text:hover {
  color: var(--color-primary-dark);
}

/* Nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--color-primary);
  margin-inline: auto;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.mobile-nav-head {
  display: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.25rem;
  justify-content: flex-end;
}

.nav-list > li > a,
.submenu-trigger,
.nav-parent {
  display: block;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
}

.nav-parent-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

.submenu-trigger {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 4px;
  flex-shrink: 0;
  font-size: 0.65rem;
  line-height: 1;
  color: var(--color-primary);
}

.submenu-trigger::after {
  content: "▼";
  font-size: 0.55rem;
}

.nav-list > li > a:hover,
.submenu-trigger:hover,
.nav-parent:hover {
  background: rgba(45, 106, 79, 0.1);
  color: var(--color-primary);
}

@media (min-width: 961px) {
  .submenu-trigger {
    display: none;
  }

  .nav-parent {
    padding-right: 0.35rem;
  }
}

.has-submenu {
  position: relative;
}

.submenu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 50;
}

.submenu--cols {
  min-width: 280px;
  max-height: 70vh;
  overflow-y: auto;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.is-open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text);
  text-decoration: none;
}

.submenu a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0f2818;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video--mobile {
  display: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 40, 28, 0.88) 0%,
    rgba(15, 40, 28, 0.4) 45%,
    rgba(15, 40, 28, 0.22) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 4rem;
  padding-top: 2rem;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  opacity: 0.9;
  margin: 0 0 0.5rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1.18;
  max-width: 20ch;
  margin: 0 0 0.75rem;
  color: var(--color-white);
}

.hero__lead {
  max-width: 36rem;
  font-size: 1.125rem;
  margin: 0 0 1.5rem;
  opacity: 0.95;
}

@media (max-width: 767px) {
  /* .hero__eyebrow, */
  .hero__lead {
    display: none;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero__slide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  cursor: pointer;
  transition: background 0.2s;
}

.hero__slide:hover {
  background: rgba(255, 255, 255, 0.35);
}

.hero__slide--prev {
  left: 1rem;
}

.hero__slide--prev::after {
  content: "‹";
  font-size: 1.5rem;
  line-height: 1;
}

.hero__slide--next {
  right: 1rem;
}

.hero__slide--next::after {
  content: "›";
  font-size: 1.5rem;
  line-height: 1;
}

.hero__dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.hero__dot[aria-selected="true"] {
  background: var(--color-white);
  border-color: var(--color-white);
}

.hero__controls {
  /* Fluid sizing: vmin tracks the smaller viewport axis (good for phones + desktops). */
  --hero-ctrl-hit: clamp(1.65rem, 4.5vmin, 2.45rem);
  --hero-ctrl-icon: clamp(0.58rem, 2vmin, 0.95rem);
  --hero-ctrl-gap: clamp(0.05rem, 0.4vmin, 0.2rem);
  --hero-ctrl-pad-y: clamp(0.1rem, 0.55vmin, 0.38rem);
  --hero-ctrl-pad-x: clamp(0.22rem, 1vmin, 0.5rem);
  --hero-ctrl-edge: clamp(0.5rem, 1.25vh + 0.5vw, 1.35rem);
  --hero-ctrl-blur: clamp(4px, 0.85vmin, 10px);

  position: absolute;
  right: var(--hero-ctrl-edge);
  bottom: var(--hero-ctrl-edge);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--hero-ctrl-gap);
  padding: var(--hero-ctrl-pad-y) var(--hero-ctrl-pad-x);
  background: rgba(20, 24, 28, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 clamp(2px, 0.5vmin, 6px) clamp(8px, 1.5vmin, 14px) rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(var(--hero-ctrl-blur));
  backdrop-filter: blur(var(--hero-ctrl-blur));
}

.hero__control {
  width: var(--hero-ctrl-hit);
  height: var(--hero-ctrl-hit);
  min-width: var(--hero-ctrl-hit);
  min-height: var(--hero-ctrl-hit);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  transition: background 0.2s, transform 0.12s;
}

.hero__control:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero__control:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.hero__control:active {
  transform: scale(0.96);
}

.hero__mute-svg,
.hero__playback-svg {
  display: block;
  width: var(--hero-ctrl-icon);
  height: var(--hero-ctrl-icon);
  pointer-events: none;
}

.hero__mute-svg--unmuted {
  display: none;
}

.hero__control--mute.is-unmuted .hero__mute-svg--muted {
  display: none;
}

.hero__control--mute.is-unmuted .hero__mute-svg--unmuted {
  display: block;
}

.hero__playback-svg--pause {
  display: none;
}

.hero__control--playback.is-playing .hero__playback-svg--play {
  display: none;
}

.hero__control--playback.is-playing .hero__playback-svg--pause {
  display: block;
}

/* Conditions ticker (below hero): marquee of “What we treat” — pills open enquiry with condition */
.conditions-ticker {
  background: var(--color-secondary);
  border-bottom: 1px solid rgba(45, 106, 79, 0.12);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-white) 55%, var(--color-secondary-bright)) 0%,
    var(--color-secondary) 100%
  );
  border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 16%, transparent);
}

.conditions-ticker__viewport {
  overflow: hidden;
  max-width: 100%;
}

.conditions-ticker__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  animation: conditions-ticker-scroll 55s linear infinite;
}

.conditions-ticker:hover .conditions-ticker__track {
  animation-play-state: paused;
}

@keyframes conditions-ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.conditions-ticker__list {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.65rem 0.75rem;
  list-style: none;
}

.conditions-ticker__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: min(92vw, 22rem);
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(45, 106, 79, 0.12);
  border: 1px solid color-mix(in srgb, var(--color-primary) 12%, transparent);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-text);
  font-family: inherit;
  font-size: clamp(0.8125rem, 1.35vw, 0.9rem);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
}

.conditions-ticker__pill:hover {
  border-color: color-mix(in srgb, var(--color-primary) 28%, transparent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--color-primary) 14%, transparent);
  transform: translateY(-1px);
}

.conditions-ticker__pill:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.conditions-ticker__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.conditions-ticker__ext {
  flex-shrink: 0;
  color: var(--color-primary);
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .conditions-ticker__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }

  .conditions-ticker__list--clone {
    display: none;
  }
}

/* Sections — vertical padding: tighter on tablet/desktop; mobile uses max-width rule below */
.section {
  padding: clamp(1.65rem, 2.75vw, 2.75rem) 0;
}

.section--alt {
  background: var(--color-white);
}

.section__head {
  text-align: center;
  max-width: 100%;
  width: 100%;
  margin: 0 auto 1.5rem;
}

@media (max-width: 639px) {
  .section {
    padding: clamp(1.65rem, 5vw, 2.35rem) 0;
  }

  .section__head {
    margin-bottom: 1.2rem;
  }

  .hero {
    min-height: min(68vh, 600px);
  }

  .hero__content {
    padding-top: 1.35rem;
    padding-bottom: 2.5rem;
  }
}

.section__head h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 auto 0.5rem;
  max-width: 80%;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.25;
  color: var(--color-primary);
}

.section__sub {
  margin: 0 auto;
  max-width: 80%;
  width: 100%;
  box-sizing: border-box;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Tighten gap before CTA by reducing lower padding of What We Treat (desktop/tablet). */
@media (min-width: 640px) {
  #specialities {
    padding-bottom: clamp(0rem, 0vw, 0rem);
  }
}

/* CTA card — between What We Treat and How We Treat */
.section--cta-bridge {
  --cta-accent: #1d2d3d;
  --cta-surface: #f8faff;
  /* Reduce extra gap above CTA card */
  padding-top: clamp(0.25rem, 0.65vw, 0.55rem);
  padding-bottom: clamp(1.05rem, 2vw, 1.85rem);
}

.cta-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  text-align: left;
  padding: clamp(1.35rem, 3.5vmin, 2.35rem) clamp(1.35rem, 4vmin, 2.5rem);
  background: var(--cta-surface);
  border-radius: clamp(14px, 2.5vmin, 20px);
  border: 1px solid rgba(29, 45, 61, 0.08);
  border-left: 6px solid var(--cta-accent);
  box-shadow: 0 10px 36px rgba(29, 45, 61, 0.1);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.15rem;
}

.cta-card__copy {
  min-width: 0;
}

.cta-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--cta-accent);
  margin: 0 0 0.85rem;
}

.cta-card__text {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.6;
  color: var(--color-text);
}

.cta-card__text strong {
  font-weight: 700;
  color: var(--cta-accent);
}

.cta-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.45rem;
  font-family: inherit;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  font-weight: 700;
  color: var(--color-white);
  background: var(--cta-accent);
  border: 2px solid var(--cta-accent);
  border-radius: clamp(8px, 1.5vmin, 12px);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(29, 45, 61, 0.22);
}

.cta-card__btn:hover {
  background: #2a3f52;
  border-color: #2a3f52;
}

.cta-card__btn:focus-visible {
  outline: 2px solid var(--cta-accent);
  outline-offset: 3px;
}

.cta-card__btn:active {
  transform: scale(0.98);
}

@media (min-width: 768px) {
  .cta-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.25rem, 3vw, 2.75rem);
  }

  .cta-card__copy {
    flex: 1;
  }

  .cta-card__btn {
    flex-shrink: 0;
    align-self: center;
  }
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(45, 106, 79, 0.15);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.section--alt .card {
  background: var(--color-bg);
}

.card--border {
  border: 1px solid var(--color-secondary);
}

.card__icon {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card__title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.card__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Why Choose Us — compact cards, circular thumbs */
.why-choose-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .why-choose-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .why-choose-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.why-choose-card {
  text-align: center;
  padding: 1.25rem 0.85rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-white);
}

.why-choose-card .card__title {
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  line-height: 1.25;
}

.why-choose-card .card__text {
  font-size: 0.88rem;
  line-height: 1.5;
}

.why-choose-card__thumb {
  width: 92px;
  height: 92px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(45, 106, 79, 0.2);
  background: var(--color-secondary);
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.12);
  flex-shrink: 0;
}

.why-choose-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.28s ease;
}

.service-list {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 1.25rem;
}

.service-list li {
  margin-bottom: 0.75rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tags span {
  padding: 0.4rem 0.85rem;
  background: var(--color-secondary);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--color-text);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.split__media img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  max-height: 360px;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.doctor-card {
  text-align: center;
  padding: 1rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.doctor-card__photo {
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(45, 106, 79, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: var(--color-secondary);
}

.doctor-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.3s ease;
}

.doctor-card__name {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.doctor-card__role {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.doctor-card__bio {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  text-align: left;
  line-height: 1.5;
}

/* Gallery — Cover Flow: 5 visible (3 focused + 2 faded edges), autoplay (main.js) */
.gallery-carousel {
  --gallery-slot: clamp(190px, 32vw, 280px);
  --gallery-gap: 0.65rem;
  max-width: 1100px;
  margin-inline: auto;
}

.gallery-carousel__scene {
  position: relative;
  perspective: 1400px;
  perspective-origin: 50% 45%;
  padding: 0.75rem 0 1.25rem;
}

.gallery-carousel__viewport {
  overflow: hidden;
  width: 100%;
  min-height: 260px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(45, 106, 79, 0.12);
  background: linear-gradient(180deg, #f0f4f2 0%, #e8f0ec 100%);
}

.gallery-carousel__track {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--gallery-gap);
  margin: 0;
  padding: 1rem 0;
  list-style: none;
  width: max-content;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
}

.gallery-carousel__slide {
  position: relative;
  flex: 0 0 var(--gallery-slot);
  width: var(--gallery-slot);
  box-sizing: border-box;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.gallery-carousel__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.18);
  transition: transform 0.75s cubic-bezier(0.33, 1, 0.68, 1);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.gallery-carousel__figure img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* Three focused — same card size as original gallery grid */
.gallery-carousel__slide--focus .gallery-carousel__figure img {
  height: 240px;
}

.gallery-carousel__slide--focus-left .gallery-carousel__figure {
  transform: rotateY(14deg) translateZ(0);
  transform-origin: right center;
}

.gallery-carousel__slide--focus-center .gallery-carousel__figure {
  transform: rotateY(0deg) scale(1) translateZ(24px);
  transform-origin: center center;
  z-index: 2;
}

.gallery-carousel__slide--focus-right .gallery-carousel__figure {
  transform: rotateY(-14deg) translateZ(0);
  transform-origin: left center;
}

.gallery-carousel__slide--focus {
  opacity: 1;
  z-index: 3;
}

.gallery-carousel__slide--focus-center {
  z-index: 5;
}

/* Outer faded — smaller + dimmer */
.gallery-carousel__slide--edge .gallery-carousel__figure {
  transform: scale(0.82) rotateY(32deg);
  opacity: 0.92;
}

.gallery-carousel__slide--edge-left .gallery-carousel__figure {
  transform-origin: right center;
}

.gallery-carousel__slide--edge-right .gallery-carousel__figure {
  transform-origin: left center;
}

.gallery-carousel__slide--edge-left .gallery-carousel__figure img,
.gallery-carousel__slide--edge-right .gallery-carousel__figure img {
  height: 200px;
}

.gallery-carousel__slide--edge {
  opacity: 0.42;
  z-index: 1;
  filter: saturate(0.75);
}

/* Off-strip slots (infinite list) */
.gallery-carousel__slide--away {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.gallery-carousel__nav {
  position: absolute;
  z-index: 20;
  top: 50%;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary-dark);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(27, 67, 50, 0.15);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.gallery-carousel__nav--prev {
  left: 0.4rem;
  transform: translateY(-50%);
}

.gallery-carousel__nav--next {
  right: 0.4rem;
  transform: translateY(-50%);
}

.gallery-carousel__nav:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.2);
}

.gallery-carousel__nav:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.gallery-carousel__nav:active {
  transform: translateY(-50%) scale(0.94);
}

.gallery-carousel__dots-row {
  display: flex;
  justify-content: center;
  margin-top: 0.65rem;
}

.gallery-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.gallery-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid rgba(45, 106, 79, 0.35);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.gallery-carousel__dot[aria-selected="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.15);
}

.gallery-carousel__dot:hover {
  border-color: var(--color-primary-mid);
}

.gallery-carousel__dot:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .gallery-carousel {
    --gallery-slot: min(82vw, 340px);
    --gallery-gap: 0.35rem;
  }

  .gallery-carousel__scene {
    padding: 0.35rem 0 0.75rem;
  }

  .gallery-carousel__track {
    padding: 0.5rem 0;
  }

  /* Gallery photos are 960×540 (16:9) — match frame to ratio on small screens */
  .gallery-carousel__figure {
    aspect-ratio: 16 / 9;
  }

  .gallery-carousel__figure img,
  .gallery-carousel__slide--focus .gallery-carousel__figure img,
  .gallery-carousel__slide--edge-left .gallery-carousel__figure img,
  .gallery-carousel__slide--edge-right .gallery-carousel__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gallery-carousel__dots-row {
    margin-top: 0.45rem;
  }

  .gallery-carousel__viewport {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .gallery-carousel__nav {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1.05rem;
  }

  .gallery-carousel__nav--prev {
    left: 0.2rem;
  }

  .gallery-carousel__nav--next {
    right: 0.2rem;
  }
}

/* Testimonials — card carousel (reference-style) */
.section--testimonials {
  background: linear-gradient(180deg, #f0f3f6 0%, #e8ecf0 100%);
}

.testimonials__header {
  text-align: center;
  max-width: 100%;
  width: 100%;
  margin: 0 auto 1.5rem;
}

@media (max-width: 639px) {
  .testimonials__header {
    margin-bottom: 1.35rem;
  }
}

.testimonials__eyebrow {
  margin: 0 auto 0.5rem;
  max-width: 80%;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--footer-accent, #e8943a);
}

.testimonials__title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: #1a2f45;
  margin: 0 auto 0.5rem;
  max-width: 80%;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.2;
}

.testimonials__sub {
  margin: 0 auto;
  max-width: 80%;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.testimonials-carousel {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.testimonials-carousel__viewport {
  overflow: hidden;
  width: 100%;
  border-radius: 14px;
}

.testimonials-carousel__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 0;
  gap: 1rem;
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
}

.testimonial-card {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 1.35rem 1.35rem 1.15rem;
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(26, 47, 69, 0.1);
  border: 1px solid rgba(26, 47, 69, 0.06);
}

.testimonial-card__deco {
  position: absolute;
  top: 0.35rem;
  right: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(26, 47, 69, 0.07);
  pointer-events: none;
  user-select: none;
}

.testimonial-card__top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.testimonial-card__avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  background: linear-gradient(145deg, var(--color-primary-mid) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25);
}

.testimonial-card__meta {
  min-width: 0;
}

.testimonial-card__name {
  margin: 0 0 0.2rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2f45;
  line-height: 1.2;
}

.testimonial-card__stars {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.12em;
  color: #f4a261;
}

.testimonial-card__quote {
  margin: 0 0 1.1rem;
  padding: 0;
  border: none;
}

.testimonial-card__quote p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  font-style: italic;
  color: #3d4f63;
}

.testimonial-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1b5e20;
  background: rgba(216, 243, 220, 0.85);
  border: 1px solid rgba(45, 106, 79, 0.15);
}

.testimonial-card__badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
}

.testimonial-card__badge-icon svg {
  display: block;
}

.testimonials__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.testimonials__dot {
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(26, 47, 69, 0.18);
  cursor: pointer;
  transition: width 0.3s ease, background 0.25s ease, opacity 0.25s ease;
}

.testimonials__dot:not(.is-active) {
  width: 8px;
}

.testimonials__dot.is-active {
  width: 28px;
  background: var(--footer-accent, #e8943a);
}

.testimonials__dot:hover {
  opacity: 0.85;
}

.testimonials__dot:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.quote {
  margin: 0;
  padding: 1.5rem;
  background: var(--color-white);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.quote p {
  margin: 0 0 1rem;
  font-style: italic;
}

.quote footer {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.notice {
  padding: 1.25rem;
  background: rgba(45, 106, 79, 0.1);
  border-radius: var(--radius);
  border: 1px solid rgba(45, 106, 79, 0.25);
}

.narrow {
  max-width: 640px;
}

.narrow--center {
  margin: 2rem auto 0;
  text-align: center;
  max-width: 52rem;
}

.doctor-blurb {
  color: var(--color-muted);
}

/* PDF-aligned content blocks */
/* About: image + content card */
.about-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0;
  max-width: 1000px;
  margin-inline: auto;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(45, 106, 79, 0.12);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.about-card__media {
  position: relative;
  align-self: start;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-secondary);
}

.about-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

/* Desktop: image column matches full card height (text column often taller than 4:3 box) */
@media (min-width: 769px) {
  .about-card {
    align-items: stretch;
  }

  .about-card__media {
    align-self: stretch;
    aspect-ratio: unset;
    min-height: 0;
    height: 100%;
  }

  .about-card__media img {
    min-height: 100%;
  }
}

.about-card__content {
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.about-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--color-primary);
  margin: 0 0 1rem;
}

.about-card__content p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.about-card__content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .about-card {
    grid-template-columns: 1fr;
  }
}

.prose {
  max-width: 42rem;
  margin-inline: auto;
}

.prose h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--color-primary);
  margin: 0 0 1rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--color-text);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose--wide {
  max-width: 52rem;
}

.prose--wide h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-primary);
  margin: 2rem 0 0.75rem;
}

.prose--wide h3:first-of-type {
  margin-top: 0;
}

.prose--wide p {
  color: var(--color-muted);
}

.therapy-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 0.5rem;
}

.therapy-card {
  display: grid;
  grid-template-columns: minmax(170px, 40%) 1fr;
  align-items: stretch;
  min-height: 0;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(45, 106, 79, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

/* Therapy card images are 520×640 (13:16) — match box to source to avoid stray cropping */
.therapy-card__media {
  position: relative;
  align-self: start;
  width: 100%;
  aspect-ratio: 13 / 16;
  overflow: hidden;
  background: linear-gradient(145deg, var(--color-secondary) 0%, rgba(45, 106, 79, 0.12) 100%);
}

.therapy-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.therapy-card__body {
  padding: 1.35rem clamp(1rem, 3vw, 1.65rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.therapy-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  color: var(--color-primary);
  margin: 0 0 0.65rem;
  line-height: 1.3;
}

.therapy-card p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.therapy-card p:last-child {
  margin-bottom: 0;
}

.therapy-card .check-list {
  margin-bottom: 0.75rem;
}

.therapy-card .check-list:last-child {
  margin-bottom: 0;
}

.therapy-card__actions {
  margin-top: 1.1rem;
  padding-top: 0.25rem;
}

@media (max-width: 720px) {
  .therapy-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .therapy-card__actions .btn {
    width: 100%;
  }
}

.check-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 0.85em;
}

.service-list--spaced {
  margin-top: 1rem;
}

/* Doctors — very soft heart + ECG watermark */
#doctors {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

#doctors::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../assets/doctor-heart-ecg-bg.png");
  background-repeat: no-repeat;
  background-position: center center;
  /* Span full section (full width + full height), not a small strip behind the card */
  background-size: cover;
  opacity: 0.14;
}

#doctors .container {
  position: relative;
  z-index: 1;
}

.doctor-highlight {
  max-width: 36rem;
  margin: 0 auto;
}

.doctor-card--featured {
  text-align: left;
  max-width: none;
}

.doctor-card--featured .doctor-card__name,
.doctor-card--featured .doctor-card__role {
  text-align: center;
}

.doctor-card__bio--block {
  margin-top: 1rem;
  text-align: left;
  max-width: none;
}

.doctor-card--featured .doctor-card__photo {
  width: 200px;
  height: 200px;
}

.note-inline {
  font-size: 0.9em;
  opacity: 0.9;
}

/* FAQ — two-column accordion cards (reference layout) */
.section--faq .section__head h2 {
  color: #1e293b;
}

.faq__rule {
  display: block;
  width: min(7.5rem, 55%);
  height: 3px;
  margin: 0.9rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--footer-accent, #e8943a), #1e3a5f);
}

.faq--grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 80%;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .faq--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.35rem;
  }
}

@media (max-width: 639px) {
  .faq--grid {
    max-width: 100%;
  }
}

.faq__item {
  margin: 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq__item[open] {
  background: #f0fdf4;
  border-color: #166534;
  box-shadow: 0 2px 14px rgba(22, 101, 52, 0.1);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  line-height: 1.38;
  color: #1e293b;
  transition: color 0.2s ease;
}

.faq__item[open] summary {
  color: #166534;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid #9ca3af;
  border-bottom: 2px solid #9ca3af;
  transform: rotate(45deg);
  transition: transform 0.25s ease, border-color 0.2s ease;
}

.faq__item[open] summary::after {
  transform: rotate(-135deg);
  border-color: #166534;
}

.faq__item summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq__item > p {
  margin: 0;
  padding: 0 1.2rem 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-muted);
}

/* Book consultation + appointment form (split layout) */
.appointment-section {
  background: var(--color-bg);
  scroll-margin-top: 0;
}

.appointment-outer {
  padding: clamp(0.45rem, 1vw, 0.75rem);
  background: rgba(216, 243, 220, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(45, 106, 79, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.appointment-split {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .appointment-split {
    grid-template-columns: minmax(300px, 1fr) minmax(0, 1.35fr);
    gap: 1rem;
  }
}

.app-left {
  background: linear-gradient(
    165deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 50%,
    var(--color-panel-deep) 100%
  );
  color: rgba(255, 255, 255, 0.95);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(27, 67, 50, 0.42);
}

.app-left__kicker {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.app-left__phone {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.app-left__phone a {
  color: var(--color-secondary-bright);
  text-decoration: none;
}

.app-left__phone a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.app-left__phone-sep {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.app-left__lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.app-left__list {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
}

.app-left__list li {
  position: relative;
  padding-left: 1.45rem;
  margin-bottom: 0.55rem;
  line-height: 1.45;
  font-size: 0.92rem;
}

.app-left ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-secondary-bright);
  font-weight: bold;
}

.app-left__meta {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.app-left__meta p {
  margin: 0 0 0.85rem;
}

.app-left__meta p:last-child {
  margin-bottom: 0;
}

.app-left__meta a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.app-left__meta a:hover {
  color: var(--color-secondary-bright);
}

.app-left__address {
  margin: 0 0 0.85rem;
}

.app-right {
  background: var(--color-white);
  padding: 1.75rem 1.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(45, 106, 79, 0.1);
}

.app-right__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  color: var(--color-primary-dark);
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.app-right__sub {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.appointment-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1rem;
}

.appointment-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
}

.appointment-form__field span:first-child {
  text-transform: capitalize;
}

.appointment-form__field input,
.appointment-form__field select {
  padding: 0.6rem 0.65rem;
  border: 1px solid rgba(45, 106, 79, 0.22);
  border-radius: 6px;
  background: var(--color-white);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text);
}

.appointment-form__field input:focus,
.appointment-form__field select:focus {
  outline: 2px solid rgba(45, 106, 79, 0.35);
  outline-offset: 1px;
  border-color: rgba(45, 106, 79, 0.45);
}

.appointment-form__field input:user-invalid {
  border-color: #b91c1c;
}

.appointment-form__field input::placeholder {
  color: var(--color-muted);
  opacity: 0.85;
}

.appointment-form__field select {
  cursor: pointer;
}

.appointment-form__submit-wrap {
  display: flex;
  align-items: flex-end;
  min-height: 100%;
}

.appointment-form__submit-wrap .btn--appointment {
  width: 100%;
}

.req {
  color: var(--color-primary);
  text-decoration: none;
  border: none;
}

.btn--appointment {
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s;
}

.btn--appointment:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

@media (max-width: 959px) {
  .appointment-form {
    grid-template-columns: 1fr;
  }

  .appointment-form__submit-wrap {
    min-height: 0;
    padding-top: 0.25rem;
  }
}

/* Footer
   Narrow phone (<640px): brand full width; Quick Links + Treatments side-by-side; then
   hours/contact full width. Tablet (640–899px): 2 columns. Desktop (900px+): 4 columns. */
.site-footer {
  background: #14261c;
  color: rgba(255, 255, 255, 0.88);
  padding: 2.25rem 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.site-footer .footer__col,
.site-footer .footer__links a {
  overflow-wrap: anywhere;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
}

.footer__col {
  min-width: 0;
}

.footer__logo {
  opacity: 0.95;
  filter: brightness(1.1);
}

.footer__logo-link {
  display: inline-block;
  line-height: 0;
  margin: 0 0 0.85rem;
}

.footer__logo-img {
  max-height: min(120px, 22vh);
  width: auto;
  height: auto;
  display: block;
  opacity: 0.98;
  border-radius: 8px;
}

.footer__logo-link:hover .footer__logo-img {
  opacity: 1;
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--color-white);
}

.footer__tag {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 100%;
}

.footer__hours {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer__h {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.9vw, 1.1rem);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  margin: 0 0 0.65rem;
  padding-bottom: 0.5rem;
  color: var(--color-white);
  border-bottom: 3px solid var(--footer-accent);
  display: block;
  width: fit-content;
  max-width: 100%;
}

.footer__h--spaced {
  margin-top: 1.25rem;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a {
  color: inherit;
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer__links li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 1.15rem;
  line-height: 1.45;
  font-size: 1.03rem;
}

.footer__links li::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--footer-accent);
  font-weight: 700;
  font-size: 0.85em;
}

.footer__contact .footer__address {
  margin-bottom: 0.75rem;
  line-height: 1.55;
}

.footer__social--brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.footer__social--brand .social-icon {
  width: 2.1rem;
  height: 2.1rem;
  background: rgba(255, 245, 232, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #14261c;
}

.footer__social--brand .social-icon:hover {
  background: var(--color-white);
  color: var(--color-primary-dark);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.15rem 0;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

.footer__bottom p {
  margin: 0;
  max-width: 36rem;
}

.footer__grid--wide {
  gap: 2.35rem 1.5rem;
  grid-template-columns: 1fr;
}

.footer__col--brand {
  grid-column: span 1;
}

/* Quick + Treat + Hours: on desktop this becomes a nested grid so Opening Hours
   sits under the link columns only (avoids a huge gap from the Contact column). */
.footer__mid {
  display: contents;
}

@media (max-width: 639px) {
  /* Full-bleed footer content on phones (avoid narrow centered “box” + side gutters) */
  .site-footer > .container,
  .site-footer .footer__bottom .container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: clamp(1rem, 5vw, 1.35rem);
    box-sizing: border-box;
  }

  .footer__grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 0.85rem;
    align-items: start;
  }

  .footer__grid--wide .footer__col--brand {
    grid-column: 1 / -1;
    display: block;
    overflow: hidden;
  }

  .footer__grid--wide .footer__col--brand::after {
    content: "";
    display: table;
    clear: both;
  }

  .footer__grid--wide .footer__col--brand .footer__logo-link {
    float: left;
    margin-right: 0.85rem;
    margin-bottom: 0.35rem;
  }

  .footer__grid--wide .footer__col--brand .footer__logo-img {
    max-height: 96px;
    max-width: min(150px, 40vw);
  }

  .footer__grid--wide .footer__col--brand .footer__tag {
    display: block;
    min-width: 0;
  }

  .footer__grid--wide .footer__col--brand .footer__social--brand {
    clear: both;
    margin-top: 0.75rem;
  }

  /* Hours lives inside .footer__mid (not a direct child), so avoid `>` — else it stays ½ width */
  .footer__grid--wide .footer__col--hours,
  .footer__grid--wide > .footer__col--contact {
    grid-column: 1 / -1;
  }

  .footer__grid--wide .footer__col:nth-child(2) .footer__h,
  .footer__grid--wide .footer__col:nth-child(3) .footer__h {
    font-size: 0.93rem;
  }

  .footer__grid--wide .footer__col:nth-child(2) .footer__links li,
  .footer__grid--wide .footer__col:nth-child(3) .footer__links li {
    margin-bottom: 0.45rem;
    font-size: 1rem;
  }

  /* Opening hours: full row width, text uses full line length */
  .footer__col--hours {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .footer__col--hours .footer__hours {
    white-space: normal;
    font-size: clamp(0.85rem, 3.4vw, 0.95rem);
    line-height: 1.45;
    text-wrap: balance;
    max-width: none;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .footer__grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid--wide .footer__col--brand {
    grid-column: 1 / -1;
  }

  .footer__grid--wide .footer__col--quick {
    grid-column: 1;
  }

  .footer__grid--wide .footer__col--treat {
    grid-column: 2;
  }

  .footer__grid--wide .footer__col--hours,
  .footer__grid--wide .footer__col--contact {
    grid-column: 1 / -1;
  }
}

@media (min-width: 640px) {
  .footer__grid,
  .footer__grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__logo-img {
    max-height: min(140px, 24vh);
  }
}

@media (min-width: 900px) {
  .footer__grid--wide {
    grid-template-columns: 1.2fr minmax(0, 1.85fr) minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: start;
  }

  .footer__grid--wide .footer__col--brand {
    grid-column: 1;
    grid-row: 1;
  }

  .footer__grid--wide .footer__mid {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 1.5rem;
    row-gap: 0.85rem;
    align-items: start;
    min-width: 0;
  }

  .footer__grid--wide .footer__mid .footer__col--quick {
    grid-column: 1;
    grid-row: 1;
  }

  .footer__grid--wide .footer__mid .footer__col--treat {
    grid-column: 2;
    grid-row: 1;
  }

  .footer__grid--wide .footer__mid .footer__col--hours {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0;
  }

  .footer__grid--wide .footer__col--contact {
    grid-column: 3;
    grid-row: 1;
  }

  .footer__tag {
    max-width: 28rem;
  }

  .footer__logo-img {
    max-height: min(160px, 30vh);
  }
}

/* Enquiry modal */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fab-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.fab-stack.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.fab-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fab-whatsapp:hover {
  background: #1ebe57;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
  transform: scale(1.04);
}

.fab-whatsapp:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.fab-whatsapp__icon {
  display: block;
}

.fab-enquire {
  padding: 0.65rem 1.1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-primary);
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.fab-enquire:hover {
  background: var(--color-primary-dark);
}

.enquiry-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.enquiry-modal.is-open {
  display: flex;
}

.enquiry-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 40, 28, 0.55);
  cursor: pointer;
}

.enquiry-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 880px);
  max-height: min(90vh, 640px);
  overflow: auto;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.enquiry-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 360px;
}

/* Enquiry hero asset is 600×400 (3:2) — mobile: fixed ratio strip; desktop: fill column height beside form */
.enquiry-modal__visual {
  overflow: hidden;
  background: var(--color-secondary);
  min-height: 0;
}

.enquiry-modal__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  min-height: 0;
}

@media (max-width: 640px) {
  /* Full photo visible: intrinsic 3:2 from file — no object-fit: cover crop */
  .enquiry-modal__visual {
    aspect-ratio: unset;
    width: 100%;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
  }

  .enquiry-modal__visual img {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    /* Override base `cover` + `height: 100%` so the full bitmap is visible */
    object-fit: contain;
    object-position: center center;
  }
}

@media (min-width: 641px) {
  .enquiry-modal__visual {
    align-self: stretch;
    aspect-ratio: unset;
    position: relative;
    min-height: 280px;
    border-radius: 16px 0 0 16px;
  }

  .enquiry-modal__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .enquiry-modal__panel {
    border-radius: 0 16px 16px 0;
  }
}

.enquiry-modal__panel {
  position: relative;
  background: linear-gradient(
    160deg,
    var(--color-primary-mid) 0%,
    var(--color-primary) 42%,
    var(--color-primary-dark) 100%
  );
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  color: var(--color-white);
}

.enquiry-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
  color: var(--color-primary-dark);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.enquiry-modal__close:hover {
  background: rgba(255, 255, 255, 0.55);
}

.enquiry-modal__title {
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--color-white);
  line-height: 1.25;
}

.enquiry-modal__sub {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.95;
}

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.enquiry-form__field input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}

.enquiry-form__field--phone {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
}

.enquiry-form__field--phone input {
  border-radius: 0;
  flex: 1;
  min-width: 0;
}

.enquiry-form__field input:user-invalid {
  box-shadow: inset 0 0 0 2px rgba(185, 28, 28, 0.45);
}

.enquiry-form__cc {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  background: rgba(216, 243, 220, 0.65);
  border-right: 1px solid rgba(45, 106, 79, 0.15);
  white-space: nowrap;
}

.enquiry-form__flag {
  font-size: 1.1rem;
  line-height: 1;
}

.enquiry-form__submit {
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-white);
  border: 2px solid var(--color-white);
  border-radius: 8px;
  cursor: pointer;
}

.enquiry-form__submit:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-primary-dark);
}

body.enquiry-modal-open {
  overflow: hidden;
}

/* In-page targets: use html scroll-padding-top only — scroll-margin on the same element stacks
   with scroll-padding in browsers and can under/over-scroll (e.g. “What we treat” lands wrong). */
.anchor-target {
  scroll-margin-top: 0;
}

.treat-card[id],
.therapy-card[id] {
  scroll-margin-top: 0;
}

/* What we treat — horizontal scroll carousel */
.treat-carousel {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  padding: 0.25rem clamp(0.25rem, 2vw, 0.75rem) 0;
}

.treat-carousel__viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.25rem;
}

.treat-carousel__viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.treat-carousel__viewport:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.treat-carousel .treat-cards {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1.25rem;
  width: max-content;
  max-width: none;
  margin: 0;
  padding: 0.25rem 1rem 0.5rem;
}

.treat-carousel__btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, opacity 0.2s;
}

.treat-carousel__btn:hover:not(:disabled) {
  background: var(--color-secondary);
}

.treat-carousel__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .treat-carousel__btn {
    display: none;
  }
}

.treat-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(45, 106, 79, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  flex: 0 0 clamp(270px, 78vw, 340px);
  scroll-snap-align: start;
}

.treat-carousel .treat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Treatment card images are 480×280 (12:7) */
.treat-card__media {
  position: relative;
  aspect-ratio: 12 / 7;
  background: var(--color-secondary);
  overflow: hidden;
}

.treat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover,
  .doctor-card:hover,
  .about-card:hover,
  .therapy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  }

  .why-choose-card:hover {
    border-color: rgba(45, 106, 79, 0.35);
  }

  .why-choose-card:hover .why-choose-card__thumb img,
  .doctor-card:hover .doctor-card__photo img,
  .about-card:hover .about-card__media img,
  .therapy-card:hover .therapy-card__media img,
  .treat-card:hover .treat-card__media img {
    transform: scale(1.06);
  }
}

.treat-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.treat-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.treat-card__text p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-muted);
}

.treat-card:not(.treat-card--expanded) .treat-card__text p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.treat-card--expanded .treat-card__text p {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.treat-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}

.treat-card__toggle {
  padding: 0.35rem 0;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.treat-card__book {
  margin-left: auto;
}

.btn--compact {
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}

.treat-card__toggle:hover {
  color: var(--color-primary-dark);
}

.treat-card__toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.treat-card__toggle[hidden] {
  display: none;
}

.treat-card__actions:has(.treat-card__toggle[hidden]) .treat-card__book {
  margin-left: 0;
}

@media (max-width: 380px) {
  .treat-card__book {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .enquiry-modal__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .enquiry-modal__panel {
    border-radius: 0 0 16px 16px;
  }
}

/* Mobile */
@media (max-width: 960px) {
  body.mobile-menu-open {
    overflow: hidden;
  }

  .header-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0;
    flex-wrap: unset;
    justify-content: unset;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    max-width: 100%;
  }

  .brand img {
    max-height: 46px;
    max-width: min(100%, 230px);
    width: auto;
  }

  .nav-toggle {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    justify-self: end;
    align-self: center;
    flex-shrink: 0;
  }

  .nav-toggle span {
    background: #475569;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    flex-basis: auto;
    order: unset;
    flex: none;
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: var(--color-white);
    border-radius: 8px;
  }

  .site-nav.is-open {
    max-height: min(80vh, 600px);
    overflow-y: auto;
    margin-top: 0.4rem;
    border: 1px solid rgba(45, 106, 79, 0.15);
  }

  .site-header.menu-open .brand,
  .site-header.menu-open .nav-toggle {
    display: none !important;
  }

  .site-header.menu-open .site-nav.is-open {
    margin-top: 0;
  }

  .site-header.menu-open .header-main {
    padding-block: 0.5rem 0.75rem;
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem 0.35rem;
    border-bottom: 1px solid rgba(45, 106, 79, 0.12);
  }

  .mobile-nav-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    min-width: 0;
    flex: 1 1 auto;
  }

  .mobile-nav-logo img {
    max-height: 42px;
    width: auto;
    height: auto;
    display: block;
    max-width: 100%;
  }

  .mobile-nav-close {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(45, 106, 79, 0.1);
    color: var(--color-primary-dark);
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-close:hover {
    background: rgba(45, 106, 79, 0.18);
  }

  .mobile-nav-close:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0.25rem 0 0.85rem;
  }

  .nav-list > li {
    width: 100%;
  }

  .nav-list > li > a,
  .nav-parent {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .nav-parent-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .nav-parent-row .nav-parent {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0.5rem;
  }

  .nav-parent-row .submenu-trigger {
    flex: 0 0 auto;
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--color-bg);
    display: none;
    margin: 0.25rem 0 0.5rem 0.5rem;
    border-radius: 6px;
  }

  .has-submenu.is-open .submenu {
    display: block;
  }

  .has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
  }

  .hero__slide {
    display: none;
  }
}

/* Hero background: use mobile clip only on small screens (not the full “mobile nav” 960px breakpoint). */
@media (max-width: 767px) {
  .hero__video--desktop {
    display: none;
  }

  .hero__video--mobile {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gallery-carousel__track,
  .gallery-carousel__figure {
    transition: none;
  }

  .testimonials-carousel__track {
    transition: none;
  }
}
