/* ==========================================================================
   Lewiston Tree Pros: styles.css
   Design system: confluence canyon
   Basalt / wheat / river-teal, with a harvest-orange decorative accent only.
   Bitter (display slab serif) + Karla (body/UI). Sharp 4px card corners,
   single 3px harvest bottom-border card accent, solid-fill river buttons,
   native <details> FAQ and nav disclosures, scroll-driven reveals with an
   IntersectionObserver fallback, confluence-line SVG motif as a divider.
   ========================================================================== */

:root {
  --basalt: #211B16;
  --basalt-2: #2E251D;
  --wheat: #F3ECDD;
  --wheat-2: #EAE0CC;
  --surface: #FFFFFF;
  --ink: #241E18;
  --ink-soft: #55493C;
  --river: #1D6B76;
  --river-dark: #144E56;
  --harvest: #C97A2B;
  --hairline: rgba(36, 30, 24, 0.14);
  --hairline-dark: rgba(243, 236, 221, 0.16);

  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --container: 1180px;
  --radius-card: 4px;
  --radius-btn: 4px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wheat);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg.hero-art, video { max-width: 100%; display: block; }
a { color: var(--river); text-decoration-underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--river-dark); }
h1, h2, h3, h4 { color: var(--basalt); font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 0.55em; letter-spacing: -0.005em; }
p { margin: 0 0 1.15em; max-width: 68ch; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.3em; }
li { margin-bottom: 0.45em; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--river); outline-offset: 2px; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: 1.25rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
a.visually-hidden:focus {
  position: fixed; top: 0.5rem; left: 0.5rem; width: auto; height: auto;
  overflow: visible; clip: auto; white-space: normal;
  background: var(--basalt); color: #FFFFFF; padding: 0.75em 1.25em;
  border-radius: var(--radius-btn); z-index: 100; text-decoration: none;
}
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.eyebrow { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--harvest); margin: 0 0 0.6em; }
.eyebrow--on-dark { color: var(--harvest); }

