/* ═══════════════════════════════════════════════════════════════
   NEW FACE PARTY OF KENYA (FACE) — Rebuilt 2025
   Sauti ya Mwananchi, Nguzo ya Taifa
   Light, vibrant design — earthy gold & brown on white
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@300;400;500;600;700&family=Cormorant+Garamond:wght@500;600;700&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --brown:         #8B5E3C;
  --brown-deep:    #6B3D1E;
  --brown-light:   #C49A5A;
  --brown-pale:    #F0DEC4;
  --brown-faint:   #FBF4EB;
  --gold:          #D4A043;
  --gold-bright:   #E8B84B;
  --green-kenya:   #006600;
  --red-kenya:     #BB0000;
  --white:         #FFFFFF;
  --off-white:     #FDFAF6;
  --text:          #1A1208;
  --text-mid:      #4A3520;
  --text-light:    #7A6040;
  --border:        rgba(139,94,60,0.18);
  --shadow-sm:     0 2px 12px rgba(139,94,60,0.1);
  --shadow-md:     0 8px 40px rgba(139,94,60,0.15);
  --shadow-lg:     0 20px 80px rgba(139,94,60,0.2);
  --radius:        10px;
  --radius-lg:     20px;
  --max:           1200px;
  --nav-h:         76px;
  --transition:    0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--brown-faint); }
::-webkit-scrollbar-thumb { background: var(--brown-light); border-radius: 3px; }

/* ─── SKIP LINK ─────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 20px;
  background: var(--brown-light); color: var(--white);
  padding: 10px 20px; border-radius: 4px;
  font-weight: 700; z-index: 9999; transition: top .2s;
}
.skip-link:focus { top: 20px; }

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════════ */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
#mainNav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo-img { width: 46px; height: 46px; flex-shrink: 0; }
.nav-logo-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--brown-deep); line-height: 1.2; }
.nav-logo-sub  { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; color: var(--brown-light); text-transform: uppercase; }

/* Links */
.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex-wrap: nowrap;
}
.nav-links li a {
  display: block; padding: 6px 10px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-mid);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li a.active { background: var(--brown-faint); color: var(--brown-deep); }
.nav-links li a.active { font-weight: 700; }
.nav-cta {
  background: var(--brown) !important; color: var(--white) !important;
  padding: 8px 18px !important; border-radius: 8px !important;
  font-weight: 700 !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--brown-deep) !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--brown); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--white);
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(0.4,0,0.2,1);
  z-index: 999; overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  display: block; padding: 14px 18px;
  font-size: 1rem; font-weight: 500; color: var(--text-mid);
  border-radius: var(--radius); border: 1px solid transparent;
  transition: all var(--transition);
}
.mobile-menu a:hover { background: var(--brown-faint); color: var(--brown-deep); border-color: var(--border); }
.mobile-menu a.nav-cta {
  background: var(--brown); color: var(--white);
  border-color: var(--brown); margin-top: 8px;
  text-align: center; font-weight: 700;
}
.mobile-menu a.nav-cta:hover { background: var(--brown-deep); }

/* ══════════════════════════════════════════════════════════════
   PAGE SHELL
══════════════════════════════════════════════════════════════ */
.page-top { padding-top: var(--nav-h); }
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 120px) clamp(16px, 4vw, 40px);
}

/* Section labels / tags */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brown);
  background: var(--brown-pale); padding: 5px 14px;
  border-radius: 100px; margin-bottom: 18px;
}
.section-tag::before { content: ''; width: 6px; height: 6px; background: var(--brown-light); border-radius: 50%; display: block; }

.section-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900; line-height: 1.1; color: var(--text);
  margin-bottom: 20px;
}
.section-h2 em { font-style: italic; color: var(--brown); }

.section-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-mid); max-width: 680px; line-height: 1.75;
  margin-bottom: 48px;
}

