/* =========================================================
   TOSAC — Topo Sahel Consulting
   ========================================================= */

:root{
  --ink: #2e2e2e;
  --ink-soft: #55524f;
  --maroon: #7e0d0d;
  --maroon-dark: #5a0808;
  --maroon-light: #a3372f;
  --cream: #f8f4ec;
  --cream-deep: #efe7d8;
  --white: #ffffff;
  --line: rgba(46,46,46,.12);
  --shadow: 0 20px 45px -20px rgba(46,26,10,.25);
  --radius: 18px;
  --font-head: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,h4{
  font-family:var(--font-head);
  color:var(--ink);
  line-height:1.15;
  margin:0 0 .5em;
  font-weight:700;
}
p{ margin:0 0 1em; color:var(--ink-soft); }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; }

.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}

/* subtle background noise / grain to add texture */
.topo-noise{
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(46,46,46,.05) 1px, transparent 1px),
    radial-gradient(1px 1px at 70% 60%, rgba(46,46,46,.04) 1px, transparent 1px),
    radial-gradient(1px 1px at 40% 80%, rgba(126,13,13,.05) 1px, transparent 1px);
  background-size: 180px 180px, 220px 220px, 260px 260px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  padding:14px 28px;
  border-radius:999px;
  font-weight:600;
  font-size:.95rem;
  border:1.5px solid transparent;
  cursor:pointer;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  white-space:nowrap;
}
.btn-primary{
  background:var(--maroon);
  color:var(--white);
  box-shadow:0 12px 24px -10px rgba(126,13,13,.55);
}
.btn-primary:hover{ background:var(--maroon-dark); transform:translateY(-2px); box-shadow:0 16px 30px -10px rgba(126,13,13,.6); }
.btn-ghost{
  background:transparent;
  border-color:var(--ink);
  color:var(--ink);
}
.btn-ghost:hover{ background:var(--ink); color:var(--white); transform:translateY(-2px); }
.btn-sm{ padding:10px 20px; font-size:.85rem; }
.btn-block{ width:100%; }

/* ---------- Reveal animation ---------- */
.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view{ opacity:1; transform:translateY(0); }

/* ---------- Eyebrow / section head ---------- */
.eyebrow{
  display:inline-block;
  font-family:var(--font-head);
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--maroon);
  font-weight:600;
  margin-bottom:14px;
  position:relative;
  padding-left:28px;
}
.eyebrow::before{
  content:"";
  position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:18px; height:2px; background:var(--maroon);
}
.section-head{ max-width:640px; margin:0 auto 56px; text-align:center; }
.section-head h2{ font-size:clamp(1.7rem,3.2vw,2.4rem); }
.section-lead{ font-size:1.05rem; }
.section-head.light .eyebrow{ color:var(--cream-deep); }
.section-head.light .eyebrow::before{ background:var(--cream-deep); }
.section-head.light h2{ color:var(--white); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(248,244,236,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
  transition:box-shadow .3s;
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 24px;
  gap:20px;
}
.brand-logo{ height:48px; width:auto; }

.main-nav ul{ display:flex; gap:34px; }
.nav-link{
  font-family:var(--font-head);
  font-size:.92rem; font-weight:500;
  color:var(--ink);
  position:relative;
  padding:6px 0;
  transition:color .25s;
}
.nav-link::after{
  content:""; position:absolute; left:0; bottom:0;
  width:0; height:2px; background:var(--maroon);
  transition:width .3s var(--ease);
}
.nav-link:hover, .nav-link.active{ color:var(--maroon); }
.nav-link:hover::after, .nav-link.active::after{ width:100%; }

.header-actions{ display:flex; align-items:center; gap:20px; }
.header-phone{
  display:flex; align-items:center; gap:8px;
  font-weight:600; font-size:.9rem;
  color:var(--ink);
  transition:color .25s;
}
.header-phone:hover{ color:var(--maroon); }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:40px; height:40px; border:none; background:transparent; cursor:pointer;
}
.nav-toggle span{ width:100%; height:2px; background:var(--ink); transition:transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  padding:120px 0 90px;
  overflow:hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(126,13,13,.08), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream) 100%);
}
.hero-contours{
  position:absolute; inset:0; z-index:1; opacity:.55;
}
.hero-contours svg{ width:100%; height:100%; }
.hero-contours .contour{
  fill:none; stroke:var(--maroon); stroke-width:1.4; opacity:.28;
  stroke-dasharray:10 6;
  animation:driftLine 26s linear infinite;
}
.hero-contours .c1{ animation-duration:34s; opacity:.18; }
.hero-contours .c2{ animation-duration:30s; opacity:.22; stroke:var(--ink); }
.hero-contours .c3{ animation-duration:26s; opacity:.26; }
.hero-contours .c4{ animation-duration:32s; opacity:.2; stroke:var(--ink); }
.hero-contours .c5{ animation-duration:28s; opacity:.24; }
@keyframes driftLine{
  from{ stroke-dashoffset:0; }
  to{ stroke-dashoffset:-400; }
}

