/* Ironbark Tree Care — "Cookie" layout primitive: a full-bleed hero with
   a circular growth-ring medallion (years in business, literally) and an
   arch-topped content panel — no clip-path diagonal cuts, no offset
   rectangle, no split-screen. Own CSS variables and class taxonomy — see
   img/SOURCES.md and README.md for the rest of the build notes. */

:root {
  --heartwood: #2b1f18;
  --heartwood-2: #3a2a1f;
  --umber: #6b4a35;
  --umber-light: #9c7860;
  --amber: #d68c33;
  --amber-dim: #b06f22;
  --skyline: #5c8a99;
  --skyline-dim: #47707d;
  --birch: #faf6f0;
  --birch-2: #f0e8dc;
  --char: #211712;
  --ash: #6b5f56;

  --font-display: 'Spectral', serif;
  --font-text: 'Public Sans', sans-serif;

  --curve: 8px;
  --lift: 0 18px 40px rgba(43, 31, 24, 0.22);
  --measure: 62ch;
  --edge: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--birch);
  color: var(--char);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 0.4em;
  color: var(--heartwood);
}

p { margin: 0 0 1em; max-width: var(--measure); color: var(--ash); }

a { color: var(--skyline-dim); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

button { font-family: inherit; cursor: pointer; }

/* ---------- Buttons ---------- */
.limb {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--curve);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.limb:hover { transform: translateY(-2px); }
.limb--amber { background: var(--amber); color: var(--heartwood); box-shadow: 0 10px 22px rgba(214, 140, 51, 0.35); }
.limb--amber:hover { background: var(--amber-dim); color: #fff; }
.limb--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.limb--outline:hover { border-color: #fff; }
.limb--ghost { background: transparent; color: var(--heartwood); border-color: var(--heartwood); }
.limb--ghost:hover { background: var(--heartwood); color: #fff; }
.limb--full { width: 100%; justify-content: center; }

/* ---------- Topbar ---------- */
.strip-band { background: var(--heartwood); color: var(--birch-2); font-size: 0.82rem; }
.strip-band-inner { padding: 0.5em var(--edge); display: flex; justify-content: space-between; gap: 1em; flex-wrap: wrap; }

/* ---------- Masthead: canopy-nav ---------- */
.canopy-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(43, 31, 24, 0.1);
}
.canopy-row { padding: 0.9em var(--edge); display: flex; align-items: center; gap: 2em; }
.sawyer {
  display: flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  color: var(--heartwood);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: auto;
}
.sawyer svg { flex: none; color: var(--amber-dim); }
.branches { display: flex; gap: 1.6em; }
.branches a { text-decoration: none; color: var(--char); font-weight: 600; font-size: 0.95rem; }
.branches a:hover { color: var(--skyline-dim); }
.burl {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--amber);
  color: var(--heartwood);
  padding: 0.6em 1.2em;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.burl:hover { background: var(--amber-dim); color: #fff; }
.grain-toggle { background: none; border: none; padding: 0.4em; display: none; }
.grain-toggle span { display: block; width: 22px; height: 2px; background: var(--heartwood); margin: 5px 0; }
.branches.is-open { display: flex; }

@media (max-width: 860px) {
  .branches {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--birch);
    flex-direction: column;
    padding: 1em var(--edge) 1.4em;
    border-bottom: 1px solid rgba(43, 31, 24, 0.1);
    gap: 0.9em;
  }
  .grain-toggle { display: block; }
}

/* ---------- Hero: cookie ---------- */
.cookie { position: relative; min-height: 84vh; display: flex; align-items: flex-end; overflow: hidden; }
.cookie-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cookie-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 31, 24, 0.1) 0%, rgba(43, 31, 24, 0.7) 100%);
}
.cookie-medallion {
  position: absolute;
  top: clamp(20px, 4vw, 56px);
  right: clamp(20px, 4vw, 56px);
  z-index: 3;
  width: clamp(84px, 10vw, 128px);
  height: clamp(84px, 10vw, 128px);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(250, 246, 240, 0.16) 0, rgba(250, 246, 240, 0.16) 2px, transparent 2px, transparent 10px),
    var(--heartwood-2);
  border: 3px solid var(--amber);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--birch);
  box-shadow: var(--lift);
}
.cookie-medallion strong { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1; color: var(--amber); }
.cookie-medallion span { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; text-align: center; }
.cookie-panel {
  position: relative;
  z-index: 2;
  background: var(--birch);
  padding: 2.6em var(--edge) 2.8em;
  margin: 0 0 0 clamp(0px, 3vw, 4vw);
  max-width: 620px;
  border-radius: var(--curve) var(--curve) 0 0;
  box-shadow: var(--lift);
}
.cookie-panel .status-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--skyline-dim);
  margin-bottom: 0.8em;
}
.cookie-panel h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.cookie-actions { display: flex; gap: 0.9em; flex-wrap: wrap; margin-top: 1.2em; }

