/* ═══════════════════════════════════════════
   BJF — Components
   ═══════════════════════════════════════════ */

/* ── NAVIGATION ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--nav-height);
  background: var(--bjf-white);
  border-bottom: 1px solid var(--bjf-border);
  display: flex;
  align-items: center;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-10);
}

.site-nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav__logo img {
  height: 44px;
  width: auto;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.site-nav__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--bjf-text-secondary);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
}

.site-nav__link:hover {
  color: var(--bjf-purple);
  border-bottom-color: var(--bjf-purple-tint);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 11px 24px;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(
    135deg,
    var(--bjf-violet) 0%,
    var(--bjf-plum) 55%,
    var(--bjf-cerise) 100%
  );
  color: var(--bjf-white);
  border-color: transparent;
}

.btn--primary:hover {
  background: linear-gradient(
    135deg,
    #5A2578 0%,
    #651E50 55%,
    #9E2E5E 100%
  );
  border-color: transparent;
  color: var(--bjf-white);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--bjf-violet) 0%, var(--bjf-plum) 55%, var(--bjf-cerise) 100%) border-box;
  border: 4px solid transparent;
  color: var(--bjf-purple);
}

.btn--outline:hover {
  background:
    linear-gradient(var(--bjf-purple-pale), var(--bjf-purple-pale)) padding-box,
    linear-gradient(135deg, #5A2578 0%, #651E50 55%, #9E2E5E 100%) border-box;
  border-color: transparent;
  color: var(--bjf-purple-deep);
}

.btn--white {
  background: var(--bjf-white);
  color: var(--bjf-purple);
  border-color: var(--bjf-white);
}

.btn--white:hover {
  background: var(--bjf-purple-tint);
  border-color: var(--bjf-purple-tint);
  color: var(--bjf-purple-deep);
  box-shadow: var(--shadow-md);
}

.btn--white-outline {
  background: transparent;
  color: var(--bjf-white);
  border-color: rgba(255,255,255,0.5);
}

.btn--white-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--bjf-white);
}

.btn--lg {
  font-size: var(--text-base);
  padding: 15px 36px;
}

.btn--sm {
  font-size: var(--text-xs);
  padding: 8px 18px;
}

.btn--full {
  width: 100%;
}

/* ── URGENCY BANNER ── */
.urgency-banner {
  background: linear-gradient(
    to right,
    #3E1850 0%,
    #4E2468 40%,
    #3E1850 100%
  );
  color: var(--bjf-white);
  text-align: center;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.5;
}

.urgency-banner strong {
  color: #F4B942;
  font-weight: 600;
}

.urgency-banner a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

/* ── STATUS PILL ── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F4B942;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

/* ── DONATION CARD ── */
.donate-card {
  background: var(--bjf-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
}

.donate-card .donation-frequency {
  margin-bottom: var(--space-6);
}

.donate-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bjf-text);
  margin-bottom: var(--space-1);
}

.donate-card__sub {
  font-size: var(--text-sm);
  color: var(--bjf-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.amount-btn {
  border: 2px solid var(--bjf-border);
  background: var(--bjf-cream);
  border-radius: var(--radius-md);
  padding: 11px var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
  color: var(--bjf-purple);
}

.amount-btn:hover {
  border-color: var(--bjf-purple-soft);
  background: var(--bjf-purple-pale);
}

.amount-btn.is-active {
  border-color: var(--bjf-purple);
  background: var(--bjf-purple);
  color: var(--bjf-white);
}

.custom-amount-wrap {
  position: relative;
  margin-bottom: var(--space-5);
}

.custom-amount-wrap__symbol {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--bjf-text-muted);
  font-size: var(--text-base);
  pointer-events: none;
  font-family: var(--font-heading);
}

.custom-amount-wrap input {
  width: 100%;
  border: 2px solid var(--bjf-border);
  border-radius: var(--radius-md);
  padding: 11px 14px 11px 30px;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bjf-text);
  background: var(--bjf-cream);
  transition: border-color var(--transition-fast);
}

