/* ==================================================
   site.css — pk-son-lawn-care-green-bay-wi
   The approved brief's components, built FROM tokens.

   HARD RULE (house-tech-spec §3): tokens only — no hex, no size literals, no
   font names. Escape hatches: house breakpoints and `@allow-literal`.

   Archetype: sidebar-anchor (brief §4) — a 56px fixed left rail carrying
   exactly one element, identical 320px → 1600px+, with the rest of the page
   inset by that same width.
   ================================================== */

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

/* --section-gap is the only inter-section spacing value (brief §4); its two
   call sites are here and the hero's padding-block-end. */
.section {
  padding-block: var(--section-gap);
}

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

/* Anchor targets clear the sticky stack. */
section[id] {
  scroll-margin-block-start: calc(var(--chrome-top) + var(--header-height));
}

/* Inset by the rail's width so no content is ever obscured (brief §4). */
.page {
  padding-inline-start: var(--rail-width);
}

.sprite {
  position: absolute;
}

/* --- The rail (brief §4) ---------------------------
   56px, fixed, identical 320px → 1600px+. One number, no breakpoint, nothing
   to get wrong between two sampled widths. Exactly one element inside.     */

.rail {
  position: fixed;
  inset-block-start: var(--chrome-top);
  inset-block-end: 0;
  inset-inline-start: 0;
  width: var(--rail-width);
  z-index: var(--z-rail);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent-2);
  /* The one shadow on this site, used once (brief §2). */
  box-shadow: var(--shadow-rail);
}

/* PADDING AXIS: the chip is vertical-rl, so its INLINE axis is vertical.
   `padding-block` here would pad it horizontally and burst the 56px rail. */
.rail__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-inline: var(--space-xl);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
  border-radius: var(--radius-pill);
  font-weight: var(--font-weight-body-strong);
  font-size: var(--text-small);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-standard);
}

/* The site's one dark ground: the ring is re-pointed at the band-safe token,
   since the page-ground ring is a dark ink. */
.rail :focus-visible {
  outline-color: var(--color-focus-on-band);
}

/* --- Header & nav ---------------------------------
   Fixed 56px + 1px border at every breakpoint (brief §4). The tel: link sits
   outside [data-nav] so it shows at 375px without opening a menu.         */

.site-header {
  position: sticky;
  inset-block-start: var(--chrome-top);
  z-index: var(--z-header);
  height: calc(var(--header-height) + var(--border-hairline));
  border-bottom: var(--border-hairline) var(--border-style) var(--color-border);
  background-color: var(--color-bg);
}

.site-header__inner {
  display: flex;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3xs);
  /* Chrome gutter, narrower than the page's below 48em; see above. */
  padding-inline: var(--space-sm);
}

/* The wordmark wraps to two lines below 48em: measured at 320px the header's
   three items need 230px of the 232px the rail leaves, and a one-line
   wordmark alone needs 155px. Brief §4 fixes the height, so the line count
   is what gives. */
.site-header__brand {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: var(--font-weight-display);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
  max-width: var(--layout-brand);
}

.site-header__tel {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  font-size: var(--text-eyebrow);
  font-weight: var(--font-weight-body-strong);
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: var(--space-3xs);
  white-space: nowrap;
}

.nav-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding-inline: var(--space-2xs);
  border: var(--border-hairline) var(--border-style) var(--color-accent-2);
  border-radius: var(--radius-md);
  font-size: var(--text-small);
  font-weight: var(--font-weight-body-strong);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: var(--text-small);
  font-weight: var(--font-weight-body-strong);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
}

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

/* Collapsed state exists only once JS has armed it. The open panel is
   positioned, not in flow, so the header stays 56px (brief §4). */
[data-nav-ready] .site-nav {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  padding: var(--space-md) var(--layout-gutter);
  background-color: var(--color-bg);
  border-bottom: var(--border-hairline) var(--border-style) var(--color-border);
  box-shadow: var(--shadow-rail);
}

[data-nav-ready] .site-nav[data-nav-open='false'] {
  display: none;
}

