/* ==========================================================================
   site.css — per-site layout & components, built FROM tokens.

   HARD RULE (house-tech-spec §3): no raw hex, no px/rem size literals, no
   font-name literals in this file. Tokens only. The Critic greps for it.
   The two escape hatches are the house breakpoints and an explicit
   `@allow-literal: reason` comment on the preceding line.

   WHAT THE SKELETON SHIPS HERE, AND WHY IT SHIPS SO LITTLE
   --------------------------------------------------------
   Only the shell: header/nav, the section rhythm hook, buttons, the form, the
   footer. That is everything a site needs structurally and nothing that
   decides how it looks.

   The skeleton deliberately ships NO hero, NO card grid, NO feature row, NO
   testimonial block and NO section-heading pattern. Those come from the
   approved brief's layout archetype (design-rules §7) and are written per
   site. A skeleton that shipped them would hand every business the same page
   with different colours — which is the exact failure the DNA registry
   exists to prevent, and it would collide head-on with the banned-defaults
   list (design-rules §4: three-card grids, four-stat rows, centred hero with
   two pill buttons, every section the same padding with a centred heading).

   And when a brief's archetype numbers its sections, its sub-lists take a
   visibly different mark — different numeral system, face and colour role —
   or no mark at all (design-rules §4, "two counters in one costume").

   Builder: extend this file with the brief's components. Do not "fill in" a
   hero here from memory — the brief is law (spec §12).
   ========================================================================== */

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

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

/* Vertical rhythm hook. --section-gap is the only inter-section spacing value
   on a site (design-rules §7.1); the brief picks which scale step it is. */
.section {
  padding-block: var(--section-gap);
}

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

/* --- Header & navigation --------------------------------------------------
   Progressive enhancement: with JS off the nav list is a plain, always-visible
   list of links and the toggle stays [hidden] (it ships hidden in the HTML;
   main.js reveals it). With JS on, narrow viewports collapse the list behind
   the toggle. Nothing about navigation depends on JavaScript.              */

.site-header {
  position: relative;
  z-index: var(--z-header);
  /* Tightened from --space-sm toward brief §4.4's ~57px chrome target — the 44px tap-target floor already sets the height */
  padding-block: var(--space-2xs);
  border-bottom: var(--border-hairline) var(--border-style) var(--color-border);
  background-color: var(--color-bg);
}

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

.site-header__brand {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--font-weight-display);
  text-decoration: none;
  letter-spacing: var(--tracking-tight);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-xs);
  /* The nav-toggle's only shape is this hairline, so it is a CONTROL boundary
     (WCAG 1.4.11, >= 3:1), not a decorative one — use --color-border-strong. */
  border: var(--border-hairline) var(--border-style) var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: var(--font-weight-display);
}

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

.site-nav__link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: var(--font-weight-display);
}

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

/* QA r3 FIX perf/cls (this skeleton-level defect was confirmed present,
   verbatim, on every site built from it -- see
   runs/3-elements-landscaping-asheville-nc/qa/critic-round-2.md): the
   collapsed state used to apply only once a deferred `type="module"`
   script called `initNav()` and set `[data-nav-ready]`, so the full nav
   list rendered open at first paint and then collapsed into the hamburger
   AFTER first contentful paint -- a timing race with no fixed outcome that
   shifted the whole header (and everything below it) and scored CLS
   0.066-0.094 in the majority of Lighthouse runs. Inverting the default
   removes the race entirely: closed is now the plain CSS default below
   48em, with no JS gate, so there is nothing left to collapse post-paint.
   The one visitor this would otherwise strand -- JS off, so
   `[data-nav-ready]` never lands -- gets the nav back via the <noscript>
   stylesheet override in `@shared:head-boilerplate` (index.html/buy.html/
   thanks.html), which ships last in source order and wins the
   display:block/display:none tie on cascade order alone, no
   `!important`. The nav-toggle button already ships `hidden` in the HTML
   and only JS ever clears that, so JS-off visitors never see a dead
   control -- nothing to change there. */
