/* Ways Property Care — site styles
   Brand tokens from brand-kit/theme.css. Stone darkened to #5E6660 so small text passes WCAG AA on paper. */
:root {
  --ink: #111613;
  --forest: #0B3D2E;
  --forest-2: #0F4A38;
  --green: #2F7D46;
  --accent: #C8E36A;
  --white: #FFFFFF;
  --paper: #F7F8F2;
  --mist: #E7EDE6;
  --stone: #5E6660;

  --font-head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --bar-h: 64px;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, .display {
  font-family: var(--font-head);
  font-variation-settings: "wdth" 80;
  font-stretch: 80%;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: .95; }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3 { font-size: 1.35rem; font-variation-settings: "wdth" 90; font-stretch: 90%; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.muted { color: var(--stone); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--white { background: var(--white); }
.section--forest { background: var(--forest); color: var(--paper); }
.section--forest h2, .section--forest h3 { color: var(--white); }
.section--forest a:not(.btn) { color: var(--accent); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--stone); font-size: 1.1rem; }
.section--forest .section-head p { color: #CFDCD4; }

/* The base line: the accent bar from the logo, used under page titles */
.baseline::after {
  content: "";
  display: block;
  width: 88px;
  height: 8px;
  margin-top: .32em;
  background: var(--accent);
}

/* Skip link */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 14px; font-weight: 700; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #D6EC86; color: var(--ink); }
.btn--forest { background: var(--forest); color: var(--white); }
.btn--forest:hover { background: var(--green); color: var(--white); }
.btn--outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn--outline:hover { background: var(--forest); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.75); color: var(--white); background: transparent; }
.btn--ghost:hover { background: var(--white); color: var(--forest); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--mist); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 900; font-size: 1.7rem; letter-spacing: .01em; }
.brand-sub { white-space: nowrap; font-weight: 800; font-size: .66rem; letter-spacing: .2em; color: var(--forest); margin-top: 5px; padding-bottom: 5px; border-bottom: 4px solid var(--accent); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-block; white-space: nowrap; padding: 10px 11px; color: var(--ink); font-weight: 600; text-decoration: none; border-radius: var(--radius); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--forest); background: var(--mist); }
.nav .btn { display: inline-flex; margin-left: 8px; padding: 0 18px; min-height: 46px; }
.nav .btn:hover { background: #D6EC86; }
.header-phone { font-weight: 800; color: var(--forest) !important; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--forest); border-radius: var(--radius); min-height: 44px; padding: 0 14px; font: 700 .95rem var(--font-body); color: var(--forest); cursor: pointer; }

@media (max-width: 1480px) { .header-phone { display: none !important; } }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--mist); padding: 8px var(--gutter) 20px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--mist); border-radius: 0; }
  .nav .btn { margin: 14px 0 0; border-bottom: 0; border-radius: var(--radius); }
  .header-phone { display: none !important; }
  .brand-name { font-size: 1.45rem; }
  .brand svg { width: 40px; height: 40px; }
}

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: var(--bar-h); }
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: var(--bar-h); background: var(--ink); border-top: 1px solid #2a312d;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--white); text-decoration: none; font-weight: 800; font-size: .98rem; border-right: 1px solid #2a312d; }
  .action-bar a:last-child { background: var(--accent); color: var(--ink); border-right: 0; }
  .action-bar svg { width: 18px; height: 18px; }
}

