/* Elko Crane Rental. Direction: "One motif" (taste-skill, seed 1144301814).
   The motif is the raised boom: a 60-degree chamfer that cuts photos, buttons and tiles, and the
   outrigger hazard stripe tilted to the same angle. Basalt ground, sage-white ink, one ruby accent
   (taken from the Ruby Mountains over Elko). See DESIGN.md before extending. */

/* ---------- Tokens ---------- */
:root {
  --bg: #0F1311;          /* basalt: page ground */
  --surface: #191E1B;     /* one step up */
  --surface-2: #232925;   /* two steps up */
  --ink: #ECEDE6;         /* sage white: running text on dark */
  --muted: #A9B0A4;       /* sagebrush: secondary text on dark (8.4:1) */
  --accent: #B11226;      /* ruby: the action and the motif */
  --accent-hover: #951020;
  --accent-ink: #FFFFFF;
  --accent-soft: #F28A95; /* ruby tint for small accent text on dark (7:1) */
  --field-tone: #C3283C;  /* lighter ruby: fields inside the coupon */
  --paper: #ECEDE6;       /* inverted sections and the hero card */
  --paper-2: #DCE0D5;
  --paper-ink: #0F1311;
  --paper-muted: #4A5249; /* 6.9:1 on paper */
  --ruby-1: #3A0A11; --ruby-2: #6B0E1C; --ruby-3: #B11226; --ruby-4: #EBCDD0;

  --font-display: "League Spartan", "Arial Narrow", Arial, sans-serif;
  --font-text: "Figtree", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* five sizes, no more */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 0.9rem + 1.5vw, 2.25rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.5rem, 1rem + 3.6vw, 4.5rem);

  --m: clamp(16px, 2.4vw, 36px);        /* the one pair of outer margins */
  --gutter: clamp(16px, 2vw, 28px);
  --section: clamp(88px, 10vw, 176px);  /* gap between sections */
  --tan60: 1.732;
  --cut: 12px;                          /* small chamfer: buttons, bullets, tiles */
  --cut-lg: clamp(44px, 7vw, 120px);    /* large chamfer: photographs */
  --ring: var(--ink);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* lead engine defaults (dark context) */
  --lead-accent: var(--accent);
  --lead-accent-ink: #fff;
  --lead-border: rgba(236, 237, 230, .35);
  --lead-field-bg: var(--surface-2);
  --lead-error: #FFB4BC;
  --lead-radius: 0;
  --lead-gap: 12px;
  /* WhatsApp green darkened from the engine default (3.1:1) to pass AA with white text (5.4:1) */
  --wa: #157A3D; --wa-hover: #106331; --lead-wa: var(--wa);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.95; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-display); }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 100; background: var(--paper); color: var(--paper-ink); padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Surfaces. Put .on-paper on any section that inverts to the light field. */
