/* ==========================================================================
   Dr Christopher Flood — stylesheet
   Edit the values in :root below to change colours, type or spacing site-wide.
   ========================================================================== */

:root {
  --ground: #f3f2f2;        /* page background */
  --surface: #eae9e9;       /* tinted panels */
  --ink: #201e1d;           /* headings */
  --ink-body: #444141;      /* body copy */
  --ink-muted: #605d5d;     /* labels, secondary notes (5.2:1 on the ground) */
  --accent: #ec3013;        /* buttons, rules, small emphasis */
  --accent-text: #ae1800;   /* accent at paragraph size (keeps contrast) */
  --rule: rgba(32, 30, 29, .4);
  --rule-light: rgba(32, 30, 29, .25);

  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 60px);
  --section-y: clamp(40px, 6vw, 64px);
  --max: 1440px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Clears the sticky header on in-page jumps. The header is taller on small
     screens because the nav wraps under the brand — hence the breakpoints. */
  scroll-padding-top: 112px;
}
@media (min-width: 701px) and (max-width: 860px) {
  html { scroll-padding-top: 140px; }
}
@media (min-width: 861px) {
  html { scroll-padding-top: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(236, 48, 19, .18); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Full-bleed grid sections (hero, interests, appointments) sit inside a band so
   they hold the same 1440px measure as the .wrap sections on wide monitors,
   while their dividing rules still run edge to edge. */
.band { border-bottom: 2px solid var(--rule); }
.band > * { max-width: var(--max); margin-inline: auto; }
.rule-top { border-top: 2px solid var(--rule); }
.rule-bottom { border-bottom: 2px solid var(--rule); }

.label {
  margin: 0 0 10px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.label--accent { color: var(--accent-text); }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px;
  z-index: 20;
  background: var(--ink); color: var(--ground);
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease;
}
.btn svg { flex: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { background: #c1250c; color: #fff; }
.btn--primary:active { background: #9d1d09; }
.btn--outline { border-color: var(--rule); color: var(--ink); }
.btn--outline:hover, .btn--outline:focus-visible { background: rgba(236, 48, 19, .08); color: var(--ink); }

/* --- Header -------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ground);
  border-bottom: 2px solid var(--rule);
}
.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 14px;
}
.brand { text-decoration: none; display: block; }
.brand__name {
  display: block;
  font-size: clamp(.85rem, 2.6vw, 1rem);
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand__role {
  display: block;
  margin-top: 3px;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
}
.header__nav a:not(.btn) {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.header__nav a:not(.btn):hover { color: var(--accent-text); }
.header__nav .btn { min-height: 44px; padding: 10px 16px; font-size: .85rem; }
@media (max-width: 700px) {
  .header__cta { display: none; } /* the pinned call bar takes over */
}
@media (min-width: 701px) and (max-width: 860px) {
  .header__inner { padding-block: 10px; }
  .header__nav { gap: 16px; }
  .header__nav .btn { min-height: 40px; padding: 8px 14px; }
}
@media (max-width: 400px) {
  .header__nav { gap: 12px; }
  .header__nav a:not(.btn) { font-size: .72rem; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
}
.hero__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 80px) var(--gutter);
}
.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 5.4vw, 4.75rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.hero__lede {
  max-width: 46ch;
  margin-bottom: 28px;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__figure {
  margin: 0;
  background: var(--surface);
  border-left: 2px solid var(--rule);
}
.hero__figure img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__figure { order: -1; border-left: 0; border-bottom: 2px solid var(--rule); }
  .hero__figure img { max-height: 58vh; }
}

/* --- Sections ------------------------------------------------------------ */

.section { padding-block: var(--section-y); border-bottom: 2px solid var(--rule); }
.section__head { margin-bottom: clamp(24px, 3vw, 36px); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.375rem); }

.about {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.about__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
}

/* Clinical interests: photo beside a two-cell list */
.interests {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
}
.interests__figure { margin: 0; background: var(--surface); border-right: 2px solid var(--rule); }
.interests__figure img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: 50% 30%; }
.interests__body { padding: var(--section-y) var(--gutter); }
.interests__list {
  display: grid;
  /* Four items: one column, then 2 x 2 — never a lone item stranded on its
     own row. (The list sits in the narrower right-hand column, so a single
     row of four would leave slivers.) */
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--rule);
  border-block: 2px solid var(--rule);
  margin-top:15px;
}
.interests__list li {
  background: var(--ground);
  padding: 20px 18px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}
