/* ============================================================
   RG CARE FOUNDATION — Design tokens & base styles
   Palette: Blue #2B6CB0 · Cream #F9DABB · Brown #6B5344 · Rose #C87070
   ============================================================ */

:root {
  /* ---- Brand palette ---- */
  --blue:        #2B6CB0;
  --blue-deep:   #235A95;
  --blue-darker: #173E68;
  --blue-tint:   #EAF1F8;   /* pale blue surface */
  --blue-tint-2: #DCE9F4;

  --cream:       #F9DABB;   /* signature warm band */
  --cream-soft:  #FDEEDD;   /* lighter cream surface */
  --cream-pale:  #FBF6EF;   /* warm canvas */

  --brown:       #6B5344;
  --brown-deep:  #4A3A2F;   /* strong headings */
  --brown-soft:  #8A7363;

  --rose:        #C87070;
  --rose-deep:   #A9534F;   /* rose text/hover */
  --rose-tint:   #F6E3E0;

  --white:       #ffffff;
  --ink:         #2E2620;   /* warm near-black body text */
  --ink-soft:    #6A5F55;   /* muted body */
  --line:        #ECE2D6;   /* warm hairline */
  --line-strong: #DDCFBF;

  --gold:        #C8A65A;   /* sparing trust/award accent */

  /* ---- Semantic surfaces ---- */
  --canvas:      var(--cream-pale);
  --card:        var(--white);

  /* ---- Type ---- */
  --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-sans:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif:   'Newsreader', Georgia, serif;

  /* ---- Radii ---- */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* ---- Shadow (warm, soft, layered) ---- */
  --sh-sm: 0 1px 2px rgba(74,58,47,.06), 0 1px 1px rgba(74,58,47,.04);
  --sh:    0 2px 6px rgba(74,58,47,.07), 0 8px 24px rgba(74,58,47,.08);
  --sh-lg: 0 6px 18px rgba(74,58,47,.10), 0 24px 60px rgba(74,58,47,.14);
  --sh-blue: 0 6px 18px rgba(43,108,176,.22), 0 2px 6px rgba(43,108,176,.18);
  --sh-rose: 0 6px 18px rgba(200,112,112,.26), 0 2px 6px rgba(200,112,112,.18);

  /* ---- Layout ---- */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  /* ---- Tweakable accent (set by JS) ---- */
  --accent: var(--blue);
  --accent-deep: var(--blue-deep);
  --accent-sh: var(--sh-blue);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.6;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brown-deep);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--accent-deep); text-decoration: none; }

/* ---- Eyebrow / micro-label ---- */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--rose);
  border-radius: 2px;
}
.eyebrow.is-center::before { display: none; }

/* ---- Section scaffolding ---- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: 1340px; }

/* ---- Buttons ---- */
.btn {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: var(--r-pill);
  padding: 15px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--accent-sh);
}
.btn-primary:hover { background: var(--accent-deep); }

.btn-rose { background: var(--rose); color: #fff; box-shadow: var(--sh-rose); }
.btn-rose:hover { background: var(--rose-deep); }

.btn-ghost {
  background: transparent;
  color: var(--brown-deep);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--brown); background: rgba(107,83,68,.05); }

.btn-on-dark {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
}
.btn-on-dark:hover { background: rgba(255,255,255,.24); }

.btn-lg { padding: 18px 34px; font-size: 17px; }
.btn-sm { padding: 11px 18px; font-size: 14px; }

/* ---- Cards ---- */
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  border: 1px solid var(--line);
}

/* ---- Chips / pills ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--blue-tint);
  color: var(--blue-darker);
}

/* ---- Image slot styling ---- */
image-slot {
  --is-bg: var(--cream-soft);
  background: var(--cream-soft);
}
image-slot::part(frame) { background: #ece2d4; }
image-slot::part(empty) { color: var(--brown-soft); }
image-slot::part(ring) { border-color: rgba(107,83,68,.30); }

/* circular pfps: no square backing — just a gold outline ring */
image-slot[shape="circle"] {
  background: transparent;
  --is-bg: transparent;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold);
}
image-slot[shape="circle"]::part(frame) { background: transparent; }

/* ---- Reveal (no entrance gating — content always visible) ---- */
.rg-reveal { }
.rg-reveal:has(> .eyebrow) { margin-bottom: 12px; }

/* ---- Focus ---- */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---- Utility ---- */
.muted { color: var(--ink-soft); }
.serif-q { font-family: var(--font-serif); font-style: italic; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* lucide icons */
.ico svg { width: 100%; height: 100%; display: block; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