.site-nav {
  display: none;
}

[data-nav-ready] .site-nav[data-nav-open='true'] {
  display: block;
  flex-basis: 100%;
}

@media (min-width: 48em) {
  .site-nav {
    display: block;
  }

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

/* --- Buttons --------------------------------------------------------------
   Two roles, no more. Radius, weight and colour all come from the brief via
   tokens — including --radius-none, which is a legitimate answer.          */

.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-sm);
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  line-height: var(--leading-snug);
  text-align: center;
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

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

.btn--quiet {
  /* Outline button: the border is the whole control, so it takes the 3:1
     control-boundary token, not the decorative hairline (WCAG 1.4.11). */
  border-color: var(--color-border-strong);
  color: var(--color-ink);
}

/* --- Form -----------------------------------------------------------------
   One form per site (spec §6). POSTs to the endpoint constant in main.js;
   works as a plain HTML POST with JS off; auto-hides when no endpoint is
   configured so a spec site never shows a dead form.                       */

.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-display);
  font-size: var(--text-small);
  font-weight: var(--font-weight-display);
}

.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-border);
  border-radius: var(--radius-sm);
}

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

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

/* Honeypot: present in the DOM for bots, unreachable for humans and assistive
   tech. Not display:none — some bots skip those. */
.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-display);
  font-weight: var(--font-weight-display);
}

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

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

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

.site-footer__nap {
  font-style: normal;
}

.site-footer__social {
  margin-block-start: var(--space-sm);
}

/* ==========================================================================
   Geaux Cuts Landscaping — brief components (editorial-stack archetype).
   Everything below reads from tokens.css only; the two escape hatches are
   the house breakpoints (48em/64em) and an explicit @allow-literal comment.
   ========================================================================== */

/* Display face carries emphasis duty (brief §3.1): no body-bold file exists,
   so <strong> renders in Hanken Grotesk 600, overriding base.css by cascade order. */
strong, b {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
}

/* The repeated ornament (brief §4.3): a flat 3px accent hairline, the
   shrunk static version of the hero's own turf-band edge, heading the hero
   and every section below it. Always a child of .container, so the
   container's own padding-inline/max-width already clip and centre it. */
.rule {
  /* needed inside .hero__inner's flex column — a bare <hr> flex item won't stretch */
  width: 100%;
  margin-block: 0;
  border: 0;
  border-block-start: var(--border-thick) var(--border-style) var(--color-accent);
}

/* Tight gap (not --space-md): brief §4.4's arithmetic runs padding straight into the eyebrow */
.hero .rule {
  margin-block-end: var(--space-2xs);
}

.section > .container > .rule {
  margin-block-end: var(--space-lg);
}

/* --- Eyebrow / section head --- */

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: var(--font-weight-body);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-block-end: var(--space-sm);
}

.hero .eyebrow {
  color: var(--color-ink);
  margin-block-end: var(--space-sm);
}

.section-head {
  margin-block-end: var(--space-lg);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--font-weight-display);
  color: var(--color-ink);
}

.section-head__intro {
  max-width: var(--layout-measure);
  margin-block-start: var(--space-xs);
  color: var(--color-ink-muted);
}

/* --- Hero (brief §4.4, §7). DOM order: rule -> eyebrow -> h1 -> lead ->
   primary CTA -> field -> facts. Background is the atmosphere gradient: bg
   at the top edge, settling to surface (contrast pairs 7/8, brief §2.2). */

.hero {
  padding-block-start: var(--space-lg);
  padding-block-end: var(--section-gap);
  background-image: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 22%, var(--color-surface) 100%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--font-weight-hero);
  line-height: var(--leading-tight);
  color: var(--color-ink);
  max-width: var(--layout-measure);
}

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

.hero__cta {
  margin-block-start: var(--space-sm);
}

/* Living-hero field: 320px at 375px (brief §4.4), turf filling the lower
   60%, sprig+tag floating above. Contained, never full-bleed (editorial
   magazine flow, not full-bleed-immersive). */