/* ---------- Trust band ---------- */
.band-facts { background: var(--heartwood-2); color: var(--birch-2); }
.band-facts-inner {
  padding: 0.9em var(--edge);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 2.4em;
  justify-content: center;
  font-size: 0.9rem;
  text-align: center;
}
.band-facts-inner strong { color: var(--amber); font-family: var(--font-display); }

/* ---------- Hazard Field Note (bespoke) ---------- */
.fieldnote { padding: clamp(3em, 7vw, 5.5em) var(--edge); background: var(--birch-2); }
.fieldnote-frame { max-width: 820px; margin: 0 auto; background: var(--birch); border: 1.5px solid rgba(43, 31, 24, 0.14); border-radius: var(--curve); padding: clamp(1.8em, 4vw, 2.6em); box-shadow: var(--lift); }
.fieldnote-lead { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 1.2em; }
.fieldnote-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1em; }
.fieldnote-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1em;
  padding-bottom: 1em;
  border-bottom: 1px solid rgba(43, 31, 24, 0.1);
}
.fieldnote-item:last-child { border-bottom: none; padding-bottom: 0; }
.fieldnote-item strong { display: block; color: var(--heartwood); margin-bottom: 0.2em; }
.fieldnote-item p { margin: 0; font-size: 0.92rem; }
.fieldnote-risk {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  white-space: nowrap;
  height: fit-content;
}
.fieldnote-risk[data-level="high"] { background: rgba(214, 140, 51, 0.16); color: var(--amber-dim); }
.fieldnote-risk[data-level="normal"] { background: rgba(92, 138, 153, 0.14); color: var(--skyline-dim); }

/* ---------- Services: growth ---------- */
.growth-section { padding: clamp(3em, 7vw, 5.5em) var(--edge); }
.growth-open { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 46ch; margin-bottom: 1.4em; }
.growth-sheet { border-top: 1px solid rgba(43, 31, 24, 0.12); max-width: 900px; }
.growth-row {
  display: grid;
  grid-template-columns: 2.4em 1.6fr 1fr 1fr;
  gap: 1em;
  align-items: center;
  padding: 1em 0;
  border-bottom: 1px solid rgba(43, 31, 24, 0.12);
}
.growth-row .step { font-family: var(--font-display); color: var(--umber-light); font-size: 1rem; }
.growth-row h3 { margin: 0; font-size: 1.05rem; }
.growth-row .turnaround { font-size: 0.85rem; color: var(--skyline-dim); font-weight: 700; }
.growth-row .rate { font-size: 0.85rem; color: var(--amber-dim); font-weight: 700; text-align: right; }
@media (max-width: 700px) {
  .growth-row { grid-template-columns: 2em 1fr; }
  .growth-row .turnaround, .growth-row .rate { grid-column: 2; text-align: left; }
}

/* ---------- Grove gallery (bespoke, circular tiles) ---------- */
.grove-section { padding: clamp(3em, 7vw, 5.5em) var(--edge); background: var(--heartwood); color: var(--birch); }
.grove-filter { display: flex; gap: 0.6em; flex-wrap: wrap; margin-bottom: 2em; }
.grove-filter button {
  background: rgba(250, 246, 240, 0.08);
  border: 1px solid rgba(250, 246, 240, 0.25);
  color: var(--birch);
  padding: 0.55em 1.1em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.grove-filter button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--heartwood); }
.grove-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6em; }
.grove-cell { text-align: center; }
.grove-cell-img {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--amber);
  margin-bottom: 0.8em;
}
.grove-cell-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.grove-cell:hover .grove-cell-img img { transform: scale(1.08); }
.grove-tag { font-size: 0.82rem; font-weight: 700; color: var(--birch); }
.grove-cell.is-hidden { display: none; }
@media (max-width: 800px) { .grove-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Reviews: heard ---------- */
.heard-section { padding: clamp(3em, 7vw, 5.5em) var(--edge); }
.heard-frame { max-width: 1100px; margin: 0 auto; }
.heard-open { display: flex; align-items: baseline; gap: 0.6em; margin-bottom: 1.6em; flex-wrap: wrap; }
.heard-open .count-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--heartwood); }
.heard-open .count-note { color: var(--ash); font-size: 0.95rem; }
.heard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4em; }
.heard-card { background: var(--birch-2); border-radius: var(--curve); padding: 1.7em; border-top: 3px solid var(--amber); }
.heard-card p { font-size: 0.95rem; color: var(--char); margin-bottom: 1em; }
.heard-who { font-size: 0.85rem; color: var(--ash); font-weight: 700; }
@media (max-width: 800px) { .heard-grid { grid-template-columns: 1fr; } }

