/* ==========================================================================
   site.css — per-site components, built FROM tokens; tokens only, no raw
   literals (house-tech-spec §3). ARCHETYPE band-rhythm (brief §5): one
   column, full-bleed alternating-ground bands, at every width — no rail, no
   split, nothing overlapping the type. ONE declared breakpoint: 48rem
   (brief §2.7). ONE GRADIENT, the hero atmosphere (brief §4.3).
   ========================================================================== */

/* base.css's skip-link default pairs --color-accent/--color-accent-ink — the
   house pattern, but wrong on this site specifically: raw mustard-gold
   --color-accent is display/decorative-scale only by the brief's own binding
   rule (brief §3.3, §4.1 — 3.28:1, below the 4.5:1 body-text floor) and was
   never meant to carry a text control at 16px. Repointed at the body-safe
   pair the brief names for exactly this job: --color-accent-strong /
   --color-accent-ink (brief §4.1 row 6, 5.49:1). Same fix as
   3-dogs-and-a-girl-lincoln-ne's site.css for the equivalent tension. */
.skip-link {
  background-color: var(--color-accent-strong);
  color: var(--color-accent-ink);
}

/* --- Layout primitives ---------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--layout-container);
  margin-inline: auto;
  padding-inline: var(--layout-gutter);
}

/* The ONE inter-section value and its two call sites (brief §5.5). No band
   sets its own vertical rhythm. */
.section {
  padding-block: var(--section-gap);
}

.measure {
  max-width: var(--layout-measure);
}

/* Anchor targets need clearance for the sticky 101px stack (brief §5.6:
   expiry 44 + header 56 + 1px border). */
[id] {
  scroll-margin-block-start: calc(var(--expiry-height) + var(--header-height) + var(--border-hairline));
}

/* --- Band grounds — strictly alternating bg / surface (brief §5.1 rule 2) - */

.band--bg {
  background-color: var(--color-bg);
}

.band--surface {
  background-color: var(--color-surface);
}

/* --- Type roles (brief §2.6). Weight is font-weight and nothing else; no
   variable-axis declaration appears anywhere (brief §2.3). --- */

h2 {
  font-size: var(--text-h2);
}

/* Every caps label on this site — eyebrows, band-head eyebrows, control
   labels (brief §2.6). Authored in natural case, uppercased here
   (house-tech-spec §8). */
.caps-label {
  font-family: var(--font-body-strong);
  font-weight: var(--font-weight-body-strong);
  letter-spacing: var(--tracking-caps);
  line-height: var(--leading-caps);
  text-transform: uppercase;
}

/* --- Header. 56px + a 1px border-block-end in --color-rule (brief §5.6) =
   the 57px half of the measured 101px sticky stack. --- */

.site-header {
  position: sticky;
  inset-block-start: var(--expiry-height);
  z-index: var(--z-header);
  border-block-end: var(--border-hairline) var(--border-style) var(--color-rule);
  background-color: var(--color-bg);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: var(--header-height);
}

/* Wordmark left, --font-display at 16px, no corner mark — the mark is
   reserved for band-heads only (brief §5.6). --text-wordmark is a
   Builder-fill token restating that exact px outcome (tokens.css banner). */
.site-header__brand {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: var(--text-wordmark);
  color: var(--color-accent-strong);
  text-decoration: none;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* The tel: alone at <48rem; #services, #reviews, #contact join it at ≥48rem
   (brief §5.6). */
.site-header__link {
  display: none;
  font-family: var(--font-body-strong);
  font-weight: var(--font-weight-body-strong);
  font-size: var(--text-small);
  color: var(--color-ink);
  text-decoration: none;
}

.site-header__link:hover,
.site-header__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: var(--space-3xs);
}

@media (min-width: 48rem) {
  .site-header__link {
    display: inline-flex;
    align-items: center;
  }
}

.site-header__tel {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body-strong);
  font-weight: var(--font-weight-body-strong);
  font-size: var(--text-small);
  color: var(--color-accent-strong);
  text-decoration: none;
  white-space: nowrap;
}

.site-header__tel:hover,
.site-header__tel:focus-visible {
  text-decoration: underline;
  text-underline-offset: var(--space-3xs);
}

