/* Hyde Park Podiatry - Calm Motion design system
   Clinical calm, confident movement. Palette measured from the logo. */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
}

:root {
  --navy: #1b223c;
  --navy-900: #141a2e;
  --ink: #1b223c;
  --body: #4b5768;
  --blue: #2e6fa6;
  --blue-brand: #4189bf;
  --blue-dark: #1e4e77;
  --teal: #44b0d9;
  --teal-050: #e8f4fa;
  --lime: #95c11f;
  --green: #78974e;
  --sage: #b1c9c2;
  --sage-050: #eaf1ee;
  --bg: #f7f9fa;
  --surface: #fff;
  --muted-surface: #edf2f5;
  --header-bg: #fff;
  --line: #dce4ea;
  --white: #fff;
  --footer-widgets: #1b223c;
  --footer-bottom: #141a2e;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --container: 1120px;
  --font-body: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font: var(--font-body);
  --shadow: 0 12px 32px rgba(20, 26, 46, 0.1);
  --shadow-sm: 0 1px 2px rgba(20, 26, 46, 0.06);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--lime);
  color: var(--navy);
}

img {
  max-width: 100%;
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
  color: var(--navy);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 64px 0;
}

.section--white {
  background: var(--surface);
}

.section--mist {
  background: var(--muted-surface);
}

.section--teal {
  background: var(--teal-050);
  color: var(--ink);
}

.section--teal h2,
.section--teal h3 {
  color: var(--navy);
}

.section--teal a {
  color: var(--blue);
}

.section--teal a:hover,
.section--teal a:focus-visible {
  color: var(--navy);
}

.section__head {
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
}

.section__head p {
  color: inherit;
}

.section__head--left {
  margin-left: 0;
  text-align: left;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 300;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

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

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.hero :focus-visible,
.section--cta :focus-visible,
.sidebar-cta :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.hero .btn:not(.btn--ghost),
.section--cta .btn:not(.btn--ghost),
.sidebar-cta .btn:not(.btn--ghost),
.contact-card .btn:not(.btn--ghost) {
  background: var(--sage);
  color: var(--navy);
}

.hero .btn:not(.btn--ghost):hover,
.hero .btn:not(.btn--ghost):focus-visible,
.section--cta .btn:not(.btn--ghost):hover,
.section--cta .btn:not(.btn--ghost):focus-visible,
.sidebar-cta .btn:not(.btn--ghost):hover,
.sidebar-cta .btn:not(.btn--ghost):focus-visible,
.contact-card .btn:not(.btn--ghost):hover,
.contact-card .btn:not(.btn--ghost):focus-visible {
  background: #fff;
  color: var(--navy);
}

.btn--ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--surface);
  color: var(--navy);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(20, 26, 46, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  padding: 10px 0;
}

.brand {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.brand img {
  width: auto;
  height: 68px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: block;
  padding: 15px 14px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--blue);
  text-decoration: none;
}

.nav__item.is-active > .nav__link {
  color: var(--navy);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--lime);
  text-decoration: none;
}

.nav__item--cta {
  margin-left: 10px;
}

.nav__item--cta .nav__link {
  margin-top: 3px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--sage);
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
}

.nav__item--cta .nav__link:hover,
.nav__item--cta .nav__link:focus-visible {
  background: var(--blue);
  color: #fff;
  box-shadow: none;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: var(--surface);
  border-top: 3px solid var(--lime);
  box-shadow: 0 16px 36px rgba(20, 26, 46, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.submenu a {
  display: block;
  padding: 10px 18px;
  color: var(--navy);
  font-size: 15px;
  text-decoration: none;
}

.submenu a:hover,
.submenu a:focus-visible {
  background: var(--teal-050);
  color: var(--blue);
}

.submenu a[aria-current="page"] {
  background: var(--teal-050);
  color: var(--blue);
  font-weight: 600;
}

.submenu-toggle {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--navy);
  font-family: var(--font);
  font-size: 15px;
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  width: 22px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 75vh;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.hero__media,
.hero__slide {
  position: absolute;
  inset: 0;
}

.hero__slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s var(--ease), transform 6s linear;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 70% at 50% 48%,
      rgba(17, 23, 40, 0.52) 0%,
      rgba(17, 23, 40, 0.3) 55%,
      rgba(17, 23, 40, 0) 100%
    ),
    linear-gradient(
      135deg,
      rgba(20, 26, 46, 0.52) 0%,
      rgba(27, 34, 60, 0.4) 46%,
      rgba(46, 111, 166, 0.32) 100%
    );
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 84px 0;
}