/* ---------- Type scale ---------- */
h1 { font-size: clamp(2.15rem, 4.1vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); }
h4 { font-size: 1.05rem; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 58ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  background: var(--river); color: #FFFFFF;
  font-family: var(--font-body); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.95em 1.7em; border-radius: var(--radius-btn); border: none;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn:hover { background: var(--river-dark); color: #FFFFFF; }
.btn--block { width: 100%; justify-content: center; }
.btn--outline-light {
  background: transparent; color: var(--wheat);
  border: 2px solid var(--hairline-dark);
}
.btn--outline-light:hover { background: rgba(243, 236, 221, 0.1); color: #FFFFFF; border-color: var(--wheat); }
.btn--ghost { background: transparent; color: var(--river); border: 2px solid var(--river); }
.btn--ghost:hover { background: var(--river); color: #FFFFFF; }

/* ---------- Header ---------- */
.site-header { background: var(--basalt); color: var(--wheat); position: relative; z-index: 40; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: #FFFFFF; }
.brand__mark { width: 40px; height: 40px; flex: none; border-radius: 8px; }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.brand__sub { display: block; font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--harvest); }

/* Primary illustrated identity. The original text remains available to
   assistive technology while the generated portfolio lockup is visible. */
.site-header .brand {
  position: relative; display: block; width: 95px; height: 68px; flex: 0 0 95px;
  background: url("assets/logo.webp") left center / contain no-repeat;
}
.site-header .brand > * {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__links { list-style: none; display: flex; align-items: center; gap: 1.3rem; margin: 0; padding: 0; font-size: 0.92rem; font-weight: 600; }
.nav__links > li > a { color: var(--wheat); text-decoration: none; padding: 0.4em 0; border-bottom: 2px solid transparent; }
.nav__links > li > a:hover, .nav__links > li > a[aria-current="page"] { border-bottom-color: var(--harvest); }
.nav-dropdown { position: relative; }
.nav-dropdown summary { list-style: none; cursor: pointer; color: var(--wheat); display: flex; align-items: center; gap: 0.3em; padding: 0.4em 0; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: "\25BE"; font-size: 0.7em; }
.nav-dropdown[open] summary { color: var(--harvest); }
.nav-dropdown__panel {
  list-style: none; margin: 0; padding: 0.5rem; position: absolute; top: 100%; left: 0;
  background: var(--basalt-2); border: 1px solid var(--hairline-dark); border-radius: var(--radius-card);
  min-width: 15rem; box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.nav-dropdown__panel a { display: block; padding: 0.55em 0.75em; color: var(--wheat); text-decoration: none; font-weight: 500; border-radius: 2px; }
.nav-dropdown__panel a:hover { background: rgba(243, 236, 221, 0.08); color: #FFFFFF; }
.nav__phone { display: flex; align-items: center; gap: 0.4em; color: #FFFFFF; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav__phone svg { width: 1.1em; height: 1.1em; color: var(--harvest); }
.nav-mobile { display: none; }
.nav-mobile__toggle { list-style: none; cursor: pointer; color: var(--wheat); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; padding: 0.5em 0.8em; border: 1px solid var(--hairline-dark); border-radius: var(--radius-btn); }
.nav-mobile__toggle::-webkit-details-marker { display: none; }
.nav-mobile__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--basalt); border-top: 1px solid var(--hairline-dark); padding: 0.5rem 1.25rem 1.25rem; }
.nav-mobile__panel ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile__panel li { margin: 0; border-bottom: 1px solid var(--hairline-dark); }
.nav-mobile__panel a { display: block; padding: 0.85em 0.2em; color: var(--wheat); text-decoration: none; font-weight: 600; }
.nav-mobile__call { color: var(--harvest) !important; }
.nav-mobile__services-list { list-style: none; margin: 0.3em 0 0.3em 0.6em; padding: 0; }
.nav-mobile__services-list li { border-bottom: none; }
.nav-mobile__services-list a { font-weight: 400; padding: 0.6em 0.2em; }

@media (max-width: 900px) {
  .site-header .brand { width: 76px; height: 54px; flex-basis: 76px; }
  .nav__links { display: none; }
  .nav__phone span.phone-full { display: none; }
  .nav-mobile { display: block; position: relative; }
}
@media (min-width: 901px) {
  .nav-mobile { display: none; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--wheat-2); border-bottom: 1px solid var(--hairline); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4em; margin: 0; padding: 0.6rem 0; font-size: 0.82rem; color: var(--ink-soft); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.5em; color: var(--harvest); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--river); }
.breadcrumbs li[aria-current="page"] { color: var(--basalt); font-weight: 600; }

/* ---------- Hero (index only: media band) ---------- */
.hero { position: relative; color: #FFFFFF; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__poster { width: 100%; height: 100%; object-fit: cover; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(33,27,22,0.55) 0%, rgba(33,27,22,0.72) 55%, rgba(33,27,22,0.92) 100%); }
.hero .container { position: relative; z-index: 1; }
.hero__content { padding-block: var(--space-6) var(--space-5); max-width: 40rem; }
.hero h1 { color: #FFFFFF; }
.hero__content .lede { color: rgba(243, 236, 221, 0.92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

/* ---------- Page hero (interior pages: CSS/SVG band, no photography) ---------- */
.hero--page { position: relative; background: linear-gradient(135deg, var(--basalt) 0%, #382B1E 60%, var(--harvest) 140%); color: #FFFFFF; overflow: hidden; }
.hero--page .hero__media { opacity: 0.5; mix-blend-mode: luminosity; }
.hero--page .hero__scrim { background: linear-gradient(180deg, rgba(33,27,22,0.6) 0%, rgba(33,27,22,0.86) 100%); }
.hero--page .hero__content { padding-block: var(--space-5) var(--space-4); max-width: 46rem; }
.hero--page h1 { color: #FFFFFF; }

/* ---------- Confluence divider motif ---------- */
.confluence-divider { height: 4px; width: 100%; background: linear-gradient(90deg, var(--river) 0%, var(--harvest) 55%, var(--wheat-2) 100%); border: none; margin: 0; }
.confluence-icon { color: var(--harvest); width: 2.4rem; height: 1.6rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-5); }
.section--wheat { background: var(--wheat); }
.section--surface { background: var(--surface); }
.section--basalt { background: var(--basalt); color: var(--wheat); }
.section--basalt h2, .section--basalt h3 { color: #FFFFFF; }
.section--basalt p { color: rgba(243, 236, 221, 0.85); }
.section__head { max-width: 46rem; margin-bottom: var(--space-4); }
.section__head--center { margin-inline: auto; text-align: center; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border-radius: var(--radius-card); border-bottom: 3px solid var(--harvest);
  padding: 1.6rem 1.5rem; box-shadow: none;
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card--service { display: flex; flex-direction: column; gap: 0.5rem; }
.card__icon { width: 2.4rem; height: 2.4rem; color: var(--river); margin-bottom: 0.4rem; }
.card__link { font-weight: 700; text-decoration: none; }

.fact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.fact-list li { display: flex; gap: 0.8rem; align-items: flex-start; margin: 0; }
.fact-list svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--harvest); margin-top: 0.2em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--basalt); color: #FFFFFF; padding-block: var(--space-4); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: #FFFFFF; margin-bottom: 0.3em; }
.cta-band p { color: rgba(243, 236, 221, 0.85); margin-bottom: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.cta-band__phone { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: #FFFFFF; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4em; }
.cta-band__phone svg { width: 1em; height: 1em; color: var(--harvest); }

/* ---------- FAQ ---------- */
.faq { display: block; }
.faq-item {
  border-bottom: 1px solid var(--hairline); padding: 1.1rem 0;
}
.faq-item summary {
  list-style: none; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--basalt); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "\002B"; font-size: 1.4rem; color: var(--harvest); flex: none; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 0.7em; color: var(--ink-soft); }
.faq-item p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .field--row { grid-template-columns: 1fr; } }
.field label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 0.75em 0.9em; border: 1px solid var(--hairline);
  border-radius: var(--radius-btn); background: var(--surface); color: var(--ink);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--river); outline-offset: 1px; }
.form__note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.2rem; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--basalt); color: var(--wheat); padding-block: var(--space-5) var(--space-4); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: var(--space-4); border-bottom: 1px solid var(--hairline-dark); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer__grid h4 { color: var(--wheat); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.8em; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 0.55em; }
.footer__links a { color: rgba(243, 236, 221, 0.82); text-decoration: none; }
.footer__links a:hover { color: #FFFFFF; }
.footer__disclosure { font-size: 0.85rem; color: rgba(243, 236, 221, 0.65); max-width: 62ch; margin: var(--space-3) 0 0.8rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; font-size: 0.8rem; color: rgba(243, 236, 221, 0.55); }

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; transform: translateY(100%);
  transition: transform 0.25s ease; display: none;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -6px 18px rgba(0,0,0,0.25);
}
.call-bar.is-visible { transform: translateY(0); }
@media (max-width: 900px) { .call-bar { display: block; } }
.call-bar__row { display: flex; height: 58px; }
.call-bar__call, .call-bar__quote {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5em;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9rem;
  text-decoration: none;
}
.call-bar__call { background: var(--river); color: #FFFFFF; flex: 0 0 62%; }
.call-bar__quote { background: var(--basalt); color: var(--wheat); flex: 0 0 38%; border-left: 1px solid var(--hairline-dark); }
.call-bar__call svg, .call-bar__quote svg { width: 1.1em; height: 1.1em; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
  }
  @supports not (animation-timeline: view()) {
    .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; transition-delay: calc(var(--i, 0) * 80ms); }
    .reveal.js-visible { opacity: 1; transform: none; }
  }
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Misc page furniture ---------- */
.list-check { list-style: none; padding: 0; }
.list-check li { padding-left: 1.8em; position: relative; }
.list-check li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--river); }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: start; }
.content-photo {
  margin: 0; overflow: hidden; border-radius: var(--radius-card); background: var(--basalt);
  border-bottom: 3px solid var(--harvest);
}
.content-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.area-list h3 { margin-bottom: 0.3em; }
.area-list li { border-bottom: 1px solid var(--hairline); padding-bottom: 1.1rem; }
.area-list li:last-child { border-bottom: none; padding-bottom: 0; }
.skip-note { font-size: 0.85rem; color: var(--ink-soft); }
.disclosure-note { font-size: 0.85rem; color: var(--ink-soft); background: var(--wheat-2); border-radius: var(--radius-card); padding: 1rem 1.2rem; }
