/* ============================================================
   NDHM PARK — 315 E High St, Lexington KY
   Light theme only. Sign-panel hero, painted-stall grid.
   Brand (9/21 scope): sign green #64A967, black #1A1A1A, white. Poppins + Overpass Mono.
   ============================================================ */

:root {
  /* token names kept from the blue build; values are the green brand */
  --navy: #1a1a1a;                /* brand black: dark panels, headings */
  --navy-deep: #0f0f0f;
  --blue: #3c7c40;                /* deep green for small text + links (5.1:1 on white) */
  --sky: #64a967;                 /* sign green: buttons, accents (black text on it = 7.5:1) */
  --sky-soft: #e9f3e9;
  --paper: #f6f8f6;
  --white: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #454b45;
  --muted: #5e675e;               /* 5.5:1 on white */
  --line: #d9e2d9;
  --stall: #ffffff;               /* the painted stripe */
  --ph-bg: #fff3b0;               /* placeholder chip */
  --ph-line: #c99a00;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --mono: "Overpass Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --container: 1040px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 18px;
  --space: clamp(48px, 7vw, 88px);   /* one vertical rhythm for every section */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; touch-action: manipulation; }
a:hover { color: var(--navy); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
h1, h2, h3 { text-wrap: balance; }
p, li, summary { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sign :focus-visible, .modal :focus-visible { outline-color: var(--white); }
.modal :focus-visible { outline-color: var(--blue); }
section[id], [id] { scroll-margin-top: 20px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--navy); color: var(--white); font-weight: 700;
  padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- placeholder chip ---------- */
.ph {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #5a4300;
  background: var(--ph-bg);
  border: 2px dashed var(--ph-line);
  border-radius: 6px;
  padding: 0.05em 0.45em;
  vertical-align: baseline;
  white-space: nowrap;
}
.is-ph { position: relative; }
.is-ph .ph { margin-left: 0.5em; }

/* ---------- header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 40px; height: auto; }
.brand b { font-weight: 800; letter-spacing: 0.06em; font-size: 17px; }
.bar nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
.bar nav a { text-decoration: none; color: var(--ink-soft); padding: 8px 0; }
.bar nav a:hover { color: var(--navy); }
.bar nav a[hidden] { display: none; }

/* ---------- the sign (hero) ---------- */
.hero { padding: clamp(18px, 3vw, 32px) 0 0; }
.sign {
  position: relative;
  background: var(--navy);
  color: var(--white);
  border-radius: 26px;
  padding: clamp(28px, 6vw, 72px) clamp(24px, 6vw, 72px);
  outline: 3px solid rgba(255, 255, 255, 0.88);
  outline-offset: -14px;
  overflow: hidden;
  isolation: isolate;
}
.sign::after {
  /* the NP mark, ghosted into the sign */
  content: "";
  position: absolute; right: -4%; bottom: -12%;
  width: min(48%, 420px); aspect-ratio: 475 / 425;
  background: url("../assets/logo-mark.png") no-repeat center / contain;
  opacity: 0.14; z-index: -1;
  filter: saturate(0) brightness(3);
}
.sign-split {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 40px); align-items: center;
  padding: clamp(22px, 3vw, 34px);
}
.sign-split::after { display: none; }
.sign-copy { min-width: 0; }
.sign.sign-split h1 { max-width: 18ch; }
.sign-copy .btn { margin-top: 20px; }
.sign-copy .sub { margin-top: 12px; font-size: 15px; color: rgba(255,255,255,0.82); }
.sign-copy .scarcity { color: var(--sky); font-weight: 700; }
.sign .cta-row { margin-top: 22px; }
.sign-copy .sub a { color: var(--sky); font-weight: 700; text-decoration-color: rgba(100,169,103,0.5); }
.sign-copy .sub a:hover { color: var(--white); }
.sign-photo { margin: 0; border-radius: 14px; overflow: hidden; background: var(--navy-deep); aspect-ratio: 4 / 3; max-height: 360px; }
.sign-photo img { width: 100%; height: 100%; object-fit: cover; }
.sign .eyebrow { color: var(--sky); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue);
}
.sign h1 {
  margin-top: 14px;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 11ch;
}
.sign h1 span { color: var(--sky); }
.sign .lede { margin-top: 14px; font-size: clamp(16px, 1.5vw, 18px); max-width: 40ch; color: rgba(255,255,255,0.88); }
.sign .cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.sign .price-tag { font-size: 15px; color: rgba(255,255,255,0.82); }
.sign .price-tag strong { font-family: var(--mono); font-weight: 600; color: var(--white); font-size: 17px; font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  background: var(--sky); color: var(--navy-deep);
  font-weight: 800; font-size: 18px; letter-spacing: 0.01em;
  border-radius: 12px; text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: #79b97c; color: var(--navy-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn.is-ph { background: var(--ph-bg); border: 2px dashed var(--ph-line); color: #5a4300; flex-wrap: wrap; padding: 10px 28px; }
.btn.is-ph .ph { flex-basis: 100%; margin: 0; border: 0; padding: 0; background: none; font-size: 0.72em; font-weight: 600; text-align: center; }
.btn-secondary { background: var(--white); color: var(--navy); border: 2px solid var(--line); }
.btn-secondary:hover { background: var(--sky-soft); border-color: var(--sky); color: var(--navy); }

/* ---------- sections ---------- */
section { padding: var(--space) 0 0; }
.hero { padding-top: clamp(18px, 3vw, 32px); }
.section-head { margin-bottom: 28px; }
.section-head h2 {
  margin-top: 8px;
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
}
.section-head p { margin-top: 10px; color: var(--ink-soft); max-width: 60ch; }

/* painted stalls: white 3px rules on paper, like stripes on asphalt */
.stalls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3px;
  background: var(--stall);
  border: 3px solid var(--stall);
  border-radius: var(--radius);
  overflow: hidden;
}
.stall { background: var(--paper); padding: 24px 22px 26px; }
.stall .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.stall h3, .stall h2 { margin-top: 10px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.stall p { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; }

/* walk times (inside the address card) */
.walk { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.walk b { font-family: var(--mono); font-weight: 600; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- price block ---------- */
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center;
}
.price-card .amount { font-family: var(--mono); font-weight: 700; font-size: clamp(44px, 7vw, 64px); letter-spacing: -0.03em; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.price-card .amount .per-mo { font-family: var(--sans); font-weight: 600; font-size: 0.42em; letter-spacing: 0; color: var(--ink-soft); }
.price-card p.scarcity { font-family: var(--sans); color: var(--blue); font-weight: 700; font-size: 15px; }
.price-card .amount .ph { font-size: 0.55em; vertical-align: middle; }
.price-card .per { font-size: 16px; color: var(--ink-soft); margin-top: 8px; max-width: 34ch; }
.price-card .breakdown { margin-top: 14px; font-size: 14.5px; color: var(--muted); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.price-card .side { display: grid; gap: 10px; justify-items: start; }
.price-card .side small { color: var(--muted); font-size: 13.5px; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; }
.step { position: relative; padding: 22px 22px 22px 70px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 20px;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--navy); color: var(--white);
  font-family: var(--mono); font-weight: 700; font-size: 17px;
  display: grid; place-items: center;
}
.step h3 { font-size: 18px; font-weight: 800; }
.step p { margin-top: 6px; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- map ---------- */
.where { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: stretch; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--sky-soft); min-height: 320px; }
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.3s ease; }
.map-link { position: absolute; inset: 0; display: block; color: var(--navy); border-radius: var(--radius); }
.map-link::after {
  content: "Open in Google Maps \2197"; position: absolute; left: 12px; bottom: 12px;
  background: var(--navy); color: var(--white); font-weight: 700; font-size: 13px;
  padding: 7px 12px; border-radius: 8px; opacity: 0; transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease; pointer-events: none;
}
.map-link:hover img, .map-link:focus-visible img { transform: scale(1.03); }
.map-link:hover::after, .map-link:focus-visible::after { opacity: 1; transform: none; }
.map-link:focus-visible { outline-offset: -3px; }
.map figcaption {
  position: absolute; right: 8px; bottom: 8px;
  font-size: 11px; color: var(--ink-soft); background: rgba(255,255,255,0.85);
  padding: 2px 7px; border-radius: 6px;
}
.address-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.address-card .big { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.address-card .big small { display: block; font-size: 17px; font-weight: 600; color: var(--ink-soft); }
.address-card > p:not(.big) { margin-top: 12px; color: var(--ink-soft); font-size: 15.5px; }
.address-card .dir { margin-top: auto; padding-top: 0; }
.address-card .walk + .dir { margin-top: 20px; }

/* ---------- CTA band (index, after How it works) ---------- */
.cta-band {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px) clamp(24px, 4vw, 40px);
  display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center;
}
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { margin-top: 6px; color: rgba(255,255,255,0.82); font-size: 15.5px; }
.cta-band p a { color: var(--sky); font-weight: 700; }
.cta-band p a:hover { color: var(--white); }
.cta-band :focus-visible { outline-color: var(--white); }

/* buy page */
.buy-grid { margin-top: 28px; }
.buy-grid .stalls { margin-top: 12px; }
.ladder-head { margin-top: var(--space); }
.ladder-head h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.ladder-head p { margin-top: 8px; color: var(--ink-soft); max-width: 52ch; }
.ladder { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ladder .dur { cursor: pointer; width: 100%; }
.ladder .dur .amt { font-size: 22px; font-variant-numeric: tabular-nums; }
.ladder-foot { margin-top: 14px; font-size: 14.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-weight: 700; font-size: 18px; line-height: 1.3;
  touch-action: manipulation;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sky-soft) center / 12px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23005890' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 1v10M1 6h10'/%3E%3C/svg%3E");
  transition: transform 0.2s ease;
}
.faq summary:hover { color: var(--blue); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 40px 20px 0; color: var(--ink-soft); max-width: 68ch; }
.faq .a p + p { margin-top: 10px; }

/* ---------- contact ---------- */
.contact-card {
  background: var(--sky-soft); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
  display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: center;
}
.contact-card h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.contact-card p { margin-top: 8px; color: var(--ink-soft); max-width: 52ch; }
.contact-card .mail { font-family: var(--mono); font-size: clamp(16px, 2.2vw, 20px); font-weight: 600; overflow-wrap: anywhere; min-width: 0; }

/* ---------- footer with the tow notice ---------- */
footer { margin-top: var(--space); padding: 32px 0 48px; border-top: 1px solid var(--line); background: var(--white); }
.tow-notice {
  border: 3px solid var(--navy); border-radius: 12px; padding: 18px 20px;
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  max-width: 820px;
}
.tow-notice .p {
  width: 44px; height: 44px; border-radius: 8px; background: var(--navy); color: var(--white);
  font-weight: 800; font-size: 28px; display: grid; place-items: center; line-height: 1;
}
.tow-notice .tow-title { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; margin: 0; }
.tow-notice p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; }
.tow-notice .cite { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 8px; }
.foot-row { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); align-items: center; }
.foot-row a { color: var(--ink-soft); }