/* ── Alternating section bg ─────────────────────────────────── */
section:nth-child(even) > .section-inner { /* handled per-page */ }
.bg-tinted { background: var(--brown-faint); }
.bg-white   { background: var(--white); }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brown); color: var(--white);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 700;
  padding: 14px 28px; border-radius: var(--radius); border: 2px solid var(--brown);
  cursor: pointer; transition: all var(--transition);
}
.btn-primary:hover { background: var(--brown-deep); border-color: var(--brown-deep); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(139,94,60,0.3); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--brown);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 700;
  padding: 14px 28px; border-radius: var(--radius); border: 2px solid var(--brown);
  cursor: pointer; transition: all var(--transition);
}
.btn-ghost:hover { background: var(--brown); color: var(--white); transform: translateY(-1px); }

.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 700;
  padding: 14px 28px; border-radius: var(--radius); border: 2px solid var(--gold);
  cursor: pointer; transition: all var(--transition);
}
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(212,160,67,0.35); }

/* ══════════════════════════════════════════════════════════════
   HERO (shared base)
══════════════════════════════════════════════════════════════ */
.page-hero {
  position: relative; overflow: hidden;
  min-height: 420px;
  background: var(--brown-faint);
  display: flex; align-items: flex-end;
}
.page-hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 8s ease;
}
.page-hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(107,61,30,0.82) 0%, rgba(139,94,60,0.55) 60%, transparent 100%);
}
.page-hero:hover .page-hero-img { transform: scale(1.04); }
.page-hero-content {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
  padding: 80px clamp(16px,4vw,40px) 60px;
  width: 100%;
}
.page-hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brown-light); margin-bottom: 14px;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900; line-height: 1.08; color: var(--white);
  margin-bottom: 16px;
}
.page-hero h1 em { font-style: italic; color: var(--brown-pale); }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.82); max-width: 560px; line-height: 1.7; }

/* ══════════════════════════════════════════════════════════════
   CARDS (generic)
══════════════════════════════════════════════════════════════ */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: rgba(139,94,60,0.35); }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
footer {
  background: var(--brown-deep);
  color: rgba(255,255,255,0.85);
  padding: clamp(48px, 6vw, 80px) 0 0;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 clamp(16px,4vw,40px);
}
.footer-brand { margin-bottom: 48px; }
.footer-brand-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--white); }
.footer-brand-sub  { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brown-light); }
.footer-tagline { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-style: italic; color: var(--brown-pale); margin-bottom: 8px; }
.footer-tagline-en { font-size: 0.8rem; color: rgba(255,255,255,0.45); }

.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px 24px; margin-bottom: 48px;
}
.footer-col h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brown-light); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li a { font-size: 0.88rem; color: rgba(255,255,255,0.62); transition: color var(--transition); }
.footer-col li a:hover { color: var(--brown-pale); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.78rem; color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-legal a:hover { color: var(--brown-light); }

/* Kenya flag accent bar */
.kenya-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--green-kenya) 0%, var(--green-kenya) 33.3%, #111 33.3%, #111 40%, var(--red-kenya) 40%, var(--red-kenya) 60%, #111 60%, #111 66.7%, var(--white) 66.7%, var(--white) 100%);
}

/* ══════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════════════════════════ */
.divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--brown), var(--gold));
  border-radius: 2px; margin: 0 0 28px;
}

/* ══════════════════════════════════════════════════════════════
   COOKIE BANNER
══════════════════════════════════════════════════════════════ */
#cookieBanner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--text); color: var(--white);
  border-top: 3px solid var(--brown-light);
  padding: 18px 40px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  z-index: 9000; transform: translateY(0); transition: transform .4s ease;
}
#cookieBanner.hidden { transform: translateY(110%); }
#cookieBanner p { font-size: 0.82rem; color: rgba(255,255,255,0.75); flex: 1; min-width: 260px; }
#cookieBanner a { color: var(--brown-light); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--brown-light); color: var(--text);
  border: none; padding: 9px 22px; border-radius: 6px;
  font-weight: 700; font-size: 0.82rem; cursor: pointer; transition: background .2s;
}
.btn-cookie-accept:hover { background: var(--gold-bright); }
.btn-cookie-decline {
  background: transparent; color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.2); padding: 9px 18px; border-radius: 6px;
  font-size: 0.82rem; cursor: pointer; transition: all .2s;
}
.btn-cookie-decline:hover { color: var(--white); border-color: rgba(255,255,255,0.5); }

