/* ==========================================================================
   UJAMII — MAIN STYLESHEET
   ==========================================================================
   This file contains the core design system for the site: colour variables,
   typography, and every reusable component (buttons, cards, navbar, footer,
   sections, etc). Layout breakpoints and mobile-specific overrides live in
   responsive.css so this file stays focused on "what things look like" while
   responsive.css handles "how things rearrange".

   HOW TO CUSTOMISE COLOURS:
   Every colour in the site is driven by the CSS variables in the :root
   block below. Change a value there and it updates everywhere automatically
   — you never need to hunt through the file for hex codes.

   HOW TO CUSTOMISE FONTS:
   Same idea — change --font-heading / --font-body / --font-decorative and
   the whole site follows. The actual font files are loaded with Google
   Fonts <link> tags in the <head> of each HTML page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES
   These are the single source of truth for the Ujamii brand. Brown is the
   "authority" colour (headings, primary buttons); green is the "life and
   growth" accent (hover states, icons, borders, highlights); white/cream
   give the corporate-consultancy breathing room the brief asks for.
   -------------------------------------------------------------------------- */
:root {
  /* Brand core (do not rename — used across all 3 pages) */
  --color-brown: #5f3925;        /* Primary brand colour: headings, buttons, nav */
  --color-brown-dark: #492c1c;   /* Darker brown for hover states / dark sections */
  --color-brown-light: #7a4e37;  /* Lighter brown for gradients & subtle tints */
  --color-green: #6e9277;        /* Accent: hovers, icons, borders, highlights */
  --color-green-dark: #56765f;   /* Darker green for hover states on green elements */
  --color-green-light: #e9f0ea;  /* Very light green tint for card/section backgrounds */
  --color-white: #ffffff;        /* Primary background / clean space */
  --color-cream: #faf6f2;        /* Warm off-white, used to alternate section backgrounds */

  /* Text colours (warm near-black instead of pure black, to sit with the brown identity) */
  --color-text: #2b211b;
  --color-text-muted: #6f6058;
  --color-text-on-dark: #f5efe9;

  /* Typography */
  --font-heading: "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;
  --font-decorative: "Allura", cursive; /* Used sparingly: quotes & CTA accents only */

  /* Shadows — soft, warm-toned shadows rather than generic grey */
  --shadow-sm: 0 2px 10px rgba(95, 57, 37, 0.08);
  --shadow-md: 0 10px 30px rgba(95, 57, 37, 0.12);
  --shadow-lg: 0 20px 50px rgba(95, 57, 37, 0.16);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 50px;

  /* Motion */
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Layout */
  --section-padding-y: 6.5rem;
  --container-max: 1280px;
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS & BASE ELEMENTS
   Bootstrap already normalises most browser defaults; here we only add the
   Ujamii-specific base look (fonts, colours, smooth scroll, selection colour).
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth; /* Native smooth scroll for in-page anchor links (nav, footer, CTAs) */
  scroll-padding-top: 90px; /* Offsets scroll target so the sticky navbar never covers a heading */
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden; /* Prevents horizontal scroll from any full-bleed decorative elements */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-brown);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--color-text-muted);
  line-height: 1.8;
}

a {
  color: var(--color-green-dark);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-green);
}

::selection {
  background-color: var(--color-green);
  color: var(--color-white);
}

/* Visible keyboard focus for accessibility — never remove outline without replacing it */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 2px;
}

/* Respect users who have asked their OS to reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Decorative script font — reserved for short accents only (see brief: "do not overuse Allura") */
.font-decorative {
  font-family: var(--font-decorative);
  color: var(--color-green);
  font-weight: 400;
}

.text-brown { color: var(--color-brown) !important; }
.text-green { color: var(--color-green) !important; }
.bg-cream { background-color: var(--color-cream) !important; }
.bg-green-light { background-color: var(--color-green-light) !important; }

/* Section eyebrow label — small kicker text above every section heading */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-green-dark);
  margin-bottom: 0.85rem;
}