/* ---------- "coming soon" dialog (demo mode) ---------- */
.modal {
  margin: auto;                 /* the global reset removes the UA's centering; put it back */
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 460px); width: 100%;
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(7, 28, 56, 0.55); }
.modal-body { background: var(--white); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; justify-items: start; }
.modal-body h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.modal-copy { color: var(--ink-soft); font-size: 15.5px; }
.modal-body .btn { margin-top: 6px; min-height: 48px; font-size: 16px; }

/* ---------- plain pages (success / pay / enforcement) ---------- */
.page { padding: clamp(28px, 5vw, 56px) 0 0; }
.page h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin-top: 12px; }
.page .lede { margin-top: 14px; font-size: 18px; color: var(--ink-soft); max-width: 52ch; }
.rules { margin-top: 28px; display: grid; gap: 3px; background: var(--stall); border: 3px solid var(--stall); border-radius: var(--radius); overflow: hidden; list-style: none; }
.rule { background: var(--white); padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.rule .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--sky-soft); color: var(--navy); display: grid; place-items: center; font-weight: 800; }
.rule .ic svg { width: 20px; height: 20px; }
.rule h2 { font-size: 17px; font-weight: 800; }
.rule p { margin-top: 4px; color: var(--ink-soft); font-size: 15.5px; }
.rule p + p { margin-top: 6px; }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin-top: 20px; padding: 14px 18px; background: var(--sky-soft); border-radius: 12px; font-size: 15px; color: var(--ink-soft); }
.note b { color: var(--navy); }

