/* Palette matched to jrow.org/membership, /who_we_are and /our-history */
:root {
  --bg: #17121f; --surface: #221b2e; --surface-2: #2a2040; --line: #43385a; --text: #ffffff; --text-2: #d4cde3;
  --muted: #b3a9c9; --accent: #b9adf7; --accent-soft: rgba(185, 173, 247, .14); --btn: #ffffff; --btn-text: #2a2040;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); --sans: "Open Sans", Arial, sans-serif; --ease: cubic-bezier(.22, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text-2); font: 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: 20px; }

/* ---------- Site header (same as /who_we_are) ---------- */
.site-header {
  position: relative; z-index: 1000; background: #000;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px clamp(16px, 4vw, 52px);
}
.site-logo img { display: block; width: 125px; height: auto; }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  color: #fff; text-decoration: none; font: 400 18px/1 var(--sans); padding: 8px 0;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: #adadad; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .site-logo img { width: 104px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #000; border-top: 1px solid var(--line); padding: 8px 16px 16px;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid #1f1a28; font-size: 18px; }
}

/* ---------- Footer (same as /who_we_are) ---------- */
.site-footer {
  margin-top: 56px; padding: 36px 24px 28px; text-align: center; border-top: 1px solid var(--line);
  color: var(--text-2); font-size: 14px;
}
.site-footer p { margin: 0 0 10px; }
.foot-social { display: flex; align-items: center; justify-content: center; gap: 12px; text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.foot-social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: background .2s, border-color .2s;
}
.foot-social a:hover { background: var(--btn); border-color: var(--btn); }
.foot-social a:hover svg { fill: var(--btn-text); }
.foot-social svg { width: 17px; height: 17px; fill: #fff; }


/* ---------- Contact page ---------- */
main > section { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; font-family: inherit;
  background: var(--btn); color: var(--btn-text); border: 2px solid var(--btn);
  border-radius: 999px; padding: 14px 28px; font-size: 18px; font-weight: 700;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--btn-text); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35); color: #e8d9b5;
  font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