/* ---------- Hero grid & photo ---------- */
.hero-grid{
  position:relative; z-index:2;
  display:grid; grid-template-columns:1fr; gap:44px; align-items:center;
}
.hero-inner{ max-width:640px; }

.hero-photo{
  position:relative;
  width:100%; max-width:440px;
  margin:0 auto;
  border-radius:var(--radius);
  overflow:hidden;
  aspect-ratio:4/5;
  box-shadow:var(--shadow);
  border:1px solid var(--line);
}
.hero-photo img{ width:100%; height:100%; object-fit:cover; object-position:center 15%; display:block; }

@media (min-width:900px){
  .hero-grid{ grid-template-columns:1.1fr .9fr; gap:40px; align-items:stretch; }
  .hero-photo{ max-width:none; margin:0; aspect-ratio:auto; height:100%; min-height:480px; }
}

@media (min-width:1180px){
  .hero-grid{ gap:64px; }
}

@media (min-width:1180px){
  .hero-photo{ width:44%; }
  .hero-inner{ max-width:580px; }
}

.hero .eyebrow{ font-size:.85rem; }
.hero h1{
  font-size:clamp(2.3rem, 5vw, 3.6rem);
  letter-spacing:-.01em;
}
.hero h1 span{ color:var(--maroon); }
.hero-text{ font-size:1.1rem; max-width:600px; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin:32px 0 44px; }

.hero-badges{ display:flex; flex-wrap:wrap; gap:14px; }
.badge{
  display:flex; align-items:center; gap:10px;
  background:var(--white);
  border:1px solid var(--line);
  padding:10px 18px;
  border-radius:999px;
  font-size:.85rem; font-weight:500;
  box-shadow:0 8px 20px -14px rgba(46,46,46,.4);
}
.badge svg{ width:18px; height:18px; color:var(--maroon); flex-shrink:0; }

.scroll-cue{
  position:absolute; bottom:24px; left:50%; transform:translateX(-50%);
  width:26px; height:42px; border:2px solid var(--ink); border-radius:16px;
  z-index:1;
}
.scroll-cue span{
  position:absolute; top:8px; left:50%; transform:translateX(-50%);
  width:4px; height:8px; border-radius:2px; background:var(--maroon);
  animation:scrollCue 1.8s infinite;
}
@keyframes scrollCue{
  0%{ opacity:1; top:8px; }
  70%{ opacity:0; top:22px; }
  100%{ opacity:0; top:8px; }
}

/* ---------- Section dividers ---------- */
.divider{ line-height:0; margin-top:-1px; }
.divider svg{ width:100%; height:60px; display:block; fill:var(--cream); }
.divider-alt svg{ fill:var(--ink); }
.divider-footer svg{ height:80px; fill:none; }
.divider-footer .divider-wave{ fill:var(--ink); }
.divider-footer .divider-tree{ fill:var(--maroon); opacity:.85; }

