/* ============================================================
   LIGHT EDITORIAL SERIF — airy editorial design system
   Trade: plumbing / electric. Calm, trusted, expert.
   ============================================================
   PALETTE: warm ivory + deep pine accent + neutrals. Max 3 colors.
   Asymmetric 60/40 splits, one large + two small services.
   Instrument Serif display + clean sans body.
   ============================================================ */

:root {
  color-scheme: light;

  --paper: #faf7f0;        /* warm ivory */
  --paper-soft: #f1ece0;
  --ink: #1f2a22;          /* deep pine-charcoal */
  --ink-soft: #5c6b5f;

  --line: #e0d9c8;
  --line-strong: #c9c0ab;

  /* fixed dark surfaces */
  --pine: #16301f;         /* deep pine green */
  --pine-soft: #1e3d29;
  --pine-line: #2c4a34;

  /* accent — deep pine (used sparingly) */
  --accent: #2c6e49;
  --accent-ink: #f4fbf5;
  --accent-soft: #e6f0e7;
  --accent-strong: #24593b;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --space-section: clamp(5rem, 11vw, 8.5rem);
  --radius: 4px;
}

html[data-theme='dark'] {
  color-scheme: dark;
  --paper: #141a15;
  --paper-soft: #1c241d;
  --ink: #e8efe9;
  --ink-soft: #a8b5aa;
  --line: #2c3a2f;
  --line-strong: #3d4e41;
  --accent: #5aa67c;
  --accent-soft: #1f3326;
  --accent-strong: #6fc08f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}
a { color: var(--accent-strong); }
a:hover { color: var(--accent); }

.container { width: min(1080px, 90%); margin-inline: auto; }
section { padding-block: var(--space-section); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  touch-action: manipulation;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header — light, hairline */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  min-height: 68px;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
  flex-wrap: nowrap;
}
.header__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.header__brand:hover { color: var(--accent); }
.header__nav { display: flex; align-items: center; gap: 2rem; }
.header__nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.header__nav a:hover { color: var(--accent-strong); }
.header__phone {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--ink); text-decoration: none; font-weight: 600;
  white-space: nowrap; font-size: 0.95rem;
}
.header__phone:hover { color: var(--accent-strong); }
@media (max-width: 640px) {
  .header__nav { display: none; }
}
@media (max-width: 479px) {
  .header__phone .header__phone-label { display: none; }
}

/* hero — asymmetric 60/40 split, text left, feature panel right */
.hero { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero__note {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  display: grid;
  gap: 1rem;
}
.hero__note p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--ink);
}
.hero__kicker {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 1.25rem;
  max-width: 14ch;
}
.hero__sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 2rem;
}
.hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero__feature {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.hero__feature h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent-strong);
}
.hero__feature p { color: var(--ink-soft); font-size: 0.98rem; }
.hero__feature .pull {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1.3;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* section labels */
.section__label {
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
/* label on the always-dark pine band needs a lighter green */
.band .section__label {
  color: #7fc89a;
}
.section__title {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  margin-bottom: 1rem;
  max-width: 20ch;
}
.section__lede { color: var(--ink-soft); max-width: 52ch; }

/* services — one large + two small, alternating sides */
.services__list {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}
.service {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service--featured { background: var(--paper-soft); padding: 2.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.service h3 { font-size: 1.7rem; margin-bottom: 0.6rem; }
.service p { color: var(--ink-soft); }
.service__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.service__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  flex-shrink: 0;
}

/* band steps (approach) */
.band__steps {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
.band__steps li {
  color: #eef5ef;
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  font-size: 1.02rem;
}
.band__steps strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
}

/* credentials band — deep pine, fixed dark */
.band {
  background: var(--pine);
  color: #fff;
}
.band__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.band h2 { color: #fff; }
.band p { color: #cfe0d2; }
.band__creds { list-style: none; display: grid; gap: 0.9rem; }
.band__creds li { display: flex; align-items: center; gap: 0.75rem; color: #eef5ef; }
.band__creds li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* about — editorial pull quote */
.about__inner { max-width: 60ch; }
.about__body { color: var(--ink-soft); font-size: 1.1rem; }
.about__quote {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.25;
  color: var(--accent-strong);
  margin-top: 2.5rem;
}

/* contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact__form { display: grid; gap: 1rem; }
.contact__form label { font-size: 0.9rem; color: var(--ink-soft); }
.contact__form input, .contact__form textarea {
  width: 100%; padding: 0.8rem 1rem;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink); font-family: var(--font-body); font-size: 1rem;
}
.contact__form input:focus, .contact__form textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.contact__info { display: grid; gap: 0; background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.contact__info-head {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--accent-strong);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.contact__info-item { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact__info-item:first-of-type { padding-top: 0; }
.contact__info-item:last-child { padding-bottom: 0; border-bottom: none; }
.contact__info-item strong { display: block; color: var(--ink); margin-bottom: 0.2rem; }
.contact__info-item span, .contact__info-item a { color: var(--ink-soft); }
.contact__info-item a:hover { color: var(--accent-strong); }
.contact__info-cta { margin-top: 1.5rem; }
.contact__info-cta .btn--primary { width: 100%; }

/* footer — light, hairline */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: 2rem; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.footer__copy { font-size: 0.85rem; color: var(--ink-soft); }

/* theme switch */
.theme-switch { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--ink-soft); }
.theme-switch button[role='switch'] {
  width: 52px; height: 28px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--paper-soft);
  cursor: pointer; position: relative; padding: 0;
  transition: background 150ms ease; touch-action: manipulation;
}
.theme-switch button[role='switch']::before {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); transition: transform 200ms ease;
}
.theme-switch button[role='switch'][aria-checked='true']::before {
  transform: translateX(24px); background: var(--accent);
}
.theme-switch button[role='switch'][aria-checked='true'] { background: var(--accent-soft); }
.theme-switch button[role='switch']:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 860px) {
  .hero__inner, .band__inner, .contact__grid, .service { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
