/* Help at Home — one hand-written stylesheet.
   Tokens from the specification. Orange is for action and emphasis, never for reading.
   18px body floor. Mobile first; desktop from 960px. */

:root {
  --brand: #E2541A;   /* logo, large headings only */
  --action: #C2410C;  /* buttons, links — 5.18:1 both ways */
  --deep: #7C2D12;    /* hover, footer ground */
  --ink: #292524;     /* all text — 15.17:1 */
  --muted: #57534E;   /* captions, labels — 7.63:1 */
  --cream: #FBF7F3;   /* page ground */
  --rule: #E7E0D8;    /* borders */
  --rule-strong: #D6CFC7;
  --white: #FFFFFF;
  --tint: #FDEFE7;    /* a whisper of orange for highlights */

  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px; --s20: 80px; --s24: 96px;
  --r: 12px; --r-sm: 8px; --r-lg: 16px;
  --shadow: 0 1px 2px rgb(41 37 36 / 0.06), 0 4px 16px rgb(41 37 36 / 0.06);
  --measure: 66ch;
  --wrap: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  padding-bottom: 68px; /* mobile call bar */
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 960px) { body { padding-bottom: 0; } }

h1, h2, h3 { font-weight: 700; margin: 0 0 var(--s4); letter-spacing: -0.01em; }
h1 { font-size: 36px; line-height: 1.12; }
h2 { font-size: 28px; line-height: 1.2; margin-top: var(--s10); }
.section-head h2, .eyebrow + h2, h1 + h2, .contact-block h2, .mt-0 { margin-top: 0; }
h3 { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
@media (min-width: 960px) { h1 { font-size: 48px; } h2 { font-size: 34px; } }
p { margin: 0 0 var(--s4); }
.lead { font-size: 21px; line-height: 1.55; color: var(--muted); max-width: var(--measure); }
@media (min-width: 960px) { .lead { font-size: 22px; } }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--action); margin-bottom: var(--s3); }
.muted { color: var(--muted); }
.small { font-size: 16px; }
.caption, .hint, .optional { font-size: 16px; color: var(--muted); line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

a { color: var(--action); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
@media (min-width: 960px) { .wrap { padding: 0 var(--s8); } }
.narrow { max-width: calc(var(--measure) + 2 * var(--s8)); }
.section { padding-block: var(--s12); }
.band { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding-block: var(--s12); }
@media (min-width: 960px) { .section, .band { padding-block: var(--s20); } }
.section-head { max-width: var(--measure); margin-bottom: var(--s8); }
.section-head h2 { margin-bottom: var(--s2); }
.section-head p { color: var(--muted); font-size: 20px; margin: 0; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--s10); font-size: 26px; }
.prose h3 { margin-top: var(--s8); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: var(--s2); }
.note { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s6); margin: var(--s10) 0; }
.note h2 { margin-top: 0; font-size: 22px; }