/* Home hero */
.hero { position: relative; min-height: clamp(560px, 82vh, 780px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--forest); }
.hero picture, .hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img.hero-bg { object-fit: cover; object-position: 68% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11,61,46,.94) 0%, rgba(11,61,46,.82) 38%, rgba(11,61,46,.25) 70%, rgba(11,61,46,0) 100%); }
.hero-inner { position: relative; z-index: 2; padding-top: 80px; padding-bottom: clamp(48px, 7vw, 88px); }
.hero h1 { color: var(--white); max-width: 10.5ch; font-size: clamp(3rem, 8vw, 6.6rem); }
.hero h1::after { content: ""; display: block; width: min(320px, 60%); height: 10px; background: var(--accent); margin-top: .22em; }
.hero .lead { color: #E6EEE9; max-width: 34em; margin-top: 18px; }
.hero .btn-row { margin-top: 28px; }
.proof { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 28px 0 0; font-weight: 600; font-size: .98rem; color: #E6EEE9; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
@media (max-width: 760px) {
  .hero { min-height: auto; align-items: stretch; }
  .hero::before { background: linear-gradient(180deg, rgba(11,61,46,.55) 0%, rgba(11,61,46,.88) 45%, rgba(11,61,46,.97) 100%); }
  .hero img.hero-bg { object-position: 75% 20%; }
  .hero-inner { padding-top: 160px; }
}

/* Category mosaic (home) */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--forest); color: var(--white); text-decoration: none; min-height: 260px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,22,19,0) 25%, rgba(17,22,19,.55) 55%, rgba(17,22,19,.92) 100%); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.tile .count { text-shadow: none; }
.tile h3 { color: var(--white); font-size: 1.7rem; margin: 0 0 4px; }
.tile p { margin: 0; color: #E6EEE9; font-size: .98rem; }
.tile .count { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .9rem; color: var(--ink); background: var(--accent); padding: 3px 10px; border-radius: 3px; }
.tile:hover img { transform: scale(1.04); }
.tile:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.tile--lg { grid-column: span 4; min-height: 420px; }
.tile--sm { grid-column: span 3; min-height: 280px; }
.tile--sm h3 { font-size: 1.4rem; }
@media (max-width: 960px) {
  .tile--lg { grid-column: span 12; min-height: 320px; }
  .tile--sm { grid-column: span 6; }
}
@media (max-width: 560px) { .tile--sm { grid-column: span 12; min-height: 240px; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 4px solid var(--forest); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-family: var(--font-head); font-weight: 900; font-size: 3rem; line-height: 1; color: var(--green); margin-bottom: 10px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--stone); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Two-column feature */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split > * { min-width: 0; }
.split--flip .split-media { order: -1; }
.split-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--flip .split-media { order: 0; } }

.points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; }
.points li h3 { font-size: 1.25rem; margin-bottom: 4px; }
.points li p { margin: 0; color: var(--stone); }
.section--forest .points li p { color: #CFDCD4; }
@media (max-width: 640px) { .points { grid-template-columns: 1fr; } }

/* Audience list */
.audiences { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--mist); }
.audiences li { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 8px 32px; padding: 18px 0; border-bottom: 1px solid var(--mist); }
.audiences strong { font-family: var(--font-head); font-size: 1.25rem; font-variation-settings: "wdth" 90; }
.audiences span { color: var(--stone); }
@media (max-width: 640px) { .audiences li { grid-template-columns: 1fr; } }

/* Areas */
.areas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.areas li { padding: 8px 14px; border: 2px solid var(--forest); border-radius: 999px; font-weight: 700; color: var(--forest); background: var(--white); }
.areas li.town { border: 1px solid #C3CEC5; font-weight: 600; color: #2C332F; background: transparent; }

/* Page hero (inner pages) */
.page-hero { background: var(--white); border-bottom: 1px solid var(--mist); }
.page-hero .split { padding: clamp(36px, 5vw, 64px) 0; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.page-hero .lead { margin-top: 14px; }
.page-hero .btn-row { margin-top: 24px; }
.page-hero--plain { padding: clamp(40px, 6vw, 72px) 0; }
.crumbs { font-size: .9rem; color: var(--stone); margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #9aa39d; }
.crumbs a { color: var(--stone); }

/* Service sheet: rows of services with a quote button */
.sheet { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 56px); border-top: 3px solid var(--forest); }
.sheet li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #D9E1D8; }
.sheet h3 { font-family: var(--font-body); font-variation-settings: normal; font-stretch: 100%; font-size: 1.04rem; font-weight: 800; line-height: 1.3; margin: 0 0 2px; }
.sheet p { margin: 0; font-size: .95rem; color: var(--stone); line-height: 1.45; }
.quote-link { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--radius); background: var(--mist); color: var(--forest); font-weight: 800; font-size: .9rem; text-decoration: none; border: 2px solid transparent; }
.quote-link:hover { background: var(--accent); color: var(--ink); }
@media (max-width: 760px) { .sheet { grid-template-columns: 1fr; } }

/* Category sections on Services page */
.cat-block { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--mist); scroll-margin-top: 90px; }
.cat-block:nth-of-type(even) { background: var(--white); }
.cat-head { display: grid; grid-template-columns: 1fr 360px; gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: 32px; }
.cat-head > * { min-width: 0; }
.cat-head img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.cat-head .btn-row { margin-top: 16px; }
@media (max-width: 860px) { .cat-head { grid-template-columns: 1fr; } .cat-head img { max-width: 520px; } }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.jump a { padding: 9px 14px; border-radius: 999px; background: var(--mist); color: var(--forest); font-weight: 700; text-decoration: none; font-size: .95rem; }
.jump a:hover { background: var(--accent); color: var(--ink); }

