/* ==========================================================================
   Growing Words Learning — Brand Design System
   Warm Earth / Copper: the warmth of evening, aged copper — a symbol of
   wellbeing and connection across Africa.
   ========================================================================== */

:root {
  --gwl-copper-dark: #8A3E20;  /* wordmark / headings / primary buttons */
  --gwl-copper: #C1702F;       /* mid-tone accent, hover states */
  --gwl-copper-tint: #F5E6D5;  /* soft section background */
  --gwl-cream: #FBF1E1;        /* warm background */
  --gwl-terracotta: #6E3016;   /* grounding accent */
  --gwl-gold: #E0A83B;         /* evening-glow highlight accent */
  --gwl-ink: #2B211B;          /* body copy */
  --gwl-white: #FFFFFF;

  --font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 0.75rem;
  --shadow-soft: 0 10px 30px rgba(138, 62, 32, 0.1);
}

body {
  font-family: var(--font-body);
  color: var(--gwl-ink);
  background-color: var(--gwl-white);
  overflow-x: hidden;
}

/* Rows using g-4/g-5 gutter utilities set --bs-gutter-x wider than the
   container's default padding, which lets the row bleed past the container
   edge on narrow screens. Matching the container padding to the largest
   gutter in use (g-5 = 3rem) keeps every row flush with the viewport. */
.container {
  --bs-gutter-x: 3rem;
}

h1, h2, h3, h4, .brand-font {
  font-family: var(--font-heading);
  color: var(--gwl-copper-dark);
  font-weight: 600;
}

p {
  line-height: 1.7;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gwl-gold);
}

.section-pad {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.bg-tint {
  background-color: var(--gwl-copper-tint);
}

.bg-cream {
  background-color: var(--gwl-cream);
}

.bg-brand {
  background-color: var(--gwl-copper-dark);
}

/* ---------- Buttons ---------- */
.btn-brand {
  background-color: var(--gwl-copper-dark);
  border-color: var(--gwl-copper-dark);
  color: var(--gwl-white);
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-brand:hover {
  background-color: var(--gwl-copper);
  border-color: var(--gwl-copper);
  color: var(--gwl-white);
  transform: translateY(-2px);
}

.btn-brand-outline {
  background-color: transparent;
  border: 2px solid var(--gwl-white);
  color: var(--gwl-white);
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-brand-outline:hover {
  background-color: var(--gwl-white);
  color: var(--gwl-copper-dark);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--gwl-gold);
  border-color: var(--gwl-gold);
  color: var(--gwl-copper-dark);
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-gold:hover {
  background-color: #c9932c;
  border-color: #c9932c;
  color: var(--gwl-white);
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar-gwl {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 20px rgba(138, 62, 32, 0.08);
}

.navbar-gwl .navbar-brand img {
  height: 64px;
  width: auto;
}

.navbar-gwl .nav-link {
  font-weight: 600;
  color: var(--gwl-ink);
  padding-inline: 0.9rem;
}

.navbar-gwl .nav-link:hover,
.navbar-gwl .nav-link.active {
  color: var(--gwl-copper-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 820px);
  display: flex;
  align-items: center;
  color: var(--gwl-white);
  padding-block: 3rem;
  background-size: cover;
  background-position: center;
}

@media (max-width: 767.98px) {
  .hero {
    min-height: 0;
  }
}

.hero h1 {
  color: var(--gwl-white);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 40rem;
}

/* ---------- Interior page header (About / Books / Learning Sessions) ---------- */
.page-header {
  position: relative;
  padding-top: 168px;
  padding-bottom: 4rem;
  color: var(--gwl-white);
  background-size: cover;
  background-position: center;
}

.page-header h1 {
  color: var(--gwl-white);
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.page-header .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
}

.breadcrumb-trail {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb-trail a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.breadcrumb-trail a:hover {
  color: var(--gwl-white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Mission strip ---------- */
.mission-pill {
  background-color: var(--gwl-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.25rem;
  height: 100%;
  border-top: 4px solid var(--gwl-gold);
}

.mission-pill i {
  color: var(--gwl-copper-dark);
  font-size: 1.6rem;
}

/* ---------- Programme cards ---------- */
.programme-card {
  border-radius: var(--radius);
  border: 1px solid rgba(138, 62, 32, 0.08);
  box-shadow: var(--shadow-soft);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.programme-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(138, 62, 32, 0.14);
}

.programme-icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gwl-copper-tint);
  color: var(--gwl-copper-dark);
  font-size: 1.7rem;
}

.programme-length {
  display: inline-block;
  background-color: var(--gwl-cream);
  color: var(--gwl-terracotta);
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: 50px;
  padding: 0.25rem 0.85rem;
}

/* ---------- Book placeholder cards ---------- */
.book-card {
  border-radius: var(--radius);
  border: 1px solid rgba(138, 62, 32, 0.08);
  overflow: hidden;
  height: 100%;
  background-color: var(--gwl-white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.book-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--gwl-copper-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.book-cover-placeholder {
  aspect-ratio: 3 / 4;
  background: repeating-linear-gradient(
    135deg,
    var(--gwl-copper-tint),
    var(--gwl-copper-tint) 10px,
    #EDDAC5 10px,
    #EDDAC5 20px
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gwl-copper-dark);
  gap: 0.5rem;
  text-align: center;
  padding: 1rem;
}

.book-cover-placeholder i {
  font-size: 2.2rem;
  opacity: 0.6;
}

.book-cover-placeholder span {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.badge-soon {
  background-color: var(--gwl-gold);
  color: var(--gwl-copper-dark);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Forms (Contact page) ---------- */
.form-label {
  font-weight: 600;
  color: var(--gwl-copper-dark);
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.form-control,
.form-select {
  border: 1.5px solid rgba(138, 62, 32, 0.15);
  border-radius: 0.6rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.96rem;
  background-color: var(--gwl-white);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gwl-copper);
  box-shadow: 0 0 0 0.2rem rgba(193, 112, 47, 0.15);
}

.contact-card {
  background-color: var(--gwl-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background-color: var(--gwl-copper-tint);
  color: var(--gwl-copper-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ---------- Why choose icons ---------- */
.why-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.why-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: var(--gwl-copper-tint);
  color: var(--gwl-copper-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin-inline: auto;
  margin-bottom: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.why-item:hover .why-icon {
  background-color: var(--gwl-copper-dark);
  color: var(--gwl-white);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--gwl-copper-dark), var(--gwl-copper));
  color: var(--gwl-white);
}

.cta-band h2 {
  color: var(--gwl-white);
}

/* ---------- Footer ---------- */
.footer-gwl {
  background-color: #2A160D;
  color: rgba(255, 255, 255, 0.75);
}

.footer-gwl a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-gwl a:hover, .footer-gwl a.active {
  color: var(--gwl-gold);
}

.footer-logo-chip {
  display: inline-block;
  background-color: var(--gwl-white);
  border-radius: 0.5rem;
  padding: 0.6rem 0.9rem;
  line-height: 0;
}

.footer-logo-chip img {
  height: 44px;
  width: auto;
  display: block;
}

.footer-gwl h6 {
  color: var(--gwl-white);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* ---------- Motion (subtle only, per brief) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
