/* ============================================================
   Bloom Cycle — shared site styles
   Brand vocabulary lifted from existing Squarespace site + flyer:
     - hot pink/magenta primary, mustard/ochre accents
     - bold sans-serif display, friendly serif/sans body
     - playful hand-drawn squiggle motifs
     - reclaimed-timber warmth (cream/sand backgrounds)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette — pulled from the live site backgrounds + flyer */
  --bc-pink:       #d61a6a;   /* primary brand magenta */
  --bc-pink-deep: #b3134f;
  --bc-ochre:      #c98a2b;   /* warm timber/squiggle ochre */
  --bc-mustard:    #f4c020;   /* flyer yellow */
  --bc-orange:     #ef8a2a;
  --bc-green:      #1f7a3a;   /* deep botanical green */
  --bc-green-leaf: #2f9c4d;
  --bc-cream:      #fbf6ec;   /* page background */
  --bc-sand:       #f1e6cd;
  --bc-ink:        #1c1a17;
  --bc-ink-soft:   #4a443c;
  --bc-rule:       #e8dcc0;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 4px rgba(28,26,23,.06), 0 8px 24px rgba(28,26,23,.06);
  --shadow-md: 0 4px 10px rgba(28,26,23,.08), 0 18px 40px rgba(28,26,23,.10);
  --shadow-card: 0 1px 0 rgba(28,26,23,.04), 0 12px 32px rgba(28,26,23,.08);

  --container: 1200px;
  --container-narrow: 880px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--bc-ink);
  background: var(--bc-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--bc-pink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Typography ---------- */
.display, h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bc-ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 24px;
}
h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  margin: 0 0 20px;
}
h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  margin: 0 0 12px;
}

p { margin: 0 0 16px; max-width: 65ch; text-wrap: pretty; }

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bc-pink);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.lede {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--bc-ink-soft);
  font-weight: 400;
  max-width: 60ch;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 96px 0; position: relative; }
section.tight { padding: 64px 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--bc-rule);
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--bc-ink);
}
.brand-lockup img { width: 44px; height: 44px; border-radius: 8px; }
.brand-lockup .brand-name {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-lockup .brand-name em {
  color: var(--bc-pink);
  font-style: normal;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: var(--bc-ink);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--bc-sand); color: var(--bc-ink); }
.nav-links a.is-active { background: var(--bc-ink); color: #fff; }
.nav-links a.gov {
  color: var(--bc-green);
  font-weight: 600;
}
.nav-links a.gov:hover { background: rgba(31,122,58,.10); color: var(--bc-green); }
/* Header "Get a quote" button — keep button text colors from being overridden by .nav-links a */
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-dark { color: #fff; }
.nav-links a.btn-dark:hover { background: #000; color: #fff; }
.nav-links a.btn-outline { color: var(--bc-ink); }

/* ---------- Mobile nav toggle (hamburger + drawer) ---------- */
.nav-toggle {
  display: none;            /* shown only on small screens */
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--bc-rule);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background .15s ease, border-color .15s ease;
}
.nav-toggle:hover { background: var(--bc-sand); }
.nav-toggle-bars { display: block; width: 20px; height: 14px; position: relative; }
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--bc-ink);
  transition: transform .2s ease, opacity .15s ease, top .2s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav.is-open .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--bc-pink); color: #fff; }
