/*
  Visual language: the road, in executive colours.
  The booking form is a direction sign you fill in (deep navy board,
  white keyline, lane dashes between "From" and "To"). The main button is a
  gold plate. Everything else stays quiet: white page, dark slate text.
*/

@font-face {
  font-family: "Sign";
  src: url("/assets/fonts/sign-bold.ddc677bb44.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sign";
  src: url("/assets/fonts/sign-medium.3e398039e4.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --sign: #1e3a5f;        /* deep navy board */
  --sign-deep: #152c49;
  --plate: #d9a53a;       /* brushed gold */
  --plate-deep: #c69130;
  --asphalt: #1a222c;     /* dark slate text */
  --grit: #4e5a66;        /* secondary text */
  --kerb: #8292a2;        /* field borders */
  --concrete: #eef1f4;    /* quiet surfaces */
  --paper: #ffffff;
  --stop: #b3261e;        /* errors */

  --font-sign: "Sign", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;

  --page: 70rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-gap: clamp(3.25rem, 9vw, 5.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--asphalt);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-sign);
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 10vw, 4.5rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.8rem, 5.5vw, 2.5rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.16em;
}

[hidden] {
  display: none !important;
}

/* Two-tone focus ring: visible on the white page and on the green sign. */
:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px var(--plate), 0 0 0 6px var(--asphalt);
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--plate);
  color: var(--asphalt);
  font-family: var(--font-sign);
  font-weight: 700;
  border: 2px solid var(--asphalt);
  border-radius: 8px;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- Top bar ------------------------------------------------------------- */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 1rem;
}

.brand {
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
}

.top-contact {
  font-family: var(--font-sign);
  font-weight: 500;
  font-size: 1.05rem;
}

/* --- Hero: headline + the sign you fill in ------------------------------- */

.hero {
  display: grid;
  grid-template-areas:
    "text"
    "form"
    "facts";
  gap: 1.5rem;
  padding-block: 0.5rem 0;
}

.hero-text {
  grid-area: text;
}

.lead {
  max-width: 34ch;
  margin-top: 1rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

.facts {
  grid-area: facts;
  display: grid;
  align-self: start;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-sign);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.3;
}

.facts li {
  position: relative;
  padding-inline-start: 1.6rem;
}

/* Lane dash as the list marker. */
.facts li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 1rem;
  height: 0.28rem;
  background: var(--plate);
  box-shadow: 0 0 0 1.5px var(--asphalt);
}

.trip {
  grid-area: form;
  min-width: 0;
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas:
      "text form"
      "facts form";
    grid-template-rows: auto 1fr;
    column-gap: clamp(2rem, 5vw, 4.5rem);
    row-gap: 2rem;
    padding-block: 2rem 0;
  }

  .hero-text {
    padding-top: 1.5rem;
  }
}

/* --- The sign ------------------------------------------------------------ */

.sign {
  padding: 6px;
  background: var(--sign);
  color: #fff;
  border-radius: 16px;
}

.sign-face {
  padding: 1.1rem 1rem 1.3rem;
  border: 3px solid #fff;
  border-radius: 10px;
}

.sign-title {
  font-size: 1.75rem;
  line-height: 1.1;
}

.sign-note {
  margin-top: 0.2rem;
  font-family: var(--font-sign);
  font-weight: 500;
  font-size: 1.05rem;
}

.route {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-inline-start: 2.4rem;
}

.stop {
  position: relative;
}

/* Lane dashes from the "From" marker down to the "To" marker. Anchored to the
   first stop, so the line still meets the second marker when an error message
   makes the first stop taller. */
.stop-from::after {
  content: "";
  position: absolute;
  inset-inline-start: -1.8rem;
  top: 4.05rem;
  bottom: -3.2rem;
  width: 5px;
  background: repeating-linear-gradient(to bottom, #fff 0 11px, transparent 11px 20px);
}

.stop::before {
  content: "";
  position: absolute;
  inset-inline-start: -2.4rem;
  top: 2.35rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 5px solid #fff;
  background: var(--sign);
}

.stop-to::before {
  background: #fff;
}

/* When both ends are filled in, the dashes run from "From" to "To" a few times. */
@media (prefers-reduced-motion: no-preference) {
  .route.is-set .stop-from::after {
    animation: travel 0.5s linear 5;
  }
}

@keyframes travel {
  to {
    background-position-y: 20px;
  }
}

.trip-body {
  display: grid;
  gap: 1rem;
  padding: 1.2rem 0.4rem 0;
}

@media (min-width: 30rem) {
  .sign-face {
    padding: 1.4rem 1.4rem 1.6rem;
  }

  .trip-body {
    padding-inline: 0.5rem;
  }
}

/* --- Form fields --------------------------------------------------------- */

.row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 21rem) {
  .row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.field,
.stop {
  min-width: 0;
}

label,
.label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-sign);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.3;
}