[data-nav-ready] .site-nav__list {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

@media (min-width: 48em) {
  .site-header__inner {
    gap: var(--space-2xs);
    padding-inline: var(--layout-gutter);
  }

  .site-header__brand {
    font-size: var(--text-h3);
    max-width: none;
    white-space: nowrap;
  }

  .site-header__tel {
    font-size: var(--text-small);
  }

  [data-nav-ready] .site-nav,
  .site-nav {
    position: static;
    padding: 0;
    border-bottom: 0;
    box-shadow: var(--shadow-none);
  }

  [data-nav-ready] .site-nav[data-nav-open='false'] {
    display: block;
  }

  [data-nav-ready] .site-nav__list,
  .site-nav__list {
    flex-direction: row;
    align-items: center;
  }

  [data-nav-ready] .nav-toggle {
    display: none;
  }
}

/* --- Buttons --------------------------------------
   Two roles. Brief §5: 12px padding-block below 48em, 16px above. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-md);
  border: var(--border-hairline) var(--border-style) transparent;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-body-strong);
  line-height: var(--leading-snug);
  text-align: center;
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}

/* The label treatment is the site's two roles', not the Buy control's — its
   line has a measured width budget at 320px (preview.css). */
.btn--primary,
.btn--quiet {
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
}

.btn--quiet {
  border-color: var(--color-accent-2);
  color: var(--color-ink);
}

@media (min-width: 48em) {
  .btn {
    padding-block: var(--space-sm);
  }
}

/* --- Eyebrow / labels -----------------------------
   Authored in natural case, uppercased here, never typed in caps (§8).    */

.eyebrow {
  font-size: var(--text-eyebrow);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-weight: var(--font-weight-body-strong);
  color: var(--color-ink-muted);
}

/* The crossroads silhouette frozen at rest, fixed 16px at every breakpoint —
   never fluid, so it has no minimum distinct from its stated size (§4). */

.section__title {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-h2);
}

.mark {
  flex: 0 0 auto;
  width: var(--mark-size);
  height: var(--mark-size);
  fill: var(--color-accent-2);
}

.section__intro {
  margin-block-start: var(--space-md);
  font-size: var(--text-lead);
  color: var(--color-ink-muted);
}

/* --- Hero (brief §4 §5) ---------------------------
   DOM order is the house order: eyebrow → h1 → primary CTA → field. The
   photograph follows the text stack; no hero text sits on it.             */

.hero {
  position: relative;
  overflow: hidden;
  padding-block-start: var(--space-lg);
  padding-block-end: var(--section-gap);
}

/* Two radial washes over the flat page ground (brief §2), centred at the two
   corners the text column does not occupy at 375px. */
.hero__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 90% 0%, var(--wash-accent) 0%, transparent 62%),
    radial-gradient(circle at 0% 96%, var(--wash-accent-2) 0%, transparent 58%);
}

.hero__inner {
  position: relative;
}

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

.hero__title {
  margin-block-start: var(--space-xs);
  max-width: min(100%, var(--layout-headline));
  font-size: var(--text-hero);
  line-height: var(--leading-tight);
}

.hero__act {
  margin-block-start: var(--space-md);
}

.hero__field {
  margin-block-start: var(--space-md);
}

/* The badge-row teaser, opaque so its own 12.03:1 pairing is what a reader
   gets regardless of the wash behind it (brief §5). */
.field-chip {
  display: inline-flex;
  align-items: center;
  min-height: calc(var(--layout-tap-min) + var(--space-xs));
  padding-inline: var(--space-md);
  background-color: var(--color-surface);
  border: var(--border-hairline) var(--border-style) var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  font-size: var(--text-small);
  font-weight: var(--font-weight-body-strong);
  text-decoration: none;
}

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

.hero__frame {
  margin: var(--section-gap) 0 0;
  border: var(--border-hairline) var(--border-style) var(--color-accent-2);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero__frame img {
  width: 100%;
}

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

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

  .hero__title {
    margin-block-start: 0;
  }

  .hero__act,
  .hero__field {
    margin-block-start: var(--space-lg);
  }
}

