:root {
  --ink: #080808;
  --muted: #5f6470;
  --line: #ded9bf;
  --paper: #f7f4e6;
  --white: #ffffff;
  --yellow: #ffea00;
  --yellow-soft: #fff7a8;
  --yellow-deep: #d7bf00;
  --charcoal: #151515;
  --shadow: 0 20px 54px rgba(8, 8, 8, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 16px;
  left: 50%;
  display: grid;
  grid-template-columns: minmax(136px, 170px) minmax(0, 1fr) auto;
  align-items: center;
  width: min(1500px, calc(100% - 36px));
  min-height: 58px;
  padding: 8px 10px 8px 14px;
  background: rgba(8, 8, 8, 0.84);
  border: 1px solid rgba(255, 234, 0, 0.22);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(8, 8, 8, 0.28);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  display: block;
  width: min(150px, 100%);
  height: 38px;
  object-fit: contain;
  background: var(--yellow);
  border-radius: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1vw, 18px);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.7rem, 0.78vw, 0.86rem);
  font-weight: 720;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav a,
.footer-bottom a {
  transition: color 160ms ease;
}

.main-nav a:hover,
.footer-bottom a:hover {
  color: var(--yellow);
}

.header-actions {
  display: flex;
  gap: 10px;
}

.header-action,
.button,
.quote-form button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.header-action {
  padding: 0 14px;
  color: var(--ink);
  background: var(--yellow);
  white-space: nowrap;
}

.secondary-action {
  color: var(--white);
  background: #2a2a2a;
  border: 1px solid rgba(255, 234, 0, 0.26);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 128px clamp(22px, 5vw, 76px) 66px;
  isolation: isolate;
  color: var(--white);
  overflow: hidden;
}

.page-hero {
  position: relative;
  min-height: 44vh;
  display: grid;
  align-items: end;
  padding: 112px clamp(20px, 5vw, 72px) 46px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.52)),
    url("assets/yankee-line-night-coach.jpg") center / cover;
}

.page-hero.compact {
  min-height: 34vh;
}

.page-hero-content {
  width: min(960px, 100%);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5.8vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.services-page .page-hero {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.44)),
    url("assets/yankee-line-sunset-coach.jpg") center / cover;
}

.tours-page .page-hero,
.careers-page .page-hero {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.86), rgba(8, 8, 8, 0.48)),
    url("assets/yankee-line-city-coach.jpg") center / cover;
}

.acton-page .page-hero {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.5)),
    url("assets/coach-seating.jpg") center / cover;
}

.accessibility-page .page-hero {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.5)),
    url("assets/coach-seating.jpg") center / cover;
}

.locations-page .page-hero,
.testimonials-page .page-hero {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.5)),
    url("assets/yankee-line-bus-exterior.jpg") center / cover;
}

.fleet-page .page-hero {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.5)),
    url("assets/mercedes-coach-interior.jpg") center / cover;
}

.safety-page .page-hero,
.privacy-page .page-hero {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.5)),
    url("assets/mercedes-coach-interior.jpg") center / cover;
}

.about-page .page-hero {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.48)),
    url("assets/yankee-line-night-coach.jpg") center / cover;
}

.contact-page .page-hero {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.5)),
    url("assets/yankee-line-sunset-coach.jpg") center / cover;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 18, 31, 0.88), rgba(10, 18, 31, 0.58) 44%, rgba(10, 18, 31, 0.24)),
    linear-gradient(0deg, rgba(10, 18, 31, 0.64), rgba(10, 18, 31, 0.08) 56%);
  content: "";
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 16vh;
  background: linear-gradient(0deg, var(--paper), rgba(244, 247, 251, 0));
  content: "";
}

.hero-content {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(3.3rem, 8.5vw, 7.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 740px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.12rem, 1.9vw, 1.45rem);
}

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

.button {
  padding: 0 22px;
}

.button.primary {
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid var(--yellow);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.1);
}

.button.secondary.dark {
  color: var(--ink);
  border-color: rgba(8, 8, 8, 0.18);
  background: rgba(8, 8, 8, 0.06);
}

.compact-actions {
  margin-top: 22px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(720px, 100%);
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 18, 30, 0.32);
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.hero-stats div {
  padding: 18px;
}

.hero-stats div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats strong,
.hero-stats span,
.trust-band strong,
.trust-band span {
  display: block;
}

.hero-stats strong {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.hero-stats span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px clamp(20px, 4vw, 40px) 0;
  position: relative;
  z-index: 2;
}

.trust-band div {
  min-height: 126px;
  padding: 24px;
  background: #fffdf0;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.trust-band strong {
  font-size: 1.02rem;
}

.trust-band span {
  margin-top: 8px;
  color: var(--muted);
}

.section,
.fleet-section,
.quote-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px clamp(20px, 4vw, 40px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.45fr);
  gap: 42px;
  align-items: start;
  margin-bottom: 36px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.45rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.16rem;
}

p {
  color: var(--muted);
}

.service-grid,
.category-grid,
.about-grid {
  display: grid;
  gap: 18px;
}

.service-grid {
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
}

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

.about-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.category-grid article,
.about-grid article {
  overflow: hidden;
  background: #fffdf0;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card:hover,
.category-grid article:hover,
.about-grid article:hover {
  border-color: rgba(255, 234, 0, 0.76);
  box-shadow: 0 18px 46px rgba(8, 8, 8, 0.14);
  transform: translateY(-3px);
}

.service-card img {
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
}

.photo-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 18px;
}

.photo-strip img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-card:first-child img {
  aspect-ratio: 1.72;
}

.service-card div {
  padding: 24px;
}

