/* ==========================================================
   RMAF — design tokens
   Palette is a placeholder system (logo could not be sampled
   at build time). Change the variables below to match the
   official logo colours; the whole site follows.
   ========================================================== */
:root {
  --rmaf-green-900: #0A2A21;
  --rmaf-green-800: #0F3B2E;
  --rmaf-green-700: #17513F;
  --rmaf-green-100: #E3EEE9;
  --rmaf-brass:     #B8892B;
  --rmaf-brass-dark:#8E6716;
  --rmaf-sash:      #A4262C;   /* belt-red, used sparingly */
  --rmaf-paper:     #F3F5F4;
  --rmaf-ink:       #1B211F;
  --rmaf-muted:     #4B5753;
  --rmaf-line:      #D5DCD9;

  --font-display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--rmaf-ink);
  background: var(--rmaf-paper);
  overflow-x: hidden;
}
h1, h2, h3, h4, .brand-abbr, .btn, .nav-link, .footer-heading, .footer-title {
  font-family: var(--font-display);
}
h1, h2, h3, h4 { color: var(--rmaf-green-900); line-height: 1.12; letter-spacing: -0.01em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw + .5rem, 4rem); font-stretch: 85%; }
h2 { font-size: clamp(1.7rem, 2.4vw + .8rem, 2.6rem); font-stretch: 90%; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { max-width: 68ch; }
.text-center p, .cta-band p, .lead-wide p { margin-inline: auto; }
a { color: var(--rmaf-green-700); text-underline-offset: 3px; }
a:hover { color: var(--rmaf-green-900); }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--rmaf-brass); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--rmaf-brass); color: #000; padding: .75rem 1rem; z-index: 2000; font-family: var(--font-display); font-weight: 700; }
.skip-link:focus { left: 0; }

