/* Hydro Glo Health — the kit.
   Foundation: wcag-aa-8pt, phone-first, 1120px readable column.
   Source: PRODUCT-ENGINE/products/emrj/clients/hydroglo-health/design/foundation-choice.json
   Colour: FIELD roles carry hue as SURFACE (FPM v2 Part 2, A0). Screen colour, saturated (R81/F16).
   Type: Apple HIG named text styles at real point sizes (B1 CARDINAL). */

:root {
  /* FIELD tokens. Direction A: deep teal ground, copper acting. */
  --field:        #0F5F63;   /* clinical water. The dominant ground. */
  --field-ink:    #FFFFFF;
  --field-deep:   #093F42;
  --band:         #E3F1F1;   /* resting coloured surface */
  --band-ink:     #08383B;
  --paper:        #F7FBFB;   /* page ground */
  --paper-card:   #FFFFFF;
  --ink:          #10201F;
  --ink-quiet:    #46605F;
  --rule:         #C9DEDE;
  --accent:       #B5470F;   /* copper. The one thing that acts. */
  --accent-ink:   #FFFFFF;
  --accent-quiet: #FDF1EA;

  /* 8pt spacing scale */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  --radius: 12px;
  --col: 1120px;
  --read: 34rem;

  /* Apple HIG text styles, real point sizes */
  --t-caption2: 11px; --t-caption1: 12px; --t-footnote: 13px;
  --t-subhead: 15px;  --t-callout: 16px;  --t-body: 17px;
  --t-headline: 17px; --t-title3: 20px;   --t-title2: 22px;
  --t-title1: 28px;   --t-large: 34px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* SC 1.4.11: copper on the teal hero computes to 1.36:1 and on the masthead to
   2.15:1. The ring must be visible where the nav and the hero button live. */
.field a:focus-visible, .field-deep a:focus-visible,
.masthead a:focus-visible, .foot a:focus-visible { outline-color: #FFE9DC; }

.wrap { width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 var(--s3); }
.read { max-width: var(--read); }

/* ---- FIELDS: hue as surface, never as a mark ---- */
.field       { background: var(--field); color: var(--field-ink); }
/* `:not(.btn)`: `.field a` outranks `.btn` on specificity and would otherwise
   repaint the booking action's label. */
.field a:not(.btn) { color: #FFD9C4; }
.field-deep  { background: var(--field-deep); color: var(--field-ink); }
.band        { background: var(--band); color: var(--band-ink); }
.paper       { background: var(--paper); color: var(--ink); }
.section     { padding: var(--s6) 0; }
.section-tight { padding: var(--s5) 0; }

/* ---- type ---- */
h1, h2, h3 { margin: 0 0 var(--s2); line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; }
h1 { font-size: var(--t-large); }
h2 { font-size: var(--t-title1); }
h3 { font-size: var(--t-title3); }
p  { margin: 0 0 var(--s2); }
.lede { font-size: var(--t-title3); line-height: 1.45; color: var(--ink-quiet); }
.field .lede { color: #CFE7E7; }
.small { font-size: var(--t-subhead); color: var(--ink-quiet); }

@media (min-width: 700px) {
  h1 { font-size: 46px; }
  h2 { font-size: 34px; }
}

/* ---- masthead ---- */
.masthead { background: var(--field-deep); color: var(--field-ink); }
.masthead .wrap { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; justify-content: space-between; padding-top: var(--s2); padding-bottom: var(--s2); }
.mark { font-weight: 700; font-size: var(--t-title3); color: #fff; text-decoration: none; letter-spacing: -0.02em; }
.mark span { color: #7FD3D6; }
.nav { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.nav a { color: #D5EAEA; text-decoration: none; font-size: var(--t-subhead); }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; }

/* ---- actions: min target 44px (HIG), 24px min per WCAG 2.5.8 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--s3);
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius); border: 0;
  font-size: var(--t-callout); font-weight: 600; text-decoration: none;
}
.btn:hover { background: #8F380B; }
.btn-quiet {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
}
.field .btn-quiet { color: #fff; border-color: #7FD3D6; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s3); }
.tel { font-weight: 600; font-size: var(--t-callout); }
.field .tel a, .field-deep .tel a { color: #fff; }

/* ---- proof band ---- */
.proof { display: grid; gap: var(--s1); grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 620px) { .proof { grid-template-columns: repeat(2, 1fr); gap: var(--s2); } }
@media (min-width: 900px) { .proof { grid-template-columns: repeat(4, 1fr); } }
.proof li {
  background: rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: var(--s2) var(--s3);
  font-weight: 600;
  font-size: var(--t-callout);
}

/* ---- cards ---- */
.cards { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 800px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-top: 6px solid var(--field);
  border-radius: var(--radius);
  padding: var(--s3);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: var(--s1); }
.card .meta { font-size: var(--t-footnote); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; margin-bottom: var(--s1); }
.card p { flex: 1; }

/* ---- lists that carry facts ---- */
.facts { margin: 0 0 var(--s3); padding: 0; list-style: none; }
.facts li { padding: var(--s1) 0 var(--s1) var(--s3); border-bottom: 1px solid var(--rule); position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.field .facts li { border-bottom-color: rgba(255,255,255,.22); }
.band .facts li { border-bottom-color: #B7DCDC; }

.steps { margin: 0 0 var(--s3); padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: var(--s2) 0 var(--s2) var(--s5); border-bottom: 1px solid var(--rule); position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: var(--s2);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--field); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: var(--t-subhead);
}
.steps b { display: block; }

/* ---- quotation ---- */
blockquote {
  margin: var(--s3) 0; padding: var(--s3);
  background: var(--accent-quiet);
  border-left: 6px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--t-title3); line-height: 1.45; color: #3B1A08;
}
blockquote cite { display: block; margin-top: var(--s2); font-size: var(--t-subhead); font-style: normal; font-weight: 700; color: #7A3A15; }
.field blockquote { background: rgba(255,255,255,.10); border-left-color: #FFB98A; color: #EAF6F6; }
.field blockquote cite { color: #FFE9DC; }

/* ---- confirm slot: renders as an empty, visible hole. Never a claim. ---- */
.confirm {
  border: 2px dashed var(--rule); border-radius: var(--radius);
  padding: var(--s2) var(--s3); margin: 0 0 var(--s3);
  color: var(--ink-quiet); font-size: var(--t-subhead); background: #FFF;
}
.confirm b { color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-size: var(--t-caption1); display: block; }

/* ---- image slot: empty until the photograph exists (R20) ---- */
.shot {
  /* A placeholder is a promise, never a feature. Capped so an empty slot can
     never push the booking action below the fold (R20 in the layout). */
  max-width: 440px; margin: var(--s3) 0 0;
  aspect-ratio: 4 / 5; border: 2px dashed var(--rule); border-radius: var(--radius);
  display: grid; place-items: center; gap: var(--s1); color: var(--ink-quiet);
  font-size: var(--t-footnote); text-align: center; padding: var(--s3); background: #fff;
}
.shot-label { color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-size: var(--t-caption1); font-weight: 600; }
.field .shot { background: rgba(255,255,255,.06); color: #CFE7E7; border-color: #3E7F82; }
.field .shot-label { color: #F2C4A4; }

/* ---- footer ---- */
.foot { background: var(--field-deep); color: #CFE7E7; }
.foot a { color: #fff; }
.foot .wrap { padding-top: var(--s5); padding-bottom: var(--s5); display: grid; gap: var(--s4); }
@media (min-width: 800px) { .foot .wrap { grid-template-columns: repeat(3, 1fr); } }
.foot h3 { color: #fff; font-size: var(--t-callout); text-transform: uppercase; letter-spacing: .08em; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: var(--s1); }

/* ---- tap targets. WCAG 2.2 AA (2.5.8) floors at 24px; Apple HIG asks 44px.
   Measured on the preview 2026-09-06: nav links 23px, tel links 19px, card
   links 20px. All three are below the floor and all three are on the path to
   a booking, so the HIG number is the one used here. ---- */
.nav a, .tel a, .card a, .facts a, .foot a {
  display: inline-flex; align-items: center; min-height: 48px;
}
.foot li { display: flex; align-items: center; min-height: 48px; margin-bottom: 0; }
.nav { gap: var(--s1) var(--s3); }
.nav a { padding: 0 2px; }

/* ---- readable measure, B1 ABSOLUTE. Measured 2026-09-06: .facts li rendered
   1048px / 125ch against a 34rem standard, because the markup wraps only the
   heading in .read. The cap belongs on the elements that carry the words. ---- */
.facts, .steps, blockquote, .proof li { max-width: var(--read); }
.cards, .proof { max-width: none; }

.mark { display: inline-block; line-height: 48px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { position: static; display: inline-block; padding: var(--s2); background: var(--accent); color: #fff; }

table { width: 100%; border-collapse: collapse; margin-bottom: var(--s3); }
th, td { text-align: left; padding: var(--s2); border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: var(--t-footnote); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-quiet); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
