/* HOPE ANCHOR CIC — Soft Contemporary
   Distinct, calm, soft contemporary design system.
   This sheet uses generous whitespace, pill buttons, very light shadows,
   subtle pastel-tinted backgrounds, and a calmer typographic hierarchy. */

:root {
  --navy: #1B2A4E;
  --navy-deep: #0E1A38;
  --navy-soft: #3A4A6E;
  --brass: #C9A961;
  --brass-deep: #A88841;
  --brass-soft: #F0E4C2;
  --cream: #FAF6EE;
  --cream-warm: #F4ECD4;
  --tint: #F1F4F9;            /* very pale navy tint, used for section backgrounds */
  --tint-warm: #FBF7EE;       /* very pale warm tint */
  --ink: #1F2A37;
  --muted: #6B7280;
  --hairline: rgba(27,42,78,0.08);
  --shadow-soft: 0 2px 12px rgba(27,42,78,0.04);
  --shadow-soft-lg: 0 8px 32px rgba(27,42,78,0.06);

  --radius-pill: 999px;
  --radius-card: 24px;
  --radius-input: 14px;

  --space-section: 96px;
  --space-section-sm: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.75;
  font-size: 17px;
  background: white;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--brass-deep); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ===== HEADER ===== */
header.site {
  background: white;
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo-link svg { display: block; height: 64px; width: auto; }
nav.primary ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
nav.primary a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy-soft);
  letter-spacing: 0.2px;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
}
nav.primary a:hover { color: var(--navy); border-bottom-color: var(--brass); }
nav.primary a.active { color: var(--navy); border-bottom-color: var(--brass); }

/* Pill button — defining Hope Anchor */
.btn, nav.primary a.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: white !important;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.1px;
  transition: background 0.2s, transform 0.15s;
  border: none;
  border-bottom: none !important;
}
.btn:hover, nav.primary a.btn:hover {
  background: var(--navy-deep);
  color: white !important;
  transform: translateY(-1px);
}
.btn.ghost {
  background: transparent;
  color: var(--navy) !important;
  border: 1.5px solid var(--navy) !important;
}
.btn.ghost:hover {
  background: var(--navy);
  color: white !important;
}
.btn.brass {
  background: var(--brass);
  color: var(--navy) !important;
}
.btn.brass:hover { background: var(--brass-deep); color: white !important; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 400; letter-spacing: -1.5px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.5px; }
h3 { font-size: 22px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 700; letter-spacing: 0.3px; }
p { margin-bottom: 1em; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brass-deep);
  margin-bottom: 16px;
}
.lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--navy-soft);
  max-width: 720px;
  margin-bottom: 32px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream) 60%, white 100%);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero .blob {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brass-soft) 0%, transparent 70%);
  top: -100px; right: -150px;
  z-index: 1;
  opacity: 0.6;
}
.hero .blob.two {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--tint) 0%, transparent 70%);
  top: 200px; right: 300px;
  opacity: 0.8;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ===== SECTIONS ===== */
section { padding: var(--space-section) 0; }
section.tint { background: var(--tint-warm); }
section.navy {
  background: var(--navy);
  color: rgba(255,255,255,0.92);
}
section.navy h2, section.navy h3 { color: white; }
section.navy .eyebrow { color: var(--brass); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { color: var(--navy-soft); font-size: 17px; }

/* ===== SOFT CARDS ===== */
.soft-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 36px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--hairline);
  transition: transform 0.2s, box-shadow 0.2s;
}
.soft-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-lg);
}
.soft-card .icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brass-soft);
  color: var(--brass-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.soft-card .icon-circle.navy {
  background: var(--tint);
  color: var(--navy);
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: start;
}

/* ===== FORMS ===== */
input, textarea, select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-input);
  font-family: inherit;
  font-size: 15px;
  background: white;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 4px var(--brass-soft);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