/* ══════════════════════════════════════════════════════════════
   LEGAL PANELS
══════════════════════════════════════════════════════════════ */
.legal-panel {
  position: fixed; inset: 0; background: var(--white);
  z-index: 8000; overflow-y: auto;
  transform: translateX(100%); transition: transform .4s ease;
}
.legal-panel.open { transform: translateX(0); }
.legal-inner { max-width: 720px; margin: 0 auto; padding: 80px 40px 60px; }
.legal-inner h2 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 8px; color: var(--text); }
.legal-inner h3 { font-size: 1rem; font-weight: 700; color: var(--brown); margin: 24px 0 8px; }
.legal-inner p  { font-size: 0.9rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 10px; }
.legal-inner .updated { font-size: 0.78rem; color: var(--text-light); margin-bottom: 28px; }
.legal-close {
  position: fixed; top: 20px; right: 20px;
  background: var(--brown-pale); color: var(--brown-deep);
  border: none; width: 40px; height: 40px; border-radius: 50%;
  font-size: 1rem; cursor: pointer; z-index: 1; transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.legal-close:hover { background: var(--brown-light); color: var(--white); }

/* ══════════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(26,18,8,0.65);
  display: none; align-items: center; justify-content: center;
  z-index: 7000; padding: 16px; backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px; max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.modal p  { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 20px; line-height: 1.7; }
.modal-actions { display: flex; gap: 12px; }

/* ══════════════════════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-mid); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--off-white); color: var(--text);
  border: 1.5px solid var(--border);
  padding: 12px 14px; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brown-light);
  box-shadow: 0 0 0 3px rgba(196,154,90,0.2);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(74,53,32,0.35); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════
   SEARCH OVERLAY
══════════════════════════════════════════════════════════════ */
.search-overlay {
  position: fixed; inset: 0; background: rgba(26,18,8,0.7);
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 120px; z-index: 6000; backdrop-filter: blur(8px);
}
.search-overlay.open { display: flex; }
.search-box {
  width: 100%; max-width: 640px; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 24px; margin: 0 16px; position: relative;
}
.search-box input {
  width: 100%; font-size: 1.1rem; padding: 14px 50px 14px 18px;
  border: 2px solid var(--border); border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; color: var(--text);
  background: var(--off-white); transition: border-color .2s;
}
.search-box input:focus { outline: none; border-color: var(--brown-light); }
.search-close {
  position: absolute; top: 32px; right: 32px;
  background: none; border: none; font-size: 1.2rem;
  cursor: pointer; color: var(--text-light);
  transition: color .2s;
}
.search-close:hover { color: var(--brown); }
.search-results { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.search-result-item {
  padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid var(--border); cursor: pointer;
  transition: background .2s;
}
.search-result-item:hover { background: var(--brown-faint); }
.search-result-item .res-title { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.search-result-item .res-section { font-size: 0.78rem; color: var(--text-light); margin-top: 2px; }

/* ══════════════════════════════════════════════════════════════
   NOTIFICATION TOAST
══════════════════════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--text); color: var(--white);
  padding: 14px 24px; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 500;
  box-shadow: var(--shadow-lg); z-index: 5000;
  transform: translateY(20px); opacity: 0;
  transition: all .35s ease; pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #1a6e2e; }
.toast.error   { background: #c0392b; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .section-inner { padding-left: 16px; padding-right: 16px; }
}
