/* ============================================================
   CLS — Cameroun Leader Services
   palette: lagoon-teal · typography: condensed-display
   motion: progress-bar-design · layout: services-grid
   signature: no-signature · background: layered-gradient
   ============================================================ */

:root {
  --bg: #ffffff;
  --surface: #f4f8f8;
  --surface-2: #eef4f4;
  --ink: #13302f;
  --ink-soft: #3d5a58;
  --primary: #0e7c86;
  --primary-deep: #0a5d65;
  --sand: #e9dcc3;
  --accent: #b8501c;
  --accent-deep: #9a4115;
  --accent-ink: #ffffff;
  --rule: rgba(19, 48, 47, 0.14);
  --rule-strong: rgba(19, 48, 47, 0.26);
  --glow-a: rgba(14, 124, 134, 0.10);
  --glow-b: rgba(233, 220, 195, 0.55);
  --on-primary: #ffffff;
  --shadow: 0 1px 2px rgba(19, 48, 47, 0.05), 0 12px 32px -18px rgba(19, 48, 47, 0.35);
  --radius: 10px;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(64px, 9vw, 120px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1a1c;
    --surface: #10262a;
    --surface-2: #143034;
    --ink: #e9f2f1;
    --ink-soft: #b3c9c7;
    --primary: #4fc3c9;
    --primary-deep: #7fd8dc;
    --sand: #3a3527;
    --accent: #f0915a;
    --accent-deep: #f7a878;
    --accent-ink: #1a0d05;
    --rule: rgba(233, 242, 241, 0.16);
    --rule-strong: rgba(233, 242, 241, 0.3);
    --glow-a: rgba(79, 195, 201, 0.14);
    --glow-b: rgba(240, 145, 90, 0.10);
    --on-primary: #06201f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -20px rgba(0, 0, 0, 0.8);
  }
}

:root[data-theme="dark"] {
  --bg: #0b1a1c;
  --surface: #10262a;
  --surface-2: #143034;
  --ink: #e9f2f1;
  --ink-soft: #b3c9c7;
  --primary: #4fc3c9;
  --primary-deep: #7fd8dc;
  --sand: #3a3527;
  --accent: #f0915a;
  --accent-deep: #f7a878;
  --accent-ink: #1a0d05;
  --rule: rgba(233, 242, 241, 0.16);
  --rule-strong: rgba(233, 242, 241, 0.3);
  --glow-a: rgba(79, 195, 201, 0.14);
  --glow-b: rgba(240, 145, 90, 0.10);
  --on-primary: #06201f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -20px rgba(0, 0, 0, 0.8);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font: 400 1.0625rem/1.65 'Barlow', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 8% -5%, var(--glow-a) 0, transparent 55%),
    radial-gradient(ellipse at 95% 12%, var(--glow-b) 0, transparent 50%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
h1, h2, h3 {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: 0.02em; }
p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- scroll progress strip ---------- */
.progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  animation: fill linear both;
  animation-timeline: scroll(root block);
}
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand-mark {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--on-primary);
  background: var(--primary);
  padding: 2px 9px 3px;
  border-radius: 4px;
  line-height: 1.1;
}
.brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.nav { display: flex; gap: 4px; }
.nav a {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 12px 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
}
.nav a:hover { color: var(--primary-deep); background: var(--surface); }

.theme-toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease;
}
.theme-toggle:hover { background: var(--surface); border-color: var(--primary); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 76px) var(--section-y); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}
.eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-deep);
  margin: 0 0 14px;
}
.hero h1 { margin-bottom: 20px; }
.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 54ch;
}
.lede strong { color: var(--ink); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-deep); color: var(--accent-ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-deep); }

.hero-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 30px 0 0;
}
.hero-tags li {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 13px;
  background: var(--surface);
}

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-figure figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
  padding-left: 2px;
}

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { margin-bottom: 16px; }
.section-intro { color: var(--ink-soft); }

/* ---------- services grid ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: clamp(18px, 2vw, 26px);
}
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.card-body { padding: 22px 22px 24px; }
.card-body h3 { margin-bottom: 10px; color: var(--ink); }
.card-body p { font-size: 0.98rem; color: var(--ink-soft); }
.card-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule-strong);
  font-size: 0.9rem !important;
  color: var(--ink) !important;
}

/* ---------- why ---------- */
.why { background: var(--surface-2); border-block: 1px solid var(--rule); }
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}
.why-copy h2 { margin-bottom: 18px; }
.why-copy p { color: var(--ink-soft); }
.why-close {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-deep) !important;
  margin-top: 20px;
}
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.why-list li {
  padding: 20px 0;
  border-top: 1px solid var(--rule-strong);
}
.why-list li:last-child { border-bottom: 1px solid var(--rule-strong); }
.why-list h3 { margin-bottom: 6px; }
.why-list p { font-size: 0.96rem; color: var(--ink-soft); }

/* ---------- steps ---------- */
.steps {
  list-style: none;
  counter-reset: s;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(224px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.steps li {
  border-top: 2px solid var(--primary);
  padding-top: 18px;
}
.step-num {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  margin-bottom: 8px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 0.96rem; color: var(--ink-soft); }

/* ---------- faq ---------- */
.faq { background: var(--surface); border-block: 1px solid var(--rule); }
.faq-wrap { max-width: 900px; }
.faq-list { display: grid; gap: 0; }
.faq-list details {
  border-top: 1px solid var(--rule-strong);
  padding: 4px 0;
}
.faq-list details:last-child { border-bottom: 1px solid var(--rule-strong); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  min-height: 44px;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: 1.4rem;
  line-height: 1;
  color: var(--primary);
  flex: none;
  transition: transform 180ms ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  padding-bottom: 20px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}
.contact-copy h2 { margin-bottom: 16px; }
.contact-copy > p { color: var(--ink-soft); }
.contact-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.contact-list li { display: grid; gap: 2px; }
.contact-label {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-deep);
}
.contact-list a { font-size: 1.05rem; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 6px; }
.field label {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: 12px 13px;
  min-height: 46px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--primary);
}
.contact-form .btn { justify-self: start; margin-top: 4px; }
.form-status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.form-status.is-ok { color: var(--primary-deep); font-weight: 600; }
.form-status.is-error { color: var(--accent-deep); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--surface-2);
  padding-block: clamp(36px, 5vw, 56px);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: flex-end;
}
.footer-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-nav a:hover { color: var(--primary-deep); }
.attribution {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.attribution a { color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .why-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 16 / 10; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .brand-name { display: none; }
  .header-inner { min-height: 60px; }
}

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .progress { animation: none; transform: scaleX(1); }
  .card:hover { transform: none; }
}
