/* =========================================================
   Upfront Plumbing — styles
   Mobile-first. System fonts only, no external requests.
   Palette: deep pine green + warm brass on a warm paper base.
   ========================================================= */

:root {
  /* colour */
  --pine-900: #0E1D18;
  --pine-800: #12261F;
  --pine-700: #1B3A30;
  --pine-600: #27503F;
  --pine-100: #DCE6E0;

  --paper:    #F7F3EC;
  --paper-2:  #EFE8DB;
  --paper-3:  #E4DACA;

  --brass:      #C9922F;
  --brass-dark: #8A5E12;
  --brass-soft: #F2E2C0;

  --rust: #B0472A;

  --text:   #1A2621;
  --muted:  #55635B;
  --line:   #DAD0BF;
  --focus:  #C4451F;

  /* type */
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.35rem, 1.15rem + 1vw, 1.6rem);
  --step-3: clamp(1.6rem, 1.3rem + 1.6vw, 2.15rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.6vw, 3.4rem);

  /* space */
  --wrap: 1120px;
  --gut: 1.25rem;
  --section-y: clamp(3.25rem, 7vw, 5.75rem);
  --radius: 10px;

  --header-h: 62px;
  --callbar-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.62;
  /* room for the fixed mobile call bar */
  padding-bottom: var(--callbar-h);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--pine-800);
}
h1 { font-size: var(--step-4); letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.2; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brass-dark); text-underline-offset: 3px; }
a:hover { color: var(--rust); }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

/* focus — visible everywhere, never removed */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--pine-800);
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.75rem;
}
.eyebrow-dark { color: var(--brass-dark); }

.section-title { margin-bottom: 0.5rem; }
.section-lede {
  color: var(--muted);
  font-size: var(--step-1);
  max-width: 46ch;
  margin-bottom: 2rem;
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .08s ease;
}
.btn:active { transform: translateY(1px); }
.btn .ico { flex: none; }

.btn-call {
  background: var(--brass);
  color: var(--pine-900);
  border-color: var(--brass);
}
.btn-call:hover { background: #DAA341; border-color: #DAA341; color: var(--pine-900); }

.btn-solid {
  background: var(--pine-700);
  color: #fff;
  border-color: var(--pine-700);
}
.btn-solid:hover { background: var(--pine-600); border-color: var(--pine-600); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(247, 243, 236, .45);
}
.btn-ghost:hover { background: rgba(247, 243, 236, .1); color: #fff; border-color: var(--paper); }

.btn-lg { min-height: 58px; font-size: 1.125rem; padding: 1rem 1.5rem; }
.btn-block { width: 100%; }

/* ---------------- 1. header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pine-800);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 20px rgba(14,29,24,.28); }

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--paper);
}
.brand-mark { color: var(--brass); flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-tag {
  display: none;
  font-size: 0.75rem;
  color: var(--brass-soft);
  letter-spacing: 0.01em;
}

.btn-header-call { padding-inline: 1rem; min-height: 44px; }
.btn-call-label { display: none; }

/* ---------------- 2. hero ---------------- */
.hero {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(201,146,47,.16), transparent 60%),
    linear-gradient(180deg, var(--pine-800) 0%, var(--pine-900) 100%);
  color: var(--paper);
  padding-block: clamp(2.75rem, 8vw, 5.5rem) clamp(3rem, 8vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brass) 0%, var(--rust) 100%);
}
.hero-inner { max-width: 46rem; }
.hero h1 { color: var(--paper); margin-bottom: 1rem; }
.hero h1 em {
  font-style: italic;
  color: var(--brass);
}
.hero-sub {
  font-size: var(--step-1);
  color: var(--pine-100);
  max-width: 40ch;
  margin-bottom: 2rem;
}
.hero-sub strong { color: #fff; font-weight: 600; }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--pine-100);
}
.hero-points li { display: flex; align-items: center; gap: 0.5rem; }
.hero-points li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brass);
  flex: none;
}

/* ---------------- 3. promise ---------------- */
.promise {
  background: var(--paper-2);
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--line);
}
.promise .section-title { margin-bottom: 2rem; }