/* --- The crossroads sign (brief §7) ---------------
   The site's one spectacular moment: two boards on INDEPENDENT loops, 6.5s
   and 8s offset -2.4s, so they never move in phase (ref-001's physics).
   aria-hidden — the eyebrow states the place once, at its own tier.       */

/* Below 48em the H1 fills the content column (brief §5: `min(100%, 34rem)`
   resolves to 100% at 375px), so there is no upper-right corner the sign can
   hang in without crossing the headline. It takes its own slot below the
   field — after every element in brief §5's DOM order, so the arithmetic
   above it is untouched. From 48em it hangs where brief §8 places it. */
.sign {
  position: relative;
  margin-block-start: var(--space-lg);
  align-self: flex-end;
  width: max-content;
  margin-inline-start: auto;
  z-index: var(--z-base);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.sign__post {
  position: absolute;
  inset-block: calc(var(--space-2xs) * -1) calc(var(--space-lg) * -1);
  inset-inline-end: 45%;
  width: var(--space-3xs);
  background-color: var(--color-ink-muted);
  border-radius: var(--radius-md);
}

.sign__board {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  padding: var(--space-2xs) var(--space-md);
  font-size: var(--text-eyebrow);
  font-weight: var(--font-weight-body-strong);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent-ink);
  white-space: nowrap;
}

.sign__board--one {
  background-color: var(--color-accent);
  clip-path: polygon(0 0, 94% 0, 100% 50%, 94% 100%, 0 100%);
  padding-inline-end: var(--space-lg);
  transform-origin: 33% 0;
  animation: sign-swing-one var(--swing-1-duration) var(--ease-standard) infinite alternate;
}

.sign__board--two {
  margin-block-start: var(--space-2xs);
  background-color: var(--color-accent-2);
  clip-path: polygon(6% 0, 100% 0, 100% 100%, 6% 100%, 0 50%);
  padding-inline-start: var(--space-lg);
  transform-origin: 55% 0;
  animation: sign-swing-two var(--swing-2-duration) var(--ease-standard) var(--swing-2-delay) infinite alternate;
}

@keyframes sign-swing-one {
  from { transform: rotate(var(--swing-1-from)); }
  to   { transform: rotate(var(--swing-1-to)); }
}

@keyframes sign-swing-two {
  from { transform: rotate(var(--swing-2-from)); }
  to   { transform: rotate(var(--swing-2-to)); }
}

/* Brief §7: reduced motion FREEZES the boards at 0°, never hides them. */
@media (prefers-reduced-motion: reduce) {
  .sign__board--one,
  .sign__board--two {
    animation: none;
    transform: none;
  }
}

@media (min-width: 48em) {
  /* The gutter, not 0: `.hero__inner` is also `.container`, so an absolute
     child resolves against its PADDING box. */
  .sign {
    position: absolute;
    inset-block-start: var(--space-sm);
    inset-inline-end: var(--layout-gutter);
    margin-block-start: 0;
  }
}

/* --- The badge board (brief §4.4) -----------------
   Ten badges, one per V-tier service. Imagery slot 2 is ONE plate behind all
   ten cards; the cards themselves are opaque (12.03:1, brief §2).         */

.board {
  position: relative;
  overflow: hidden;
}

.board__inner {
  position: relative;
}

.board__grid {
  position: relative;
  margin-block-start: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--layout-badge), 1fr));
  gap: var(--space-md);
}

.badge {
  position: relative;
  padding: var(--space-md);
  background-color: var(--color-surface);
  border: var(--border-hairline) var(--border-style) var(--color-accent-2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-none);
}

.badge__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xs) var(--space-2xs);
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: var(--font-weight-body-strong);
  font-size: var(--text-eyebrow);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-wide);
}

.badge__name {
  margin-block-start: var(--space-2xs);
  font-size: var(--text-h3);
}

.badge__desc {
  margin-block-start: var(--space-2xs);
  font-size: var(--text-small);
  color: var(--color-ink-muted);
}

/* Slots 2 and 5 are low-opacity plates; every text block over one carries its
   own opaque surface panel, the pairing brief §2 measured. */

.ground {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

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

.board__ground {
  opacity: var(--opacity-texture);
}

.band__ground {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--opacity-ground);
}

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

