/*
Theme Name: GrantPilot
Theme URI: https://grantpilot.com.ng
Author: GrantPilot
Description: Theme for GrantPilot.com.ng — daily-updated grants, loans, investors and accelerators for African entrepreneurs, with AI document tools. Requires the GrantPilot Core plugin v2.
Version: 2.1.0
License: GPL-2.0-or-later
Text Domain: grantpilot
*/

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100vw; overflow-x: hidden; }
body { font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #F7F9F7; color: #1B2420; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; }
a { color: #15803d; }
h1, h2, h3, h4 { font-family: 'Sora', 'Inter', sans-serif; line-height: 1.2; letter-spacing: -.01em; }
.gpt-skip { position: absolute; left: -999px; top: 8px; background: #15803d; color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 200; }
.gpt-skip:focus { left: 8px; }

/* ---------- Header ---------- */
.gpt-nav { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid #E3E8E4; position: sticky; top: 0; z-index: 100; }
.gpt-nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gpt-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #1B2420; }
.gpt-logo-mark svg { display: block; }
.gpt-logo-text { font-family: 'Sora', sans-serif; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.gpt-logo-text b { color: #15803d; font-weight: 800; }
.gpt-logo-light { color: #fff; }
.gpt-logo-light .gpt-logo-text b { color: #A7D9B9; }
.gpt-links { display: flex; align-items: center; gap: 2px; }
.gpt-links > a, .gpt-dd-btn { color: #2F3936; text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 13px; border-radius: 10px; background: none; border: 0; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.gpt-links > a:hover, .gpt-dd-btn:hover { background: #EAF5EE; color: #0F3D24; }
.gpt-links > a.active, .gpt-dd-btn.active { color: #15803d; background: #EAF5EE; }
.gpt-dd-btn i { font-size: 11px; opacity: .7; }
.gpt-signin { margin-left: 8px; }
.gpt-cta { background: #15803d !important; color: #fff !important; padding: 10px 18px !important; border-radius: 10px !important; margin-left: 6px; }
.gpt-cta:hover { background: #116532 !important; }
.gpt-avatar { width: 36px; height: 36px; border-radius: 50%; background: #0F3D24; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; text-decoration: none; margin-left: 8px; font-family: 'Sora', sans-serif; }
.gpt-dd { position: relative; }
.gpt-dd-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: #fff; border: 1px solid #E3E8E4; border-radius: 14px; box-shadow: 0 12px 32px -12px rgba(27,36,32,.25); padding: 8px; min-width: 320px; z-index: 110; }
.gpt-dd:hover .gpt-dd-menu, .gpt-dd:focus-within .gpt-dd-menu, .gpt-dd.open .gpt-dd-menu { display: block; }
.gpt-dd-menu a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: #1B2420; }
.gpt-dd-menu a:hover, .gpt-dd-menu a.active { background: #EAF5EE; }
.gpt-dd-menu a b { display: block; font-size: 14px; font-weight: 600; }
.gpt-dd-menu a small { display: block; color: #5B6660; font-size: 12px; margin-top: 1px; }
.gpt-dd-icon { width: 36px; height: 36px; border-radius: 9px; background: #EAF5EE; color: #15803d; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.gpt-burger { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: #1B2420; padding: 6px 8px; }
.gpt-mobile-menu { display: none; background: #fff; border-bottom: 1px solid #E3E8E4; padding: 8px 16px 16px; }
.gpt-mobile-menu.open { display: block; }
.gpt-mobile-menu a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; color: #2F3936; text-decoration: none; font-weight: 600; }
.gpt-mobile-menu a i { width: 20px; text-align: center; color: #15803d; }
.gpt-mobile-menu a.active { color: #15803d; background: #EAF5EE; }
.gpt-mobile-menu .gpt-cta { margin: 8px 0 0; justify-content: center; }

/* ---------- Footer ---------- */
.gpt-footer { background: #0F3D24; color: #A7D9B9; padding: 56px 20px 100px; margin-top: 0; }
.gpt-footer-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.gpt-footer-brand p { font-size: 14px; line-height: 1.7; margin: 12px 0 0; color: #C9E3D2; max-width: 36ch; }
.gpt-footer-contact a { color: #fff; text-decoration: none; }
.gpt-footer h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.gpt-footer ul { list-style: none; padding: 0; margin: 0; }
.gpt-footer li { margin-bottom: 8px; }
.gpt-footer a { color: #C9E3D2; text-decoration: none; font-size: 14px; }
.gpt-footer a:hover { color: #fff; }
.gpt-footer-bottom { max-width: 1180px; margin: 36px auto 0; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #A7D9B9; }

/* ---------- Mobile bottom nav ---------- */
.gpt-mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #E3E8E4; z-index: 100; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); }
.gpt-mobile-nav a { flex: 1; text-align: center; text-decoration: none; color: #5B6660; font-size: 11px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gpt-mobile-nav a i { font-size: 18px; }
.gpt-mobile-nav a.active { color: #15803d; }

/* ---------- Generic page content ---------- */
.gpt-content { max-width: 800px; margin: 0 auto; padding: 32px 20px 110px; }
.gpt-content h1 { font-size: clamp(26px, 5vw, 40px); font-weight: 800; }
.gpt-content .entry-content { background: #fff; border: 1px solid #E3E8E4; border-radius: 18px; padding: 28px; line-height: 1.8; }
.gpt-content .entry-content img { border-radius: 12px; }

@media (max-width: 900px) {
  .gpt-links { display: none; }
  .gpt-burger { display: block; }
  .gpt-mobile-nav { display: flex; }
  .gpt-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .gpt-footer-inner { grid-template-columns: 1fr; } }