.hero__field {
  position: relative;
  height: var(--hero-field-height);
  margin-block-start: var(--space-md);
}

.hero__field-image {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 60%;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.hero__field-image picture,
.hero__field-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* Sheen sweep: diagonal light band, left-to-right, 9s linear loop (brief §7). */
.hero__sheen {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    115deg,
    transparent 40%,
    rgb(255 255 255 / 0.32) 50%,
    transparent 60%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  animation: sheen-sweep var(--duration-sheen) linear infinite;
  pointer-events: none;
}

@keyframes sheen-sweep {
  from { background-position: 130% 0; }
  to { background-position: -30% 0; }
}

/* Botanical sprig: inline SVG, -3deg/+3deg sway, 8.3s ease-in-out, rooted
   at the turf line beside the straw tag (brief §7). */
.hero__sprig {
  position: absolute;
  inset-inline-end: 14%;
  inset-block-end: 34%;
  /* @allow-literal: proportional to the field's own height, no space-scale match */
  height: 30%;
  width: auto;
  transform-origin: 50% 100%;
  animation: sprig-sway var(--duration-sprig) var(--ease-in-out) infinite;
}

.hero__sprig-stem {
  stroke: var(--color-accent);
  stroke-width: 3;
}

.hero__sprig-leaf {
  fill: var(--color-accent);
  opacity: 0.85;
}

@keyframes sprig-sway {
  0%, 100% { transform: rotate(calc(var(--sprig-sway-angle) * -1)); }
  50% { transform: rotate(var(--sprig-sway-angle)); }
}

/* Straw-rust tag: floating chip, "Straw application" (verbatim from the
   services list, brief §5), +/-4px, 5.6s ease-in-out — the third loop. */
.hero__tag {
  position: absolute;
  inset-inline-end: 6%;
  inset-block-start: 8%;
  display: inline-flex;
  align-items: center;
  padding: var(--space-3xs) var(--space-xs);
  background-color: var(--color-bg);
  border: var(--border-hairline) var(--border-style) var(--color-accent2);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: var(--font-weight-body-strong);
  color: var(--color-accent2);
  opacity: 0.8;
  animation: tag-float var(--duration-tag-float) var(--ease-in-out) infinite;
}

@keyframes tag-float {
  0%, 100% { transform: translateY(calc(var(--tag-float-distance) * -1)); }
  50% { transform: translateY(var(--tag-float-distance)); }
}

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

/* Reduced motion: freeze all three loops at rest (spec §8, brief §7). */
@media (prefers-reduced-motion: reduce) {
  .hero__sheen { animation: none; background-position: 50% 0; }
  .hero__sprig { animation: none; transform: rotate(0deg); }
  .hero__tag { animation: none; transform: translateY(0); }
}

/* --- Services (brief §5) --------------------------------------------------- */

.services__body {
  display: grid;
  gap: var(--space-lg);
}

.services-list {
  display: grid;
  gap: var(--space-sm);
}

.services-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

/* Check-mark glyph: a two-stroke border trick, not a numeral (brief §4.2). */
.services-row__check {
  position: relative;
  flex: none;
  width: var(--space-sm);
  height: var(--space-sm);
  margin-block-start: var(--space-3xs);
}

.services-row__check::before {
  content: '';
  position: absolute;
  inset-inline-start: 20%;
  inset-block-start: 5%;
  width: 45%;
  height: 75%;
  border-inline-end: var(--border-thick) var(--border-style) var(--color-accent);
  border-block-end: var(--border-thick) var(--border-style) var(--color-accent);
  transform: rotate(40deg);
}

.services-row__body strong {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
}

.services__figure {
  margin: 0;
}

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

@media (min-width: 64em) {
  .services__body {
    grid-template-columns: 3fr 2fr;
    align-items: start;
  }

  /* Roughly beside row 6 of 8 (Trimming), per brief §5 — not pinned to a pixel box. */
  .services__figure {
    margin-block-start: 30%;
  }
}

/* --- Pricing (brief §6, the page's central trust object) ------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3xs) var(--space-sm);
  border-radius: var(--radius-pill);
  font-size: var(--text-small);
  font-weight: var(--font-weight-body-strong);
  font-family: var(--font-display);
}

.badge--rust {
  background-color: var(--color-accent2);
  color: var(--color-accent2-ink);
  margin-block-start: var(--space-sm);
}

.pricing-table-wrap {
  overflow-x: auto;
}

@media (max-width: 40em) {
  .pricing-table-wrap { mask-image: linear-gradient(to right, black 85%, transparent); }
}

.pricing-table {
  width: 100%;
  /* @allow-literal: scroller needs this width for 6 cols + index */
  min-width: 36rem;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: var(--space-xs) var(--space-sm);
  text-align: start;
  border-block-end: var(--border-hairline) var(--border-style) var(--color-border);
}