/* Hub cards (Services page, top 3) */
.hubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hub { background: var(--white); border: 1px solid var(--mist); border-top: 6px solid var(--forest); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.hub img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.hub-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hub h3 { font-size: 1.6rem; margin: 0; }
.hub p { margin: 0; color: var(--stone); }
.hub .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .hubs { grid-template-columns: 1fr; } }

/* Info callout */
.note { background: var(--white); border-left: 6px solid var(--accent); padding: 22px 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.note h3 { margin-bottom: 8px; }
.note p:last-child { margin-bottom: 0; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid #D9E1D8; }
.faq details { border-bottom: 1px solid #D9E1D8; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-weight: 800; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--green); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 20px; color: #2C332F; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--white); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(40px, 6vw, 64px); }
.cta-band h2 { color: var(--white); margin: 0; max-width: 16ch; }
.cta-band p { color: #C9D2CC; margin: 8px 0 0; }

/* Quote page */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.form-frame { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); overflow: hidden; }
.form-frame iframe { display: block; width: 100%; height: 1500px; border: 0; }
.contact-card { background: var(--forest); color: var(--paper); border-radius: var(--radius); padding: 26px; position: sticky; top: 96px; }
.contact-card h2 { color: var(--white); font-size: 1.9rem; }
.contact-card .btn { width: 100%; margin-top: 10px; }
.contact-card dl { margin: 20px 0 0; }
.contact-card dt { font-weight: 700; color: var(--accent); font-size: .9rem; margin-top: 14px; }
.contact-card dd { margin: 2px 0 0; }
.contact-card a:not(.btn) { color: var(--white); }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; } .contact-card { position: static; } .form-frame iframe { height: 1700px; } }

/* Empty state (Our Work) */
.empty { background: var(--white); border: 2px dashed #C3CEC5; border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); text-align: left; }
.empty h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Footer */
.site-footer { background: var(--forest); color: #CFDCD4; padding: clamp(48px, 7vw, 80px) 0 32px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-family: var(--font-body); font-variation-settings: normal; font-stretch: 100%; font-size: .95rem; font-weight: 800; color: var(--accent); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--accent); }
.footer-brand .brand { color: var(--white); }
.footer-brand .brand-sub { color: var(--accent); }
.footer-brand p { margin-top: 16px; max-width: 32ch; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; }
@media (max-width: 860px) { .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; }

/* Contact page tiles */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 14px; }
.contact-tile { display: flex; flex-direction: column; gap: 6px; padding: 24px; min-height: 170px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--mist); border-top: 6px solid var(--forest); color: var(--ink); text-decoration: none; }
.contact-tile svg { width: 28px; height: 28px; color: var(--green); margin-bottom: auto; }
.contact-tile .ct-title { font-family: var(--font-head); font-variation-settings: "wdth" 85; font-stretch: 85%; font-weight: 800; font-size: 1.6rem; line-height: 1.1; }
.contact-tile .ct-sub { color: var(--stone); font-weight: 600; overflow-wrap: anywhere; }
.contact-tile:hover { border-color: var(--green); color: var(--ink); }
.contact-tile--main { background: var(--accent); border: 0; }
.contact-tile--main svg { color: var(--ink); }
.contact-tile--main .ct-sub { color: var(--ink); }
.contact-tile--main:hover { background: #D6EC86; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; } .contact-tile--main { grid-column: 1 / -1; } }
@media (max-width: 480px) { .contact-grid { grid-template-columns: 1fr; } .contact-tile { min-height: 0; } }

/* Buttons wrap nicely on small phones */
@media (max-width: 420px) { .btn-row .btn { flex: 1 1 100%; } }
