/* ReSource Bridge — shared styles */

:root {
  --color-bridge: #1b2a4a;
  --color-bridge-dark: #0e1830;
  --color-accent: #c8973f;
  --color-accent-dark: #a67a2e;
  --color-bg: #faf7f2;
  --color-bg-alt: #f0ebe1;
  --color-text: #1f2937;
  --color-text-light: #52606d;
  --color-border: #e2dccf;
  --radius: 4px;
  --max-width: 1120px;
  --font-heading: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-bridge-dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 0;
}

a { color: var(--color-bridge); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-bridge);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-bridge-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-brand svg,
.nav-brand img { flex-shrink: 0; border-radius: 50%; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-dark); }

.btn-light {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* Understated secondary action: a text link with a small arrow, not another pill */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.link-arrow:hover { opacity: 0.75; }
.link-arrow svg { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-bridge-dark);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  background: var(--color-bridge-dark);
  color: #fff;
  padding: 96px 0;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: 2.75rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  color: #b9c2d9;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-graphic { width: 100%; max-width: 400px; height: auto; margin: 0 auto; opacity: 0.96; }

/* Sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-header h2 { font-size: 2rem; }

.eyebrow {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--color-accent-dark);
  margin-bottom: 12px;
  display: block;
}

/* Grid cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.card {
  background: #fff;
  padding: 36px 32px;
}

.grid-2 .card {
  border-top: 2px solid var(--color-accent);
}

.card .card-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
}

.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--color-text-light); margin-bottom: 0; }

/* Steps (Programs page) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--color-border);
}

.step {
  position: relative;
  padding: 32px 30px 0 0;
  border-right: 1px solid var(--color-border);
}

.step:last-child { border-right: none; }

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 12px;
  line-height: 1;
}

.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--color-text-light); margin-bottom: 0; }

/* Stat / focus row */
.focus-row {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
  font-family: var(--font-heading);
}

.focus-pill {
  color: var(--color-bridge-dark);
  font-weight: 500;
  font-size: 1rem;
  padding: 0 16px;
}

.focus-pill::after {
  content: "·";
  margin-left: 32px;
  color: var(--color-accent);
}
.focus-pill:last-child::after { content: none; }

/* CTA band */
.cta-band {
  background: var(--color-bridge-dark);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #b9c2d9; max-width: 52ch; margin: 0 auto 30px; }
.cta-band .btn-actions { display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Info block with side image/graphic */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-graphic {
  padding: 10px;
}

.legal-box {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
  margin-top: 34px;
}
.legal-box dt {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-bridge-dark);
  margin-top: 16px;
  font-size: 0.95rem;
}
.legal-box dt:first-child { margin-top: 0; }
.legal-box dd { margin: 3px 0 0; color: var(--color-text-light); }

/* Values list */
.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}
.values-list li {
  background: #fff;
  padding: 26px 28px;
}
.values-list strong {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-bridge-dark);
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

/* Contact page */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}

.contact-info-card {
  padding: 4px 0;
}
.contact-info-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 6px;
}
.contact-info-card .item {
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--color-border);
}
.contact-info-card .item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.contact-info-card .item p { margin: 4px 0 0; color: var(--color-text); font-size: 1.05rem; }

form.contact-form {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-bridge-dark);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: #fff;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-bridge);
  outline-offset: 1px;
}
.form-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 14px;
}
.form-success {
  display: none;
  background: #e7f5ec;
  border: 1px solid #b7dfc4;
  color: #205c37;
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-weight: 600;
}
.form-success.visible { display: block; }

/* Footer */
.site-footer {
  background: var(--color-bridge-dark);
  color: #cbd3e8;
  padding: 56px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-family: var(--font-body);
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-grid p, .footer-grid a {
  color: #b4bfdd;
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-grid a:hover { color: #fff; }

.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 0.85rem;
  color: #8f99bb;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-graphic { max-width: 260px; margin: 0 auto; order: -1; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-2, .split, .contact-wrap { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--color-border); padding: 28px 0; }
  .step:last-child { border-bottom: none; }
  .steps { border-top: none; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    display: none;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .section { padding: 60px 0; }
}