/* ===== FOOTER ===== */
footer.site {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 28px;
  margin-top: 0;
}
footer.site h4 {
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
footer.site a {
  color: rgba(255,255,255,0.7);
  font-size: 14.5px;
  display: block;
  padding: 4px 0;
}
footer.site a:hover { color: var(--brass); }
footer.site ul { list-style: none; }
.footer-top {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1.2fr;
  gap: 56px;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo svg { display: block; height: 70px; width: auto; margin-bottom: 20px; }
.footer-logo p { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.65); max-width: 320px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { display: inline; color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--brass); }

/* ===== BREADCRUMB / DOC ===== */
.breadcrumb {
  color: var(--muted);
  font-size: 14px;
}
.breadcrumb a { color: var(--navy-soft); }
.breadcrumb .sep { margin: 0 8px; color: var(--brass); }

/* Document/policy pages */
.doc-page { padding: 72px 0 96px; background: white; }
.doc-wrap { max-width: 760px; margin: 0 auto; padding: 0 28px; }
.doc-template-banner {
  background: var(--brass-soft);
  border-left: 4px solid var(--brass-deep);
  padding: 16px 22px;
  border-radius: 0 14px 14px 0;
  margin-bottom: 32px;
  font-size: 14.5px;
  color: var(--navy);
}
.doc-template-banner strong { display: block; margin-bottom: 4px; color: var(--brass-deep); }
.doc-content h1 { margin-bottom: 12px; }
.doc-content h2 { font-size: 26px; margin: 40px 0 16px; }
.doc-content h3 { font-size: 19px; margin: 28px 0 12px; }
.doc-content ul, .doc-content ol { margin: 0 0 1.2em 1.4em; }
.doc-content li { margin-bottom: 8px; }
.doc-meta {
  display: flex; gap: 24px;
  padding: 14px 0; margin-bottom: 32px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-size: 14px; color: var(--muted);
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .three-col { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  :root { --space-section: 64px; --space-section-sm: 48px; }
  .container { padding: 0 20px; }
  .hamburger { display: block; }
  nav.primary {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    border-top: 1px solid var(--hairline);
    padding: 16px 28px;
  }
  nav.primary.open { display: block; }
  nav.primary ul { flex-direction: column; align-items: stretch; gap: 0; }
  nav.primary a { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  header.site .container { position: relative; }
  .three-col, .two-col { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
}

/* ============================================================
   Compatibility classes for pages inherited from the legacy stack
   ============================================================ */

.legal { color: rgba(255,255,255,0.5); }

.page-hero {
  background: linear-gradient(180deg, var(--cream-warm) 0%, white 100%);
  padding: 80px 0 56px;
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { max-width: 720px; }

.accent { color: var(--brass-deep); }
.light { color: var(--navy-soft); }
.large { font-size: 19px; line-height: 1.65; }
.cream { background: var(--cream); }
.section-center { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.lead-paragraph { font-size: 18px; line-height: 1.7; color: var(--navy-soft); max-width: 720px; margin-bottom: 32px; }

/* Tick lists */
.tick-list { list-style: none; padding: 0; margin: 16px 0; }
.tick-list li {
  position: relative;
  padding: 6px 0 6px 30px;
  font-size: 15.5px;
  line-height: 1.6;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 16px; height: 16px;
  background: var(--brass);
  border-radius: 50%;
  display: inline-block;
}
.tick-list li::after {
  content: "";
  position: absolute;
  left: 4px; top: 16px;
  width: 8px; height: 4px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
}

/* Steps */
.steps { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 40px auto; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: flex-start;
  background: white;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  box-shadow: var(--shadow-soft);
}
.step-num {
  width: 44px; height: 44px;
  background: var(--brass-soft);
  color: var(--brass-deep);
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.step h4 { font-size: 17px; color: var(--navy); margin-bottom: 6px; text-transform: none; letter-spacing: 0; }
.step p { font-size: 15px; color: var(--navy-soft); margin: 0; }

/* Generic dark CTA banner */
.cta-banner-dark {
  background: var(--navy);
  color: white;
  padding: 64px 0;
  text-align: center;
  border-radius: var(--radius-card);
  margin: 56px 0;
}
.cta-banner-dark h2 { color: white; margin-bottom: 16px; }
.cta-banner-dark p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 24px; }

/* Generic card */
.card {
  background: white;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  box-shadow: var(--shadow-soft);
}
.card.cream { background: var(--cream); }

/* Grids commonly used on policy/services pages */
.grid { display: grid; gap: 24px; }
.who-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.compliance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.compliance-item {
  padding: 22px;
  background: var(--tint-warm);
  border-radius: 16px;
  border-left: 3px solid var(--brass);
}
.compliance-item h4 { font-size: 15.5px; color: var(--navy); margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
.compliance-item p { font-size: 14.5px; color: var(--navy-soft); margin: 0; line-height: 1.6; }

/* Accordion-ish standard cards */
.acc-card {
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}
.acc-card h4 { color: var(--navy); font-size: 16px; margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
.acc-card p { font-size: 15px; color: var(--navy-soft); margin: 0; line-height: 1.6; }

/* Standalone CTA actions row */
.ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }

/* Policy/doc table of contents */
.doc-toc {
  background: var(--tint-warm);
  border-radius: 16px;
  padding: 20px 26px;
  margin: 24px 0 36px;
  border-left: 3px solid var(--brass);
}
.doc-toc h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; color: var(--brass-deep); }
.doc-toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.doc-toc li { font-size: 14.5px; padding: 4px 0; }

/* "Why" section blocks */
.why h4 { color: var(--navy); margin-bottom: 8px; }
.why p { color: var(--navy-soft); }

@media (max-width: 760px) {
  .who-grid, .compliance-grid, .doc-toc ul { grid-template-columns: 1fr; columns: 1; }
}
