/* ============================================================
   BWESO Website — Design System
   bwesoinc.com
   Navy & Gold, light background, clean and professional
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ---- Tokens ---- */
:root {
  --navy:        #002780;
  --navy-dark:   #001E6B;
  --navy-mid:    #0033A0;
  --gold:        #B8923A;
  --gold-light:  #C9A24B;
  --gold-pale:   #F5EDD9;
  --bg:          #FBFAF7;
  --bg-warm:     #F4F1E8;
  --card:        #ffffff;
  --strip:       #F1EEE5;
  --border:      #E5E2D8;
  --border-dark: #CCC9BF;
  --text:        #1E2430;
  --text-mid:    #3D4452;
  --text-muted:  #7A7870;
  --green-bg:    #E1F5EE; --green-text: #0F6E56;
  --amber-bg:    #FAEEDA; --amber-text: #854F0B;
  --red-bg:      #FCEBEB; --red-text:   #A32D2D;
  --blue-bg:     #E6F1FB; --blue-text:  #185FA5;

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  --shadow-sm:   0 1px 4px rgba(0,39,128,.06);
  --shadow-md:   0 4px 16px rgba(0,39,128,.10);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-w: 1080px;
  --gutter: clamp(20px, 5vw, 48px);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ---- Layout helpers ---- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: 72px 0;
}
.section--sm {
  padding: 48px 0;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(36px, 5vw, 58px); }
h2 { font-size: clamp(28px, 3.5vw, 42px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; font-family: var(--font-body); }
p  { color: var(--text-mid); line-height: 1.75; }
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.lead {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 640px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  transition: all .18s ease;
  text-decoration: none;
}
.btn--primary {
  background: var(--navy);
  color: #fff;
}
.btn--primary:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,39,128,.2);
}
.btn--gold {
  background: var(--gold);
  color: #fff;
}
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(184,146,58,.28);
}
.btn--outline {
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: #fff;
}
.btn--outline-gold {
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn--outline-gold:hover {
  background: var(--gold-pale);
}
.btn--sm {
  padding: 7px 16px;
  font-size: 13px;
}

/* ---- Cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card--hover:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  transition: all .2s ease;
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
}
.badge--gold { background: var(--gold-pale); color: var(--gold); }
.badge--green { background: var(--green-bg); color: var(--green-text); }
.badge--amber { background: var(--amber-bg); color: var(--amber-text); }
.badge--red { background: var(--red-bg); color: var(--red-text); }
.badge--blue { background: var(--blue-bg); color: var(--blue-text); }
.badge--navy { background: var(--navy); color: #fff; }

/* ---- Gold divider ---- */
.gold-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 16px 0 28px;
  border: none;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,250,247,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo__stamp {
  height: 48px;
  width: auto;
  display: block;
  /* white PNG background blends cleanly on the light nav */
  mix-blend-mode: multiply;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--navy);
  background: var(--strip);
}
.site-nav .nav-cta {
  background: var(--navy);
  color: #fff !important;
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  margin-left: 4px;
}
.site-nav .nav-cta:hover {
  background: var(--navy-mid) !important;
}
.site-nav .nav-cta--outline {
  background: none !important;
  color: var(--navy) !important;
  border: 1.5px solid var(--navy);
}
.site-nav .nav-cta--outline:hover {
  background: var(--navy) !important;
  color: #fff !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.nav-toggle span {
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .2s;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: #8A9AB8;
  padding: 56px 0 32px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col__logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  margin-bottom: 10px;
}
.footer-col p {
  font-size: 13.5px;
  line-height: 1.7;
  color: #8A9AB8;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  font-size: 13.5px;
  color: #8A9AB8;
  transition: color .15s;
}
.footer-col ul li a:hover { color: #fff; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #8A9AB8; }
.footer-links a:hover { color: #fff; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--strip) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}
.empty-state svg { margin: 0 auto 16px; opacity: .4; }
.empty-state h4 { color: var(--text-muted); margin-bottom: 8px; }

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  box-shadow: var(--shadow-md);
  animation: toast-in .2s ease;
  max-width: 320px;
}
.toast--success { background: #0F6E56; }
.toast--error { background: var(--red-text); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__illustration { max-width: 260px; }
}
@media (max-width: 768px) {
  .hero__flex { flex-direction: column; gap: 32px; }
  .hero__illustration { max-width: 320px; width: 100%; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 16px var(--gutter);
    gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .site-nav.open a { width: 100%; padding: 10px 12px; }
  .site-nav.open .nav-cta { margin-left: 0; }
  .nav-toggle { display: flex; }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
  .section { padding: 48px 0; }
}

/* ============================================================
   MEMBERSHIP FORM
   ============================================================ */
.mf-progress {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}
.mf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}
.mf-step__dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
.mf-step__dot svg { width: 16px; height: 16px; }
.mf-step.active .mf-step__dot { background: var(--navy); color: #fff; box-shadow: 0 0 0 3px rgba(0,39,128,.15); }
.mf-step.done   .mf-step__dot { background: var(--green-text); color: #fff; }
.mf-step__label { font-size: 11px; color: var(--text-muted); text-align: center; white-space: nowrap; }
.mf-step.active .mf-step__label { color: var(--navy); font-weight: 600; }
.mf-step.done   .mf-step__label { color: var(--green-text); }
.mf-step__line {
  flex: 1; height: 2px;
  background: var(--border);
  margin: 0 4px;
  margin-bottom: 18px;
  transition: background .2s;
}
.mf-step__line.done { background: var(--green-text); }

.mf-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 20px;
}

.mf-step-title { font-size: 22px; margin-bottom: 6px; }
.mf-step-sub   { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; }

.mf-field {
  display: flex; flex-direction: column; gap: 5px;
  margin-bottom: 18px;
}
.mf-field label {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .4px;
  color: var(--text-mid);
}
.mf-field--required label::after { content: ' *'; color: var(--red-text); }
.mf-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-muted); font-size: 11px; }
.mf-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-muted); font-size: 11px; }
.mf-hint-block { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.mf-field input, .mf-field select, .mf-field textarea {
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px; font-family: var(--font-body);
  color: var(--text); background: var(--bg);
  outline: none; transition: border-color .15s, background .15s;
}
.mf-field input:focus,
.mf-field select:focus,
.mf-field textarea:focus { border-color: var(--navy); background: #fff; }
.mf-input-error { border-color: var(--red-text) !important; }
.mf-error { font-size: 12px; color: var(--red-text); margin-top: 3px; display: none; }
.mf-field textarea { resize: vertical; min-height: 90px; }

.mf-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

/* Category checkboxes */
.mf-cat-grid {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
}
.mf-cat-check {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px; font-size: 13px; color: var(--text-mid);
  cursor: pointer; transition: all .15s; user-select: none;
}
.mf-cat-check input { display: none; }
.mf-cat-check:hover  { border-color: var(--navy); color: var(--navy); }
.mf-cat-check.checked { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Document tip */
.mf-doc-tip {
  background: var(--blue-bg); color: var(--blue-text);
  border-radius: var(--radius-md); padding: 12px 16px;
  font-size: 13px; line-height: 1.6;
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 24px;
}
.mf-doc-tip svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 1px; }

/* Person cards */
.mf-person-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: 12px;
}
.mf-person-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: var(--strip);
  cursor: pointer; gap: 12px;
}
.mf-person-title { display: flex; align-items: center; gap: 10px; }
.mf-person-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mf-person-name { font-size: 14px; font-weight: 600; color: var(--navy); }
.mf-chevron { width: 18px; height: 18px; transition: transform .2s; }
.mf-chevron.open { transform: rotate(180deg); }
.mf-person-body { display: none; padding: 20px 18px; }
.mf-person-body.open { display: block; }
.mf-section-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-muted);
  margin: 20px 0 10px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.mf-remove-person {
  font-size: 13px; color: var(--text-muted);
  background: none; border: none; cursor: pointer;
  padding: 4px 8px; border-radius: var(--radius-sm);
  transition: all .15s;
}
.mf-remove-person:hover { background: var(--red-bg); color: var(--red-text); }
.mf-add-person {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--navy);
  background: none; border: 1.5px dashed var(--border);
  border-radius: var(--radius-md); padding: 12px 20px;
  cursor: pointer; width: 100%; justify-content: center;
  transition: all .15s; font-family: var(--font-body);
  margin-top: 8px;
}
.mf-add-person:hover { border-color: var(--navy); background: var(--bg); }
.mf-add-person svg { width: 16px; height: 16px; }

