/* ============================================================================
   TRIANGLE PARKING — speculative homepage concept
   Roebuck Digital Consulting

   Direction: Parka's product-site clarity — soft tinted grounds, white cards,
   numbered steps, a stat row, an FAQ — with the Dribbble smart-parking-finder
   move of putting the booking bar on the hero itself rather than below it.

   Their whole product is "reserve a slot". Their current site puts a thin
   date/terminal bar under a rotating photo carousel that repeats the same
   sentence nine times. So the widget comes first here, and the promise buried
   in that sentence — your car back within twenty minutes of your second call —
   becomes the headline.

   The palette is sampled from their own logo: charcoal #404048 and red
   #F80020. Both were taken to values that actually pass contrast on the
   grounds they sit on; the raw logo red is 4.19:1 on white, which is under the
   line for body text.
   ========================================================================== */

:root {
  --ink:        #2E3138;   /* 13.0:1 on white */
  --ink-2:      #404048;   /* the logo charcoal */
  --muted:      #5A6070;   /* 5.9:1 on paper */
  --line:       #DFE3E8;
  --line-soft:  #ECEFF2;

  --paper:      #F6F7F9;
  --paper-2:    #EDF0F4;
  --white:      #FFFFFF;

  --red:        #EE001F;   /* fill — white on it is 4.5:1 */
  --red-text:   #E4001D;   /* text on light — 4.9:1 on white */
  --red-bright: #F80020;   /* the logo red; large or decorative only */
  --red-wash:   #FFF1F2;

  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  --gut:  clamp(1.25rem, 4vw, 4rem);
  --sect: clamp(3.5rem, 7vw, 6.5rem);
  --r:    16px;
  --r-sm: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow:    0 18px 40px -24px rgba(20, 24, 32, .34);
  --shadow-lg: 0 34px 80px -34px rgba(20, 24, 32, .48);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -.028em; }