.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background-color: var(--color-green);
}

/* Muted supporting line shown under a section's <h2>, e.g. under
   "Our Services" or "Our Partners" — kept short and centred/left as needed
   by whichever section uses it. */
.section-subtitle {
  color: var(--color-text-muted);
  max-width: 640px;
  font-size: 1.05rem;
}

.section-padding {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.container-ujamii {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --------------------------------------------------------------------------
   3. NAVIGATION
   Sticky navbar that starts transparent (over the hero) and solidifies to
   brown once the user scrolls, as requested in the brief. The ".scrolled"
   class is toggled by js/main.js on the window scroll event.
   -------------------------------------------------------------------------- */
.navbar-ujamii {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 1.25rem 0;
  background-color: transparent;
  transition: background-color var(--transition-base), padding var(--transition-base), box-shadow var(--transition-base);
}

/* Solid state — added by JavaScript once the user scrolls past the hero */
.navbar-ujamii.scrolled {
  background-color: rgba(95, 57, 37, 0.97);
  padding: 0.65rem 0;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px); /* Subtle glassmorphism as requested in the brief */
}

/* Pages without a dark hero (About/Contact) need the solid bar from the start,
   so we add .navbar-solid directly in the HTML for those pages. */
.navbar-ujamii.navbar-solid {
  background-color: rgba(95, 57, 37, 0.97);
}

.navbar-ujamii .navbar-brand img {
  height: 44px;
  width: auto;
  transition: height var(--transition-base);
}

.navbar-ujamii.scrolled .navbar-brand img {
  height: 38px;
}

.navbar-ujamii .navbar-brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-white);
  margin-left: 0.6rem;
  letter-spacing: 0.02em;
}

.navbar-ujamii .nav-link {
  color: var(--color-text-on-dark);
  font-weight: 500;
  font-size: 0.98rem;
  margin: 0 0.15rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-pill);
  position: relative;
  transition: color var(--transition-base), background-color var(--transition-base);
}

.navbar-ujamii .nav-link:hover,
.navbar-ujamii .nav-link:focus-visible {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.12);
}

/* Active page highlighting — .active is added manually per page in the HTML */
.navbar-ujamii .nav-link.active {
  color: var(--color-white);
  background-color: var(--color-green);
  font-weight: 600;
}

.navbar-ujamii .nav-search-btn,
.navbar-ujamii .navbar-toggler {
  border: none;
  color: var(--color-white);
  background: transparent;
}

.navbar-ujamii .navbar-toggler:focus {
  box-shadow: none;
  outline: 3px solid var(--color-green);
}

.navbar-ujamii .nav-search-btn {
  font-size: 1.15rem;
  padding: 0.4rem 0.7rem;
  border-radius: 50%;
  transition: background-color var(--transition-base);
}

.navbar-ujamii .nav-search-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   4. BUTTONS
   Two custom button styles layered on top of Bootstrap's .btn base class:
   a solid brown "primary" action and an outlined green "secondary" action.
   -------------------------------------------------------------------------- */
