/* CAMSERMAR - Cameroon Service Market */
@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Syne:wght@600;700;800&display=swap");

:root {
  --blue: #0b3d91;
  --blue-deep: #06265c;
  --blue-mid: #1557c0;
  --blue-soft: #e8f0ff;
  --flag-green: #007a3d;
  --flag-red: #ce1126;
  --flag-yellow: #fcd116;
  --ink: #0c1a2e;
  --ink-muted: #4a5d73;
  --paper: #f4f7fb;
  --white: #ffffff;
  --line: rgba(11, 61, 145, 0.12);
  --shadow: 0 18px 50px rgba(6, 38, 92, 0.18);
  --radius: 14px;
  --nav-h: 72px;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

ul {
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Flag accent strip */
.flag-strip {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--flag-green) 0 33.33%,
    var(--flag-red) 33.33% 66.66%,
    var(--flag-yellow) 66.66% 100%
  );
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 247, 251, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-muted);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue);
  background: var(--blue-soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--blue-deep);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h) - 4px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(21, 87, 192, 0.55), transparent 60%),
    linear-gradient(160deg, var(--blue-deep) 0%, var(--blue) 45%, #0a4a7a 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(252, 209, 22, 0.08) 0, transparent 35%),
    radial-gradient(circle at 90% 60%, rgba(0, 122, 61, 0.12) 0, transparent 40%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: end;
  padding: 4rem 0 3.5rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.hero-copy {
  max-width: 34rem;
  animation: rise-in 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.1rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 28rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--flag-yellow);
  color: var(--blue-deep);
}

.btn-primary:hover {
  background: #ffe566;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-solid {
  background: var(--blue);
  color: var(--white);
}

.btn-solid:hover {
  background: var(--blue-mid);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: float-in 1.1s ease both 0.15s;
}

.hero-visual img {
  width: min(100%, 420px);
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.35));
  animation: gentle-float 6s ease-in-out infinite;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gentle-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--blue-deep);
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.section-alt {
  background: var(--white);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 0.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--blue);
  opacity: 0.25;
  display: block;
  margin-bottom: 0.85rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--blue-deep);
}

.step p {
  color: var(--ink-muted);
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.category-item {
  padding: 1.15rem 1.25rem;
  border-bottom: 2px solid var(--line);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.category-item:hover {
  border-color: var(--blue);
}

.category-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--blue-deep);
  margin-bottom: 0.25rem;
}

.category-item span {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Split audience */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 320px;
}

.split-panel {
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.split-panel.customers {
  background:
    linear-gradient(135deg, rgba(11, 61, 145, 0.92), rgba(6, 38, 92, 0.95)),
    url("../assets/logobg.png") center / cover;
  color: var(--white);
}

.split-panel.providers {
  background: var(--blue-soft);
  color: var(--ink);
}

.split-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
}

.split-panel p {
  max-width: 28rem;
  opacity: 0.9;
}

.split-panel.providers h2 {
  color: var(--blue-deep);
}

.split-panel.providers p {
  color: var(--ink-muted);
}

/* Page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(21, 87, 192, 0.4), transparent 55%),
    linear-gradient(145deg, var(--blue-deep), var(--blue));
  color: var(--white);
  padding: 3.5rem 0 3rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.65rem;
}

.page-hero p {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.page-meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Content / legal */
.content-block {
  padding: 3.5rem 0 5rem;
}

.prose {
  max-width: 48rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--blue-deep);
  margin: 2.25rem 0 0.75rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink);
  margin-bottom: 0.85rem;
  font-size: 1.02rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem 1.25rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  color: var(--blue-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.legal-toc h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--blue-deep);
  margin-bottom: 0.75rem;
}

.legal-toc ol {
  columns: 2;
  column-gap: 2rem;
  list-style: decimal;
  margin-left: 1.25rem;
}

.legal-toc li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.legal-toc a {
  color: var(--ink-muted);
}

.legal-toc a:hover {
  color: var(--blue);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--blue-deep);
  margin-bottom: 0.35rem;
}

.contact-item p,
.contact-item a {
  color: var(--ink-muted);
}

.contact-item a:hover {
  color: var(--blue);
}

.contact-note {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* About */
.about-lead {
  font-size: 1.2rem;
  color: var(--ink-muted);
  max-width: 40rem;
  margin-bottom: 2rem;
}

.about-points {
  display: grid;
  gap: 1.5rem;
  max-width: 40rem;
}

.about-points h3 {
  font-family: var(--font-display);
  color: var(--blue-deep);
  margin-bottom: 0.35rem;
}

.about-points p {
  color: var(--ink-muted);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
}

.footer-grid h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-grid a {
  display: block;
  padding: 0.25rem 0;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--flag-yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .steps,
  .split,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 3rem 0 2.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    width: min(70%, 280px);
  }

  .legal-toc ol {
    columns: 1;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: calc(var(--nav-h) + 4px) 0 auto 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.85rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
