/* ==========================================================================
   Primavera Domiciliary Care Services Ltd
   main.css — site-wide design system
   Fonts: Source Serif 4 (display) + Karla (body)
   ========================================================================== */

/* ---------------------------------------------------------------- Tokens -- */
:root {
  /* Brand palette */
  --bg:            #FAF8F4;   /* warm page background            */
  --surface:       #ffffff;   /* cards                           */
  --surface-alt:   #FDFCFA;   /* form inputs                     */
  --teal:          #2BA9A2;   /* primary accent / buttons        */
  --teal-dark:     #12615C;   /* headings, brand, dark bands     */
  --teal-darker:   #0D4A46;   /* deepest teal                    */
  --teal-border:   #1E7A74;   /* borders on dark bands           */
  --teal-light:    #7ED0CA;   /* light accent on dark            */
  --mint:          #E4F3F2;   /* soft mint fills                 */
  --mint-border:   #BFE3E0;

  /* Ink / text */
  --ink:           #22312F;
  --ink-strong:    #173B38;
  --ink-med:       #33504D;
  --ink-soft:      #4C5E5B;
  --muted:         #5A6B69;
  --muted-2:       #7A8886;
  --muted-3:       #8A9694;

  /* Lines */
  --line:          #E8E4DC;
  --line-2:        #DDD8CE;
  --line-3:        #EFEBE3;

  /* On dark bands */
  --on-dark:        #C9E2E0;
  --on-dark-soft:   #A9CFCC;
  --on-dark-bright: #DFF1EF;

  /* States / misc */
  --error:         #B4452F;
  --cqc-purple:    #3B2B56;
  --cqc-amber:     #ED8B00;

  /* Shape */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 4px 14px rgba(23, 59, 56, 0.08);
  --shadow-md: 0 10px 26px rgba(18, 97, 92, 0.14);
  --shadow-lg: 0 18px 44px rgba(18, 97, 92, 0.20);

  /* Type */
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:  'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--teal-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink-strong);
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
}

input, select, textarea, button { font-family: var(--sans); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ------------------------------------------------------------- Layout ----- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: 980px; }
.container--slim   { max-width: 900px; }
.container--prose  { max-width: 760px; }

.section        { padding-block: 64px; }
.section--sm    { padding-block: 44px; }
.section--lg    { padding-block: 80px; }
.section--flush-top    { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

/* full-width coloured bands */
.band          { background: var(--teal-dark); color: var(--on-dark); }
.band--darker  { background: var(--teal-darker); }
.band .eyebrow { color: var(--teal-light); }
.band h1, .band h2, .band h3 { color: #fff; }

/* simple vertical rhythm helper */
.stack { display: flex; flex-direction: column; }
.stack--xs { gap: 8px; }
.stack--sm { gap: 14px; }
.stack--md { gap: 18px; }
.stack--lg { gap: 24px; }

/* grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.wrap { display: flex; flex-wrap: wrap; gap: 10px; }

.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.self-start { align-self: flex-start; }

/* --------------------------------------------------------- Typography ----- */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
}

.title-hero { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; color: var(--ink-strong); text-wrap: balance; }
.title-1    { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.12; color: var(--ink-strong); text-wrap: balance; }
.title-2    { font-size: clamp(26px, 3.2vw, 36px); color: var(--ink-strong); }
.title-3    { font-size: 24px; color: var(--ink-strong); }

.lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}
.measure    { max-width: 66ch; }
.measure-sm { max-width: 56ch; }

/* inline text link with a soft underline accent */
.inline-link {
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1.5px solid var(--mint-border);
  padding-bottom: 1px;
}
.inline-link:hover { border-color: var(--teal); }

/* "Also available" row */
.also-available { margin-top: 22px; align-items: center; }
.also-available__label { font-size: 14px; font-weight: 700; color: var(--ink-strong); }

/* generic underline link ("See all services →") */
.link-arrow {
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
  align-self: flex-start;
}
.link-arrow:hover { color: var(--teal); }

