:root {
  --cream: #E1DACA;
  --blue: #395F81;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--blue);
  background:
    url("assets/bolingbroke-bus-bg.webp") center / cover fixed no-repeat,
    var(--cream);
  font-family: var(--font);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--cream), transparent, var(--cream)),
    linear-gradient(90deg, var(--blue) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, var(--blue) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--cream);
  opacity: 0.42;
  pointer-events: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1200px, calc(100% - 28px));
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 14px auto 0;
  padding: 12px 16px;
  border: 3px solid var(--blue);
  border-radius: 28px;
  background: var(--cream);
  box-shadow: 0 14px 0 var(--blue);
  animation: headerDrop 520ms ease both;
}

.brand {
  display: inline-flex;
  min-width: 0;
  flex: 1;
}

.brand img {
  width: clamp(164px, 23vw, 260px);
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 4px;
}

.auth-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 120px;
  flex: 1;
}

.auth-container .user-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 950;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 999px;
  transition: background 180ms ease;
}

.auth-container .user-profile:hover {
  background: rgba(57, 95, 129, 0.1);
}

.auth-container .user-profile img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--blue);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--cream);
  border: 3px solid var(--blue);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 8px 0 var(--blue);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 50;
  min-width: 120px;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu button {
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border-radius: 10px;
  transition: background 180ms ease, color 180ms ease;
}

.dropdown-menu button:hover {
  background: var(--blue);
  color: var(--cream);
}

.auth-container .btn {
  padding: 0 16px;
  min-height: 40px;
}

.top-nav a,
.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--blue);
  border-radius: 999px;
  background: var(--cream);
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.top-nav a {
  font-size: 12px;
}

.top-nav a {
  padding: 0 10px;
}

.top-nav a.active,
.btn.primary {
  background: var(--blue);
  color: var(--cream);
}

.top-nav a:hover,
.btn:hover,
.page-card:hover,
.info-panel:hover,
.timeline article:hover {
  transform: translateY(-4px);
  box-shadow: 0 13px 0 var(--blue);
}

.page-main,
.section,
.hero,
.quick-stats,
.site-footer {
  width: min(1200px, calc(100% - 28px));
  margin-inline: auto;
}