/* --- Buttons. One control shape, three instances (hero, §I foot, §VII
   submit — brief §6.6): accent-strong fill, accent-ink label, --radius-sm.
   The label is set in the DISPLAY face at 400 (brief §5, hero slot ③). Full
   width below 48rem; inline-block, min 260px, at ≥48rem; 52px tall at every
   width. --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding-inline: var(--space-md);
  border: var(--border-hairline) var(--border-style) transparent;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-none);
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: var(--text-body);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-normal);
  text-align: center;
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.btn--primary {
  width: 100%;
  min-height: var(--control-height);
  background-color: var(--color-accent-strong);
  color: var(--color-accent-ink);
}

@media (min-width: 48rem) {
  .btn--primary {
    width: auto;
    min-width: var(--control-min-width);
  }
}

/* The secondary CTA — a text link, never a second button shape
   (brief §5 hero "Secondary CTA"). */
.btn--text {
  color: var(--color-accent-strong);
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: var(--text-small);
  text-decoration: underline;
  text-underline-offset: var(--space-3xs);
}

/* --- Hero — "the badge holds", house DOM order (brief §5.3): eyebrow → h1
   → primary CTA → secondary CTA → field → lead → facts. The hero carries no
   band-head (§5.3). The atmosphere gradient is the ONE gradient on the
   site (brief §4.3). --- */

.hero {
  padding-block-start: var(--space-sm);
  padding-block-end: var(--section-gap);
  background: radial-gradient(130% 100% at 12% 0%,
    var(--color-atmos-hi) 0%, var(--color-atmos-mid) 55%, var(--color-atmos-lo) 100%);
}

@media (min-width: 48rem) {
  .hero {
    padding-block-start: var(--space-xl);
  }
}

/* Slot ① — trade + place, max 2 lines at 375 (brief §6.4 §5.6). */
.hero__eyebrow {
  margin-block-end: var(--space-xs);
  color: var(--color-ink-muted);
  font-size: var(--text-eyebrow);
}

/* Slot ② — the h1. One word ("tree") carries --color-accent-strong (brief
   §3 hero H1). Capped at --h1-max so the display column stacks rather than
   running the full measure. */
.hero h1 {
  max-width: var(--h1-max);
  margin-block-end: var(--space-sm);
  font-size: var(--text-h1);
  color: var(--color-ink);
}

.hero h1 .accent {
  color: var(--color-accent-strong);
}

.hero__ask {
  margin-block-end: var(--space-xs);
}

.hero__secondary {
  margin-block-end: var(--space-sm);
}

/* The living field — the illustrated ridge-line backdrop plus the medallion/
   canopy SVG overlay, 2px ink border, radius-sm (brief §5.4 slot ④). Fixed
   16:9 at every width (brief §5.1 rule 5). Named .hero__field (not .field)
   to keep this distinct from the contact form's .field row wrapper below —
   same word, two different house components. */
.hero__field {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--hero-field-ratio);
  border: var(--border-frame) var(--border-style) var(--color-ink);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
}

.hero__field-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- The signature — "the badge holds" (brief §8.2/§8.3). A decorative SVG
   overlay sitting over the field image, aria-hidden, carrying no text
   outside the medallion's own opaque parchment-fill circle: a sign-painted
   "EST. 1975" medallion and two independently-swaying canopy leaves, each on
   its own independent, non-synchronised loop. Flat ink silhouettes only. --- */

