/* Demo/live site styles. Shared by every niche; niche-specific bits are at the bottom. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-wdth.woff2") format("woff2-variations"), url("fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --water-deep: #0b4a66;
  --water: #16789e;
  --water-hi: #6fcde3;
  --tile-a: #1d5c99;
  --tile-b: #3a8cc6;
  --tile-c: #a7dbe9;
  --grout: #e4ecee;
  --deck: #eef2f1;
  --paper: #ffffff;
  --ink: #0a2a38;
  --muted: #4b6671;
  --line: #d3dfe2;
  --sun: #ffc93c;
  --banner: #fff1bf;
  --hero-end: #2a9cc2;
  --radius: 6px;
  --wrap: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--deck);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--water-hi); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Preview notice (demo mode only) */
.preview-banner {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  background: var(--banner); color: var(--ink);
  padding: 10px 20px; font-size: 0.9rem; line-height: 1.4;
}
.preview-banner a { font-weight: 650; }
.preview-banner button {
  flex: none; font: inherit; font-weight: 650; background: transparent; color: var(--ink);
  border: 1.5px solid currentColor; border-radius: var(--radius); padding: 4px 10px; cursor: pointer;
}

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--water-deep); color: #fff; padding: 14px 20px;
}
.wordmark {
  font-stretch: 125%; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.005em;
  text-decoration: none; line-height: 1.1;
}
.top-call { min-height: 42px; padding: 0 16px; font-size: 0.95rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px; border-radius: var(--radius);
  font: inherit; font-stretch: 112%; font-weight: 700; font-size: 1.02rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-sun, .btn-call { background: var(--sun); color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,0.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-deep { background: var(--water-deep); color: #fff; width: 100%; }
.btn-deep:hover { background: #083a51; }
.btn:focus-visible { outline-color: var(--sun); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, var(--water-deep) 0%, var(--water) 62%, var(--hero-end) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(52px, 9vw, 112px) 20px clamp(76px, 10vw, 124px);
}
.hero h1 {
  font-stretch: 125%; font-weight: 820;
  font-size: clamp(2.5rem, 8.2vw, 5.1rem); line-height: 0.98; letter-spacing: -0.012em;
  max-width: 13ch;
}
.hero-sub { margin-top: 20px; font-size: clamp(1.1rem, 2.3vw, 1.35rem); max-width: 34ch; color: #e3f5fa; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.rating { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 1rem; color: #e3f5fa; }
.rating a { color: #fff; text-underline-offset: 3px; }
.stars {
  font-size: 1.15rem; letter-spacing: 2px;
  background: linear-gradient(90deg, var(--sun) var(--pct, 100%), rgba(255,255,255,0.3) var(--pct, 100%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Water caustics: two slow-drifting light layers */
.caustics { position: absolute; inset: -10%; pointer-events: none; mix-blend-mode: screen; }
.caustics svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.caustics .l1 { opacity: 0.42; animation: drift-a 26s ease-in-out infinite alternate; }
.caustics .l2 { opacity: 0.26; animation: drift-b 34s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate3d(-2%, -1%, 0) scale(1.02); } to { transform: translate3d(2%, 1.5%, 0) scale(1.05); } }
@keyframes drift-b { from { transform: translate3d(2%, 1%, 0) scale(1.06); } to { transform: translate3d(-2%, -1.5%, 0) scale(1.02); } }
.still .caustics svg { animation: none; }
@media (prefers-reduced-motion: reduce) { .caustics svg { animation: none; } html { scroll-behavior: auto; } }

/* The waterline: mosaic tile band where the water meets the deck */
.waterline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30px; z-index: 1;
  background-color: var(--grout);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Crect width='60' height='30' fill='%23e4ecee'/%3E%3Cg%3E%3Crect x='1' y='1' width='13' height='13' fill='%231d5c99'/%3E%3Crect x='16' y='1' width='13' height='13' fill='%233a8cc6'/%3E%3Crect x='31' y='1' width='13' height='13' fill='%231d5c99'/%3E%3Crect x='46' y='1' width='13' height='13' fill='%23a7dbe9'/%3E%3Crect x='1' y='16' width='13' height='13' fill='%233a8cc6'/%3E%3Crect x='16' y='16' width='13' height='13' fill='%23a7dbe9'/%3E%3Crect x='31' y='16' width='13' height='13' fill='%233a8cc6'/%3E%3Crect x='46' y='16' width='13' height='13' fill='%231d5c99'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 30px;
  border-bottom: 10px solid #dde5e5;
  box-sizing: content-box;
}

/* Sections */
section h2 {
  font-stretch: 118%; font-weight: 780;
  font-size: clamp(1.8rem, 4.2vw, 2.7rem); line-height: 1.04; letter-spacing: -0.01em;
}
.lede { margin-top: 14px; color: var(--muted); max-width: 40ch; font-size: 1.1rem; }

.visit { padding: clamp(64px, 9vw, 104px) 0 clamp(48px, 7vw, 80px); }
.visit-grid { display: grid; gap: 32px; }
.strip {
  list-style: none; margin: 0; padding: 6px 0;
  background: var(--paper); border-radius: 10px;
  border: 1px solid var(--line);
}
.strip li {
  display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: center;
  padding: 15px 20px; font-size: 1.05rem;
}
.strip li + li { border-top: 1px solid var(--line); }
.strip li::before {
  content: ""; width: 24px; height: 24px; border-radius: 4px;
  background: var(--pad, var(--water-hi));
  box-shadow: inset 0 0 0 1px rgba(10,42,56,0.08);
}
/* test-strip pad colors */
.strip li:nth-child(6n+1) { --pad: #f2d04f; }
.strip li:nth-child(6n+2) { --pad: #f39a4c; }
.strip li:nth-child(6n+3) { --pad: #e0687f; }
.strip li:nth-child(6n+4) { --pad: #9a6cc4; }
.strip li:nth-child(6n+5) { --pad: #4caa78; }
.strip li:nth-child(6n+6) { --pad: #2f9db6; }

.services { padding: clamp(32px, 6vw, 64px) 0 clamp(64px, 9vw, 104px); }
.service-list { margin: 28px 0 0; display: grid; gap: 0 48px; }
.service-list > div { padding: 18px 0 20px; border-top: 1.5px solid var(--ink); }
.service-list dt { font-stretch: 110%; font-weight: 720; font-size: 1.2rem; }
.service-list dd { margin: 6px 0 0; color: var(--muted); max-width: 46ch; }
.area { margin-top: 36px; font-size: 1.1rem; }

.quote { background: var(--paper); padding: clamp(64px, 9vw, 104px) 0; border-top: 1px solid var(--line); }
.quote-grid { display: grid; gap: 32px; }
.quote-direct { margin-top: 18px; }
.quote-direct a { font-weight: 700; color: var(--water-deep); }
.quote-form { display: grid; gap: 16px; }
.quote-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.98rem; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  width: 100%; padding: 12px 14px; min-height: 48px;
  background: #fff; border: 1.5px solid #b7c8cd; border-radius: var(--radius);
}
.quote-form textarea { resize: vertical; }
.quote-form input:focus-visible, .quote-form select:focus-visible, .quote-form textarea:focus-visible { outline: 3px solid var(--water-hi); outline-offset: 0; border-color: var(--water); }
.form-note { color: var(--muted); font-size: 0.95rem; min-height: 1.4em; }

.foot { background: var(--water-deep); color: #cfe8f0; padding: 44px 0 104px; }
.foot-grid { display: grid; gap: 18px; }
.foot-name { font-stretch: 125%; font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 4px; }
.foot a { color: #fff; }
.foot-credit { font-size: 0.92rem; }

/* Mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--ink); border-top: 3px solid var(--sun);
  padding-bottom: env(safe-area-inset-bottom);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; min-height: 56px;
  color: #fff; text-decoration: none; font-weight: 700; font-stretch: 112%;
}
.callbar a + a { border-left: 1px solid rgba(255,255,255,0.18); }
.callbar a:first-child { background: var(--sun); color: var(--ink); }

.hide-sm { display: none; }
.sm-only { display: inline; }
.top-call { white-space: nowrap; }

@media (min-width: 720px) {
  .hide-sm { display: inline; }
  .sm-only { display: none; }
  .callbar { display: none; }
  .foot { padding-bottom: 44px; }
  .visit-grid { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
  .service-list { grid-template-columns: 1fr 1fr; }
  .quote-grid { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
  .foot-grid { grid-template-columns: 1fr auto; align-items: end; }
  .wordmark { font-size: 1.3rem; }
}

/* ---------- Tree service ---------- */
.niche-tree {
  --water-deep: #1f3b2c;
  --water: #2d5a3d;
  --hero-end: #3f7350;
  --water-hi: #a6d9ad;
  --deck: #eef1ec;
  --ink: #13261b;
  --muted: #4c6052;
  --line: #d5ddd4;
  --sun: #ff9a2e;
}
.niche-tree .hero-sub, .niche-tree .rating { color: #e6f2e6; }
.niche-tree .caustics { mix-blend-mode: soft-light; }
.niche-tree .caustics .l1 { opacity: 0.55; }
.niche-tree .caustics .l2 { opacity: 0.4; }
/* stacked log ends where the canopy meets the ground */
.niche-tree .waterline {
  height: 28px;
  background-color: #3d2a1b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Crect width='28' height='28' fill='%233d2a1b'/%3E%3Ccircle cx='14' cy='14' r='12' fill='%23c99a5b' stroke='%236b4a2b' stroke-width='2'/%3E%3Ccircle cx='14' cy='14' r='8' fill='none' stroke='%23a97a43' stroke-width='1.2'/%3E%3Ccircle cx='14' cy='14' r='4' fill='none' stroke='%23a97a43' stroke-width='1.2'/%3E%3Ccircle cx='14' cy='14' r='1.2' fill='%236b4a2b'/%3E%3C/svg%3E");
  background-size: 28px 28px;
  border-bottom: 10px solid #d9dfd6;
}
/* leaf colors, spring to fall, on the job steps */
.niche-tree .strip li:nth-child(6n+1) { --pad: #9cc96b; }
.niche-tree .strip li:nth-child(6n+2) { --pad: #5f9f48; }
.niche-tree .strip li:nth-child(6n+3) { --pad: #2f6e3a; }
.niche-tree .strip li:nth-child(6n+4) { --pad: #e0b13a; }
.niche-tree .strip li:nth-child(6n+5) { --pad: #d9822b; }
.niche-tree .strip li:nth-child(6n+6) { --pad: #a8482a; }
.niche-tree .quote-direct a { color: #2d5a3d; }