/* Placeholder flag: visible so admins know what to replace */
.placeholder-flag { background: #FFF1C2; color: #5A4300; padding: 0 .35em; border-radius: 3px; font-family: var(--font-display); font-size: .85em; font-weight: 600; }
.site-footer .placeholder-flag { background: transparent; color: #F3D98F; padding: 0; border-bottom: 1px dashed #F3D98F; border-radius: 0; }

/* ---------- Buttons ---------- */
.btn { font-weight: 700; letter-spacing: .01em; padding: .7rem 1.5rem; border-radius: 3px; min-height: 44px; transition: background-color .2s, color .2s, border-color .2s; }
.btn-brass { background: var(--rmaf-brass); color: #17130A; border: 2px solid var(--rmaf-brass); }
.btn-brass:hover { background: #CFA043; border-color: #CFA043; color: #17130A; }
.btn-line-light { color: #fff; border: 2px solid rgba(255,255,255,.75); background: transparent; }
.btn-line-light:hover { background: #fff; color: var(--rmaf-green-900); border-color: #fff; }
.btn-green { background: var(--rmaf-green-800); border: 2px solid var(--rmaf-green-800); color: #fff; }
.btn-green:hover { background: var(--rmaf-green-700); border-color: var(--rmaf-green-700); color: #fff; }
.btn-line-dark { border: 2px solid var(--rmaf-green-800); color: var(--rmaf-green-800); background: transparent; }
.btn-line-dark:hover { background: var(--rmaf-green-800); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--rmaf-green-900); border-bottom: 3px solid var(--rmaf-brass); }
.site-header .navbar { padding-block: .5rem; }
.navbar-brand { display: flex; align-items: center; gap: .75rem; color: #fff; }
.navbar-brand:hover { color: #fff; }
.brand-logo { width: 150px; height: 35px; object-fit: contain; border-radius: 5%; padding: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-abbr { font-weight: 900; font-size: 1.25rem; letter-spacing: .06em; }
.brand-full { font-family: var(--font-display); font-size: .72rem; font-weight: 500; opacity: .85; }
.navbar-toggler { border: 2px solid rgba(255,255,255,.6); color: #fff; padding: .4rem .7rem; min-height: 44px; }
.navbar-toggler:focus { box-shadow: none; outline: 3px solid var(--rmaf-brass); }
.nav-link { color: rgba(255,255,255,.88); font-weight: 600; font-size: .98rem; padding: .6rem .8rem !important; border-bottom: 3px solid transparent; }
.nav-link:hover { color: #fff; border-bottom-color: rgba(184,137,43,.6); }
.nav-link.active { color: #fff; border-bottom-color: var(--rmaf-brass); }
@media (max-width: 991.98px) {
  .navbar-collapse { padding: 1rem 0 1.25rem; }
  .nav-link { border-bottom: 0; border-left: 3px solid transparent; padding-left: .75rem !important; }
  .nav-link.active { border-left-color: var(--rmaf-brass); }
}

/* ---------- Hero (home) ---------- */
.hero { background: var(--rmaf-green-900); color: #fff; position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7rem); isolation: isolate; }
.hero::before { /* belt-stripe motif */
  content: ""; position: absolute; inset: 0 0 0 auto; width: min(46%, 640px); z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 8%, var(--rmaf-green-700) 8% 24%, transparent 24% 30%,
      var(--rmaf-brass) 30% 34%, transparent 34% 40%, var(--rmaf-sash) 40% 43%, transparent 43% 100%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .95;
}
.hero-words { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.hero-words li { font-family: var(--font-display); font-weight: 900; font-stretch: 75%; text-transform: uppercase; line-height: .92; font-size: clamp(3rem, 11vw, 7.5rem); letter-spacing: -.02em; }
.hero-words li:nth-child(2) { padding-left: clamp(.5rem, 4vw, 3rem); color: var(--rmaf-brass); }
.hero-words li:nth-child(4) { padding-left: clamp(.5rem, 4vw, 3rem); }
.hero .lead { font-size: 1.2rem; max-width: 46ch; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: var(--rmaf-green-800); color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem); border-bottom: 6px solid var(--rmaf-brass); }
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero .lead { color: rgba(255,255,255,.9); max-width: 52ch; margin-bottom: 0; }
.breadcrumb { margin-bottom: 1rem; font-family: var(--font-display); font-size: .9rem; }
.breadcrumb a { color: #F3D98F; }
.breadcrumb-item.active { color: rgba(255,255,255,.85); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: #fff; }
.section-dark { background: var(--rmaf-green-800); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { margin-bottom: 2.5rem; }
.rule { display: block; width: 64px; height: 5px; background: var(--rmaf-brass); margin-block: 1rem 1.25rem; border: 0; }
.text-center .rule { margin-inline: auto; }

/* Statement blocks (mission/vision) */
.statement { border-left: 6px solid var(--rmaf-brass); padding: .25rem 0 .25rem 1.5rem; height: 100%; }
.statement h2 { font-size: 1.8rem; margin-bottom: .75rem; }
.statement p { font-size: 1.2rem; margin-bottom: 0; }

/* Cards */
.tile { background: #fff; border: 1px solid var(--rmaf-line); border-top: 4px solid var(--rmaf-green-800); padding: 1.75rem; height: 100%; border-radius: 2px; }
.section-alt .tile { background: var(--rmaf-paper); }
.tile .icon { width: 3rem; height: 3rem; display: inline-grid; place-items: center; background: var(--rmaf-green-100); color: var(--rmaf-green-800); font-size: 1.25rem; margin-bottom: 1rem; border-radius: 50%; }
.tile h3 { margin-bottom: .5rem; }
.tile p:last-child { margin-bottom: 0; }
a.tile { display: block; text-decoration: none; color: inherit; transition: border-top-color .2s, transform .2s; }
a.tile:hover { border-top-color: var(--rmaf-brass); transform: translateY(-3px); }
a.tile .more { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--rmaf-green-700); }

.value-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.value-list li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rmaf-line); }
.value-list li:first-child { border-top: 1px solid var(--rmaf-line); }
.value-list .icon { color: var(--rmaf-brass-dark); font-size: 1.5rem; padding-top: .25rem; }
.value-list h3 { margin-bottom: .2rem; font-size: 1.15rem; }
.value-list p { margin: 0; color: var(--rmaf-muted); }

/* Callout for factual honesty notes */
.note { border: 1px dashed var(--rmaf-brass-dark); background: #FFF9E6; padding: 1rem 1.25rem; font-size: .98rem; border-radius: 2px; }

/* People / leadership */
.person { background: #fff; border: 1px solid var(--rmaf-line); height: 100%; border-radius: 2px; overflow: hidden; }
.person-photo { aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, #E8EDEB 0 14px, #DDE4E1 14px 28px); display: grid; place-items: center; color: var(--rmaf-muted); text-align: center; padding: 1rem; font-family: var(--font-display); font-size: .9rem; }
.person-photo i { font-size: 2.5rem; display: block; margin-bottom: .5rem; opacity: .6; }
.person-body { padding: 1.5rem; }
.person-body h3 { font-size: 1.15rem; margin-bottom: .1rem; }
.person-role { font-family: var(--font-display); font-weight: 700; color: var(--rmaf-sash); margin-bottom: .75rem; }
.person-body p { font-size: .98rem; }
.person-body .resp { color: var(--rmaf-muted); font-size: .95rem; margin-bottom: 0; }

/* Structure diagram */
.org-chart { display: grid; gap: 1rem; justify-items: center; }
.org-node { background: var(--rmaf-green-800); color: #fff; padding: .85rem 1.5rem; font-family: var(--font-display); font-weight: 700; text-align: center; border-radius: 2px; min-width: 12rem; }
.org-node.alt { background: #fff; color: var(--rmaf-green-900); border: 2px solid var(--rmaf-green-800); }
.org-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; width: 100%; }
.org-line { width: 2px; height: 1.5rem; background: var(--rmaf-green-800); }

/* Activity blocks */
.activity { display: grid; grid-template-columns: 4rem 1fr; gap: 1.25rem; padding: 2rem 0; border-bottom: 1px solid var(--rmaf-line); }
.activity:first-child { padding-top: 0; }
.activity .icon { width: 4rem; height: 4rem; display: grid; place-items: center; background: var(--rmaf-green-800); color: #fff; font-size: 1.4rem; border-radius: 50%; }
.activity h2 { font-size: 1.6rem; margin-bottom: .5rem; }
@media (max-width: 575.98px) { .activity { grid-template-columns: 1fr; } }

/* CTA */
.cta-band { background: var(--rmaf-green-900); color: #fff; text-align: center; padding-block: clamp(3rem, 7vw, 5rem); border-top: 6px solid var(--rmaf-brass); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }

/* Forms */
.form-label { font-family: var(--font-display); font-weight: 600; }
.form-control { border: 2px solid #9AA7A2; border-radius: 2px; padding: .7rem .85rem; min-height: 44px; font-family: var(--font-body); }
.form-control:focus { border-color: var(--rmaf-green-700); box-shadow: 0 0 0 .2rem rgba(184,137,43,.35); }
.req { color: var(--rmaf-sash); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#form-status:empty { display: none; }

/* Footer */
.site-footer { background: #071E17; color: rgba(255,255,255,.85); padding-top: 4rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-title { font-weight: 900; font-size: 1.4rem; letter-spacing: .06em; color: #fff; }
.footer-heading { font-size: 1rem; color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .55rem; font-size: .98rem; }
.footer-links i { width: 1.25rem; color: var(--rmaf-brass); }
.social-list a, .social-off { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }
.social-list a:hover { background: var(--rmaf-brass); color: #000; border-color: var(--rmaf-brass); text-decoration: none; }
.social-off { opacity: .4; cursor: not-allowed; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.15); margin: 3rem auto 0; padding-block: 1.5rem; font-size: .9rem; max-width: none; }

/* Legal pages */
.legal h2 { font-size: 1.5rem; margin-top: 2rem; }

/* Motion: one calm reveal on scroll, disabled for reduced motion */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 575.98px) {
  .hero::before { width: 70%; opacity: .5; }
  .hero-actions .btn { width: 100%; }
}
