/*
  Gilstead Private Hire
  Direction: night runs and paper tickets. Warm paper surfaces, ink type,
  one amber accent borrowed from the sodium light of a 4am pickup.
  Type: Instrument Sans for the interface, IBM Plex Mono for times and fares.
  Fonts load from a <link> in the document head, not an @import here, so the
  request starts with the first paint instead of after this file is parsed.
*/

:root {
  /* warm light ramp */
  --paper: #f7f4ee;
  --card: #fdfbf7;
  --raised: #efe9df;
  --line: rgba(31, 27, 22, 0.08);
  --line-strong: rgba(31, 27, 22, 0.14);
  --ink: #1f1b16;
  --ink-2: #5e554a;
  --ink-3: #6f6659;
  /* accent, dark enough to carry text on paper */
  --accent: #8f560d;
  --accent-bright: #e0a256;
  /* warm dark ramp, used once for the fare ticket */
  --night: #161513;
  --night-card: #1c1a18;
  --night-text: #efe9de;
  --night-2: #aaa398;
  --night-3: #8a847a;
  --night-line: rgba(239, 233, 222, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 40;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  font-size: 14px;
  transform: translateY(-200%);
  transition: transform 160ms var(--ease);
}

.skip:focus {
  transform: none;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top bar ------------------------------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-mark {
  width: 20px;
  height: 20px;
}

.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 15px;
  color: var(--ink-2);
}

.nav a {
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}

.nav-call .i {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
}

.nav-call:hover {
  background: var(--card);
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}

.nav-toggle:hover {
  border-color: var(--ink);
}

/* Hero --------------------------------------------------------------------- */
.hero {
  padding: 96px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  font-size: 12px;
  color: var(--ink-3);
}

h1 {
  margin: 16px 0 20px;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 15ch;
}

.lede {
  text-wrap: pretty;
  max-width: 44ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 160ms var(--ease), border-color 160ms var(--ease),
    color 160ms var(--ease), transform 120ms var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fbf8f2;
}

.btn-primary:hover {
  background: #332d25;
  border-color: #332d25;
}

.btn-secondary {
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--ink);
}

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

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
}

.hero-note a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-strong);
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.hero-note a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
/* Fare ticket, the one dark moment on the page ----------------------------- */
.ticket {
  background: var(--night-card);
  border: 1px solid var(--night-line);
  border-radius: 16px;
  padding: 24px;
  color: var(--night-text);
  box-shadow: 0 1px 2px rgba(31, 27, 22, 0.06), 0 24px 48px -32px rgba(31, 27, 22, 0.45);
}

.ticket-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--night-3);
}

.ticket-route {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--night-2);
}

.ticket-price {
  margin-top: 4px;
  color: var(--accent-bright);
  font-size: 44px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ticket-facts {
  margin-top: 24px;
  border-top: 1px solid var(--night-line);
}

.ticket-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--night-line);
}

.ticket-facts dt {
  font-size: 13px;
  color: var(--night-3);
}

.ticket-facts dd {
  font-size: 13px;
  color: var(--night-text);
}

