/* ==========================================================
   Yonder Rift Microfinance — main stylesheet
   Brand: Rift Blue #0D499A, Rift Red #E02122 (from the logo)
   ========================================================== */

:root {
  /* Brand */
  --blue: #0D499A;
  --blue-600: #0B3F86;
  --blue-800: #082F66;
  --red: #E02122;
  --red-700: #B9181A;

  /* Generated accents */
  --ink: #0A2552;        /* deep navy for headings + dark bands */
  --ink-deep: #071B3E;   /* footer */
  --sky: #7FA2DA;        /* soft blue on dark surfaces */
  --haze: #B9C8E4;       /* muted text on dark surfaces */
  --mist: #EEF3FA;       /* tinted section background */
  --line: #D5DFEC;       /* hairlines and borders */
  --blush: #FDEDED;      /* error / soft red tint */

  /* Text */
  --text: #1F2E48;
  --muted: #52648A;

  --font-display: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1160px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-800); }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 .5em;
  font-stretch: 108%;
  letter-spacing: -0.012em;
}
h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.1vw, 2.45rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }

p { margin: 0 0 1em; max-width: 64ch; }

ul, ol { padding-left: 1.2em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--ink); padding: .75rem 1rem; z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; font-stretch: 105%;
  line-height: 1.2;
  padding: .9rem 1.45rem;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-700); color: #fff; }
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(10,37,82,.45); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 80px; }

.brand { display: block; flex: none; }
.brand img { width: 200px; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav-list a:not(.btn) {
  position: relative; display: block;
  padding: .6rem .9rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; font-stretch: 104%;
  color: var(--ink); text-decoration: none;
}
.nav-list a:not(.btn)::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .3rem; height: 3px;
  background: var(--red); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav-list a:not(.btn):hover::after,
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--blue); }
.nav-list .btn { margin-left: .75rem; padding: .7rem 1.15rem; }

