/* APB Kenya – Shared Stylesheet */
:root {
  --navy: #0d1a4b;
  --blue: #2196F3;
  --sky: #03A9F4;
  --gold: #c8971a;
  --gold-light: #FFD700;
  --white: #ffffff;
  --light: #f4f7fb;
  --text: #2c3e50;
  --muted: #6b7a8d;
  --border: #e0e8f0;
  --action-bar: #2196F3;
  --footer-bg: #f0f3f8;
  --footer-copy: #e2e2e2;
}

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

/* ── CONTAINER ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── ACTION BAR ── */
#action-bar { background: var(--action-bar); color: #fff; font-size: 0.82rem; padding: 8px 0; }
#action-bar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
#action-bar .contact-info { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
#action-bar .contact-info a { color: #fff; opacity: .9; transition: opacity .2s; }
#action-bar .contact-info a:hover { opacity: 1; text-decoration: underline; }
.action-socials { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.action-socials a { color: rgba(255,255,255,.85); font-size: .78rem; font-weight: 600; letter-spacing: .03em; padding: 3px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 20px; transition: all .2s; }
.action-socials a:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ── HEADER ── */
header { background: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,.08); }
nav.main-nav { display: flex; align-items: center; justify-content: space-between; min-height: 88px; }
.logo-wrap { display: flex; align-items: center; padding: 8px 0; }
.logo-img { height: 70px; width: auto; display: block; flex-shrink: 0; }

/* Desktop nav */
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a { display: block; padding: 10px 13px; font-size: .88rem; font-weight: 600; color: var(--navy); border-radius: 6px; transition: color .2s, background .2s; white-space: nowrap; }
.nav-links > li > a:hover, .nav-links > li.active > a { color: var(--blue); background: rgba(33,150,243,.07); }
.nav-links .dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.14); min-width: 180px; padding: 8px 0; list-style: none; z-index: 2000; border-top: 3px solid var(--blue); }
.nav-links > li:hover .dropdown { display: block; }
.dropdown li a { display: block; padding: 9px 18px; font-size: .86rem; font-weight: 500; color: var(--text); transition: background .15s, color .15s; }
.dropdown li a:hover { background: rgba(33,150,243,.08); color: var(--blue); }
.dropdown .sub-dropdown { display: none; position: absolute; left: 100%; top: 0; background: #fff; border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.14); min-width: 160px; padding: 8px 0; list-style: none; z-index: 2001; border-top: 3px solid var(--sky); }
.dropdown li:hover .sub-dropdown { display: block; }
.btn-nav { background: var(--blue); color: #fff !important; padding: 9px 18px !important; border-radius: 22px !important; font-weight: 700 !important; transition: background .2s, transform .1s !important; }
.btn-nav:hover { background: var(--navy) !important; transform: translateY(-1px); }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .3s; }

/* ── PAGE HERO (subpages) ── */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #1a3080 55%, #2559b0 100%); padding: 70px 0 60px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat; }
.page-hero-inner { position: relative; z-index: 2; color: #fff; }
.page-hero .breadcrumb { font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: 12px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.7); } .page-hero .breadcrumb a:hover { color: #fff; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 600px; line-height: 1.65; }

/* ── SECTION HELPERS ── */
.section-label { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: var(--navy); margin-bottom: 16px; line-height: 1.2; }
.section-intro { color: var(--muted); font-size: 1rem; line-height: 1.75; max-width: 660px; }

/* ── BUTTONS ── */
.btn-primary { background: var(--blue); color: #fff; padding: 13px 28px; border-radius: 28px; font-weight: 700; font-size: .95rem; transition: all .2s; display: inline-block; }
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.btn-outline { border: 2px solid var(--blue); color: var(--blue); padding: 11px 26px; border-radius: 28px; font-weight: 600; font-size: .95rem; transition: all .2s; display: inline-block; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-gold { background: var(--gold-light); color: var(--navy); padding: 13px 28px; border-radius: 28px; font-weight: 700; font-size: .95rem; transition: all .2s; display: inline-block; }
.btn-gold:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }

/* ── CARDS ── */
.card { background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,.07); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.card-body { padding: 28px 26px; }
.card-body h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card-body p { color: var(--muted); font-size: .92rem; line-height: 1.65; }

/* ── MEMBERSHIP CTA STRIP ── */
.cta-strip { background: linear-gradient(135deg, var(--navy) 0%, #1e3580 100%); padding: 70px 0; text-align: center; color: #fff; }
.cta-strip h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: 14px; color: #fff; }
.cta-strip p { color: rgba(255,255,255,.72); font-size: 1rem; max-width: 540px; margin: 0 auto 28px; }

/* ── FOOTER ── */
footer { background: var(--footer-bg); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-col h4 { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--blue); display: inline-block; }
.footer-col p, .footer-col address { color: var(--muted); font-size: .88rem; line-height: 1.75; font-style: normal; }
.footer-col a { color: var(--muted); transition: color .2s; font-size: .88rem; }
.footer-col a:hover { color: var(--blue); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-socials { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.footer-socials a { display: inline-block; padding: 5px 12px; background: rgba(33,150,243,.1); border: 1px solid rgba(33,150,243,.2); border-radius: 20px; color: var(--blue); font-size: .76rem; font-weight: 600; transition: all .2s; }
.footer-socials a:hover { background: var(--blue); color: #fff; }
.footer-bottom { background: var(--footer-copy); text-align: center; padding: 16px 24px; font-size: .82rem; color: var(--muted); border-top: 1px solid rgba(0,0,0,.06); }

/* ── MOBILE MENU ── */
#mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--navy); z-index: 9999; padding: 28px 24px; overflow-y: auto; flex-direction: column; }
#mobile-menu.open { display: flex; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.close-menu { background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
.mobile-nav-links { list-style: none; }
.mobile-nav-links li { border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-nav-links > li > a { display: block; padding: 15px 0; color: rgba(255,255,255,.85); font-size: 1rem; font-weight: 600; transition: color .2s; }
.mobile-nav-links > li > a:hover { color: var(--sky); }
.mobile-nav-links .sub { padding: 4px 0 12px 16px; display: none; }
.mobile-nav-links .sub.open { display: block; }
.mobile-nav-links .sub a { display: block; padding: 8px 0; color: rgba(255,255,255,.6); font-size: .93rem; }
.mobile-nav-links .sub a:hover { color: var(--sky); }
.mobile-nav-links .toggle-sub { background: none; border: none; color: rgba(255,255,255,.5); float: right; font-size: 1.2rem; cursor: pointer; }
.mobile-cta { margin-top: 28px; }
.mobile-cta a { display: block; background: var(--gold-light); color: var(--navy); text-align: center; padding: 14px; border-radius: 28px; font-weight: 700; font-size: 1rem; }

/* ── ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .nav-links { display: none !important; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  #action-bar .container { justify-content: center; }
  nav.main-nav { min-height: 70px; }
  .logo-img { height: 54px; }
}