.service-card a,
.category-grid a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--ink);
  font-weight: 850;
}

.category-grid article,
.about-grid article {
  min-height: 212px;
  padding: 24px;
}

.category-grid span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--yellow-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-grid,
.location-grid,
.fleet-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.detail-card,
.location-card,
.quote-panel,
.legal-panel {
  padding: 26px;
  background: #fffdf0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policy-panel {
  display: grid;
  gap: 26px;
}

.policy-intro {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.policy-intro h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.policy-section {
  display: grid;
  gap: 10px;
}

.policy-section h3 {
  font-size: 1.32rem;
}

.policy-section p {
  margin: 0;
}

.detail-card ul,
.legal-panel ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.text-link {
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: var(--yellow-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.commuter-section {
  max-width: 1260px;
}

.schedule-stack {
  display: grid;
  gap: 26px;
}

.schedule-panel {
  overflow: hidden;
  background: #fffdf0;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(8, 8, 8, 0.1);
}

.schedule-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  color: var(--white);
  background: var(--charcoal);
  border-bottom: 5px solid var(--yellow);
}

.schedule-panel-heading .eyebrow {
  margin: 0;
}

.schedule-panel-heading h3 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.table-scroll {
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.schedule-table th {
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schedule-table td {
  color: var(--ink);
  background: #fffdf0;
  font-weight: 760;
  vertical-align: top;
}

.schedule-table tbody tr:nth-child(even) td {
  background: #f5f1d8;
}

.schedule-table td:first-child {
  width: 60%;
}

.schedule-table span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 560;
}

.commuter-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.fare-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 24px;
}

.fare-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.fare-list dt,
.fare-list dd {
  margin: 0;
}

.fare-list dt {
  color: var(--muted);
  font-weight: 760;
}

.fare-list dd {
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 34px;
  align-items: center;
}

.split-section img {
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-list li {
  padding: 18px;
  background: #fffdf0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-panel {
  display: grid;
  gap: 14px;
}

.quote-panel a {
  color: var(--ink);
  font-weight: 850;
}

.service-card p,
.category-grid p,
.about-grid p,
.steps p,
.fleet-list p {
  margin: 8px 0 0;
}

.fleet-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 44px;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(8, 8, 8, 0.98), rgba(35, 35, 27, 0.96)),
    var(--charcoal);
  max-width: none;
  color: var(--white);
}

.fleet-section > * {
  max-width: 560px;
}

.fleet-section .fleet-copy {
  justify-self: end;
  padding-left: clamp(20px, 4vw, 40px);
}

.fleet-section p {
  color: rgba(255, 255, 255, 0.78);
}

.fleet-list {
  display: grid;
  gap: 12px;
  padding-right: clamp(20px, 4vw, 40px);
}

.fleet-list div {
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.fleet-list span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--yellow);
  font-weight: 900;
}

.fleet-list strong {
  display: block;
  font-size: 1.24rem;
}

.process {
  padding-bottom: 56px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  min-height: 220px;
  padding: 28px;
  background: #fffdf0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 26px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 6px;
  font-weight: 900;
}

.quote-section {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding-top: 56px;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 28px;
  background: #fffdf0;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 760;
}

.quote-form .full,
.quote-form button {
  grid-column: 1 / -1;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--yellow-deep);
  outline: 3px solid rgba(255, 234, 0, 0.28);
}

.quote-form textarea {
  resize: vertical;
}

.quote-form button {
  color: var(--ink);
  background: var(--yellow);
}

.site-footer {
  display: grid;
  gap: 38px;
  padding: 52px clamp(20px, 4vw, 56px) 28px;
  color: var(--white);
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 234, 0, 0.5);
}

.footer-brand-block {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand-block img {
  width: min(320px, 80vw);
  height: auto;
  background: var(--yellow);
  border-radius: 4px;
}

.footer-brand-block p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-location-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.footer-location-grid address {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 236px;
  margin: 0;
  padding: 24px 18px;
  text-align: center;
  font-style: normal;
  background: #202020;
  border: 1px solid rgba(255, 234, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.footer-location-grid strong,
.footer-location-grid span {
  display: block;
}

.footer-location-grid span {
  color: rgba(255, 255, 255, 0.78);
}

.footer-location-grid a {
  color: var(--white);
  font-weight: 780;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.location-pin {
  position: relative;
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
  background: var(--yellow);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.location-pin::after {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 8px;
  height: 8px;
  background: var(--charcoal);
  border-radius: 50%;
  content: "";
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 760;
}

@media (max-width: 980px) {
  .site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    grid-template-columns: 1fr auto;
    gap: 12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    transform: none;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .hero {
    min-height: 88vh;
    padding-top: 92px;
  }

  .trust-band,
  .footer-location-grid,
  .service-grid,
  .photo-strip,
  .category-grid,
  .about-grid,
  .commuter-info-grid,
  .detail-grid,
  .location-grid,
  .fleet-detail-grid,
  .split-section,
  .steps,
  .fleet-section,
  .quote-section,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .fleet-section .fleet-copy,
  .fleet-list {
    justify-self: stretch;
    max-width: none;
    padding-right: clamp(20px, 4vw, 40px);
  }

  .footer-bottom {
    display: grid;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand img {
    width: 142px;
    height: 34px;
  }

  .header-actions {
    order: 2;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header-action {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 84vh;
    padding-bottom: 44px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }

  .trust-band {
    padding-top: 32px;
  }

  .section,
  .fleet-section,
  .quote-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .quote-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .site-footer {
    display: grid;
  }

  .footer-location-grid address {
    min-height: auto;
  }
}