.hero--center .hero__inner {
  text-align: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.25rem, 4.2vw, 3rem);
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(10, 15, 30, 0.4);
}

.hero__subtitle {
  max-width: 680px;
  margin: 0 0 30px;
  font-size: clamp(1.125rem, 1.7vw, 1.5rem);
  line-height: 1.55;
  color: #fff;
  text-shadow: 0 1px 12px rgba(10, 15, 30, 0.45);
}

.hero--center .hero__subtitle {
  margin-inline: auto;
}

.hero--center .btn {
  margin-top: 4px;
}

.hero p,
.hero a {
  color: #fff;
}

.contact-card {
  padding: 28px 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(20, 26, 46, 0.6);
  backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
}

.contact-card h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.25rem;
}

.contact-card p {
  margin: 0 0 10px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.contact-card a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.contact-card .btn {
  margin-top: 12px;
}

.hero .btn:not(.btn--ghost),
.hero .btn:not(.btn--ghost):hover,
.hero .btn:not(.btn--ghost):focus-visible,
.contact-card .btn:not(.btn--ghost),
.contact-card .btn:not(.btn--ghost):hover,
.contact-card .btn:not(.btn--ghost):focus-visible {
  color: var(--navy);
}

/* Split content */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split__media {
  margin: 0;
}

.split__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.split--portrait .split__media img {
  aspect-ratio: 4 / 5;
}

@media (min-width: 961px) {
  .split:not(.split--gallery) {
    align-items: start;
  }

  .split:not(.split--gallery) .split__media {
    position: sticky;
    top: 128px;
    align-self: start;
  }

  .split:not(.split--gallery) .split__media img {
    max-height: calc(100vh - 160px);
  }
}

.split__body h2 {
  margin-top: 0;
}

.split__body p:last-child {
  margin-bottom: 0;
}

.role {
  margin: -6px 0 18px;
  color: var(--blue);
  font-size: 1.125rem;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

/* Cards */
.grid-cards {
  display: grid;
  gap: 24px;
}

.grid-cards--services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.grid-cards--services > .card {
  flex: 0 1 calc((100% - 56px) / 3);
  max-width: calc((100% - 56px) / 3);
}

.card.card--feature {
  position: relative;
  justify-content: flex-end;
  padding: 30px 28px 32px;
  border: 0;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(
      180deg,
      rgba(20, 26, 46, 0.2) 0%,
      rgba(20, 26, 46, 0.58) 45%,
      rgba(20, 26, 46, 0.94) 100%
    ),
    url("../img/hero-appointments.jpg") center / cover no-repeat;
}

.card--feature__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
}

.card--feature__eyebrow {
  margin: 0 0 10px;
  color: var(--sage);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card.card--feature .card--feature__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.65rem;
  line-height: 1.15;
}

.card--feature__text {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card--feature .btn {
  width: 100%;
  background: var(--sage);
  color: var(--navy);
}

.card--feature .btn:hover,
.card--feature .btn:focus-visible {
  background: #fff;
  color: var(--navy);
}

.card--feature :focus-visible {
  outline-color: #fff;
}

.grid-cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  border-color: var(--blue-brand);
  box-shadow: var(--shadow);
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--muted-surface);
}

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

