/* =========================================================
   Wounded Warriors Support Initiative (WWSI) — main stylesheet
   Palette drawn from the WWSI emblem: green, maroon, gold, black
   ========================================================= */
:root {
  --ww-green: #1f4d3a;
  --ww-green-dark: #13322a;
  --ww-maroon: #8b2332;
  --ww-gold: #e3a92b;
  --ww-gold-soft: #f6e7c1;
  --ww-ink: #1b1f1d;
  --ww-muted: #5c6661;
  --ww-cream: #faf7f0;
  --ww-line: #e4ded0;
  --ww-radius: 14px;
  --ww-shadow: 0 10px 30px rgba(19, 50, 42, .10);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ww-ink);
  background: #fff;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, .display-font {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -.01em;
}

a { color: var(--ww-green); }
a:hover { color: var(--ww-maroon); }

.text-gold { color: var(--ww-gold) !important; }
.text-maroon { color: var(--ww-maroon) !important; }
.text-green { color: var(--ww-green) !important; }
.text-muted-ww { color: var(--ww-muted) !important; }
.bg-cream { background: var(--ww-cream) !important; }
.bg-green { background: var(--ww-green) !important; }
.bg-green-dark { background: var(--ww-green-dark) !important; }

.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ww-maroon);
  margin-bottom: .75rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--ww-gold);
  vertical-align: middle;
  margin-right: 10px;
}
.eyebrow.light { color: var(--ww-gold); }

.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 1rem; }
.lead-ww { font-size: 1.12rem; color: var(--ww-muted); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ww-green-dark);
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  padding: 7px 0;
}
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover { color: var(--ww-gold); }

/* ---------- Navbar ---------- */
.navbar-ww {
  background: #fff;
  box-shadow: 0 2px 18px rgba(0,0,0,.06);
  padding: 12px 0;
}
.navbar-ww .nav-link {
  font-weight: 600;
  color: var(--ww-ink);
  padding: .5rem .85rem !important;
  position: relative;
}
.navbar-ww .nav-link:hover,
.navbar-ww .nav-link.active { color: var(--ww-maroon); }
@media (min-width: 992px) {
  .navbar-ww .nav-link.active::after {
    content: "";
    position: absolute;
    left: .85rem; right: .85rem; bottom: 2px;
    height: 2px;
    background: var(--ww-gold);
  }
}

