/* WhyUnite — clean white editorial theme over Bootstrap 5.3 */

:root {
  --primary: #1B2A4A;
  --accent: #C9A227;
  --accent-dark: #A9861B;
  --accent-soft: #F7F1DE;
  --bg: #FFFFFF;
  --bg-alt: #F8F9FB;
  --text: #2B2F36;
  --text-muted: #6B7280;
  --border-light: rgba(27, 42, 74, 0.10);
  --shadow-light: 0 2px 8px rgba(27, 42, 74, 0.06);
  --shadow-medium: 0 6px 24px rgba(27, 42, 74, 0.10);
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 1.125rem;
  line-height: 1.7;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
main { flex: 1; }

h1, h2, h3, h4, .navbar-brand, .display-hero {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 600;
}

a { color: var(--primary); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

/* ---------- navbar ---------- */
.navbar {
  background: var(--bg);
  padding: 0.9rem 0;
  transition: box-shadow 0.25s ease;
}
.navbar.scrolled { box-shadow: var(--shadow-light); }
.navbar-brand { font-size: 1.5rem; color: var(--primary) !important; }
.navbar-brand .brand-accent { color: var(--accent); }
.navbar .nav-link { color: var(--text); font-size: 1rem; font-weight: 500; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--accent-dark); }
.dropdown-menu { border: none; box-shadow: var(--shadow-medium); border-radius: 0.5rem; }
.dropdown-item { padding: 0.5rem 1.25rem; }
.dropdown-item:hover { background: var(--accent-soft); }

/* ---------- buttons ---------- */
.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: #24365c;
  --bs-btn-hover-border-color: #24365c;
  --bs-btn-active-bg: #24365c;
  --bs-btn-active-border-color: #24365c;
  border-radius: 2rem;
  padding: 0.6rem 1.6rem;
  font-weight: 500;
}
.btn-accent {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  border-radius: 2rem;
  padding: 0.6rem 1.6rem;
  font-weight: 500;
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  border-radius: 2rem;
  padding: 0.6rem 1.6rem;
  font-weight: 500;
}

/* ---------- layout helpers ---------- */
.section-alt { background: var(--bg-alt); }
.reading { max-width: 760px; margin-left: auto; margin-right: auto; }
.eyebrow {
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-body);
}

/* ---------- hero ---------- */
.hero { padding: 5.5rem 0 4.5rem; text-align: center; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 600; margin-bottom: 1rem; }
.hero .lead { color: var(--text-muted); max-width: 640px; margin: 0 auto 2rem; font-size: 1.25rem; }
.hero-star {
  position: absolute; inset: auto;
  top: -120px; right: -120px; width: 380px; height: 380px;
  opacity: 0.55; pointer-events: none;
}

/* ---------- cards ---------- */
.card {
  border: none;
  box-shadow: var(--shadow-light);
  border-radius: 0.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: var(--bg);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-medium); }
.card .card-title { font-size: 1.15rem; }
.card a.stretched-link { text-decoration: none; }
.topic-count { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- accordions ---------- */
.accordion { --bs-accordion-border-color: transparent; }
.accordion-item { border: none; border-bottom: 1px solid var(--border-light); background: transparent; }
.accordion-button {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  padding: 1.15rem 0.5rem;
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) { color: var(--accent-dark); background: transparent; }
.accordion-button::after { filter: hue-rotate(190deg) saturate(3); }
.accordion-body { padding: 0 0.5rem 1.5rem; color: var(--text); }
.accordion-body p:last-child { margin-bottom: 0; }
.anchor-link { opacity: 0; margin-left: 0.5rem; font-size: 0.85em; text-decoration: none; transition: opacity 0.2s; }
.accordion-button:hover .anchor-link { opacity: 0.6; }

/* ---------- video facade ---------- */
.video-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--primary);
  border: 0;
  padding: 0;
  cursor: pointer;
  box-shadow: var(--shadow-light);
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; transition: opacity 0.2s, transform 0.3s; }
.video-facade:hover img { opacity: 1; transform: scale(1.02); }
.video-facade .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(27, 42, 74, 0.85);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.video-facade:hover .play-btn { background: var(--accent); }
.video-facade .play-btn svg { margin-left: 4px; }
.video-wrap { max-width: 720px; }
.video-title { font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--primary); margin-top: 0.6rem; }
.video-meta { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- books ---------- */
.book-cover {
  border-radius: 0.4rem;
  box-shadow: var(--shadow-medium);
  max-width: 220px;
  width: 100%;
  height: auto;
}
.badge-unavailable {
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
}

/* ---------- forms ---------- */
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.15);
}
.form-label { font-weight: 500; }

/* ---------- footer ---------- */
footer.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
  margin-top: 4.5rem;
  font-size: 0.95rem;
}
footer.site-footer a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
footer.site-footer a:hover { color: var(--accent); }
footer.site-footer .footer-brand { font-family: var(--font-heading); font-size: 1.3rem; color: #fff; }
footer.site-footer .footer-brand .brand-accent { color: var(--accent); }
footer.site-footer hr { border-color: rgba(255, 255, 255, 0.15); opacity: 1; }

/* ---------- breadcrumbs ---------- */
.breadcrumb { font-size: 0.9rem; margin: 1.25rem 0 0; }
.breadcrumb a { text-decoration: none; color: var(--text-muted); }
.breadcrumb-item.active { color: var(--text); }

/* ---------- cookie banner ---------- */
#cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 1080;
  max-width: 560px; margin: 0 auto;
  background: var(--bg); border-radius: 0.75rem;
  box-shadow: var(--shadow-medium);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-light);
}

/* ---------- faq filter ---------- */
.faq-filter { max-width: 480px; }

@media (max-width: 575.98px) {
  body { font-size: 1.05rem; }
  .hero { padding: 3.5rem 0 3rem; }
}