.card__media--logo img {
  padding: 28px;
  object-fit: contain;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px 24px;
}

.card__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.card__title a {
  color: var(--ink);
  text-decoration: none;
}

.card__title a:hover,
.card__title a:focus-visible {
  color: var(--blue);
}

.card__excerpt {
  margin: 0;
  color: var(--body);
  font-size: 0.875rem;
  line-height: 1.6;
}

.card__more {
  margin-top: auto;
  padding-top: 8px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.card__more:hover,
.card__more:focus-visible {
  color: var(--navy);
}

.section--teal .card__title a {
  color: var(--ink);
}

.section--teal .card__title a:hover,
.section--teal .card__title a:focus-visible {
  color: var(--blue);
}

.section--teal .card__excerpt {
  color: var(--body);
}

.section--teal .card__more,
.section--teal .card__more:hover,
.section--teal .card__more:focus-visible {
  color: var(--blue);
}

.section--teal .card__more:hover,
.section--teal .card__more:focus-visible {
  color: var(--navy);
}

.grid-cta {
  margin-top: 32px;
  text-align: center;
}

/* Feed list */
.feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.feed__item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feed__media {
  background: var(--muted-surface);
}

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

.feed__media--logo img {
  padding: 30px;
  object-fit: contain;
}

.feed__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
}

.feed__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.feed__title a {
  color: var(--ink);
  text-decoration: none;
}

.feed__title a:hover,
.feed__title a:focus-visible {
  color: var(--blue);
}

.feed__excerpt {
  margin: 0;
  color: var(--body);
  font-size: 0.9rem;
  line-height: 1.65;
}

.feed__more {
  margin-top: auto;
  padding-top: 6px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

/* Video */
.video-block {
  max-width: 820px;
  margin: 0 auto;
}

.video-block__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0b1220;
  box-shadow: var(--shadow);
}

.video-block__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* CTA band */
.section--cta {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  color: #fff;
  background: var(--navy) url("../img/hero-cta.jpg") center / cover no-repeat;
}

.section--cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 72% 80% at 50% 45%,
      rgba(17, 23, 40, 0.46) 0%,
      rgba(17, 23, 40, 0.22) 65%,
      rgba(17, 23, 40, 0) 100%
    ),
    linear-gradient(
      100deg,
      rgba(20, 26, 46, 0.58) 0%,
      rgba(46, 111, 166, 0.42) 100%
    );
}

.cta-band {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  text-shadow: 0 2px 16px rgba(10, 15, 30, 0.4);
}

.cta-band p {
  margin: 0 0 24px;
  color: #e8f4fa;
  font-size: 1rem;
  text-shadow: 0 1px 10px rgba(10, 15, 30, 0.45);
}

