/* IPDS Africa — shared styles */

:root {
  --ink: #0f2a21;          /* deep forest green base */
  --ink-2: #163a2e;        /* raised panel */
  --paper: #f4f7f3;        /* cool off-white page */
  --paper-2: #ffffff;
  --line: #dde7e0;         /* cool hairline */
  --line-dark: #2b4a3c;
  --signal: #d4a537;       /* gold accent */
  --signal-deep: #a87d1e;  /* deep gold */
  --amber: #c9772f;        /* warm alert accent */
  --text: #1c2b24;
  --muted: #5d6f66;
  --muted-light: #94a69b;
  --danger: #bf4a33;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1120px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(15,42,33,0.07), 0 10px 28px rgba(15,42,33,0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,248,250,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand .mark {
  height: 56px; width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  position: relative;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  padding-bottom: 4px;
  transition: color .18s;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav .btn { margin-left: 6px; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s, background .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--signal);
  color: #06201f;
  box-shadow: 0 1px 0 var(--signal-deep);
}
.btn-primary:hover { background: var(--signal-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-light {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}
.btn-light:hover { background: rgba(255,255,255,0.16); }

/* ---------- Eyebrow / section headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-deep);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--signal);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #eaf1f6;
  overflow: hidden;
}
.hero::after {
  /* soft top-light wash */
  content: "";
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(212,165,55,0.12), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; padding: 104px 24px 112px; }
.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.hero .eyebrow { justify-content: center; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  margin: 24px 0 22px;
}
.hero .sub {
  font-size: 1.18rem;
  color: #c3d2c9;
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero .eyebrow { color: var(--signal); }
.hero .eyebrow::before { background: var(--signal); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* small pulse dot animation */
.pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(212,165,55,0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212,165,55,0.5); }
  70% { box-shadow: 0 0 0 12px rgba(212,165,55,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,165,55,0); }
}

/* ---------- Section shells ---------- */
.section { padding: 84px 0; }
.section.tight { padding: 60px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 18px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.lead {
  font-size: 1.22rem;
  color: var(--text);
  line-height: 1.55;
  max-width: 760px;
}
.prose p { color: var(--muted); margin-bottom: 18px; max-width: 720px; }
.prose p strong { color: var(--text); }

/* ---------- Feature cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
/* horizontal monitor row: icon left, text right */
.card.row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.card.row .ic { margin-bottom: 0; flex-shrink: 0; }
.card.row .rtext { flex: 1; min-width: 0; }
.card.row .rtext h3 { margin-bottom: 8px; }
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.card:hover { border-color: var(--signal); transform: translateY(-3px); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card .ic {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--signal);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line-dark); }
.step .n {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--signal);
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--signal-deep);
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Advantages list ---------- */
.adv-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.adv-row:last-child { border-bottom: 1px solid var(--line); }
.adv-row h3 { font-size: 1.4rem; }
.adv-row .tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal-deep);
  font-weight: 600;
  margin-bottom: 10px;
}
.adv-row p { color: var(--muted); font-size: 1.02rem; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px 28px;
  position: relative;
}
.plan.featured {
  border-color: var(--signal);
  box-shadow: 0 0 0 1px var(--signal), var(--shadow);
}
.plan .badge {
  position: absolute; top: -12px; left: 28px;
  background: var(--signal); color: #06201f;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px;
}
.plan .pname { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); margin-bottom: 6px; }
.plan .price { font-size: 2.2rem; font-family: var(--serif); color: var(--ink); }
.plan .price span { font-size: 0.95rem; font-family: var(--sans); color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; margin: 22px 0 26px; }
.plan li { padding: 9px 0 9px 26px; position: relative; font-size: 0.97rem; color: var(--text); border-top: 1px solid var(--line); }
.plan li:first-child { border-top: 0; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 13px; height: 8px;
  border-left: 2px solid var(--signal); border-bottom: 2px solid var(--signal);
  transform: rotate(-45deg);
}
.plan .btn { width: 100%; justify-content: center; }
.plan .tier-label { font-size: 0.95rem; color: var(--muted); margin-bottom: 16px; }
.plan .quote {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--signal-deep);
  padding-bottom: 4px;
}

/* ---------- Reasons (why upon request) ---------- */
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.reason {
  display: flex;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .2s;
}
.reason:hover { border-color: var(--signal); }
.reason .rn {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--signal);
  color: var(--signal-deep);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}
.reason h3 { font-size: 1.1rem; margin-bottom: 8px; }
.reason p { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 700px) { .reasons { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 1.14rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--sans); font-size: 1.4rem; color: var(--signal-deep);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 700px; }

/* ---------- Callout band ---------- */
.band {
  background: var(--ink);
  color: #eaf1f6;
  border-radius: 8px;
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.band::before {
  content: ""; position: absolute; right: -60px; bottom: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  border: 1px solid rgba(212,165,55,0.2);
  box-shadow: 0 0 0 30px rgba(212,165,55,0.04);
}
.band h2 { color: #fff; font-size: 1.7rem; margin-bottom: 8px; }
.band p { color: #b4c6d4; }
.band .band-text { position: relative; z-index: 2; max-width: 560px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-info dl { margin-top: 26px; }
.contact-info dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-light); font-weight: 600; margin-top: 20px; }
.contact-info dd { font-size: 1.05rem; color: var(--text); margin-top: 4px; }
.contact-info dd a { color: var(--signal-deep); font-weight: 500; }
.urgent-note {
  margin-top: 34px; padding: 22px 24px;
  background: rgba(224,163,62,0.08);
  border: 1px solid rgba(224,163,62,0.3);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  font-size: 0.96rem; color: var(--text);
}
.urgent-note strong { color: var(--ink); }

form.contact-form { background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.field label .opt { color: var(--muted-light); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--sans); font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(212,165,55,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--ink);
  color: #eaf1f6;
  padding: 76px 0 68px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 400px; height: 400px; border-radius: 50%;
  border: 1px solid rgba(212,165,55,0.14);
  box-shadow: 0 0 0 40px rgba(212,165,55,0.03), 0 0 0 90px rgba(212,165,55,0.02);
}
.page-hero .eyebrow { color: var(--signal); }
.page-hero .eyebrow::before { background: var(--signal); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: 18px 0 16px; max-width: 760px; }
.page-hero p { color: #b4c6d4; font-size: 1.14rem; max-width: 620px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #9fb0c0;
  padding: 56px 0 34px;
}
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid var(--line-dark); }
.footer-brand { max-width: 300px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand .mark { height: 60px; width: auto; background: #faf6f0; border-radius: 10px; padding: 5px; }
.footer-brand p { font-size: 0.92rem; color: #7d90a2; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { color: #fff; font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer-cols a { display: block; font-size: 0.94rem; padding: 5px 0; color: #9fb0c0; transition: color .16s; }
.footer-cols a:hover { color: var(--signal); }
.footer-bottom { padding-top: 24px; font-size: 0.86rem; color: #6f8394; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid, .steps, .plans { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .adv-row { grid-template-columns: 1fr; gap: 12px; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 18px 24px; gap: 16px;
  }
  .menu-toggle { display: block; }
  .band { padding: 40px 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero .wrap { padding: 68px 24px 76px; }
  .section { padding: 60px 0; }
}