.btn-ujamii-primary {
  background-color: var(--color-brown);
  border: 2px solid var(--color-brown);
  color: var(--color-white);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ujamii-primary:hover,
.btn-ujamii-primary:focus-visible {
  background-color: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-ujamii-outline {
  background-color: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ujamii-outline:hover,
.btn-ujamii-outline:focus-visible {
  background-color: var(--color-white);
  color: var(--color-brown);
  transform: translateY(-3px);
}

/* Variant used on light backgrounds (About / Contact CTA sections use brown outline instead of white) */
.btn-ujamii-outline-brown {
  background-color: transparent;
  border: 2px solid var(--color-brown);
  color: var(--color-brown);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ujamii-outline-brown:hover,
.btn-ujamii-outline-brown:focus-visible {
  background-color: var(--color-brown);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   Full-height hero with a brown-to-green gradient wash and a signature
   "connection network" SVG (defined inline in the HTML) representing the
   diaspora-to-home relationship at the heart of Ujamii's positioning.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-brown) 0%, var(--color-brown-dark) 55%, #33231a 100%);
  overflow: hidden;
}

/* Faint triangular motif echoing the shape inside the Ujamii logo mark */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, transparent 40%, rgba(110, 146, 119, 0.16) 41%, rgba(110, 146, 119, 0.16) 42%, transparent 43%),
    linear-gradient(115deg, transparent 60%, rgba(110, 146, 119, 0.10) 61%, rgba(110, 146, 119, 0.10) 62%, transparent 63%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

/* Logo lockup at the top of the hero — the Ujamii mark given room to
   breathe, lifted off the background with a soft ring + shadow rather than
   dropped into a harsh rectangle. */
.hero-logo-lockup {
  display: inline-flex;
  margin-bottom: 1.75rem;
}

.hero-logo-lockup img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  padding: 14px;
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 14px 34px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-base);
}

.hero-eyebrow {
  font-family: var(--font-decorative);
  font-size: 2rem;
  color: var(--color-green-light);
  line-height: 1;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  color: var(--color-green);
}

.hero p.lead {
  color: rgba(245, 239, 233, 0.88);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 2.25rem;
}

/* --------------------------------------------------------------------------
   HERO PHOTO PANEL
   Replaces the old abstract network-graph illustration with a real Ujamii
   photograph, given a premium editorial treatment: rounded frame, soft
   brand-toned shadow, a subtle gradient wash so it never fights the
   headline, and a thin accent frame echoing the logo's brown/green palette.
   -------------------------------------------------------------------------- */
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  max-height: 560px;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Soft brand-toned wash so the photo sits comfortably inside the dark hero
   rather than looking like a pasted-on stock image */
.hero-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(95, 57, 37, 0.05) 0%, rgba(51, 35, 26, 0.55) 100%);
  pointer-events: none;
}

/* Thin offset accent frame, echoing the triangular motif in the logo */
.hero-visual::before {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  bottom: 28px;
  left: 28px;
  border: 2px solid rgba(110, 146, 119, 0.4);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.hero-visual-caption {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  color: var(--color-white);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-visual-caption i {
  color: var(--color-green-light);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(245, 239, 233, 0.75);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-cue i {
  display: block;
  margin: 0.35rem auto 0;
  animation: bounce-cue 2s ease-in-out infinite;
}

@keyframes bounce-cue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Generic smaller page hero used on About & Contact (no full-height, no network graphic) */
.page-hero {
  position: relative;
  padding: 9.5rem 0 4.5rem;
  background: linear-gradient(120deg, var(--color-brown) 0%, var(--color-brown-dark) 100%);
  color: var(--color-white);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border: 2px solid rgba(110, 146, 119, 0.35);
  border-radius: 50%;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.page-hero .breadcrumb-ujamii {
  font-size: 0.9rem;
  color: rgba(245, 239, 233, 0.75);
}

.page-hero .breadcrumb-ujamii a {
  color: var(--color-green-light);
}

.page-hero .breadcrumb-ujamii .current {
  color: var(--color-white);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. CARDS (services / feature / team / value / testimonial)
   -------------------------------------------------------------------------- */
.card-ujamii {
  background-color: var(--color-white);
  border: 1px solid rgba(95, 57, 37, 0.08);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.9rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card-ujamii:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-green);
}

.card-ujamii .card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: var(--color-green-light);
  color: var(--color-green-dark);
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.card-ujamii .card-icon img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

/* Modifier for cards that show a partner/brand wordmark logo instead of a
   glyph icon (e.g. Afro Language Grove) — a detailed wordmark reads as a
   washed-out smudge if squeezed into the standard 64x64 square, so this
   variant keeps the same height but lets width grow to fit the logo's own
   aspect ratio at a legible size. */
.card-ujamii .card-icon--wordmark {
  width: auto;
  min-width: 64px;
  padding: 0 0.85rem;
}

.card-ujamii .card-icon--wordmark img {
  width: auto;
  height: 62%;
  object-fit: contain;
}

.card-ujamii:hover .card-icon--wordmark {
  background-color: var(--color-green-light);
}

.card-ujamii:hover .card-icon {
  background-color: var(--color-green);
  color: var(--color-white);
}

.card-ujamii h3,
.card-ujamii h4 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.card-ujamii p:last-child {
  margin-bottom: 0;
}

/* Value proposition cards (About page core values) — same base, brown icon chip */
.card-value .card-icon {
  background-color: rgba(95, 57, 37, 0.08);
  color: var(--color-brown);
}

.card-value:hover .card-icon {
  background-color: var(--color-brown);
  color: var(--color-white);
}

/* Team placeholder cards */
.card-team {
  text-align: center;
  padding: 2rem 1.5rem;
}

.card-team .team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--color-green-light), var(--color-cream));
  border: 3px solid var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green-dark);
  font-size: 2.5rem;
  overflow: hidden;
}