.custom-amount-wrap input:focus {
  border-color: var(--bjf-purple);
  outline: none;
  box-shadow: var(--focus-ring);
}

.custom-amount-wrap input::placeholder {
  font-weight: 400;
  color: var(--bjf-text-muted);
  letter-spacing: 0;
}

/* ── PROGRESS BAR ── */
.progress {
  margin: var(--space-6) 0 var(--space-2);
}

.progress__bar-bg {
  height: 8px;
  background: var(--bjf-purple-tint);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--bjf-violet) 0%,
    var(--bjf-plum) 50%,
    var(--bjf-cerise) 100%
  );
  border-radius: var(--radius-pill);
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress__labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--bjf-text-muted);
  margin-top: var(--space-2);
  font-family: var(--font-body);
}

.progress__labels strong {
  color: var(--bjf-purple);
  font-weight: 600;
}

.donate-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--bjf-text-muted);
  margin-top: var(--space-4);
}

/* ── STAT CARDS ── */
.stat-inline {
  text-align: left;
}

.stat-inline p {
  color: var(--bjf-white);
  font-size: 0.9375rem; /* 15px — 2px below global p */
}

.stat-inline__value {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bjf-white);
  line-height: 1;
  margin-bottom: 2px;
}


/* ── IMPACT CARDS (dark strip) ── */
/*
 * Cards use a very subtle gradient border to echo the logo's
 * layered facet planes against the dark background.
 */
.impact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  border-top: 2px solid rgba(196, 168, 216, 0.35); /* lavender top facet */
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle inner glow — mimics the translucent facet overlap in the logo */
.impact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(196, 168, 216, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.impact-card__num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bjf-white);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.impact-card__desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  max-width: 20ch;
  margin: 0 auto;
}

/* ── SERVICE CARDS ── */
.service-card {
  background: var(--bjf-white);
  border: 1px solid var(--bjf-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bjf-violet) 0%, var(--bjf-plum) 55%, var(--bjf-cerise) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--bjf-white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bjf-text);
  margin-bottom: var(--space-2);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--bjf-text-muted);
  line-height: 1.7;
  max-width: none;
}

/* ── QUOTE CARDS ── */
.quote-card {
  background-image:
    linear-gradient(rgba(45, 9, 51, 0.45), rgba(45, 9, 51, 0.45)),
    url('../images/hero-background.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6) var(--space-6);
  position: relative;
}

.quote-card__mark {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.28);
  opacity: 1;
  position: absolute;
  top: 8px;
  left: 16px;
  line-height: 1;
  pointer-events: none;
}

.quote-card__text {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.90);
  padding-top: var(--space-5);
  max-width: none;
}

/* ── CEO QUOTE ── */
.ceo-quote-card {
  background:
    linear-gradient(rgba(45, 9, 51, 0.65), rgba(45, 9, 51, 0.65)),
    url('../images/box-background.png') center center / cover no-repeat;
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  position: relative;
  overflow: hidden;
}

.ceo-quote-card__mark {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--bjf-white);
  opacity: 0.15;
  position: absolute;
  top: 12px;
  left: 24px;
  line-height: 1;
  pointer-events: none;
}

.ceo-quote-card__text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.65;
  color: var(--bjf-white);
  padding-top: var(--space-5);
  margin-bottom: var(--space-6);
  max-width: none;
}

.ceo-quote-card__byline {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ── STAKE LIST ── */
.stake-list {
  list-style: none;
  margin-top: 1.5rem;
}

.stake-list__item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--bjf-border);
  font-size: var(--text-base);
  color: var(--bjf-text-secondary);
  line-height: 1.65;
}

.stake-list__item:last-child {
  border-bottom: none;
}