.route {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.route-stop {
  font-size: 12px;
  color: var(--night-2);
}

.route-line {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.route-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0;
  border-top: 1px dashed rgba(239, 233, 222, 0.3);
}

.route-line .i {
  position: relative;
  width: 22px;
  height: 22px;
  padding: 0 6px;
  box-sizing: content-box;
  background: var(--night-card);
  color: var(--accent-bright);
}

.ticket-foot {
  margin-top: 16px;
  font-size: 12px;
  color: var(--night-3);
}

/* Sections ----------------------------------------------------------------- */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.band {
  background: var(--raised);
}

.section-head {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-head p {
  text-wrap: pretty;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

h3 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

/* Services ----------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.service {
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.service .i {
  margin-bottom: 12px;
  color: var(--ink-3);
}

.service h3 {
  margin-bottom: 6px;
}

.service p {
  text-wrap: pretty;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Fares -------------------------------------------------------------------- */
.fare-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 24px;
  box-shadow: 0 1px 2px rgba(31, 27, 22, 0.04);
}

.fares {
  width: 100%;
  border-collapse: collapse;
}

.fares thead th {
  padding: 16px 0 12px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  text-align: left;
  border-bottom: 1px solid var(--line-strong);
}

.fares tbody tr {
  border-bottom: 1px solid var(--line);
}

.fares tbody tr:last-child {
  border-bottom: 0;
}

.fares tbody th {
  padding: 16px 0;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  color: var(--ink);
}

.fares tbody td {
  padding: 16px 0;
  font-size: 14px;
  color: var(--ink-2);
}

.fares .fare-price {
  font-size: 15px;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

.fares thead th:last-child {
  text-align: right;
}

.fares .fare-quote {
  font-size: 13px;
  color: var(--ink-3);
}

.fare-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
}

/* What to expect ----------------------------------------------------------- */
.expect-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.expect {
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.expect .i {
  margin-bottom: 12px;
  color: var(--ink-3);
}

.expect h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

.expect p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Reviews ------------------------------------------------------------------ */
.reviews-bar {
  display: flex;
  gap: 8px;
}

.reviews-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
  transition: color 160ms var(--ease), border-color 160ms var(--ease),
    background 160ms var(--ease);
}

.icon-btn .i {
  width: 16px;
  height: 16px;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.review-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  scroll-snap-align: start;
}

.review-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.review-top h3 {
  font-size: 15px;
}

.review-top .mono {
  font-size: 12px;
  color: var(--ink-3);
}

.review p {
  text-wrap: pretty;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

.reviews-link {
  font-size: 14px;
}

.reviews-link a {
  color: var(--accent);
  border-bottom: 1px solid rgba(143, 86, 13, 0.3);
  transition: border-color 160ms var(--ease);
}

.reviews-link a:hover {
  border-bottom-color: var(--accent);
}

/* Contact ------------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.contact-copy p {
  margin-top: 16px;
  max-width: 36ch;
  font-size: 16px;
  color: var(--ink-2);
}

.contact-numbers {
  display: grid;
  max-width: 420px;
  margin-left: auto;
}

.number {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line-strong);
}

.number:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.number-label {
  font-size: 13px;
  color: var(--ink-3);
}

.number-value {
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: color 160ms var(--ease);
}

.number:hover .number-value {
  color: var(--accent);
}

/* Footer ------------------------------------------------------------------- */
.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.footer-brand p {
  margin-top: 12px;
  max-width: 32ch;
  font-size: 13px;
  color: var(--ink-3);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--ink-2);
}

.footer-nav a {
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.footer-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

.footer-legal {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}

.footer-legal a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-strong);
}

.footer-legal a:hover {
  color: var(--ink);
}

/* Back to top -------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms var(--ease), color 160ms var(--ease),
    border-color 160ms var(--ease);
}

.to-top .i {
  width: 16px;
  height: 16px;
}

.to-top.is-on {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* Motion ------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .hero-copy > * {
    animation: rise 420ms var(--ease) both;
  }

  .hero-copy > *:nth-child(2) {
    animation-delay: 40ms;
  }

  .hero-copy > *:nth-child(3) {
    animation-delay: 80ms;
  }

  .hero-copy > *:nth-child(4) {
    animation-delay: 120ms;
  }

  .hero-copy > *:nth-child(5) {
    animation-delay: 160ms;
  }

  .ticket {
    animation: rise 480ms var(--ease) 120ms both;
  }
}

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

/* Responsive --------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero {
    padding: 64px 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .ticket {
    max-width: none;
  }

  /* Stacked hero: the fare ticket opens out into one wide strip. */
  .ticket-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 24px;
  }

  .ticket-facts > div {
    display: block;
    padding: 12px 0;
    border-bottom: 0;
  }

  .ticket-facts dt {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 40px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .expect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .contact-numbers {
    max-width: none;
    margin-left: 0;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .review-list {
    grid-auto-columns: calc((100% - 16px) / 2);
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-wrap: nowrap;
    gap: 10px;
    height: 60px;
  }

  .brand {
    font-size: 15px;
    gap: 6px;
  }

  .brand-mark {
    width: 18px;
    height: 18px;
  }

  .nav-call {
    margin-left: auto;
    padding: 0 10px;
    font-size: 12px;
  }

  .nav-call .i {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 4px 24px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  h1 {
    font-size: 34px;
    max-width: 18ch;
  }

  .lede {
    font-size: 16px;
  }

  h2 {
    font-size: 26px;
  }

  .section {
    padding: 56px 0;
  }

  .service-grid,
  .expect-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Back to one fact per line at phone widths. */
  .ticket-facts {
    display: block;
  }

  .ticket-facts > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--night-line);
  }

  .ticket-facts dt {
    margin-bottom: 0;
    font-size: 13px;
  }

  .fare-card {
    padding: 4px 16px;
  }

  .fares thead {
    display: none;
  }

  .fares tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 16px;
    padding: 14px 0;
  }

  .fares tbody th {
    padding: 0;
  }

  .fares tbody td {
    padding: 0;
    font-size: 13px;
  }

  .fares .fare-price {
    grid-column: 2;
    grid-row: 1;
    font-size: 14px;
  }

  .fares .fare-details {
    grid-column: 1;
  }

  .review-list {
    grid-auto-columns: minmax(260px, 84%);
  }
}

/* Anchors clear the sticky top bar. */
.hero,
.section {
  scroll-margin-top: 72px;
}
