/* ============================================================
   specialist.min.css
   Page-specific styles for /specialist/ (index page).
   Relies on utilities.css and main.css being loaded first.
   ============================================================ */

/* ── Hero (specialist-specific overrides) ──────────────────── */
.spec-hero {
  background: var(--purple);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.spec-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(226,28,118,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(255,164,0,.1) 0%, transparent 60%);
  pointer-events: none;
}
.spec-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.spec-hero__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 62px);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}
.spec-hero__title em {
  font-style: normal;
  color: var(--pink);
}
.spec-hero__sub {
  font-size: 17px;
  color: rgba(255,255,255,.7);
  line-height: 1.75;
  margin-bottom: 36px;
}
.spec-hero__link {
  color: var(--gold);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,164,0,.4);
  transition: border-color var(--ease);
}
.spec-hero__link:hover { border-color: var(--gold); }

.spec-hero__image-wrap {
  flex-shrink: 0;
  width: 340px;
  aspect-ratio: 5/6;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
}
.spec-hero__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(226,28,118,.22) 0%, transparent 55%);
}
.spec-hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Latest Specialists section ────────────────────────────── */
.spec-latest {
  padding: 90px 0 80px;
  background: var(--off);
}

/* Specialist card — replaces old Bootstrap .card */
.spec-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease-mid), transform var(--ease-mid), border-color var(--ease-mid);
  height: 100%;
}
.spec-card:hover {
  border-color: var(--pink);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.spec-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--purple-pale);
}
.spec-card__img a { display: block; height: 100%; }
.spec-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}
.spec-card:hover .spec-card__img img { transform: scale(1.05); }

.spec-card__body { padding: 24px 26px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }

.spec-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.spec-card__name {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 20px;
  color: var(--purple);
  line-height: 1.25;
}
.spec-card__rating {
  font-size: 13px;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.spec-card__rating .star-count {
  color: var(--ink-light);
  font-size: 12px;
  margin-left: 2px;
}
.spec-card__location {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-light);
}
.spec-card__location svg { flex-shrink: 0; color: var(--pink); }
.spec-card__desc {
  font-size: 13.5px;
  color: var(--ink-mid);
  line-height: 1.65;
  flex: 1;
}

.spec-card__footer {
  border-top: 1px solid var(--border);
  padding: 16px 26px 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-spec-contact {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  background: var(--pink);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.btn-spec-contact:hover { background: var(--pink-mid); transform: translateY(-1px); }
.btn-spec-more {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--purple);
  transition: background var(--ease), color var(--ease);
}
.btn-spec-more:hover { background: var(--purple); color: var(--white); }

.spec-latest__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* ── County / Town Search section ──────────────────────────── */
.spec-search-section {
  padding: 90px 0 100px;
  background: var(--white);
}

.spec-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--off);
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 24px;
  max-width: 680px;
  transition: border-color var(--ease), box-shadow var(--ease);
  margin-bottom: 12px;
}
.spec-search-bar:focus-within {
  border-color: var(--pink);
  box-shadow: var(--shadow-sm);
}
.spec-search-bar svg { color: var(--ink-light); flex-shrink: 0; }
.spec-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--ink);
  padding: 10px 0;
}
.spec-search-bar input::placeholder { color: var(--ink-light); }

.spec-results-count {
  font-size: 13px;
  color: var(--ink-light);
  font-weight: 600;
  margin-bottom: 32px;
}

.spec-no-results {
  background: var(--pink-pale);
  border: 1px solid rgba(226,28,118,.25);
  color: var(--pink-mid);
  padding: 18px 24px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Counties grid */
.counties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.county-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--ease-mid), box-shadow var(--ease-mid), transform var(--ease-mid);
}
.county-card:hover {
  border-color: var(--pink);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.county-card__head {
  background: var(--purple);
  padding: 14px 18px;
}
.county-card__head a {
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: color var(--ease);
}
.county-card__head a:hover { color: var(--gold); }
.county-card__head a svg { opacity: .5; flex-shrink: 0; }
.county-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.town-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-pale);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  transition: background var(--ease), color var(--ease);
}
.town-badge:hover {
  background: var(--pink);
  color: var(--white);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .counties-grid { grid-template-columns: repeat(3, 1fr); }
  .spec-hero__image-wrap { width: 280px; }
}
@media (max-width: 900px) {
  .spec-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .spec-hero__image-wrap { width: 100%; aspect-ratio: 16/7; max-height: 260px; }
  .spec-latest__grid { grid-template-columns: repeat(2, 1fr); }
  .counties-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .spec-hero { padding: 60px 0 70px; }
  .spec-hero__image-wrap { display: none; }
  .spec-latest { padding: 60px 0; }
  .spec-latest__grid { grid-template-columns: 1fr; }
  .spec-search-section { padding: 60px 0 70px; }
  .counties-grid { grid-template-columns: 1fr; }
  .btn-spec-contact,
  .btn-spec-more { width: 100%; display: block; text-align: center; box-sizing: border-box; }
  .town-spec-card__footer form,
  .spec-card__footer form,
  .treatment-row__actions form { width: 100%; display: block; }
}