.pricing-table th {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: var(--text-small);
  color: var(--color-ink-muted);
}

.pricing-table__index-head {
  width: 10%;
}

.pricing-table__index {
  font-family: var(--font-display);
  font-weight: var(--font-weight-hero);
  color: var(--color-accent);
}

.pricing-note {
  max-width: var(--layout-measure);
  margin-block-start: var(--space-sm);
  font-size: var(--text-small);
  color: var(--color-ink-muted);
}

/* --- Trust strip (brief §7) ------------------------------------------------ */

.trust-list {
  display: grid;
  gap: var(--space-md);
}

.trust-row__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--font-weight-display);
  margin-block-end: var(--space-3xs);
}

@media (min-width: 48em) {
  .trust-list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

/* --- Season strip (brief §8) ------------------------------------------------ */

.season-list {
  display: grid;
  gap: var(--space-lg);
}

.season-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-block-end: var(--space-sm);
}

.season-card__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--font-weight-display);
  margin-block-end: var(--space-3xs);
}

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

/* --- Process (brief §9): word-ordinals in straw-rust, two dimensions apart
   from the pricing numerals — numeral system AND colour role (brief §4.2). */

.process-list {
  display: grid;
  gap: var(--space-lg);
}

.process-step__label {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--font-weight-display);
  color: var(--color-ink);
  margin-block-end: var(--space-3xs);
}

.process-step__num {
  color: var(--color-accent2);
}

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

/* --- Reviews (brief §10): quote in Source Sans 3 400italic; attribution
   plain, small, muted — cite's UA-default italic is overridden below. --- */

.review-list {
  display: grid;
  gap: var(--space-lg);
}

.review {
  margin: 0;
  padding-inline-start: var(--space-md);
  border-inline-start: var(--border-thick) var(--border-style) var(--color-border);
}

.review p {
  font-style: italic;
  font-size: var(--text-lead);
  line-height: var(--leading-snug);
  color: var(--color-ink);
}

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

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

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

.service-area__body {
  font-size: var(--text-lead);
  color: var(--color-ink);
}

/* --- FAQ (brief §12): native details/summary, a +/- disclosure marker. --- */

.faq-list {
  display: grid;
  gap: var(--space-sm);
  max-width: var(--layout-measure);
}

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

.faq-item__q {
  position: relative;
  padding-inline-end: var(--space-lg);
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  cursor: pointer;
  list-style: none;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__q::after {
  content: '+';
  position: absolute;
  inset-inline-end: 0;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: var(--font-weight-hero);
}

.faq-item[open] .faq-item__q::after {
  /* Plain hyphen-minus (U+002D, in range) — not the Unicode minus, which no shipped face carries */
  content: '-';
}

.faq-item__a {
  margin-block-start: var(--space-xs);
  color: var(--color-ink-muted);
}

/* --- Contact / final CTA band (brief §13) ------------------------------------ */

.contact-cta {
  margin-block-start: var(--space-sm);
  margin-block-end: var(--space-md);
}
