/* HDS Taxi. Black and gold, from the flyer: diamonds, gold bars, the phone number up front. */

@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #0A0A0A;
  --ink-2: #141311;
  --ink-3: #1F1C17;
  --gold: #D4AF5F;
  --gold-hi: #E9CC88;
  --white: #FFFFFF;
  --muted: #B9B3A7;
  --line: rgba(212, 175, 95, .28);
  /* Loudwren colours, for the credit only */
  --lw-paper: #F3EEE3;
  --lw-signal: #FF6A3D;
  --lw-signal-hi: #FF8A5C;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  --dock-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--dock-h);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.08; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.6vw, 50px); }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* Only shown once a booking link is saved in /admin (the server adds .online to <html>). */
html:not(.online) .only-online { display: none !important; }

.sprite { position: absolute; }
.wrap { width: min(1160px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 20px; height: 20px; flex: none; }
.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; gap: 32px; height: 76px; }
.top__logo img { height: 54px; width: auto; }
.top__nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 600; }
.top__nav a { padding: 8px 0; color: var(--muted); transition: color .2s; }
.top__nav a:hover { color: var(--white); }
.top__tel { display: flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; font-size: 17px; white-space: nowrap; padding: 8px 0; }
.top__tel:hover { color: var(--gold-hi); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 4px;
  border: 1.5px solid var(--gold);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold, .btn--call { background: var(--gold); color: var(--ink); }
.btn--gold:hover, .btn--call:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
/* With online booking on, that becomes the main action and calling steps back. */
.online .btn--call { background: transparent; color: var(--white); }
.online .btn--call:hover { background: transparent; color: var(--gold-hi); border-color: var(--gold-hi); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 56px;
  padding-block: clamp(64px, 10vw, 120px) clamp(80px, 11vw, 132px);
}
h1 { font-size: clamp(44px, 7.2vw, 84px); }
.lede { color: var(--muted); font-size: clamp(18px, 2vw, 21px); margin-top: 22px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.lattice { position: absolute; color: var(--gold); opacity: .55; pointer-events: none; }
.lattice--top { top: 0; left: 0; width: clamp(84px, 11vw, 170px); }

/* A strip of road along the foot of the hero, dashes rolling by. */
.road {
  position: absolute;
  inset: auto 0 0;
  height: 30px;
  background: var(--ink-3);
  border-top: 1px solid var(--line);
}
.road::after {
  content: "";
  position: absolute;
  inset: 13px -120px auto 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 60px, transparent 60px 120px);
  animation: roll 2.4s linear infinite;
}
@keyframes roll { to { transform: translateX(-120px); } }

/* QR */
.qr { display: grid; justify-items: center; gap: 14px; }
.qr figcaption { font-weight: 800; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; }
.qr__tile { background: var(--white); padding: 10px; border-radius: 4px; box-shadow: 0 0 0 1px var(--gold), 0 0 0 8px var(--ink), 0 0 0 9px var(--line); }
.qr__tile img { width: 220px; height: 220px; object-fit: contain; }
.qr__by { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.qr__by img { height: 20px; width: auto; }
/* One QR on screen at a time: the hero on computers, the Book section on phones. */
.qr--book { display: none; }

/* Services */
.services { padding-block: clamp(72px, 9vw, 112px); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 4px; padding: 28px 24px 30px; }
.card__ico { width: 46px; height: 46px; color: var(--gold); margin-bottom: 22px; }
.card p { color: var(--muted); font-size: 16px; margin-top: 8px; }

/* How online booking works */
.how { background: var(--ink-2); border-block: 1px solid var(--line); padding-block: clamp(72px, 9vw, 104px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 44px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--gold); padding-top: 18px; }
.steps li::before { content: "0" counter(step); display: block; font: 700 34px/1 var(--serif); color: var(--gold); margin-bottom: 16px; }
.steps p { color: var(--muted); font-size: 16px; margin-top: 8px; }

/* Book */
.book { position: relative; overflow: hidden; padding-block: clamp(72px, 9vw, 112px) clamp(96px, 11vw, 136px); }
.ways { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; margin-top: 36px; }
.way {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 16px;
  height: 100%;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-2);
  transition: border-color .2s;
}
.way:hover { border-color: var(--gold); }
.way small { grid-column: 1; color: var(--muted); font-size: 13px; font-weight: 600; }
.way strong { grid-column: 1; font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
.way .way__num { font-size: clamp(24px, 2.6vw, 30px); }
.way .way__mail { font-size: 18px; }
.way .ico { grid-column: 2; grid-row: 1 / span 2; width: 24px; height: 24px; color: var(--gold); }
.way--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.way--gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.way--gold small, .way--gold .ico { color: var(--ink); }

.licence { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 22px; color: var(--muted); font-size: 15px; }
.licence li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.licence .ico { width: 24px; height: 24px; color: var(--gold); }
.licence span { overflow-wrap: anywhere; }
.licence b { color: var(--white); font-weight: 700; }
.licence[hidden], .licence li[hidden] { display: none; }

/* The flyer's two gold bars */
.bars { position: absolute; right: 0; bottom: 34px; width: min(44vw, 420px); display: grid; gap: 14px; justify-items: end; }
.bars i { display: block; height: 10px; background: var(--gold); transform: skewX(-38deg); transform-origin: bottom; }
.bars i:first-child { width: 78%; margin-right: -12px; }
.bars i:last-child { width: 100%; height: 16px; margin-right: -12px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px; }
.foot__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.foot__in img { height: 50px; width: auto; }
.foot__legal { display: grid; justify-items: end; gap: 6px; color: var(--muted); font-size: 14px; text-align: right; }
.social { display: flex; gap: 10px; }
.social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  transition: color .2s, border-color .2s;
}
.social a:hover { color: var(--gold-hi); border-color: var(--gold); }
.social .ico { width: 22px; height: 22px; }
.credit { display: inline-flex; align-items: center; gap: 8px; color: var(--lw-paper); }
.credit img { height: 22px; width: auto; }
.credit b { color: var(--lw-signal); font-weight: 700; transition: color .2s; }
.credit:hover b { color: var(--lw-signal-hi); }

/* Thumb-height actions on phones */
.dock { display: none; }

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .ways { grid-auto-flow: row; max-width: 620px; }
}

@media (max-width: 820px) {
  :root { --dock-h: 78px; }
  html { scroll-padding-top: 76px; }
  body { font-size: 16px; }
  .top__in { height: 64px; justify-content: space-between; }
  .top__logo img { height: 44px; }
  .top__nav { display: none; }
  .hero__in { grid-template-columns: 1fr; padding-block: 56px 84px; }
  /* Nobody can scan their own phone, so the QR moves below the fold for showing to a friend. */
  .qr--hero { display: none; }
  .qr--book { display: grid; margin-top: 44px; }
  .way .way__num { font-size: clamp(26px, 7vw, 34px); }
  .way .way__mail { font-size: clamp(17px, 5vw, 22px); }
  .foot__in { flex-direction: column; text-align: center; }
  .foot__legal { justify-items: center; text-align: center; }
  .cta .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .dock {
    display: flex;
    gap: 10px;
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--ink);
    border-top: 1px solid var(--line);
  }
  .dock .btn { flex: 1; min-height: 56px; padding: 0 16px; }
}

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; padding: 22px 20px; }
  .card__ico { grid-row: 1 / span 2; margin: 0; }
  .card p { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .road::after { animation: none; }
  .btn, .btn:hover { transition: none; transform: none; }
}
