:root {
  --navy: #1b365d;
  --navy-deep: #12243f;
  --cream: #f7f4ef;
  --cream-dark: #ede6db;
  --clay: #c45c26;
  --clay-hover: #a64b1c;
  --charcoal: #2c2c2c;
  --muted: #5c584f;
  --stone: #e4ddd4;
  --white: #fffdf9;
  --focus: #1b365d;
  --radius: 10px;
  --wrap: 1120px;
  --header: 4.5rem;
  --shadow: none;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
}

a:hover {
  color: var(--clay);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.section {
  padding: 4.25rem 0;
}

.section--tight {
  padding: 3rem 0;
}

.band {
  background: var(--white);
  border-block: 1px solid var(--stone);
}

.band--top {
  border-bottom: 0;
}

.contact-photo {
  border-radius: var(--radius);
  margin-top: 0.5rem;
}

.actions--center {
  justify-content: center;
}

main.wrap {
  padding-bottom: 3rem;
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.6rem;
}

.lede {
  font-size: 1.125rem;
  max-width: 38rem;
}

/* Utility bar */
.utility-bar {
  background: var(--navy-deep);
  color: #d9e2ee;
  font-size: 0.875rem;
}

.utility-bar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}

.utility-bar a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.utility-bar a:hover {
  color: #f0d2c0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--stone);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy-deep);
}

.logo:hover {
  color: var(--navy);
}

.logo svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--stone);
  border-radius: 8px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a[aria-current="page"] {
  color: var(--navy);
  box-shadow: inset 0 -2px 0 var(--clay);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}

.btn--primary {
  background: var(--clay);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--clay-hover);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 253, 249, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 253, 249, 0.1);
  color: var(--white);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--navy-deep);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

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

.call-btn {
  background: var(--navy);
  color: var(--white);
}

.call-btn:hover {
  background: var(--navy-deep);
  color: var(--white);
}

/* Hero */
.hero {
  display: grid;
  background: var(--navy);
}

.hero-copy {
  padding: 3.2rem 1.25rem 3.4rem;
  color: #e8eef6;
}

.hero-copy h1 {
  color: var(--white);
}

.hero-copy p {
  color: #c5d0de;
  font-size: 1.12rem;
  max-width: 34rem;
}

.hero-copy .eyebrow {
  color: #e2b08f;
}

.hero-photo {
  min-height: 280px;
  background: #0d1c30 center/cover no-repeat;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

/* Trust */
.trust {
  background: var(--white);
  border-bottom: 1px solid var(--stone);
}

.trust-grid {
  display: grid;
  gap: 1.5rem;
}

.trust-item strong {
  display: block;
  color: var(--navy-deep);
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
}

.trust-item p {
  font-size: 0.95rem;
}

/* Featured routes */
.route-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.route-card {
  display: grid;
  gap: 0.35rem 1.5rem;
  padding: 1.15rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
}

.route-card:hover {
  border-color: #c8b9a8;
  color: inherit;
}

.pair {
  font-family: var(--display);
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}

.route-card .pair {
  font-size: 1.35rem;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.service .pair {
  font-family: var(--font);
  font-weight: 600;
}

.route-card .go {
  color: var(--clay);
  font-weight: 600;
  font-size: 0.92rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-num {
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--clay);
  display: block;
  margin-bottom: 0.35rem;
}

/* Split */
.split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
  border-radius: var(--radius);
}

.panel {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* Quotes */
.quotes {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.quote {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.quote p {
  font-size: 1.08rem;
  color: var(--charcoal);
  font-style: italic;
}

.quote footer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: normal;
}

.quote footer strong {
  display: block;
  color: var(--navy-deep);
  font-style: normal;
}

/* CTA band */
.cta-band {
  background: var(--navy-deep);
  color: var(--white);
}

.cta-band h2,
.cta-band p {
  color: var(--white);
}

.cta-band p {
  color: #c5d0de;
}

.phone-lg {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--white);
  text-decoration: none;
  display: inline-block;
  margin: 0.4rem 0 1rem;
}

.phone-lg:hover {
  color: #f0d2c0;
}

/* Page intro */
.page-intro {
  padding: 3rem 0 1.5rem;
}

.page-intro h1 {
  max-width: 18ch;
}

/* Filters */
.filter-bar {
  display: grid;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.5rem 0 1.5rem;
  position: sticky;
  top: calc(var(--header) + 0.5rem);
  z-index: 20;
}

.filter-bar label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

.form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.form p {
  margin-bottom: 0.85rem;
}

.filter-bar select,
.filter-bar input,
.form input,
.form select,
.form textarea {
  font: inherit;
  width: 100%;
  min-height: 2.7rem;
  border: 1px solid #d3c9bc;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  background: var(--white);
  color: var(--charcoal);
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.filter-actions {
  display: flex;
  align-items: end;
  gap: 0.6rem;
}

/* Timetable */
.corridor {
  margin: 0 0 2.2rem;
}

.corridor h2 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--stone);
  scroll-margin-top: 7.5rem;
}

.service {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.7rem;
  display: grid;
  gap: 0.55rem 1rem;
}

.btn--small {
  min-height: 2.3rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  justify-self: start;
}

.service-row {
  display: grid;
  gap: 0.35rem;
}

.times {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--navy-deep);
  font-size: 1.05rem;
}

