/* =====================================================================
   The Bloomers Trust — marketing site
   One shared stylesheet. Brand tokens first, then base, layout,
   components, and page-specific bits. Mobile-first.
   ===================================================================== */

/* ---- Brand tokens ---------------------------------------------------- */
:root {
  --pink:        #CF2255;   /* primary — WCAG-AA on white, matches CRM emails */
  --pink-dark:   #A61743;   /* hover / active */
  --pink-tint:   #FBEAF0;   /* soft wash backgrounds */
  --pink-tint-2: #F6DCE6;   /* slightly deeper wash */
  --lav:         #565676;   /* muted lavender-grey from the logo (AA on white) */
  --lav-tint:    #EEEEF4;
  --ink:         #22242B;   /* body text */
  --ink-soft:    #4C4F5A;   /* secondary text */
  --line:        #E7E4E9;   /* hairlines */
  --bg:          #FFFFFF;
  --bg-alt:      #FAF7F8;   /* alternating section wash */
  --white:       #FFFFFF;

  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(34, 36, 43, .08);
  --shadow-lg: 0 18px 48px rgba(34, 36, 43, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

/* ---- Reset-ish ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--pink-dark); text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); letter-spacing: -.015em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 4px; }

/* ---- Layout helpers -------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--pink-tint); }
.center { text-align: center; }
.narrow { max-width: 720px; margin-inline: auto; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 700; color: var(--pink); margin-bottom: .6rem;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); }
.stack > * + * { margin-top: 1rem; }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; cursor: pointer;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--pink); color: var(--white); }
.btn--primary:hover { background: var(--pink-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--pink); border-color: var(--pink); }
.btn--ghost:hover { background: var(--pink); color: var(--white); }
.btn--white { background: var(--white); color: var(--pink); }
.btn--white:hover { background: var(--pink-tint); color: var(--pink-dark); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---- Header ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 20px; max-width: var(--maxw); margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: auto; }
.brand span { font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.1; }
.brand span small { display: block; font-size: .68rem; font-weight: 600; color: var(--lav); letter-spacing: .04em; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .3rem; }
.nav-menu a {
  color: var(--ink-soft); font-weight: 600; padding: .5rem .75rem; border-radius: 8px;
  display: inline-block;
}
.nav-menu a:hover { color: var(--pink); background: var(--pink-tint); text-decoration: none; }
.nav-menu a[aria-current="page"] { color: var(--pink); }
.nav-menu .nav-cta { margin-left: .4rem; }

/* Mobile nav */
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; inset: 62px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 1rem 20px 1.4rem; box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .28s var(--ease);
    max-height: calc(100vh - 62px); overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { padding: .8rem .6rem; font-size: 1.05rem; }
  .nav-menu .nav-cta { margin: .5rem 0 0; }
  .nav-menu .btn { width: 100%; }
}
@media (min-width: 921px) { .nav-toggle { display: none; } }
.nav-menu .nav-cta + .nav-cta { margin-left: 0; }

/* ---- Hero ------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 480px at 82% -8%, var(--pink-tint) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
}
.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2.5rem;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { margin-bottom: .35em; }
.hero .lede { max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__art {
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--pink-tint) 100%);
  border-radius: 28px; padding: 2rem; box-shadow: var(--shadow-lg);
}
.hero__art img { width: min(320px, 80%); filter: drop-shadow(0 12px 24px rgba(207,34,85,.18)); }
@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero .lede { max-width: none; }
  .hero__cta { justify-content: center; }
  .hero__art { order: -1; }
  .hero__art img { width: min(220px, 60%); }
}

/* ---- Stat strip ------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(2rem, 5vw, 2.8rem); color: var(--pink); letter-spacing: -.02em; line-height: 1; }
.stat span { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---- Cards / grids --------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); height: 100%;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--pink-tint); color: var(--pink); margin-bottom: 1rem; font-size: 1.4rem;
}
.card__meta { font-size: .82rem; color: var(--lav); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* Pills / item chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1.4rem 0 0; list-style: none; }
.chips li {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem 1rem; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow);
}

/* Two-up mission/vision */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 720px) { .mv { grid-template-columns: 1fr; } }
.mv .card { border-top: 4px solid var(--pink); }

/* ---- Call-to-action band -------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 46ch; margin-inline: auto; }
.cta-band .btn { margin-top: 1.4rem; }

/* ---- Forms ----------------------------------------------------------- */
.form { display: grid; gap: 1rem; max-width: 640px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  font: inherit; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-tint); }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; } /* honeypot */

/* Inline newsletter */
.subscribe { display: flex; gap: .6rem; flex-wrap: wrap; max-width: 460px; }
.subscribe input { flex: 1 1 220px; }

/* ---- Info / contact list -------------------------------------------- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .ico { color: var(--pink); flex: 0 0 auto; font-size: 1.2rem; line-height: 1.4; }
.info-list a { font-weight: 600; }

/* ---- News teaser (home) --------------------------------------------- */
.news-card time { display: block; }

/* ---- Empty state ----------------------------------------------------- */
.empty {
  text-align: center; padding: 3rem 1rem; border: 1px dashed var(--line);
  border-radius: var(--radius); background: var(--bg-alt); color: var(--ink-soft);
}
.empty .big { font-size: 2.4rem; margin-bottom: .5rem; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { background: var(--ink); color: #C9CBD4; padding: 3rem 0 1.6rem; margin-top: 2rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--pink-tint); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1.1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; margin-bottom: .8rem; }
.footer-brand img { width: 40px; background: #fff; border-radius: 8px; padding: 3px; }
.footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.socials { display: flex; gap: .7rem; margin-top: 1rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1);
}
.socials a:hover { background: var(--pink); }
.socials svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.2rem; padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: space-between;
  font-size: .85rem; color: #9598A4;
}
.footer-bottom a { color: #9598A4; }
.footer-bottom a:hover { color: #fff; }

/* ---- Page hero (interior pages) ------------------------------------- */
.page-hero { background: linear-gradient(180deg, var(--pink-tint) 0%, #fff 100%); padding: clamp(2.4rem, 6vw, 4rem) 0 clamp(1.6rem, 4vw, 2.4rem); }
.page-hero .eyebrow { color: var(--pink-dark); }
.page-hero p { max-width: 60ch; }

/* ---- Prose (news posts, policy text) -------------------------------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
.prose time { color: var(--lav); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---- Utility --------------------------------------------------------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
