/* Dr Halil Hussein - doctor-led aesthetics, Fulham.
   Palette taken from the operating field: surgical drape green on cool paper.
   Mint is the only accent and it appears only where the visitor can act. */

:root {
  --paper:   #ECEFE9;
  --paper-2: #F7F8F5;
  --ink:     #13201E;
  --muted:   #5C6B66;
  --line:    #C9D0C9;
  --drape:   #244B43;
  --drape-2: #17332D;
  --mint:    #86CFB8;

  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans:  'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* fluid spacing, one scale, used everywhere */
  --s1: 0.5rem;
  --s2: 0.875rem;
  --s3: 1.375rem;
  --s4: 2.25rem;
  --s5: clamp(3rem, 6vw, 5rem);
  --s6: clamp(4.5rem, 9vw, 8rem);

  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --measure: 66ch;
  --wide: 74rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--drape);
  color: var(--paper);
  padding: var(--s2) var(--s3);
  font-family: var(--mono);
  font-size: 0.8125rem;
  z-index: 20;
}
.skip:focus { left: var(--gutter); top: var(--s2); }

/* ---------- shared shells ---------- */

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

.narrow { max-width: 54rem; }

/* mono eyebrow, the page's one repeating label device */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s3);
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 42ch;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s2) var(--s4);
  border-bottom: 1px solid var(--line);
  padding-block: var(--s3);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.0625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  margin-right: auto;
}

.masthead-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.masthead-nav a {
  text-decoration: none;
  color: var(--muted);
  padding-block: 2px;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.masthead-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.masthead-call {
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  padding-block: 2px;
  transition: border-color 160ms ease;
}
.masthead-call:hover { border-bottom-color: var(--ink); }

/* On small screens the masthead links are the only non-button tap targets, so give them
   enough vertical room to clear 44px without loosening the desktop masthead. */
@media (max-width: 47.99rem) {
  .masthead { padding-block: var(--s2); }
  .masthead-nav { gap: 0 var(--s3); }
  .masthead-nav a { padding-block: 0.63rem; }
  .masthead-call { padding-block: 0.56rem; }
  .wordmark { padding-block: 0.5rem; }
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--s4);
  border-radius: 2px;
  border: 1px solid var(--drape);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.btn-solid { background: var(--drape); color: var(--paper); }
.btn-solid:hover { background: var(--drape-2); transform: translateY(-1px); }

.btn-line { background: transparent; color: var(--drape); }
.btn-line:hover { background: rgba(36, 75, 67, 0.07); transform: translateY(-1px); }

/* on dark bands */
.on-dark .btn-solid { background: var(--mint); color: var(--drape-2); border-color: var(--mint); }
.on-dark .btn-solid:hover { background: #9BDCC7; }
.on-dark .btn-line { color: var(--paper); border-color: rgba(236, 239, 233, 0.42); }
.on-dark .btn-line:hover { background: rgba(236, 239, 233, 0.1); }

/* ---------- hero ---------- */

.hero { padding-block: var(--s6) var(--s5); }

.hero h1 {
  font-size: clamp(2.55rem, 1.5rem + 6.4vw, 5.25rem);
  max-width: 20ch;
  margin-bottom: var(--s4);
}

.hero .lede { margin-bottom: var(--s4); }

.hero .actions { margin-bottom: var(--s5); }

/* the credential strip: measurements get the measuring typeface */
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  list-style: none;
  margin: 0;
  padding-inline: 0;
}

/* ---------- dark bands ---------- */

.band-dark {
  background: var(--drape);
  color: var(--paper);
}
.band-dark .eyebrow { color: var(--mint); }
.band-dark .lede { color: rgba(236, 239, 233, 0.78); }

/* ---------- honesty band (signature 1) ---------- */

.plainly { padding-block: var(--s5); }

.plainly h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  max-width: 26ch;
  margin-bottom: var(--s4);
}

.quotes {
  display: grid;
  gap: var(--s4);
  margin: 0;
  padding: 0;
}
@media (min-width: 56rem) {
  .quotes { grid-template-columns: repeat(3, 1fr); gap: var(--s4) var(--s5); }
}

.quote {
  margin: 0;
  border-left: 2px solid var(--mint);
  padding-left: var(--s3);
}

.quote p {
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  line-height: 1.42;
  letter-spacing: -0.01em;
}

.quote footer {
  margin-top: var(--s2);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(236, 239, 233, 0.72);
}

/* light-background variant of the quote block, used for patient feedback */
.section .quote { border-left-color: var(--drape); }
.section .quote footer { color: var(--muted); }

.voices-quotes { margin-top: var(--s5); }

.voices-note {
  margin-top: var(--s4);
  font-size: 0.875rem;
  color: var(--muted);
  max-width: var(--measure);
}

.plainly-note {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid rgba(236, 239, 233, 0.2);
  font-size: 0.9375rem;
  color: rgba(236, 239, 233, 0.72);
  max-width: var(--measure);
}

/* ---------- generic light section ---------- */

.section { padding-block: var(--s6); }
.section > .shell > h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  max-width: 24ch;
}
.section-intro { margin-top: var(--s3); }

.section + .section { border-top: 1px solid var(--line); }

/* ---------- consultation rows ---------- */

.assess {
  list-style: none;
  margin: var(--s5) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.assess li {
  display: grid;
  gap: var(--s1) var(--s4);
  padding-block: var(--s3);
  border-top: 1px solid var(--line);
}
.assess li:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 44rem) {
  .assess li { grid-template-columns: 9rem 1fr; align-items: baseline; }
}

.assess dt, .assess-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.assess-body { max-width: var(--measure); }

/* ---------- the depth diagram (signature) ---------- */