.card-team .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-team h4 {
  margin-bottom: 0.15rem;
  font-size: 1.1rem;
}

.card-team .team-role {
  color: var(--color-green-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: block;
}

.card-team .team-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--color-green-light);
  color: var(--color-brown);
  margin: 0 3px;
  transition: all var(--transition-base);
}

.card-team .team-socials a:hover {
  background-color: var(--color-brown);
  color: var(--color-white);
}

/* Honest "team" statement block — used in place of fabricated team member
   cards when no real names/photos have been supplied yet. Centred, calm,
   and truthful rather than pretending profiles exist. */
.team-note {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background-color: var(--color-white);
  border: 1px solid rgba(95, 57, 37, 0.1);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

.team-note .card-icon {
  margin: 0 auto 1.25rem;
}

.team-note p {
  font-size: 1.05rem;
}

/* Testimonial cards */
.card-testimonial {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  border-top: 3px solid var(--color-green);
}

.card-testimonial .quote-mark {
  font-family: var(--font-decorative);
  font-size: 3.5rem;
  color: var(--color-green);
  line-height: 0.6;
  display: block;
  margin-bottom: 1rem;
}

.card-testimonial p.testimonial-text {
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.card-testimonial .testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.card-testimonial .author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--color-green-light);
  color: var(--color-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.card-testimonial .author-name {
  font-weight: 600;
  color: var(--color-brown);
  display: block;
  font-size: 0.95rem;
}

.card-testimonial .author-title {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   7. STATISTICS COUNTER
   -------------------------------------------------------------------------- */
.stats-section {
  background: linear-gradient(120deg, var(--color-brown-dark), var(--color-brown));
  color: var(--color-white);
  position: relative;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.stat-number .stat-suffix {
  color: var(--color-green);
}

.stat-label {
  color: rgba(245, 239, 233, 0.8);
  font-size: 0.95rem;
  margin-top: 0.35rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   8. TIMELINE (Why Choose Ujamii / Business Growth Journey)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background-color: var(--color-green-light);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.75rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.5rem;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 3px solid var(--color-green);
}

.timeline-item .timeline-year {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-green-dark);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  display: block;
}

.timeline-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   9. PARTNER LOGOS
   Cards showing partner brands. Replace the <img> src (or swap
   .partner-wordmark for a real <img>) with the logo file once supplied —
   see the comment near the markup in index.html / about.html for exact
   instructions.
   -------------------------------------------------------------------------- */
.partner-card {
  /* Some partner cards are plain <div>s (no confirmed link yet) and some
     are <a> elements (linking out to the partner's own website) — this
     rule works for either tag, since it forces block layout and strips
     default link styling rather than relying on the tag itself. */
  display: block;
  background-color: var(--color-white);
  border: 1px solid rgba(95, 57, 37, 0.1);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-base);
}

.partner-card:hover,
.partner-card:focus-visible {
  border-color: var(--color-green);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  color: inherit;
  text-decoration: none;
}

/* Small "visit website" cue shown only on partner cards that link out
   (identified by the .partner-card--linked modifier in the HTML), so
   visitors can tell at a glance which logos are clickable. */
.partner-card--linked .partner-caption i {
  color: var(--color-green);
  margin-left: 0.3rem;
  font-size: 0.78rem;
  transition: transform var(--transition-base);
}
.partner-card--linked:hover .partner-caption i {
  transform: translate(2px, -2px);
}

.partner-logo-frame {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.partner-logo-frame img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(15%);
  transition: filter var(--transition-base);
  border-radius: 10px;
}

.partner-card:hover .partner-logo-frame img {
  filter: grayscale(0%);
}

/* Wordmark treatment for partners we don't yet have a logo file for.
   Rather than an obvious dashed "placeholder" box, this presents the name
   itself as a clean typographic mark, consistent with the rest of the
   partner grid — honest about not having a logo asset, without looking
   unfinished. Swap for a real <img> the moment a logo file is supplied. */
.partner-wordmark {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  text-align: center;
  padding: 0 0.5rem;
}

.partner-wordmark span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--color-brown);
  letter-spacing: 0.01em;
}