main > .hero {
  max-width: none; text-align: center; padding: clamp(70px, 10vw, 120px) 24px clamp(90px, 11vw, 130px);
  background: linear-gradient(rgba(58, 44, 92, .78), rgba(23, 18, 31, 1)), url("https://jrow.org/wp-content/uploads/2018/04/LwtjkPKJrnpgOWB-800x450-noPad.jpg") center / cover;
}
.hero h1 { margin: 0 auto; max-width: 860px; font: 300 clamp(34px, 5vw, 58px)/1.12 var(--sans); color: #fff; }
.hero .lede { margin: 18px auto 0; max-width: 620px; color: var(--text-2); font-size: clamp(19px, 2.2vw, 22px); }

/* Ways to reach us: four big tiles that overlap the hero */
/* Social pages first: that's where the general public should go */
main > .social { margin-top: -64px; position: relative; z-index: 2; text-align: center; }
.social h2 { margin: 0 0 16px; display: inline-block; padding: 8px 18px; border-radius: 999px; background: var(--bg); color: #fff; font: 600 17px/1.3 var(--sans); letter-spacing: .02em; }
.ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 760px; margin: 0 auto; }
.way i { margin-top: 10px; font-style: normal; font-weight: 700; font-size: 15px; background: var(--btn); color: var(--btn-text); border-radius: 999px; padding: 7px 18px; transition: background .2s; }
a.way:hover i { background: var(--accent); }
.way {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; text-decoration: none;
  background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 24px 16px 22px;
  box-shadow: var(--shadow); transition: border-color .2s, transform .2s var(--ease);
}
a.way:hover { border-color: var(--accent); transform: translateY(-4px); }
.way svg { width: 38px; height: 38px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.way b { color: #fff; font-size: 20px; }
.way span, .way a { color: var(--text-2); font-size: 16px; word-break: break-word; }
.way a:hover { color: var(--accent); }
.copy {
  margin-top: 8px; border: 1px solid var(--line); background: transparent; color: #fff; border-radius: 999px;
  padding: 6px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.copy:hover { border-color: var(--accent); }

/* Form + visit */
main > .split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; margin-top: 70px; align-items: start; }
.form-card, .visit { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 32px; }
.split h2 { margin: 0 0 14px; font: 300 clamp(28px, 3.2vw, 36px)/1.2 var(--sans); color: #fff; }
.hint { margin: 0 0 22px; color: var(--muted); }
.alt { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.alt a { color: #fff; }
.alt .copy { margin: 0 0 0 6px; padding: 4px 12px; }
form label { display: block; margin-bottom: 16px; color: #fff; font-weight: 600; font-size: 17px; }
form label em { color: var(--accent); font-style: normal; }
form label small { color: var(--muted); font-weight: 400; }
form input, form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 14px 16px; font: inherit; font-size: 18px; font-weight: 400;
  color: #fff; background: var(--bg); border: 2px solid var(--line); border-radius: 10px; transition: border-color .2s;
}
form input:focus, form textarea:focus { outline: none; border-color: var(--accent); }
form .invalid { border-color: #f29e8e; }
form textarea { resize: vertical; min-height: 150px; }
form ::placeholder { color: #8c82a3; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.count { margin: -8px 0 18px; text-align: right; color: var(--muted); font-size: 14px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 16px 0 0; font-size: 17px; min-height: 1em; }
.status.ok { color: #a8e6c3; }
.status.bad { color: #f6b3a7; }

.map { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: #1d1828; }
.map-fallback { margin: 0; height: 100%; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--text-2); font-size: 15px; }
/* Pin + map controls: same as the Who We Are map */
.pin-wrap { width: 32px; height: 38px; padding: 0; margin: 0; background: none; border: 0; }
.pin { --c: var(--accent); position: absolute; left: 0; top: 0; width: 32px; height: 32px; transform-origin: 16px 38px; transform: scale(1.35); }
.pin::before { content: ""; position: absolute; inset: 0; background: var(--c); border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 6px 14px -4px rgba(0,0,0,.7), inset 0 0 0 2px rgba(23,18,31,.85); }
.pin-icon { position: absolute; left: 7px; top: 7px; width: 18px; height: 18px; fill: none; stroke: var(--bg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pin-pulse { position: absolute; left: 50%; top: 100%; width: 46px; height: 18px; margin: -9px 0 0 -23px; border-radius: 50%; border: 2px solid var(--accent); animation: pinPulse 1.8s ease-out infinite; }
@keyframes pinPulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.pin-label { position: absolute; left: 50%; bottom: calc(100% + 16px); transform: translateX(-50%); background: var(--btn); color: var(--btn-text);
  border-radius: 8px; padding: 5px 10px; font: 700 12px/1.3 var(--sans); white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.45); }
.pin-label::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--btn); }
.maplibregl-map { font-family: var(--sans); }
.maplibregl-ctrl-group { background: var(--surface) !important; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.35) !important; }
.maplibregl-ctrl-group button + button { border-top-color: var(--line) !important; }
.maplibregl-ctrl-group button:hover { background: var(--surface-2) !important; }
.maplibregl-ctrl-group .maplibregl-ctrl-icon { filter: invert(1) brightness(.9); }
.maplibregl-ctrl-attrib { background: rgba(23,18,31,.95) !important; color: var(--muted); font-size: 10px; }
.maplibregl-ctrl-attrib a { color: var(--text-2) !important; }
.maplibregl-ctrl-attrib-button { filter: invert(1); }
@media (prefers-reduced-motion: reduce) { .pin-pulse { animation: none; } }
.facts { list-style: none; margin: 22px 0 24px; padding: 0; }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.facts li:last-child { border-bottom: 0; }
.facts span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.facts strong { color: #fff; font-size: 19px; font-weight: 600; }

@media (max-width: 980px) {
  main > .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  main > section { padding: 0 16px; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .form-card, .visit { padding: 22px 18px; }
  .visit .btn { width: 100%; }
}
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; } .way { flex-direction: row; flex-wrap: wrap; text-align: left; gap: 4px 12px; } .way svg { margin: 0; } .way i { margin: 0 0 0 auto; } .way span { flex-basis: 100%; order: 3; padding-left: 50px; } .way b { font-size: 18px; } .way i { padding: 6px 14px; } }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
