/* ============================================================
   HerGrace Initiative — Global Stylesheet
   Brand: Violet/Orchid purple + Charcoal on white
   ============================================================ */

:root {
  /* Brand palette (from logo) */
  --purple-900: #6a1f86;
  --purple-700: #8a2fae;
  --purple-600: #a23dc9;
  --purple-500: #b14fd8;   /* primary */
  --purple-400: #c77de0;   /* secondary / "INITIATIVE" tone */
  --purple-200: #e6c9f2;
  --purple-100: #f3e6fa;
  --lavender-bg: #faf5fe;

  --charcoal: #2b2b2b;     /* logo wordmark */
  --ink: #1f1f27;
  --body: #43414d;
  --muted: #6c6a76;

  --white: #ffffff;
  --off-white: #fdfbff;
  --line: #ece7f1;

  --gold: #e9b949;         /* warm accent for highlights */

  /* Typography */
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(106, 31, 134, 0.06);
  --shadow-md: 0 12px 34px rgba(106, 31, 134, 0.12);
  --shadow-lg: 0 24px 60px rgba(106, 31, 134, 0.18);
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--purple-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--purple-500); }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { color: var(--body); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--lavender-bg); }
.section--purple {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  color: #fff;
}
.section--purple h2, .section--purple h3 { color: #fff; }
.section--purple p { color: rgba(255,255,255,0.92); }

.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-600);
  margin-bottom: 14px;
}
.section--purple .eyebrow { color: var(--purple-200); }
.section-head { max-width: 720px; margin: 0 auto clamp(34px, 5vw, 56px); }
.section-head.left { margin-inline: 0; }
.lead { font-size: 1.16rem; color: var(--muted); }
.section--purple .lead { color: rgba(255,255,255,0.9); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn--primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; border-color: var(--purple-400); color: var(--purple-700); }
.btn--ghost:hover { background: var(--purple-100); color: var(--purple-700); }
.btn--white { background: #fff; color: var(--purple-700); }
.btn--white:hover { color: var(--purple-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline-white { background: transparent; border-color: rgba(255,255,255,0.7); color: #fff; }
.btn--outline-white:hover { background: rgba(255,255,255,0.14); color:#fff; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 700; color: var(--charcoal); font-size: 1.15rem; }
.brand__name span { color: var(--purple-500); }
.brand__tag { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--purple-400); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 8px;
}
.nav-links a:hover { background: var(--purple-100); color: var(--purple-700); }
.nav-links a.active { color: var(--purple-700); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 3px;
  transition: var(--transition);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #fbf3ff 0%, #f6ecfb 45%, #efe3fb 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px; top: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(177,79,216,0.22), transparent 68%);
  border-radius: 50%;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding: clamp(48px, 7vw, 92px) 0;
  position: relative;
  z-index: 1;
}
.hero h1 { color: var(--ink); }
.hero h1 .accent { color: var(--purple-600); }
.hero p.lead { margin-top: 18px; color: var(--body); }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute;
  bottom: -22px; left: -22px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  max-width: 240px;
}
.hero__badge .dot { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg,var(--purple-500),var(--purple-400)); display:grid; place-items:center; color:#fff; font-size:1.3rem; }
.hero__badge strong { font-family: var(--font-head); color: var(--ink); display:block; font-size: 0.98rem; }
.hero__badge span { font-size: 0.82rem; color: var(--muted); }

/* ---------- Stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat { text-align: center; padding: 8px; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--purple-600); line-height:1; }
.section--purple .stat__num { color:#fff; }
.stat__label { margin-top: 8px; font-size: 0.95rem; color: var(--muted); }
.section--purple .stat__label { color: rgba(255,255,255,0.85); }

/* ============================================================
   Cards / grids
   ============================================================ */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple-100), var(--purple-200));
  display: grid; place-items: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.98rem; color: var(--muted); }

/* Program cards with image */
.program-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display:flex; flex-direction: column;
}
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.program-card__img { aspect-ratio: 16/10; overflow:hidden; }
.program-card__img img { width:100%; height:100%; object-fit: cover; transition: transform .4s ease; }
.program-card:hover .program-card__img img { transform: scale(1.05); }
.program-card__body { padding: 24px 24px 28px; display:flex; flex-direction:column; flex:1; }
.tag {
  display:inline-block; font-family: var(--font-head); font-weight:600;
  font-size:0.72rem; letter-spacing:0.08em; text-transform:uppercase;
  color: var(--purple-700); background: var(--purple-100);
  padding: 5px 12px; border-radius: 30px; margin-bottom: 14px; align-self:flex-start;
}
.program-card h3 { margin-bottom: 10px; }
.program-card p { font-size: 0.97rem; color: var(--muted); }
.program-card .card-link { margin-top: 16px; font-weight:600; font-family:var(--font-head); }

