/* Medivet Canonbury – tokens from _brief.md.
   Colours are sampled from the practice's own signage and live page: royal blue #294597,
   rose #D73A60, and the ultramarine #1B2C96 painted on the shopfront joinery. */

:root {
  --ink: #111a3d;
  --blue: #294597;
  --blue-deep: #1b2c96;
  --rose: #d73a60;
  --rose-dark: #b62c4d;
  /* the brand rose read off the logo is 4.28:1 on this warm ground, so small text uses a
     darkened relative of it instead and the logo rose stays for fills and large display type */
  --rose-text: #c93055;
  --surface: #fbf9f6;
  --card: #ffffff;
  --muted: #5a6180;
  --rule: #e2e1e8;

  --display: 'Bricolage Grotesque', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose); }

:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--blue);
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.7rem 1.1rem;
  z-index: 60;
}
.skip:focus { left: 0.6rem; top: 0.6rem; color: #fff; }

/* ---------- header ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 246, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.bar__in {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  min-height: 60px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--blue);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.mark svg { flex: none; }
.mark span { white-space: nowrap; }
.mark small {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.bar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* the hours chip is a nicety; below tablet the bar is the wordmark and the number, and both
   stay on one line rather than wrapping the call button into three */
.status { display: none; }
@media (min-width: 760px) {
  .status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
  }
}
.bar__right .btn { white-space: nowrap; }
.status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}

.btn--primary { background: var(--rose); color: #fff; }
.btn--primary:hover { background: var(--rose-dark); color: #fff; transform: translateY(-1px); }

.btn--ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--ghost:hover { background: var(--blue); color: #fff; }

.btn--light { background: #fff; color: var(--blue); }
.btn--light:hover { background: #eef1fa; color: var(--blue); }

.btn--sm { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.9rem; }

/* ---------- the arrival shot ---------- */

.arrival { padding: 0; margin: 0; }
.arrival img {
  width: 100%;
  height: clamp(210px, 38vw, 520px);
  object-fit: cover;
  object-position: center 58%;
  border-bottom: 5px solid var(--blue-deep);
}

/* ---------- claim band ---------- */

.claim { padding: clamp(2.4rem, 6vw, 4.2rem) 0 clamp(2rem, 5vw, 3.4rem); }

.claim__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.6rem);
  align-items: start;
}
@media (min-width: 900px) {
  .claim__grid { grid-template-columns: 1.15fr 0.85fr; }
}

.window-line {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  color: var(--rose);
  font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}
.window-line__note {
  display: block;
  font-family: var(--body);
  font-style: normal;
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.9rem;
}

.claim h1 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  margin: 0.55rem 0 0.9rem;
}

.claim p.lede {
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.16rem);
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 1.6rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* hours card */

.hours {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--blue-deep);
  border-radius: 4px;
  padding: clamp(1.3rem, 3vw, 1.8rem);
}
.hours h2 {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--body);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.hours dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
}
.hours dt,
.hours dd {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.hours dt { font-weight: 600; }
.hours dd { text-align: right; color: var(--muted); }
.hours .now dt,
.hours .now dd { color: var(--rose-text); font-weight: 600; }
.hours__after {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- generic sections ---------- */

.sec { padding: clamp(2.6rem, 6vw, 4.6rem) 0; }
.sec--tint { background: #fff; border-block: 1px solid var(--rule); }

.sec__head { max-width: 60ch; margin-bottom: clamp(1.6rem, 4vw, 2.5rem); }
.sec__head h2 { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.15rem); }
.sec__head p { color: var(--muted); margin: 0.7rem 0 0; }

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rose-text);
  margin: 0 0 0.6rem;
}

/* ---------- services ---------- */

