/* Shared styles for every page except the homepage, which keeps its own inline copy for speed. */

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #16302b;
  --navy: #1c6e6a;
  --teal: #007a73;
  --teal-soft: #e7f2f0;
  --sand: #fff1da;
  --clay: #b95a1a;
  --paper: #fffcf2;
  --paper-deep: #f3ecdd;
  --sky: #d0e6e1;
  --map: #ede5da;
  --green: #7faf8e;
  --muted: #55716c;
  --border: #e3ddd3;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(22, 48, 43, 0.18);
  --radius: 8px;
  --section: clamp(56px, 7vw, 96px);
  --gutter: clamp(18px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(208, 230, 225, 0.72), transparent 30rem),
    linear-gradient(135deg, var(--paper) 0%, var(--paper-deep) 52%, var(--sky) 100%);
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(22, 48, 43, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 48, 43, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

a {
  color: inherit;
}

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

.page {
  min-height: 100vh;
  overflow: hidden;
}

.shell {
  width: min(1180px, calc(100% - var(--gutter)));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(28, 110, 106, 0.2);
}

.brand span {
  font-size: 1.06rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--teal);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 36px;
  height: 2px;
  flex: 0 0 auto;
  content: "";
  background: var(--clay);
}

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

h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
}

h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
  line-height: 1.05;
}

.hero-copy {
  max-width: 700px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.55vw, 1.22rem);
}

.page-hero {
  padding: clamp(24px, 5vw, 64px) 0 clamp(40px, 5vw, 64px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(0, 122, 115, 0.28);
  outline-offset: 3px;
}

.button-primary {
  background: var(--navy);
  color: var(--paper);
  box-shadow: 0 16px 34px rgba(28, 110, 106, 0.28);
}

.button-secondary {
  border-color: rgba(0, 122, 115, 0.34);
  background: rgba(255, 252, 242, 0.66);
  color: var(--teal);
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

section {
  padding: var(--section) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(260px, 0.44fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step {
  padding: 24px;
  border: 1px solid rgba(28, 110, 106, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 252, 242, 0.72);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.route-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.route-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(28, 110, 106, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 252, 242, 0.74);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

a.route-card:hover,
a.route-card:focus-visible {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.route-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--map);
}

.route-card-body {
  padding: 20px;
}

.route-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.route-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 700;
}

.panel {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(28, 110, 106, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 252, 242, 0.74);
}

.panel-sand {
  border-color: transparent;
  background: var(--sand);
}

.panel p {
  max-width: 720px;
  color: var(--muted);
}

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

.panel h2 {
  margin-bottom: 20px;
}

/* Next-city form */

.city-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  max-width: 560px;
  margin-top: 22px;
}

.city-form label {
  display: grid;
  flex: 1 1 240px;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.city-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.city-form-status {
  flex-basis: 100%;
  margin: 0;
  color: var(--teal);
  font-weight: 600;
}

/* Long-form pages: guides, articles, FAQ */

.breadcrumbs {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .breadcrumbs ol {
  margin-bottom: 0;
}

.prose .breadcrumbs li + li {
  margin-top: 0;
}

.breadcrumbs li + li::before {
  margin-right: 6px;
  content: "/";
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--teal);
}

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

.prose {
  max-width: 740px;
  padding-bottom: var(--section);
  font-size: 1.04rem;
  line-height: 1.7;
}

.prose h2 {
  margin: 56px 0 16px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.15;
}

.prose h3 {
  margin: 34px 0 10px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 18px;
}

.prose li + li {
  margin-top: 8px;
}

.prose a {
  color: var(--teal);
  font-weight: 600;
}

.prose .lead {
  color: var(--muted);
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
}

.prose .small-print {
  color: var(--muted);
  font-size: 0.86rem;
}

.prose blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--clay);
  color: var(--muted);
}

.table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid rgba(28, 110, 106, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 252, 242, 0.74);
}

.table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.45;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  background: var(--teal-soft);
  font-weight: 700;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.figure {
  margin: 28px 0;
}

.figure img {
  display: block;
  width: 100%;
  border: 1px solid rgba(28, 110, 106, 0.18);
  border-radius: var(--radius);
  background: var(--map);
}

.figure-portrait img {
  max-width: 420px;
}

.figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
  padding: 0;
}

.facts div {
  padding: 14px 16px;
  border: 1px solid rgba(28, 110, 106, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 252, 242, 0.66);
}

.facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.facts dd {
  margin: 4px 0 0;
  font-size: 0.96rem;
}

.stops {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: stop;
}

.stop {
  position: relative;
  margin: 0 0 40px;
  padding-left: 58px;
}

.prose .stop + .stop {
  margin-top: 0;
}

.stop::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 700;
  counter-increment: stop;
  content: counter(stop);
}

.prose .stop h3 {
  margin-top: 6px;
}

.stop .figure {
  margin: 14px 0;
}

.stop-source {
  color: var(--muted);
  font-size: 0.86rem;
}

.cta-panel {
  margin: 48px 0;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--sand);
}

.prose .cta-panel h2 {
  margin-top: 0;
}

.cta-panel p {
  color: var(--muted);
}

.sources-list {
  padding-left: 22px;
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  padding: 18px 0;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
}

.faq-list details p {
  color: var(--ink);
}

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

.post-list .route-card-body p {
  margin-bottom: 8px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 42px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer a {
  font-weight: 700;
  text-decoration: none;
}

.footer a:hover {
  color: var(--teal);
}

@media (max-width: 920px) {
  .section-heading,
  .steps,
  .route-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

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

  .brand span {
    font-size: 0.95rem;
  }

  .nav-links {
    flex-wrap: nowrap;
    gap: clamp(8px, 2.6vw, 14px);
    font-size: clamp(0.68rem, 2.9vw, 0.8rem);
    line-height: 1;
    white-space: nowrap;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .stop {
    padding-left: 0;
  }

  .stop::before {
    position: static;
    margin-bottom: 10px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .nav-optional {
    display: none;
  }
}

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