/* Grumpys Car Hire — colours and type taken from the logo */
:root {
  --teal: #0291ad;        /* logo teal: large type, icons, accents */
  --teal-deep: #017c95;   /* panels with white text (AA) */
  --teal-ink: #016f86;    /* teal text on white (AA) */
  --teal-wash: #e7f4f7;
  --char: #373738;        /* logo charcoal */
  --tar: #262627;
  --muted: #5d6164;
  --line: #d8e2e5;
  --paper: #ffffff;
  --radius: 14px;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--char);
  font: 400 1.0625rem/1.55 var(--body);
  font-stretch: 100%;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-ink); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--char); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- buttons and fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 2px solid transparent; border-radius: 999px;
  font: 800 1rem/1 var(--display); font-stretch: 85%; letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--teal { background: var(--teal-deep); color: #fff; }
.btn--teal:hover { background: var(--char); }
.btn--dark { background: var(--char); color: #fff; }
.btn--dark:hover { background: var(--tar); }
.btn--line { background: transparent; color: var(--char); border-color: var(--char); }
.btn--line:hover { background: var(--char); color: #fff; }
.btn--block { width: 100%; }
.btn--big { min-height: 58px; font-size: 1.15rem; }
.btn:disabled { opacity: .6; cursor: progress; }
.link { background: none; border: 0; padding: 0; color: var(--teal-ink); font: inherit; text-decoration: underline; cursor: pointer; }

.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: .9rem; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--char);
  font: 400 1rem/1.4 var(--body);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(2, 145, 173, .25); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.top__logo img { width: 150px; height: auto; }
.top__nav { display: flex; gap: 24px; margin-left: auto; }
.top__nav a { color: var(--char); text-decoration: none; font-weight: 600; }
.top__nav a:hover { color: var(--teal-ink); }
.top__call { font: 800 1.15rem/1 var(--display); font-stretch: 75%; color: var(--char); text-decoration: none; letter-spacing: .02em; }
.top__call::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--teal); vertical-align: middle; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 0; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; padding-bottom: 64px; }
.hero__title {
  font: 900 clamp(4rem, 11.5vw, 9.6rem)/.86 var(--display); font-stretch: 62%;
  text-transform: uppercase; letter-spacing: -.005em; color: var(--char);
}
.hero__title span { display: block; }
.hero__less { color: var(--teal); }
.hero__lead { max-width: 30em; margin-top: 26px; font-size: 1.2rem; color: var(--muted); }
.hero__models { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.hero__models li { padding: 6px 14px; border: 1.5px solid var(--char); border-radius: 999px; font-weight: 600; font-size: .92rem; }

.quick {
  display: grid; gap: 16px; padding: 28px;
  background: var(--teal-deep); color: #fff; border-radius: 22px;
  box-shadow: 0 24px 48px -24px rgba(1, 79, 95, .55);
}
.quick__title { font: 900 2rem/1 var(--display); font-stretch: 70%; text-transform: uppercase; }
.quick input, .quick select { border-color: transparent; }
.quick__estimate { min-height: 1.5em; font-size: 1.05rem; }
.quick__estimate b { font-size: 1.25rem; }

/* the road under the hero */
.lane {
  height: 18px; background: var(--char);
  background-image: linear-gradient(90deg, #fff 0 46px, transparent 46px 82px);
  background-size: 82px 3px; background-repeat: repeat-x; background-position: 0 50%;
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-title { font: 900 clamp(2.5rem, 6vw, 4.25rem)/.9 var(--display); font-stretch: 62%; text-transform: uppercase; }
.section-lead { max-width: 34em; margin-top: 14px; color: var(--muted); font-size: 1.1rem; }

/* fleet */
.fleet__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; margin: 40px 0 0; padding: 0; list-style: none; }
.car { display: flex; flex-direction: column; gap: 8px; padding: 0 0 24px; border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; }
.car > :not(.car__pic) { margin-inline: 24px; }
.car__pic { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--teal-wash); margin-bottom: 10px; }
.car__pic img { width: 100%; height: 100%; object-fit: cover; }
.car__pic .car-art { width: 82%; }
.car__name { font: 900 2rem/1 var(--display); font-stretch: 68%; text-transform: uppercase; }
.car__facts { color: var(--muted); font-size: .95rem; }
.car__desc { flex: 1; }
.car__rate { margin-top: 6px; }
.car__rate b { font: 900 1.6rem/1 var(--display); font-stretch: 75%; color: var(--teal-ink); }
.car .btn { margin-top: 10px; }

/* line-art cars: drawn in as they come into view */
.car-art { fill: none; stroke: var(--char); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.car-art .d { stroke-dasharray: var(--len, 0) var(--len, 0); stroke-dashoffset: var(--len, 0); }
.car-art.is-drawn .d { animation: draw 1.4s cubic-bezier(.5, 0, .2, 1) both; }
.car-art.is-drawn circle { animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.car-art__road { stroke: var(--teal); stroke-width: 3; stroke-dasharray: 16 12; }

/* why */
.why { background: var(--teal-wash); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 44px 0 0; padding: 0; list-style: none; }
.why svg { width: 52px; height: 52px; fill: none; stroke: var(--teal-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.why h3 { margin: 18px 0 8px; font: 900 1.6rem/1 var(--display); font-stretch: 70%; text-transform: uppercase; }

/* how */
.how__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 44px 0 0; padding: 0; list-style: none; counter-reset: step; }
.how__steps li { counter-increment: step; padding-top: 18px; border-top: 4px solid var(--char); }
.how__steps li::before { content: counter(step); display: block; font: 900 4.5rem/.9 var(--display); font-stretch: 62%; color: var(--teal); }
.how__steps h3 { margin: 10px 0 8px; font: 800 1.35rem/1.1 var(--display); font-stretch: 80%; text-transform: uppercase; }

/* booking */
.book { background: linear-gradient(180deg, var(--paper) 0, var(--paper) 120px, var(--teal-wash) 120px); }
.book__in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.book__head { position: sticky; top: 104px; }
.summary:empty { display: none; }
.summary { margin-top: 32px; padding: 24px; background: #fff; border-radius: 20px; border: 1.5px solid var(--line); }
.summary__art .car-art { width: 70%; margin-bottom: 8px; }
.summary__car { font: 900 1.8rem/1 var(--display); font-stretch: 68%; text-transform: uppercase; margin-bottom: 6px; }
.summary__total { margin-top: 12px; font-size: 1.1rem; }
.summary__total b { font: 900 2rem/1 var(--display); font-stretch: 75%; color: var(--teal-ink); }
.summary__note { margin-top: 6px; font-size: .88rem; color: var(--muted); }

.booking, .done { padding: 32px; background: #fff; border-radius: 22px; box-shadow: 0 20px 50px -30px rgba(38, 38, 39, .35); }
.booking { display: grid; gap: 26px; }
fieldset { display: grid; gap: 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 4px; font: 900 1.5rem/1 var(--display); font-stretch: 70%; text-transform: uppercase; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.check input { width: 22px; min-height: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal-deep); flex: none; }
.form-error { padding: 12px 16px; border-radius: 10px; background: #fdecea; color: #8a1c12; font-weight: 600; }

.done { display: grid; gap: 14px; }
.done:focus { outline: none; }
.done h3 { font: 900 2.4rem/1 var(--display); font-stretch: 65%; text-transform: uppercase; color: var(--teal-ink); }
.done__ref b { font: 800 1.4rem/1 var(--display); font-stretch: 80%; letter-spacing: .04em; }
.done__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.done .link { justify-self: start; }

/* footer */
.foot { background: var(--tar); color: #e9ecee; padding: 64px 0 28px; }
.foot__in { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; }
.foot__logo { width: 210px; height: auto; }
.foot h2 { font: 700 .85rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #9fb4ba; margin-bottom: 14px; }
.foot__col { display: grid; gap: 6px; justify-items: start; }
.foot__big { font: 900 1.9rem/1.1 var(--display); font-stretch: 72%; color: #fff; text-decoration: none; }
.foot__big:hover, .foot__wa:hover { color: #7fd3e3; }
.foot__wa { margin-top: 6px; color: #7fd3e3; font-weight: 600; }
.foot__where { margin-top: 10px; color: #c5ccd0; }
.foot__small { display: grid; gap: 8px; margin-top: 48px; padding-top: 20px; border-top: 1px solid #3c3c3e; font-size: .88rem; color: #9aa1a5; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .hero__in, .book__in { grid-template-columns: 1fr; gap: 36px; }
  .book__head { position: static; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__logo { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .top__nav { display: none; }
  .top__call { margin-left: auto; }
  .top__in { gap: 14px; min-height: 64px; }
  .top__logo img { width: 112px; }
  .top__book { display: none; }
  .hero { padding-top: 36px; }
  .hero__in { padding-bottom: 44px; }
  section { padding: 64px 0; }
  .how__steps { grid-template-columns: 1fr; }
  .quick, .booking, .done { padding: 22px; }
}
@media (max-width: 520px) {
  .field-row, .why__grid, .foot__in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .car-art .d { stroke-dashoffset: 0; }
}

/* condensed Archivo sets its space very tight; open it up for readability */
.section-title, .quick__title, .car__name, .car__rate b, .why h3, .how__steps h3, legend, .summary__car, .done h3, .btn { word-spacing: .14em; }
.foot__credits { font-size: .78rem; color: #80878b; }
.foot__credits a { color: inherit; }
.summary__art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
