/* =========================================================
   Premier Nsabodie — homepage styles
   Requires base.css first (shared tokens, resets, buttons).
   ========================================================= */

/* ---------- Adinkra stamp pattern (adinkrahene circles) ----------
   Used as a repeating "stamped cloth" texture on dark sections. */
.hero,
.access {
  background-color: var(--ink);
  background-image: var(--adinkra-stamp);
  color: var(--cloth);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: var(--ink);
  color: var(--cloth);
  border-bottom: 1px solid rgba(241, 233, 219, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand-mark { color: var(--kobene); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.8rem);
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  opacity: 0.85;
}

.site-nav a:hover,
.site-nav a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.nav-cta {
  padding: 0.45rem 1rem;
  background: var(--kobene);
  border-radius: 999px;
  opacity: 1 !important;
}

.nav-cta:hover,
.nav-cta:focus-visible { background: var(--kobene-dk); text-decoration: none !important; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 2.5rem); }

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--kobene);
  /* kobene reads dark on kuntunkuni; lift it slightly */
  filter: brightness(1.55);
}

.lede {
  max-width: 34rem;
  font-size: 1.08rem;
  opacity: 0.88;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Buttons ----------
   Base look (kobene pill) comes from base.css; .btn-ghost is the
   only homepage-specific modifier. */
.btn-ghost {
  background: transparent;
  color: var(--cloth);
  border: 1.5px solid rgba(241, 233, 219, 0.4);
}
.btn-ghost:hover { border-color: var(--cloth); }

/* ---------- Memorial card ---------- */
.memorial-card {
  background: var(--cloth);
  color: var(--ink);
  border-radius: 14px;
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  transform: rotate(1.2deg);
}

.memorial-band {
  height: 6px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    var(--kobene) 0 18px,
    var(--ink) 18px 36px
  );
  margin-bottom: 1.1rem;
}

.memorial-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--kobene);
}

.memorial-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  margin-top: 0.25rem;
}

.memorial-dates { font-size: 0.9rem; opacity: 0.7; margin-bottom: 1rem; }

.donation-feed { list-style: none; border-top: 1px solid var(--cloth-dim); }

.donation-feed li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--cloth-dim);
  font-size: 0.95rem;
}

.donor small { display: block; font-size: 0.75rem; opacity: 0.6; }

.amount { font-family: var(--font-mono); white-space: nowrap; }

.memorial-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.9rem;
  font-size: 0.9rem;
}

.memorial-total strong {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--kobene);
}

/* ---------- Sections (light) ---------- */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 2.2rem;
}

/* How it works — a real sequence, so numbers earn their place */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  counter-reset: step;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cloth);
  font-family: var(--font-mono);
  margin-bottom: 0.9rem;
}

.step h3, .reason h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.step p, .reason p { font-size: 0.97rem; opacity: 0.85; }

/* Why — light band with a subtle tonal shift */
.why { background: var(--cloth-dim); }

.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
}

.reason-mark { color: var(--kobene); margin-bottom: 0.8rem; display: inline-block; }

/* ---------- Access (portal cards) ---------- */
.access-inner { text-align: center; max-width: 780px; }

.access .section-title { margin-bottom: 0.6rem; }

.access-lede { opacity: 0.85; margin-bottom: 2.4rem; }

.portals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  text-align: left;
}

.portal-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: rgba(241, 233, 219, 0.06);
  border: 1px solid rgba(241, 233, 219, 0.18);
  border-radius: 14px;
  padding: 1.8rem;
}

.portal-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
}

.portal-card p { flex: 1; opacity: 0.85; font-size: 0.97rem; }

.portal-card .btn { align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cloth);
  text-align: center;
  padding: 1.4rem 1rem;
  font-size: 0.85rem;
  border-top: 1px solid rgba(241, 233, 219, 0.12);
  opacity: 0.95;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .memorial-card { max-width: 420px; transform: none; }
  .steps, .reasons, .portals { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-nav a:not(.nav-cta) { display: none; }
}