/* ==========================================================================
   Kharis Care, global stylesheet

   Visual language taken from the Kharis logo:
   - the roof gable: sections rise into the one above with a peak (.roof),
     and list markers and kickers use a small roof chevron
   - the house: icon and initial badges are house-shaped (.house)
   - the roof gradient (navy to orange to blue) as the header rule
   Palette from the logo: royal blue #003399, rust #9A2300 (hands),
   orange #FF6600 (strapline). Orange is decoration only; it fails text
   contrast on white.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --blue-950: #001845;
  --blue-900: #00246b;
  --blue-800: #002b80;
  --blue-700: #003399;   /* logo blue */
  --blue-200: #c7d4f0;
  --blue-100: #e3eaf8;
  --blue-50:  #f1f4fb;

  --navy:     #000066;   /* logo roof, dark end */
  --rust-800: #7a1c00;
  --rust-700: #9a2300;   /* logo hands */
  --rust-100: #f6e4dc;

  --orange-500: #ff6600; /* logo strapline, decorative only */
  --orange-300: #ffb380;
  --orange-100: #fff0e5;

  --cream:    #f6f1ea;
  --ink:      #1b1e2b;
  --ink-soft: #4b5062;
  --line:     #dfe2ea;
  --surface:  #ffffff;
  --canvas:   #fdfbf8;

  --radius: 12px;
  --peak: clamp(22px, 3.6vw, 54px);   /* height of the roof gable */

  --wrap: 1160px;
  --sans:  "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --roof-gradient: linear-gradient(90deg, var(--navy) 0%, var(--orange-500) 28%, #8a5a6a 46%, var(--blue-700) 62%, var(--blue-700) 100%);

  /* Set by the text-size button */
  --scale: 1;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: calc(1.0625rem * var(--scale));
  line-height: 1.7;
  color: var(--ink);
  background: var(--canvas);
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--blue-900);
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.42rem); }
p  { margin: 0 0 1.1em; max-width: 66ch; }
ul { padding-left: 1.2em; }

a { color: var(--blue-700); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--rust-700); }
a[href^="tel:"] { white-space: nowrap; }

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.center { text-align: center; }
.center p { margin-inline: auto; }
.h3-size { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.42rem); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--blue-900); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 8px 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

