/* Lorne Park Tree Service - "contour map" (2026 redesign). Hand-written.
   Rerun build.py after editing so the ?v= hash updates.
   One bold element: the topographic contour field behind every hero.
   Everything else stays quiet: white and stone sections, slate type. */

:root {
  --slate: #25343F;      /* ink panels, header text, brand */
  --slate-d: #1A252D;    /* footer */
  --teal: #1E6B73;       /* lake teal: links, rules, numbers */
  --teal-l: #7FC1BC;     /* contour lines and ticks on slate */
  --stone: #ECE9E1;      /* alternate sections */
  --sand: #EDE8DD;       /* text on slate */
  --sig: #F6C744;        /* signal yellow: action buttons only */
  --sig-h: #FFD866;
  --ink: #1F2A33;        /* body text */
  --muted: #4F5D67;      /* secondary text */
  --field: #6B7780;      /* input borders */
  --line: #CFCABF;       /* hairlines (decorative) */
  --white: #ffffff;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(16px, 4vw, 32px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); overflow-x: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 2px; }
.hero :focus-visible, .band :focus-visible, .ft :focus-visible, .dock :focus-visible { outline-color: var(--sig); }
h1, h2, h3 { margin: 0 0 .5em; color: var(--slate); }
h1, h2 { font-family: var(--serif); font-weight: 600; font-variation-settings: "opsz" 144; letter-spacing: -.012em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.45rem); line-height: 1.12; }
h3 { font-family: var(--sans); font-size: 1.14rem; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--sig); color: var(--slate); padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gut); }
.wrap--mid { max-width: 820px; }
.ico { width: 1.1em; height: 1.1em; flex: none; }
.tick { width: 1.15em; height: 1.15em; flex: none; margin-top: .22em; color: var(--teal); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.25em;
  border-radius: var(--radius); border: 2px solid transparent; font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn--sig { background: var(--sig); color: var(--slate); border-color: var(--sig); }
.btn--sig:hover { background: var(--sig-h); border-color: var(--sig-h); }
.btn--ghost { background: transparent; color: var(--sand); border-color: var(--sand); }
.btn--ghost:hover { background: rgba(237,232,221,.12); }
.btn--lg { font-size: 1.06rem; min-height: 54px; padding: .8em 1.4em; }
.btn--wide { width: 100%; }

/* ---------- header ---------- */
.hd { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.hd__in { max-width: 1320px; margin: 0 auto; padding: 10px var(--gut); display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--slate); margin-right: auto; }
.mark { width: 44px; height: 44px; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand__a { font: 700 1.28rem/1.05 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.01em; }
.brand__b { font: 600 .82rem/1.3 var(--sans); letter-spacing: .04em; color: var(--muted); }
.brand--light { color: var(--sand); }
.brand--light .brand__b { color: var(--teal-l); }
.hd__phone { display: none; align-items: center; gap: 8px; font-weight: 700; color: var(--slate); text-decoration: none; white-space: nowrap; }
.hd__cta { white-space: nowrap; }

.nav__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid var(--slate); border-radius: var(--radius);
  background: var(--white); color: var(--slate); font: 700 .95rem var(--sans); cursor: pointer; }
.nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -6px; } .nav__bars::after { top: 6px; }
.nav__list { display: none; }
.nav.is-open .nav__list { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 3px solid var(--slate);
  padding: 8px var(--gut) 20px; box-shadow: 0 16px 30px rgba(26,37,45,.18); max-height: calc(100vh - 80px); overflow-y: auto; }
.nav__list > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
.nav__list a { display: block; padding: 13px 0; color: var(--slate); font-weight: 600; text-decoration: none; flex: 1; }
.nav__list a[aria-current="page"] { color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px; }
.sub__btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--slate); cursor: pointer; border-radius: var(--radius); }
.sub__btn svg { width: 13px; transition: transform .2s; }
.has-sub.is-open > .sub__btn svg { transform: rotate(180deg); }
.sub { display: none; width: 100%; padding: 0 0 10px 14px; border-left: 2px solid var(--teal-l); margin-bottom: 8px; }
.has-sub.is-open > .sub { display: block; }
.sub a { padding: 9px 0; font-weight: 500; }
.nav__call a { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 700; }

@media (min-width: 1040px) {
  .nav__btn, .nav__call { display: none !important; }
  .nav__list { display: flex; gap: 4px; align-items: center; }
  .nav__list > li { border: 0; position: relative; flex-wrap: nowrap; }
  .nav__list a { padding: 10px 10px; }
  .nav__list > li > a:hover { color: var(--teal); }
  .sub__btn { width: 28px; margin-left: -8px; }
  .sub { position: absolute; top: 100%; left: -8px; width: 300px; padding: 10px 0; margin: 0; border: 1px solid var(--line); border-top: 3px solid var(--teal);
    background: var(--white); box-shadow: 0 18px 34px rgba(26,37,45,.16); border-radius: 0 0 var(--radius) var(--radius); }
  .sub a { padding: 9px 18px; }
  .sub a:hover { background: var(--stone); }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
  .has-sub.is-shut > .sub { display: none; }
}
@media (min-width: 1200px) { .hd__phone { display: inline-flex; } }

