/* Tęczówka — main stylesheet */

:root {
  --teal: #1a1488;
  --teal-deep: #0f006f;
  --teal-mid: #3c2ec2;
  --mint: #eceefb;
  --mint-soft: #f5f6fc;
  --ink: #15142c;
  --ink-soft: #45456a;
  --sand: #f6f6fb;
  --line: rgba(15, 0, 111, 0.12);
  --white: #ffffff;
  --radius: 4px;
  --shadow-soft: 0 18px 40px rgba(15, 0, 111, 0.10);
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --container: 1120px;
  --header-h: 4.75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(60, 46, 194, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(15, 0, 111, 0.10), transparent 55%),
    linear-gradient(180deg, var(--mint-soft) 0%, var(--sand) 45%, var(--white) 100%);
  background-attachment: scroll;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--teal-mid);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--teal-deep);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { margin: 0 0 1rem; color: var(--ink-soft); }

.screen-reader-text,
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--teal-deep);
  z-index: 10000;
  clip: auto;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  max-width: 100%;
}

.container--narrow {
  width: min(100% - 2rem, 720px);
  max-width: 100%;
}

.site-main,
.site-footer {
  max-width: 100%;
  overflow-x: clip;
}

.site-header {
  max-width: 100%;
  /* no overflow clip — mobile dropdown hangs below the bar */
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 245, 241, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(15, 0, 111, 0.06);
  background: rgba(255, 255, 255, 0.94);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
  position: relative;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

.site-branding > a {
  text-decoration: none;
  color: var(--teal-deep);
}

.site-branding > a:hover {
  color: var(--teal);
  text-decoration: none;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  max-width: 100%;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}

.site-tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.custom-logo-link img,
.custom-logo {
  max-height: 58px;
  width: auto;
  max-width: min(300px, 72vw);
  height: auto;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.nav-toggle__bars {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--teal-deep);
  position: relative;
  transition: background 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--teal-deep);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
  align-items: center;
}

.primary-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  position: relative;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after {
  transform: scaleX(1);
}

.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: auto;
  min-width: min(240px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 0.5rem 0;
  flex-direction: column;
  gap: 0;
  z-index: 20;
}

.primary-nav .menu-item-has-children {
  position: relative;
}

.submenu-toggle {
  display: none;
}

.header-cta {
  display: none;
}

.btn.mobile-nav-cta {
  display: none;
}

@media (min-width: 900px) {
  .header-cta {
    display: inline-flex;
  }

  .primary-nav .menu-item-has-children:hover > .sub-menu,
  .primary-nav .menu-item-has-children:focus-within > .sub-menu {
    display: flex;
  }

  .primary-nav .sub-menu a {
    padding: 0.55rem 1rem;
    display: block;
  }

  .primary-nav .sub-menu a::after {
    display: none;
  }
}

@media (max-width: 899px) {
  .custom-logo-link img,
  .custom-logo {
    max-height: 44px;
    max-width: min(230px, 68vw);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(15, 0, 111, 0.12);
    padding: 0.35rem 0 1.15rem;
    display: none;
    z-index: 1001;
    max-height: calc(100dvh - var(--header-h));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 1rem;
  }

  .primary-nav > ul > li {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav > ul > li:last-child {
    border-bottom: 0;
  }

  .primary-nav > ul > li > a {
    display: block;
    width: 100%;
    padding: 0.95rem 0.15rem;
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .primary-nav a::after {
    display: none;
  }

  .primary-nav .menu-item-has-children {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .primary-nav .menu-item-has-children > a {
    grid-column: 1;
    padding-right: 0.5rem;
  }

  .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    grid-row: 1;
    width: 44px;
    height: 44px;
    margin: 0;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--teal-deep);
    cursor: pointer;
    flex: 0 0 auto;
  }

  .submenu-toggle::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform 0.2s var(--ease);
  }

  .menu-item-has-children.is-expanded > .submenu-toggle::before {
    transform: rotate(225deg) translate(-1px, -1px);
  }

  .primary-nav .sub-menu {
    position: static;
    display: none;
    grid-column: 1 / -1;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: rgba(26, 20, 136, 0.05);
    margin: 0 0 0.65rem;
    padding: 0.25rem 0.35rem 0.35rem 0.75rem;
    min-width: 0;
    width: 100%;
    max-width: none;
  }

  .primary-nav .menu-item-has-children.is-expanded > .sub-menu {
    display: flex;
  }

  .primary-nav .sub-menu a {
    display: block;
    padding: 0.7rem 0.5rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.35;
    word-break: break-word;
  }

  .primary-nav .sub-menu a::after {
    display: none;
  }

  .btn.mobile-nav-cta {
    display: flex;
    margin: 1rem 1rem 0.25rem;
    width: calc(100% - 2rem);
    justify-content: center;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(26, 20, 136, 0.28);
}

.btn--primary:hover {
  background: var(--teal-deep);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--teal-deep);
  border-color: rgba(15, 0, 111, 0.35);
}

.btn--ghost:hover {
  background: var(--mint);
  color: var(--teal-deep);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  max-width: 100%;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(15, 0, 111, 0.82) 0%, rgba(15, 0, 111, 0.55) 38%, rgba(15, 0, 111, 0.2) 68%, rgba(15, 0, 111, 0.08) 100%);
}

.hero__fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(236, 238, 251, 0.22), transparent 40%),
    linear-gradient(135deg, #0a0448 0%, #0f006f 45%, #1a1488 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 10vh, 6rem) 0 clamp(3.5rem, 8vh, 5rem);
  max-width: 36rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.6vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--white);
  line-height: 1.12;
}