/* ============================================================
   TOWN PAGE  (/specialist/town/[slug])
   Reuses spec-hero for the hero (no custom town-hero needed).
   Components: page layout, promo banners, horizontal specialist
   card, map section.
   ============================================================ */

/* Breadcrumbs inside spec-hero */
.spec-hero .breadcrumbs {
  margin-bottom: 22px;
}

/* CTA actions row (shared by town hero) */
.town-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Page layout: sidebar TOC + content ─────────────────────── */
.town-body {
  background: var(--off);
  padding: 56px 0 100px;
  overflow-x: hidden;
}
.town-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.town-layout > * { min-width: 0; }
.town-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.town-content {
  display: flex;
  flex-direction: column;
  gap: 80px;
  min-width: 0;
  width: 100%;
}
.town-content .content-section {
  scroll-margin-top: calc(var(--nav-h) + 16px);
  min-width: 0;
  max-width: 100%;
}

/* Mobile TOC: hidden by default, shown at breakpoint via symptom-mobile-toc rules */
#town-mobile-toc {
  display: none;
}
#town-mobile-toc .symptom-search {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
}

/* ── TOC link styling ───────────────────────────────────────── */
.town-toc a {
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-mid);
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}
.town-toc a:hover { color: var(--pink); background: var(--pink-pale); }
.town-toc a.active { color: var(--pink); border-left-color: var(--pink); background: var(--pink-pale); }

/* ── Promo banner cards ──────────────────────────────────────── */
.town-promo-banner {
  background: var(--purple);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
}
.town-promo-banner:first-child {
  background: #4a8f9a;
}
.town-promo-banner__body {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.town-promo-banner__body > div { flex: 1 1 280px; }
.town-promo-banner__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(22px, 2.8vw, 34px);
  color: var(--white);
  margin: 10px 0 8px;
  line-height: 1.2;
}
.town-promo-banner__lead {
  font-size: 15px;
  color: rgba(255,255,255,.9);
  margin-bottom: 6px;
}
.town-promo-banner__text {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
}
.town-promo-banner__img {
  width: 180px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  object-fit: cover;
}

/* ── Horizontal specialist card ─────────────────────────────── */
.town-cards-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.town-spec-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-rows: auto auto;
  transition: box-shadow var(--ease-mid), transform var(--ease-mid), border-color var(--ease-mid);
}
.town-spec-card:hover {
  border-color: var(--pink);
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}
.town-spec-card__img-wrap {
  grid-row: 1 / 3;
  display: block;
  overflow: hidden;
  background: var(--purple-pale);
}
.town-spec-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}
.town-spec-card:hover .town-spec-card__img-wrap img { transform: scale(1.05); }
.town-spec-card__body {
  padding: 22px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.town-spec-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.town-spec-card__name {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 20px;
  color: var(--purple);
  line-height: 1.25;
}
.town-spec-card__name a { color: inherit; }
.town-spec-card__name a:hover { color: var(--pink); }
.town-spec-card__location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-light);
  margin-top: 4px;
}
.town-spec-card__location svg { color: var(--pink); flex-shrink: 0; }
.town-spec-card__rating {
  font-size: 13px;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.town-spec-card__rating .star { color: var(--ink-light); font-size: 12px; }
.town-spec-card__desc {
  font-size: 13.5px;
  color: var(--ink-mid);
  line-height: 1.65;
}
.town-spec-card__footer {
  padding: 14px 24px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Map section ─────────────────────────────────────────────── */
.town-map-section { display: flex; flex-direction: column; gap: 24px; }
.clinic-map {
  width: 100%;
  min-height: 420px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--off);
}
.map-info { font-family: var(--ff-body); font-size: 13px; line-height: 1.5; max-width: 200px; }
.map-info strong { display: block; color: var(--purple); font-size: 14px; margin-bottom: 4px; }
.map-info a { color: var(--pink); font-weight: 600; display: block; margin-top: 6px; }

/* ── Town responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .town-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .town-toc { display: none; }
  #town-mobile-toc {
    display: block;
    position: sticky;
    top: calc(var(--nav-h) + 8px);
    z-index: 10;
    margin: 0 0 24px;
    /* reset wrap margin so sticky works correctly */
    width: min(var(--wrap-w), 100% - var(--wrap-pad));
    margin-inline: auto;
    padding-top: 24px;
  }
  .town-body { padding: 32px 0 80px; }
  .town-spec-card { grid-template-columns: 160px minmax(0, 1fr); }
  .town-promo-banner__img { width: 140px; }
}
@media (max-width: 640px) {
  .town-spec-card {
    grid-template-columns: 1fr;
    grid-template-rows: 200px auto auto;
  }
  .town-spec-card__img-wrap { grid-row: 1; }
  .town-spec-card__body    { grid-row: 2; }
  .town-spec-card__footer  { grid-row: 3; }
  .town-promo-banner__img  { display: none; }
  .town-hero__actions a    { flex: 1; text-align: center; }
}

