/* Default homepage theme — free CSS, framework-independent.
   Tunable via the custom properties on :root. */
:root {
  --c-bg: #ffffff;
  --c-fg: #1f2933;
  --c-muted: #677483;
  --c-accent: #2b6cb0;
  --c-surface: #f5f7fa;
  --c-border: #e2e8f0;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 760px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--font);
  line-height: 1.65;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  background: var(--c-surface);
  /* Bundled default photo (generated by scripts/demo_images) under a pale veil.
     This theme sets dark text straight on the header with nothing behind it, so
     the photo has to stay a soft wash — at full strength the practice name
     lands on the blossoms and disappears. No per-practice hero photo overrides
     it here; --c-surface stays as the colour beneath. */
  background-image:
    linear-gradient(rgba(245, 247, 250, 0.88), rgba(245, 247, 250, 0.88)),
    url("hero.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--c-border);
  padding: 2.5rem 0;
}

.practice-logo {
  display: block;
  max-height: 80px;
  width: auto;
  margin-bottom: .75rem;
}

.practice-name {
  margin: 0 0 .25rem;
  color: var(--c-accent);
  font-weight: 600;
  letter-spacing: .02em;
}

.page-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
}

.site-nav {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: .75rem 1.25rem;
}

.site-nav__link {
  color: var(--c-fg);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}

.site-nav__link:hover {
  color: var(--c-accent);
}

.content {
  padding: 2.5rem 1.25rem;
}

.content h2 { margin-top: 2rem; }

.content a {
  color: var(--c-accent);
}

.content img {
  max-width: 100%;
  height: auto;
}

.site-footer {
  border-top: 1px solid var(--c-border);
  color: var(--c-muted);
  padding: 1.5rem 0;
  font-size: .875rem;
}

.site-footer__login {
  margin-left: 1rem;
  color: var(--c-muted);
}

/* Opening-hours day cards (canonical markup; neutral styling here). */
.cms-opening-hours__days {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cms-opening-hours__day {
  flex: 1 1 8rem;
  border: 1px solid var(--c-border);
  border-radius: .5rem;
  padding: .75rem 1rem;
  background: var(--c-surface);
}

.cms-opening-hours__day.is-today {
  border-color: var(--c-accent);
  box-shadow: inset 0 0 0 1px var(--c-accent);
}

.cms-opening-hours__day-name {
  display: block;
  font-weight: 600;
  margin-bottom: .25rem;
}

.cms-opening-hours__day-abbr { display: none; }

.cms-opening-hours__slot {
  display: block;
}

/* ── Services — grouped categories + coverage badges ──────────────────── */

.cms-services__group { margin-bottom: 1.75rem; }

.cms-services__category {
  color: var(--c-accent);
  font-size: 1.2rem;
  margin: 0 0 .75rem;
  padding-bottom: .25rem;
  border-bottom: 1px solid var(--c-border);
}

.cms-services__badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: .05rem .45rem;
  border-radius: 1rem;
  vertical-align: middle;
}

.cms-services__badge--public { background: var(--c-accent); color: #fff; }
.cms-services__badge--private { background: var(--c-surface); color: var(--c-muted); border: 1px solid var(--c-border); }

/* Team — compact responsive cards with capped round avatars (added with the
   demo portraits so photos render at a sensible size, not full-width). */
.cms-team__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.5rem;
}
.cms-team__member {
  text-align: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 1.25rem;
}
.cms-team__photo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto .75rem;
  display: block;
}
.cms-team__name { font-weight: 600; margin: 0 0 .2rem; }
.cms-team__role { color: var(--c-muted); margin: 0 0 .5rem; font-size: .95rem; }
.cms-team__bio { margin: 0; }

/* Gallery — restrained, even grid of framed squares matching the theme's
   quiet document look. The photo zooms softly inside its frame on hover;
   captions sit below in muted text. */
.cms-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem;
}
.cms-gallery__item { margin: 0; }
.cms-gallery__link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-surface);
}
.cms-gallery__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .35s ease;
}
.cms-gallery__link:hover .cms-gallery__image,
.cms-gallery__link:focus-visible .cms-gallery__image { transform: scale(1.06); }
.cms-gallery__caption {
  margin: .5rem .1rem 0;
  font-size: .85rem;
  color: var(--c-muted);
}

/* Quote banner — full-bleed saying over an optional dimmed photo */
.cms-quote-banner {
  margin-inline: calc(50% - 50vw);
  background-color: var(--c-accent);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  position: relative;
}
.cms-quote-banner--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}
.cms-quote-banner__inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.cms-quote-banner__quote { margin: 0; font-size: 1.5rem; line-height: 1.5; font-style: italic; }
.cms-quote-banner__attribution { margin: 1rem 0 0; font-size: .95rem; color: rgba(255, 255, 255, .85); }
@media (min-width: 768px) { .cms-quote-banner__quote { font-size: 1.9rem; } }
/* Location map block (cms-map) — baseline styling for the shared OSM location
   block (added with the map engine block). Token-safe: only uses --c-accent. */
.cms-map__title {
  margin: 0 0 1.25rem;
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--c-accent);
}
.cms-map__link {
  display: block;
  max-width: 44rem;
  margin-inline: auto;
  text-decoration: none;
  color: inherit;
}
.cms-map__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  outline: 3px solid transparent;
  outline-offset: -3px;
  transition: outline-color 0.15s ease;
}
.cms-map__link:hover .cms-map__image,
.cms-map__link:focus-visible .cms-map__image {
  outline-color: var(--c-accent);
}
.cms-map__caption {
  display: block;
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.92rem;
  opacity: 0.75;
}
/* The practice's own directions — what the address cannot say. Kept on the
   map's axis and width so the two read as one instruction, on this theme's
   plain surface tone: the map shows where, the panel says how. */
.cms-map__directions {
  max-width: 44rem;
  margin: 1rem auto 0;
  padding: 1rem 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  color: var(--c-fg);
}
.cms-map__directions p {
  margin: 0 0 0.6rem;
}
.cms-map__directions p:last-child {
  margin-bottom: 0;
}

/* Announcements — dated practice notices (holiday, a new rule, a new service).
   Quiet stacked notes in the theme's plain document voice: a surface card with
   the tone as a rule at the left edge, the period as small muted metadata.
   `--a-tone` carries the meaning; every tone below only re-points it. */
.cms-announcements__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}
.cms-announcements__item {
  --a-tone: var(--c-muted);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--a-tone);
  border-radius: 8px;
  background: var(--c-surface);
  padding: .9rem 1.1rem;
}
.cms-announcements__item--info { --a-tone: var(--c-accent); }
.cms-announcements__item--important { --a-tone: #b26a00; }
.cms-announcements__item--alert { --a-tone: #b3261e; }
.cms-announcements__item--good { --a-tone: #2f7a4d; }
.cms-announcements__headline {
  margin: 0;
  font-size: 1.05rem;
  color: var(--a-tone);
}
.cms-announcements__period {
  margin: .1rem 0 .5rem;
  font-size: .85rem;
  color: var(--c-muted);
}
.cms-announcements__body p { margin: 0 0 .5rem; }
.cms-announcements__body p:last-child { margin-bottom: 0; }