/* =========================================================
   ABOUT
   ========================================================= */
.about{ padding:100px 0; }
.about-grid{
  display:grid; grid-template-columns:.85fr 1.15fr; gap:70px; align-items:center;
}
.about-frame{
  position:relative;
  background:var(--white);
  border-radius:var(--radius);
  padding:40px;
  box-shadow:var(--shadow);
  border:1px solid var(--line);
}
.about-frame-photo{
  padding:0;
  overflow:hidden;
  aspect-ratio:4/4.5;
}
.about-frame-photo img{ width:100%; height:100%; object-fit:cover; object-position:center 18%; display:block; }
.photo-tag{
  position:absolute; bottom:16px; left:50%; transform:translateX(-50%);
  background:var(--ink); color:var(--white);
  font-family:var(--font-head); font-size:.8rem; font-weight:600;
  padding:8px 22px; border-radius:999px; letter-spacing:.04em;
  white-space:nowrap;
  box-shadow:0 10px 20px -8px rgba(0,0,0,.35);
}
.about-content h2{ font-size:clamp(1.6rem,3vw,2.2rem); }

.lead-card{
  display:flex; align-items:center; gap:16px;
  margin-top:28px; padding:18px 22px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  max-width:400px;
  box-shadow:0 14px 30px -20px rgba(46,46,46,.4);
}
.lead-avatar{
  width:52px; height:52px; border-radius:50%;
  background:var(--maroon); color:var(--white);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-head); font-weight:700; font-size:1.1rem;
  flex-shrink:0;
}
.lead-name{ margin:0; font-weight:700; color:var(--ink); font-family:var(--font-head); }
.lead-role{ margin:0; font-size:.85rem; color:var(--ink-soft); }

/* =========================================================
   SERVICES
   ========================================================= */
.services{ padding:100px 0 110px; }
.services-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:22px;
}
.service-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px 24px;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position:relative;
  overflow:hidden;
}
.service-card::after{
  content:"";
  position:absolute; right:-40px; bottom:-40px;
  width:140px; height:140px; border-radius:50%;
  border:1.5px solid var(--maroon);
  opacity:0;
  transition:opacity .4s var(--ease), transform .5s var(--ease);
  transform:scale(.7);
}
.service-card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow);
  border-color:transparent;
}
.service-card:hover::after{ opacity:.18; transform:scale(1); }
.service-icon{
  width:50px; height:50px;
  border-radius:13px;
  background:var(--cream-deep);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
  color:var(--maroon);
  transition:background .35s, color .35s;
}
.service-icon svg{ width:23px; height:23px; }
.service-card:hover .service-icon{ background:var(--maroon); color:var(--white); }
.service-card h3{ font-size:1.05rem; margin-bottom:.5em; }
.service-card p{ font-size:.88rem; margin:0; }

/* =========================================================
   FIELD BANNER
   ========================================================= */
.field-banner{
  position:relative;
  height:clamp(240px, 30vw, 340px);
  overflow:hidden;
}
.field-banner img{ width:100%; height:100%; object-fit:cover; display:block; }
.field-banner-overlay{
  position:absolute; inset:0;
  display:flex; align-items:flex-end;
  padding-bottom:36px;
  background:linear-gradient(0deg, rgba(20,16,14,.82) 0%, rgba(20,16,14,.35) 45%, rgba(20,16,14,0) 80%);
}
.field-banner-overlay .eyebrow{ color:var(--white); margin-bottom:10px; }
.field-banner-overlay .eyebrow::before{ background:var(--white); }
.field-banner-text{
  color:var(--white);
  font-family:var(--font-head); font-weight:600;
  font-size:clamp(1.05rem, 2.4vw, 1.4rem);
  max-width:640px;
  margin:0;
}