/* ---------- hero: the contour field ---------- */
.hero { position: relative; overflow: hidden; background: var(--slate); color: var(--sand); isolation: isolate; }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.topo path { fill: none; stroke: var(--teal-l); stroke-width: 1.2; opacity: .46; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.topo path.ix { stroke-width: 2.2; opacity: .85; }
.topo--t { display: none; }
@media (max-width: 759px) { .topo--w { display: none; } .topo--t { display: block; } }
@media (prefers-reduced-motion: no-preference) {
  .topo path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s cubic-bezier(.35,.6,.2,1) forwards; animation-delay: calc(var(--i) * 60ms); }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
.hero__in { max-width: 1320px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gut) clamp(40px, 6vw, 72px); display: grid; gap: 32px; }
.hero h1 { color: var(--white); font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4.1rem); line-height: 1.04; margin-bottom: .45em; max-width: 15ch; text-wrap: balance; }
.hero--short h1 { max-width: 20ch; }
.crumbs { font-size: .9rem; margin-bottom: 18px; color: var(--sand); }
.crumbs a { color: var(--sand); }
.badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 28px; }
.badges li { display: flex; gap: 8px; font-weight: 600; }
.badges .tick { color: var(--teal-l); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 960px) {
  .hero--form .hero__in { grid-template-columns: minmax(380px, 460px) 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
  .hero--form .hero__form { grid-column: 1; grid-row: 1; }
  .hero--form .hero__main { grid-column: 2; }
  .hero--short .hero__in { padding-top: 64px; padding-bottom: 72px; }
}

/* ---------- quote card ---------- */
.card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); box-shadow: 0 22px 50px rgba(10,18,24,.38); }
.card__h { font-size: 1.65rem; font-variation-settings: "opsz" 36; margin-bottom: .2em; }
.card__sub { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.f--full { grid-column: 1 / -1; }
.f label { font-weight: 600; font-size: .92rem; color: var(--slate); }
.req { font-weight: 400; color: var(--muted); }
.f input, .f select, .f textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1.5px solid var(--field);
  border-radius: 4px; padding: 10px 11px; min-height: 46px; }