.stake-list__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bjf-violet) 0%, var(--bjf-plum) 55%, var(--bjf-cerise) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.stake-list__icon svg {
  width: 13px;
  height: 13px;
  stroke: var(--bjf-white);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── DONATION EXAMPLES ── */
.donation-example {
  background: var(--bjf-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--bjf-border);
  padding: var(--space-4);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.donation-example::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bjf-violet), var(--bjf-plum), var(--bjf-cerise));
}

.donation-example__amount {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-3);
  max-width: none;
  background: linear-gradient(135deg, var(--bjf-violet), var(--bjf-cerise));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.donation-example__desc {
  font-size: var(--text-sm);
  color: var(--bjf-text-muted);
  line-height: 1.55;
  max-width: none;
}

/* ── DONATION FREQUENCY TOGGLE ── */
.donation-frequency {
  display: flex;
  width: 100%;
  background: var(--bjf-purple-pale);
  border: 1px solid var(--bjf-border);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: var(--space-8);
  gap: var(--space-1);
}

.frequency-btn {
  flex: 1;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 9px 0;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--bjf-text-muted);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.frequency-btn--active {
  background: linear-gradient(135deg, var(--bjf-violet) 0%, var(--bjf-plum) 55%, var(--bjf-cerise) 100%);
  color: var(--bjf-white);
}

/* ── HELP CARDS ── */
.help-card {
  background: var(--bjf-white);
  border: 1px solid var(--bjf-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.help-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.help-card .help-card__num {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bjf-white);
  line-height: 1;
  margin-bottom: var(--space-5);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bjf-violet) 0%, var(--bjf-plum) 55%, var(--bjf-cerise) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bjf-text);
  margin-bottom: var(--space-3);
}

.help-card p {
  font-size: var(--text-sm);
  color: var(--bjf-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: none;
}

/* ── TIMELINE ── */
.timeline {
  position: relative;
  padding-left: var(--space-8);
  border-left: 2px solid var(--bjf-border);
}

.timeline__item {
  position: relative;
  margin-bottom: var(--space-8);
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 7px);
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--bjf-purple);
  border-radius: 50%;
  border: 3px solid var(--bjf-cream);
  box-shadow: 0 0 0 2px var(--bjf-purple);
}

.timeline__item--alert {
  background: rgba(var(--bjf-danger-rgb), 0.08);
  border: 1px solid rgba(var(--bjf-danger-rgb), 0.20);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}

.timeline__item--alert::before {
  background: var(--bjf-danger);
  box-shadow: 0 0 0 2px var(--bjf-danger);
}

.timeline__year {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bjf-purple-mid);
  margin-bottom: 3px;
}

.timeline__item--alert .timeline__year {
  color: var(--bjf-danger);
  font-size: var(--text-sm);
}

.timeline__text {
  font-size: var(--text-sm);
  color: var(--bjf-text-secondary);
  line-height: 1.65;
  max-width: none;
}

/* ── IMAGE PLACEHOLDER / PHOTO SECTIONS ── */
.photo-placeholder {
  background: var(--bjf-purple-tint);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder__label {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--bjf-purple);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── JUSTGIVING ── */
.jg-embed-wrap {
  background: var(--bjf-cream);
  border: 1px solid var(--bjf-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-top: var(--space-8);
}

.jg-placeholder {
  background: var(--bjf-purple-tint);
  border: 2px dashed var(--bjf-purple-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-6);
  text-align: center;
  color: var(--bjf-purple);
}

.jg-placeholder strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.jg-placeholder p {
  font-size: var(--text-sm);
  color: var(--bjf-purple-mid);
  max-width: none;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--bjf-text);
  color: rgba(255,255,255,0.6);
  padding: var(--space-12) 0 var(--space-8);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

.site-footer__brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  margin-top: var(--space-4);
  max-width: 30ch;
  line-height: 1.65;
}

.site-footer__logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.site-footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-4);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.site-footer__links a:hover {
  color: var(--bjf-white);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

/* ── HAMBURGER (mobile nav) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--bjf-text);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
