/* Taxi Xalo Mini Car. Tokens and rules: ../DESIGN.md. Plain CSS, no build step. Mobile first. */

/*
  Satoshi: activate only when the project's own copy from Fontshare is in site/fonts/.
  Then remove this comment wrapper. Until then the fallback fonts below are used.
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
*/

:root {
  color-scheme: dark;

  --canvas: #121212;
  --surface: #1a1a1a;
  --line: #2a2a2a;
  --line-strong: #737371;
  --ink: #f2f1ec;
  --ink-soft: #a6a6a3;
  --ink-faint: #8c8c89;
  --primary: #d4af37;
  --on-primary: #121212;
  --error: #ff5a52;
  --warning: #ff9838;
  --success: #2fd27a;
  --glass: rgba(18, 18, 18, 0.85);
  --glass-solid: #1e1e1e;

  --font: "Satoshi", "Helvetica Neue", Arial, sans-serif;

  --radius-control: 8px;
  --radius-card: 16px;

  --fast: 150ms;
  --base: 200ms;
  --slow: 300ms;
  --calm: cubic-bezier(0.25, 0.1, 0.25, 1);

  --glow: 0 0 32px rgba(212, 175, 55, 0.55);
  --gutter: 16px;
  --section: 64px;
  --card-pad: 24px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --section: 96px;
    --card-pad: 32px;
  }
}

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