.service details {
  margin-top: 0.15rem;
}

.service summary {
  cursor: pointer;
  color: var(--clay);
  font-weight: 600;
  font-size: 0.92rem;
}

.service .stops {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.empty-state {
  display: none;
  padding: 1.5rem;
  background: var(--white);
  border: 1px dashed #c8b9a8;
  border-radius: var(--radius);
  text-align: center;
}

body.is-filtered .empty-state.is-visible,
.empty-state.is-visible {
  display: block;
}

.help-strip {
  margin-top: 2rem;
  padding: 1.2rem 1.3rem;
  background: var(--cream-dark);
  border-radius: var(--radius);
}

/* Testimonials grid */
.story-grid {
  display: grid;
  gap: 1rem;
}

.stars {
  color: var(--clay);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-detail {
  margin: 0 0 1.1rem;
}

.contact-detail dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.2rem;
}

.contact-detail dd {
  margin: 0;
  font-size: 1.12rem;
  color: var(--navy-deep);
}

.contact-detail a {
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 600;
}

.contact-detail a:hover {
  color: var(--clay);
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: #e7f0ec;
  color: #244a40;
  font-weight: 600;
}

.form-status.is-visible {
  display: block;
}

.form-error {
  display: none;
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: #f8e8e3;
  color: #8a2b16;
  font-weight: 600;
}

.form-error.is-visible {
  display: block;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  color: #8a2b16;
  font-size: 0.85rem;
  min-height: 1.1rem;
}

.form-row {
  display: grid;
  gap: 0.85rem;
}

.route-notice {
  background: var(--cream-dark);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  color: var(--navy-deep);
  font-size: 0.95rem;
}

.request-dialog {
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  width: min(32rem, calc(100% - 2rem));
  background: var(--white);
  color: var(--charcoal);
}

.request-dialog::backdrop {
  background: rgba(18, 36, 63, 0.55);
}

.request-summary {
  font-weight: 600;
  color: var(--navy-deep);
}

.request-dialog h2 {
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #c5d0de;
  padding: 2.4rem 0 1.5rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .logo-text,
.site-footer h3 {
  color: var(--white);
}

.site-footer a {
  color: #d9e2ee;
  text-decoration: none;
}

.site-footer a:hover {
  color: #f0d2c0;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.legal {
  padding-top: 1rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
}

.legal p {
  margin: 0;
}

.legal .credit {
  color: #9aa8b8;
}

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

.hidden {
  display: none !important;
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 72vh;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0 4rem 0;
  }

  .hero-copy .inner {
    width: min(100% - 2rem, 520px);
    margin-left: auto;
    padding-right: 2.5rem;
    padding-left: 1.75rem;
  }

  .hero-photo,
  .hero-photo img {
    min-height: 100%;
  }

  .quotes,
  .story-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .route-card {
    grid-template-columns: 1.4fr 1.4fr auto;
    align-items: center;
  }

  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }

  .service-row {
    grid-template-columns: 1.1fr 0.9fr 0.9fr;
    align-items: center;
  }

  .service {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .service-row {
    grid-column: 1 / -1;
  }

  .service [data-request] {
    justify-self: end;
    align-self: center;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero-copy .inner {
    width: min(100% - 4rem, 540px);
  }

  .cta-band .wrap {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    align-items: center;
    gap: 2rem;
  }
}

@media (max-width: 719px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--stone);
    padding: 0.75rem 1rem 1.1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

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

  .nav a,
  .nav .btn {
    min-height: 2.6rem;
    display: flex;
    align-items: center;
  }

  .nav .btn {
    justify-content: center;
    margin-top: 0.4rem;
  }

  .call-btn {
    display: none;
  }

  .site-header {
    position: sticky;
  }

  .site-header .wrap {
    position: relative;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .filter-bar {
    position: static;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}
