/* Comfortia Care — site styles
   Palette: London brick on warm cream. Arched doorway motif throughout. */

:root {
  --cream: #F8F0E5;
  --oat: #EEDFCB;
  --paper: #FFFBF5;
  --brick: #9E3B22;
  --brick-deep: #6B2614;
  --clay: #E3A98A;
  --soot: #2A1B15;
  --muted: #5E4A40;
  --line: #D9C4AB;
  --sage: #56664A;
  --sage-light: #DCE3CF;

  --font-display: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;

  --base: 1.125rem;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --arch: 999px 999px 1.25rem 1.25rem;
  --radius: 1.25rem;
}

/* Accessibility toolbar states */
html[data-text="large"] { font-size: 112.5%; }
html[data-text="larger"] { font-size: 125%; }
html[data-contrast="high"] {
  --cream: #FFFFFF;
  --oat: #F4F4F4;
  --paper: #FFFFFF;
  --brick: #7A2410;
  --brick-deep: #3D1206;
  --soot: #000000;
  --muted: #1F1F1F;
  --line: #555555;
  --sage: #2E3A25;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--soot);
  font-family: var(--font-body);
  font-size: var(--base);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick); text-underline-offset: 0.2em; }
a:hover { color: var(--brick-deep); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--brick-deep);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.75rem, 6.2vw, 5.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 65ch; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--oat { background: var(--oat); }
.section--paper { background: var(--paper); }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--muted); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--soot); color: #fff; padding: 0.75rem 1rem; border-radius: 0.5rem;
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0.8rem 1.6rem;
  border-radius: 999px; border: 2px solid var(--brick);
  font: 700 1.05rem/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn--solid { background: var(--brick); color: #fff; }
.btn--solid:hover { background: var(--brick-deep); border-color: var(--brick-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--brick); }
.btn--ghost:hover { background: var(--brick); color: #fff; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 5.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--brick-deep); flex: none;
}
.brand svg { width: 2.4rem; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font: 800 1.6rem/1 var(--font-display); letter-spacing: -0.03em; }
.brand-name small { font: 600 0.82rem/1.2 var(--font-body); color: var(--brick); letter-spacing: 0.02em; margin-top: 0.15rem; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 0.6rem 0.85rem; border-radius: 999px;
  color: var(--soot); text-decoration: none; font-weight: 700; font-size: 1rem;
}
.main-nav a:hover { background: var(--oat); color: var(--brick-deep); }
.main-nav a[aria-current="page"] { color: var(--brick); text-decoration: underline; text-decoration-thickness: 2px; }

.header-tools { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--brick-deep);
  cursor: pointer; font: 700 0.95rem var(--font-body);
}
.icon-btn:hover { border-color: var(--brick); }
.icon-btn[aria-pressed="true"] { background: var(--brick-deep); color: #fff; border-color: var(--brick-deep); }
.icon-btn svg { width: 1.3rem; height: 1.3rem; }
.header-cta { padding-inline: 1.3rem; min-height: 2.9rem; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .header-cta { display: none; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .main-nav {
    position: absolute; inset: 100% 0 auto 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 0.9rem 0.5rem; border-radius: 0.5rem; font-size: 1.15rem; }
  .header-tools { margin-left: auto; }
}

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero h1 { margin-bottom: 0.35em; }
.hero h1 span { display: block; }
.hero h1 span:nth-child(2) { padding-left: clamp(0rem, 6vw, 5.5rem); color: var(--brick); }
.hero .lede { margin-bottom: 1.75rem; }

/* Photo framed like a doorway: the frame hugs the photo, and each photo is
   cropped server-side to the frame's exact shape so nothing is cut unexpectedly. */
.arch-frame {
  width: 100%; max-width: 30rem; margin-inline: auto;
  padding: 0.5rem; border: 2px solid var(--brick); border-radius: 999px 999px 1.5rem 1.5rem;
}
.arch-frame img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 999px 999px 1rem 1rem;
}
.hero .arch-frame img { aspect-ratio: 6 / 5; }
.arch-frame--sage { border-color: var(--sage); }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem;
  list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--muted); }
.hero-facts svg { width: 1.4rem; height: 1.4rem; color: var(--brick); flex: none; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 26rem; }
}