/* Emblem / brand mark (CSS recreation of the WWSI badge) */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.emblem {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--ww-ink);
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--ww-gold) inset;
}
.emblem span {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ww-green);
  border: 2px solid var(--ww-gold);
  display: grid; place-items: center;
  color: #fff;
  font-size: 1rem;
}
.emblem span i { background: var(--ww-maroon); border-radius: 4px 4px 10px 10px; padding: 1px 4px; }
.emblem.lg { width: 92px; height: 92px; box-shadow: 0 0 0 5px var(--ww-gold) inset; }
.emblem.lg span { width: 62px; height: 62px; font-size: 1.7rem; border-width: 3px; }
.brand-text { line-height: 1.1; }
.brand-text strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  color: var(--ww-green-dark);
}
.brand-text small {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ww-maroon);
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn-ww {
  background: var(--ww-maroon);
  color: #fff;
  border: 2px solid var(--ww-maroon);
  border-radius: 50px;
  padding: .7rem 1.6rem;
  font-weight: 700;
  transition: all .25s ease;
}
.btn-ww:hover { background: #6e1a27; border-color: #6e1a27; color: #fff; transform: translateY(-2px); }
.btn-gold {
  background: var(--ww-gold);
  color: var(--ww-ink);
  border: 2px solid var(--ww-gold);
  border-radius: 50px;
  padding: .7rem 1.6rem;
  font-weight: 700;
  transition: all .25s ease;
}
.btn-gold:hover { background: #c98f17; border-color: #c98f17; color: var(--ww-ink); transform: translateY(-2px); }
.btn-outline-light-ww {
  border: 2px solid rgba(255,255,255,.8);
  color: #fff;
  border-radius: 50px;
  padding: .7rem 1.6rem;
  font-weight: 700;
}
.btn-outline-light-ww:hover { background: #fff; color: var(--ww-green-dark); }
.btn-outline-ww {
  border: 2px solid var(--ww-green);
  color: var(--ww-green);
  border-radius: 50px;
  padding: .7rem 1.6rem;
  font-weight: 700;
}
.btn-outline-ww:hover { background: var(--ww-green); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 820px);
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(19,50,42,.95) 0%, rgba(19,50,42,.82) 45%, rgba(19,50,42,.35) 100%),
    url("../a1.jpeg") center 35% / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--ww-green) 0 33%, var(--ww-gold) 33% 66%, var(--ww-maroon) 66% 100%);
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.1; }
.hero .lead { color: rgba(255,255,255,.85); font-size: 1.2rem; max-width: 620px; }
.hero-portrait {
  position: relative;
  border-radius: 200px 200px var(--ww-radius) var(--ww-radius);
  overflow: hidden;
  border: 6px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.hero-portrait img { width: 100%; height: 520px; object-fit: cover; object-position: top; }
.hero-badge {
  position: absolute;
  left: -20px; bottom: 40px;
  background: #fff;
  color: var(--ww-ink);
  border-radius: var(--ww-radius);
  padding: 14px 18px;
  box-shadow: var(--ww-shadow);
  display: flex; align-items: center; gap: 12px;
  max-width: 260px;
}
.hero-badge i { font-size: 1.8rem; color: var(--ww-maroon); }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  position: relative;
  padding: 120px 0 90px;
  color: #fff;
  background-color: var(--ww-green-dark);
  background-image: url("../a10.jpeg"); /* default; pages override inline */
  background-position: center 8%; /* keep faces in the visible slice */
  background-size: cover;
  background-repeat: no-repeat;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(19,50,42,.88), rgba(19,50,42,.93));
}
.page-header > .container { position: relative; z-index: 1; }
.page-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--ww-green) 0 33%, var(--ww-gold) 33% 66%, var(--ww-maroon) 66% 100%);
}
.page-header h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
.page-header p { color: rgba(255,255,255,.82); max-width: 680px; font-size: 1.1rem; }
.breadcrumb-ww { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.breadcrumb-ww .breadcrumb-item, .breadcrumb-ww a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .9rem; }
.breadcrumb-ww .breadcrumb-item.active { color: var(--ww-gold); }
.breadcrumb-ww .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ---------- Stats strip ---------- */
.stats-strip {
  margin-top: -60px;
  position: relative;
  z-index: 3;
}
.stats-card {
  background: #fff;
  border-radius: var(--ww-radius);
  box-shadow: var(--ww-shadow);
  overflow: hidden;
}
.stat {
  padding: 30px 24px;
  text-align: center;
  border-right: 1px solid var(--ww-line);
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: Georgia, serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--ww-green);
  line-height: 1;
}
.stat .lbl { font-size: .9rem; color: var(--ww-muted); margin-top: 8px; }
@media (max-width: 767.98px) {
  .stat { border-right: 0; border-bottom: 1px solid var(--ww-line); }
  .stat:last-child { border-bottom: 0; }
}

