/* ============================================================
   RMB Arkansas Central — Shared Stylesheet
   Colors sourced directly from official RMB brand assets
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Source+Sans+3:wght@400;600&display=swap');

/* ── CSS Variables ── */
:root {
  --blue:        #1C3F7C;
  --blue-dark:   #122B58;
  --blue-light:  #2A5298;
  --gold:        #E8A020;
  --gold-dark:   #C88010;
  --white:       #FFFFFF;
  --off-white:   #F7F9FC;
  --gray-light:  #EAEEF4;
  --gray:        #6B7280;
  --text:        #1A2340;

  --font-head:  'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body:  'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  --radius:     6px;
  --shadow:     0 2px 12px rgba(28,63,124,.12);
  --shadow-lg:  0 6px 28px rgba(28,63,124,.18);
  --max-w:      1100px;
  --transition: 0.22s ease;
}

/* ── Skip link (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--blue-dark);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--blue-dark);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 600; }
p  { margin-bottom: 1rem; }

/* ── Utility ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
.section--alt { background: var(--off-white); }
.section--blue { background: var(--blue-dark); color: var(--white); }
.section--blue h2, .section--blue h3 { color: var(--white); }
.section--blue p { color: rgba(255,255,255,.88); }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 28px; }
.mb-lg { margin-bottom: 48px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 13px 32px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold {
  background: var(--gold);
  color: var(--blue-dark);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-white:hover { background: var(--white); color: var(--blue-dark); }
.btn--blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 52px;
  width: auto;
}
.nav-logo-text {
  display: none;
  flex-direction: column;
  line-height: 1.15;
}
.nav-logo-text strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .95rem;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.nav-logo-text span {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Desktop nav */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu li { position: relative; }
.nav-menu > li > a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: .02em;
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: var(--blue);
  background: var(--gray-light);
}
.nav-menu > li.has-dropdown > a::after {
  content: '▾';
  font-size: .7rem;
  opacity: .6;
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding-top: 6px;
  background: transparent;
  z-index: 200;
}
.dropdown::before {
  content: '';
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}
.nav-menu li:hover .dropdown,
.nav-menu li:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  position: relative;
  z-index: 1;
  padding: 10px 18px;
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.dropdown a:hover { background: var(--off-white); color: var(--blue); }

/* CTA in nav */
.nav-cta {
  margin-left: 8px;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: var(--blue-dark);
  color: var(--white);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,.015) 40px,
    rgba(255,255,255,.015) 80px
  );
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  max-width: 720px;
}
.hero-content h1 { color: var(--white); margin-bottom: 18px; }
.hero-content h1 span { color: var(--gold); }
.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
/* ============================================================
   SECTION: WHAT IS RMB
   ============================================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.intro-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(232,160,32,.1);
  border: 1px solid rgba(232,160,32,.3);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.intro-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px;
}
.rmb-wheel {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.rmb-wheel-inner {
  width: 90px;
  height: 90px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--blue-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* ============================================================
   SECTION: BENEFITS GRID
   ============================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.benefit-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.benefit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.benefit-card:nth-child(2) { border-top-color: var(--gold); }
.benefit-card:nth-child(4) { border-top-color: var(--gold); }
.benefit-icon {
  width: 56px;
  height: 56px;
  background: var(--gray-light);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.benefit-card h3 { font-size: 1rem; margin-bottom: 10px; }
.benefit-card p { font-size: .9rem; color: var(--gray); margin: 0; }

/* ============================================================
   SECTION: WHY JOIN — CTA STRIP
   ============================================================ */
.cta-strip {
  background: var(--gold);
  padding: 40px 0;
}
.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-strip h2 { color: var(--blue-dark); font-size: 1.5rem; margin: 0; }
.cta-strip p { color: var(--blue-dark); opacity: .8; margin: 6px 0 0; font-size: .95rem; }

/* ============================================================
   SECTION: WHY JOIN PAGE — ACCORDION
   ============================================================ */
.why-join-header {
  background: var(--blue-dark);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}
.why-join-header h1 { color: var(--white); }
.why-join-header p { color: rgba(255,255,255,.82); max-width: 600px; margin: 14px auto 0; }