/* Location */
.location {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.location__body h2 {
  margin-top: 0;
}

.location__contact {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.location__address {
  margin: 0 0 22px;
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--muted-surface);
}

.slider__track {
  display: flex;
  transition: transform 0.45s var(--ease);
}

.slider__slide {
  flex: 0 0 100%;
}

.slider__slide img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.slider__dots {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider__dot {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.slider__dot::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 12px;
  height: 12px;
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(27, 34, 61, 0.45);
}

.slider__dot.is-active::before {
  background: #fff;
}

.slider__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Accreditation */
.accreditation {
  padding: 36px 24px;
  border-radius: var(--radius);
  background: var(--sage-050);
  text-align: center;
}

.accreditation h2 {
  margin-bottom: 28px;
  font-size: 1.5rem;
}

.accreditation__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.accreditation__logos img {
  width: auto;
  max-height: 82px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Blog archive */
.page-head {
  padding: 56px 0;
  background: var(--muted-surface);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin: 0;
}

.archive {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
  gap: 48px;
  align-items: start;
}

.post-list__item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.post-list__item:first-child {
  padding-top: 0;
}

.post-list__media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

.post-list__media--logo img {
  padding: 28px;
  object-fit: contain;
  background: var(--muted-surface);
}

.post-list__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.post-list__title a {
  color: var(--ink);
  text-decoration: none;
}

.post-list__title a:hover,
.post-list__title a:focus-visible {
  color: var(--blue);
}

.post-list__excerpt {
  margin: 0 0 12px;
  color: var(--body);
  font-size: 0.95rem;
}

.post-list__more {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.sidebar {
  position: sticky;
  top: 112px;
}

.sidebar-contact {
  margin-top: 30px;
  color: var(--body);
  font-size: 0.92rem;
  line-height: 1.7;
}

.sidebar-contact h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.sidebar-contact p {
  margin: 0 0 4px;
}

.sidebar-contact a {
  color: var(--blue);
  text-decoration: none;
}

.sidebar-contact a:hover,
.sidebar-contact a:focus-visible {
  text-decoration: underline;
}

.sidebar-cta {
  position: relative;
  overflow: hidden;
  padding: 34px 28px;
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
  background: var(--navy) url("../img/hero-cta.jpg") center / cover no-repeat;
}

.sidebar-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 90% 80% at 50% 38%,
      rgba(17, 23, 40, 0.34) 0%,
      rgba(17, 23, 40, 0.14) 65%,
      rgba(17, 23, 40, 0) 100%
    ),
    linear-gradient(
      160deg,
      rgba(20, 26, 46, 0.76),
      rgba(46, 111, 166, 0.64)
    );
}

.sidebar-cta > * {
  position: relative;
  z-index: 1;
}

.sidebar-cta h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(10, 15, 30, 0.4);
}

.sidebar-cta p {
  margin: 0 0 18px;
  color: #eef6fb;
  font-size: 0.85rem;
  text-shadow: 0 1px 8px rgba(10, 15, 30, 0.5);
}

/* Article */
.article {
  padding: 0 0 80px;
}

.article .archive {
  grid-template-columns: minmax(0, 2.45fr) minmax(260px, 1fr);
}

.article__main {
  min-width: 0;
}

.article__title {
  margin: 0 0 22px;
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.article__media {
  margin: 0 0 30px;
}

.article__media img {
  display: block;
  width: 100%;
  height: auto;
}

.prose {
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose p,
.prose > div {
  margin: 0 0 1.1em;
}

.prose h2 {
  margin: 1.9em 0 0.55em;
  font-size: 1.75rem;
}

.prose h3 {
  margin: 1.5em 0 0.45em;
  font-size: 1.3rem;
}

.prose ul {
  margin: 0 0 1.25em;
  padding-left: 1.35em;
}

.prose li {
  margin-bottom: 0.35em;
}

.prose a {
  color: var(--blue);
}

.prose strong {
  color: var(--navy);
}

/* Map */
.map-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 44px;
  align-items: stretch;
}

.map-frame {
  overflow: hidden;
  min-height: 440px;
  border-radius: var(--radius);
  background: var(--muted-surface);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
}

.map-grid__body h2 {
  margin-top: 0;
}

.map-grid__body h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.appointment-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--header-bg);
  text-align: center;
}

.appointment-card p {
  font-size: 1.05rem;
}

.appointment-card .btn {
  margin-top: 6px;
}

.appointments-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 32px;
  align-items: start;
}

