/* VGR Property Drive — design tokens.
   Palette bridges the dev brief (navy/royal blue) with VGR's live brand (rust/teal, from branham.org).
   The rust is the colour of the Kenyan sunset in the hero photograph. That is not a coincidence. */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;600;700;800&family=Great+Vibes&display=swap');

:root {
  --navy:       #1B2A4A;   /* headings */
  --royal:      #2B4C8C;   /* structure, links */
  --rust:       #D94917;   /* PRIMARY CTA — VGR's signature */
  --rust-dark:  #B03A12;   /* CTA hover */
  --teal:       #248EAD;   /* secondary accent */
  --grey-fill:  #F5F5F5;   /* section backgrounds */
  --body:       #4D4D4D;   /* body copy */
  --white:      #FFFFFF;

  --font-body:   'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --font-script: 'Great Vibes', cursive;   /* used for EXACTLY ONE string: "A Vision for Kenya" */
}

body {
  font-family: var(--font-body);
  color: var(--body);
  font-weight: 400;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--navy);
  font-weight: 700;
}

/* ---- Buttons ---- */

/* Below the fold, on white and grey. The signature CTA. */
.btn-donate {
  background: var(--rust);
  color: var(--white);
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 200ms ease, transform 200ms ease;
}
.btn-donate:hover {
  background: var(--rust-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* ON THE HERO ONLY. Rust on a rust sunset is invisible — so the primary action goes white. */
.btn-hero-primary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--white);
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.btn-hero-primary:hover {
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-hero-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 200ms ease, transform 200ms ease;
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;          /* text sits low, in the dark silhouette band */
  background-image: url('/img/hero-kenya-sunset.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Navy rising from the bottom. The silhouettes are already near-black,
   so this reads as part of the photograph rather than an overlay on it. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(27, 42, 74, 0.92) 0%,
    rgba(27, 42, 74, 0.70) 25%,
    rgba(27, 42, 74, 0.15) 55%,
    rgba(27, 42, 74, 0.00) 80%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem 6rem;
  width: 100%;
  text-align: center;
  color: var(--white);
}

.hero__eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.hero__org {
  font-size: clamp(1.8rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* The ONLY cursive on the entire site. */
.hero__tagline {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--white);
  margin: 0.5rem 0 1.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero__statement {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Scroll indicator ---- */

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  opacity: 0.8;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 10px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator { animation: none; }
  .btn-donate:hover, .btn-hero-primary:hover, .btn-hero-outline:hover { transform: none; }
  body { scroll-behavior: auto; }
}

/* ---- Sections ---- */

.section        { padding: 5rem 0; }
.section--grey  { background: var(--grey-fill); }
.section__title { text-align: center; margin-bottom: 3rem; }

/* ---- Navigation (shared; owned by the layout) ---- */

.vgr-nav {
  background: var(--white);
  border-bottom: 1px solid #E8E8E8;
  padding: 0.85rem 0;
}
.vgr-nav__brand { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; }
.vgr-nav__org {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
}
.vgr-nav__eyebrow {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rust);
}
.vgr-nav .nav-link {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}
.vgr-nav .nav-link:hover { color: var(--rust); }

/* The nav CTA sits on white, so it keeps the signature rust. */
.btn-donate--nav { padding: 0.55rem 1.4rem; font-size: 0.8rem; display: inline-block; text-decoration: none; }

/* ---- Footer (shared; owned by the layout) ---- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.site-footer p, .site-footer address, .site-footer li { font-size: 0.9rem; line-height: 1.8; }
.site-footer address { font-style: normal; }
.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer a:hover { color: var(--rust); }
.site-footer hr { border-color: rgba(255, 255, 255, 0.15); margin: 2.5rem 0 1.5rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.newsletter-form .form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}
.newsletter-form .form-control::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter-msg { color: #7CD992; font-weight: 600; }

.social-links a { margin-right: 0.9rem; font-weight: 600; }

/* ============================================================
   SHARED BRANDED FORM CONTROLS  (loaded everywhere via brand.css)
   Used by the admin console and the auth pages so a field looks
   the same whether a partner is signing up or an admin is editing
   the Paybill. Scope with .brandform on an ancestor.
   ============================================================ */

.brandform .form-label,
.brandform label:not(.form-check-label) {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

.brandform .form-control,
.brandform .form-select {
  border: 1px solid #D0D5DD;
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  color: var(--navy);
  font-size: 0.95rem;
  background-color: var(--white);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.brandform .form-control::placeholder { color: #98A2B3; }

.brandform .form-control:focus,
.brandform .form-select:focus {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(217, 73, 23, 0.12);
  outline: none;
}

.brandform textarea.form-control { min-height: 3rem; line-height: 1.6; }

.brandform .form-text {
  font-size: 0.8rem;
  color: #667085;
  margin-top: 0.3rem;
}

.brandform .form-check-input { border-color: #98A2B3; }
.brandform .form-check-input:checked {
  background-color: var(--rust);
  border-color: var(--rust);
}
.brandform .form-check-input:focus {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(217, 73, 23, 0.12);
}

/* Validation — errors direct, never apologetic. */
.brandform .text-danger,
.brandform .field-validation-error { color: #B42318; font-size: 0.82rem; font-weight: 600; }
.brandform .input-validation-error { border-color: #B42318 !important; }
.brandform .validation-summary-errors {
  background: #FEF3F2;
  border: 1px solid #FDA29B;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  color: #B42318;
}
.brandform .validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }

/* Secondary / ghost button — pairs with the rust .btn-donate primary. */
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid #D0D5DD;
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--grey-fill); }

/* A smaller button scale for dense admin toolbars. */
.btn-sm-brand { padding: 0.5rem 1.1rem; font-size: 0.75rem; }