/* ---------- Cards ---------- */
.card-ww {
  background: #fff;
  border: 1px solid var(--ww-line);
  border-radius: var(--ww-radius);
  padding: 32px 28px;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-ww:hover { transform: translateY(-6px); box-shadow: var(--ww-shadow); border-color: transparent; }
.icon-box {
  width: 60px; height: 60px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  background: var(--ww-gold-soft);
  color: var(--ww-maroon);
  margin-bottom: 1.2rem;
}
.icon-box.green { background: rgba(31,77,58,.1); color: var(--ww-green); }
.card-ww h3, .card-ww h4 { font-size: 1.25rem; margin-bottom: .6rem; }
.card-ww p { color: var(--ww-muted); margin-bottom: 0; }

.check-list { list-style: none; padding-left: 0; margin: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: .6rem; }
.check-list li::before {
  content: "\F26E"; /* bi-check2 */
  font-family: "bootstrap-icons";
  position: absolute; left: 0; top: 1px;
  color: var(--ww-maroon);
  font-weight: 700;
}
.check-list.light li::before { color: var(--ww-gold); }

/* ---------- Image frames ---------- */
.img-frame {
  position: relative;
  border-radius: var(--ww-radius);
  overflow: hidden;
  box-shadow: var(--ww-shadow);
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-stack { position: relative; padding: 0 0 60px 60px; }
.img-stack .back { height: 440px; }
.img-stack .front {
  position: absolute;
  left: 0; bottom: 0;
  width: 55%;
  height: 260px;
  border: 8px solid #fff;
}
.img-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff;
  font-size: .85rem;
}
@media (max-width: 575.98px) {
  .img-stack { padding: 0; }
  .img-stack .back { height: 340px; }
  .img-stack .front { position: relative; width: 100%; height: 240px; margin-top: 16px; border: 0; }
}

/* ---------- Quote band ---------- */
.quote-band {
  background: var(--ww-green);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.quote-band::before {
  content: "\201C";
  position: absolute;
  top: -60px; left: 30px;
  font-family: Georgia, serif;
  font-size: 22rem;
  line-height: 1;
  color: rgba(255,255,255,.05);
}
.quote-band blockquote {
  font-family: Georgia, serif;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.5;
}
.quote-band .portrait {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: var(--ww-radius);
  border: 6px solid rgba(255,255,255,.12);
}

/* ---------- Program blocks (programs page) ---------- */
.program-block { padding: 70px 0; border-bottom: 1px solid var(--ww-line); }
.program-block:last-of-type { border-bottom: 0; }
.program-num {
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--ww-gold);
  opacity: .55;
  font-weight: 700;
}

/* ---------- Timeline / phases ---------- */
.phase {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--ww-radius);
  background: #fff;
  border-top: 4px solid var(--ww-gold);
  box-shadow: var(--ww-shadow);
  height: 100%;
}
.phase .yr { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ww-maroon); font-weight: 700; }
.phase .amt { font-family: Georgia, serif; font-size: 1.6rem; color: var(--ww-green); font-weight: 700; }

