/* Harmony Nursing and Allied Health: site styles
   Brand colours and fonts live here in :root only. If the brand values change,
   update this block and nothing else. */

:root {
  /* Colours (sampled from the logo, see BUILD-BRIEF.md section 3) */
  --deep: #123C36;            /* primary: buttons, dark bands */
  --mid: #456A61;             /* links and accents on light */
  --sage: #6C8A7E;            /* decorative only, never text on light */
  --accent-on-dark: #8FAA9D;  /* rules and lines on deep backgrounds */
  --tint: #E4ECE8;            /* soft panels, chips */
  --ground: #F6F6F3;          /* page background */
  --ink: #14231F;             /* body text */
  --muted: #4A5753;           /* secondary text */
  --line: #D8DEDA;            /* borders */
  --white: #FFFFFF;
  --on-dark: #E8EFEA;         /* body text on deep */
  --footer-text: #DDE3DF;     /* text on ink footer */
  --footer-soft: #B9C2BD;
  --deep-hover: #0B2925;      /* primary button hover */
  --footer-rule: #3A4541;     /* divider in footer */
  --menu-shadow: 0 12px 24px rgba(20, 35, 31, 0.08);

  /* Type */
  --font-head: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Helvetica Neue", sans-serif;

  /* Layout */
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 24px);
  --radius: 6px;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  /* Keeps the footer at the bottom on short pages */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }

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

h1, h2, h3 { margin: 0; line-height: 1.12; }
h1, h2 { font-family: var(--font-head); font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1.08; }
h2 { font-size: clamp(30px, 4vw, 40px); }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }

p { margin: 0; }