/* --- About the owner (brief §4.5) ----------------- */

.band {
  position: relative;
  overflow: hidden;
}

.band__inner {
  position: relative;
}

.owner {
  margin-block-start: var(--space-lg);
  display: grid;
  gap: var(--space-lg);
}

.owner__text {
  padding: var(--space-md);
  background-color: var(--color-surface);
  border: var(--border-hairline) var(--border-style) var(--color-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: var(--space-md);
}

.owner__quote {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: var(--text-h3);
  line-height: var(--leading-snug);
}

.owner__accent {
  margin: 0;
  justify-self: start;
  width: var(--layout-accent);
  border: var(--border-hairline) var(--border-style) var(--color-accent-2);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (min-width: 48em) {
  .owner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

/* --- Process (brief §4.6) -------------------------
   Roman numerals, display face, navy, no fill — different from the badge
   board's counter on all three of system, face and colour role (brief §3). */

.process__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.process__head .section__title {
  flex: 1 1 auto;
  min-width: 0;
}

.process__accent {
  flex: 0 0 auto;
  margin: 0;
  width: var(--layout-accent-sm);
  border: var(--border-hairline) var(--border-style) var(--color-accent-2);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.steps {
  margin-block-start: var(--space-lg);
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-lg);
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--space-md);
  row-gap: var(--space-2xs);
  align-items: baseline;
  border-top: var(--border-hairline) var(--border-style) var(--color-border);
  padding-block-start: var(--space-md);
}

.step__num {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: var(--text-h2);
  line-height: var(--leading-tight);
  color: var(--color-accent-2);
}

.step__name {
  font-size: var(--text-h3);
}

.step__body {
  grid-column: 2;
  color: var(--color-ink-muted);
}

@media (min-width: 48em) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Service area (brief §4.7) -------------------- */

.area__line {
  margin-block-start: var(--space-md);
  max-width: var(--layout-headline);
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: var(--text-h3);
  line-height: var(--leading-snug);
}

/* --- FAQ (brief §4.8) — native <details>: zero JS, zero hijack risk. ---- */

.faq__list {
  margin-block-start: var(--space-lg);
  display: grid;
  gap: var(--space-2xs);
}

.qa {
  border-top: var(--border-hairline) var(--border-style) var(--color-border);
}

.qa__q {
  display: flex;
  align-items: center;
  padding-block: var(--space-xs);
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: var(--text-h3);
  line-height: var(--leading-snug);
  cursor: pointer;
}

.qa__a {
  margin-block-start: var(--space-2xs);
  max-width: var(--layout-measure);
  padding-block-end: var(--space-md);
  color: var(--color-ink-muted);
}

/* --- Contact (brief §4.9) ------------------------- */

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

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

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

.field__control {
  width: 100%;
  min-height: var(--layout-tap-min);
  padding: var(--space-2xs) var(--space-xs);
  background-color: var(--color-surface);
  color: var(--color-ink);
  border: var(--border-hairline) var(--border-style) var(--color-accent-2);
  border-radius: var(--radius-md);
}

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 for humans. */
.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-weight: var(--font-weight-body-strong);
}

.contact__alt {
  margin-block-start: var(--space-md);
}

/* --- Footer --------------------------------------- */

.site-footer {
  padding-block: var(--space-xl);
  border-top: var(--border-hairline) var(--border-style) var(--color-border);
  font-size: var(--text-small);
  background-color: var(--color-surface);
}

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

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

.site-footer p {
  margin-block-start: var(--space-md);
  color: var(--color-ink-muted);
}

/* --- thanks.html ---------------------------------- */

.confirm__title {
  margin-block-start: var(--space-xs);
  font-size: var(--text-h2);
}

.confirm__lead {
  margin-block-start: var(--space-md);
  font-size: var(--text-lead);
  max-width: var(--layout-measure);
}

.confirm__next {
  margin-block-start: var(--space-md);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

.confirm__home {
  margin-block-start: var(--space-md);
}

/* base.css zeroes every margin, so running prose needs one rule to stack.
   Used on buy.html, which carries neither shared chrome block, and no rail. */

.prose > * + * {
  margin-block-start: var(--space-md);
}