html {
  background-color: var(--canvas);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 96px;
  background-color: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

h1,
h2,
h3,
p,
ul,
address,
fieldset {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

fieldset {
  border: 0;
  min-width: 0;
}

svg {
  display: block;
  flex: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

::selection {
  background-color: var(--primary);
  color: var(--on-primary);
}

a {
  color: var(--primary);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  transition: color var(--fast) var(--calm);
}

@media (hover: hover) {
  a:hover {
    color: var(--ink);
  }
}

/* Type */
.heading {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.title {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.6;
}

.caption {
  font-size: 0.875rem;
  line-height: 1.5;
}

.soft {
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .heading {
    font-size: 2.5rem;
    line-height: 1.15;
  }
}

/* Layout */
.page {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head p {
  margin-top: 16px;
}

.demo-banner {
  margin: 0;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.5);
  background-color: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.skip {
  position: absolute;
  top: -96px;
  left: 16px;
  z-index: 30;
  padding: 12px 16px;
  border-radius: var(--radius-control);
  background-color: var(--primary);
  color: var(--on-primary);
}

.skip:focus {
  top: 16px;
}

/* Glass nav: nav and pop-ups only. Solid is the base, so older browsers stay readable. */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  margin-top: 16px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
  border: 1px solid rgba(242, 241, 236, 0.16);
  border-radius: var(--radius-card);
  background-color: var(--glass-solid);
  box-shadow: inset 0 1px 0 rgba(242, 241, 236, 0.14), 0 16px 48px rgba(0, 0, 0, 0.45);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav {
    background-color: var(--glass);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav {
    background-color: var(--glass-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.nav-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  color: var(--ink);
  line-height: 1.25;
  text-decoration: none;
}

.nav-brand strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-brand span {
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.875rem;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-links .optional {
  display: none;
}

.nav-links a[aria-current="true"] {
  color: var(--ink);
}

.nav-links a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  border-radius: var(--radius-control);
  background-color: var(--primary);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
}

@media (hover: hover) {
  .nav-links a:hover {
    color: var(--ink);
  }
}

@media (min-width: 768px) {
  .nav {
    padding-inline: 24px;
  }

  .nav-links .optional {
    display: inline-flex;
  }
}

/* Hero */
.hero-wrap {
  position: relative;
  margin-top: -96px;
  overflow: hidden;
}

/* Photo with a dark gradient, so the page below and the text stay calm and readable */
.hero-media {
  position: absolute;
  inset: 0 0 auto;
  height: 360px;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.5) 0%, rgba(18, 18, 18, 0.2) 45%, #121212 100%);
}

.hero {
  position: relative;
  padding-block: 128px 48px;
}

@media (min-width: 1024px) {
  .hero-media {
    inset: 0;
    height: auto;
  }

  .hero-media img {
    object-position: 50% 50%;
  }

  .hero-media::after {
    background: linear-gradient(90deg, #121212 0%, rgba(18, 18, 18, 0.9) 42%, rgba(18, 18, 18, 0.1) 76%);
  }

  .hero {
    padding-block: 128px 64px;
  }

  .hero-brand {
    max-width: 560px;
  }
}

.hero-brand {
  animation: fade-in var(--slow) var(--calm) both;
}

/* Thin, quiet checkered frame with a soft glow, after the black-and-gold business card */
.brand-frame {
  padding: 8px;
  border-radius: var(--radius-card);
  background: repeating-conic-gradient(rgba(212, 175, 55, 0.5) 0 25%, var(--canvas) 0 50%) 0 0 / 8px 8px;
  box-shadow: 0 0 32px rgba(212, 175, 55, 0.14);
}

.brand-panel {
  padding: 24px;
  border-radius: var(--radius-control);
  background-color: var(--canvas);
}

@media (min-width: 768px) {
  .brand-panel {
    padding: 32px;
  }
}

.brand-name {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.brand-name span {
  display: block;
}

.brand-sub {
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.brand-place {
  margin-top: 4px;
  color: var(--ink-soft);
}

.slogan {
  margin-top: 32px;
  font-size: 1.25rem;
  line-height: 1.6;
}

.slogan i {
  padding-inline: 4px;
  color: var(--primary);
  font-style: normal;
}

@media (min-width: 1024px) {
  .brand-name {
    font-size: 5.5rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
  }
}

.call-tiles {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 480px) {
  .call-tiles {
    grid-template-columns: 1fr 1fr;
  }
}

.call-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: var(--radius-card);
  background-color: var(--canvas);
  color: var(--primary);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.12);
  text-decoration: none;
  transition: box-shadow var(--base) var(--calm), border-color var(--fast) var(--calm);
}

.call-tile small {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

.call-tile strong {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media (hover: hover) {
  .call-tile:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
    color: var(--primary);
  }
}

/* Signature: thin glowing gold line over a quiet checkered taxi band */
.signature {
  position: relative;
  height: 10px;
}

.signature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 24%, var(--primary) 76%, transparent 100%);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.signature::after {
  content: "";
  position: absolute;
  inset: 2px 0 0;
  background: repeating-conic-gradient(var(--primary) 0 25%, transparent 0 50%) 0 0 / 8px 8px;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #121212 24%, #121212 76%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #121212 24%, #121212 76%, transparent 100%);
}

/* Call band in the soft style: dark surface between two faded gold lines */
.cta-band {
  border-block: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.7) 24%, rgba(212, 175, 55, 0.7) 76%, transparent 100%) 1;
  background-color: var(--surface);
}

.cta-row {
  display: grid;
  gap: 24px;
  padding-block: 48px;
}

.cta-band p {
  margin-top: 8px;
}

.cta-band p {
  color: var(--ink-soft);
}

.cta-calls {
  display: grid;
  gap: 12px;
}

.cta-calls .button-dark {
  border: 1px solid rgba(212, 175, 55, 0.6);
  background-color: var(--canvas);
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .cta-calls {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .cta-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
  }
}

@media (hover: hover) {
  .cta-calls .button-dark:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
    color: var(--primary);
  }
}

/* Booking section */
.booking-layout {
  display: grid;
  gap: 32px;
}

@media (min-width: 1024px) {
  .booking-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
    gap: 64px;
  }
}

/* Cards */
.card {
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background-color: var(--surface);
}

.card h3 {
  margin-top: 16px;
}

.card p {
  margin-top: 8px;
}

.card svg {
  color: var(--primary);
}

.card-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Featured card: only the booking form */
.metal {
  position: relative;
  padding: var(--card-pad);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(242, 241, 236, 0.06) 0%, rgba(242, 241, 236, 0) 42%, rgba(242, 241, 236, 0.03) 100%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(115deg, #5c5c5a 0%, #d6d5d0 22%, #6a6a68 44%, #b9b8b3 68%, #555553 100%) border-box;
}

.metal::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 2px;
  border-radius: var(--radius-control);
  background-color: var(--primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.7);
}

/* Form */
.booking {
  animation: fade-in var(--slow) var(--calm) both;
}

.booking > h2 {
  margin-bottom: 8px;
}

.form {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.form-row {
  display: grid;
  gap: 24px;
}

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
  }
}

.field label,
.field legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
}

.field .optional-word {
  color: var(--ink-soft);
  font-weight: 400;
}

.input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background-color: var(--surface);
  color: var(--ink);
  font: inherit;
  transition: border-color var(--fast) var(--calm);
  -webkit-appearance: none;
  appearance: none;
}

textarea.input {
  min-height: 96px;
  resize: vertical;
}

.input::placeholder {
  color: var(--ink-faint);
}

.input:focus-visible {
  border-color: var(--primary);
}