.skip { position: absolute; left: var(--s4); top: -100px; background: var(--white); color: var(--ink); padding: var(--s3) var(--s4); border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: var(--s4); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 50px; padding: 0 var(--s6); border-radius: 999px; font-weight: 600; font-size: 18px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
.btn-lg { min-height: 56px; padding: 0 var(--s8); font-size: 19px; }
.btn-primary { background: var(--action); color: var(--white); }
.btn-primary:hover { background: var(--deep); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--rule-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link::after { content: " →"; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 30; }
.header-row { display: flex; align-items: center; gap: var(--s3); height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: var(--s3); color: var(--ink); text-decoration: none; min-width: 0; }
.logo-badge { width: 48px; height: 48px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.logo-word { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; white-space: nowrap; }
.logo-sub { font-size: 14px; color: var(--muted); white-space: nowrap; }
@media (max-width: 479px) { .logo-sub { display: none; } }
.site-nav { display: none; }
.btn-phone { margin-left: auto; background: var(--action); color: var(--white); min-height: 44px; min-width: 44px; padding: 0 var(--s3); }
.btn-phone:hover { background: var(--deep); color: var(--white); }
.btn-phone .icon { width: 22px; height: 22px; }
.btn-phone-text { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s3); background: none; border: 1.5px solid var(--rule-strong); border-radius: 999px; font: inherit; font-weight: 600; font-size: 17px; color: var(--ink); cursor: pointer; }
.menu-btn .icon { width: 22px; height: 22px; }
.site-menu { background: var(--white); border-top: 1px solid var(--rule); position: absolute; left: 0; right: 0; top: var(--header-h); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; box-shadow: var(--shadow); }
.site-menu nav { display: grid; padding-top: var(--s3); padding-bottom: var(--s6); }
.site-menu nav > a { display: block; padding: var(--s4) 0; font-size: 22px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.site-menu nav > a[aria-current="page"] { color: var(--action); }
.site-menu-actions { display: grid; gap: var(--s3); padding-top: var(--s6); }
@media (min-width: 960px) {
  :root { --header-h: 84px; }
  .logo-badge { width: 60px; height: 60px; }
  .logo-word { font-size: 22px; }
  .site-nav { display: flex; gap: var(--s2); margin-left: auto; }
  .site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; padding: var(--s2) var(--s4); border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
  .site-nav a:hover { background: var(--cream); color: var(--ink); }
  .site-nav a[aria-current="page"] { background: var(--tint); color: var(--deep); }
  .btn-phone { margin-left: var(--s4); padding: 0 var(--s5); font-size: 18px; }
  .btn-phone-text { display: inline; }
  .menu-btn, .site-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--rule); padding: var(--s10) 0 var(--s12); }
.hero-grid { display: grid; gap: var(--s8); align-items: center; }
.hero h1 { margin-bottom: var(--s4); }
.hero .lead { margin-bottom: var(--s6); }
.hero-img { border-radius: var(--r-lg); overflow: hidden; background: var(--tint); aspect-ratio: 4 / 3; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.trust-list { list-style: none; margin: var(--s6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: 17px; color: var(--muted); }
.trust-list li { display: inline-flex; align-items: center; gap: var(--s2); }
.icon-check { color: var(--action); width: 20px; height: 20px; }
@media (min-width: 960px) {
  .hero { padding: var(--s20) 0; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: var(--s16); }
}

/* ---------- Cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.card a { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card a:hover { border-color: var(--rule-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--tint); }
.card-body { padding: var(--s5) var(--s6) var(--s6); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 18px; flex: 1; }
.card-more { font-weight: 600; color: var(--action); font-size: 17px; margin-top: var(--s2); }
.card-more::after { content: " →"; }

/* ---------- Who we help ---------- */
.who-grid { display: grid; gap: var(--s8); }
@media (min-width: 960px) { .who-grid { grid-template-columns: 1.1fr 1fr; gap: var(--s16); align-items: start; } }
.who-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.who-list li { display: flex; gap: var(--s3); align-items: flex-start; background: var(--cream); border-radius: var(--r); padding: var(--s4) var(--s5); font-size: 18px; }
.who-list .icon-check { margin-top: 4px; }

/* ---------- Towns ---------- */
.town-list { list-style: none; padding: 0; margin: var(--s4) 0 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.town-list li { background: var(--white); border: 1px solid var(--rule-strong); border-radius: 999px; padding: var(--s2) var(--s5); font-size: 18px; min-height: 44px; display: inline-flex; align-items: center; }
.town-list li:has(a):hover { border-color: var(--ink); }
.town-list a { text-decoration: none; font-weight: 600; color: var(--ink); }

img.portrait { object-position: 50% 18%; }

/* ---------- Gallery ---------- */
.gallery-grid { list-style: none; margin: var(--s4) 0 var(--s10); padding: 0; display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.gallery-grid img { width: 100%; height: auto; display: block; border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; background: var(--tint); }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--r); }
.caption { margin: var(--s2) 0 0; }
.lightbox { position: fixed; inset: 0; background: rgb(41 37 36 / 0.94); display: flex; align-items: center; justify-content: center; z-index: 50; padding: var(--s4); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1100px; }
.lightbox img { max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: var(--r); display: block; margin: 0 auto; }
.lightbox figcaption { color: var(--white); text-align: center; margin-top: var(--s3); font-size: 18px; }
.lightbox button { position: absolute; min-width: 48px; min-height: 48px; background: var(--white); color: var(--ink); border: 0; border-radius: 999px; font-size: 26px; cursor: pointer; }
.lightbox .lb-close { top: var(--s4); right: var(--s4); }
.lightbox .lb-prev { left: var(--s3); top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: var(--s3); top: 50%; transform: translateY(-50%); }

/* ---------- Testimonials ---------- */
.testimonials { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s5); }
@media (min-width: 960px) { .testimonials { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.testimonials blockquote { margin: 0; padding: var(--s6); background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); height: 100%; display: flex; flex-direction: column; }
.testimonials blockquote p { flex: 1; font-size: 19px; }
.testimonials footer { color: var(--muted); font-size: 17px; font-weight: 600; }

/* ---------- About / documents ---------- */
.about-grid { display: grid; gap: var(--s8); align-items: start; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 3fr 2fr; gap: var(--s16); } }
.about-grid img { width: 100%; height: auto; border-radius: var(--r-lg); }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); max-width: 560px; }
.doc-list a { display: flex; justify-content: space-between; align-items: center; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s4) var(--s5); text-decoration: none; font-weight: 600; color: var(--ink); min-height: 56px; }
.doc-list a::after { content: "→"; color: var(--action); }
.doc-list a:hover { border-color: var(--ink); }
.document .prose h2 { font-size: 24px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 16px; color: var(--muted); margin-bottom: var(--s5); }
.crumbs + h1 { margin-top: 0; }
article .cards, article .town-list, .section > .town-list { margin-top: var(--s5); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--s10); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: var(--s16); } }
.contact-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--s6); }
@media (min-width: 960px) { .contact-card { padding: var(--s8); } }
.contact-block { background: var(--white); border-top: 1px solid var(--rule); padding: var(--s12) 0; }
@media (min-width: 960px) { .contact-block { padding: var(--s20) 0; } }
.contact-block-grid { display: grid; gap: var(--s6); }
@media (min-width: 960px) { .contact-block-grid { grid-template-columns: 1.1fr 1fr; gap: var(--s16); align-items: center; } }
.contact-block h2 { margin-top: 0; }
.contact-lead { max-width: var(--measure); color: var(--muted); font-size: 20px; margin: 0; }
.contact-actions { display: grid; gap: var(--s3); }
.contact-actions .btn { width: 100%; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s5); }
.field label { display: block; font-weight: 600; margin-bottom: var(--s2); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="search"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 19px; padding: var(--s3) var(--s4); border: 1.5px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--white); color: var(--ink); min-height: 54px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid var(--deep); outline-offset: 2px; }
.field textarea { resize: vertical; line-height: 1.5; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; }
.field-check input { width: 24px; height: 24px; margin-top: 3px; accent-color: var(--action); }
.field-check label { font-weight: 400; margin: 0; }
.hint { margin: 0 0 var(--s2); }
.hp { position: absolute; left: -9999px; }
.success { background: #E8F3E6; border: 1px solid #9CC79A; border-radius: var(--r); padding: var(--s5); }
.error { background: #FBEBEB; border: 1px solid #D9A3A3; border-radius: var(--r); padding: var(--s5); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--cream); padding: var(--s12) 0 var(--s6); font-size: 17px; }
.site-footer a { color: var(--cream); }
.site-footer .logo { color: var(--cream); margin-bottom: var(--s4); }
.site-footer .logo-sub { color: rgb(251 247 243 / 0.75); }
.site-footer .logo-badge { width: 56px; height: 56px; }
.footer-grid { display: grid; gap: var(--s8); }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s16); } }
.footer-brand p { max-width: 46ch; }
.footer-h { font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(251 247 243 / 0.7); margin: 0 0 var(--s3); }
.footer-nav { display: grid; gap: var(--s2); align-content: start; }
.footer-nav .footer-h + a { margin-top: 0; }
.footer-nav .footer-h:not(:first-child) { margin-top: var(--s5); }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.site-footer .trust-list { color: rgb(251 247 243 / 0.85); }
.site-footer .icon-check { color: var(--cream); }
.footer-foot { border-top: 1px solid rgb(251 247 243 / 0.18); margin-top: var(--s8); padding-top: var(--s5); font-size: 15px; color: rgb(251 247 243 / 0.75); }
.footer-foot p { margin: 0; }

