@font-face {
  font-family: "Ridge Narrow";
  src: url("/assets/nimbus-sans-narrow-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: "Ridge Sans";
  src: url("/assets/nimbus-sans-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Ridge Sans";
  src: url("/assets/nimbus-sans-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

/* Approved Brand Book v2.0 tokens — do not substitute legacy site hex values */
:root {
  --pine: #060807;
  --ivory: #f2efe6;
  --rust: #a84b29;
  --rust-dark: #863c20;
  --line: rgba(6, 8, 7, 0.22);
  --narrow: "Ridge Narrow", "Arial Narrow", sans-serif;
  --sans: "Ridge Sans", Arial, sans-serif;
  --surface: rgba(6, 8, 7, 0.045);
  --muted: #5f6259;
  --rule: rgba(6, 8, 7, 0.22);
}

* { box-sizing: border-box; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  background: var(--ivory);
  color: var(--pine);
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -6rem;
  z-index: 1000;
}
.skip-link:focus { top: 1rem; }

/* IVORY CONTENT, DARK BANDS (owner, 2026-08-27: "the background is black,
   shouldn't it be ivory"). The marketing site's inner pages are ivory
   content between a pine header and a pine footer; the calculator was pine
   throughout, which is why crossing into it felt like a different site.
   --surface/--muted/--rule below are the ivory-mode equivalents of the dark
   card, secondary text and hairline colours this file used throughout. */
body.tool-page {
  margin: 0;
  background: var(--ivory);
  color: var(--pine);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.tool-page > main { flex: 1 0 auto; }

.tool-header, .tool-footer {
  background: var(--pine);
  color: var(--ivory);
}

.tool-page :focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.tool-brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; }
.tool-brand img { width: 52px; height: 52px; border-radius: 50%; background: var(--ivory); object-fit: cover; }
.tool-brand__name { display: grid; line-height: 1.1; text-transform: uppercase; }
.tool-brand__name strong { font-family: var(--narrow); font-weight: 700; letter-spacing: 0.08em; font-size: 1.3rem; }
.tool-brand__name small { font-size: 0.65rem; letter-spacing: 0.25em; color: var(--rust); font-weight: 600; margin-top: 6px; }

/* Was max-width:640px, which rendered every screen as a narrow phone column
   in the middle of a desktop window (owner, 2026-08-27). The search screen
   still wants a tight measure; the RESULT screens get the full width so the
   aerial and the services can sit side by side. */
main { max-width: 1120px; margin: 0 auto; padding: clamp(24px, 5vw, 48px) clamp(20px, 4vw, 56px) 80px; }
#searchScreen { max-width: 640px; }

h1 {
  font-family: var(--narrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin: 0 0 8px;
}
.sub { color: var(--muted); margin: 0 0 28px; font-size: 0.98rem; line-height: 1.5; }

.search-wrap { position: relative; margin-bottom: 6px; }
/* Translucent, not a white box (owner, 2026-08-27). Matches the homepage
   address field: the page shows through, one hairline, square corners. */
input[type="text"] {
  width: 100%;
  background: rgba(6, 8, 7, 0.03);
  border: 1px solid rgba(6, 8, 7, 0.20);
  color: var(--pine);
  padding: 16px 18px;
  font-size: 1rem;
  font-family: var(--sans);
  border-radius: 0;
  min-height: 52px; /* touch target */
}

/* No rust ring on the address field while typing. Focus still has to be
   visible (Brand Book accessibility floor), so it reads as a heavier pine
   rule instead of an orange highlight. */
input[type="text"]:focus,
input[type="text"]:focus-visible {
  background: rgba(6, 8, 7, 0.05);
  border-color: rgba(6, 8, 7, 0.55);
  outline: none;
}
.suggestions {
  background: var(--ivory);
  border: 1px solid rgba(6, 8, 7, 0.20);
  border-top: none;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}
.suggestions button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--pine);
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 0.95rem;
  cursor: pointer;
  border-top: 1px solid var(--line);
  min-height: 48px;
}
.suggestions button:hover, .suggestions button:focus-visible { background: rgba(6,8,7,0.09); outline: none; }

.status { font-size: 0.85rem; color: #b7b1a1; min-height: 1.2em; margin-top: 10px; }
.status[data-error="true"] { color: var(--rust); }

.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  color: var(--pine); padding: 20px 14px; font-family: var(--narrow);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  font-size: 0.95rem; cursor: pointer; min-height: 64px; text-align: center;
}
.service-card:hover, .service-card:focus-visible { border-color: var(--rust); }
.service-card.selected { border-color: var(--rust); background: #1c1b12; }

.landscaping-form { margin-top: 20px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.landscaping-form label { font-size: 0.85rem; color: var(--muted); display: block; margin: 12px 0 6px; }
.landscaping-form label:first-child { margin-top: 0; }
.landscaping-form input[type="number"], .landscaping-form select {
  width: 100%; background: rgba(255,255,255,0.6); border: 1px solid var(--line); color: var(--pine);
  padding: 12px 14px; border-radius: 4px; font-family: var(--sans); font-size: 1rem; min-height: 48px;
}
.plant-row { display: grid; grid-template-columns: 2fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.plant-row select, .plant-row input { min-height: 44px; }
.plant-row button { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 4px; min-height: 44px; cursor: pointer; }

.secondary {
  display: block; width: 100%; margin-top: 12px; background: none;
  border: 1px solid var(--line); color: var(--pine); padding: 14px;
  font-family: var(--sans); font-size: 0.92rem; border-radius: 4px; cursor: pointer; min-height: 48px;
}
.secondary:hover { border-color: var(--rust); }

/* Author display rules must NEVER override the HTML hidden attribute.
   A blanket rule, because the per-selector list kept missing new elements:
   .adjust__row has `display:grid`, so hiding the lawn-condition and
   property-layout rows silently did nothing and they showed on every quote. */
.tool-page [hidden] { display: none !important; }

/* ---- One-step result (Pass 2 addendum) ---- */
.promise-line { color: var(--muted); }

.price-hero { padding: 6px 0 20px; }
.price-hero__amount {
  font-family: var(--narrow);
  font-weight: 700;
  font-size: clamp(3.4rem, 14vw, 4.8rem);
  line-height: 1;
  color: var(--pine);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.price-hero__unit { font-size: 0.95rem; color: var(--muted); margin-top: 6px; }
.price-hero__program { font-size: 0.85rem; color: var(--rust); font-weight: 600; margin-top: 4px; }

.price-sticky {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 0 12px; padding: 10px 2px;
  background: var(--pine);
  border-bottom: 1px solid var(--line);
}
.price-sticky__amount { font-family: var(--narrow); font-weight: 700; font-size: 1.6rem; color: var(--pine); line-height: 1; }
.price-sticky__unit { font-size: 0.8rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .price-sticky { transition: opacity .15s ease; } }

.aerial-wrap { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #2a3320; aspect-ratio: 1/1; cursor: pointer; }
.aerial { width: 100%; height: 100%; object-fit: cover; display: block; }
.aerial-outline { position: absolute; inset: 0; pointer-events: none; }
.aerial-line {
  display: block;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  padding: 10px 2px 0;
  cursor: pointer;
}
.aerial-line:hover, .aerial-line:focus-visible { color: var(--pine); }
.aerial-line:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }

.receipt {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
  font-variant-numeric: tabular-nums;
}
.receipt:empty { display: none; }
.receipt__title { font-family: var(--narrow); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 12px; color: var(--pine); }
.receipt__row { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 0.92rem; color: var(--muted); }
.receipt__label { flex-shrink: 1; }
.receipt__dots { flex: 1; border-bottom: 1px dotted rgba(242, 239, 230, 0.28); transform: translateY(-3px); min-width: 16px; }
.receipt__amount { color: var(--pine); font-weight: 500; white-space: nowrap; }
.receipt__row--price { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 700; color: var(--pine); }
.receipt__row--price .receipt__label { letter-spacing: 0.04em; }
.receipt__row--total { font-weight: 700; color: var(--pine); font-size: 1rem; }
.receipt__row--material .receipt__label { color: var(--muted); }
.receipt__remove {
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  padding: 2px 8px;
  cursor: pointer;
}
.receipt__remove:hover, .receipt__remove:focus-visible { color: var(--pine); border-color: var(--rust); }
.receipt__supply { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }

.adjust { margin-top: 22px; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; display: grid; gap: 14px; }
.adjust__row { display: grid; gap: 6px; }
.adjust__row > label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.adjust__row select,
.adjust__field input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--pine);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 10px 12px;
  appearance: none;
  -webkit-appearance: none;
}
.adjust__row select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.adjust__field { display: flex; align-items: center; gap: 10px; }
.adjust__field span { color: var(--muted); font-size: 0.9rem; }
.adjust__row select:focus-visible,
.adjust__field input:focus-visible { outline: 2px solid var(--rust); outline-offset: 1px; border-color: var(--rust); }
.data-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(6,8,7,0.82);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.size-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.size-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.size-card .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; }
.size-card .value { font-family: var(--narrow); font-size: 1.4rem; font-weight: 700; }
.size-card.mow { border-color: var(--rust); }
.size-card.mow .value { color: var(--rust); }

.price-block { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; }
.price-amount { font-family: var(--narrow); font-weight: 700; font-size: 2.6rem; color: var(--pine); }
.price-unit { font-size: 0.85rem; color: var(--muted); }
.price-program { font-size: 0.85rem; color: var(--rust); font-weight: 600; margin-top: 2px; }

.why { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.why-row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 5px 0; color: var(--muted); }
.why-row span:last-child { color: var(--pine); font-weight: 500; }

.season-box { margin-top: 22px; background: rgba(168,75,41,0.07); border: 1px solid rgba(168,75,41,0.35); border-radius: 8px; padding: 18px 20px; }
.season-box h3 { font-family: var(--narrow); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 8px; }
.season-box p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

.addon-box { margin-top: 22px; }
.addon-box label { font-size: 0.85rem; color: var(--muted); display: block; margin-bottom: 8px; }
textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--pine);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.92rem;
  resize: vertical;
  min-height: 60px;
}

.cta {
  display: block; width: 100%; margin-top: 22px;
  background: var(--rust); color: var(--ivory); border: none;
  padding: 17px; font-family: var(--narrow); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 1rem;
  border-radius: 4px; cursor: pointer; min-height: 52px;
}
.cta:hover { background: var(--rust-dark); }
.cta:disabled { opacity: 0.6; cursor: not-allowed; }

.flag-link {
  display: inline-block; margin-top: 14px; font-size: 0.8rem;
  color: var(--muted); text-decoration: underline;
  background: none; border: none; cursor: pointer; font-family: var(--sans);
  min-height: 44px; padding: 10px 0;
}
.flag-link:hover { color: var(--rust); }

.confirm-screen, .out-of-area, .not-found { text-align: center; padding: 40px 10px; }
.confirm-screen h2, .out-of-area h2, .not-found h2 { font-family: var(--narrow); text-transform: uppercase; font-size: 1.5rem; }
.confirm-screen p, .out-of-area p, .not-found p { color: var(--muted); max-width: 380px; margin: 10px auto 0; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.receipt__supply--note { border-top: none; padding-top: 4px; color: var(--rust); }
.landscaping-panel .price-hero { padding-top: 20px; }

.service-card small { display: block; font-family: var(--sans); font-weight: 400; text-transform: none; letter-spacing: normal; font-size: 0.75rem; margin-top: 4px; opacity: 0.75; }

/* Receipt note: an explanatory line with no charge beside it. Used where the
   price would not have changed whatever the customer answered, so the receipt
   says so instead of leaving them to wonder. */
.receipt__row--note .receipt__label { color: #a49d8e; font-size: 0.9em; font-style: italic; }

/* Payment split: what's due at booking vs on completion. Shown instead of a
   bare deposit figure, because the same number reads as a demand without the
   explanation and as fairness with it. */
.price-hero__split { margin-top: 12px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; }
.price-hero__due { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .92rem; padding: 3px 0; }
.price-hero__due span { color: var(--muted); }
.price-hero__due strong { font-variant-numeric: tabular-nums; }
.price-hero__why { margin-top: 8px; font-size: .78rem; line-height: 1.5; color: var(--muted); }


/* Site nav and footer on the calculator (owner, 2026-08-27: "there is also
   no menu or footer"). The brand used to link to "/", which on THIS Worker
   is the price page itself -- clicking the logo never left the calculator. */
.tool-header {
  border-bottom: 0;
  justify-content: space-between;
  flex-wrap: wrap;
}

.tool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.tool-nav a {
  color: var(--ivory);
  font-family: var(--narrow);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.tool-nav a:hover { color: var(--rust); }
.tool-nav a:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }

.tool-footer {
  align-items: center;
  border-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  padding: 26px clamp(20px, 4vw, 56px);
}

.tool-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.tool-footer a {
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.92rem;
  text-decoration: none;
}

.tool-footer a:hover { color: var(--rust); }

.tool-footer span {
  font-family: var(--narrow);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  opacity: 0.7;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .tool-nav { gap: 8px 18px; }
  .tool-nav a { font-size: 0.78rem; }
}

/* The searched address, shown on the result with a way back to change it.
   The search screen hides once a price lands (owner, 2026-08-27: arriving
   from the homepage should not present another "get your price" page), so
   this row is the only place the looked-up address is visible. */
.result-address__label {
  color: var(--rust);
  display: block;
  font-family: var(--narrow);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 5px;
  text-transform: uppercase;
  width: 100%;
}

.result-address {
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  row-gap: 0;
  gap: 8px 18px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 12px;
}

.result-address__value {
  font-family: var(--sans);
  font-size: 1rem;
}

.result-address__change {
  background: none;
  border: 0;
  color: var(--rust);
  cursor: pointer;
  font-family: var(--narrow);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  min-height: 44px;
  padding: 0;
  text-transform: uppercase;
}

.result-address__change:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- The property on the left, its priced menu on the right ----
   Owner, 2026-08-27: "the map on the left side, and then on the right side
   should be the services". Stacks on narrow screens; the aerial keeps its
   square aspect either way. */
.result-split {
  align-items: start;
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: 26px;
}

.services-menu__title {
  font-family: var(--narrow);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.services-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.services-menu__item {
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 10px 0;
}

.services-menu__item:first-child { border-top: 2px solid var(--pine); }

.services-menu__name {
  display: grid;
  font-family: var(--sans);
  font-size: 0.98rem;
}

.services-menu__basis {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.services-menu__price {
  display: grid;
  font-family: var(--narrow);
  font-size: 1.2rem;
  font-weight: 700;
  justify-items: end;
  text-align: right;
  white-space: nowrap;
}

.services-menu__price small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  margin-top: 2px;
}

.services-menu__more {
  border-top: 1px solid var(--rule);
  margin-top: 18px;
  padding-top: 14px;
}

.services-menu__more-title {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.85rem;
  margin: 0 0 8px;
}

.services-menu__more ul {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 860px) {
  .result-split { grid-template-columns: 1fr; }
}

/* Arriving from the homepage: a real "we are working" screen instead of an
   empty search page holding an address the customer already gave us. */
#arrivingScreen { max-width: 640px; }

.arriving-note {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 14px 0 0;
}

#arrivingScreen .sub {
  color: var(--pine);
  font-family: var(--sans);
  font-size: 1.05rem;
  margin: 0;
}