/* ============================================================
   SPECIALIST DISPLAY PAGE  (/specialist/[name_link])
   Reuses spec-hero, town-body, town-layout, town-toc, symptom-tile,
   symptom-card, symptom-row, btn-spec-contact, btn-spec-more.
   ============================================================ */

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* Section spacing — base; overridden in media queries below */

/* Opening hours / follow us */
.hours-follow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.hours-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 26px;
}
.hours-card__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 18px;
  color: var(--purple);
  margin-bottom: 16px;
}
.hours-table { width: 100%; font-size: 13.5px; color: var(--ink-mid); }
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 8px 0; }
.hours-table td:first-child { font-weight: 600; color: var(--ink); width: 40%; }

.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--pink-pale);
  color: var(--pink);
  font-size: 16px;
  transition: background var(--ease), color var(--ease);
}
.social-links a:hover { background: var(--pink); color: var(--white); }

/* Today highlight on hours table */
.hours-table tr.hours-today {
  background: var(--pink-pale);
  border-radius: var(--r-sm);
}
.hours-table tr.hours-today td {
  color: var(--pink);
  padding: 10px 8px;
}
.hours-table tr.hours-today td:first-child { padding-left: 10px; }
.hours-table tr.hours-today td:last-child  { padding-right: 10px; }

/* Testimonials */
.testimonial-wrapper { overflow: hidden; width: 100%; }
.testimonial-track {
  display: flex;
  gap: 24px;
}
.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial-card__stars { color: var(--gold); font-size: 16px; }
.testimonial-card__text { font-size: 13.5px; color: var(--ink-mid); line-height: 1.65; flex: 1; }
.testimonial-card__footer { font-size: 12px; color: var(--ink-light); font-weight: 600; }
.testimonial-controls { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }

/* Symptom tile action row (display page) */
.symptom-tile__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.symptom-tile__actions form { display: inline-block; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
}
.team-card__photo {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
}
.team-card__name {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 17px;
  color: var(--purple);
  margin-bottom: 4px;
}
.team-card__role { font-size: 12px; color: var(--pink); font-weight: 600; display: block; margin-bottom: 10px; }
.team-card__desc { font-size: 13px; color: var(--ink-light); line-height: 1.6; }

/* FAQ accordion */
.faq-accordion { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--ff-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  transition: color var(--ease), background var(--ease);
}
.faq-item__question:hover { color: var(--pink); background: var(--pink-wash); }
.faq-item__icon {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--pink);
  transition: transform var(--ease-mid);
}
.faq-item__question[aria-expanded="true"] .faq-item__icon { transform: rotate(45deg); }
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 22px;
}
.faq-item__answer.is-open { max-height: 600px; padding-bottom: 18px; }
.faq-item__answer p { font-size: 13.5px; color: var(--ink-mid); line-height: 1.7; }

/* Hero intro text (display page) */
.spec-hero__intro {
  color: rgba(255,255,255,.75);
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 28px;
}
.spec-hero__intro p { margin-bottom: 12px; }
.spec-hero__intro strong { color: var(--white); }