/* ---------- Mobile call bar ---------- */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; height: 60px; background: var(--white); border-top: 1px solid var(--rule); z-index: 40; padding: var(--s2); gap: var(--s2); padding-bottom: max(var(--s2), env(safe-area-inset-bottom)); }
.call-bar a { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); border-radius: 999px; font-weight: 600; font-size: 18px; text-decoration: none; }
.call-bar a:first-child { background: var(--action); color: var(--white); }
.call-bar a:last-child { background: var(--white); color: var(--ink); border: 1.5px solid var(--rule-strong); }
@media (min-width: 960px) { .call-bar { display: none; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-6 { margin-top: var(--s6); } .mt-8 { margin-top: var(--s8); } .mb-12 { margin-bottom: var(--s12); } .mb-6 { margin-bottom: var(--s6); }

/* ---------- Areas ---------- */
.area-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
@media (min-width: 640px) { .area-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .area-cards { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.area-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s6); display: flex; flex-direction: column; gap: var(--s2); }
.area-card h2 { font-size: 24px; margin: 0; }
.area-card h2 a { color: var(--ink); text-decoration: none; }
.area-card h2 a:hover { color: var(--action); text-decoration: underline; }
.area-card p { margin: 0; color: var(--muted); font-size: 18px; flex: 1; }
.area-card .county { font-size: 15px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); counter-reset: step; }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.steps li { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s6); counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--tint); color: var(--deep); font-weight: 700; font-size: 20px; margin-bottom: var(--s3); }
.steps h3 { margin-bottom: var(--s2); }
.steps p { margin: 0; color: var(--muted); font-size: 18px; }

/* A lone photo in a grid gets two columns on wide screens */
@media (min-width: 960px) { .gallery-grid li:only-child { grid-column: span 2; } }