/* pay by plate */
.plate-form { margin-top: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); }
.plate-form label { display: block; font-weight: 700; font-size: 15px; }
.plate-input {
  margin-top: 8px; width: 100%; max-width: 360px;
  font-family: var(--mono); font-size: 32px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 12px 16px; border: 3px solid var(--navy); border-radius: 12px; background: var(--paper); color: var(--navy);
}
.plate-input::placeholder { color: #9aa8b8; letter-spacing: 0.08em; }
.plate-help { margin-top: 8px; font-size: 14px; color: var(--muted); }
.durations { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.dur {
  display: grid; gap: 4px; justify-items: start; text-align: left;
  padding: 16px 18px; border: 2px solid var(--line); border-radius: 12px; background: var(--white);
  text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.dur:hover:not([aria-disabled="true"]) { border-color: var(--sky); background: var(--sky-soft); color: var(--ink); }
.dur[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.dur b { font-size: 18px; font-weight: 800; }
.dur .amt { font-family: var(--mono); font-weight: 600; color: var(--navy); }
.dur small { color: var(--muted); font-size: 13px; }
.coming-soon { margin-top: 28px; padding: clamp(24px, 4vw, 40px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-soft); }
.coming-soon h2 { font-size: 24px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.coming-soon p { margin-top: 10px; max-width: 48ch; }
.coming-soon .actions { margin-top: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .where { grid-template-columns: 1fr; }
  .map { min-height: 260px; }
  .price-card, .contact-card, .cta-band { grid-template-columns: 1fr; }
  .sign-split { grid-template-columns: 1fr; }
  .sign-photo { aspect-ratio: auto; height: 220px; max-height: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bar nav { gap: 16px; font-size: 14px; }
  .bar nav .hide-sm { display: none; }
  .sign { border-radius: 20px; outline-offset: -10px; }
  .sign::after { width: 62%; right: -14%; bottom: -8%; opacity: 0.1; }
  .sign .cta-row { display: grid; gap: 12px; }
  .sign-split { padding: 22px 20px; }
  .btn { width: 100%; }
  .price-card .side { justify-items: stretch; }
  .price-card .side small { text-align: center; }
  .tow-notice { grid-template-columns: 1fr; }
  .rule { padding: 16px; gap: 12px; }
  .rule .ic { width: 36px; height: 36px; }
  .faq summary { font-size: 17px; }
  .faq .a { padding-right: 0; }
  .modal-body .btn { width: auto; }
}

/* SMS disclosure line (footer) */
.sms-line { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: 70ch; }
.sms-line b { color: var(--ink); }