.nav-toggle {
  display: none;
  background: none; border: 2px solid var(--line); border-radius: var(--r-sm);
  width: 48px; height: 44px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .brand img { width: 168px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(10,37,82,.4);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .nav-list a:not(.btn) { padding: .9rem .25rem; border-bottom: 1px solid var(--mist); font-size: 1.1rem; }
  .nav-list a:not(.btn)::after { left: .25rem; right: auto; width: 40px; bottom: -1px; }
  .nav-list .btn { margin: 1rem 0 0; }
}

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(2.75rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
.hero h1 { max-width: 15ch; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 52ch; }
.hero-note { margin-top: 2rem; font-size: 1rem; color: var(--muted); }
.hero-note strong { color: var(--ink); }

/* The branch network card: the signature element */
.network {
  background: var(--ink); color: #fff;
  border-radius: var(--r-lg);
  padding: 2rem 2rem 1.6rem;
  position: relative; overflow: hidden;
}
.network::after {
  /* faint red edge, echoing the second half of the wordmark */
  content: ""; position: absolute; inset: 0 0 auto auto; width: 6px; height: 100%; background: var(--red);
}
.network h2 { color: #fff; font-size: 1.45rem; margin-bottom: .3rem; }
.network .sub { color: var(--haze); font-size: 1rem; margin: 0; }

.route { list-style: none; margin: 1.4rem 0 0; padding: 0; position: relative; }
.route::before {
  content: ""; position: absolute; left: 9px; top: 14px; bottom: 14px; width: 3px;
  background: linear-gradient(var(--sky), #3E6BB5);
  transform-origin: top;
  animation: route-draw 1.1s cubic-bezier(.3,.7,.3,1) .15s both;
}
.route li {
  position: relative;
  padding: .42rem 0 .42rem 2.25rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; font-stretch: 104%;
  animation: route-stop .45s ease-out both;
  animation-delay: calc(.25s + var(--i, 0) * .09s);
}
.route li::before {
  content: ""; position: absolute; left: 2px; top: .78rem;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--sky);
}
.route small {
  display: block; font-family: var(--font-body); font-weight: 400; font-size: .9rem; font-stretch: 100%;
  color: var(--haze); line-height: 1.35;
}
.route li.is-hq::before { background: var(--red); border-color: #fff; width: 21px; height: 21px; left: 0; top: .66rem; }
.route li.is-office::before { background: #fff; border-color: var(--sky); }

@keyframes route-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes route-stop { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: #DCE5F3; }
.section-ink h2, .section-ink h3 { color: #fff; }

.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.15rem; }

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem); align-items: start;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.text-link {
  font-family: var(--font-display); font-weight: 700; font-stretch: 104%;
  color: var(--blue); text-decoration: none;
  border-bottom: 2px solid var(--red); padding-bottom: 2px;
}
.text-link:hover { color: var(--red-700); }

/* Mission / vision statements */
.statement { border-left: 4px solid var(--blue); padding: .2rem 0 .2rem 1.4rem; margin-bottom: 2.25rem; }
.statement:last-child { margin-bottom: 0; }
.statement.is-red { border-left-color: var(--red); }
.statement h3 { margin-bottom: .4rem; }
.statement p { margin: 0; font-size: 1.15rem; }

/* ---------- Loans ---------- */
.loans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.loan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex; flex-direction: column;
}
.loan-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 1.25rem;
  background: var(--mist); color: var(--blue);
}
.loan-icon svg { width: 28px; height: 28px; }
.loan.is-medium .loan-icon { background: var(--blush); color: var(--red); }
.loan h3 { font-size: 1.6rem; }
.loan p { color: var(--muted); }
.loan ul { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.loan li { position: relative; padding: .45rem 0 .45rem 1.75rem; border-top: 1px solid var(--mist); }
.loan li::before {
  content: ""; position: absolute; left: 0; top: .95rem; width: 10px; height: 10px;
  border-radius: 2px; background: var(--blue); transform: rotate(45deg);
}
.loan.is-medium li::before { background: var(--red); }
.loan .text-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) { .loans { grid-template-columns: 1fr; } }

/* ---------- Steps (a real sequence, so numbered) ---------- */
.steps {
  list-style: none; counter-reset: step; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
}
.steps li { counter-increment: step; border-top: 3px solid var(--blue); padding-top: 1.25rem; }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: .6rem;
  font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; font-stretch: 112%;
  color: var(--red);
}
.steps h3 { font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); font-size: 1.05rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Promise band ---------- */
.promise-lines {
  font-family: var(--font-display); font-weight: 800; font-stretch: 116%;
  font-size: clamp(2.1rem, 5.6vw, 4.2rem); line-height: 1.04; letter-spacing: -0.02em;
  margin: 0 0 1.75rem; max-width: none;
}
.promise-lines span { display: block; }
.promise-lines span:nth-child(1) { color: #fff; }
.promise-lines span:nth-child(2) { color: #A9C1EA; }
.promise-lines span:nth-child(3) { color: #6E92D2; }
.promise-rule { width: 64px; height: 5px; background: var(--red); border: 0; margin: 0 0 1.75rem; border-radius: 3px; }
.promise p.closing { font-size: 1.2rem; color: var(--haze); max-width: 46ch; }

/* ---------- Offices ---------- */
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.office {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column;
}
.office.is-hq { border-top: 5px solid var(--red); }
.office:not(.is-hq) { border-top: 5px solid var(--blue); }
.office h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.office-lines { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.office-lines li { display: flex; gap: .8rem; align-items: flex-start; padding: .35rem 0; }
.office-lines svg { width: 20px; height: 20px; flex: none; margin-top: .25rem; color: var(--blue); }
.office-lines a { color: var(--text); font-weight: 600; text-decoration: none; }
.office-lines a:hover { color: var(--blue); text-decoration: underline; }
.office .actions { margin-top: auto; }
.office .btn { padding: .7rem 1.1rem; font-size: .95rem; }
@media (max-width: 760px) { .offices { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--mist); padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.75rem, 5vw, 4.25rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-bottom: 0; }

/* ---------- Timeline (about) ---------- */
.timeline {
  list-style: none; padding: 0; margin: 0; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 2rem;
}
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 3px;
  background: linear-gradient(90deg, var(--blue) 0 75%, var(--line) 75%);
}
.timeline li { position: relative; padding-top: 2.4rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 23px; height: 23px; border-radius: 50%;
  background: #fff; border: 4px solid var(--blue);
}
.timeline li:first-child::before { background: var(--red); border-color: var(--red); }
.timeline li:last-child::before { border-color: var(--sky); background: var(--mist); }
.timeline .when {
  display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 110%;
  font-size: 1.7rem; color: var(--blue); line-height: 1.1; margin-bottom: .5rem;
}
.timeline h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.timeline p { color: var(--muted); font-size: 1.05rem; margin: 0; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 10px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; background: linear-gradient(var(--blue) 0 80%, var(--line) 80%); }
  .timeline li { padding: 0 0 2rem 3rem; }
  .timeline li::before { top: .35rem; }
}

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.value h3 { display: flex; align-items: center; gap: .7rem; }
.value h3::before { content: ""; width: 22px; height: 4px; background: var(--red); border-radius: 2px; flex: none; }
.value p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ---------- Facts table ---------- */
.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts div {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-stretch: 104%; }

/* ---------- Chips ---------- */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .65rem; }
.chips li {
  border: 2px solid var(--blue); color: var(--blue); border-radius: 999px;
  padding: .45rem 1.1rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem;
}

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: .55rem 0 .55rem 2.1rem; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .85rem; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section-ink .check-list li { border-bottom-color: rgba(255,255,255,.12); }

/* ---------- Callout (loans page) ---------- */
.callout {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: center;
}
.callout h2 { margin-bottom: .4rem; }
.callout p { margin: 0; color: var(--muted); }
.callout .actions { margin: 0; justify-content: flex-end; }
@media (max-width: 760px) { .callout { grid-template-columns: 1fr; } .callout .actions { justify-content: flex-start; } }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .35rem; font-size: 1rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--text);
  padding: .8rem .95rem; background: #fff;
  border: 1.5px solid #B4C3D9; border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field input, .field select { height: 52px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2552' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .9rem center / 18px no-repeat;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13,73,154,.18);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .65; cursor: progress; }

.form-status { display: none; padding: 1rem 1.15rem; border-radius: var(--r-sm); font-weight: 600; }
.form-status.is-success { display: block; background: #E5F3EA; color: #15502B; border-left: 4px solid #1E7A40; }
.form-status.is-error { display: block; background: var(--blush); color: #8A1416; border-left: 4px solid var(--red); }

.side-panel { background: var(--mist); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.side-panel h2 { font-size: 1.45rem; }
.side-panel .office-lines { margin-bottom: 0; }
.side-panel + .side-panel { margin-top: 1.25rem; }
.section-mist .side-panel { background: #fff; border: 1px solid var(--line); }

/* ---------- Map ---------- */
.map-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.map-tab {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--ink); border: 2px solid var(--line);
}
.map-tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--mist); }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--haze); padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.wordmark {
  font-family: var(--font-display); font-weight: 800; font-stretch: 112%;
  font-size: 1.9rem; letter-spacing: -.01em; line-height: 1; margin: 0 0 .35rem;
}
.wordmark .w1 { color: #fff; }
.wordmark .w2 { color: #FF3B3C; }
.wordmark-sub { font-style: italic; margin: 0 0 1.25rem; }
.footer-tagline { color: #fff; font-weight: 600; max-width: 30ch; }
.site-footer h2 { font-size: 1.05rem; color: #fff; margin-bottom: .9rem; font-stretch: 104%; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .25rem 0; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .92rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.not-found p { margin-inline: auto; }
.not-found .actions { justify-content: center; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.muted { color: var(--muted); }

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

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .map-frame, .nav-toggle { display: none; }
  .section-ink { background: #fff; color: #000; }
}