.hero__field-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.canopy-elem {
  fill: var(--color-ink);
  fill-opacity: 0.14;
  stroke: var(--color-ink);
  stroke-opacity: 0.4;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.leaf1-elem,
.leaf2-elem {
  fill: var(--color-ink-muted);
}

.badge-elem circle:first-child {
  fill: var(--color-bg);
  stroke: var(--color-accent-strong);
  stroke-width: 3;
}

.badge-elem circle:last-of-type {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  stroke-dasharray: 2 3;
}

.badge-elem text {
  font-family: var(--font-display);
  fill: var(--color-ink);
}

.badge-elem text.badge-elem__year {
  fill: var(--color-accent-strong);
}

@media (prefers-reduced-motion: no-preference) {
  .badge-elem {
    animation: badge-creak var(--duration-badge) ease-in-out infinite;
    transform-origin: center;
  }

  .leaf1-elem {
    animation: leaf-sway var(--duration-leaf1) ease-in-out infinite;
    transform-origin: bottom center;
  }

  .leaf2-elem {
    animation: leaf-sway var(--duration-leaf2) ease-in-out infinite;
    animation-delay: var(--delay-leaf2);
    transform-origin: bottom center;
  }
}

@keyframes badge-creak {
  0%, 100% { transform: rotate(-2.6deg); }
  50%      { transform: rotate(2.8deg); }
}

@keyframes leaf-sway {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}

.hero__lead {
  margin-block-start: var(--space-sm);
  font-size: var(--text-lead);
  line-height: var(--leading-snug);
  max-width: var(--layout-measure);
}

/* Facts line — the free-quote offer and the phone number. No
   numeral-as-ornament, no stat-counter row (brief §6.3). The rule is
   DECORATIVE, per brief §3.3/§6.6 — it separates the line, it is not a
   functional edge. */
.hero__facts {
  margin-block-start: var(--space-md);
  padding-block-start: var(--space-xs);
  border-block-start: var(--border-hairline) var(--border-style) var(--color-rule);
  color: var(--color-ink-muted);
  font-size: var(--text-small);
}

/* --- The band-head object, repeated at the top of every band from §I
   onward (brief §5.1 rule 3, §5.4, §6.6): a caps eyebrow, an h2 in
   --font-display, and the settled medallion ring silhouette as a corner
   mark. Eyebrow colour follows the band's own ground (brief §5.4 point 2 /
   §4.1 tight-margin note): accent-strong on bg bands, ink-muted on surface
   bands. --- */

.band-head {
  position: relative;
  margin-block-end: var(--space-md);
  padding-inline-end: calc(var(--mark-size) + var(--space-sm));
}

.band-head__eyebrow {
  margin-block-end: var(--space-xs);
  font-size: var(--text-eyebrow);
}

.band--bg .band-head__eyebrow {
  color: var(--color-accent-strong);
}

.band--surface .band-head__eyebrow {
  color: var(--color-ink-muted);
}

.band-head__title {
  margin: 0;
}

/* The settled medallion corner mark — a single flat ink ring silhouette, no
   "EST."/"1975" text at this scale (brief §5.4 point 3). It never animates:
   the hero's own live moment is the site's one spectacular moment
   (brief §8.2). */
.band-head__mark {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  inline-size: var(--mark-size);
  block-size: var(--mark-size);
  fill: none;
  stroke: var(--color-accent-strong);
  stroke-width: 1.5;
}

.band-head__mark circle:first-child {
  stroke-width: 2;
}

.band-head__mark circle:last-child {
  stroke-dasharray: 1.5 2.5;
}

/* --- §I services — an index list, not cards, not chips, not icons
   (brief §6 §I). --- */

.index {
  border-block-start: var(--border-hairline) var(--border-style) var(--color-rule);
}

.index__row {
  padding-block: var(--space-sm);
  border-block-end: var(--border-hairline) var(--border-style) var(--color-rule);
}

.index__name {
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: var(--text-body);
  color: var(--color-ink);
}

/* Inline plates — type sits beneath, never over (brief §7.1). */
.section-figure {
  margin-block-start: var(--space-lg);
}

.section-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.section__ask {
  margin-block-start: var(--space-lg);
}

.section__intro {
  margin-block-end: var(--space-md);
  max-width: var(--layout-measure);
  line-height: var(--leading-body);
}

/* --- §II trust — tenure, ownership, BBB, free quotes, seasonal pricing
   (brief §6 §II). --- */

.trust p + p {
  margin-block-start: var(--space-sm);
}

.trust__body {
  max-width: var(--layout-measure);
  line-height: var(--leading-body);
}

/* --- §III "What Neighbors Say" — three verbatim quotes, required
   (brief §6 §III, carried condition 2). --- */

.voices {
  list-style: none;
  margin: 0;
  padding: 0;
  border-block-start: var(--border-hairline) var(--border-style) var(--color-rule);
}

.voices__row {
  padding-block: var(--space-md);
  border-block-end: var(--border-hairline) var(--border-style) var(--color-rule);
}

.voices__quote {
  margin: 0;
  max-width: var(--layout-measure);
  font-family: var(--font-body-italic);
  font-style: italic;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-ink);
}

.voices__cite {
  display: block;
  margin-block-start: var(--space-2xs);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-small);
  color: var(--color-ink-muted);
}

/* --- §IV service-area — named towns, customer-location fuel, never a
   coverage promise (brief §6 §IV). --- */