::selection { background: var(--red); color: #fff; }
html { caret-color: var(--red); scrollbar-color: var(--ink-2) var(--paper-2); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink-2); border: 3px solid var(--paper-2); border-radius: 99px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* An author display rule must never beat the attribute. */
[hidden] { display: none !important; }

.wrap   { width: min(1240px, 100% - (var(--gut) * 2)); margin-inline: auto; }
.wrap--n{ width: min(940px, 100% - (var(--gut) * 2)); margin-inline: auto; }
.sect   { padding-block: var(--sect); }
.vh { 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; }

.h-xl { font-size: clamp(2.3rem, 5.2vw, 4rem); }
.h-lg { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.h-md { font-size: clamp(1.25rem, 1.9vw, 1.55rem); }
.lede { font-size: clamp(1.02rem, 1.2vw, 1.14rem); color: var(--muted); max-width: 62ch; line-height: 1.7; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .85rem 1.6rem;
  font: inherit; font-size: .92rem; font-weight: 700; letter-spacing: .01em;
  border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer;
  transition: filter .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease);
}
.btn--red   { background: var(--red); color: #fff; }
.btn--red:hover { filter: brightness(1.08); }
.btn--ink   { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lt    { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn--lt:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 95; }
.nav {
  padding-block: .8rem; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.16);
  transition: background .45s var(--ease), color .45s var(--ease),
              border-color .45s var(--ease), padding .45s var(--ease);
}
.nav.is-solid {
  background: var(--white); color: var(--ink);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(20,24,32,.05);
}
.nav__in { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); }
.nav__mark { display: flex; align-items: center; min-height: 48px; }
.nav__logo {
  display: block; width: auto; height: 42px;
  /* The mark is charcoal and red on transparent — over a dark hero the charcoal
     road disappears, so it is reversed to white until the bar goes solid. */
  filter: brightness(0) invert(1);
  transition: filter .45s var(--ease);
}
.nav.is-solid .nav__logo { filter: none; }
.nav__right { display: flex; align-items: center; gap: clamp(.6rem, 1.6vw, 1.25rem); margin-left: auto; }
.nav__tel {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 46px;
  font-size: .92rem; font-weight: 600; white-space: nowrap;
}
.nav__cta { min-height: 46px; padding: .6rem 1.25rem; font-size: .88rem; }
.nav.is-solid .nav__cta { background: var(--red); color: #fff; border-color: var(--red); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg,  rgba(22,25,30,.86) 0%, rgba(22,25,30,.58) 46%, rgba(22,25,30,.22) 100%),
    linear-gradient(180deg, rgba(22,25,30,.72) 0%, rgba(22,25,30,.30) 34%, rgba(22,25,30,.80) 100%);
}
.hero__in { padding: clamp(8rem, 14vw, 11rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero h1 { max-width: 17ch; }
.hero h1 em { font-style: normal; color: #FF6B7D; }
.hero__sub { margin: 1.2rem 0 0; max-width: 52ch; font-size: clamp(1.02rem, 1.3vw, 1.16rem); color: rgba(255,255,255,.88); }

/* The widget is the point of the page, so it sits on the hero rather than
   under it. */
.hero .bk { margin-top: clamp(1.75rem, 3.5vw, 2.75rem); max-width: 1000px; }

/* ── Trust row ───────────────────────────────────────────────────────── */
.trust { background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.trust__in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem clamp(1.25rem, 3vw, 2.5rem); padding-block: 1.4rem;
}
.trust__item { display: flex; align-items: center; gap: .6rem; font-size: .94rem; font-weight: 600; }
.trust__ico { width: 20px; height: 20px; flex: none; color: var(--red-text); }

/* ── Cards ───────────────────────────────────────────────────────────── */
.cards { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: clamp(1.35rem, 2.2vw, 1.85rem);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-soft); }
.card h3 { font-size: 1.16rem; margin-bottom: .5rem; }
.card p  { margin: 0; font-size: .96rem; color: var(--muted); }
.card__ico {
  width: 44px; height: 44px; margin-bottom: 1rem;
  display: grid; place-items: center;
  background: var(--red-wash); color: var(--red-text); border-radius: 12px;
}
.card__ico svg { width: 21px; height: 21px; }

/* ── Steps ───────────────────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: clamp(.75rem, 1.6vw, 1.1rem); }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: clamp(1.1rem, 2vw, 1.5rem);
}
.step__n {
  counter-increment: step;
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; border-radius: 9px;
  font-size: .88rem; font-weight: 700;
}
.step__n::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.step p  { margin: 0; font-size: .96rem; color: var(--muted); }

/* ── Terminals ───────────────────────────────────────────────────────── */
.terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.75rem, 1.6vw, 1.1rem); }
.term {
  position: relative; overflow: hidden;
  border-radius: var(--r); background: var(--ink); color: #fff;
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  min-height: 168px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .35s var(--ease);
}
.term:hover { transform: translateY(-3px); }
.term img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.term__body { position: relative; z-index: 1; }
.term b { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.term span { display: block; margin-top: .2rem; font-size: .88rem; color: rgba(255,255,255,.78); }

/* ── Split ───────────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--paper-2); }
.split__body p { margin-top: 1.1rem; }
.split__body .btn { margin-top: 1.6rem; }
.ticks { margin-top: 1.4rem; }
.ticks li { display: flex; gap: .7rem; padding: .5rem 0; font-size: .98rem; }
.ticks svg { width: 19px; height: 19px; flex: none; color: var(--red-text); margin-top: .18rem; }

/* ── Stats ───────────────────────────────────────────────────────────── */
.stats { background: var(--paper); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.75rem, 1.6vw, 1.1rem); }
.stat {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: clamp(1.15rem, 2vw, 1.6rem);
}
.stat b { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.03em; line-height: 1.05; }
.stat span { display: block; margin-top: .4rem; font-size: .9rem; color: var(--muted); }

/* ── Hours ───────────────────────────────────────────────────────────── */
.hours { background: var(--ink); color: #fff; }
.hours__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.hours__list { border-top: 1px solid rgba(255,255,255,.16); }
.hours__list div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding: .72rem 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: .98rem;
}
.hours__list dt { color: rgba(255,255,255,.68); }
.hours__list dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours__note {
  margin-top: 1.5rem; padding: 1.1rem 1.25rem;
  background: rgba(255,255,255,.07); border-left: 3px solid var(--red-bright);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .95rem; color: rgba(255,255,255,.86);
}
.hours .btn { margin-top: 1.7rem; }

/* ── Reveals ─────────────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv:nth-child(2) { transition-delay: .06s; }
.rv:nth-child(3) { transition-delay: .12s; }
.rv:nth-child(4) { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .cards--4, .terms, .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav__tel { display: none; }
  .nav__logo { height: 38px; }
  .cards--3 { grid-template-columns: 1fr; }
  .split, .hours__in { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .hero__in { padding-top: 7.5rem; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(22,25,30,.78) 0%, rgba(22,25,30,.62) 40%, rgba(22,25,30,.86) 100%);
  }
  /* nothing on a phone below a comfortable reading size */
  .trust__item, .card p, .step p, .stat span { font-size: .96rem; }
  .foot { padding-bottom: 5.5rem; }
}
@media (max-width: 560px) {
  .cards--4, .terms, .stats__grid { grid-template-columns: 1fr; }
  .trust__in { justify-content: flex-start; }
}

/* ============================================================================
   Component theming — everything from the logo's own charcoal and red
   ========================================================================== */