/* Review */
.mf-review {
  background: var(--strip); border-radius: var(--radius-md);
  padding: 20px; margin: 20px 0; display: flex; flex-direction: column; gap: 16px;
}
.mf-review__section { }
.mf-review__label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; color: var(--gold); margin-bottom: 8px;
}
.mf-review__value { font-size: 15px; font-weight: 600; color: var(--navy); }
.mf-review__sub   { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.mf-review__row {
  display: flex; justify-content: space-between;
  font-size: 13.5px; color: var(--text-mid);
  padding: 5px 0; border-bottom: 1px solid var(--border);
}
.mf-check   { color: var(--green-text); font-weight: 500; }
.mf-missing { color: var(--red-text);   font-weight: 500; }

.mf-agree {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--text-mid);
  cursor: pointer; margin-top: 12px;
}
.mf-agree input { margin-top: 2px; flex-shrink: 0; accent-color: var(--navy); }

/* Nav */
.mf-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px;
}

/* Success */
.mf-success {
  text-align: center; padding: 56px 32px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.mf-success__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-bg); margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
}
.mf-success__icon svg { width: 32px; height: 32px; stroke: var(--green-text); fill: none; stroke-width: 2; }
.mf-success h3 { margin-bottom: 10px; }
.mf-success p  { font-size: 15px; color: var(--text-muted); margin-bottom: 0; }
.mf-success__ref {
  display: inline-block; background: var(--strip);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 8px 20px; font-family: monospace; font-size: 15px;
  color: var(--navy); letter-spacing: 1px; margin: 14px 0;
}

@media (max-width: 600px) {
  .mf-card { padding: 20px; }
  .mf-progress { overflow-x: auto; padding-bottom: 4px; }
  .mf-step__label { display: none; }
}
