/* Hawthorne Plumbing Co. - demonstration site by Prairie Vision.
   Fictional business. One family (Archivo variable: weight + width axes), one accent (amber),
   forest greens on a cool light neutral. Radius scale: 6px everywhere. */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #f1f2ee;
  --surface: #fafaf7;
  --ink: #16211c;
  --muted: #4c5a52;
  --line: rgba(22, 33, 28, .14);
  --forest: #1f3d31;
  --forest-deep: #142a21;
  --on-forest: #eef1ec;
  --amber: #e3a03a;
  --amber-hover: #eeb258;
  --on-amber: #241604;
  --radius: 6px;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --shadow: 0 1px 2px rgba(20, 42, 33, .08), 0 14px 34px rgba(20, 42, 33, .12);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111a16;
    --surface: #17221d;
    --ink: #e8ece8;
    --muted: #a7b3ac;
    --line: rgba(232, 236, 232, .14);
    --forest: #1c3a2e;
    --forest-deep: #0d1813;
    --on-forest: #e8ece8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .call-bar { transition: none; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 {
  margin: 0;
  font-stretch: 116%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 4.9vw, 70px); }
h2 { font-size: clamp(30px, 3.8vw, 50px); }
h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.15; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.lead { max-width: 52ch; color: var(--muted); font-size: clamp(18px, 1.5vw, 21px); }
.skip { position: absolute; left: 12px; top: -60px; padding: 10px 14px; background: var(--amber); color: var(--on-amber); border-radius: var(--radius); z-index: 50; }
.skip:focus { top: 12px; }

/* Demo notice: honest, small, always first. */
.demo-note { background: var(--forest-deep); color: var(--on-forest); font-size: 13px; }
.demo-note .wrap { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; padding-block: 8px; }
.demo-note a { color: var(--amber); text-underline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--forest); color: var(--amber); font-stretch: 125%; font-weight: 900; font-size: 20px; }
.brand-name { display: grid; line-height: 1.1; }
.brand-name b { font-stretch: 118%; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand-name span { color: var(--muted); font-size: 12.5px; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.header-phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: var(--radius); border: 1.5px solid transparent; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease, transform 120ms ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--on-amber); }
.btn-primary:hover { background: var(--amber-hover); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: clamp(36px, 6vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-photo figcaption { position: absolute; left: -18px; bottom: 26px; max-width: 250px; padding: 14px 16px; border-radius: var(--radius); background: var(--forest); color: var(--on-forest); font-size: 15px; line-height: 1.35; box-shadow: var(--shadow); }
.hero-photo figcaption b { display: block; color: var(--amber); font-stretch: 112%; font-size: 13px; letter-spacing: .02em; }

/* Assurances under the hero */
.assure { border-block: 1px solid var(--line); background: var(--surface); }
.assure ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.assure li { padding: 22px 24px 22px 0; }
.assure li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.assure b { display: block; font-stretch: 112%; font-size: 17px; }
.assure span { color: var(--muted); font-size: 15px; }

/* Sections */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted); }

/* Services: tall photo beside a list of services (not three equal cards) */
.services-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.services-split img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.service-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.service-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 26px 0; }
.service-list li + li { border-top: 1px solid var(--line); }
.service-list p { grid-column: 1; margin: 0; color: var(--muted); }
.service-list a { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 600; text-decoration-color: var(--amber); text-underline-offset: 5px; white-space: nowrap; }

/* Visit steps: horizontal timeline */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 28px 28px 0 0; border-top: 2px solid var(--ink); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: -17px; left: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--amber); color: var(--on-amber); font-weight: 800; font-size: 15px; }
.steps h3 { margin: 12px 0 10px; }
.steps p { color: var(--muted); max-width: 32ch; }

/* Feature: water heaters, image right */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.feature ul { margin: 0 0 28px; padding: 0; list-style: none; }
.feature li { position: relative; padding: 9px 0 9px 30px; }
.feature li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 13px; height: 7px; border-left: 2.5px solid var(--forest); border-bottom: 2.5px solid var(--forest); transform: rotate(-45deg); }
@media (prefers-color-scheme: dark) { .feature li::before { border-color: var(--amber); } }