/* ---------- Service area: patch ---------- */
.patch-section { padding: clamp(2em, 5vw, 3em) var(--edge); text-align: center; }
.patch-tags { display: flex; flex-wrap: wrap; gap: 0.6em; justify-content: center; margin-top: 1em; }
.patch-tags span { background: var(--birch-2); color: var(--char); padding: 0.5em 1em; border-radius: 999px; font-size: 0.88rem; }

/* ---------- Closer CTA: timberline ---------- */
.timberline { position: relative; padding: clamp(4em, 10vw, 7em) var(--edge); color: #fff; text-align: center; overflow: hidden; background: var(--heartwood); }
.timberline-glow { position: absolute; bottom: -30%; left: 50%; transform: translateX(-50%); width: 80%; height: 160%; background: radial-gradient(circle, rgba(214, 140, 51, 0.22), transparent 70%); z-index: 0; }
.timberline-content { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.timberline h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.timberline .trunk-big { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); color: #fff; text-decoration: none; margin: 0.5em 0 1.1em; }
.timberline-actions { display: flex; gap: 1em; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact + footer ---------- */
.reach-out { padding: clamp(3em, 7vw, 5.5em) var(--edge); display: grid; grid-template-columns: 1.2fr 1fr; gap: 3em; }
.reach-out .trunk-lead { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.4rem); display: block; margin-bottom: 0.3em; text-decoration: none; color: var(--heartwood); }
.input-row { margin-bottom: 1em; }
.input-row label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 0.35em; }
.input-row input, .input-row select, .input-row textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1.5px solid rgba(43, 31, 24, 0.18);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--char);
}
.input-row input:focus, .input-row select:focus, .input-row textarea:focus { border-color: var(--skyline-dim); outline: none; }
.estimate-note { font-size: 0.85rem; margin-top: 0.8em; min-height: 1.2em; }
.estimate-note[data-state="ok"] { color: var(--skyline-dim); }
.estimate-note[data-state="err"] { color: var(--amber-dim); }
.facts-list { list-style: none; margin: 0; padding: 0; }
.facts-item { margin-bottom: 1.3em; }
.facts-item strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--umber-light); margin-bottom: 0.25em; }
.facts-item a, .facts-item span { color: var(--char); text-decoration: none; font-size: 1.02rem; }
.facts-item a:hover { color: var(--skyline-dim); }
@media (max-width: 800px) { .reach-out { grid-template-columns: 1fr; } }

.understory { background: var(--heartwood); color: var(--birch-2); padding: 3em var(--edge) 2em; }
.understory-top { display: flex; flex-wrap: wrap; gap: 2.5em; justify-content: space-between; margin-bottom: 2em; }
.understory .sawyer { color: #fff; }
.understory-tagline { max-width: 32ch; color: var(--umber-light); font-size: 0.92rem; }
.understory-nav { display: flex; flex-direction: column; gap: 0.6em; }
.understory-nav a { color: var(--birch-2); text-decoration: none; font-size: 0.92rem; }
.understory-nav a:hover { color: #fff; }
.understory-bottom { border-top: 1px solid rgba(250, 246, 240, 0.12); padding-top: 1.4em; font-size: 0.8rem; color: var(--umber-light); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6em; }

/* ---------- Persistent CTA: knot ---------- */
.knot {
  position: fixed;
  right: 1.2em;
  bottom: 1.2em;
  z-index: 50;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--heartwood);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(43, 31, 24, 0.35);
  border: 3px solid var(--birch);
}
.knot:hover { background: var(--amber-dim); }
.knot span { display: none; }
@media (min-width: 640px) {
  .knot {
    width: auto;
    height: auto;
    border-radius: 999px;
    padding: 0.9em 1.3em 0.9em 1em;
    gap: 0.6em;
  }
  .knot span { display: inline; font-weight: 700; font-size: 0.9rem; }
}