.f textarea { resize: vertical; min-height: 84px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 3px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.f [aria-invalid="true"] { border-color: #A3261B; }
.err { color: #A3261B; font-size: .88rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn { grid-column: 1 / -1; margin-top: 4px; }
.card__or { grid-column: 1 / -1; text-align: center; margin: 0; font-size: .95rem; color: var(--muted); }
.card__or a { font-weight: 700; }
.form-ok, .form-err { padding: 16px; border-radius: 4px; margin-top: 12px; }
.form-ok { background: #E3F0EE; border-left: 4px solid var(--teal); }
.form-ok h3 { margin-bottom: .3em; }
.form-err { background: #FBEDEA; border-left: 4px solid #A3261B; }
.form-ok[hidden], .form-err[hidden] { display: none; }
@media (max-width: 480px) { .lead-form { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 7vw, 96px) 0; }
.sec--stone { background: var(--stone); }
.sec__head { max-width: 62ch; margin-bottom: clamp(24px, 4vw, 40px); }
.sec__head p { color: var(--muted); font-size: 1.08rem; }
.prose p, .prose li { max-width: 66ch; }
.lede { font-size: 1.2rem; line-height: 1.6; }
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--top { align-items: start; }
.split__img img { width: 100%; border-radius: var(--radius); }
.stack { display: grid; gap: 20px; }
.two, .three { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr 1fr; }
  .three { grid-template-columns: 1fr 1fr 1fr; }
}
.block + .block { margin-top: 36px; }

/* service legend (home) */
.legend { display: grid; gap: 0 48px; }
@media (min-width: 800px) { .legend { grid-template-columns: 1fr 1fr; } }
.legend li { border-top: 1px solid var(--line); }
.legend a { display: grid; grid-template-columns: 22px 1fr; gap: 2px 14px; padding: 18px 0 20px; text-decoration: none; color: var(--ink); }
.legend a::before { content: ""; grid-row: 1 / 3; width: 18px; height: 18px; margin-top: 7px; border-radius: 50%;
  border: 2px solid var(--teal); box-shadow: inset 0 0 0 3px var(--stone), inset 0 0 0 5px var(--teal); }
.legend__n { font: 600 1.35rem/1.25 var(--serif); font-variation-settings: "opsz" 48; color: var(--slate); }
.legend__d { color: var(--muted); }
.legend a:hover .legend__n { color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }

/* lakeshore reasons */
.whys { display: grid; gap: 32px 56px; }
@media (min-width: 800px) { .whys { grid-template-columns: 1fr 1fr; } }
.why { border-top: 3px solid var(--teal); padding-top: 18px; }
.why p { color: var(--ink); max-width: 60ch; }

/* prices + permit */
.prices table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-variant-numeric: tabular-nums; }
.prices th, .prices td { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prices th { font-weight: 500; padding-right: 16px; }
.prices td { font-weight: 700; color: var(--slate); white-space: nowrap; text-align: right; }
.note { color: var(--muted); font-size: .95rem; }
.permit { background: var(--white); border-left: 4px solid var(--teal); padding: clamp(20px, 3vw, 32px); border-radius: 0 var(--radius) var(--radius) 0; }
.pricebox { background: var(--slate); color: var(--sand); padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); }
.pricebox h2 { color: var(--white); }
.pricebox p { max-width: 60ch; }

/* steps: a real sequence, so numbered */
.steps { display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font: 600 3rem/1 var(--serif); color: var(--teal); margin-bottom: 10px; }
.steps p { color: var(--muted); }

.checks li { display: flex; gap: 10px; margin-bottom: 10px; }
.plan { counter-reset: p; }
.plan li { counter-increment: p; display: grid; grid-template-columns: 34px 1fr; margin-bottom: 12px; }
.plan li::before { content: counter(p); font: 700 1rem/1.65 var(--sans); color: var(--teal); }

/* gallery */
.gal { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gal figure { margin: 0; }
.gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gal figcaption { font-size: .92rem; color: var(--muted); margin-top: 8px; }

/* services index */
.svcs { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.svc a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.svc__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-bottom: 8px; }
.svc__n { font: 600 1.3rem/1.25 var(--serif); color: var(--slate); }
.svc__d { color: var(--muted); }
.svc a:hover .svc__n { color: var(--teal); text-decoration: underline; }
.bigphone a { font: 600 clamp(1.8rem, 1.3rem + 2vw, 2.6rem)/1.1 var(--serif); color: var(--slate); text-decoration: none; }
.bigphone a:hover { color: var(--teal); }

/* faq */
.qas { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; font-weight: 600; font-size: 1.08rem; color: var(--slate); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 1.6rem/1 var(--sans); color: var(--teal); flex: none; }
.qa[open] summary::after { content: "\2212"; }
.qa__a p { max-width: 66ch; padding-bottom: 8px; }

.closer { font-size: 1.1rem; max-width: 66ch; }
.others h2 { font-size: 1.5rem; margin-top: 28px; }
.others ul { display: flex; flex-wrap: wrap; gap: 10px; }
.others a { display: inline-block; padding: 10px 14px; border: 1.5px solid var(--teal); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.others a:hover { background: var(--teal); color: var(--white); }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.legal h2 { font-size: 1.4rem; margin-top: 1.4em; }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); }

/* slate call band */
.band { background: var(--slate); color: var(--sand); padding: clamp(48px, 6vw, 80px) 0; }
.band h2 { color: var(--white); }
.band a:not(.btn) { color: var(--sand); }
.band__in { display: grid; gap: 28px; align-items: center; }
.band__btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .band__in { grid-template-columns: 1.3fr 1fr; } .band__btns { justify-content: flex-end; } }

/* ---------- footer ---------- */
.ft { background: var(--slate-d); color: var(--sand); padding: 56px 0 24px; font-size: .96rem; }
.ft a { color: var(--sand); }
.ft__in { max-width: 1200px; margin: 0 auto; padding: 0 var(--gut); display: grid; gap: 36px; }
@media (min-width: 900px) { .ft__in { grid-template-columns: 1.3fr 1fr .8fr 1.3fr; } }
.ft__brand .brand { margin-bottom: 16px; }
.ft__phone { font: 600 1.4rem var(--serif); text-decoration: none; }
.ft__h { font: 700 1rem var(--sans); color: var(--white); margin-bottom: 12px; }
.ft li { margin-bottom: 7px; }
.ft__map iframe { width: 100%; height: 230px; border: 0; border-radius: var(--radius); }
.ft__legal { max-width: 1200px; margin: 36px auto 0; padding: 18px var(--gut) 0; border-top: 1px solid #3A4A55; font-size: .88rem; color: #C9CFCF; }

/* ---------- mobile dock ---------- */
.dock { display: none; }
@media (max-width: 759px) {
  body { padding-bottom: 64px; }
  .hd__cta { display: none; }
  .dock { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; box-shadow: 0 -6px 20px rgba(26,37,45,.25); }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; font-weight: 700; text-decoration: none; }
  .dock__call { background: var(--slate); color: var(--white); }
  .dock__quote { background: var(--sig); color: var(--slate); }
}
@media (max-width: 400px) { .brand__a { font-size: 1.1rem; } .mark { width: 38px; height: 38px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