/* Hero image column (display page) */
.spec-hero__image-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.spec-hero__image-wrap {
  width: 400px;
  height: 257px;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
}
.spec-hero__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(226,28,118,.18) 0%, transparent 55%);
}
.spec-hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spec-hero__rating {
  text-align: center;
  color: var(--gold);
  font-size: 22px;
  line-height: 1.3;
}
.spec-hero__rating-text {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  font-weight: 600;
  margin-top: 4px;
}
.spec-hero__image-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Info + Hours two-column layout */
.info-hours-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.info-hours-grid__right {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

/* Banner images */
.banner-img-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.banner-img-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.banner-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Treatment rows */
.treatment-list { display: flex; flex-direction: column; gap: 12px; }
.treatment-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--off);
  transition: border-color var(--ease), background var(--ease);
}
.treatment-row:hover { border-color: var(--pink); background: var(--pink-wash); }
.treatment-row__body { flex: 1; min-width: 0; }
.treatment-row__top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.treatment-row__name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--purple);
}
.treatment-row__price {
  font-size: 12px;
  font-weight: 600;
  color: var(--pink);
  background: var(--pink-pale);
  padding: 2px 10px;
  border-radius: var(--r-pill);
}
.treatment-row__desc {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.5;
  margin: 0;
}
.treatment-row__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Mobile CTAs in left hero col — hidden on desktop, shown on mobile */
.spec-hero__content .town-hero__actions { display: none; }

/* ── Display page responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .spec-hero__image-col { order: -1; }
  .spec-hero__image-wrap { width: 100%; height: auto; aspect-ratio: 400/257; max-width: 400px; }
  .info-hours-grid { grid-template-columns: 1fr; }
  .info-hours-grid__right { position: static; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card { flex: 0 0 calc(50% - 12px); }
  .town-content { gap: 52px; }
}
@media (max-width: 767px) {
  .spec-hero__image-col { display: none; }
  .spec-hero__content .town-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
  .town-content { gap: 40px; }
  .town-body { padding: 32px 0 60px; }
  .team-grid { grid-template-columns: 1fr; }
  .testimonial-card { flex: 0 0 100%; }
  .treatment-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .treatment-row__actions { width: 100%; flex-direction: column; gap: 8px; }
  .treatment-row__actions .btn-spec-contact,
  .treatment-row__actions .btn-spec-more,
  .treatment-row__actions form { width: 100%; display: block; }
  .treatment-row__actions .btn-spec-contact,
  .treatment-row__actions .btn-spec-more { width: 100%; text-align: center; display: block; box-sizing: border-box; }
  .hours-card { padding: 18px; }
  .hours-table { font-size: 13px; }
  .team-card { padding: 22px 18px; }
  .faq-item__question { font-size: 14px; padding: 14px 16px; }
  .section-divider { margin: 20px 0; }
  .banner-img-row { grid-template-columns: 1fr; }
  .hours-follow-grid { grid-template-columns: 1fr; }
}

/* ── Small screen overflow containment ──────────────────────── */
@media (max-width: 767px) {
  .town-body,
  .town-layout,
  .town-content,
  .town-content .content-section { max-width: 100%; overflow-x: hidden; }
  .info-hours-grid,
  .hours-follow-grid,
  .team-grid,
  .banner-img-row,
  .treatment-list,
  .faq-accordion,
  .testimonial-wrapper { max-width: 100%; }
  /* Reduce wrap padding on very small screens */
  .wrap { width: min(var(--wrap-w), 100% - 32px); }
}
@media (max-width: 480px) {
  .wrap { width: min(var(--wrap-w), 100% - 24px); }
}

/* ── User-generated content containment ─────────────────────── */
.town-content img,
.town-content table,
.town-content iframe,
.town-content video,
.town-content pre,
.town-content embed { max-width: 100%; box-sizing: border-box; }
.town-content table { width: 100%; table-layout: fixed; }
.body-text img { max-width: 100%; height: auto; }
.spec-hero__intro img { max-width: 100%; height: auto; }

@media (max-width: 767px) {
  .btn-spec-contact,
  .btn-spec-more {
    width: 100%;
    text-align: center;
    display: block;
    box-sizing: border-box;
  }
  form:has(.btn-spec-contact) { width: 100%; display: block; }
}