/* prose article body */
.prose { display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: 26px; margin-top: 18px; }
.prose h3 { font-size: 22px; font-weight: 600; }
.prose p  { margin: 0; font-size: 16px; line-height: 1.8; color: var(--ink-med); }
.prose p.lead-para { font-size: 16.5px; }
.prose ul, .prose ol {
  margin: 0; padding-left: 22px;
  font-size: 16px; line-height: 1.85; color: var(--ink-med);
  display: flex; flex-direction: column; gap: 10px;
}
.prose a { color: var(--teal-dark); font-weight: 600; }
.prose .meta { font-size: 14px; color: var(--muted-2); }

/* --------------------------------------------------------------- Badges --- */
.badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
}

/* pill chip used for service/area tags */
.pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 9px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--teal-dark);
}

/* trust badge (hero eyebrow with shield icon) */
.trust-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--mint);
  border: 1px solid var(--mint-border);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--r-pill);
}

/* icon chip (rounded square with an svg) */
.icon-badge {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--mint);
  display: grid;
  place-items: center;
}
.icon-badge--sm { width: 46px; height: 46px; border-radius: 50%; }
.icon-badge--lg { width: 74px; height: 74px; border-radius: 18px; }
.icon-badge svg { display: block; }

/* --------------------------------------------------------------- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 3px 12px rgba(43, 169, 162, 0.38);
}
.btn--primary:hover { background: var(--teal-dark); color: #fff; }

.btn--ghost {
  background: var(--surface);
  color: var(--teal-dark);
  border: 2px solid var(--mint-border);
  padding: 12px 22px;
}
.btn--ghost:hover { border-color: var(--teal); }

/* on dark bands */
.btn--on-dark { background: var(--teal); color: #fff; }
.btn--on-dark:hover { background: var(--teal-light); color: var(--teal-darker); }

.btn--outline-dark {
  background: transparent;
  color: #fff;
  border: 2px solid var(--teal-border);
  padding: 12px 22px;
}
.btn--outline-dark:hover { border-color: var(--teal-light); }

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

.btn--sm { font-size: 15px; padding: 12px 22px; }
.btn--block { width: 100%; justify-content: center; }

.btn-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 28px;
}
.card--flush { padding: 0; overflow: hidden; }

/* stat / value cards */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-card__figure {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--teal-dark);
}
.stat-card__label { font-size: 14px; color: var(--muted); line-height: 1.5; }

.value-card { display: flex; flex-direction: column; gap: 10px; }
.value-card__title { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--teal-dark); }
.value-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* media card (image on top + body) used by services + blog grids */
.media-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .18s ease, border-color .18s ease;
}
a.media-card:hover { box-shadow: var(--shadow-md); border-color: var(--mint-border); }
.media-card__img { width: 100%; height: 180px; object-fit: cover; }
.media-card__img--sm { height: 170px; }
.media-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 9px; }
.media-card__title { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink-strong); }
.media-card__text { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.card-meta { display: flex; gap: 10px; align-items: center; }
.card-meta__time { font-size: 12.5px; color: var(--muted-2); }

/* service detail row (icon + copy) */
.service-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  scroll-margin-top: 24px;
}
.service-row__body { display: flex; flex-direction: column; gap: 10px; }
.service-row__body h2 { font-size: 26px; }
.service-row__body p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.service-row__body ul {
  margin: 4px 0 0; padding-left: 20px;
  font-size: 14.5px; line-height: 1.9; color: var(--muted);
}

/* ---------------------------------------------------------------- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 52px;
  align-items: center;
}
.hero--text-wide { grid-template-columns: 1.2fr 1fr; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.hero__floating {
  position: absolute;
  left: 22px; bottom: -26px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: 0 10px 28px rgba(23, 59, 56, 0.18);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__floating strong { font-weight: 700; font-size: 16px; color: var(--ink-strong); }
.hero__floating span   { font-size: 13.5px; color: var(--muted); }

/* section heading row with a trailing link */
.section-head {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 30px;
}
.section-head .link-arrow { margin-left: auto; margin-bottom: 4px; }

/* --------------------------------------------------------- Numbered steps - */
.step-card {
  background: var(--teal-darker);
  border: 1px solid var(--teal-border);
  border-radius: var(--r-lg);
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-card__num { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--teal-light); line-height: 1; }
.step-card__title { font-size: 19px; font-weight: 700; color: #fff; }
.step-card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--on-dark); }