.on-paper { background: var(--paper); color: var(--paper-ink); --ring: var(--paper-ink); --muted: var(--paper-muted);
  --lead-field-bg: #fff; --lead-border: rgba(15, 19, 17, .35); --lead-error: #A3001B; }
.on-surface { background: var(--surface); }

/* ---------- The motif ---------- */
/* A corner cut at the boom angle: the cut line rises to the right at 60 degrees. */
.cut { clip-path: polygon(0 calc(var(--c, var(--cut-lg)) * var(--tan60)), var(--c, var(--cut-lg)) 0, 100% 0, 100% 100%, 0 100%); }
.stripes { display: block; width: 100%; height: 56px; background: var(--paper); }
.stripes-thin { height: 10px; background: var(--bg); }

/* ---------- Buttons ---------- */
.btn {
  --c: var(--cut);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em; border: 0; border-radius: 0;
  font: 600 var(--step-body)/1.1 var(--font-text); text-decoration: none; cursor: pointer;
  clip-path: polygon(0 calc(var(--c) * var(--tan60)), var(--c) 0, 100% 0, 100% 100%, 0 100%);
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid currentColor; outline-offset: -7px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ink { background: var(--paper-ink); color: var(--paper); }
.btn-ink:hover { background: #2B332E; }
.btn-paper { background: var(--paper); color: var(--paper-ink); }
.btn-paper:hover { background: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-line { background: var(--surface-2); color: var(--ink); }
.btn-line:hover { background: #2f3631; }
.on-paper .btn-line { background: var(--paper-2); color: var(--paper-ink); }
.btn-sm { min-height: 44px; padding: .55em 1.1em; font-size: var(--step-small); }
.arrow::after { content: "\2192"; display: inline-block; transition: transform .18s var(--ease); }
a:hover .arrow::after, .arrow:hover::after { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header ---------- */
.site-head {
  position: relative; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  padding: 14px var(--m); background: var(--bg);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; margin-right: auto; }
.brand-mark { --c: 7px; width: 26px; height: 26px; background: var(--accent);
  clip-path: polygon(0 calc(var(--c) * var(--tan60)), var(--c) 0, 100% 0, 100% 100%, 0 100%); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.03em; line-height: 1; padding-top: .12em; }
.nav-toggle { display: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; width: 100%; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.site-nav ul a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; font-size: var(--step-small); color: var(--ink); }
.site-nav ul a:hover { text-decoration: underline; }
.site-nav ul a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent-soft); text-decoration-thickness: 2px; }
.nav-cta { min-height: 44px; font-size: var(--step-small); }
/* With JS on a phone, the links fold behind a Menu button. Without JS they stay visible. */
@media (max-width: 859px) {
  .js .nav-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 0; background: var(--surface-2); color: var(--ink); font: 600 var(--step-small) var(--font-text); cursor: pointer; }
  .js .site-nav { display: none; padding: 8px 0 12px; }
  .js .site-head.open .site-nav { display: flex; flex-direction: column; align-items: stretch; }
  .js .site-head.open .site-nav ul { flex-direction: column; }
  .js .site-head.open .site-nav ul a { width: 100%; font-size: var(--step-body); }
}
@media (min-width: 860px) {
  .site-head { flex-wrap: nowrap; padding-block: 16px; }
  .site-nav { width: auto; flex-wrap: nowrap; gap: 28px; }
  .site-nav ul { gap: 28px; }
}

/* ---------- Layout ---------- */
.frame { padding-inline: var(--m); }
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * .6); }
.g12 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gutter); }
@media (min-width: 900px) {
  .g12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .c1-5 { grid-column: 1 / 6; } .c1-6 { grid-column: 1 / 7; } .c1-7 { grid-column: 1 / 8; }
  .c7-11 { grid-column: 7 / 12; } .c7-12 { grid-column: 7 / 13; } .c6-12 { grid-column: 6 / 13; } .c8-12 { grid-column: 8 / 13; }
  .c5-12 { grid-column: 5 / 13; } .c1-4 { grid-column: 1 / 5; } .c1-12 { grid-column: 1 / 13; }
}
.lead { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; max-width: 34ch; }
.muted { color: var(--muted); }
.small { font-size: var(--step-small); }
.crumbs { font-size: var(--step-small); color: var(--muted); margin: 0 0 20px; }
.crumbs a { color: inherit; }
figure { margin: 0; }
figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 10px; }