.promise-grid {
  display: grid;
  gap: 1rem;
}
.promise-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brass);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.4rem;
}
.promise-num {
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brass-dark);
  margin-bottom: 0.6rem;
}
.promise-card h3 { margin-bottom: 0.4rem; }
.promise-card p { color: var(--muted); margin: 0; }

/* ---------------- 4. services ---------------- */
.services { padding-block: var(--section-y); }

.service-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-card {
  background: var(--paper);
  padding: 1.6rem 1.4rem;
}
.service-card h3 { margin-bottom: 0.35rem; }
.service-card p { color: var(--muted); margin: 0; }

/* ---------------- 5. coverage ---------------- */
.coverage {
  background: var(--pine-800);
  color: var(--paper);
  padding-block: var(--section-y);
}
.coverage .section-title { color: var(--paper); }
.coverage p { color: var(--pine-100); max-width: 42ch; }
.coverage-copy { margin-bottom: 2rem; }

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.area-list li {
  border: 1px solid rgba(242, 226, 192, .32);
  border-radius: 100px;
  padding: 0.45rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brass-soft);
  background: rgba(201,146,47,.08);
}

/* ---------------- 6. reviews ---------------- */
.reviews {
  padding-block: var(--section-y);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.review-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.review-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.stars { color: var(--brass); letter-spacing: 0.12em; margin-bottom: 0.75rem; }
.review-card blockquote { margin: 0 0 1rem; flex: 1; }
.review-card blockquote p {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.5;
  margin: 0;
}
.review-card figcaption { font-size: 0.9rem; font-weight: 700; color: var(--pine-700); }
.review-card figcaption span { font-weight: 400; color: var(--muted); }

/* ---------------- 7. contact ---------------- */
.contact { padding-block: var(--section-y); }
.contact-inner { display: grid; gap: 2.5rem; }

.contact-list { margin-top: 1.75rem; display: grid; gap: 1rem; }
.contact-list li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-value {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pine-700);
  text-decoration: none;
  word-break: break-word;
}
a.contact-value:hover { color: var(--rust); text-decoration: underline; }
.contact-value-plain { font-family: var(--sans); font-size: 1rem; font-weight: 400; color: var(--text); }

.quote-form {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
}
.form-title { font-size: var(--step-2); margin-bottom: 1.25rem; }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pine-700);
  margin-bottom: 0.35rem;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.0625rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid #C6BAA6;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  min-height: 48px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field textarea:focus {
  border-color: var(--pine-700);
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

.form-note {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------------- 8. footer ---------------- */
.site-footer {
  background: var(--pine-900);
  color: var(--pine-100);
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
  font-size: 0.95rem;
}
.footer-inner { display: grid; gap: 2rem; padding-bottom: 2rem; }
.footer-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 0.25rem;
}
.footer-strap { color: var(--brass); margin: 0; }
.footer-h {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin: 0 0 0.6rem;
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--brass); text-decoration: underline; }
.footer-col p { margin: 0 0 0.35rem; }

.footer-legal {
  border-top: 1px solid rgba(242, 226, 192, .18);
  padding-block: 1.25rem;
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #9FB0A7;
}
.footer-legal p { margin: 0; }

/* ---------------- fixed mobile call bar ---------------- */
.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 110;
  background: rgba(14, 29, 24, .96);
  border-top: 1px solid rgba(201,146,47,.35);
  padding: 0.6rem var(--gut) calc(0.6rem + env(safe-area-inset-bottom, 0px));
}
.call-bar .btn { min-height: 52px; }

/* ---------------- breakpoints ---------------- */
@media (min-width: 480px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (min-width: 640px) {
  .promise-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .btn-call-label { display: inline; }
  .btn-call-short { display: none; }
  .brand-tag { display: block; }
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
  .footer-legal { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 900px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-inner { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
  .coverage-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
  .coverage-copy { margin-bottom: 0; }
  .quote-form { padding: 2rem 1.85rem; }
}

/* On larger screens the sticky header call button is always reachable,
   so the bottom bar is only needed on phones. */
@media (min-width: 700px) {
  body { padding-bottom: 0; }
  .call-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .call-bar, .hero-actions { display: none; }
  body { background: #fff; color: #000; padding-bottom: 0; }
}