.booking-panel {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.booking-panel__head {
  margin-bottom: 20px;
}

.booking-panel__head h2 {
  margin: 0 0 8px;
}

.booking-panel__head p {
  margin: 0;
  color: var(--body);
  font-size: 0.95rem;
}

.cliniko-embed {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.cliniko-embed iframe {
  display: block;
  width: 100%;
  height: 1000px;
  border: 0;
}

.booking-panel__fallback {
  margin: 16px 0 0;
  color: var(--body);
  font-size: 0.875rem;
  line-height: 1.6;
}

.booking-panel__fallback a {
  color: var(--blue);
}

.appointment-card--side {
  position: sticky;
  top: 112px;
  max-width: none;
  margin: 0;
  background: var(--muted-surface);
  text-align: left;
}

.appointment-card--side h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.appointment-card--side h3 {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.appointment-card--side p {
  font-size: 0.95rem;
  line-height: 1.65;
}

.appointment-card--side .btn {
  margin-top: 10px;
}

.split__cta {
  margin-top: 22px;
}

/* Footer */
.site-footer {
  margin-top: 0;
  background: var(--footer-widgets);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
  color: #e8f4fa;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--lime);
}

.footer__widgets {
  display: grid;
  grid-template-columns: 0.8fr 1.15fr 1.2fr 1fr;
  gap: 32px;
  padding: 56px 0 48px;
}

.footer__widgets h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.25rem;
}

.footer__widgets p {
  margin: 0 0 10px;
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer__logo img {
  width: 130px;
  height: auto;
  padding: 12px;
  border-radius: 50%;
  background: var(--surface);
}

.footer__hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.footer__hours td {
  padding: 2px 0;
  vertical-align: top;
}

.footer__hours td:first-child {
  padding-right: 12px;
  white-space: nowrap;
}

.footer__bottom {
  padding: 16px 0;
  background: var(--footer-bottom);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8125rem;
  text-align: center;
}

.footer__bottom p {
  margin: 0;
}

/* Utilities */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    min-height: 40vh;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    background: var(--header-bg);
    border-top: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    display: block;
    padding: 10px 0;
  }

  .nav__link {
    padding: 13px 24px;
  }

  .nav__item.is-active > .nav__link {
    box-shadow: none;
    background: var(--teal-050);
  }

  .nav__item--cta {
    margin: 10px 24px 0;
  }

  .nav__item--cta .nav__link {
    text-align: center;
  }

  .submenu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 6px;
    border-top: 0;
    background: var(--surface);
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .has-sub.is-open > .submenu {
    display: block;
  }

  .submenu a {
    padding: 10px 40px;
  }

  .submenu-toggle {
    position: absolute;
    top: 4px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .submenu-toggle::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.2s var(--ease);
  }

  .has-sub.is-open > .submenu-toggle::before {
    transform: rotate(-135deg) translate(-2px, -2px);
  }
}

@media (max-width: 960px) {
  .grid-cards--services > .card {
    flex-basis: calc((100% - 28px) / 2);
    max-width: calc((100% - 28px) / 2);
  }

  .grid-cards--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .location,
  .map-grid,
  .hero__grid,
  .archive,
  .article .archive,
  .appointments-layout {
    grid-template-columns: 1fr;
  }

  .appointment-card--side {
    position: static;
  }

  .sidebar {
    position: static;
  }

  .hero__grid {
    gap: 28px;
  }

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

  .sidebar {
    position: static;
  }

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

  .post-list__item {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .split__media img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 88px;
  }

  .section {
    padding: 64px 0;
  }

  .section--cta {
    padding: 72px 0;
  }

  .nav {
    max-height: calc(100vh - 72px);
  }

  .grid-cards--3 {
    grid-template-columns: 1fr;
  }

  .grid-cards--services > .card {
    flex-basis: 100%;
    max-width: 100%;
  }

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

  .feed__media img {
    aspect-ratio: 16 / 9;
  }

  .post-list__item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-list__media img {
    aspect-ratio: 16 / 9;
  }

  .footer__widgets {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .brand img {
    height: 48px;
  }

  .header__inner {
    min-height: 72px;
  }

  .hero {
    min-height: 40vh;
  }

  .hero__inner {
    padding: 64px 0;
  }

  .contact-card {
    padding: 22px;
  }

  .booking-panel {
    padding: 20px;
  }

  .accreditation__logos {
    gap: 26px;
  }

  .accreditation__logos img {
    max-height: 64px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero__slide {
    transform: none;
  }

  .card:hover,
  .card:focus-within,
  .btn:active {
    transform: none;
  }
}