.sign label {
  font-weight: 700;
  font-size: 1.15rem;
}

.optional {
  color: var(--grit);
  font-weight: 500;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  min-height: 3.1rem;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--kerb);
  border-radius: 6px;
  background: var(--paper);
  color: var(--asphalt);
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
}

textarea {
  min-height: 4.6rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #6b7578;
  opacity: 1;
}

.sign input {
  border-color: #fff;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--stop);
  border-width: 2.5px;
}

.error {
  margin-top: 0.35rem;
  color: var(--stop);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

/* On the green board an error is a small white plate so it stays readable. */
.sign .error {
  padding: 0.3rem 0.55rem;
  background: #fff;
  border-radius: 4px;
}

.hint {
  margin-top: 0.3rem;
  color: var(--grit);
  font-size: 0.9rem;
  line-height: 1.35;
}

/* Honeypot: off-screen for people, present for form-filling bots. */
.hp {
  position: absolute;
  left: -200vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile {
  min-height: 65px;
}

.form-error {
  padding: 0.75rem 0.9rem;
  border: 2.5px solid var(--stop);
  border-radius: 8px;
  font-weight: 600;
}

.form-error a {
  display: inline-block;
  margin-top: 0.3rem;
}

.fine {
  color: var(--grit);
  font-size: 0.95rem;
}

/* --- Buttons ------------------------------------------------------------- */

.plate,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.7rem 1.4rem;
  border: 2.5px solid var(--asphalt);
  border-radius: 8px;
  color: var(--asphalt);
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.plate {
  background: var(--plate);
}

.plate:hover {
  background: var(--plate-deep);
}

.btn {
  background: var(--paper);
}

.btn:hover {
  background: var(--concrete);
}

.btn-go {
  background: var(--sign);
  border-color: var(--sign);
  color: #fff;
}

.btn-go:hover {
  background: var(--sign-deep);
  border-color: var(--sign-deep);
}

.btn-small {
  min-height: 2.75rem;
  padding: 0.45rem 0.9rem;
  border-width: 2px;
  font-size: 1.05rem;
  font-weight: 500;
}

.plate:active,
.btn:active {
  transform: translateY(1px);
}

.plate[disabled],
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.block {
  display: flex;
  width: 100%;
}

/* --- Content sections ---------------------------------------------------- */

.section {
  margin-top: var(--section-gap);
}

.section > h2 {
  margin-bottom: 1.5rem;
}

.measure {
  max-width: 62ch;
}

.measure p + p {
  margin-top: 1em;
}

/* The three steps really are a sequence, so they are numbered: route shields. */
.steps {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-inline-start: 3.6rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  background: var(--sign);
  color: #fff;
  border-radius: 8px;
  box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 5px #fff;
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1.35rem;
}

.steps p {
  margin-top: 0.3rem;
}

@media (min-width: 52rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.services {
  display: grid;
  gap: 1.5rem 3rem;
  margin: 1.5rem 0 0;
}

.services dt {
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
}

.services dd {
  margin: 0.25rem 0 0;
  max-width: 44ch;
}

@media (min-width: 44rem) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pair {
  display: grid;
  gap: var(--section-gap);
}

.pair > section > h2 {
  margin-bottom: 1.5rem;
}

@media (min-width: 56rem) {
  .pair {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(2.5rem, 6vw, 5rem);
  }
}

.signature {
  margin-top: 1.25rem;
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1.3rem;
}

.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.areas li {
  padding: 0.3rem 0.8rem;
  border: 2px solid var(--asphalt);
  border-radius: 6px;
  font-family: var(--font-sign);
  font-weight: 500;
  font-size: 1.1rem;
}

.faq {
  max-width: 46rem;
  border-bottom: 1.5px solid var(--asphalt);
}

.faq details {
  border-top: 1.5px solid var(--asphalt);
}

.faq summary {
  padding: 0.95rem 0;
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  cursor: pointer;
}

.faq details p {
  max-width: 60ch;
  padding-block: 0 1.1rem;
  padding-inline-start: 1.15rem;
}

.closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.closing h2 {
  flex-basis: 100%;
}

/* --- Footer -------------------------------------------------------------- */

.foot {
  margin-top: var(--section-gap);
  padding-block: 2.25rem 2.75rem;
  background: var(--asphalt);
  color: #fff;
}

.foot-inner {
  display: grid;
  gap: 0.6rem;
}

.foot-name {
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1.35rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-small {
  color: #c9d0cd;
  font-size: 0.95rem;
}

/* --- Status page and simple text pages ----------------------------------- */

.narrow {
  max-width: 40rem;
}

.page-head {
  padding-block: 1.5rem 0;
}

.chip {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border: 2px solid var(--asphalt);
  border-radius: 6px;
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
}

.chip-pending {
  background: var(--plate);
}

.chip-accepted {
  background: var(--sign);
  border-color: var(--sign);
  color: #fff;
}

.chip-declined {
  background: var(--paper);
}

.status-title {
  margin-top: 0.9rem;
  font-size: clamp(2.4rem, 9vw, 3.5rem);
}

.status-text {
  margin-top: 0.9rem;
  font-size: 1.2rem;
  line-height: 1.4;
}

.summary {
  margin-top: 1.75rem;
}

.summary-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.summary-list dt {
  font-family: var(--font-sign);
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.9;
}

.summary-list dd {
  margin: 0;
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.summary-pair {
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
  margin-top: 0.9rem;
}

.actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 30rem) {
  .actions {
    grid-template-columns: 1fr 1fr;
  }

  .actions .wide {
    grid-column: 1 / -1;
  }
}

.after-actions {
  margin-top: 1.25rem;
  color: var(--grit);
  font-size: 0.95rem;
}

.prose h1 {
  font-size: clamp(2.2rem, 8vw, 3.25rem);
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.6rem;
}

.prose p,
.prose ul {
  max-width: 62ch;
  margin-top: 0.8rem;
}

.prose ul {
  padding-inline-start: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

/* --- Urdu ----------------------------------------------------------------- */
/* Nastaliq scripts are taller than Latin: give every line more room, and let
   the system's Urdu fonts take over from the condensed sign face. */

html[lang="ur"] {
  --font-sign: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", "Geeza Pro", system-ui, sans-serif;
  --font-body: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", "Geeza Pro", system-ui, sans-serif;
}

html[lang="ur"] body {
  line-height: 2;
}

html[lang="ur"] h1 {
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1.6;
}

html[lang="ur"] h2 {
  line-height: 1.7;
}

html[lang="ur"] h3,
html[lang="ur"] .lead,
html[lang="ur"] .facts,
html[lang="ur"] .status-text,
html[lang="ur"] .faq summary {
  line-height: 1.9;
}

html[lang="ur"] .sign-title {
  line-height: 1.7;
}

html[lang="ur"] label,
html[lang="ur"] .label,
html[lang="ur"] .summary-list dd {
  line-height: 1.8;
}

/* --- Language choice ------------------------------------------------------ */

.lang-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(16, 26, 40, 0.72);
}

.lang-card {
  width: 100%;
  max-width: 23rem;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--paper);
  border-top: 6px solid var(--plate);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.lang-title {
  margin: 0;
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.3;
}

.lang-title .lang-title-ur {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.3rem;
  line-height: 2;
}

.lang-choices {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.6rem 1.2rem;
  border: 2.5px solid var(--sign);
  border-radius: 8px;
  background: var(--paper);
  color: var(--sign);
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.6;
  cursor: pointer;
}

.lang-btn:hover {
  background: var(--sign);
  color: #fff;
}

.lang-toggle {
  padding: 0.25rem 0.8rem;
  border: 2px solid var(--asphalt);
  border-radius: 6px;
  background: var(--paper);
  color: var(--asphalt);
  font-family: var(--font-sign);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  cursor: pointer;
}

.lang-toggle:hover {
  background: var(--concrete);
}
