/* ===================================================
   ELEVATE UGANDA CONSULTING — Shared Stylesheet
   =================================================== */

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

/* ---- CSS Variables ---- */
:root {
  --green-dark:   #1B4332;
  --green-mid:    #2D6A4F;
  --green-light:  #40916C;
  --green-pale:   #D8F3DC;
  --gold:         #F4A261;
  --gold-dark:    #E76F51;
  --cream:        #FAFAF7;
  --text:         #2D3748;
  --text-light:   #6B7280;
  --white:        #FFFFFF;
  --border:       #E5E7EB;
  --shadow:       0 4px 24px rgba(27,67,50,0.10);
  --shadow-lg:    0 8px 40px rgba(27,67,50,0.15);
  --radius:       12px;
  --radius-sm:    8px;
  --transition:   all 0.3s ease;
  --font-head:    'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* ---- Typography ---- */
h1,h2,h3,h4,h5 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; color: var(--green-dark); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p  { color: var(--text); font-size: 1.05rem; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}
.section-title { margin-bottom: 1rem; }
.section-desc { color: var(--text-light); max-width: 600px; font-size: 1.05rem; margin-bottom: 2.5rem; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
}
.btn-primary:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(244,162,97,0.4); }
.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}
.btn-outline:hover { background: var(--green-dark); color: var(--white); transform: translateY(-2px); }
.btn-white {
  background: var(--white);
  color: var(--green-dark);
}
.btn-white:hover { background: var(--green-pale); transform: translateY(-2px); }

/* ---- Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(27,67,50,0.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--green-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 24px; height: 24px; fill: var(--gold); }
.logo-text { line-height: 1.1; }
.logo-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  display: block;
}
.logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--green-dark); background: var(--green-pale); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}
.mobile-menu a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--green-dark); padding-left: 0.5rem; }
.mobile-menu .btn { margin-top: 1rem; width: 100%; justify-content: center; border-radius: var(--radius-sm); }

/* ---- Footer ---- */
.site-footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-name { color: var(--white); font-size: 1.3rem; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.5); }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin: 1.25rem 0; line-height: 1.75; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  font-size: 0.85rem;
}
.footer-social a:hover { background: var(--gold); color: var(--green-dark); }
.footer-col h5 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact-item { display: flex; gap: 0.6rem; margin-bottom: 0.9rem; align-items: flex-start; }
.footer-contact-item .icon { color: var(--gold); font-size: 1rem; margin-top: 0.1rem; flex-shrink: 0; }
.footer-contact-item span { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.5; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* ---- Page Hero ---- */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 5rem 0 4rem;
  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' fill-rule='evenodd'%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");
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero .section-label { color: var(--gold); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); max-width: 700px; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 580px; margin-top: 0.75rem; font-size: 1.05rem; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.75rem; }
.breadcrumb a { color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: rgba(255,255,255,0.35); font-size: 0.75rem; }
.breadcrumb .current { color: var(--gold); font-size: 0.85rem; }

/* ---- Sections ---- */
.section { padding: 5rem 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--green-dark); }
.section-pale { background: var(--green-pale); }
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto 2.5rem; }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.75rem; }

/* ---- Grid helpers ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ---- Tag / Badge ---- */
.tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--green-pale);
  color: var(--green-dark);
  letter-spacing: 0.04em;
}
.tag-gold { background: #FFF3E0; color: var(--gold-dark); }

/* ---- Toast Notification ---- */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--green-dark);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 380px;
  animation: toastIn 0.35s ease;
  font-size: 0.92rem;
}
.toast.toast-success { border-left: 4px solid #52B788; }
.toast.toast-error   { border-left: 4px solid #EF4444; background: #7F1D1D; }
.toast .toast-icon { font-size: 1.25rem; flex-shrink: 0; }
.toast .toast-msg { flex: 1; line-height: 1.45; }
.toast .toast-close { cursor: pointer; opacity: 0.6; transition: var(--transition); font-size: 1rem; }
.toast .toast-close:hover { opacity: 1; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* ---- Divider ---- */
.divider { width: 60px; height: 3px; background: var(--gold); border-radius: 2px; margin: 1rem 0 1.5rem; }
.divider-center { margin: 1rem auto 1.5rem; }

/* ---- Stats ---- */
.stat-num { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: var(--green-dark); line-height: 1; }
.stat-num span { color: var(--gold-dark); }

/* ---- Form styles ---- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; letter-spacing: 0.03em; }
.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--green-light); background: var(--white); box-shadow: 0 0 0 3px rgba(64,145,108,0.12); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .section { padding: 3.5rem 0; }
  #toast-container { bottom: 1rem; right: 1rem; left: 1rem; }
  .toast { min-width: unset; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn { padding: 0.75rem 1.5rem; }
}
