/* VIA Project — Accessible Heritage */

:root {
  --teal: #2f6b61;
  --teal-dark: #1f4a43;
  --ink: #141816;
  --text: #2b302d;
  --muted: #4f5652;
  --bg: #ffffff;
  --tint: #f3f4f2;
  --card: #fafaf8;
  --green-soft: #dde7d3;
  --line: #dcdfdb;
  --focus: #f2b632;
  --radius: 4px;
  --maxw: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); margin: 0; }
p { margin: 0; }

a { color: inherit; }

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

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

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.container--narrow { max-width: 960px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
  line-height: 1;
}
.brand-logo {
  display: block;
  height: 68px;
  width: auto;
}
.brand-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.brand { flex-shrink: 0; }

.site-nav ul {
  display: flex;
  gap: clamp(.9rem, 1.6vw, 1.75rem);
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}
.site-nav a:hover { text-decoration-thickness: 2px; color: var(--teal); }
.site-nav .nav-social a {
  display: inline-block;
  padding: .35rem .8rem;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  color: var(--teal-dark);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav .nav-social a:hover { background: var(--teal); color: #fff; }
.site-nav ul { align-items: center; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 22px; height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  content: "";
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateX(-50%) translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateX(-50%) translateY(-7px) rotate(-45deg); }

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}
.eyebrow--light { color: #fff; }
.eyebrow--sm { font-size: .72rem; margin-bottom: .75rem; }

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
  max-width: 11ch;
}
h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.045em;
}
h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.lead {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text);
  max-width: 62ch;
}
.lead--tight { margin-top: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--teal-dark);
  color: #fff;
  padding: clamp(4rem, 10vw, 7.5rem) 0;
  min-height: min(78vh, 680px);
  display: flex;
  align-items: center;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
/* Teal overlay keeps the text readable over the photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(31, 74, 67, .94) 0%, rgba(31, 74, 67, .82) 42%, rgba(31, 74, 67, .2) 75%, rgba(31, 74, 67, 0) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; }
.hero-lead {
  margin-top: 1.75rem;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  max-width: 50ch;
  color: #fff;
}
.btn {
  display: inline-block;
  margin-top: 2.25rem;
  padding: 1rem 1.75rem;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: #eef3f1; transform: translateY(-1px); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section--tint { background: var(--tint); }
.section--green { background: var(--green-soft); }

/* Routes */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.route-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.route-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.route-body { padding: 2rem 2rem 2.25rem; }
.route-body h3 { margin-bottom: .75rem; }
.route-body p:last-child { color: var(--muted); }

/* Research steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
}
.step {
  padding: 2rem 1.75rem 2.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step h3 { margin-bottom: 1rem; }
.step p { color: var(--text); font-size: 1.05rem; }

/* Inclusion pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
}
.pillars li {
  padding: 1.5rem 1.75rem;
  background: rgba(255, 255, 255, .72);
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
}

/* Updates */
.updates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.update-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.update-card h3 { margin-bottom: .75rem; }
.update-card p:last-child { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-dark);
  color: #fff;
  padding: 3.5rem 0;
}
.site-footer p { margin-bottom: .9rem; }
.footer-title { font-weight: 700; font-size: 1.15rem; }
.site-footer nav { margin-bottom: 1rem; }
.site-footer nav a {
  color: #fff;
  font-weight: 500;
  text-underline-offset: 4px;
}
.social {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.social a {
  display: inline-block;
  padding: .6rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease;
}
.social a:hover { background: rgba(255, 255, 255, .12); }
.social-handle { font-weight: 400; opacity: .85; margin-left: .25rem; }
.footer-copy { font-size: .95rem; opacity: .9; margin-bottom: 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .brand-tag { display: none; }
}

@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: .5rem clamp(1.25rem, 4vw, 3rem) 1.25rem;
  }
  .site-nav a {
    display: block;
    padding: .85rem 0;
    font-size: 1.15rem;
  }
  .site-nav .nav-social a {
    display: inline-block;
    margin-top: .75rem;
    padding: .6rem 1rem;
  }
  .routes-grid,
  .pillars { grid-template-columns: 1fr; }
  .hero::before {
    background: linear-gradient(180deg, rgba(31, 74, 67, .88) 0%, rgba(31, 74, 67, .8) 60%, rgba(31, 74, 67, .55) 100%);
  }
}

@media (max-width: 520px) {
  .brand-logo { height: 56px; }
  .brand-tag { display: none; }
  .steps { grid-template-columns: 1fr; }
  .route-body { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