.partner-caption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   10. CTA (call-to-action) BAND
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-green-dark), var(--color-green));
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

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

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  top: -100px;
  right: -80px;
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.footer-ujamii {
  background-color: var(--color-brown-dark);
  color: rgba(245, 239, 233, 0.8);
  padding-top: 4.5rem;
}

.footer-ujamii h5 {
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.footer-ujamii .footer-brand img {
  height: 42px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-ujamii p {
  color: rgba(245, 239, 233, 0.7);
}

.footer-ujamii ul {
  list-style: none;
  padding-left: 0;
}

.footer-ujamii ul li {
  margin-bottom: 0.65rem;
}

.footer-ujamii ul li a {
  color: rgba(245, 239, 233, 0.75);
  font-size: 0.95rem;
  transition: color var(--transition-base), padding-left var(--transition-base);
}

.footer-ujamii ul li a:hover {
  color: var(--color-green);
  padding-left: 4px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  margin-right: 0.5rem;
  transition: all var(--transition-base);
}

.footer-socials a:hover {
  background-color: var(--color-green);
  transform: translateY(-3px);
}

.footer-newsletter .form-control {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  padding: 0.65rem 1.25rem;
}

.footer-newsletter .form-control::placeholder {
  color: rgba(245, 239, 233, 0.5);
}

.footer-newsletter .form-control:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-green);
  color: var(--color-white);
  box-shadow: none;
}

.footer-newsletter .btn-newsletter {
  background-color: var(--color-green);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  border: none;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  white-space: nowrap;
}

.footer-newsletter .btn-newsletter:hover {
  background-color: var(--color-green-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 3rem;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(245, 239, 233, 0.75);
}

.footer-bottom a:hover {
  color: var(--color-green);
}

/* --------------------------------------------------------------------------
   12. SCROLL-TO-TOP BUTTON
   Shown/hidden and made clickable via js/main.js.
   -------------------------------------------------------------------------- */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-brown);
  color: var(--color-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-base);
  z-index: 1040;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: var(--color-green);
}

/* --------------------------------------------------------------------------
   13. FORMS (Contact page)
   -------------------------------------------------------------------------- */