/* ---------- Hero: striped card beside the photograph ---------- */
.hero { display: grid; gap: var(--m); padding: 0 var(--m) var(--m); }
.hero-media { position: relative; order: -1; height: 48svh; min-height: 300px; overflow: hidden; --c: 40px; background: var(--surface); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-media img.xf { opacity: 0; transition: opacity 1.6s ease; }
.hero-media img.xf.on { opacity: 1; }
.hero-card { position: relative; z-index: 1; margin-top: calc(-24px - var(--m)); background: var(--paper); color: var(--paper-ink); --ring: var(--paper-ink); --muted: var(--paper-muted); display: flex; flex-direction: column; }
.hero-card .stripes { height: 40px; }
.hero-body { padding: 28px 20px 24px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.hero-card h1 { max-width: 12ch; }
.hero-sub { font-size: var(--step-body); max-width: 40ch; margin: 0; }
.hero-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; font-size: var(--step-small); }
.hero-links a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
.hero-note { font-size: var(--step-small); color: var(--paper-muted); margin-top: auto; }
.hero-card .btn-wa:focus-visible, .hero-card .btn-accent:focus-visible { outline-color: #fff; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: calc(100svh - 76px); max-height: 980px; padding-top: 0; }
  .hero-card { order: 0; margin-top: 0; }
  .hero-media { order: 1; height: auto; min-height: 560px; --c: var(--cut-lg); }
  .hero-card .stripes { height: 56px; }
  .hero-body { padding: clamp(32px, 4vw, 64px); gap: 28px; justify-content: center; }
}

/* Smaller split hero for service and quote pages */
.page-hero { display: grid; gap: var(--m); padding: 0 var(--m) var(--m); }
.page-hero .hero-media { height: 42svh; }
@media (min-width: 900px) {
  .page-hero { grid-template-columns: 7fr 5fr; min-height: min(78svh, 760px); }
  .page-hero .hero-media { height: auto; min-height: 480px; }
}

/* ---------- Statement with picture words ---------- */
.say { font-size: var(--step-lead); line-height: 1.24; letter-spacing: -0.01em; max-width: 60ch; font-weight: 600; }
.local-head { margin: clamp(64px, 8vw, 128px) 0 40px; align-items: end; }
.pw { --c: .22em; display: inline-block; height: 1em; width: 1.6em; object-fit: cover; vertical-align: -0.14em; margin: 0 .1em;
  clip-path: polygon(0 calc(var(--c) * var(--tan60)), var(--c) 0, 100% 0, 100% 100%, 0 100%); }
.statement-follow { margin-top: 56px; display: grid; gap: 20px; }
@media (min-width: 900px) { .statement-follow { grid-column: 7 / 13; } }

/* ---------- Services: two-column menu with photo bullets ---------- */
.menu-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.menu-head p { margin: 0; color: var(--muted); }
.menu { display: grid; gap: 8px 64px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .menu { grid-template-columns: 1fr 1fr; row-gap: 12px; } }
.menu a { display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; align-items: start; padding: 14px 0; text-decoration: none; }
.menu img { --c: 12px; width: 64px; height: 64px; object-fit: cover; grid-row: span 2;
  clip-path: polygon(0 calc(var(--c) * var(--tan60)), var(--c) 0, 100% 0, 100% 100%, 0 100%); transition: transform .25s var(--ease); }
.menu-name { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.menu-name .arrow { color: var(--accent-soft); }
.menu-desc { color: var(--muted); font-size: 1rem; line-height: 1.45; margin-top: 4px; max-width: 46ch; }
.menu-note { display: block; margin-top: 4px; color: var(--accent-soft); font-size: var(--step-small); font-weight: 600; }
.menu a:hover .menu-name span:first-child { text-decoration: underline; }
.menu a:hover img { transform: scale(1.06); }
@media (max-width: 599px) { .menu a { grid-template-columns: 52px 1fr; gap: 0 16px; } .menu img { width: 52px; height: 52px; } }

/* ---------- How it works: accordion of tinted panels ---------- */
.how-intro { align-items: end; margin-bottom: 64px; }
.how-row { display: flex; flex-direction: column; gap: 0; }
.how-row details { position: relative; color: #fff; }
.how-row details:nth-child(1) { background: var(--ruby-1); }
.how-row details:nth-child(2) { background: var(--ruby-2); }
.how-row details:nth-child(3) { background: var(--ruby-3); }
.how-row details:nth-child(4) { background: var(--ruby-4); color: var(--paper-ink); --ring: var(--paper-ink); }
.how-row summary { list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 64px; padding: 0 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.1; }
.how-row summary::-webkit-details-marker { display: none; }
.how-row summary:focus-visible { outline: 3px solid currentColor; outline-offset: -6px; }
.how-body { padding: 0 20px 24px; }
.how-body p { font-size: var(--step-body); max-width: 40ch; }
@media (min-width: 900px) {
  .how-row { flex-direction: row; height: 520px; }
  .how-row details { flex: 1 1 0; min-width: 0; overflow: hidden; transition: flex-grow .45s var(--ease); }
  .how-row details[open] { flex-grow: 5.6; }
  .how-row details:not([open]) summary { position: absolute; inset: 0; padding: 24px; align-items: flex-start; writing-mode: vertical-rl; transform: rotate(180deg); }
  .how-row details:not([open]) summary:hover { text-decoration: underline; }
  .how-row details[open] summary { min-height: 0; padding: 32px 32px 0; font-size: min(var(--step-head), 2.75rem); cursor: default; }
  .how-body { position: absolute; left: 32px; right: 32px; bottom: 32px; padding: 0; }
}

/* ---------- Local context: statement, then the site picker ---------- */
.picker { display: grid; gap: var(--gutter); }
.picker > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.picker-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.picker-tabs label { --c: 10px; display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; cursor: pointer;
  background: var(--paper-2); color: var(--paper-ink); font-weight: 600;
  clip-path: polygon(0 calc(var(--c) * var(--tan60)), var(--c) 0, 100% 0, 100% 100%, 0 100%); transition: background-color .18s var(--ease); }
.picker-tabs label:hover { background: #cfd4c7; }
.panel { display: none; }
.panel-grid { display: grid; gap: var(--gutter); }
.panel img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; --c: 56px; }
.panel h3 { margin-bottom: 16px; }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checklist li { --c: 5px; position: relative; padding-left: 30px; max-width: 60ch; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; background: var(--accent);
  clip-path: polygon(0 calc(var(--c) * var(--tan60)), var(--c) 0, 100% 0, 100% 100%, 0 100%); }
#site-mine:checked ~ .picker-tabs label[for="site-mine"],
#site-build:checked ~ .picker-tabs label[for="site-build"],
#site-town:checked ~ .picker-tabs label[for="site-town"],
#site-ranch:checked ~ .picker-tabs label[for="site-ranch"] { background: var(--accent); color: #fff; }
#site-mine:focus-visible ~ .picker-tabs label[for="site-mine"],
#site-build:focus-visible ~ .picker-tabs label[for="site-build"],
#site-town:focus-visible ~ .picker-tabs label[for="site-town"],
#site-ranch:focus-visible ~ .picker-tabs label[for="site-ranch"] { outline: 3px solid var(--paper-ink); outline-offset: 3px; clip-path: none; }
#site-mine:checked ~ .picker-panels .p-mine,
#site-build:checked ~ .picker-panels .p-build,
#site-town:checked ~ .picker-panels .p-town,
#site-ranch:checked ~ .picker-panels .p-ranch { display: block; }
@media (min-width: 900px) {
  .picker { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .picker-tabs { grid-column: 1 / 5; flex-direction: column; align-items: flex-start; }
  .picker-tabs label { min-height: 56px; font-size: 1.125rem; }
  .picker-panels { grid-column: 5 / 13; }
  .panel-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- FAQ: accordion of filled tiles ---------- */
.faq-list { display: grid; gap: 8px; }
.faq-list details { --c: 16px; background: var(--paper-2); color: var(--paper-ink);
  clip-path: polygon(0 calc(var(--c) * var(--tan60)), var(--c) 0, 100% 0, 100% 100%, 0 100%); transition: background-color .2s var(--ease); }
.on-surface .faq-list details, .faq-dark .faq-list details { background: var(--surface-2); color: var(--ink); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 64px; padding: 16px 20px; font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline: 3px solid currentColor; outline-offset: -6px; }
.plus { position: relative; flex: none; width: 16px; height: 16px; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform .2s var(--ease); }
.plus::after { transform: rotate(90deg); }
.faq-list details[open] { background: var(--accent); color: #fff; }
.faq-list details[open] .plus::after { transform: rotate(0deg); }
.faq-list .answer { padding: 0 20px 22px; }
.faq-list .answer p { max-width: 58ch; font-size: 1.0625rem; }
.faq-list details[open] a { color: #fff; }
@media (min-width: 900px) {
  .faq-head { position: sticky; top: 96px; align-self: start; }
  .faq-list summary { min-height: 72px; padding: 20px 24px; font-size: 1.25rem; }
  .faq-list .answer { padding: 0 24px 26px; }
}

/* ---------- Service areas ---------- */
.towns { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; }
.towns li:not(:last-child)::after { content: "/"; color: var(--accent-soft); margin: 0 .45em; }
.area-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- The coupon (quote form) ---------- */
.coupon-wrap { padding: var(--section) var(--m); }
.coupon {
  position: relative; display: grid; background: var(--accent); color: #fff; --ring: #fff;
  --lead-accent: var(--paper-ink); --lead-accent-ink: var(--paper); --lead-fg: #fff; --lead-muted: rgba(255, 255, 255, .86);
  --lead-border: rgba(255, 255, 255, .5); --lead-field-bg: var(--field-tone); --lead-error: #FFE3A3; --lead-radius: 0;
}
.coupon::before, .coupon::after { content: ""; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--coupon-ground, var(--bg)); }
.coupon-stub { padding: 32px 20px 28px; display: flex; flex-direction: column; gap: 18px; border-bottom: 5px dotted var(--coupon-ground, var(--bg)); }
.coupon-stub h2 { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem); line-height: 1; }
.coupon-stub p { margin: 0; }
.coupon-stub .small { color: rgba(255, 255, 255, .9); }
.coupon-form { padding: 28px 20px 32px; }
/* Notches sit on the vertical perforation, so they only show on the side-by-side layout */
.coupon::before, .coupon::after { display: none; }
@media (min-width: 900px) {
  .coupon { grid-template-columns: 4fr 6fr; margin-inline: auto; max-width: 1280px; }
  .coupon-stub { padding: 48px; border-bottom: 0; border-right: 5px dotted var(--coupon-ground, var(--bg)); justify-content: space-between; }
  .coupon-form { padding: 48px; }
  .coupon::before, .coupon::after { display: block; }
  .coupon::before { left: 40%; top: -14px; transform: translateX(-50%); }
  .coupon::after { left: 40%; right: auto; top: auto; bottom: -14px; transform: translateX(-50%); }
}
.on-paper .coupon, .on-paper.coupon-wrap { --coupon-ground: var(--paper); }
.on-surface.coupon-wrap { --coupon-ground: var(--surface); }
.coupon-alt { display: flex; flex-wrap: wrap; gap: 10px; }
.coupon .btn-paper:focus-visible, .coupon .btn-ink:focus-visible { outline-color: currentColor; }

/* Lead engine restyle (inside and outside the coupon) */
.lead-form, .lead-done { font-size: 1rem; }
.lead-step-title { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px; }
.lead-step-count { font-size: var(--step-small); }
.lead-progress-track { height: 6px; border-radius: 0; }
.lead-label { font-weight: 600; font-size: 1rem; }
.lead-field input:not([type=radio]):not([type=checkbox]), .lead-field select, .lead-field textarea { min-height: 52px; font-size: 1rem; }
.lead-field input::placeholder, .lead-field textarea::placeholder { color: inherit; opacity: .72; }
.lead-tile { --c: 10px; min-height: 52px; justify-content: center;
  clip-path: polygon(0 calc(var(--c) * var(--tan60)), var(--c) 0, 100% 0, 100% 100%, 0 100%); }
.lead-tile-text { font-weight: 600; line-height: 1.25; }
.lead-btn { --c: 10px; border-radius: 0; min-height: 52px; clip-path: polygon(0 calc(var(--c) * var(--tan60)), var(--c) 0, 100% 0, 100% 100%, 0 100%); }
.lead-btn:focus-visible { outline-offset: -7px; }
.lead-done-title { font-family: var(--font-display); font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1.05; }
.coupon .lead-progress-track { background: rgba(255, 255, 255, .3); }
.coupon .lead-progress-bar { background: #fff; }
.coupon .lead-field input:not([type=radio]):not([type=checkbox]), .coupon .lead-field select, .coupon .lead-field textarea { color: #fff; }
.coupon .lead-field select option { color: var(--paper-ink); background: #fff; }
.coupon .lead-field input:focus-visible, .coupon .lead-field select:focus-visible, .coupon .lead-field textarea:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
.coupon .lead-tile:hover { border-color: #fff; }
.coupon .lead-tile-grid input:checked + .lead-tile { background: var(--paper-ink); border-color: var(--paper-ink); color: var(--paper); box-shadow: none; } /* taste-skill-ignore: removes the engine's inset ring */
.coupon .lead-tile-grid input:focus-visible + .lead-tile { outline: 3px solid #fff; outline-offset: 2px; clip-path: none; }
.coupon .lead-back { border-color: rgba(255, 255, 255, .6); color: #fff; }
.coupon .lead-next, .coupon .lead-submit { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.coupon .lead-next:hover, .coupon .lead-submit:hover { background: #2B332E; }
.coupon .lead-btn:focus-visible { outline: 3px solid #fff; }
.coupon .lead-status a, .coupon .lead-done a:not(.lead-btn) { color: #fff; }
.coupon .lead-wa-btn { background: var(--wa); border-color: var(--wa); }
input[type="date"] { color-scheme: dark; }
.on-paper input[type="date"] { color-scheme: light; }

/* ---------- Content blocks for service pages ---------- */
.prose h2 { margin-bottom: 28px; }
.prose h3 { margin: 40px 0 12px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; max-width: 64ch; }
.spec { width: 100%; border-collapse: collapse; font-size: 1rem; }
.spec caption { text-align: left; font-size: var(--step-small); color: var(--muted); padding-bottom: 12px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid rgba(236, 237, 230, .18); }
.on-paper .spec th, .on-paper .spec td { border-bottom-color: rgba(15, 19, 17, .18); }
.spec thead th { font-size: var(--step-small); color: var(--muted); font-weight: 600; }
.spec tbody th { font-weight: 600; width: 28%; }
@media (max-width: 699px) {
  .spec thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .spec tr, .spec th, .spec td { display: block; width: auto; }
  .spec tbody th { padding-bottom: 4px; border-bottom: 0; }
  .spec td { padding-top: 4px; }
}
.ticket { background: var(--surface); padding: clamp(24px, 3vw, 44px); }
.on-paper .ticket { background: var(--paper-2); }
.ticket-head { display: grid; gap: 12px; margin-bottom: 24px; }
.siblings { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.siblings a { --c: 12px; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 20px;
  background: var(--surface-2); text-decoration: none; font-weight: 600; font-size: 1.125rem;
  clip-path: polygon(0 calc(var(--c) * var(--tan60)), var(--c) 0, 100% 0, 100% 100%, 0 100%); transition: background-color .18s var(--ease); }
.siblings a:hover { background: #2f3631; }
.siblings .arrow { color: var(--accent-soft); }
.siblings a:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
@media (min-width: 900px) { .siblings { grid-template-columns: repeat(2, 1fr); } }

/* Service page hero headline: one step down so service + city stays on two lines */
.page-hero h1 { font-size: var(--step-head); max-width: 16ch; }

/* The lift ticket: what to have ready, set like a printed job ticket */
.lift-ticket { background: #fff; color: var(--paper-ink); }
.lift-ticket .stripes { height: 28px; background: #fff; }
.lift-ticket dl { margin: 0; }
.lift-ticket dl > div { display: grid; gap: 4px 20px; padding: 16px 20px; }
.lift-ticket dl > div:nth-child(odd) { background: var(--paper-2); }
.lift-ticket dt { font-weight: 600; }
.lift-ticket dd { margin: 0; color: var(--paper-muted); }
@media (min-width: 600px) { .lift-ticket dl > div { grid-template-columns: 11rem 1fr; padding: 18px 28px; } }

/* Rules: three text columns, no boxes */
.rules { display: grid; gap: 40px var(--gutter); margin-top: 48px; }
.rules h3 { margin-bottom: 14px; }
@media (min-width: 900px) { .rules { grid-template-columns: repeat(3, 1fr); } }

/* Quote page: the form is the page */
.quote-top { padding-top: clamp(32px, 5vw, 80px); }
.quote-head { align-items: end; }
.quote-head .hero-sub { margin: 0; }
.quote-coupon { padding-top: clamp(32px, 4vw, 64px); }

/* Steps on the quote page: order carried by position, never by numbers */
.next-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.next-steps li { --c: 6px; position: relative; padding-left: 34px; }
.next-steps li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; background: var(--accent);
  clip-path: polygon(0 calc(var(--c) * var(--tan60)), var(--c) 0, 100% 0, 100% 100%, 0 100%); }
.next-steps strong { display: block; font-size: 1.125rem; }

/* ---------- Footer: the mark, built large ---------- */
.site-foot { background: var(--bg); }
.foot-inner { padding: 72px var(--m) 32px; }
.mark { display: flex; align-items: flex-end; gap: 4px; margin: 0 0 56px; max-width: none; height: clamp(120px, 26vw, 320px);
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.045em; line-height: .8; font-size: clamp(2.4rem, 8.6vw, 9rem); }
.mark-block { --c: clamp(14px, 3vw, 44px); display: flex; align-items: flex-end; padding: .12em .14em .02em; color: var(--bg);
  clip-path: polygon(0 calc(var(--c) * var(--tan60)), var(--c) 0, 100% 0, 100% 100%, 0 100%); }
.mark-a { flex: 4 1 0; height: 72%; background: var(--paper); }
.mark-b { flex: 5 1 0; height: 100%; background: var(--accent); color: #fff; }
.mark-c { flex: 6 1 0; height: 86%; background: var(--surface-2); color: var(--ink); }
.foot-disclosure { max-width: 70ch; color: var(--ink); margin-bottom: 48px; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; }
.foot-h { font-family: var(--font-text); font-weight: 600; font-size: var(--step-small); letter-spacing: 0; color: var(--muted); margin-bottom: 12px; line-height: 1.3; }
.foot-cols ul { margin: 0; padding: 0; list-style: none; }
.foot-cols li a { display: inline-flex; align-items: center; min-height: 40px; font-size: 0.9375rem; text-decoration: none; }
.foot-cols li a:hover { text-decoration: underline; }
.foot-contact { display: flex; flex-wrap: wrap; gap: 10px; }
.foot-last { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; font-size: var(--step-small); color: var(--muted); }
.foot-last p { margin: 0; }
@media (min-width: 900px) { .foot-cols { grid-template-columns: 2fr 1.2fr 1.4fr 1fr; } }
@media (max-width: 599px) { .mark { flex-wrap: wrap; height: auto; } .mark-block { height: 22vw; min-height: 72px; flex-basis: 40%; } .mark-c { flex-basis: 100%; height: 22vw; } }

/* ---------- Motion ---------- */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .js .rise { opacity: 1; transform: none; }
  .hero-media img.xf:not(:first-child) { display: none; }
}
@media print { .site-head, .site-foot, .coupon-wrap, .lead-wa-float { display: none; } body { background: #fff; color: #000; } }