a { color: var(--mid); text-underline-offset: 3px; }
a:hover { color: var(--deep); }
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Standalone text link with a 44px tap target */
.link-strong {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

:focus-visible {
  outline: 3px solid var(--deep);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.utility :focus-visible,
.site-footer :focus-visible { outline-color: var(--white); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--white);
  color: var(--deep);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }
.skip-link:focus-visible { outline-color: var(--white); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
}
.btn--primary { background: var(--deep); color: var(--white); border: 1.5px solid var(--deep); }
.btn--primary:hover { background: var(--deep-hover); color: var(--white); }
.btn--outline { border: 1.5px solid var(--deep); color: var(--deep); background: transparent; }
.btn--outline:hover { background: var(--tint); color: var(--deep); }
.btn--light { background: var(--white); color: var(--deep); border: 1.5px solid var(--white); }
.btn--light:hover { background: var(--tint); color: var(--deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Utility bar ---------- */

.utility { background: var(--deep); color: var(--white); font-size: 14px; }
.utility__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 20px;
}
.utility__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
/* On small screens keep only the hours and phone in the top bar (email is in the footer and on Contact) */
@media (max-width: 639px) {
  .utility .utility__place, .utility a.utility__email { display: none; }
}
.utility a {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.utility a:hover { color: var(--tint); }

/* ---------- Header and navigation ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 8px 10px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: block; flex: 0 0 auto; margin-right: auto; }
.brand img { height: 44px; width: auto; }

.header-cta { padding: 10px 14px; min-height: 44px; font-size: 15px; white-space: nowrap; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--menu-shadow);
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0 auto;
  max-width: var(--max);
  padding: 8px var(--gutter) 16px;
}
.site-nav li + li { border-top: 1px solid var(--line); }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
}
.site-nav a:hover { color: var(--deep); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--deep); font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }
.nav-note { font-size: 13px; color: var(--muted); margin-left: 6px; }

@media (min-width: 900px) {
  .brand img { height: 58px; }
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    box-shadow: none;
    border: 0;
    background: none;
  }
  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 24px;
    padding: 0;
  }
  .site-nav li + li { border-top: 0; }
  .site-nav a { min-height: 44px; font-size: 16px; }
  .site-header__inner { padding-top: 18px; padding-bottom: 18px; column-gap: 24px; }
  .header-cta { padding: 11px 20px; font-size: 16px; }
  /* Desktop order: logo, nav, button */
  .site-nav { order: 2; }
  .header-cta { order: 3; }
}

.nav-referral { display: none; }
@media (min-width: 900px) and (max-width: 1099px) {
  .site-header__inner { column-gap: 14px; }
  .brand img { height: 50px; }
  .site-nav ul { gap: 0 14px; }
  .site-nav a { font-size: 15px; }
  .nav-note { margin-left: 4px; }
  .header-cta { padding: 10px 12px; font-size: 15px; }
}

@media (max-width: 359px) {
  .header-cta { display: none; }
  .nav-referral { display: block; }
}

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

.section { padding-top: clamp(56px, 8vw, 88px); padding-bottom: clamp(56px, 8vw, 88px); }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--deep { background: var(--deep); color: var(--white); }
.section--tint { background: var(--tint); }

.kicker { font-size: 15px; font-weight: 600; color: var(--deep); }
.h-small { font-family: var(--font-body); font-size: 19px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.h-medium { font-size: 28px; }
.lead.lead--ink { color: var(--ink); font-size: 20px; }
.ink { color: var(--ink); }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--lg { gap: 24px; }
.stack--xl { gap: 40px; }
.stack--tight { gap: 6px; }

/* Two columns that stack on small screens */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
}
.split > * { min-width: 0; }
.split__narrow { flex: 1 1 300px; }
.split__wide { flex: 2 1 520px; }
.split__half { flex: 1 1 400px; }

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

.hero { padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(56px, 9vw, 104px); }
.hero__inner { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { max-width: 20em; }
.hero .lead { max-width: 36em; }

/* ---------- Bordered list rows ---------- */

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.row-link {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 22px 0;
  color: var(--ink);
  text-decoration: none;
}
.row-link__title { font-weight: 600; font-size: 19px; }
.row-link__text { color: var(--muted); flex: 1 1 260px; max-width: 26em; }
.row-link:hover .row-link__title { text-decoration: underline; color: var(--deep); }

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

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px 40px;
}
@media (min-width: 640px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.services li { display: flex; flex-direction: column; gap: 6px; }
.services__num { font-family: var(--font-head); font-size: 18px; color: var(--mid); }
.services p { color: var(--muted); font-size: 17px; }

/* ---------- Steps (on deep) ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 2px solid var(--accent-on-dark);
  padding-top: 18px;
}
.steps__title { font-weight: 600; font-size: 20px; }
.steps__text { color: var(--on-dark); }

/* ---------- Notices and panels ---------- */

.notice {
  background: var(--tint);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 16px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

/* ---------- Profile ---------- */

.profile { align-items: flex-start; }
.profile__photo { flex: 1 1 300px; max-width: 440px; aspect-ratio: 4 / 5; }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Meet the team */
.h-name { font-family: var(--font-head); font-weight: 500; font-size: clamp(26px, 3.4vw, 32px); letter-spacing: -0.01em; line-height: 1.15; }
.role-line { font-weight: 600; color: var(--mid); }
.bio-opener { font-family: var(--font-head); font-size: 24px; line-height: 1.25; }

/* ---------- Coming-soon band ---------- */

.band__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  padding-top: 44px;
  padding-bottom: 44px;
}
.band__title { font-family: var(--font-head); font-size: 28px; line-height: 1.2; }

/* ---------- Referral page ---------- */

.referral-layout { align-items: flex-start; }
.referral-layout__info { flex: 1 1 320px; }
.referral-layout__form { flex: 1.4 1 480px; }
.plain-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }

.embed-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.embed-box__label {
  background: var(--tint);
  padding: 12px 24px;
  font-size: 14px;
  color: var(--muted);
}
.embed-box__body { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.embed-box__foot { padding: 0 28px 24px; font-size: 15px; color: var(--muted); }

/* ---------- Coming-soon page ---------- */

.soon { align-items: center; }
.soon__text { flex: 1 1 480px; max-width: 640px; }
.soon__mark { flex: 1 1 280px; display: flex; justify-content: center; }
.soon__mark img { width: min(280px, 60vw); height: auto; opacity: 0.35; }
.pill {
  align-self: flex-start;
  background: var(--tint);
  color: var(--deep);
  font-size: 14px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--footer-text); font-size: 15px; }
.site-footer__inner { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: flex-start; }
.site-footer__col { display: flex; flex-direction: column; gap: 4px; flex: 0 1 auto; min-width: 180px; }
.site-footer__heading {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: 4px;
}
.site-footer a {
  color: var(--footer-text);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer a:hover { color: var(--white); }
.site-footer__legal {
  border-top: 1px solid var(--footer-rule);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--footer-soft);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}


/* ---------- Inner pages ---------- */

.page-head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }

.prose { max-width: 40em; }
.prose > * + * { margin-top: 16px; }
.prose ul, .prose ol { margin: 16px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose p + ul, .prose p + ol { margin-top: 8px; }

/* Content rows separated by a rule; alternate white for rhythm */
.doc-section { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.doc-section--white { background: var(--white); }
.service { scroll-margin-top: 16px; }
.service__head { display: flex; flex-direction: column; gap: 6px; }
.service__head h2 { font-size: clamp(26px, 3.4vw, 34px); }

/* "On this page" list */
.jump-list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.jump-list li { border-bottom: 1px solid var(--line); }
.jump-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 6px 0;
  color: var(--ink);
  text-decoration: none;
}
.jump-list a:hover { color: var(--deep); text-decoration: underline; }
.jump-list .services__num { min-width: 26px; }

/* Price table */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.price-table th, .price-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--tint); font-size: 15px; }
.price-table tbody th { font-weight: 400; }
.price-table td { font-weight: 600; width: 38%; }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }

/* Label and value rows (contact details, complaint bodies) */
.fact-rows { list-style: none; margin: 0; padding: 0; }
.fact-rows li { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.fact-rows li:last-child { border-bottom: 1px solid var(--line); }
.fact-rows__label { flex: 0 0 180px; font-weight: 600; }
.fact-rows__value { flex: 1 1 240px; min-width: 0; }
.link-block { display: inline-flex; align-items: center; min-height: 44px; }

.panel--emergency { background: var(--white); border: 2px solid var(--deep); }

/* Desktop footer: tighter link rows (touch screens keep 44px targets) */
@media (min-width: 900px) and (pointer: fine) {
  .site-footer__col { gap: 0; }
  .site-footer a { min-height: 32px; }
}

/* Word roller controls (component in components/word-roller, not edited here):
   keep the small pause button close to the line it controls, with a visible focus ring on our backgrounds. */
.hero .word-roller-controls { margin-top: -0.5rem; margin-bottom: -0.5rem; }
.word-roller-controls .word-roller__control:focus-visible { outline: 3px solid var(--deep); outline-offset: 2px; opacity: 1; }
/* With JavaScript off the roller never fills its control container, so don't leave a gap */
.word-roller-controls:empty { display: none; }