.protocol { padding-block: var(--s6); }

.protocol h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  max-width: 26ch;
  margin-bottom: var(--s4);
}

.protocol .lede { margin-bottom: var(--s5); max-width: 56ch; }

.strata {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(134, 207, 184, 0.28);
}

/* bottom-up: the treatment starts beneath the skin and works to the surface,
   so step 1 sits at the bottom and the strata lighten upward */
.stratum {
  display: grid;
  gap: var(--s1) var(--s4);
  padding: var(--s4) var(--s3);
  border-bottom: 1px solid rgba(134, 207, 184, 0.22);
}
.stratum:last-child { border-bottom: 0; }

@media (min-width: 48rem) {
  .stratum { grid-template-columns: 8.5rem 2.5rem 1fr; align-items: start; }
}

/* depth reads as tone: lightest at the surface, darkest beneath the dermis */
.stratum-surface { background: rgba(134, 207, 184, 0.20); }
.stratum-dermis  { background: rgba(11, 33, 28, 0.34); }
.stratum-beneath { background: #0C221D; }

/* Neutral rather than mint: at 11px mint only reaches 3.7:1 against the lightest stratum,
   under the 4.5:1 needed for small text. Mint stays on the step numerals, which are large
   enough to pass at 3:1. */
.plane {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(236, 239, 233, 0.88);
  padding-top: 0.35em;
}

.step-no {
  font-family: var(--mono);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--mint);
  font-weight: 500;
}

.stratum h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  margin-bottom: var(--s1);
}

.stratum p {
  color: rgba(236, 239, 233, 0.92);
  max-width: 54ch;
  font-size: 0.9688rem;
}

.protocol-outcome {
  margin-top: var(--s4);
  display: grid;
  gap: var(--s3);
  padding: var(--s4);
  background: rgba(236, 239, 233, 0.06);
  border-left: 2px solid var(--mint);
}
.protocol-outcome p { max-width: var(--measure); }
.protocol-outcome .eyebrow { margin-bottom: 0; }

/* ---------- treatment ledger ---------- */

/* Multi-column rather than grid: the groups are wildly different lengths, and a grid row would
   stretch to the tallest of each pair and leave holes. Columns flow and pack. */
.ledger { margin-top: var(--s5); }

.ledger-group { margin-bottom: var(--s5); }
.ledger-group:last-child { margin-bottom: 0; }

@media (min-width: 52rem) {
  .ledger { columns: 2; column-gap: var(--s6); }
  .ledger-group { break-inside: avoid; }
}

.ledger-group h3 {
  font-size: 1.3125rem;
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--ink);
}

.ledger-note {
  margin-top: var(--s2);
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 46ch;
}

.rates {
  list-style: none;
  margin: var(--s3) 0 0;
  padding: 0;
}

.rate {
  display: flex;
  align-items: baseline;
  gap: var(--s1);
  padding-block: 0.4rem;
}

.rate-name { flex: 0 1 auto; }

.rate-lead {
  flex: 1 1 1.5rem;
  min-width: 1rem;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-0.3em);
}

.rate-price {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ledger-foot {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: var(--measure);
}

/* ---------- visit + enquiry ---------- */

.visit-grid {
  margin-top: var(--s5);
  display: grid;
  gap: var(--s5);
}
@media (min-width: 56rem) {
  .visit-grid { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: var(--s6); }
}

.facts { margin: 0; }

.facts dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: var(--s3);
}
.facts dt:first-child { margin-top: 0; }

.facts dd { margin: 0.3rem 0 0; }

.facts a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 160ms ease;
}
.facts a:hover { border-bottom-color: var(--ink); }

.hours {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.85;
}
.hours li { display: flex; gap: var(--s1); }
.hours span:first-child { flex: 0 0 5.5rem; color: var(--muted); }
.hours .shut { color: var(--muted); }

/* form */

.enquiry {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: var(--s4);
}

.field-row { display: grid; gap: var(--s3); }
@media (min-width: 34rem) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field { display: grid; gap: 0.35rem; margin-bottom: var(--s3); }

.field label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.7rem var(--s2);
  min-height: 46px;
  width: 100%;
  transition: border-color 160ms ease;
}
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }

.form-note {
  margin-top: var(--s3);
  font-size: 0.8125rem;
  color: var(--muted);
}

.sent {
  margin-top: var(--s3);
  padding: var(--s3);
  background: var(--drape);
  color: var(--paper);
  border-radius: 2px;
  font-size: 0.9375rem;
}
.sent[hidden] { display: none; }
.sent a { color: var(--mint); }

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

.site-footer {
  background: var(--drape-2);
  color: rgba(236, 239, 233, 0.76);
  padding-block: var(--s5) var(--s4);
  font-size: 0.9375rem;
}

.footer-top {
  display: grid;
  gap: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 1px solid rgba(236, 239, 233, 0.16);
}
@media (min-width: 48rem) {
  .footer-top { grid-template-columns: 1fr auto; align-items: end; }
}

.site-footer .wordmark { color: var(--paper); display: inline-block; }

.site-footer a { color: var(--mint); }

.footer-legal {
  margin-top: var(--s4);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(236, 239, 233, 0.58);
  max-width: var(--measure);
}

.footer-preview {
  margin-top: var(--s3);
  font-size: 0.8125rem;
  color: rgba(236, 239, 233, 0.62);
  max-width: var(--measure);
}

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

.oops { padding-block: var(--s6); }
.oops h1 {
  font-size: clamp(2.25rem, 1.5rem + 4vw, 3.75rem);
  margin-bottom: var(--s3);
}
.oops .lede { margin-bottom: var(--s4); }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}