/* =========================================================
   APPROACH (timeline) — dark section
   ========================================================= */
.approach{
  background:var(--ink);
  padding:110px 0;
  position:relative;
  color:var(--white);
}
.approach::before{
  content:"";
  position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(700px 300px at 10% 10%, rgba(126,13,13,.25), transparent 60%),
    radial-gradient(700px 300px at 90% 90%, rgba(126,13,13,.18), transparent 60%);
  pointer-events:none;
}
.approach-landscape{
  position:absolute; left:0; right:0; bottom:0; z-index:0;
  height:min(24vw, 200px);
  pointer-events:none;
}
.approach-landscape svg{ width:100%; height:100%; display:block; }
.approach-landscape .ground-line{ fill:none; stroke:var(--white); stroke-width:1.2; opacity:.1; }
.approach-landscape .tree{ fill:currentColor; }
.approach-landscape .tree-bg{ color:var(--maroon); opacity:.35; }
.approach-landscape .tree-mid{ color:var(--white); opacity:.08; }
.approach > .container{ position:relative; z-index:1; }
.timeline{ position:relative; max-width:900px; margin:0 auto; }
.timeline-line{
  position:absolute; left:29px; top:10px; bottom:10px; width:2px;
  background:repeating-linear-gradient(to bottom, rgba(255,255,255,.25) 0 8px, transparent 8px 16px);
}
.timeline-item{
  display:grid; grid-template-columns:60px 1fr; gap:28px;
  margin-bottom:48px;
  position:relative;
}
.timeline-item:last-child{ margin-bottom:0; }
.timeline-marker{
  width:60px; height:60px; border-radius:50%;
  background:var(--maroon);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-head); font-weight:700; font-size:1.05rem;
  border:4px solid var(--ink);
  box-shadow:0 0 0 2px rgba(126,13,13,.4);
  z-index:1;
}
.timeline-content h3{ color:var(--white); font-size:1.25rem; margin-bottom:.4em; }
.timeline-content p{ color:rgba(255,255,255,.68); max-width:560px; margin:0; }

/* =========================================================
   WHY
   ========================================================= */
.why{ padding:110px 0; }
.why-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
}
.why-card{
  padding:32px 26px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:linear-gradient(160deg, var(--white), var(--cream));
  transition:transform .4s var(--ease), box-shadow .4s var(--ease);
}
.why-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.why-num{
  display:block;
  font-family:var(--font-head); font-weight:800;
  font-size:1.8rem;
  color:transparent;
  -webkit-text-stroke:1.4px var(--maroon);
  margin-bottom:14px;
}
.why-card h3{ font-size:1.05rem; margin-bottom:.5em; }
.why-card p{ font-size:.9rem; margin:0; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact{ padding:110px 0 120px; }
.contact-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:start;
}
.contact-info h2{ font-size:clamp(1.6rem,3vw,2.2rem); }
.contact-list{ margin-top:32px; display:flex; flex-direction:column; gap:24px; }
.contact-list li{ display:flex; gap:16px; align-items:flex-start; }
.contact-icon{
  width:42px; height:42px; flex-shrink:0;
  border-radius:12px;
  background:var(--white);
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  color:var(--maroon);
}
.contact-icon svg{ width:19px; height:19px; }
.contact-label{ font-family:var(--font-head); font-weight:600; margin:0 0 4px; color:var(--ink); font-size:.92rem; }
.contact-list p{ margin:0; font-size:.94rem; }
.contact-list a:hover{ color:var(--maroon); }