.btn-primary:hover { background: var(--bc-pink-deep); }
.btn-dark { background: var(--bc-ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline {
  background: transparent;
  border-color: var(--bc-ink);
  color: var(--bc-ink);
}
.btn-outline:hover { background: var(--bc-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--bc-ink); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { background: var(--bc-sand); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Cards / Pills ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(214,26,106,.08);
  color: var(--bc-pink);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.tag.gov { background: rgba(31,122,58,.10); color: var(--bc-green); }
.tag.warm { background: rgba(201,138,43,.14); color: var(--bc-ochre); }
.tag.dark { background: var(--bc-ink); color: #fff; }

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--bc-rule);
}

/* ---------- Section helpers ---------- */
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.left { text-align: left; margin-left: 0; margin-right: 0; }

.bg-cream { background: var(--bc-cream); }
.bg-sand  { background: var(--bc-sand); }
.bg-ink   { background: var(--bc-ink); color: #fff; }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink p { color: rgba(255,255,255,.78); }
.bg-pink  { background: var(--bc-pink); color: #fff; }
.bg-pink h1, .bg-pink h2, .bg-pink h3 { color: #fff; }
.bg-green { background: var(--bc-green); color: #fff; }
.bg-green h1, .bg-green h2, .bg-green h3 { color: #fff; }

/* ---------- Squiggle motifs (the brand's signature) ---------- */
.squiggle {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.squiggle svg { width: 100%; height: 100%; display: block; }
.has-squiggles { position: relative; overflow: hidden; }
.has-squiggles > .container,
.has-squiggles > .container-narrow { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bc-ink);
  color: #cfc7b9;
  padding: 80px 0 32px;
}
.site-footer h4 {
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  margin: 0 0 18px;
  font-weight: 700;
}
.site-footer a { color: #cfc7b9; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.footer-brand p { color: rgba(255,255,255,.6); font-size: 14px; }
.cert-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.cert-row img {
  height: 56px;
  width: auto;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
}

/* ============================================================
   SHARED: Client logo wall · Credential badges · Recognition
   Used on Home + Government. Logos are unified to grayscale so the
   wall reads as one designed object; credential trust-marks stay in
   full colour because the colour IS the proof.
   ============================================================ */

/* ---- Client logo wall ---- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.logo-wall .cell {
  background: #fff;
  border: 1px solid var(--bc-rule);
  border-radius: 12px;
  height: 94px;
  display: grid;
  place-items: center;
  padding: 8px 14px;
}
.logo-wall .cell img {
  max-height: 66px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .62;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}
.logo-wall .cell:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}

/* ---- Credential trust-marks ---- */
.cred-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cred-card {
  background: #fff;
  border: 1px solid var(--bc-rule);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}
.cred-card img {
  height: 76px;
  width: 76px;
  object-fit: contain;
  flex-shrink: 0;
}
.cred-card .cred-name {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  margin: 0 0 4px;
  color: var(--bc-ink);
}
.cred-card .cred-meta {
  font-size: 13.5px;
  color: var(--bc-ink-soft);
  margin: 0;
  line-height: 1.4;
}

/* ---- Recognition / awards & programs ---- */
.recog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.recog-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--bc-rule);
  border-radius: var(--radius-sm);
}
.recog-item .marker {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(31,122,58,.12);
  color: var(--bc-green);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.recog-item .marker svg { width: 16px; height: 16px; }
.recog-item h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  margin: 2px 0 2px;
  color: var(--bc-ink);
  line-height: 1.25;
}
.recog-item p {
  font-size: 13px;
  color: var(--bc-ink-soft);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .cred-row { grid-template-columns: 1fr; }
  .recog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Utilities ---------- */
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row.center { justify-content: center; align-items: center; }
.stack-sm > * + * { margin-top: 8px; }
.stack-md > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 32px; }
.text-center { text-align: center; }
.muted { color: var(--bc-ink-soft); }
.mt-0 { margin-top: 0; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-header .nav { position: relative; flex-wrap: nowrap; }
  .nav-toggle { display: inline-flex; }
  /* drawer: hidden until .is-open */
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bc-cream);
    border-bottom: 1px solid var(--bc-rule);
    box-shadow: var(--shadow-md);
    padding: 12px 20px 18px;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    font-size: 16px;
  }
  .nav-links a.btn,
  .nav-links a.btn-dark {
    margin-left: 0 !important;
    margin-top: 6px;
    padding: 14px 18px !important;
    font-size: 16px !important;
  }
  section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .container, .container-narrow { padding: 0 20px; }
}