/* Honeypot field for spam prevention: visually and physically hidden from
   sighted users and keyboard/tab order alike, but still present in the DOM
   for bots that blindly fill in every input to find. */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-ujamii label {
  font-weight: 600;
  color: var(--color-brown);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-ujamii .form-control,
.form-ujamii .form-select {
  border: 1px solid rgba(95, 57, 37, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  background-color: var(--color-cream);
  transition: all var(--transition-base);
}

.form-ujamii .form-control:focus,
.form-ujamii .form-select:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 0.2rem rgba(110, 146, 119, 0.2);
  background-color: var(--color-white);
}

/* Bootstrap validation state styling, tuned to the brand palette */
.form-ujamii .was-validated .form-control:invalid,
.form-ujamii .form-control.is-invalid {
  border-color: #b3413a;
}

.form-ujamii .was-validated .form-control:valid,
.form-ujamii .form-control.is-valid {
  border-color: var(--color-green);
}

.form-ujamii .invalid-feedback {
  font-size: 0.82rem;
}

.contact-info-card {
  background-color: var(--color-brown);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
}

.contact-info-card h3 {
  color: var(--color-white);
}

.contact-info-card .info-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-info-card .info-row i {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green);
  font-size: 1.1rem;
}

.contact-info-card .info-row strong {
  display: block;
  color: var(--color-white);
  font-size: 0.95rem;
}

.contact-info-card .info-row span,
.contact-info-card .info-row a {
  color: rgba(245, 239, 233, 0.8);
  font-size: 0.9rem;
}

.contact-info-card .info-row a:hover {
  color: var(--color-green);
}

/* Location panel — used in place of a Google Maps embed until a real
   office address is confirmed. Deliberately not styled like an obvious
   "placeholder" (no dashed border, no missing-content language): a calm,
   branded panel stating the one thing that IS confirmed (Nairobi, Kenya). */
.location-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(135deg, var(--color-green-light) 0%, var(--color-cream) 100%);
  color: var(--color-brown);
  text-align: center;
  padding: 2.5rem 2rem;
}

.location-panel-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--color-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.location-panel h4 {
  margin-bottom: 0.25rem;
}

.location-panel p {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Accordion overrides */
.accordion-ujamii .accordion-item {
  border: 1px solid rgba(95, 57, 37, 0.12);
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  margin-bottom: 1rem;
}

.accordion-ujamii .accordion-button {
  font-weight: 600;
  color: var(--color-brown);
  background-color: var(--color-white);
  padding: 1.15rem 1.5rem;
}

.accordion-ujamii .accordion-button:not(.collapsed) {
  background-color: var(--color-green-light);
  color: var(--color-brown);
  box-shadow: none;
}

.accordion-ujamii .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(110, 146, 119, 0.25);
}

.accordion-ujamii .accordion-button::after {
  filter: none;
}

/* --------------------------------------------------------------------------
   14. MISC UTILITIES
   -------------------------------------------------------------------------- */
.divider-accent {
  width: 60px;
  height: 4px;
  background-color: var(--color-green);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

/* Warm-toned shadow helper for standalone images (About preview, History
   section) so they lift off the page the same way our cards do. */
.shadow-brand {
  box-shadow: var(--shadow-lg) !important;
}

.lazy-img {
  background-color: var(--color-green-light);
}

.badge-ujamii {
  display: inline-block;
  background-color: var(--color-green-light);
  color: var(--color-green-dark);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
}

/* Skip-to-content link for screen reader / keyboard users, hidden until focused */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  z-index: 2000;
  background-color: var(--color-brown);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

/* ==========================================================================
   Floating WhatsApp contact button
   Fixed to the bottom-right corner, visible on every page while scrolling.
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-green);
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(43, 33, 27, 0.28);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float i {
  font-size: 1.9rem;
  line-height: 1;
  color: var(--color-white);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background-color: var(--color-green-dark);
  color: var(--color-white);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 22px rgba(43, 33, 27, 0.35);
  outline: none;
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--color-brown);
  outline-offset: 3px;
}

/* Small pulsing ring to draw the eye without being distracting */
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--color-green);
  opacity: 0.55;
  animation: whatsapp-pulse 2.4s ease-out infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before {
    animation: none;
    display: none;
  }
  .whatsapp-float:hover,
  .whatsapp-float:focus-visible {
    transform: none;
  }
}

@media (max-width: 576px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-float i {
    font-size: 1.6rem;
  }
}