.hero {
  min-height: calc(100svh - 120px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 28px;
  align-items: center;
  padding: 66px 0 54px;
}

.hero-copy,
.hero-logo,
.page-hero,
.quick-stats article,
.section,
.form-shell {
  position: relative;
  border: 4px solid var(--blue);
  border-radius: 34px;
  background: var(--cream);
  box-shadow: 0 18px 0 var(--blue);
  overflow: hidden;
}

.hero-copy::after,
.page-hero::after,
.form-shell::after {
  content: "2026";
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  min-width: 64px;
  min-height: 34px;
  place-items: center;
  border: 3px solid var(--blue);
  border-radius: 999px;
  background: var(--cream);
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-copy,
.page-hero,
.section,
.form-shell {
  padding: clamp(26px, 4vw, 52px);
}

.page-enter {
  animation: pageIn 620ms ease both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  color: var(--cream);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.9;
  text-shadow:
    3px 0 var(--blue),
    -3px 0 var(--blue),
    0 3px var(--blue),
    0 -3px var(--blue),
    7px 9px 0 var(--blue);
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 0.98;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 0.98;
  text-transform: uppercase;
}

p {
  color: var(--blue);
  font-size: 17px;
  line-height: 1.58;
  font-weight: 650;
}

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

.btn {
  padding: 0 22px;
}

.btn.secondary {
  background: var(--cream);
  color: var(--blue);
}

.hero-logo {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 34px;
}

.hero-logo::before,
.hero-logo::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 3px solid var(--blue);
  border-radius: 44px;
  pointer-events: none;
}

.hero-logo::after {
  inset: 58px;
  border-style: dashed;
}

.hero-logo img {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  filter: drop-shadow(0 16px 0 var(--blue));
  animation: logoFloat 3600ms ease-in-out infinite;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.quick-stats article {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
}

.quick-stats span,
.page-card span,
.info-panel span,
.timeline span {
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.quick-stats strong {
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1;
  text-transform: uppercase;
}

.section,
.page-main {
  margin-top: 78px;
}

.page-main {
  padding-bottom: 36px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
}

.page-grid,
.split-section,
.timeline,
.social-grid,
.video-grid,
.reference-list {
  display: grid;
  gap: 16px;
}

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

.page-card,
.info-panel,
.timeline article,
.social-card,
.video-card,
.clean-list li {
  position: relative;
  border: 3px solid var(--blue);
  border-radius: 24px;
  background: var(--cream);
  box-shadow: 0 8px 0 var(--blue);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.page-card::after,
.info-panel::after,
.timeline article::after,
.social-card::after,
.video-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 22%;
  background: var(--blue);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.page-card:hover::after,
.info-panel:hover::after,
.timeline article:hover::after,
.social-card:hover::after,
.video-card:hover::after {
  animation: systemSweep 520ms ease;
}

.page-card,
.social-card {
  min-height: 244px;
  display: grid;
  align-content: space-between;
  padding: 22px;
}

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

.social-card span {
  width: fit-content;
  display: inline-grid;
  min-height: 38px;
  place-items: center;
  padding: 0 13px;
  border: 3px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: var(--cream);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.social-card strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 950;
  text-transform: none;
}

.reference-list {
  grid-template-columns: 1fr;
}

.reference-list a {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 74px;
  padding: 16px 18px;
  border: 3px solid var(--blue);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: 0 8px 0 var(--blue);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.reference-list a:hover {
  transform: translateY(-4px);
  box-shadow: 0 13px 0 var(--blue);
}

.reference-list span {
  width: fit-content;
  display: inline-grid;
  min-height: 38px;
  place-items: center;
  padding: 0 13px;
  border: 3px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: var(--cream);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.reference-list strong {
  overflow-wrap: anywhere;
  font-size: 16px;
}

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

.video-card {
  min-height: 360px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 18px;
}

.video-frame {
  position: relative;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 3px solid var(--blue);
  border-radius: 20px;
  background:
    linear-gradient(90deg, var(--blue) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(0deg, var(--blue) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--cream);
  overflow: hidden;
}

.video-frame::before,
.video-frame::after {
  content: "";
  position: absolute;
  border: 3px solid var(--blue);
  border-radius: 999px;
}

.video-frame::before {
  inset: 24px;
}

.video-frame::after {
  width: 62px;
  height: 62px;
  background: var(--cream);
  animation: pulsePlay 1800ms ease-in-out infinite;
}

.video-frame span {
  position: relative;
  z-index: 1;
  color: var(--blue);
  font-size: 34px;
  font-weight: 950;
  transform: translateX(2px);
}

.page-card.featured {
  background: var(--blue);
  color: var(--cream);
}

.page-card.featured p,
.page-card.featured span {
  color: var(--cream);
}

.page-card.featured::after {
  background: var(--cream);
}

.page-hero {
  margin-top: 56px;
}

.split-section {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
}

.info-panel {
  min-height: 280px;
  display: grid;
  align-content: space-between;
  padding: 24px;
}

.list-section {
  margin-top: 34px;
}

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

.clean-list li {
  padding: 18px;
  font-weight: 650;
  line-height: 1.5;
}

.timeline {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
}

.timeline article {
  min-height: 280px;
  display: grid;
  align-content: space-between;
  padding: 24px;
}

.timeline span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 3px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: var(--cream);
}

.form-shell {
  margin-top: 34px;
}

.background-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.background-form label {
  display: grid;
  gap: 9px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.background-form input,
.background-form select,
.background-form textarea {
  width: 100%;
  border: 3px solid var(--blue);
  border-radius: 18px;
  background: var(--cream);
  color: var(--blue);
  padding: 14px 16px;
  outline: none;
  resize: vertical;
  font-size: 15px;
  font-weight: 750;
}

.background-form input::placeholder,
.background-form textarea::placeholder {
  color: var(--blue);
}

.background-form input:focus,
.background-form select:focus,
.background-form textarea:focus {
  box-shadow: 0 7px 0 var(--blue);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.form-status {
  margin: 0;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 42px;
  font-weight: 950;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  min-height: 50px;
  display: grid;
  place-items: center;
  padding: 0 18px;
  border: 3px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: var(--cream);
  font-weight: 950;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes systemSweep {
  0% {
    left: -35%;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    left: 115%;
    opacity: 0;
  }
}

@keyframes pulsePlay {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms;
    animation-iteration-count: 1;
    scroll-behavior: auto;
    transition-duration: 1ms;
  }
}

@media (max-width: 960px) {
  .site-header,
  .hero,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
    position: relative;
    z-index: 10;
  }

  .top-nav {
    justify-content: start;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-logo {
    min-height: 360px;
  }

  .quick-stats,
  .page-grid,
  .split-section,
  .timeline,
  .social-grid,
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .site-header,
  .page-main,
  .section,
  .hero,
  .quick-stats,
  .site-footer {
    width: calc(100% - 18px);
  }

  .site-header,
  .hero-copy,
  .hero-logo,
  .page-hero,
  .quick-stats article,
  .section,
  .form-shell {
    border-radius: 24px;
    box-shadow: 0 10px 0 var(--blue);
  }

  .brand img {
    width: min(100%, 230px);
  }

  .quick-stats,
  .page-grid,
  .split-section,
  .timeline,
  .social-grid,
  .video-grid,
  .reference-list a,
  .form-grid,
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .top-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    width: 100%;
    padding-bottom: 4px;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav a {
    flex: 0 0 auto;
    width: auto;
  }

  .hero-logo {
    min-height: 270px;
    padding: 22px;
  }

  .hero-logo::before,
  .hero-logo::after {
    inset: 16px;
    border-radius: 26px;
  }

  .hero-logo::after {
    inset: 36px;
  }

  .page-card,
  .info-panel,
  .timeline article {
    min-height: 220px;
  }

  .site-footer {
    display: grid;
  }
}