/* quote cards for CQC "what inspectors found" */
.quote-mini {
  background: var(--teal-darker);
  border: 1px solid var(--teal-border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quote-mini__tick { color: var(--teal-light); font-weight: 700; font-size: 14px; }
.quote-mini p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--on-dark-bright); }

/* --------------------------------------------------------- Testimonials --- */
.testimonial {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  border-left: 4px solid var(--teal);
  padding: 20px 24px;
}
.testimonial blockquote { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.6; color: var(--ink); }
.testimonial figcaption { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted-2); }

.quote-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quote-card__mark { color: var(--teal); font-family: var(--serif); font-size: 44px; line-height: 0.6; margin-top: 10px; }
.quote-card blockquote { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--ink); }
.quote-card figcaption { font-size: 13.5px; font-weight: 600; color: var(--muted-2); border-top: 1px solid var(--line-3); padding-top: 12px; }

/* big survey figure card (dark) */
.figure-card {
  background: var(--teal-dark);
  border-radius: var(--r-lg);
  padding: 30px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.figure-card__num { font-family: var(--serif); font-size: 46px; font-weight: 700; color: var(--teal-light); line-height: 1; }
.figure-card__label { font-size: 15.5px; font-weight: 700; color: #fff; }
.figure-card__sub { font-size: 13.5px; color: var(--on-dark-soft); }

/* ----------------------------------------------------------- CQC widget --- */
.cqc-widget {
  width: 250px;
  flex: none;
  background: var(--surface);
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cqc-widget--sm { width: 240px; }
.cqc-widget__head {
  background: var(--cqc-purple);
  color: #fff;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.cqc-widget__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.cqc-widget__provider { font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--ink-med); }
.cqc-widget__rating { display: flex; align-items: center; gap: 9px; }
.cqc-widget__dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--cqc-amber); }
.cqc-widget__rating strong { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.2; display: block; }
.cqc-widget__rating small { font-size: 11px; color: var(--muted-2); }
.cqc-widget__link { font-size: 12px; font-weight: 700; color: var(--teal-dark); text-decoration: underline; }
.cqc-widget__link:hover { color: var(--teal); }

/* CQC honesty panel (home) */
.cqc-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
}
.cqc-panel__body { display: flex; flex-direction: column; gap: 8px; }
.cqc-panel__body p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* dark inset panel (e.g. About improvement plan) */
.panel-dark {
  background: var(--teal-darker);
  border: 1px solid var(--teal-border);
  border-radius: var(--r-lg);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--on-dark-bright);
}
.panel-dark h2, .panel-dark h3 { color: #fff; }
.panel-dark ul {
  margin: 0; padding-left: 18px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 14.5px; line-height: 1.6; color: var(--on-dark-bright);
}

/* teal highlight for inline <strong> */
.hl { color: var(--teal-dark); }

/* ------------------------------------------------------------- CTA bands -- */
.cta {
  background: var(--teal-dark);
  border-radius: var(--r-lg);
  padding: 34px 40px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.cta__body { display: flex; flex-direction: column; gap: 8px; }
.cta h2, .cta__body strong { color: #fff; }
.cta h2 { font-size: 24px; }
.cta p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--on-dark); }
.cta__actions { flex: none; margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; }

.cta--mint { background: var(--mint); border: 1px solid var(--mint-border); }
.cta--mint h2 { color: var(--teal-dark); }
.cta--mint p  { color: var(--ink-med); }

/* small dark CTA used at the end of articles */
.cta--compact { padding: 30px 34px; }
.cta--compact .cta__title { font-family: var(--serif); font-size: 21px; font-weight: 700; color: #fff; }
.cta--compact .cta__note  { font-size: 14.5px; line-height: 1.6; color: var(--on-dark); }

/* ----------------------------------------------------------------- Forms -- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid--3 { grid-template-columns: 1fr 1fr 1fr; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-med); }

.input, .textarea, .select {
  border: 1.5px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface-alt);
  outline: none;
  width: 100%;
}
.textarea { resize: vertical; font-weight: 400; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--teal); }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
}
.check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--teal); flex: none; }

.form-note  { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--muted-2); }
.form-error { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--error); }
.field-hint { font-size: 12px; color: var(--muted-2); }

/* jQuery Validate error states */
label.error {
  color: var(--error);
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
  display: block;
}
.input.error, .textarea.error, .select.error { border-color: var(--error); }

/* honeypot — visually hidden but kept in the DOM so bots still fill it */
.form_hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* file upload */
.file-drop {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px dashed #C9C2B4;
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--surface-alt);
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
}
.file-drop:hover { border-color: var(--teal); }
.file-drop input[type="file"] { display: none; }

/* selectable chips (day / time / role) */
.chip {
  cursor: pointer;
  font-family: var(--sans);
  text-align: center;
  border: 1.5px solid var(--line-2);
  background: var(--surface-alt);
  color: var(--muted);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
}
.chip.is-selected { border-color: var(--teal); background: var(--mint); color: var(--teal-dark); }

/* confirmation panels */
.form-success {
  background: var(--mint);
  border: 1px solid var(--mint-border);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-success__title { font-size: 18px; font-weight: 700; color: var(--teal-dark); }
.form-success p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-med); }
.link-btn {
  align-self: flex-start;
  background: transparent; border: none; padding: 0;
  color: var(--teal-dark); font-weight: 700; font-size: 14px;
  cursor: pointer; text-decoration: underline;
}