/* Section heads */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* Who we support — arched portraits */
.people {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.75rem);
  list-style: none; margin: 0; padding: 0;
}
.people a { display: block; text-decoration: none; color: inherit; }
.people img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--arch); margin-bottom: 1rem;
  transition: border-radius .35s ease;
}
.people a:hover img, .people a:focus-visible img { border-radius: var(--radius); }
.people h3 { margin-bottom: 0.25rem; color: var(--brick-deep); }
.people p { font-size: 1rem; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .people { grid-template-columns: repeat(2, 1fr); } }

/* Ways we help — ruled list */
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split-sticky { position: sticky; top: 8rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-sticky { position: static; } }

.service-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--brick-deep); }
.service-list li {
  display: grid; grid-template-columns: 3.25rem 1fr; gap: 1.25rem;
  padding-block: 1.75rem; border-bottom: 1px solid var(--line);
}
.service-list .glyph {
  width: 3.25rem; height: 3.25rem; border-radius: 999px 999px 0.5rem 0.5rem;
  background: var(--oat); display: grid; place-items: center; color: var(--brick);
}
.section--oat .service-list .glyph { background: var(--paper); }
.service-list .glyph svg { width: 1.6rem; height: 1.6rem; }
.service-list h3 { margin-bottom: 0.35rem; }
.service-list p { margin: 0 0 0.5rem; color: var(--muted); }
.service-list a { font-weight: 700; }

