/* =========================================================
   WebHostingAfrica — Design Tokens (matched to logo)
   Navy         #142A4D  (logo servers/wordmark — trust, infrastructure)
   Africa Green #7AC142  (logo continent mark — "go" / uptime)
   Signal Red   #C8232C  (accent — CTAs, urgency, per brand request)
   Ink          #171A1F
   Paper        #FAF8F4
   ========================================================= */

:root {
  --blue: #142A4D;
  --blue-dark: #0c1b34;
  --red: #C8232C;
  --red-dark: #a01c24;
  --green: #7AC142;
  --green-dark: #5f9c2f;
  --orange: #E0792E;
  --ink: #171A1F;
  --ink-soft: #4A5158;
  --paper: #FAF8F4;
  --paper-dim: #F0ECE3;
  --line: #E2DDD1;
  --white: #FFFFFF;

  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius: 10px;
  --max-width: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-img {
  height: 60px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a[aria-current="page"] {
  color: var(--red);
}

.header-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.header-cta:hover { background: var(--red-dark); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.2rem;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-dim) 100%);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(20,42,77, 0.08);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 rgba(122,193,66,0.5);
  animation: pulse 2s infinite;
}
@media (prefers-reduced-motion: reduce) { .eyebrow .pulse { animation: none; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(122,193,66,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(122,193,66,0); }
  100% { box-shadow: 0 0 0 0 rgba(122,193,66,0); }
}

.hero p.lead {
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blue);
}
.hero-stats div span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Signature element: server status panel */
.status-card {
  background: var(--ink);
  color: var(--white);
  border-radius: 16px;
  padding: 26px;
  font-family: "Courier New", monospace;
  box-shadow: 0 20px 40px -18px rgba(23,26,31,0.5);
}
.status-card .status-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: #B9C0C9;
}
.status-card .status-title .live {
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-card .live::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
}
.status-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.92rem;
}
.status-row:first-of-type { border-top: none; }
.status-row .country { color: var(--white); font-weight: 600; font-family: var(--font-body); }
.status-row .uptime { color: var(--green); }

/* ---------- Coverage rail (signature) ---------- */
.coverage {
  padding: 40px 0 8px;
}
.coverage h2 {
  text-align: center;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}
.rail {
  position: relative;
  display: flex;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 10px;
}
.rail::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.rail-stop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  padding: 0 8px;
}
.rail-stop::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--green);
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}
.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head p { max-width: 56ch; margin-left: auto; margin-right: auto; }
.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.feature-card .icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(20,42,77,0.1);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
  font-family: var(--font-display);
}
.feature-card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Plans ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.plan-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.plan-card.featured {
  border-color: var(--red);
  box-shadow: 0 20px 40px -24px rgba(200,35,44,0.4);
  transform: translateY(-6px);
}
.plan-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.plan-head .tier {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
}
.plan-card.featured .tier { color: var(--red); }
.plan-head .price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  margin-top: 6px;
}
.plan-head .price span { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.plan-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.plan-body ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.plan-body li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 0.92rem;
  border-top: 1px solid var(--paper-dim);
}
.plan-body li:first-child { border-top: none; }
.plan-body li::before {
  content: "✓";
  position: absolute; left: 0; top: 8px;
  color: var(--green);
  font-weight: 700;
}
.badge-popular {
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 10px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--blue);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 52ch; margin: 0 auto 26px; }
.cta-banner .btn-primary { background: var(--red); }
.cta-banner .btn-outline { border-color: var(--white); color: var(--white); }
.cta-banner .btn-outline:hover { background: var(--white); color: var(--blue); }

/* ---------- Offices ---------- */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.office-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--white);
}
.office-card h3 { color: var(--blue); margin-bottom: 10px; }
.office-card p { font-size: 0.92rem; margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #B9C0C9;
  padding: 48px 0 24px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #B9C0C9; }
.footer-grid a:hover { color: var(--white); }
.footer-logo-img {
  height: 42px;
  width: auto;
  margin-bottom: 14px;
  background: var(--white);
  padding: 6px 10px;
  border-radius: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}
.footer-bottom a { color: #B9C0C9; }

/* ---------- Image band (full-bleed) ---------- */
.image-band {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: var(--blue);
}
.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.image-band .band-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(20,42,77,0.15) 0%, rgba(20,42,77,0.75) 100%);
}
.image-band .band-overlay div { max-width: 560px; padding: 0 24px; }
.image-band h2 { color: var(--white); margin-bottom: 10px; }
.image-band p { color: rgba(255,255,255,0.85); margin-bottom: 0; }

/* ---------- Generic image placeholder (swap for a real <img> when ready) ---------- */
.image-placeholder {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper-dim);
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  font-size: 0.8rem;
  padding: 20px;
}
.image-placeholder strong { color: var(--ink); font-size: 0.85rem; }
.image-band .image-placeholder { height: 100%; border: none; border-radius: 0; background: var(--blue-dark); color: rgba(255,255,255,0.7); }
.image-band .image-placeholder strong { color: var(--white); }

/* ---------- Office photo thumbnails ---------- */
.office-photo {
  width: 100%;
  height: 130px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.office-photo img { width: 100%; height: 100%; object-fit: cover; }
.office-photo.image-placeholder { height: 130px; margin-bottom: 16px; }

/* ---------- Support split section ---------- */
.support-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.support-photo {
  border-radius: 16px;
  overflow: hidden;
  height: 340px;
  box-shadow: 0 24px 48px -24px rgba(23,26,31,0.35);
}
.support-photo img { width: 100%; height: 100%; object-fit: cover; }
.support-photo.image-placeholder { height: 340px; border-radius: 16px; }

@media (max-width: 900px) {
  .support-split { grid-template-columns: 1fr; }
  .image-band { height: 300px; }
}


/* ---------- Country tabs ---------- */
.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.tab-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.tab-btn[aria-selected="true"] {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 560px;
  table-layout: fixed;
}
.compare-table th, .compare-table td {
  padding: 13px 16px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.compare-table th:first-child, .compare-table td:first-child {
  width: 38%;
  text-align: left;
  color: var(--ink-soft);
  font-weight: 500;
}
.compare-table thead th {
  background: var(--paper-dim);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
.compare-table tbody tr:nth-child(even) { background: var(--paper-dim); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td.hero-col { font-weight: 700; color: var(--blue); }

/* ---------- Checklist grid ---------- */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.checklist-group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.checklist-group .icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(20,42,77,0.08);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
  font-family: var(--font-display);
}
.checklist-group h3 { color: var(--ink); margin-bottom: 14px; font-size: 1.05rem; }
.checklist-group ul { list-style: none; margin: 0; padding: 0; }
.checklist-group li {
  padding: 7px 0 7px 24px;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink-soft);
  border-top: 1px solid var(--paper-dim);
}
.checklist-group li:first-child { border-top: none; }
.checklist-group li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  color: var(--green);
  font-weight: 700;
}

/* ---------- FAQ accordion ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--blue);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 12px 0 0; }

/* ---------- Page hero (secondary pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-dim) 100%);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 40px;
  text-align: center;
}
.page-hero .eyebrow { margin-left: auto; margin-right: auto; }
.page-hero p { max-width: 60ch; margin: 0 auto; font-size: 1.05rem; }

@media (max-width: 900px) {
  .checklist-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .offices-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rail-stop span.name { display: none; }
}

@media (max-width: 700px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 16px 24px; gap: 16px; }
  .nav-toggle { display: inline-block; }
  .header-cta { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