/* ---------- Gap comparison ---------- */
.compare-col {
  border-radius: var(--ww-radius);
  padding: 34px 30px;
  height: 100%;
}
.compare-col.gov { background: var(--ww-cream); border: 1px solid var(--ww-line); }
.compare-col.gap { background: var(--ww-maroon); color: #fff; }
.compare-col.gap .check-list li::before { color: var(--ww-gold); content: "\F4FE"; } /* bi-plus-circle */

/* ---------- Governance org chart ---------- */
.org-node {
  background: #fff;
  border: 1px solid var(--ww-line);
  border-radius: 12px;
  padding: 16px 18px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
  height: 100%;
}
.org-node.top { background: var(--ww-green); color: #fff; border-color: var(--ww-green); }
.org-node i { display: block; font-size: 1.5rem; color: var(--ww-maroon); margin-bottom: 6px; }
.org-node.top i { color: var(--ww-gold); }
.org-connector { width: 2px; height: 34px; background: var(--ww-gold); margin: 0 auto; }

/* ---------- Tables ---------- */
.table-ww {
  border-radius: var(--ww-radius);
  overflow: hidden;
  box-shadow: var(--ww-shadow);
  margin-bottom: 0;
  background: #fff;
}
.table-ww thead th {
  background: var(--ww-green);
  color: #fff;
  font-weight: 600;
  border: 0;
  padding: 14px 16px;
  font-size: .9rem;
  white-space: nowrap;
}
.table-ww td { padding: 14px 16px; vertical-align: top; border-color: var(--ww-line); }
.table-ww tbody tr:nth-child(even) td { background: #fcfbf7; }
.table-ww tfoot td {
  background: var(--ww-gold-soft) !important;
  font-weight: 700;
  padding: 14px 16px;
  border: 0;
}
.table-ww .level td {
  background: var(--ww-maroon) !important;
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 16px;
}
.table-ww ul { padding-left: 1.1rem; margin: 0; }
.table-ww ul li { margin-bottom: .25rem; }

/* ---------- Budget bars ---------- */
.bar-row { margin-bottom: 18px; }
.bar-row .bar-label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.bar-track { background: #ece7da; border-radius: 50px; height: 14px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--ww-green), #2f7357); }
.bar-fill.maroon { background: linear-gradient(90deg, var(--ww-maroon), #b03a4b); }
.bar-fill.gold { background: linear-gradient(90deg, #c98f17, var(--ww-gold)); }

/* ---------- Gallery ---------- */
.gallery-item {
  display: block;
  position: relative;
  border-radius: var(--ww-radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 45%, rgba(19,50,42,.9));
  color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
  opacity: .92;
}
.gallery-item .overlay small { color: var(--ww-gold); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
.gallery-item.tall img { height: 480px; }
#galleryModal .modal-content { background: transparent; border: 0; }
#galleryModal .carousel-item img { max-height: 82vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 10px; }
#galleryModal .carousel-caption { background: rgba(0,0,0,.55); border-radius: 10px; padding: 10px 16px; bottom: 16px; }
.modal-backdrop.show { opacity: .88; }

/* ---------- CTA ---------- */
.cta {
  background:
    linear-gradient(110deg, rgba(139,35,50,.96), rgba(110,26,39,.92)),
    url("../a2.jpeg") center / cover no-repeat;
  color: #fff;
  border-radius: 22px;
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}
.cta p { color: rgba(255,255,255,.85); }
@media (max-width: 575.98px) { .cta { padding: 40px 24px; } }

/* ---------- Contact ---------- */
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info-item .icon-box { margin-bottom: 0; flex-shrink: 0; }
.form-control, .form-select {
  border-radius: 10px;
  padding: .8rem 1rem;
  border-color: var(--ww-line);
}
.form-control:focus, .form-select:focus {
  border-color: var(--ww-green);
  box-shadow: 0 0 0 .2rem rgba(31,77,58,.15);
}
.form-card { background: #fff; border-radius: 18px; padding: 40px; box-shadow: var(--ww-shadow); }
@media (max-width: 575.98px) { .form-card { padding: 26px 20px; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--ww-green-dark);
  color: rgba(255,255,255,.72);
  padding-top: 70px;
  font-size: .95rem;
}
.footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 1.2rem; }
.footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer a:hover { color: var(--ww-gold); }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: .55rem; }
.footer .brand-text strong { color: #fff; }
.footer .brand-text small { color: var(--ww-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 50px;
  padding: 22px 0;
  font-size: .85rem;
}
.social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  background: rgba(255,255,255,.08);
  margin-right: 6px;
  transition: background .2s;
}
.social a:hover { background: var(--ww-gold); color: var(--ww-ink); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ww-maroon);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  z-index: 50;
  text-decoration: none;
}
.to-top:hover { background: var(--ww-gold); color: var(--ww-ink); }

/* Two-column allocation bars above the full-width budget table */
.bars-2col { columns: 2 320px; column-gap: 48px; }
.bars-2col h3, .bars-2col p { column-span: all; }
.bars-2col .bar-row { break-inside: avoid; }

/* Portrait service photos: anchor to the top so faces are never cropped */
img[src="a10.jpeg"], img[src="a3.jpeg"], img[src="a4.jpeg"], img[src="a9.jpeg"] {
  object-position: center top !important;
}