.hero__title {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 0.85rem;
  line-height: 1.4;
}

.hero__text {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.85rem;
  max-width: 32rem;
}

.hero__hours {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(15, 0, 111, 0.35);
}

.hero .btn--primary {
  background: var(--white);
  color: var(--teal-deep);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.hero .btn--primary:hover {
  background: var(--mint);
  color: var(--teal-deep);
}

.hero .btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.section__header {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section__header p {
  margin-bottom: 0;
}

.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.5rem;
}

/* Treatment grid */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.treatment-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.25rem 1.4rem;
  background: transparent;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.treatment-card:hover {
  border-bottom-color: var(--teal);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.treatment-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.treatment-card p {
  margin: 0;
  font-size: 0.95rem;
}

.treatment-card__link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal);
}

/* Doctors */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem 1.5rem;
}

.doctor-item {
  padding: 0.25rem 0;
}

.doctor-item__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--teal-deep);
  margin: 0 0 0.15rem;
}

.doctor-item__role {
  margin: 0;
  font-size: 0.88rem;
}

/* Extra info — pharmacy + DPO */
.extra-info-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.extra-info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.extra-info-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  color: var(--teal-deep);
}

.extra-info-card p {
  margin: 0 0 0.55rem;
}

.extra-info-card__label {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.extra-info-card__name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--teal-deep);
  margin-bottom: 0.75rem;
}

.extra-info-card__note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.85rem !important;
}

.extra-info-card a {
  font-weight: 600;
  text-decoration: none;
}

/* Trust / CTA band */
.trust-band {
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  background:
    linear-gradient(120deg, rgba(26, 20, 136, 0.95), rgba(15, 0, 111, 0.92)),
    var(--teal-deep);
  color: var(--white);
}

.trust-band h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.trust-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

.trust-band .btn--primary {
  background: var(--white);
  color: var(--teal-deep);
}

/* SEO content */
.prose {
  max-width: 720px;
}

.prose h2,
.prose h3 {
  margin-top: 2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.entry-content table,
.cennik-table table,
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.entry-content,
.cennik-table,
.prose {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cennik-table,
.entry-content {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.entry-content th,
.entry-content td,
.cennik-table th,
.cennik-table td,
.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0.5rem;
  text-align: left;
}

.entry-content th,
.cennik-table th,
.prose th {
  font-weight: 600;
  color: var(--teal-deep);
}

/* Posts */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  text-decoration: none;
  color: inherit;
}

.post-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mint);
  border-radius: var(--radius);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.post-card:hover .post-card__media img {
  transform: scale(1.04);
}

.post-card__meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.post-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.post-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Page chrome */
.page-hero {
  padding: clamp(2.5rem, 6vw, 3.75rem) 0 1.5rem;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.breadcrumbs {
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--ink-soft);
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  opacity: 0.5;
}

.breadcrumbs a {
  text-decoration: none;
}

/* Layout with sidebar */
.layout-with-sidebar {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .layout-with-sidebar {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

.sidebar .widget {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.sidebar .widget-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-list li {
  margin-bottom: 0.5rem;
}

.related-list a {
  text-decoration: none;
  font-weight: 500;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.contact-card address {
  font-style: normal;
}

.contact-card a {
  text-decoration: none;
  font-weight: 600;
}

.contact-hours {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.contact-hours li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.map-embed {
  border: 0;
  width: 100%;
  min-height: 320px;
  border-radius: var(--radius);
  background: var(--mint);
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Gallery */
.gallery-grid,
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--mint);
}

.gallery-item__link {
  display: block;
  height: 100%;
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.treatment-card--media {
  padding: 0;
  border-bottom: 0;
  gap: 0;
}

.treatment-card--media .treatment-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mint);
  margin-bottom: 0.85rem;
}

.treatment-card--media .treatment-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.treatment-card--media:hover .treatment-card__img img {
  transform: scale(1.04);
}

.treatment-card--media h3,
.treatment-card--media p,
.treatment-card--media .treatment-card__link {
  padding-inline: 0.15rem;
}

.equipment-item a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.equipment-item a:hover {
  color: var(--teal);
}

/* Pagination */
.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.9rem;
}

.pagination .current,
.nav-links .current {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

/* Footer */
.site-footer {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.site-footer p,
.site-footer li,
.site-footer address,
.site-footer .contact-hours,
.site-footer .contact-hours li,
.site-footer .footer-bottom,
.site-footer .footer-bottom p {
  color: #eceef8 !important;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.footer-logo {
  display: inline-block;
  margin: 0 0 0.85rem;
  text-decoration: none;
}

.footer-logo img {
  display: block;
  max-height: 48px;
  width: auto;
  max-width: 280px;
}

.footer-logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer .contact-hours li {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover,
  .treatment-card:hover,
  .post-card:hover .post-card__media img {
    transform: none;
  }
}

/* WP align */
.alignwide {
  max-width: min(100%, var(--container));
  margin-inline: auto;
}

.alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.wp-block-image figcaption { font-size: 0.85rem; color: var(--ink-soft); }

/* Search / 404 */
.empty-state {
  text-align: center;
  padding: 4rem 0;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 1.5rem auto 0;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
}

.search-form input[type="submit"] {
  padding: 0.75rem 1.1rem;
  background: var(--teal);
  color: var(--white);
  border: 0;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

.single-post__meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.entry-featured {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.entry-featured img {
  width: 100%;
}
