/*
 * Shared styling for the intake pages: booking a cleaning, requesting a reset
 * assessment, starting a monument consultation, the One-for-One page, and the
 * field portal.
 *
 * These pages are new, but the site is not. Every token here is lifted from the
 * existing pages rather than invented, so a family that lands on /book-cleaning
 * from the homepage does not feel handed off to a different company. The one
 * thing these pages do differently is get out of the way: a form on a memorial
 * site should be short, legible on a phone at a graveside, and honest about what
 * happens next.
 */

:root {
  --ink: #18201b;
  --forest: #263a30;
  --forest-deep: #121c17;
  --paper: #f5f0e6;
  --paper-light: #fbfaf6;
  --bronze: #aa7950;
  --bronze-light: #dab38c;
  --line: rgba(24, 32, 27, .17);
  --muted: #646960;
  --danger: #8c3626;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(170, 121, 80, .14), transparent 32rem),
    linear-gradient(180deg, #faf8f2 0, var(--paper) 55rem, #ece6da 100%);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #c78d5f; outline-offset: 4px; }
img { max-width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 242, .92);
  backdrop-filter: blur(18px);
}
.nav {
  width: min(1380px, calc(100% - 36px));
  min-height: 74px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}
.brand-copy { display: grid; line-height: 1.12; }
.brand-copy strong { font-size: 13px; letter-spacing: .075em; text-transform: uppercase; }
.brand-copy span { color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
/* Eight destinations and a booking button will not sit on one line beside the
   brand on a laptop. The row scrolls sideways inside its pill rather than
   wrapping into a two-storey block, and below 1100px it takes a full line of
   its own underneath the brand. */
.nav-links { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(245,242,235,.86); max-width: 100%; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  flex: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 11.5px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(23,24,22,.06); }
.nav-link[aria-current="page"] { background: var(--ink); color: #fff; }
/* The one thing on the page that should always be a tap away. It stays visible
   at every width — most of this traffic is on a phone, and a booking button
   that hides itself on a phone is a booking button nobody presses. */
.nav-cta {
  flex: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 11.5px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  background: var(--ink);
  color: #fff;
}
.nav-cta:hover { background: var(--forest); }
@media (max-width: 1100px) {
  .nav { min-height: 0; padding: 12px 0; gap: 12px; }
  .nav-links { order: 3; width: 100%; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .brand-copy span { display: none; }
  .nav-link { min-height: 36px; padding: 0 11px; font-size: 10.5px; }
  .nav-cta { min-height: 36px; padding: 0 13px; font-size: 10.5px; }
}

/* Only ever shown when the owner has switched the site into winter mode. */
.season-banner {
  display: none;
  padding: 11px 18px;
  color: #fff;
  background: var(--forest-deep);
  font-size: 12.5px;
  font-weight: 650;
  text-align: center;
}
.season-banner[data-visible="true"] { display: block; }

/* ---------- layout ---------- */
main { width: min(1080px, calc(100% - 36px)); margin: 0 auto 96px; }
.page-head { padding: clamp(38px, 6vw, 68px) 0 26px; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--bronze);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 18px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.02em;
}
h1 em { font-style: italic; color: var(--forest); }
h2 {
  margin: 0 0 14px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 400;
  line-height: 1.1;
}
h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.lead { max-width: 62ch; margin: 0 0 22px; font-size: clamp(16px, 1.7vw, 18.5px); color: #333a34; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.panel {
  padding: clamp(22px, 3.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper-light);
  box-shadow: 0 18px 48px rgba(20, 29, 24, .07);
}
.panel + .panel { margin-top: 22px; }
/* A closing section that follows the two-column body of an intake page. Without
   this it sits flush against the columns above it. */
.grid + .panel, .panel + .grid { margin-top: 22px; }
.panel--dark { color: #fff; background: var(--forest-deep); border-color: transparent; }
.panel--dark .muted { color: rgba(255,255,255,.66); }
.panel--dark h2, .panel--dark h3 { color: #fff; }

.grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.pricing { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pricing th, .pricing td { padding: 11px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.pricing th { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pricing td:nth-child(2) { font-weight: 800; white-space: nowrap; }

.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 26px; font-size: 14.5px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 12px;
  height: 12px;
  border: 2px solid var(--bronze);
  border-radius: 50%;
}

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; font-size: 14.5px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.panel--dark .steps li::before { background: var(--bronze); }

/* ---------- forms ---------- */
form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > label { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.field .hint { font-size: 12.5px; color: var(--muted); }
input, select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font-family: inherit;
  font-size: 16px;
}
textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
/* A select cannot shrink its own text, so a label longer than the control
   is silently cut in half. Ellipsis at least makes the cut legible. */
select { text-overflow: ellipsis; }
/* iOS Safari sizes a date input from its own content instead of the box it
   sits in, so without this it renders narrow beside a full-width text field.
   Resetting the appearance does not cost the native picker. */
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; }
input[type="file"] { padding: 12px; background: rgba(255,255,255,.7); }
input:focus, select:focus, textarea:focus { border-color: var(--bronze); }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 12.5px; font-weight: 700; }
.row { display: grid; gap: 16px; }
@media (min-width: 700px) { .row--2 { grid-template-columns: 1fr 1fr; } }
/* Section, lot, and plot are three short answers. Three across on a phone is
   too tight to tap, so they only split at the same width the pairs do. */
@media (min-width: 560px) { .row--3 { grid-template-columns: repeat(3, 1fr); } }
/* City is a short answer and county is a select holding a full option
   label, so an even split clips the county rather than the city. */
@media (min-width: 700px) { .row--2.row--place { grid-template-columns: 1fr 1.25fr; } }
.optional { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 11.5px; }

/* A group of checkboxes or radios inside a .field.
   The memorial care forms ask two questions that are genuinely lists — what a
   care plan should cover, and whether yearly renewal is of interest — and a
   select would hide the options behind a tap on the phone most of this traffic
   arrives on. The generic input rule above sizes every control like a text box,
   so the boxes are re-sized here rather than left 50px tall. */
.choices { display: grid; gap: 11px; margin: 0; padding: 0; border: 0; }
.choices > label {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}
.choices input[type="checkbox"], .choices input[type="radio"] {
  width: 21px;
  height: 21px;
  min-height: 21px;
  margin: 1px 0 0;
  padding: 0;
  flex: 0 0 auto;
  border-radius: 6px;
  accent-color: var(--forest);
}
.choices input[type="radio"] { border-radius: 50%; }
/* A fieldset's legend does not inherit the .field label styling, so it is
   given the same treatment here and the group reads like every other label. */
.field > legend, .choices-label {
  padding: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
/* The honeypot. Off-screen rather than display:none, because a field that is
   not rendered is a field a screen reader cannot announce and some bots know
   to skip. */
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.button, button.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--forest); border-color: var(--forest); }
.button[disabled] { opacity: .55; cursor: progress; }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: rgba(23,24,22,.06); color: var(--ink); }
.button--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* A notice the family must not skip. Deliberately the loudest thing on the page. */
.notice {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 2px solid var(--bronze);
  border-radius: 16px;
  background: rgba(218, 179, 140, .17);
}
.notice strong { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #7d4f27; }
.notice p { margin: 0; font-size: 15px; font-weight: 650; }

/* Headstone count on the cleaning form: minus, number, plus, and the running
   total beside it, so the price charged is on screen before checkout. */
.stepper { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stepper input { width: 72px; text-align: center; font-weight: 800; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__btn {
  width: 50px; height: 50px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: inherit;
  font: inherit; font-size: 22px; font-weight: 700; cursor: pointer;
}
.stepper__btn:hover { border-color: var(--bronze); }
.stepper__total { margin-left: 8px; font-size: 15px; }
.stepper__total strong { font-size: 20px; }

.callout {
  padding: 16px 18px;
  border-left: 3px solid var(--bronze);
  border-radius: 0 12px 12px 0;
  background: rgba(38, 58, 48, .05);
  font-size: 14.5px;
}
.status { margin: 0; font-size: 14.5px; font-weight: 700; min-height: 1.2em; }
.status[data-tone="error"] { color: var(--danger); }
.status[data-tone="ok"] { color: var(--forest); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(38, 58, 48, .08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.counter { font-family: "Instrument Serif", Georgia, serif; font-size: clamp(52px, 9vw, 92px); line-height: 1; }

footer {
  width: min(1380px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 46px;
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}
footer a { font-weight: 700; }

[hidden] { display: none !important; }

/* ---------- photo picker ----------
   The thumbnails funnel.js draws under a photo box, so a family can see what
   they are about to send and take one back out without starting again. */
.photo-picks { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-picks:empty { display: none; }
.photo-pick { position: relative; margin: 0; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pick__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 33, 27, .78);
  color: #fff;
  font-size: 17px;
  line-height: 26px;
  cursor: pointer;
}
.photo-picks__count { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--muted); }
/* The photo box reads as a target to tap rather than a grey system control. */
.photo-drop input[type="file"] { border-style: dashed; border-width: 2px; cursor: pointer; }
