/* =========================================================================
   I Am My Sister's Keeper — custom styles
   Layered on top of Tailwind (CDN) for polish & animation.
   ========================================================================= */

:root {
  --plum: #4A1D45;
  --plum-900: #2C1129;
  --gold: #C99A4B;
  --gold-light: #E3C181;
  --rose: #D87FA0;
  --cream: #FBF7F2;
}

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { overflow-x: hidden; }

/* ---------- Typography helpers ---------- */
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
}

/* ---------- Logo mark ---------- */
.logo-mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--plum), var(--rose));
  color: #fff;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(74, 29, 69, 0.25);
}
.logo-mark--light {
  background: linear-gradient(135deg, var(--gold), var(--rose));
}

/* ---------- Navbar ---------- */
#navbar { background: transparent; }
.nav-brand { color: #fff; }
.nav-brand-sub { color: rgba(255,255,255,0.7); }
.nav-link {
  position: relative;
  color: rgba(255,255,255,0.9);
  padding-bottom: 4px;
  transition: color .25s;
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold-light);
  transition: width .3s ease;
}
.nav-link:hover::after,
.nav-link-active::after { width: 100%; }
.nav-link-active { color: #fff; }

/* Scrolled state — solid background, dark text */
#navbar.scrolled {
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(43, 17, 41, 0.08);
}
#navbar.scrolled .nav-brand { color: var(--plum-900); }
#navbar.scrolled .nav-brand-sub { color: var(--gold-dark, #A87E32); }
#navbar.scrolled .nav-link { color: #5b4a57; }
#navbar.scrolled .nav-link-active { color: var(--plum); }

/* ---------- Buttons ---------- */
.btn-gold, .btn-outline, .btn-plum {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s;
  cursor: pointer;
}
.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 8px 20px rgba(201, 154, 75, 0.3);
}
.btn-gold:hover { background: var(--gold-dark, #A87E32); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(201,154,75,.4); }

.btn-plum { background: var(--plum); color: #fff; }
.btn-plum:hover { background: var(--plum-900); transform: translateY(-2px); }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,.6);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background:
    radial-gradient(120% 120% at 80% 10%, rgba(216,127,160,.35), transparent 55%),
    radial-gradient(120% 120% at 10% 90%, rgba(201,154,75,.25), transparent 50%),
    linear-gradient(135deg, #3E1839 0%, #4A1D45 45%, #5B2455 100%);
  color: #fff;
  overflow: hidden;
}
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .5;
  animation: float 14s ease-in-out infinite;
}
.hero-blob--1 { width: 360px; height: 360px; background: var(--rose); top: -80px; right: 8%; }
.hero-blob--2 { width: 300px; height: 300px; background: var(--gold); bottom: -60px; left: 4%; animation-delay: -6s; }
@keyframes float {
  0%,100% { transform: translateY(0) translateX(0) scale(1); }
  50%     { transform: translateY(-30px) translateX(20px) scale(1.06); }
}

.page-hero {
  position: relative;
  padding: 11rem 0 5rem;
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(216,127,160,.3), transparent 55%),
    linear-gradient(135deg, #3E1839 0%, #4A1D45 60%, #5B2455 100%);
  color: #fff;
  overflow: hidden;
}

/* ---------- Sub-grid card styles ---------- */
.pillar-card, .focus-card {
  background: #fff;
  border: 1px solid rgba(74,29,69,.06);
  border-radius: 1.25rem;
  padding: 2.25rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
  box-shadow: 0 1px 2px rgba(43,17,41,.04);
}
.pillar-card:hover, .focus-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(74,29,69,.12);
  border-color: rgba(201,154,75,.3);
}
.icon-badge {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(216,127,160,.18), rgba(201,154,75,.18));
  color: var(--plum);
  margin-bottom: 1.4rem;
}

/* ---------- Stats ---------- */
.stat-value {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--gold), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Board cards ---------- */
.board-card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(74,29,69,.08);
  transition: transform .4s ease, box-shadow .4s ease;
}
.board-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(74,29,69,.16); }
.board-photo {
  aspect-ratio: 4 / 5;            /* taller portrait so the full face shows */
  object-fit: cover;
  object-position: 50% 18%;       /* bias toward the top so heads aren't cut */
  width: 100%;
  background: linear-gradient(135deg, var(--plum), var(--rose));
}
.board-photo-fallback {
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--plum), var(--rose));
  color: #fff; font-family: 'Fraunces', serif; font-size: 3rem;
}

/* ---------- Quote ---------- */
.quote-block {
  position: relative;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.55;
  max-width: 46rem;              /* keep it readable + prevent overflow */
  margin-inline: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ---------- Misc ---------- */
.divider-leaf {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  color: var(--gold);
}
.divider-leaf::before, .divider-leaf::after {
  content: ""; height: 1px; width: 60px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider-leaf::after { background: linear-gradient(90deg, var(--gold), transparent); }

.footer-head {
  font-family: 'Fraunces', serif;
  color: var(--gold-light);
  font-size: 1rem;
  margin-bottom: 1.1rem;
}
.footer-link { transition: color .2s, padding-left .2s; }
.footer-link:hover { color: var(--gold-light); padding-left: 4px; }

.prose-lead p { margin-bottom: 1.4rem; }
.prose-lead p:last-child { margin-bottom: 0; }

/* Reveal helper for non-AOS bits */
[data-aos] { pointer-events: auto; }
