/* SV Magic Bus - self-contained stylesheet. No CDNs, no build step, no external fonts. */

:root {
  --ink: #0f1c24;
  --ink-soft: #2c3f4a;
  --paper: #ffffff;
  --sand: #f4f1ea;
  --sea: #0e6b7a;
  --sea-deep: #0a4b56;
  --sea-light: #d9ecef;
  --rule: #dcd7cc;
  --max: 1140px;
  --font-sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  --font-display: "Trebuchet MS", "Gill Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* the header is sticky, so in-page anchors must not park under it */
  scroll-padding-top: 6rem;
}

[id] { scroll-margin-top: 6rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
}

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

a { color: var(--sea); }
a:hover { color: var(--sea-deep); }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 99;
  background: #fff;
  padding: .6rem 1rem;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- header ---------- */

.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  /* nowrap keeps the sticky header to a single row. When the nav no longer fits it is
     hidden behind the Menu button rather than dropping onto a second row, which cost
     110px of every viewport. */
  flex-wrap: nowrap;
  max-width: 1400px;
  padding-top: .8rem;
  padding-bottom: .8rem;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.nav-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  font: inherit;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem .7rem;
  cursor: pointer;
  border-radius: 3px;
}
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: .85rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom: 2px solid var(--sea-light);
}

/* One row or a menu button. Never a two-row sticky header, which ate a fifth of the
   viewport and covered content on scroll. */
@media (max-width: 1340px) {
  .site-nav { display: none; width: 100%; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; flex-wrap: wrap; gap: .75rem; padding: .75rem 0 .25rem; }
  .site-nav a { font-size: .85rem; letter-spacing: .1em; }
}
@media (min-width: 1341px) {
  .nav-toggle { display: none; }
}

/* ---------- notice bar ---------- */

.notice {
  background: var(--sea-deep);
  color: #fff;
  text-align: center;
  padding: 1.5rem 1.25rem;
}
.notice p { margin: 0 0 .35rem; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }
.notice h2 {
  font-family: var(--font-display);
  margin: 0 0 .5rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: .04em;
}
.notice .quote { font-style: italic; opacity: .9; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.notice .btn { margin-top: .9rem; }

/* ---------- hero ---------- */

.hero {
  background: var(--sand);
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 auto .9rem;
  max-width: 22ch;
}
.hero p { max-width: 62ch; margin: 0 auto; }
.eyebrow {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sea-deep);
  margin: 0 0 .75rem;
}

/* ---------- sections ---------- */

main { display: block; }

.section { padding: clamp(2.25rem, 5vw, 3.75rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section.tint { background: var(--sand); }

/* a page whose h1 sits in an ordinary section, not in .hero, still needs display type */
main h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.12;
  margin: 0 0 1rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}
.section h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 1.75rem 0 .5rem;
}
.section h4 { font-size: 1rem; margin: 1.5rem 0 .4rem; }
.section p { margin: 0 0 1.1rem; }
.section ul, .section ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.section li { margin-bottom: .45rem; }

.lead { font-size: 1.1rem; }

/* readable measure for long-form text such as the privacy policy and the report */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }

/* minmax(0, 1fr) is load bearing. With plain 1fr, an image carrying a large intrinsic
   width attribute blows out its track and crushes the text column to a few pixels. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.split > * { min-width: 0; }
.split.reverse .split-media { order: 2; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

figure { margin: 0 0 1.25rem; }
figcaption { font-size: .85rem; color: var(--ink-soft); padding-top: .4rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .75rem;
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sea-light); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
}
/* uniform photo shape so a card without an image does not shove its neighbours around */
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.section.tint .card { background: #fff; }
.card h2, .card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 .5rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.card .price { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 .2rem; }
.card .price-note { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sea-deep); margin: 0 0 .8rem; }
.card img { margin-bottom: 1rem; }

blockquote {
  margin: 0 0 1.25rem;
  padding: .25rem 0 .25rem 1.25rem;
  border-left: 4px solid var(--sea);
  font-style: italic;
  color: var(--ink-soft);
}
blockquote cite { display: block; font-style: normal; font-size: .9rem; padding-top: .5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sea);
  color: #fff;
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .95rem 1.6rem;
  line-height: 1;
  border-radius: 2px;
}
.btn:hover { background: var(--sea-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--sea-deep); border: 1px solid var(--sea-deep); }
.btn.ghost:hover { background: var(--sea-deep); color: #fff; }
.btn.light { background: #fff; color: var(--sea-deep); }
.btn.light:hover { background: var(--sea-light); color: var(--sea-deep); }

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .5rem; }

.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
  background: var(--sea-light);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) {
  /* 16:9 is a squat letterbox on a phone; a taller frame is actually readable */
  .map-embed { aspect-ratio: 4 / 3; }
}

/* ---------- report page ---------- */

.report-hero { background: var(--ink); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.report-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: .06em;
  margin: 0 0 .5rem;
}
.report-hero .eyebrow { color: var(--sea-light); }
.report-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
}
.report-facts li { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); }

.toc { background: var(--sand); padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; }
.toc a { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }

.timeline { border-left: 3px solid var(--sea-light); padding-left: 1.5rem; margin: 0; }
.timeline .entry { margin-bottom: 2rem; }
.timeline .entry h3 { margin: 0 0 .35rem; }
.timeline .stamp { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sea-deep); }

.lesson { border: 1px solid var(--rule); padding: 1.1rem 1.25rem; margin-bottom: 1rem; background: #fff; }
.lesson h3, .lesson h4 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 .4rem; }
.lesson p { margin: 0; }

.bio { border-top: 1px solid var(--rule); padding-top: 1.1rem; margin-bottom: 1.1rem; }
.bio h3 { margin: 0 0 .3rem; }

.callout {
  background: var(--sea-light);
  border-left: 4px solid var(--sea-deep);
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.5rem;
}
.callout p:last-child { margin-bottom: 0; }

table.specs { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .95rem; }
table.specs th, table.specs td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.specs th { width: 34%; font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.85);
  padding: 2.5rem 0 2rem;
  margin-top: 0;
}
.site-footer h2 { font-family: var(--font-display); font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin: 0 0 .9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.75rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 2rem; padding-top: 1.1rem; font-size: .82rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; }
.footer-bottom p { margin: 0; }