@media (min-width: 560px) {
  .interests__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .interests { grid-template-columns: 1fr; }
  .interests__figure { border-right: 0; border-bottom: 2px solid var(--rule); }
  .interests__figure img { max-height: 42vh; }
}

/* GP referral note under the clinical interests list */
.gp-info {
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 20px;
  border-top: 0px solid var(--rule);
}
.gp-info h3 { font-size: 1.125rem; margin-bottom: 8px; }
.gp-info p { font-size: .95rem; }
.gp-info a { word-break: break-word; }

/* --- Locations ----------------------------------------------------------- */

/* Locations: heading stays inset with the rest of the copy, the card grid runs
   the full width of the measure like the hero and interests photographs. */
.wrap--flush { padding-inline: 0; }
.wrap--flush > .locations__head { padding-inline: var(--gutter); }
#locations { border-top: 0px solid var(--rule); border-bottom: 0; }

.locations__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.locations__head p { max-width: 40ch; margin: 0; color: var(--ink-body); }
.locations {
  display: grid;
  /* Five rooms + the urgent-referrals note = six cells, so the grid always
     fills completely: 3 x 2 on desktop, 2 x 3 on tablet, one column on phones. */
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 2px solid var(--rule);
}
/* Outer cells pick up the page gutter so card copy shares the left edge with
   every heading and paragraph on the page. */
.locations > * { padding-inline: 22px; }
.locations > *:first-child { padding-left: var(--gutter); }
.locations > *:last-child { padding-right: var(--gutter); }
@media (min-width: 560px) {
  .locations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .locations > *:nth-child(2n + 1) { padding-left: var(--gutter); }
  .locations > *:nth-child(2n) { padding-right: var(--gutter); }
}
@media (min-width: 900px) {
  .locations { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .locations > *:nth-child(2n + 1) { padding-left: 22px; }
  .locations > *:nth-child(2n) { padding-right: 22px; }
  .locations > *:nth-child(3n + 1) { padding-left: var(--gutter); }
  .locations > *:nth-child(3n) { padding-right: var(--gutter); }
}
.location {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--ground);
  padding: 24px 22px;
}
.location::before {
  content: "";
  width: 36px;
  height: 4px;
  background: var(--accent);
}
.location h3 {
  font-size: 1.25rem;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.location address { font-style: normal; font-size: .9rem; line-height: 1.55; }
.location__getting { margin: 0; font-size: .8rem; line-height: 1.6; color: var(--ink-muted); }
.location__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
}
.locations__note {
  background: var(--surface);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.locations__note .label { margin: 0; }
.locations__note p { font-size: .9rem; }

/* --- Appointments -------------------------------------------------------- */

.appointments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--rule);
}
.appointments__body { padding: var(--section-y) var(--gutter); }
.appointments h2 { margin-bottom: 16px; }
.appointments__body p { max-width: 44ch; }
.appointments .btn { margin-top: 8px; font-size: clamp(1.1rem, 2.2vw, 1.375rem); }
.referral {
  padding: var(--section-y) var(--gutter);
  background: var(--surface);
  border-left: 2px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.referral__head { display: flex; align-items: center; gap: 10px; }
.referral__head svg { flex: none; color: var(--accent); }
.referral__head span {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.referral p { font-size: 1.0625rem; color: var(--ink); }
@media (max-width: 860px) {
  .appointments { grid-template-columns: 1fr; }
  .referral { border-left: 0; border-top: 2px solid var(--rule); }
}

/* --- Footer + pinned call bar -------------------------------------------- */

.footer { background: var(--ink); color: #9b9797; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px;
  font-size: .8rem;
}
.footer strong { display: block; color: var(--ground); font-size: .85rem; letter-spacing: .02em; }
.footer a { color: var(--ground); }

.callbar { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: 72px; }
  .callbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 12;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 16px;
    background: var(--ground);
    border-top: 2px solid var(--rule);
    box-shadow: 0 -3px 10px rgba(45, 43, 43, .16);
  }
  .callbar__label { font-size: .6rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
  .callbar__number { font-size: .95rem; font-weight: 800; color: var(--ink); }
  .callbar .btn { min-height: 44px; padding: 10px 18px; font-size: .9rem; }
}

/* --- Print --------------------------------------------------------------- */

@media print {
  .header, .callbar, .hero__actions, .location__link { display: none; }
  body { padding-bottom: 0; }
  .hero, .interests, .appointments { grid-template-columns: 1fr; }
}