/* Value list */
.value {
  display:flex; gap: 16px; align-items:flex-start;
  padding: 22px; background:#fff; border-radius: var(--radius-sm);
  border:1px solid var(--line);
}
.value .v-icon {
  flex-shrink:0; width:46px; height:46px; border-radius:12px;
  background: linear-gradient(135deg,var(--purple-500),var(--purple-400));
  color:#fff; display:grid; place-items:center; font-size:1.2rem; font-weight:700;
}
.value h4 { font-family: var(--font-head); color: var(--ink); margin-bottom: 4px; font-size:1.05rem; }
.value p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Split feature ---------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items:center; }
.split__media img { border-radius: 20px; box-shadow: var(--shadow-md); aspect-ratio: 5/4; object-fit: cover; width:100%; }
.split ul.ticks { margin-top: 18px; display:grid; gap: 12px; }
.ticks li { position:relative; padding-left: 32px; color: var(--body); }
.ticks li::before {
  content:"✓"; position:absolute; left:0; top:0;
  width:22px; height:22px; border-radius:50%;
  background: var(--purple-100); color: var(--purple-700);
  display:grid; place-items:center; font-size:0.8rem; font-weight:700;
}

/* ---------- Founder quote ---------- */
.quote-card {
  background:#fff; border-radius: var(--radius);
  padding: clamp(30px,5vw,56px); box-shadow: var(--shadow-md);
  border-left: 6px solid var(--purple-500);
}
.quote-card blockquote { font-family: var(--font-head); font-size: clamp(1.15rem,2.2vw,1.5rem); color: var(--ink); font-weight:500; line-height:1.5; }
.quote-card .cite { margin-top: 20px; font-weight:600; color: var(--purple-700); font-family: var(--font-head); }
.quote-card .cite span { display:block; color: var(--muted); font-weight:400; font-size:0.92rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align:center; }
.cta-band h2 { max-width: 640px; margin: 0 auto 14px; }
.cta-band .btn-row { margin-top: 26px; display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ============================================================
   Forms
   ============================================================ */
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display:flex; flex-direction:column; gap:7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight:600; font-size:0.9rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size:1rem;
  padding: 12px 14px; border:1px solid var(--line); border-radius: 10px;
  background:#fff; color: var(--ink); transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color: var(--purple-400); box-shadow: 0 0 0 3px var(--purple-100);
}
.field textarea { resize: vertical; min-height: 130px; }

/* Info tiles (contact) */
.info-tile { display:flex; gap:16px; align-items:flex-start; padding: 22px; background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm); }
.info-tile .i { width:46px;height:46px;border-radius:12px;background:var(--purple-100);color:var(--purple-700);display:grid;place-items:center;font-size:1.2rem;flex-shrink:0;}
.info-tile h4 { font-family:var(--font-head); font-size:1rem; color:var(--ink); margin-bottom:3px; }
.info-tile p, .info-tile a { font-size:0.95rem; color:var(--muted); }

/* ============================================================
   Page hero (interior pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  color:#fff; text-align:center; padding: clamp(56px,8vw,96px) 0;
  position:relative; overflow:hidden;
}
.page-hero::before{
  content:""; position:absolute; left:-100px; bottom:-120px;
  width:360px;height:360px;border-radius:50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 70%);
}
.page-hero h1 { color:#fff; position:relative; }
.page-hero p { color: rgba(255,255,255,0.92); max-width:620px; margin: 14px auto 0; position:relative; }
.breadcrumb { font-size:0.85rem; color: rgba(255,255,255,0.8); margin-bottom: 14px; position:relative; }
.breadcrumb a { color:#fff; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: #cfc9d8; padding: 64px 0 26px; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; }
.footer-brand .brand__name { color:#fff; }
.footer-brand p { color:#a49dae; font-size:0.94rem; margin-top:14px; max-width: 320px; }
.site-footer h4 { color:#fff; font-family:var(--font-head); font-size:1rem; margin-bottom:16px; }
.site-footer a { color:#cfc9d8; font-size:0.95rem; }
.site-footer a:hover { color: var(--purple-200); }
.footer-links li { margin-bottom: 10px; }
.footer-contact li { margin-bottom: 10px; color:#a49dae; font-size:0.94rem; display:flex; gap:10px; }
.socials { display:flex; gap:10px; margin-top:16px; }
.socials a { width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,0.08);display:grid;place-items:center;color:#fff;transition:var(--transition);}
.socials a:hover { background: var(--purple-500); }
.footer-bottom { margin-top:42px; padding-top:22px; border-top:1px solid rgba(255,255,255,0.1); display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:0.85rem; color:#8f889b; }

/* ---------- Reveal animation ---------- */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order:-1; max-width: 460px; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display:block; }
  .nav-links {
    position: absolute; top:100%; left:0; right:0;
    flex-direction: column; align-items: stretch;
    background:#fff; border-bottom:1px solid var(--line);
    padding: 12px 22px 20px; gap:4px;
    box-shadow: var(--shadow-md);
    display:none;
  }
  .nav-links.open { display:flex; }
  .nav-links a { padding: 12px 10px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width:100%; justify-content:center; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__badge { left: 0; }
}