.kn {
  --kn-bg: var(--ink); --kn-fg: #fff;
  --kn-rule: rgba(255,255,255,.14);
  --kn-accent: var(--red-bright); --kn-accent-2: #6E7686;
  --kn-serif: var(--sans); --kn-sans: var(--sans);
  --kn-page-bg: var(--white);
}
.kn__link { font-weight: 700; letter-spacing: -.02em; }
.kn__logo { width: 116px; height: auto; margin-bottom: 1.8rem; filter: brightness(0) invert(1); opacity: .92; }

.usp {
  --usp-bg: var(--ink); --usp-fg: #fff;
  --usp-rule: rgba(255,255,255,.14);
  --usp-accent: #FF6B7D; --usp-sans: var(--sans);
}
.se {
  --se-bg: var(--ink); --se-fg: #fff;
  --se-accent: var(--red); --se-accent-fg: #fff; --se-sans: var(--sans);
}
.mapband {
  --map-card: var(--ink); --map-fg: #fff;
  --map-rule: rgba(255,255,255,.16);
  --map-accent: var(--red); --map-accent-fg: #fff;
  --map-serif: var(--sans); --map-sans: var(--sans);
}
.mapband__card h3 { font-weight: 700; }
.bk  { --bk-accent: var(--red); --bk-sans: var(--sans); --bk-fg: var(--ink);
       --bk-muted: var(--muted); --bk-rule: var(--line); --bk-field: var(--paper); }
.faq { --faq-accent: var(--red-text); --faq-sans: var(--sans);
       --faq-fg: var(--ink); --faq-muted: var(--muted); --faq-rule: var(--line); }

/* ── Header stack ────────────────────────────────────────────────────── */
.nav { position: static; }
.usp { max-height: 4rem; overflow: hidden;
       transition: max-height .45s var(--ease), opacity .35s var(--ease); }
.topbar.is-past .usp { max-height: 0; opacity: 0; }
.usp__in--m { display: none; }
@media (max-width: 1180px) {
  .usp__in { display: none; }
  .usp__in--m { display: flex; overflow: hidden; padding-inline: 0; }
  .usp__track { display: flex; align-items: center; gap: clamp(1.25rem,3.5vw,3rem);
                flex: none; padding-right: clamp(1.25rem,3.5vw,3rem);
                animation: usp-run 30s linear infinite; }
  .usp:hover .usp__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .usp__track { animation: none; } }

/* ── Footer ──────────────────────────────────────────────────────────── */
.foot-usp {
  background: var(--ink); color: #fff;
  --usp-accent: #FF6B7D; --usp-sans: var(--sans); --usp-rule: rgba(255,255,255,.16);
  padding-top: clamp(2rem,4vw,3rem);
}
.foot-usp .usp-block { border-top: 0; border-bottom: 0; }
.foot-usp .usp-block p { color: rgba(255,255,255,.76); }

.foot { background: var(--ink); color: rgba(255,255,255,.6);
        border-top: 1px solid rgba(255,255,255,.14);
        padding-block: 2rem clamp(2rem,4vw,2.5rem); font-size: .88rem; }
.foot__legal { margin: 0; max-width: 78ch; }
.foot__legal strong { color: rgba(255,255,255,.86); font-weight: 700; }
.foot__note { margin: .6rem 0 0; font-size: .84rem; color: rgba(255,255,255,.44); }
.foot a { color: rgba(255,255,255,.86); text-decoration: underline; text-underline-offset: 3px; }

/* ── Audit fixes ─────────────────────────────────────────────────────── */
/* 12.48px on a form label is under the floor, and the labels are what make a
   booking widget legible at a glance. */
.bk__field label { font-size: .84rem; }

@media (max-width: 900px) {
  /* Inline links inside prose and in the menu foot were 18-22px targets. */
  .faq__a a, .foot a, .kn__foot a, .hours__list a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
}

/* ── Wordmark lockup ─────────────────────────────────────────────────── */
/* Their logo stacks the mark over the words. At 42px tall the words were about
   4px high. The mark carries at that size; the name is set beside it. */
.nav__mark { gap: .65rem; }
.nav__mark-ico {
  display: block; width: auto; height: 40px; flex: none;
  filter: brightness(0) invert(1);
  transition: filter .45s var(--ease);
}
.nav.is-solid .nav__mark-ico { filter: none; }
.nav__name {
  display: block; font-weight: 800; font-size: 1.06rem; line-height: 1.06;
  letter-spacing: -.028em; white-space: nowrap;
}
.nav__name span { display: block; font-weight: 500; opacity: .74; }
@media (max-width: 900px) {
  .nav__mark-ico { height: 34px; }
  .nav__name { font-size: .98rem; }
}
@media (max-width: 380px) { .nav__name { display: none; } }

.kn__logo { width: 74px; }