/* Urgent band: the one color-block moment on the page */
.urgent { position: relative; overflow: hidden; background: var(--forest-deep); color: var(--on-forest); }
.urgent .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-block: clamp(56px, 7vw, 96px); }
.urgent h2 { margin-bottom: 14px; }
.urgent p { color: color-mix(in srgb, var(--on-forest) 80%, transparent); max-width: 46ch; }
.urgent img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); opacity: .92; }
.urgent .btn-outline { border-color: var(--on-forest); color: var(--on-forest); }
.big-phone { display: inline-block; margin: 6px 0 22px; color: var(--amber); font-stretch: 120%; font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); text-decoration: none; letter-spacing: -.01em; }

/* Area + hours */
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.towns { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.towns li { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 600; }
.hours { margin: 18px 0 0; }
.hours div { display: flex; justify-content: space-between; gap: 20px; padding: 6px 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--muted); }
.hours div:first-child { border-top: 2px solid var(--ink); padding-top: 14px; }

/* Page header for inner pages */
.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 18px; }

/* Services page groups */
.group { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.group:first-of-type { border-top: 2px solid var(--ink); }
.group h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 12px; }
.group ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.group li { padding: 6px 0; break-inside: avoid; }
.group img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-top: 22px; }
.note { padding: 22px 24px; border-left: 4px solid var(--amber); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.about img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.about-body p { max-width: 60ch; }
.values { margin: 34px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.values li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 28px; padding: 20px 0; }
.values li + li { border-top: 1px solid var(--line); }
.values b { font-stretch: 112%; }
.values span { color: var(--muted); }

/* Request form */
.request { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: clamp(64px, 9vw, 128px); }
.form { display: grid; gap: 20px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; }
.field .hint { color: var(--muted); font-size: 14px; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: var(--radius); background: var(--bg); color: var(--ink); font: inherit; }
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 55%, transparent); }
.field [aria-invalid='true'] { border-color: #b3261e; }
.error { color: #b3261e; font-size: 14px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .error, .field [aria-invalid='true'] { color: #ff8a80; border-color: #ff8a80; } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
fieldset.field { margin: 0; padding: 0; border: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--radius); font-weight: 500; cursor: pointer; }
.choices input { width: auto; min-height: 0; accent-color: var(--forest); }
.demo-flag { margin: 0; color: var(--muted); font-size: 14px; }
.success { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-left: 4px solid var(--forest); border-radius: var(--radius); background: var(--surface); }
.success h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.aside-box { padding: 24px; border-radius: var(--radius); background: var(--forest); color: var(--on-forest); }
.aside-box h2 { font-size: 26px; margin-bottom: 10px; }
.aside-box .big-phone { font-size: 32px; margin-bottom: 10px; }
.aside-box p { color: color-mix(in srgb, var(--on-forest) 82%, transparent); margin: 0; }
.aside-list { margin: 26px 0 0; padding: 0; list-style: none; }
.aside-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.aside-list b { display: block; }
.aside-list span { color: var(--muted); }

/* Footer */
.site-footer { padding: 56px 0 32px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 15px; font-stretch: 100%; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { padding: 4px 0; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-small { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Sticky call bar on phones */
.call-bar { display: none; }

@media (max-width: 900px) {
  .nav, .header-phone { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav.is-open { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 0; padding: 8px var(--gutter) 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero .wrap, .services-split, .feature, .urgent .wrap, .area, .group, .about, .request { grid-template-columns: minmax(0, 1fr); }
  .hero-photo figcaption { position: static; max-width: none; margin-top: 10px; box-shadow: none; }
  .brand-name b { font-size: 16px; white-space: nowrap; }
  .services-split img { aspect-ratio: 16 / 10; }
  .feature img { order: -1; aspect-ratio: 16 / 10; }
  .about img { aspect-ratio: 4 / 3; }
  .assure ul { grid-template-columns: minmax(0, 1fr); }
  .assure li, .assure li + li { padding: 16px 0; border-left: 0; }
  .assure li + li { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .values li { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .call-bar { transform: translateY(110%); transition: transform 220ms ease; }
  .call-bar.is-visible { transform: none; }
  .call-bar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(20, 42, 33, .10); }
  .call-bar .btn { min-height: 50px; padding: 0 12px; }
  body { padding-bottom: 76px; }
}
@media (max-width: 560px) {
  .two { grid-template-columns: minmax(0, 1fr); }
  .group ul { columns: 1; }
  .service-list li { grid-template-columns: minmax(0, 1fr); }
  .service-list a { grid-column: 1; grid-row: auto; }
  .btn-row .btn { flex: 1 1 100%; }
}