/* ==========================================================================
   Masthead
   ========================================================================== */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  transition: box-shadow .3s var(--ease);
}
.masthead::after {                         /* the roof gradient rule */
  content: ""; display: block; height: 4px; background: var(--roof-gradient);
}
.masthead.is-stuck { box-shadow: 0 8px 28px rgba(0, 24, 69, .1); }
.masthead .wrap {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 84px; padding-block: .5rem;
}

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 60px; height: 60px; }
.brand__name {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: 1.55rem; color: var(--blue-700); line-height: 1;
}
.brand__tag { display: block; font-size: .82rem; color: var(--rust-700); font-weight: 600; margin-top: .3rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.site-nav a {
  position: relative; display: block;
  padding: .75rem .85rem;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.site-nav a:hover { color: var(--blue-700); }
.site-nav a[aria-current="page"] { color: var(--blue-700); }
.site-nav a[aria-current="page"]::after {   /* small roof over the current page */
  content: ""; position: absolute; left: 50%; top: .15rem;
  width: 18px; height: 9px; transform: translateX(-50%);
  background: var(--orange-500);
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 80% 100%, 50% 38%, 20% 100%);
}

.masthead__tools { display: flex; align-items: center; gap: .6rem; }
.call-link {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 46px; padding: .55rem 1rem;
  border-radius: 8px; background: var(--blue-700); color: #fff;
  font-weight: 700; text-decoration: none;
}
.call-link svg { width: 18px; height: 18px; }
.call-link:hover { background: var(--blue-900); color: #fff; }

.text-size {
  min-height: 46px; min-width: 46px; padding: .4rem .75rem;
  display: inline-flex; align-items: center; gap: .35rem;
  background: #fff; color: var(--blue-900);
  border: 1.5px solid var(--blue-200); border-radius: 8px;
  font: inherit; font-weight: 700; cursor: pointer;
}
.text-size:hover { border-color: var(--blue-700); }
.text-size__glyph { font-family: var(--serif); font-size: 1.15rem; line-height: 1; }
.text-size__label { font-size: .85rem; }

.nav-toggle {
  display: none;
  min-height: 46px; padding: 0 .9rem;
  background: #fff; color: var(--blue-900);
  border: 1.5px solid var(--blue-200); border-radius: 8px;
  font: inherit; font-weight: 700; cursor: pointer;
  align-items: center; gap: .45rem;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

@media (max-width: 1060px) {
  .call-link__number { display: none; }
}
@media (max-width: 940px) {
  .masthead .wrap { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav { order: 5; flex-basis: 100%; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .25rem 0 1rem; border-top: 1px solid var(--line); }
  .site-nav a { padding: .9rem .25rem; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"]::after { left: auto; right: .5rem; top: 50%; transform: translateY(-50%); }
  .text-size__label { display: none; }
}
@media (max-width: 480px) {
  /* Keep logo and buttons on one row so the sticky header stays short */
  .masthead .wrap { min-height: 64px; gap: .5rem; }
  .brand { gap: .45rem; }
  .brand__tag { display: none; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1.2rem; }
  .masthead__tools { gap: .3rem; }
  .text-size, .call-link, .nav-toggle { min-height: 44px; }
  .text-size { min-width: 44px; padding: .3rem .5rem; }
  .call-link { padding: .5rem .75rem; }
  .nav-toggle { padding: 0 .65rem; gap: .35rem; }
}
@media (max-width: 374px) {
  .masthead .wrap { width: min(100% - 1.5rem, var(--wrap)); }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 1.08rem; }
  /* Small phones: hide the "Menu" text visually; screen readers still read it */
  .nav-toggle__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
}
html:not(.js) .nav-toggle,
html:not(.js) .text-size { display: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .8rem 1.5rem;
  border-radius: 8px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn::after {                                /* arrow that nudges on hover */
  content: "\2192"; transition: transform .2s var(--ease);
}
.btn:hover::after { transform: translateX(3px); }
.btn--plain::after { content: none; }

.btn--primary { background: var(--blue-700); color: #fff; }
.btn--primary:hover { background: var(--blue-900); color: #fff; }
.btn--rust { background: var(--rust-700); color: #fff; }
.btn--rust:hover { background: var(--rust-800); color: #fff; }
.btn--outline { background: transparent; color: var(--blue-800); border-color: var(--blue-700); }
.btn--outline:hover { background: var(--blue-50); color: var(--blue-900); }
.btn--white { background: #fff; color: var(--blue-900); }
.btn--white:hover { background: var(--orange-100); color: var(--blue-950); }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn--outline-white:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn[disabled] { opacity: .65; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.btn-row--center { justify-content: center; }

/* ==========================================================================
   Sections and the roof motif
   ========================================================================== */
.section { position: relative; padding-block: clamp(3.5rem, 2rem + 5vw, 6rem); background: var(--canvas); }
.section--cream { background: var(--cream); }
.section--sky { background: var(--blue-50); }
.section--blue { background: var(--blue-700); color: #e9eefa; }
.section--blue h2, .section--blue h3 { color: #fff; }
.section--rust { background: var(--rust-700); color: #fbeee8; }
.section--rust h2, .section--rust h3 { color: #fff; }
.section--blue a:not(.btn), .section--rust a:not(.btn) { color: #fff; }

/* A section with .roof rises into the section above it with a gable peak. */
.roof {
  margin-top: calc(-1 * var(--peak));
  padding-top: calc(clamp(3.5rem, 2rem + 5vw, 6rem) + var(--peak));
  clip-path: polygon(0 var(--peak), 50% 0, 100% var(--peak), 100% 100%, 0 100%);
  z-index: 1;
}

/* Kicker: a small roof chevron and a short label */
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: .98rem; color: var(--rust-700);
  margin-bottom: .6rem;
}
.kicker::before {
  content: ""; width: 20px; height: 11px; flex: none;
  background: var(--orange-500);
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 80% 100%, 50% 38%, 20% 100%);
}
.section--blue .kicker, .section--rust .kicker { color: var(--orange-300); }
.center .kicker { justify-content: center; }

.lede { font-size: 1.15em; color: var(--ink-soft); }
.section--blue .lede, .section--rust .lede { color: inherit; opacity: .92; }

.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; }

/* ---------- Home hero ---------- */
.hero {
  background:
    radial-gradient(800px 420px at 85% 10%, rgba(255, 255, 255, .10), transparent 70%),
    var(--blue-700);
  color: #e9eefa;
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) calc(clamp(3.5rem, 2rem + 5vw, 6rem) + var(--peak));
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { color: #fff; margin-top: 1rem; }
.hero .lede { color: #dfe7f8; }
.hero__art {
  background: #fff; border-radius: 6px;
  box-shadow: 18px 18px 0 var(--orange-500);
  overflow: hidden;
  margin-right: 18px;
}
.hero__facts {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 1.25rem;
}
.hero__facts strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: #fff; line-height: 1.1; }
.hero__facts span { font-size: .92rem; color: #cbd7f2; }

.status {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .35rem .85rem .35rem .65rem; border-radius: 6px;
  background: #fff; color: #14532d; font-weight: 700; font-size: .92rem;
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px #d5f0dd; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 520px; }
}
@media (max-width: 520px) {
  .hero__facts { grid-template-columns: 1fr; gap: .6rem; }
  .hero__facts li { display: flex; align-items: baseline; gap: .6rem; }
  .hero__facts strong { font-size: 1.3rem; min-width: 3.2rem; }
}

/* ---------- Inner page header ---------- */
.page-head {
  background: var(--blue-700); color: #dfe7f8;
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) calc(clamp(2.5rem, 1.5rem + 3vw, 4rem) + var(--peak));
}
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head .lede { color: #dfe7f8; margin-bottom: 0; }
.page-head .status { margin-bottom: 1rem; }
.breadcrumb { font-size: .92rem; margin-bottom: 1.1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.breadcrumb a { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: .45rem; opacity: .6; }

/* ==========================================================================
   Content components
   ========================================================================== */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--top { align-items: start; }
.split--wide-left { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 860px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

/* House-shaped badge for icons and initials */
.house {
  flex: none; width: 58px; height: 58px;
  display: grid; place-items: center; padding-top: 12px;
  background: var(--blue-100); color: var(--blue-700);
  clip-path: polygon(50% 0, 100% 42%, 100% 100%, 0 100%, 0 42%);
}
.house svg { width: 26px; height: 26px; }
.house--rust { background: var(--rust-100); color: var(--rust-700); }
.house--white { background: #fff; }
.house--white.house--rust-ink { color: var(--rust-700); }
.house--small { width: 40px; height: 40px; padding-top: 8px; }
.house--small svg { width: 19px; height: 19px; }

/* Service blocks: solid colour panels */
.services-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 6px; overflow: hidden; }
@media (max-width: 820px) { .services-pair { grid-template-columns: 1fr; } }
.service-block { padding: clamp(1.75rem, 4vw, 3rem); color: #eef2fb; }
.service-block h3 { color: #fff; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); margin-top: 1.1rem; }
.service-block p { color: inherit; }
.service-block .abbr { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .08em; color: var(--orange-300); margin-bottom: .25rem; }
.service-block a { color: #fff; font-weight: 700; }
.service-block--blue { background: var(--blue-800); }
.service-block--rust { background: var(--rust-700); color: #fbeee8; }

/* Tiles: quiet bordered blocks */
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color .2s var(--ease);
}
.tile:hover { border-color: var(--blue-200); }
.tile h3 { margin: 1rem 0 .4em; }
.tile p:last-child { margin-bottom: 0; }

/* Panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); }
.panel--sky { background: var(--blue-50); border-color: var(--blue-100); }
.panel--accent { border-top: 5px solid var(--orange-500); }
.logo-panel { display: grid; place-items: center; padding: 2.5rem; }
.logo-panel img { width: min(100%, 320px); }

/* Lists with roof-chevron markers */
.roof-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.roof-list li { position: relative; padding-left: 1.9rem; }
.roof-list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 16px; height: 9px; background: var(--orange-500);
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 80% 100%, 50% 38%, 20% 100%);
}
.roof-list--two { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
@media (max-width: 640px) { .roof-list--two { grid-template-columns: 1fr; } }

/* Statement: large serif sentence */
.statement {
  font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  line-height: 1.3; color: var(--blue-900); margin: 0 0 1rem; max-width: 30ch;
}

/* Service area list */
.area-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--blue-700); }
.area-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
}
.area-list .area-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--blue-900); }
.area-list .area-counties { color: var(--ink-soft); }
@media (max-width: 560px) { .area-list li { grid-template-columns: 1fr; gap: .2rem; } }
.area-total {
  display: flex; align-items: baseline; gap: .75rem; margin-top: 1.5rem;
  font-family: var(--serif); color: var(--blue-900);
}
.area-total strong { font-size: 3rem; line-height: 1; color: var(--rust-700); }

/* Timeline steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; position: relative; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.75rem 4rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue-700); color: #fff; font-weight: 800; font-family: var(--serif); font-size: 1.15rem;
  z-index: 1;
}
.steps li::after {
  content: ""; position: absolute; left: calc(1.3rem - 1px); top: 2.6rem; bottom: 0;
  width: 2px; background: var(--blue-200);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { content: none; }
.steps h3 { font-size: 1.2rem; margin: .35rem 0 .25em; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Accordion: an open list with dividers */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 1rem;
  min-height: 64px; padding: .9rem .25rem;
  font-weight: 700; color: var(--blue-900); font-size: 1.08rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {                 /* plus that turns into a minus */
  content: ""; margin-left: auto; flex: none;
  width: 16px; height: 16px;
  background:
    linear-gradient(var(--rust-700), var(--rust-700)) center / 16px 2.5px no-repeat,
    linear-gradient(var(--rust-700), var(--rust-700)) center / 2.5px 16px no-repeat;
  transition: transform .25s var(--ease);
}
.accordion details[open] summary::after {
  background: linear-gradient(var(--rust-700), var(--rust-700)) center / 16px 2.5px no-repeat;
}
.accordion summary:hover { color: var(--rust-700); }
.accordion .acc-body { padding: 0 .25rem 1.4rem 3.5rem; color: var(--ink-soft); }
.accordion .acc-body ul { margin: 0; display: grid; gap: .4rem; }
.accordion .acc-body p:last-child { margin-bottom: 0; }
.faq .acc-body { padding-left: .25rem; }
@media (max-width: 560px) { .accordion .acc-body { padding-left: .25rem; } }

/* Notes */
.note { border-left: 4px solid var(--rust-700); background: var(--rust-100); padding: 1.2rem 1.4rem; border-radius: 0 8px 8px 0; }
.note p:last-child { margin-bottom: 0; }
.note--blue { border-left-color: var(--blue-700); background: var(--blue-50); }

/* People */
.person { display: flex; gap: 1.25rem; align-items: flex-start; }
.person .house { width: 72px; height: 72px; padding-top: 18px; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; background: var(--blue-700); color: #fff; }
.person .house--rust { background: var(--rust-700); }
.person h3 { margin-bottom: .1em; }
.person .role { color: var(--rust-700); font-weight: 700; font-size: .95rem; margin-bottom: .5rem; }

/* Invitation (closing call to action) */
.invite { text-align: center; }
.invite h2 { max-width: 22ch; margin-inline: auto; }
.invite p { margin-inline: auto; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list strong { display: block; color: var(--blue-900); }
.info-list p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.form { display: grid; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; color: var(--ink); }
.req { color: var(--rust-700); }
.field .hint { font-size: .9rem; color: var(--ink-soft); margin: 0; }

.field input, .field select, .field textarea {
  width: 100%; min-height: 52px;
  padding: .75rem .9rem;
  font: inherit; color: var(--ink);
  background: var(--canvas);
  border: 0; border-bottom: 2px solid #9aa1b3; border-radius: 6px 6px 0 0;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--blue-50); border-bottom-color: var(--blue-700);
  box-shadow: 0 2px 0 0 var(--blue-700);
}
.field--error input, .field--error select, .field--error textarea { border-bottom-color: #b42318; background: #fdf1ef; }
.error-msg { color: #b42318; font-size: .92rem; font-weight: 600; margin: 0; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status { padding: 1rem 1.2rem; border-radius: 8px; font-weight: 600; }
.form-status--ok { background: #e6f4ea; color: #14532d; border-left: 4px solid #16a34a; }
.form-status--bad { background: #fdecea; color: #8a1c12; border-left: 4px solid #b42318; }
.form-note { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--cream); color: var(--ink-soft); font-size: .95rem; }
.site-footer .footer-main { padding-block: 3.5rem 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 150px; margin-bottom: 1rem; }
.site-footer h2 { font-size: 1.15rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--blue-800); }
.site-footer a:hover { color: var(--rust-700); }
.footer-bar { background: var(--blue-900); color: #cfd8ee; font-size: .88rem; }
.footer-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1rem; }
.footer-bar p { margin: 0; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.notfound img { width: 120px; margin: 0 auto 1.5rem; }
.notfound p { margin-inline: auto; }

/* ==========================================================================
   Scroll reveal (only when JS has run) and reduced motion
   ========================================================================== */
.js .reveal > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-visible > * { opacity: 1; transform: none; }
.js .reveal.is-visible > *:nth-child(2) { transition-delay: .08s; }
.js .reveal.is-visible > *:nth-child(3) { transition-delay: .16s; }
.js .reveal.is-visible > *:nth-child(n+4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal > * { opacity: 1; transform: none; }
}

@media print {
  .masthead, .site-footer, .nav-toggle { display: none; }
  .roof { clip-path: none; margin-top: 0; }
  body { background: #fff; }
}

/* Commitments: an open list with house badges, no card boxes */
.commitments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.25rem 2.5rem; }
@media (max-width: 900px) { .commitments { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .commitments { grid-template-columns: 1fr; } }
.commit { display: grid; grid-template-columns: auto 1fr; gap: 0 1rem; align-items: start; }
.commit .house { grid-row: span 2; }
.commit h3 { margin: .35rem 0 .3em; }
.commit p { margin: 0; color: var(--ink-soft); }

/* ==========================================================================
   Host home provider page: ways to apply and the application form
   ========================================================================== */
.apply-ways { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .apply-ways { grid-template-columns: 1fr; } }
.apply-way { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); }
.apply-way h3 { margin: 1rem 0 .3em; }
.apply-way .btn-row { margin: 1rem 0 1.75rem; }
.apply-way--blue { background: var(--blue-700); border-color: var(--blue-700); color: #e9eefa; }
.apply-way--blue h3 { color: #fff; }

.steps--compact li { padding-bottom: 1.25rem; }
.steps h4 { font-family: var(--serif); font-size: 1.1rem; color: var(--blue-900); margin: .4rem 0 .2em; }

.app-form { max-width: 920px; gap: 1.5rem; }
.app-section {
  margin: 0; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid; gap: 1.15rem;
}
.app-section > legend {
  float: left; width: 100%; padding: 0 0 .6rem; margin-bottom: .2rem;
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  color: var(--blue-900); border-bottom: 2px solid var(--orange-500);
}
.app-section > legend + * { clear: both; }
.app-section .hint { margin: 0; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row--wide { grid-template-columns: 2fr 1fr; }
@media (max-width: 640px) { .form-row--3, .form-row--wide { grid-template-columns: 1fr; } }

.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group > legend { padding: 0; margin-bottom: .45rem; font-weight: 600; color: var(--ink); }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.choice-row label, .choice-single {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px; cursor: pointer; font-weight: 500;
}
.choice-single { align-items: flex-start; }
.choice-row input, .choice-single input { width: 22px; height: 22px; flex: none; accent-color: var(--blue-700); margin: 0; }
.choice-single input { margin-top: .2rem; }
.choice-group.field--error > legend { color: #b42318; }
.yn .choice-row { gap: .5rem 2rem; }
.field--explain { margin-top: -.5rem; padding-left: 1rem; border-left: 3px solid var(--blue-100); }

.app-block { display: grid; gap: 1rem; padding: 1.1rem 0 .2rem; border-top: 1px dashed var(--line); }
.app-block:first-of-type { border-top: 0; padding-top: 0; }
.app-block__title { margin: 0; font-weight: 700; color: var(--rust-700); }

.app-more { border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.app-more > summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: .6rem;
  min-height: 52px; padding: .75rem 1rem; font-weight: 700; color: var(--blue-800);
}
.app-more > summary::-webkit-details-marker { display: none; }
.app-more > summary::before { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--rust-700); width: 1rem; }
.app-more[open] > summary::before { content: "\2212"; }
.app-more__body { display: grid; gap: 1rem; padding: 0 1rem 1.25rem; }

.copy-panel { display: grid; gap: .6rem; justify-items: start; padding: 1.25rem; border-radius: 8px; background: var(--rust-100); }
.copy-panel .form-note { color: var(--ink); }

/* Anchor jumps land below the sticky header */
[id] { scroll-margin-top: 120px; }

/* Long-form text pages (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