/* dark form card (booking) */
.form-card--dark { background: var(--teal-dark); border-radius: var(--r-lg); padding: 32px 34px; }
.form-card--dark h2 { color: #fff; }
.form-card--dark .form-card__intro { color: var(--on-dark); }
.form-card--dark .field { color: #fff; }
.form-card--dark .step-label { font-size: 13.5px; font-weight: 700; color: var(--teal-light); text-transform: uppercase; letter-spacing: 0.05em; }
.form-card--dark .input {
  border-color: var(--teal-border);
  background: var(--teal-darker);
  color: #fff;
}
.form-card--dark .input::placeholder { color: var(--on-dark-soft); }
.form-card--dark .input:focus { border-color: var(--teal-light); }
.form-card--dark .form-note { color: var(--on-dark-soft); }
.form-card--dark .form-note a,
.form-card--dark .form-card__intro a { color: var(--teal-light); }
.form-card--dark .form-success { background: var(--teal-darker); border-color: var(--teal-border); }
.form-card--dark .form-success__title { color: var(--teal-light); }
.form-card--dark .form-success p { color: var(--on-dark-bright); }
.form-card--dark .form-error { color: #FFB99E; }
.form-card--dark .link-btn { color: var(--teal-light); }
/* dark chips */
.form-card--dark .chip { border-color: var(--teal-border); background: var(--teal-darker); color: var(--on-dark-bright); }
.form-card--dark .chip .chip__dow { display: block; font-size: 11.5px; font-weight: 700; opacity: 0.75; }
.form-card--dark .chip .chip__day { display: block; font-size: 15px; font-weight: 700; }
.form-card--dark .chip.is-selected { border-color: var(--teal-light); background: var(--teal-light); color: var(--teal-darker); }

/* contact quick-cards */
.contact-cards { display: flex; gap: 16px; flex-wrap: wrap; }
.contact-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 20px;
  text-decoration: none;
}
a.contact-card:hover { border-color: var(--teal); }
.contact-card__k { font-size: 13px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-card__v { font-size: 16px; font-weight: 700; color: var(--teal-dark); }
.contact-card__v--plain { font-size: 15px; font-weight: 600; color: var(--ink); }

/* rating-levels list (CQC article) */
.rating-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.rating-row__label { flex: none; width: 150px; font-weight: 700; color: var(--teal-dark); }
.rating-row__label--warn { color: var(--error); }
.rating-row span:last-child { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ------------------------------------------------------------- Articles -- */
.back-link { color: var(--muted-2); font-weight: 600; font-size: 14px; text-decoration: none; align-self: flex-start; }
.back-link:hover { color: var(--teal-dark); }

.article-meta { display: flex; gap: 12px; align-items: center; }
.article-meta__time { font-size: 13.5px; color: var(--muted-2); }

.article-img { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; border-radius: 18px; }

.article-title { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; color: var(--ink-strong); text-wrap: balance; }

/* featured post card (Advice Hub) */
.feature-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.feature-post:hover { box-shadow: var(--shadow-md); border-color: var(--mint-border); }
.feature-post img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.feature-post__body { padding: 36px 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.feature-post__title { font-family: var(--serif); font-size: 30px; line-height: 1.2; font-weight: 700; color: var(--ink-strong); }
.feature-post__text { font-size: 15px; line-height: 1.65; color: var(--muted); }
@media (max-width: 720px) {
  .feature-post { grid-template-columns: 1fr; }
  .feature-post img { min-height: 220px; }
}

/* ============================================================ Site header = */
.topbar {
  background: var(--teal-dark);
  color: var(--on-dark-bright);
  font-size: 13.5px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-block: 7px;
  flex-wrap: wrap;
}
.topbar a { color: var(--on-dark-bright); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__item { display: flex; align-items: center; gap: 7px; }
.topbar__item a[href^="tel"] { color: #fff; font-weight: 700; }
.topbar__status { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-light); }

.site-header { background: var(--surface); }
.nav { border-bottom: 1px solid var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand img { width: 46px; height: 46px; object-fit: cover; border-radius: 12px; }
.brand__name { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--teal-dark); line-height: 1.1; }
.brand__tag  { font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-3); }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav__link {
  padding: 8px 11px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.nav__link:hover { background: var(--mint); color: var(--teal-dark); }
.nav__link.is-active { background: var(--mint); color: var(--teal-dark); }
.nav__cta { flex: none; }
.nav__toggle { display: none; }

/* ============================================================ Site footer = */
.site-footer { background: var(--teal-dark); color: var(--on-dark); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-block: 56px 36px;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__brand { display: flex; align-items: center; gap: 11px; }
.footer__brand img { width: 44px; height: 44px; object-fit: cover; border-radius: 11px; background: #fff; }
.footer__brand span { font-family: var(--serif); font-size: 20px; font-weight: 700; color: #fff; }
.footer__col h3 { font-family: var(--serif); font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.footer__about { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--on-dark-soft); }
.footer__col a { color: var(--on-dark); text-decoration: none; font-size: 14.5px; }
.footer__col a:hover { color: #fff; }
.footer__badges { display: flex; gap: 12px; align-items: stretch; margin-top: 6px; }
.footer__badge { background: #fff; border-radius: 10px; padding: 10px 16px; display: flex; align-items: center; text-decoration: none; }
.footer__badge img { height: 40px; width: auto; object-fit: contain; }
.footer__cqc-link { font-size: 13px; color: var(--teal-light); text-decoration: underline; }
.footer__cqc-link:hover { color: #fff; }
.footer__contact-lines { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--on-dark); }
.footer__phone { color: #fff !important; font-weight: 700; font-size: 16px; }
.footer__email { color: var(--teal-light) !important; }
.footer__areas { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--on-dark-soft); }

.footer__bottom { border-top: 1px solid var(--teal-border); }
.footer__bottom-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 16px;
  font-size: 12.5px;
  color: var(--on-dark-soft);
  flex-wrap: wrap;
}
.footer__legal { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
.footer__bottom a { color: var(--on-dark-soft); text-decoration: none; }
.footer__bottom a:hover { color: #fff; }

/* ============================================================ Print sheet = */
.print-sheet { display: none; }

@media print {
  .site-header, .topbar, .site-footer, .print-hide { display: none !important; }
  .print-sheet { display: block !important; }
  body { background: #fff; }
}

/* ============================================================ Responsive == */
@media (max-width: 960px) {
  .hero, .hero--text-wide { grid-template-columns: 1fr; gap: 32px; }
  .hero__floating { position: static; margin-top: 14px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cqc-panel { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .cta__actions { margin-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* mobile navigation */
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
  }
  .nav__toggle svg { display: block; }
  .nav__links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-left: 0;
    gap: 2px;
    padding-top: 10px;
  }
  .nav__links.is-open { display: flex; }
  .nav__link { padding: 12px 12px; }
  .nav__cta { display: none; }
  .nav__links.is-open + .nav__cta,
  .nav__cta.is-visible { display: inline-flex; margin-top: 8px; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
  .section { padding-block: 48px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .link-arrow { margin-left: 0; }
  .service-row { grid-template-columns: 1fr; padding: 26px 24px; }
  .cqc-panel { padding: 28px 24px; }
  .card, .form-card--dark { padding: 24px 22px; }
  .cta { padding: 28px 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact-card { flex: 1 1 100%; }
}
