/* ══════════════════════════════════════
   GLOBAL.CSS — Test4uCameroon
   Variables · Reset · Nav · Footer · Shared
══════════════════════════════════════ */

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

/* ── VARIABLES ── */
:root {
  --green:       #00C47A;
  --green-dark:  #009E62;
  --green-light: rgba(0,196,122,0.12);
  --navy:        #0B1F3A;
  --navy-light:  #132d52;
  --cream:       #F5F0E8;
  --text:        #1a1a2e;
  --muted:       #5a6a7a;
  --white:       #ffffff;
  --border:      #e2e8f0;
  --shadow:      0 12px 32px rgba(0,0,0,0.08);
  --radius:      12px;
  --radius-lg:   16px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: 'Syne', sans-serif; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 4rem;
  background: rgba(11,31,58,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: padding 0.3s;
}
nav.scrolled { padding: 0.7rem 4rem; }

.nav-logo {
  display: flex; align-items: center; gap: 0.65rem;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--green); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800;
  color: white; font-size: 1rem; flex-shrink: 0;
}
.nav-logo-text {
  font-family: 'Syne', sans-serif; font-weight: 700;
  color: white; font-size: 1.05rem;
}

.nav-links {
  display: flex; gap: 2rem;
}
.nav-links a {
  color: rgba(255,255,255,0.72); font-size: 0.875rem;
  font-weight: 500; letter-spacing: 0.01em;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--green);
  transition: width 0.25s;
}
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--green); }

.nav-cta {
  background: var(--green); color: white;
  padding: 0.6rem 1.4rem; border-radius: 6px;
  font-family: 'Syne', sans-serif; font-size: 0.875rem; font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ── HAMBURGER ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: white; border-radius: 2px; transition: all 0.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 {
  display: none; position: fixed;
  top: 65px; left: 0; right: 0;
  background: var(--navy); z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transform: translateY(-10px); opacity: 0;
  transition: all 0.25s;
  pointer-events: none;
}
.mobile-menu.open {
  display: block; transform: translateY(0);
  opacity: 1; pointer-events: all;
}
.mobile-menu a {
  display: block; color: rgba(255,255,255,0.8);
  padding: 1rem 2rem; font-size: 0.95rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover { color: var(--green); background: rgba(255,255,255,0.03); }
.mobile-menu a:last-child { border: none; }

/* ── PAGE HERO (shared) ── */
.page-hero {
  background: var(--navy);
  padding: 7rem 4rem 4rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -150px; right: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,196,122,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero h1 {
  color: white; font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; margin-bottom: 1rem;
  animation: fadeUp 0.5s ease both;
}
.page-hero p {
  color: rgba(255,255,255,0.6); font-size: 1.05rem;
  max-width: 560px; margin: 0 auto; line-height: 1.75;
  animation: fadeUp 0.5s 0.1s ease both;
}

/* ── SECTION HEADER ── */
.section-header { margin-bottom: 3rem; }
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--navy);
}
.section-header p { color: var(--muted); margin-top: 0.5rem; font-size: 1rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border-radius: 8px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s; border: none;
}
.btn-green {
  background: var(--green); color: white;
}
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,196,122,0.28); }
.btn-outline {
  background: transparent; color: white;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.07); }
.btn-outline-green {
  background: transparent; color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline-green:hover { background: var(--green); color: white; }
.btn-full { width: 100%; justify-content: center; }

/* ── FORMS ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--navy); margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.85rem 1rem;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white; appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,196,122,0.1);
}
.form-group textarea { height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── FOOTER ── */
footer {
  background: var(--navy); color: white;
  padding: 4rem 4rem 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem; margin-bottom: 3rem;
}
.footer-brand h3 {
  font-size: 1.15rem; font-weight: 800; margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.footer-brand h3 span {
  width: 28px; height: 28px; background: var(--green);
  border-radius: 6px; display: inline-flex; align-items: center;
  justify-content: center; font-size: 0.75rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.45); font-size: 0.875rem; line-height: 1.7;
}
.footer-col h4 {
  font-size: 0.75rem; font-weight: 700;
  color: rgba(255,255,255,0.35); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 1.2rem;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.6);
  font-size: 0.875rem; margin-bottom: 0.65rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--green); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.75rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.8rem; }
.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); font-size: 0.85rem; font-weight: 700;
  transition: all 0.2s;
}
.social-links a:hover { background: var(--green); color: white; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-d1 { animation: fadeUp 0.6s 0.1s ease both; }
.fade-up-d2 { animation: fadeUp 0.6s 0.2s ease both; }
.fade-up-d3 { animation: fadeUp 0.6s 0.3s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.7rem 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .page-hero { padding: 6rem 1.5rem 3rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  footer { padding: 3rem 1.5rem 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
}