.town-list {
  max-width: var(--layout-measure);
  line-height: var(--leading-body);
  color: var(--color-ink);
}

/* --- §V equipment — qualitative equipment/approach note (brief §6 §V). --- */

.equipment__body {
  max-width: var(--layout-measure);
  line-height: var(--leading-body);
}

/* --- §VI FAQ — three Q&As, no numeral system (brief §6 §VI, §6.3). --- */

.faq {
  border-block-start: var(--border-hairline) var(--border-style) var(--color-rule);
}

.faq__row {
  padding-block: var(--space-md);
  border-block-end: var(--border-hairline) var(--border-style) var(--color-rule);
}

.faq__q {
  margin: 0 0 var(--space-2xs);
  font-family: var(--font-body-strong);
  font-weight: var(--font-weight-body-strong);
  font-size: var(--text-body);
  color: var(--color-ink);
}

.faq__a {
  margin: 0;
  max-width: var(--layout-measure);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-ink-muted);
}

/* --- §VII contact — the free-quote block (house-tech-spec §6). --- */

.contact__lead {
  margin-block-end: var(--space-md);
  max-width: var(--layout-measure);
  font-size: var(--text-lead);
  line-height: var(--leading-snug);
}

.contact__ask {
  margin-block-end: var(--space-md);
}

.contact__phone {
  margin-block-start: var(--space-md);
  max-width: var(--layout-measure);
  line-height: var(--leading-body);
}

.contact__phone a {
  text-underline-offset: var(--space-3xs);
}

.form {
  display: grid;
  gap: var(--space-md);
  max-width: var(--layout-measure);
}

.field {
  display: grid;
  gap: var(--space-3xs);
}

.field__label {
  font-family: var(--font-body-strong);
  font-weight: var(--font-weight-body-strong);
  font-size: var(--text-small);
}

.field__control {
  width: 100%;
  min-height: var(--layout-tap-min);
  padding: var(--space-2xs) var(--space-xs);
  background-color: var(--color-bg);
  color: var(--color-ink);
  border: var(--border-hairline) var(--border-style) var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
}

textarea.field__control {
  min-height: var(--space-3xl);
  resize: vertical;
}

.field__hint {
  font-size: var(--text-small);
  color: var(--color-ink-muted);
}

/* Honeypot: in the DOM for bots, unreachable otherwise. Not display:none. */
.form__trap {
  position: absolute;
  /* @allow-literal: off-canvas parking position, not a design value */
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form__status {
  font-size: var(--text-small);
  color: var(--color-ink-muted);
}

.form__status[data-state='error'] {
  color: var(--color-ink);
  font-family: var(--font-body-strong);
  font-weight: var(--font-weight-body-strong);
}

/* --- Footer — NAP only, no hours markup ships: no V-tier hours exist
   (house-tech-spec §4's condition 1 fails), so no [data-hours] element and
   no openingHoursSpecification. No copyright line, no social links
   (copy.md's own Footer note). --- */

.site-footer {
  padding-block: var(--section-gap);
  font-size: var(--text-small);
}

.site-footer > .container > * + * {
  margin-block-start: var(--space-sm);
}

.site-footer__nap {
  font-style: normal;
  line-height: var(--leading-body);
}

.site-footer__nap a {
  text-underline-offset: var(--space-3xs);
}

.site-footer__nap a[href^='tel'] {
  display: inline-flex;
  align-items: center;
  min-height: var(--layout-tap-min);
}

/* --- thanks.html: no field, no atmosphere, flat --color-bg. The h2 stands
   in as the page's display headline; the primary action is the phone
   (brief §5.6). --- */

.thanks__eyebrow {
  margin-block-end: var(--space-xs);
  color: var(--color-ink-muted);
  font-size: var(--text-eyebrow);
}

.thanks__title {
  margin-block-end: var(--space-sm);
  font-size: var(--text-h2);
}

.thanks__lead {
  margin-block-end: var(--space-md);
  max-width: var(--layout-measure);
  font-size: var(--text-lead);
  line-height: var(--leading-body);
}

.thanks__ask {
  margin-block-end: var(--space-md);
}

/* --- Reveals (brief §8.1). base.css owns the states; --duration-slow and
   --reveal-shift/--reveal-stagger already carry the timing. --- */

@media (prefers-reduced-motion: reduce) {
  .badge-elem,
  .leaf1-elem,
  .leaf2-elem {
    animation: none;
  }
}