/* six services, so two rows of three rather than a ragged auto-fit row */
.svc-grid { display: grid; gap: 1rem; }
@media (min-width: 620px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.35rem 1.4rem 1.5rem;
}
.svc h3 { font-size: 1.08rem; margin-bottom: 0.4rem; color: var(--ink); }
.svc p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.kit {
  margin-top: 1.6rem;
  background: var(--blue);
  color: #fff;
  border-radius: 14px;
  padding: clamp(1.4rem, 3.5vw, 2rem);
}
.kit h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.7rem; }
.kit p { margin: 0; color: #dfe4f5; max-width: 62ch; }
.kit p + p { margin-top: 0.7rem; }

/* ---------- prices, the signature block ---------- */

.prices {
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 860px) {
  .prices { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
}

.price-card {
  background: var(--card);
  border: 4px solid var(--blue-deep);
  border-radius: 0;
  padding: clamp(1.3rem, 3vw, 1.9rem);
  box-shadow: 10px 10px 0 rgba(41, 69, 151, 0.11);
}
.price-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.price-card h3 em {
  font-style: normal;
  font-family: var(--body);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.price-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.price-table th,
.price-table td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--rule); }
.price-table thead th {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  border-bottom-width: 2px;
}
/* every cell but the row label, whichever element it is: the price columns are a th followed
   by tds, so `td + td` used to miss the first figure and "from £342" wrapped across two lines */
.price-table tr > *:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .price-table { font-size: 0.87rem; }
  .price-table th,
  .price-table td { padding: 0.5rem 0.2rem; }
  .price-card { padding: 1.1rem 0.95rem; }
}
.price-table tbody th { font-weight: 400; }
.price-table .free td,
.price-table .free th { color: var(--rose-text); font-weight: 600; }

.price-note {
  margin: 1.4rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- team ---------- */

/* nine people, so three rows of three and nobody stranded on a row of their own */
.team { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .team { grid-template-columns: repeat(3, 1fr); } }
.person {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
.person img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.person__txt { padding: 1rem 1.1rem 1.25rem; }
.person h3 { font-size: 1.02rem; color: var(--ink); }
.person .role {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-text);
  font-weight: 600;
  margin: 0.3rem 0 0.55rem;
}
.person p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* ---------- reviews ---------- */

.reviews {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.review {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--rose);
  border-radius: 0 0 10px 10px;
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.review blockquote {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  line-height: 1.6;
}
.review figcaption {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--muted);
}
.review figcaption b { color: var(--ink); font-weight: 600; }
.stars { color: var(--rose-text); letter-spacing: 0.12em; font-size: 0.9rem; }

.rating-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.2rem;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
}
.rating-strip b { font-family: var(--display); font-size: 1.5rem; color: var(--blue); }

/* ---------- emergency band ---------- */

.emergency {
  background: var(--blue);
  color: #fff;
  padding: clamp(2.2rem, 5vw, 3.4rem) 0;
}
.emergency h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.95rem); }
.emergency p { color: #dbe1f4; max-width: 56ch; }
.emergency__grid {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}
@media (min-width: 820px) {
  .emergency__grid { grid-template-columns: 1.3fr 0.7fr; }
  .emergency__cta { justify-self: end; text-align: right; }
}
.emergency__num {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.7rem;
  letter-spacing: -0.02em;
}
.emergency__num:hover { color: #ffd3dd; }

/* ---------- find us ---------- */

.find {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
}
@media (min-width: 860px) {
  .find { grid-template-columns: 1fr 1fr; }
}
.find h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 0.4rem; }
.find ul { margin: 0 0 1.5rem; padding-left: 1.1rem; color: var(--muted); }
.find li { margin-bottom: 0.35rem; }

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}
.badges img { height: 62px; width: auto; }

.photo-frame {
  border: 4px solid var(--blue-deep);
  box-shadow: 10px 10px 0 rgba(41, 69, 151, 0.11);
}

/* ---------- footer ---------- */

.foot {
  background: var(--ink);
  color: #c4c9de;
  padding: clamp(2.4rem, 5vw, 3.4rem) 0 2rem;
  font-size: 0.92rem;
}
.foot a { color: #fff; }
.foot a:hover { color: #ffb9c8; }
.foot__grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.foot h3 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-family: var(--body);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.foot p { margin: 0 0 0.2rem; }
/* contact lines in the footer are standalone taps, not links inside a sentence, so they get
   a real hit area rather than the height of their own text */
.foot p > a:only-child { display: inline-block; padding: 0.35rem 0; }
.foot__social { display: flex; gap: 0.9rem; margin-top: 0.6rem; }
.foot__base {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  color: #9aa0bb;
}

/* ---------- 404 ---------- */

.oops {
  min-height: 72vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem var(--gutter);
}
.oops h1 { font-size: clamp(2.2rem, 1.4rem + 4vw, 3.6rem); margin-bottom: 0.8rem; }
.oops p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.6rem; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