.why-join-reasons {
  padding: 56px 0;
}
.reason-item {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.reason-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--white);
  transition: background var(--transition);
  user-select: none;
}
.reason-header:hover { background: var(--off-white); }
.reason-num {
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.reason-header h3 { flex: 1; font-size: 1.05rem; color: var(--blue-dark); margin: 0; }
.reason-arrow {
  font-size: .85rem;
  color: var(--gold-dark);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.reason-item.open .reason-arrow { transform: rotate(180deg); }
.reason-item.open .reason-header { background: var(--off-white); border-bottom: 2px solid var(--gold); }
.reason-body {
  display: none;
  padding: 20px 24px 24px 76px;
  background: var(--off-white);
  font-size: .97rem;
  color: var(--text);
}
.reason-item.open .reason-body { display: block; }

/* ============================================================
   SECTION: ABOUT PAGE
   ============================================================ */
.page-header {
  background: var(--blue-dark);
  padding: 56px 0;
  text-align: center;
  color: var(--white);
}
.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,.8); max-width: 580px; margin: 12px auto 0; }

.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0;
}
.about-block + .about-block {
  border-top: 1px solid var(--gray-light);
}
.about-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.quote-block {
  background: var(--blue-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.quote-block::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 5rem;
  color: var(--gold);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: .5;
}
.quote-block p { font-size: 1rem; color: rgba(255,255,255,.9); font-style: italic; margin: 0; }
.quote-block cite {
  display: block;
  margin-top: 14px;
  font-size: .85rem;
  color: var(--gold);
  font-style: normal;
  font-family: var(--font-head);
  font-weight: 600;
}

.chapter-info-card {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px;
}
.chapter-info-card h3 { margin-bottom: 12px; font-size: 1.1rem; }
.chapter-info-card ul {
  list-style: none;
  padding: 0;
}
.chapter-info-card ul li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: .95rem;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.chapter-info-card ul li:last-child { border-bottom: none; }
.chapter-info-card ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: .65rem;
  top: 10px;
}

/* ============================================================
   SECTION: CONTACT PAGE / FORM
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  padding: 56px 0;
  align-items: start;
}
.contact-info h2 { margin-bottom: 14px; }
.contact-info p { color: var(--gray); }
.reassurance {
  margin-top: 24px;
  padding: 18px 20px;
  background: rgba(28,63,124,.06);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9rem;
  color: var(--text);
}
.reassurance strong { color: var(--blue-dark); }

.inquiry-form {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.inquiry-form h3 {
  margin-bottom: 24px;
  font-size: 1.2rem;
  color: var(--blue-dark);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.form-group label span { color: var(--gold-dark); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #CBD5E0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28,63,124,.12);
}
.form-group textarea { resize: vertical; min-height: 90px; }

/* Focus-visible — keyboard navigation indicator */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius);
}
.form-group input:focus-visible,
.form-group textarea:focus-visible { outline: none; }

/* Formspree fs-* class aliases — map to existing form styles */
.fs-label  { display:block; font-family:var(--font-head); font-weight:600; font-size:.85rem; color:var(--text); margin-bottom:6px; letter-spacing:.02em; }
.fs-input,
.fs-textarea { width:100%; padding:11px 14px; border:1px solid #CBD5E0; border-radius:var(--radius); font-family:var(--font-body); font-size:.95rem; color:var(--text); background:var(--white); transition:border-color var(--transition), box-shadow var(--transition); outline:none; }
.fs-input:focus,
.fs-textarea:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(28,63,124,.12); }
.fs-textarea { resize:vertical; min-height:100px; }
.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; text-align: center; font-size: 1rem; padding: 15px; }
.form-success {
  display: none;
  background: #EBF8F0;
  border: 1px solid #68D391;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-top: 16px;
}
.form-success p { color: #276749; margin: 0; font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.7);
  padding: 48px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 24px;
}
.footer-brand img { height: 60px; margin-bottom: 14px; }
.footer-brand p { font-size: .9rem; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--gold); }
.footer-disclaimer {
  margin-top: 8px;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  text-align: center;
}

/* ============================================================
   PAGE: HOME — Secondary sections
   ============================================================ */
.mission-quote {
  background: var(--blue);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}
.mission-quote blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  font-style: italic;
  max-width: 820px;
  margin: 0 auto;
  color: var(--white);
  line-height: 1.45;
}
.mission-quote cite {
  display: block;
  margin-top: 12px;
  font-size: .85rem;
  font-style: normal;
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-graphic { display: none; }

  .benefits-grid { grid-template-columns: 1fr 1fr; }

  .about-block { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .cta-strip-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .nav-menu { display: none; flex-direction: column; align-items: stretch; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 3px solid var(--gold); box-shadow: var(--shadow-lg); padding: 12px 0; z-index: 200; }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 12px 20px; border-radius: 0; }
  .dropdown { position: static; border: none; box-shadow: none; border-top: none; padding-left: 20px; background: var(--off-white); }
  .nav-cta { margin: 8px 16px; }
  .nav-cta .btn { display: block; text-align: center; }
  .nav-toggle { display: flex; }

  .benefits-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .reason-body { padding-left: 24px; }
}