.input[aria-invalid="true"] {
  border: 2px solid var(--error);
}

.hint {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

.field-error {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.5;
}

.field-error svg {
  margin-top: 4px;
  color: var(--error);
}

.when-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.when-option {
  position: relative;
}

.when-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.when-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  color: var(--ink-soft);
  font-weight: 500;
  transition: border-color var(--fast) var(--calm), color var(--fast) var(--calm);
}

.when-option input:checked + span {
  border-color: var(--primary);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.when-option input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.when-time {
  margin-top: 16px;
  animation: fade-in var(--base) var(--calm) both;
}

/* Fare estimate */
.estimate {
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background-color: var(--canvas);
  animation: fade-in var(--base) var(--calm) both;
}

.estimate-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.estimate-price strong {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.estimate-price span {
  color: var(--ink-soft);
}

.estimate-time {
  margin-top: 4px;
  color: var(--ink-soft);
}

.estimate-route,
.estimate-note,
.estimate-source,
.estimate-phones {
  margin-top: 8px;
}

.estimate-book {
  margin-top: 16px;
}

.estimate-book + .estimate-phones {
  margin-top: 12px;
  text-align: center;
}

.calc {
  max-width: 640px;
  padding-block: 48px var(--section);
}

.calc-intro {
  margin-top: 16px;
}

.calc .form {
  margin-top: 32px;
}

/* Spam trap: off-screen for people, tempting for bots */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 24px;
  border: 0;
  border-radius: var(--radius-control);
  background-color: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow var(--base) var(--calm);
}

.button:disabled {
  background-color: var(--surface);
  color: var(--ink-faint);
  cursor: default;
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background-color: transparent;
  color: var(--ink);
  transition: border-color var(--fast) var(--calm);
}

@media (hover: hover) {
  .button:hover:not(:disabled) {
    box-shadow: var(--glow);
  }

  .button-secondary:hover:not(:disabled) {
    border-color: var(--ink);
    box-shadow: none;
  }
}

/* Active state while the form is really sending */
.sending-line {
  height: 2px;
  border-radius: var(--radius-control);
  background-color: var(--primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
  animation: listen 2400ms var(--calm) infinite alternate;
}

/* Status messages: always a word and an icon with the colour */
.message {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background-color: var(--canvas);
  animation: fade-in var(--slow) var(--calm) both;
}

.message:focus {
  outline: none;
}

.message strong {
  display: block;
  font-weight: 500;
}

.message p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

.message p + p {
  margin-top: 8px;
}

.message-success {
  border-color: var(--success);
}

.message-success svg {
  color: var(--success);
}

.message-error {
  border-color: var(--error);
}

.message-error svg {
  color: var(--error);
}

.message-draft {
  border-color: var(--warning);
}

.message-draft svg {
  color: var(--warning);
}

.message-gap {
  margin-bottom: 32px;
}

.again {
  margin-top: 16px;
}

/* Area and contact */
.area-layout {
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .area-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}

.contact-list {
  display: grid;
  gap: 24px;
}

.contact-list dt {
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

.contact-list dd {
  margin: 4px 0 0;
}

dl {
  margin: 0;
}

/* Footer */
.site-footer {
  padding-block: 48px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

/* Fixed call bar on phones. Solid, because glass is for the top nav and pop-ups only. */
.callbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 16px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-strong);
  background-color: var(--glass-solid);
}

.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: var(--radius-control);
  background-color: var(--canvas);
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .callbar {
    display: none;
  }
}

/* Legal pages */
.legal {
  max-width: 640px;
  padding-block: 48px var(--section);
}

.legal h1 {
  margin-bottom: 32px;
}

.legal h2 {
  margin-top: 48px;
  margin-bottom: 12px;
}

.legal h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
}

.legal p + p,
.legal ul + p,
.legal p + ul {
  margin-top: 12px;
}

.legal ul {
  list-style: disc;
  padding-left: 24px;
}

.legal li + li {
  margin-top: 4px;
}

/* Placeholder that must be replaced before publishing */
mark {
  padding-inline: 4px;
  border: 1px dashed var(--warning);
  border-radius: var(--radius-control);
  background-color: transparent;
  color: var(--ink);
}

/* Motion: fades only */
@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes listen {
  from {
    opacity: 0.3;
  }

  to {
    opacity: 1;
  }
}

/* Sections fade in softly while scrolling, where the browser supports it. Others just show them. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: fade-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 32%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  ::before,
  ::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .sending-line {
    animation: none;
    opacity: 1;
  }
}