.contact-form{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:36px;
  box-shadow:var(--shadow);
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.contact-form label{ display:block; margin-bottom:18px; }
.contact-form label span{
  display:block; font-size:.82rem; font-weight:600; margin-bottom:7px;
  color:var(--ink); font-family:var(--font-head);
}
.contact-form input, .contact-form textarea{
  width:100%;
  padding:13px 15px;
  border-radius:10px;
  border:1.5px solid var(--line);
  background:var(--cream);
  font-family:var(--font-body);
  font-size:.94rem;
  color:var(--ink);
  transition:border-color .25s, background .25s;
  resize:vertical;
}
.contact-form input:focus, .contact-form textarea:focus{
  outline:none; border-color:var(--maroon); background:var(--white);
}
.form-note{ font-size:.78rem; color:var(--ink-soft); text-align:center; margin:14px 0 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background:var(--ink); color:rgba(255,255,255,.75); }
.footer-inner{
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:50px;
  padding:70px 24px 50px;
}
.footer-logo{ height:44px; margin-bottom:16px; filter:brightness(0) invert(1); }
.footer-brand p{ color:rgba(255,255,255,.6); font-size:.9rem; max-width:280px; }
.footer-col h4{ color:var(--white); font-size:.95rem; margin-bottom:18px; }
.footer-col ul{ display:flex; flex-direction:column; gap:12px; }
.footer-col a{ font-size:.9rem; color:rgba(255,255,255,.65); transition:color .25s; }
.footer-col a:hover{ color:var(--white); }
.footer-col li{ font-size:.9rem; color:rgba(255,255,255,.65); }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.1);
  padding:22px 24px;
}
.footer-bottom-inner{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:8px 24px;
}
.footer-bottom p{ margin:0; font-size:.8rem; color:rgba(255,255,255,.5); text-align:center; }
.footer-credit a{ color:rgba(255,255,255,.7); font-weight:600; transition:color .25s; }
.footer-credit a:hover{ color:var(--white); }

@media (min-width:640px){
  .footer-bottom-inner{ justify-content:space-between; }
}

/* ---------- Floating WhatsApp ---------- */
.float-whatsapp{
  position:fixed; right:24px; bottom:24px; z-index:90;
  width:56px; height:56px; border-radius:50%;
  background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 14px 30px -10px rgba(37,211,102,.6);
  transition:transform .3s var(--ease);
}
.float-whatsapp svg{ width:28px; height:28px; }
.float-whatsapp:hover{ transform:scale(1.08); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  .about-grid{ grid-template-columns:1fr; gap:50px; }
  .about-visual{ max-width:360px; margin:0 auto; }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .why-grid{ grid-template-columns:repeat(2,1fr); }
  .contact-grid{ grid-template-columns:1fr; gap:50px; }
}

.nav-backdrop{
  display:none;
  position:fixed; inset:0;
  background:rgba(46,46,46,.4);
  backdrop-filter:blur(2px);
  opacity:0;
  transition:opacity .35s var(--ease);
  z-index:98;
}
.nav-backdrop.open{ display:block; opacity:1; }

@media (max-width: 860px){
  .main-nav{
    position:fixed; inset:0 0 0 auto; top:0; height:100vh; width:min(320px,80vw);
    background:var(--cream); border-left:1px solid var(--line);
    padding:100px 32px 32px;
    transform:translateX(100%);
    transition:transform .4s var(--ease);
    z-index:99;
    box-shadow:-20px 0 40px -20px rgba(0,0,0,.2);
  }
  .main-nav.open{ transform:translateX(0); }
  .main-nav ul{ flex-direction:column; gap:22px; }
  .header-phone{ display:none; }
  .nav-toggle{ display:flex; }
  .header-actions .btn{ display:none; }
}

@media (max-width: 640px){
  .services-grid{ grid-template-columns:1fr; }
  .why-grid{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .hero{ padding:100px 0 70px; }
  .about, .services, .approach, .why, .contact{ padding-top:70px; padding-bottom:70px; }
  .footer-inner{ grid-template-columns:1fr; gap:36px; padding:56px 24px 40px; }
  .timeline-item{ grid-template-columns:46px 1fr; gap:18px; }
  .timeline-marker{ width:46px; height:46px; font-size:.85rem; }
  .timeline-line{ left:22px; }
}