/* Steps */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  list-style: none; margin: 0; padding: 0; counter-reset: step;
}
.steps li { counter-increment: step; position: relative; padding-top: 4.5rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 3.25rem; height: 3.75rem; border-radius: 999px 999px 0.4rem 0.4rem;
  background: var(--brick); color: #fff;
  font: 800 1.5rem/3.9rem var(--font-display); text-align: center;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.9rem; left: 4.25rem; right: -1rem;
  border-top: 2px dashed var(--clay);
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Pricing band */
.price-band {
  background: var(--brick-deep); color: var(--cream);
  border-radius: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2.5rem, 6vw, 5rem);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 4rem; align-items: center;
}
.price-band h2 { color: #fff; }
.price-band p { color: #F1DCCB; }
.price-band .btn--solid { background: var(--cream); color: var(--brick-deep); border-color: var(--cream); }
.price-band .btn--solid:hover { background: #fff; border-color: #fff; }
.price-band .btn--ghost { color: var(--cream); border-color: var(--cream); }
.price-band .btn--ghost:hover { background: var(--cream); color: var(--brick-deep); }
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-lines a { color: #fff; font: 700 clamp(1.25rem, 2.3vw, 1.75rem)/1.2 var(--font-display); text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; color: #fff; }
.contact-lines span { display: block; font-size: 0.95rem; color: #E8C4AE; }
@media (max-width: 820px) { .price-band { grid-template-columns: 1fr; } }

/* Comfortia Cleaning sub-brand band */
.cleaning-band { background: var(--sage-light); }
.cleaning-band h2, .cleaning-band h3 { color: var(--sage); }
.cleaning-band .btn--solid { background: var(--sage); border-color: var(--sage); }
.cleaning-band .btn--solid:hover { background: #3E4B35; border-color: #3E4B35; }
.cleaning-band .btn--ghost { color: var(--sage); border-color: var(--sage); }
.cleaning-band .btn--ghost:hover { background: var(--sage); color: #fff; }
.sub-brand { display: inline-flex; align-items: center; gap: 0.5rem; font: 800 1.15rem var(--font-display); color: var(--sage); margin-bottom: 1rem; }
.sub-brand svg { width: 1.6rem; height: auto; }
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.media-split--flip > :first-child { order: 2; }
@media (max-width: 820px) {
  .media-split { grid-template-columns: 1fr; }
  .media-split--flip > :first-child { order: 0; }
  .media-split .arch-frame { max-width: 26rem; margin-inline: 0; }
}
.tick-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.6rem; }
.tick-list li { display: flex; gap: 0.7rem; align-items: baseline; }
.tick-list li::before {
  content: ""; flex: none; width: 0.75rem; height: 0.9rem; transform: translateY(0.1rem);
  border-radius: 999px 999px 0.15rem 0.15rem; background: var(--brick);
}
.cleaning-band .tick-list li::before, .tick-list--sage li::before { background: var(--sage); }

/* England coverage */
.coverage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.regions { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.regions li { padding: 0.45rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 1rem; }
.regions li.is-base { background: var(--brick); border-color: var(--brick); color: #fff; font-weight: 700; }
.map-wrap svg { width: 100%; max-width: 26rem; height: auto; margin-inline: auto; display: block; }
@media (max-width: 820px) { .coverage { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 2px solid var(--brick-deep); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding-block: 1.4rem; font: 700 clamp(1.15rem, 1.8vw, 1.35rem)/1.3 var(--font-display); color: var(--brick-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 999px;
  border: 1.5px solid var(--brick); color: var(--brick);
  display: grid; place-items: center; font: 400 1.5rem/1 var(--font-body);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.5rem; color: var(--muted); }

/* Page header for inner pages */
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 5rem); max-width: 16ch; }
.page-head .lede { max-width: 52ch; }
.jump-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; list-style: none; padding: 0; }
.jump-links a {
  display: inline-block; padding: 0.55rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); text-decoration: none;
  color: var(--soot); font-weight: 700; font-size: 1rem;
}
.jump-links a:hover { border-color: var(--brick); color: var(--brick); }

/* Care detail blocks */
.care-block { scroll-margin-top: 7rem; }
.care-block + .care-block { border-top: 1px solid var(--line); }
.care-block .kicker { font-weight: 700; color: var(--brick); margin-bottom: 0.75rem; }

/* Values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.values svg { width: 4.5rem; height: 4.5rem; margin-bottom: 1.25rem; }
.values p { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* Forms */
.form-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.75rem);
}
.field { display: grid; gap: 0.4rem; margin-bottom: 1.25rem; }
.field label, .field legend { font-weight: 700; }
.field .hint { font-size: 0.95rem; color: var(--muted); margin: 0; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--soot);
  padding: 0.85rem 1rem; min-height: 3.25rem;
  border: 2px solid var(--line); border-radius: 0.75rem; background: #fff;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 3px rgba(158, 59, 34, 0.2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.95rem; color: var(--muted); }
.form-card h3 { margin-bottom: 1.25rem; }

/* Feedback rating: arch-topped choices, matching the brand motif */
.rating { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.rating legend { padding: 0; margin-bottom: 0.5rem; }
.rating-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rating-options label { cursor: pointer; }
.rating-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-options span {
  display: inline-block; padding: 0.6rem 1rem; min-height: 2.75rem;
  border: 2px solid var(--line); border-radius: 999px 999px 0.6rem 0.6rem;
  background: #fff; font-weight: 700; font-size: 1rem;
}
.rating-options label:hover span { border-color: var(--brick); }
.rating-options input:checked + span { background: var(--brick); border-color: var(--brick); color: #fff; }
.rating-options input:focus-visible + span { outline: 3px solid var(--brick); outline-offset: 3px; }
.cleaning-band .rating-options label:hover span { border-color: var(--sage); }
.cleaning-band .rating-options input:checked + span { background: var(--sage); border-color: var(--sage); }
.cleaning-band .field input:focus, .cleaning-band .field select:focus, .cleaning-band .field textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(86, 102, 74, 0.25); }
.cleaning-band a:not(.btn) { color: var(--sage); }

.check { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1.5rem; cursor: pointer; }
.check input { width: 1.35rem; height: 1.35rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--brick); }
.cleaning-band .check input { accent-color: var(--sage); }
.form-status { font-weight: 700; color: var(--sage); margin-top: 1rem; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-detail { border-top: 2px solid var(--brick-deep); }
.contact-detail div { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.contact-detail dt { font-weight: 700; color: var(--muted); font-size: 1rem; }
.contact-detail dd { margin: 0.2rem 0 0; font: 700 clamp(1.2rem, 2vw, 1.5rem)/1.3 var(--font-display); color: var(--brick-deep); }
.contact-detail dd a { color: inherit; text-decoration: none; }
.contact-detail dd a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--soot); color: #E9DCCD; padding-block: 4rem 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h2 { font-size: 1.05rem; color: var(--clay); letter-spacing: 0; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name small { color: var(--clay); }
.footer-about { margin-top: 1.25rem; font-size: 1rem; max-width: 34ch; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid #4A3A32;
  font-size: 0.9rem; color: #BBA899;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }


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

/* Form sending states */
.form-status:empty { display: none; }
.form-status.is-error { color: var(--brick); }
.form-card button[disabled] { opacity: 0.7; cursor: wait; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
