/* ==========================================================================
   MANSA CONSULTANTS LTD — Design tokens & global styles
   Theme: "Site Plan" — blueprint-inspired structure, drafting marks,
   editorial serif headings on warm paper, forest green + gold brand.
   ========================================================================== */

/* Metric-matched fallback fonts — prevents layout shift (CLS) when the
   webfonts swap in. Ascent/descent/line-gap values sourced from Google's
   official font-fallbacks-dataset so the fallback occupies the same
   vertical space as the real webfont before/after it loads. */
@font-face{
  font-family:"Fraunces Fallback";
  src:local("Georgia"), local("Times New Roman"), local("Times");
  ascent-override:97.8%; descent-override:25.5%; line-gap-override:0%;
}
@font-face{
  font-family:"Inter Fallback";
  src:local("Arial"), local("Helvetica"), local("Segoe UI");
  ascent-override:96.875%; descent-override:24.148%; line-gap-override:0%;
}
@font-face{
  font-family:"IBM Plex Mono Fallback";
  src:local("Courier New"), local("Consolas"), local("Menlo");
  ascent-override:102.5%; descent-override:27.5%; line-gap-override:0%;
}

:root{
  /* --- Brand color tokens (sampled from company logo/branding) --- */
  --green-900:#14302A;   /* deepest pine — footer, dark sections      */
  --green-700:#1E4D3B;   /* primary brand green — headers, buttons    */
  --green-600:#28604A;   /* hover / lighter green                     */
  --gold-500:#F2C200;    /* brand gold — accents, CTA, dividers       */
  --gold-600:#D9AE00;    /* gold hover                                */
  --cream-50:#F7F5EF;    /* warm paper background                     */
  --cream-100:#EFEBE0;   /* card / section alt background             */
  --ink-900:#1E2220;     /* primary text                              */
  --ink-600:#535B55;     /* secondary / muted text                    */
  --line:#D8D2C2;        /* hairline rule color on cream               */
  --line-dark:rgba(247,245,239,0.22); /* hairline on dark green       */

  /* --- Type tokens --- */
  --font-display:"Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --font-body:"Inter", "Inter Fallback", -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-mono:"IBM Plex Mono", "IBM Plex Mono Fallback", "SFMono-Regular", Menlo, monospace;

  /* --- Layout tokens --- */
  --maxw:1180px;
  --gutter:clamp(20px, 5vw, 56px);
  --radius:2px; /* near-square, drafting-table feel — not pillowy */
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--cream-50);
  color:var(--ink-900);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:600;margin:0 0 .4em;line-height:1.12;letter-spacing:-0.01em;}
p{margin:0 0 1em;color:var(--ink-600);}
ul{margin:0;padding:0;}
li{list-style:none;}
button{font-family:inherit;cursor:pointer;}

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2.5px solid var(--gold-500);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important;}
}

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

/* --------------------------------------------------------------------------
   Eyebrow / mono labels — the "blueprint spec" device used throughout
   -------------------------------------------------------------------------- */
.eyebrow{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--green-700);
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:22px; height:1px;
  background:var(--gold-500);
  display:inline-block;
}
.eyebrow.on-dark{color:var(--gold-500);}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(247,245,239,0.92);
  border-bottom:1px solid var(--line);
}
.site-header::before{
  content:"";
  position:absolute; inset:0;
  backdrop-filter:saturate(140%) blur(6px);
  z-index:-1;
  pointer-events:none;
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px var(--gutter);
  max-width:var(--maxw); margin:0 auto;
}
.brand{display:flex; align-items:center; gap:10px;}
.brand img{height:38px; width:auto; object-fit:contain;}
.brand-text{font-family:var(--font-display); font-weight:600; font-size:17px; color:var(--green-900); line-height:1.1;}
.brand-text small{display:block; font-family:var(--font-mono); font-weight:400; font-size:10px; letter-spacing:.08em; color:var(--ink-600); text-transform:uppercase;}

.nav-links{display:flex; align-items:center; gap:30px;}
.nav-links a{
  font-size:14.5px; font-weight:500; color:var(--ink-900);
  position:relative; padding:4px 0;
}
.nav-links a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-2px; height:2px;
  background:var(--gold-500); transition:right .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after{right:0;}
.nav-links a.active{color:var(--green-700);}

.nav-cta{
  background:var(--green-700); color:#fff !important;
  padding:12px 26px; font-weight:600; font-size:14px;
  border:1px solid var(--green-700);
  border-radius:10px;
}
.nav-cta:hover{background:var(--green-600); border-color:var(--green-600);}
.nav-cta::after{display:none;}

.nav-toggle{display:none; background:none; border:0; padding:6px;}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width:24px; height:2px; background:var(--green-900);
  position:relative; transition:.2s;
}
.nav-toggle span::before{content:""; position:absolute; top:-7px; width:24px; height:2px; background:var(--green-900);}
.nav-toggle span::after{content:""; position:absolute; top:7px; width:24px; height:2px; background:var(--green-900);}

@media (max-width:880px){
  .nav-links{
    position:fixed; top:62px; left:0; right:0; background:var(--cream-50);
    flex-direction:column; align-items:flex-start; gap:0;
    padding:10px var(--gutter) 22px;
    transform:translateY(-12px); opacity:0; visibility:hidden;
    transition:opacity .2s ease, transform .2s ease, visibility .2s;
    border-radius:0 0 14px 14px;
    box-shadow:0 18px 32px rgba(20,48,42,.18);
  }
  .nav-links.open{transform:translateY(0); opacity:1; visibility:visible;}
  .nav-links a{display:block; width:100%; padding:16px 4px; border-bottom:1px solid var(--line);}
  .nav-links a.nav-cta{
    display:block; width:100%; margin-top:18px;
    padding:15px 22px; border-bottom:none; border-radius:10px;
    text-align:center;
  }
  .nav-toggle{display:block;}
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 26px;
  font-size:14.5px; font-weight:600;
  border:1.5px solid transparent;
  letter-spacing:.01em;
  transition:transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary{background:var(--gold-500); color:var(--green-900); border-color:var(--gold-500);}
.btn-primary:hover{background:var(--gold-600); border-color:var(--gold-600); transform:translateY(-1px);}
.btn-outline{background:transparent; color:var(--cream-50); border-color:var(--line-dark);}
.btn-outline:hover{border-color:var(--gold-500); color:var(--gold-500);}
.btn-outline.on-light{color:var(--green-900); border-color:var(--green-900);}
.btn-outline.on-light:hover{background:var(--green-900); color:#fff;}
.btn-block{width:100%; justify-content:center;}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero{
  position:relative; color:#fff;
  min-height:92vh; display:flex; align-items:flex-end;
  overflow:hidden;
}
.hero-media{position:absolute; inset:0; z-index:0;}
.hero-media img{width:100%; height:100%; object-fit:cover; object-position:center center;}
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(17,35,28,.55) 0%, rgba(17,35,28,.35) 35%, rgba(15,28,23,.92) 100%);
}
.hero-inner{position:relative; z-index:1; width:100%; padding-bottom:64px;}
.hero-frame{
  border:1px solid var(--line-dark);
  border-bottom:none;
  padding:34px clamp(20px,5vw,56px) 0;
  position:relative;
}
/* drafting corner ticks — signature motif */
.hero-frame::before, .hero-frame::after{
  content:""; position:absolute; width:16px; height:16px;
  border-top:1.5px solid var(--gold-500); border-left:1.5px solid var(--gold-500);
  top:-1px; left:-1px;
}
.hero-frame::after{
  left:auto; right:-1px; border-left:none; border-right:1.5px solid var(--gold-500);
}
.hero-tag{
  font-family:var(--font-mono); font-size:12.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--gold-500); margin-bottom:18px; display:block;
}
.hero h1{
  font-size:clamp(2.4rem, 5.4vw, 4.4rem);
  max-width:14ch;
  margin-bottom:.5em;
}
.hero h1 em{font-style:normal; color:var(--gold-500);}
.hero p.lead{
  color:rgba(247,245,239,1); font-size:18px; max-width:46ch; margin-bottom:30px;
}
.hero-actions{display:flex; flex-wrap:wrap; gap:14px; margin-bottom:30px;}
.hero-projects{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:30px;
}
.hero-project-card{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  border-radius:12px;
  background:rgba(255,255,255,.08);
}
.hero-project-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}
.hero-project-card:hover img{
  transform:scale(1.05);
}
@media (max-width:900px){
  .hero-projects{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:600px){
  .hero-projects{grid-template-columns:1fr;}
}
.hero-stats{
  display:grid; grid-template-columns:repeat(4,1fr);
  border-top:1px solid var(--line-dark);
  padding-top:22px; gap:18px;
}
.hero-stats div b{
  display:block; font-family:var(--font-display); font-size:clamp(1.4rem,3vw,2rem); color:#fff;
}
.hero-stats div span{
  font-family:var(--font-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:rgba(247,245,239,.7);
}
@media (max-width:760px){
  .hero-stats{grid-template-columns:repeat(2,1fr); row-gap:20px;}
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */
section{padding:96px 0;}
.section-tight{padding:64px 0;}
.section-head{max-width:680px; margin-bottom:50px;}
.section-head h2{font-size:clamp(1.9rem, 3.6vw, 2.6rem);}
.section-head p{font-size:17px;}
.bg-alt{background:var(--cream-100);}
.bg-dark{background:var(--green-900); color:var(--cream-50);}
.bg-dark p{color:rgba(247,245,239,.75);}
.bg-dark h2, .bg-dark h3{color:#fff;}
.rule{border:0; border-top:1px solid var(--line); margin:0;}
.rule.on-dark{border-top:1px solid var(--line-dark);}

/* --------------------------------------------------------------------------
   About / split layout
   -------------------------------------------------------------------------- */
.split{
  display:grid; grid-template-columns:1.05fr .95fr; gap:64px; align-items:center;
}
@media (max-width:880px){ .split{grid-template-columns:1fr; gap:36px;} }
.split-media{position:relative;}
.framed-img{position:relative; line-height:0;}
.framed-img img{width:100%; height:100%; object-fit:cover;}
.framed-img::before{
  content:""; position:absolute; inset:-14px -14px auto auto; width:60%; height:60%;
  border-top:1.5px solid var(--gold-500); border-right:1.5px solid var(--gold-500);
  z-index:2; pointer-events:none;
}
.framed-img::after{
  content:""; position:absolute; inset:auto auto -14px -14px; width:42%; height:42%;
  border-bottom:1.5px solid var(--green-700); border-left:1.5px solid var(--green-700);
  z-index:2; pointer-events:none;
}

.stat-row{display:flex; gap:40px; margin-top:30px; flex-wrap:wrap;}
.stat-row div b{display:block; font-family:var(--font-display); font-size:2rem; color:var(--green-700);}
.stat-row div span{font-family:var(--font-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-600);}

/* --------------------------------------------------------------------------
   Services grid
   -------------------------------------------------------------------------- */
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line);}
@media (max-width:880px){.grid-3{grid-template-columns:1fr;}}
.service-card{
  background:var(--cream-50); padding:38px 32px; position:relative;
  transition:background .2s ease;
}
.service-card:hover{background:#fff;}
.service-index{font-family:var(--font-mono); font-size:12px; color:var(--gold-600); margin-bottom:18px; display:block;}
.service-card h3{font-size:1.2rem; margin-bottom:10px;}
.service-card p{margin-bottom:0; font-size:15px;}

/* --------------------------------------------------------------------------
   Certification strip (teaser on home) + full grid (certificates page)
   -------------------------------------------------------------------------- */
.cert-strip{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line);}
@media (max-width:880px){.cert-strip{grid-template-columns:repeat(2,1fr);}}
.cert-chip{background:var(--cream-50); padding:28px 22px; text-align:left;}
.cert-chip .code{font-family:var(--font-mono); font-size:11px; color:var(--green-700); letter-spacing:.06em;}
.cert-chip h4{font-size:15.5px; margin:8px 0 6px;}
.cert-chip p{font-size:13.5px; margin:0;}

.cert-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:24px;}
@media (max-width:760px){.cert-grid{grid-template-columns:1fr;}}
.cert-card{
  border:1px solid var(--line); background:#fff; padding:30px;
  position:relative;
}
.cert-card .seal{
  width:46px; height:46px; border-radius:50%;
  border:1.5px dashed var(--gold-600);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-size:10px; color:var(--green-700);
  margin-bottom:18px;
}
.cert-card h3{font-size:1.05rem; margin-bottom:6px;}
.cert-card .meta{
  display:flex; flex-wrap:wrap; gap:14px; margin-top:16px;
  border-top:1px dashed var(--line); padding-top:14px;
}
.cert-card .meta div{font-family:var(--font-mono); font-size:11.5px; color:var(--ink-600);}
.cert-card .meta div b{display:block; color:var(--ink-900); font-size:13px; font-family:var(--font-body); font-weight:600;}

.standards-list{display:grid; grid-template-columns:repeat(2,1fr); gap:16px 40px; margin-top:10px;}

/* --------------------------------------------------------------------------
   Certificate photo grid (real scanned certificates) + lightbox
   -------------------------------------------------------------------------- */
.cert-photo-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px;}
@media (max-width:980px){.cert-photo-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:620px){.cert-photo-grid{grid-template-columns:1fr;}}
.cert-photo{
  margin:0; border:1px solid var(--line); background:#fff;
  cursor:zoom-in; transition:transform .2s ease, box-shadow .2s ease;
}
.cert-photo:hover{transform:translateY(-3px); box-shadow:0 14px 30px rgba(20,48,42,.12);}
.cert-photo img{width:100%; display:block; aspect-ratio:4/3; object-fit:cover; object-position:top;}
.cert-photo figcaption{padding:14px 16px 16px; border-top:1px dashed var(--line);}
.cert-photo figcaption b{display:block; font-size:14px; margin-bottom:4px;}
.cert-photo figcaption span{font-family:var(--font-mono); font-size:11.5px; color:var(--ink-600);}

.lightbox{
  position:fixed; inset:0; z-index:200; background:rgba(20,30,26,.92);
  display:flex; align-items:center; justify-content:center; padding:40px;
  opacity:0; visibility:hidden; transition:opacity .2s ease, visibility .2s;
}
.lightbox.open{opacity:1; visibility:visible;}
.lightbox img{max-width:min(900px,92vw); max-height:88vh; box-shadow:0 20px 60px rgba(0,0,0,.5);}
.lightbox-close{
  position:absolute; top:22px; right:26px; background:none; border:0;
  color:#fff; font-size:34px; line-height:1; cursor:pointer;
}
@media (max-width:700px){.standards-list{grid-template-columns:1fr;}}
.standards-list li{
  display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--line);
}
.standards-list li .tag{
  font-family:var(--font-mono); font-size:12px; color:var(--gold-600); min-width:84px;
}
.standards-list li b{display:block; font-size:15px; margin-bottom:2px;}
.standards-list li span{font-size:13.5px; color:var(--ink-600);}

/* --------------------------------------------------------------------------
   Projects grid
   -------------------------------------------------------------------------- */
.filter-row{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:40px;}
.filter-btn{
  font-family:var(--font-mono); font-size:12px; letter-spacing:.04em; text-transform:uppercase;
  padding:9px 16px; border:1px solid var(--line); background:transparent; color:var(--ink-600);
}
.filter-btn.active, .filter-btn:hover{border-color:var(--green-700); color:var(--green-700);}

.proj-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:28px;}
@media (max-width:980px){.proj-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:620px){.proj-grid{grid-template-columns:1fr;}}
.proj-card{position:relative;}
.proj-thumb{position:relative; aspect-ratio:4/3; overflow:hidden; background:var(--cream-100);}
.proj-thumb img{width:100%; height:100%; object-fit:cover; transition:transform .5s ease;}
.proj-card:hover .proj-thumb img{transform:scale(1.06);}
.proj-thumb .cat{
  position:absolute; top:12px; left:12px;
  background:var(--green-900); color:var(--gold-500);
  font-family:var(--font-mono); font-size:10.5px; letter-spacing:.06em; text-transform:uppercase;
  padding:6px 10px;
}
.proj-body{padding:16px 2px 0;}
.proj-body h3{font-size:1.05rem; margin-bottom:4px;}
.proj-body p{font-size:13.5px; margin-bottom:0;}

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */
.cta-banner{
  background:var(--green-700); color:#fff; padding:64px 0;
  position:relative; overflow:hidden;
}
.cta-banner .wrap{display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;}
.cta-banner h2{color:#fff; font-size:clamp(1.6rem,3vw,2.2rem); margin-bottom:6px; max-width:22ch;}
.cta-banner p{color:rgba(247,245,239,.82); margin-bottom:0;}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-grid{display:grid; grid-template-columns:.9fr 1.1fr; gap:60px;}
@media (max-width:900px){.contact-grid{grid-template-columns:1fr; gap:40px;}}
.info-card{border:1px solid var(--line); padding:0; background:#fff;}
.info-row{display:flex; gap:16px; padding:22px 26px; border-bottom:1px solid var(--line);}
.info-row:last-child{border-bottom:none;}
.info-row .ico{
  width:38px; height:38px; flex:none; border-radius:50%;
  background:var(--cream-100); display:flex; align-items:center; justify-content:center;
  color:var(--green-700);
}
.info-row b{display:block; font-size:14px; margin-bottom:3px;}
.info-row span, .info-row a{font-size:14px; color:var(--ink-600);}
.info-row a:hover{color:var(--green-700);}

.social-row{display:flex; gap:10px; margin-top:22px;}
.social-row a{
  width:40px; height:40px; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  color:var(--green-700); transition:.2s;
}
.social-row a:hover{background:var(--green-700); color:#fff; border-color:var(--green-700);}

.form-card{border:1px solid var(--line); background:#fff; padding:36px;}
.field{margin-bottom:20px;}
.field label{
  display:block; font-family:var(--font-mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.06em;
  color:var(--ink-600); margin-bottom:8px;
}
.field input, .field select, .field textarea{
  width:100%; border:1px solid var(--line); background:var(--cream-50);
  padding:13px 14px; font-family:var(--font-body); font-size:14.5px; color:var(--ink-900);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--green-700); background:#fff;
}
.field textarea{resize:vertical; min-height:120px;}
.row-2{display:grid; grid-template-columns:1fr 1fr; gap:18px;}
@media (max-width:520px){.row-2{grid-template-columns:1fr;}}
.form-note{font-size:12.5px; color:var(--ink-600); margin-top:14px;}
.form-success{
  display:none; border:1px solid var(--green-700); background:var(--cream-100);
  padding:18px 20px; font-size:14px; color:var(--green-900); margin-top:18px;
}
.form-success.show{display:block;}
.form-error{
  display:none; border:1px solid #B3261E; background:#FBEAE9;
  padding:18px 20px; font-size:14px; color:#7A1B16; margin-top:18px;
}
.form-error.show{display:block;}

.map-frame{border:1px solid var(--line); height:280px; overflow:hidden; margin-top:30px;}
.map-frame iframe{width:100%; height:100%; border:0;}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer{background:var(--green-900); color:#CBCFC9; padding:70px 0 28px;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px;}
@media (max-width:880px){.footer-grid{grid-template-columns:1fr 1fr; row-gap:36px;}}
@media (max-width:520px){.footer-grid{grid-template-columns:1fr;}}
.footer-grid h2, .footer-grid h3{
  font-family:var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--gold-500); margin-bottom:18px; font-weight:600;
}
.footer-grid li{margin-bottom:10px; font-size:14px;}
.footer-grid a:hover{color:#fff;}
.footer-brand{display:flex; gap:10px; align-items:center; margin-bottom:14px;}
.footer-brand img{height:34px; width:auto; object-fit:contain;}
.footer-brand b{font-family:var(--font-display); color:#fff; font-size:17px;}
.footer-bottom{
  border-top:1px solid var(--line-dark); margin-top:50px; padding-top:22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:12.5px; font-family:var(--font-mono); color:#B3BAB4;
}

/* --------------------------------------------------------------------------
   Floating "Contact Us Today" button — site-tag / survey-marker styling
   -------------------------------------------------------------------------- */
.float-cta{
  position:fixed; right:24px; bottom:24px; z-index:80;
  background:var(--gold-500); color:var(--green-900);
  font-family:var(--font-mono); font-size:13px; font-weight:600; letter-spacing:.03em;
  display:flex; align-items:center; gap:10px;
  padding:16px 24px;
  border:1px solid var(--green-900);
  border-radius:10px;
  box-shadow:0 10px 24px rgba(20,48,42,.25);
  transition:opacity .25s ease, transform .25s ease, visibility .25s;
  text-transform:uppercase;
}
.float-cta:hover{background:var(--gold-600); transform:translateY(-2px);}
.float-cta .dot{width:7px; height:7px; border-radius:50%; background:var(--green-900); flex:none;}
.float-cta.hide{opacity:0; visibility:hidden; transform:translateY(10px);}
@media (max-width:520px){
  .float-cta{right:16px; bottom:16px; padding:12px 16px; font-size:12px;}
}

/* --------------------------------------------------------------------------
   Page hero (sub-pages: certificates / projects / contact)
   -------------------------------------------------------------------------- */
.page-hero{
  background:var(--green-900); color:#fff;
  padding:150px 0 60px;
  position:relative;
}
.page-hero .eyebrow{color:var(--gold-500);}
.page-hero h1{color:#fff; font-size:clamp(2rem,4.4vw,3.2rem); max-width:18ch;}
.page-hero p{color:rgba(247,245,239,.78); max-width:56ch; font-size:16.5px;}

/* Reveal-on-scroll utility */
.reveal{opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease;}
.reveal.in{opacity:1; transform:none;}

/* ==========================================================================
   REDESIGN ADDITIONS — Mansa Consultants v2
   Changes: consultation-first framing, service station project gallery,
   clients strip, canopy feature section.
   ========================================================================== */

/* ---- Service cards with photo backgrounds (new style) ---- */
.services-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 880px) { .services-photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .services-photo-grid { grid-template-columns: 1fr; } }

.svc-photo-card {
  position: relative;
  background: var(--green-900);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.svc-photo-card .svc-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.38;
  transition: opacity 0.4s ease, transform 0.55s ease;
}
/* SVG backgrounds render better at slightly higher opacity */
.svc-photo-card .svc-bg.svc-bg-svg {
  opacity: 0.55;
}
.svc-photo-card:hover .svc-bg { opacity: 0.22; transform: scale(1.05); }
.svc-photo-card:hover .svc-bg.svc-bg-svg { opacity: 0.3; }

.svc-photo-card .svc-body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 28px 26px;
}
.svc-photo-card .svc-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-500);
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.svc-photo-card h3 {
  color: #fff;
  font-size: 1.12rem;
  margin-bottom: 8px;
}
.svc-photo-card p {
  color: rgba(247, 245, 239, .72);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}
.svc-photo-card:hover p { max-height: 120px; opacity: 1; }
.svc-photo-card .svc-rule {
  width: 28px; height: 1.5px;
  background: var(--gold-500);
  margin-bottom: 12px;
  transition: width 0.3s ease;
}
.svc-photo-card:hover .svc-rule { width: 44px; }

/* Featured card spans 2 columns */
.svc-photo-card.svc-featured {
  grid-column: span 2;
  aspect-ratio: 8 / 3;
}
@media (max-width: 880px) { .svc-photo-card.svc-featured { grid-column: span 2; aspect-ratio: 4/3; } }
@media (max-width: 540px) { .svc-photo-card.svc-featured { grid-column: span 1; aspect-ratio: 4/3; } }

.svc-photo-card.svc-featured-last {
  grid-column: span 2;
  aspect-ratio: 8 / 3;
}
/* ensure background image covers properly */
.svc-photo-card.svc-featured-last .svc-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Fix text overflow for featured cards */
.svc-photo-card.svc-featured-last .svc-body p {
  font-size: 13px;
  line-height: 1.4;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.svc-photo-card.svc-featured-last .svc-body h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
@media (max-width: 880px) {
  .svc-photo-card.svc-featured-last {
    grid-column: span 2;
    aspect-ratio: 4/3;
  }
}
@media (max-width: 540px) {
  .svc-photo-card.svc-featured-last {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }
}

/* ---- Specialty feature panels ---- */
.canopy-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
/* Second panel: flip image to right */
.canopy-feature--reverse {
  direction: rtl;
}
.canopy-feature--reverse > * {
  direction: ltr;
}
@media (max-width: 820px) {
  .canopy-feature { grid-template-columns: 1fr; }
  .canopy-feature--reverse { direction: ltr; }
}
.canopy-feature .cf-image {
  position: relative; overflow: hidden;
  min-height: 340px;
}
.canopy-feature .cf-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.canopy-feature .cf-body {
  background: var(--green-900);
  padding: clamp(36px, 6vw, 64px);
  display: flex; flex-direction: column; justify-content: center;
}
.canopy-feature .cf-body p { color: rgba(247,245,239,.78); font-size: 16px; }
.canopy-feature .cf-body .eyebrow { color: var(--gold-500); }
.canopy-feature .cf-body h2 { color: #fff; }

/* ---- Clients strip ---- */
.clients-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  background: #fff;
  overflow: hidden;
  position: relative;
}
.clients-strip .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: nowrap;
}

/* static label + rule (fixed) */
.cs-label-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.cs-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-600);
  white-space: nowrap;
}
.cs-rule {
  width: 1px;
  height: 32px;
  background: var(--line);
  flex-shrink: 0;
}

/* ---- sliding track ---- */
.cs-track-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.cs-track {
  display: flex;
  gap: 40px;
  align-items: center;
  width: max-content;
  animation: slideClients 25s linear infinite;
  will-change: transform;
}
/* Pause on hover */
.cs-track-wrapper:hover .cs-track {
  animation-play-state: paused;
}

.cs-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 90px;
}
.cs-brand img {
  height: 32px;
  width: auto;
  filter: grayscale(0.1);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.cs-brand:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}
.cs-brand span {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-600);
  opacity: 0.8;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}
.cs-brand:hover span {
  opacity: 1;
}

/* duplicate set for seamless loop */
.cs-track .cs-brand-duplicate {
  display: flex;
  gap: 40px;
  align-items: center;
}
.cs-track .cs-brand-duplicate .cs-brand {
  min-width: 90px;
}

@keyframes slideClients {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== responsive: adjust gap / speed ===== */
@media (max-width: 900px) {
  .cs-track { gap: 28px; animation-duration: 22s; }
  .cs-brand { min-width: 72px; }
  .cs-brand img { height: 26px; }
  .cs-brand span { font-size: .75rem; }
}
@media (max-width: 600px) {
  .cs-track { gap: 18px; animation-duration: 18s; }
  .cs-brand { min-width: 60px; }
  .cs-brand img { height: 22px; }
  .cs-brand span { font-size: .65rem; }
  .clients-strip .wrap { gap: 16px; }
}
@media (max-width: 420px) {
  .cs-track { gap: 12px; animation-duration: 15s; }
  .cs-brand { min-width: 48px; }
  .cs-brand img { height: 18px; }
}
@media (max-width: 480px) {
  .cs-label { font-size: 10px; }
  .cs-rule { height: 24px; }
}

/* ---- Projects grid (service station renders) ---- */
.proj-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .proj-grid-v2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .proj-grid-v2 { grid-template-columns: 1fr; } }

.proj-grid-v2 .proj-card-v2 {
  position: relative;
  overflow: hidden;
  background: var(--green-900);
}
.proj-grid-v2 .proj-card-v2.wide { grid-column: span 2; }
@media (max-width: 980px) { .proj-grid-v2 .proj-card-v2.wide { grid-column: span 1; } }

.proj-card-v2 .pv2-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.proj-card-v2.wide .pv2-img { aspect-ratio: 16 / 7; }
@media (max-width: 980px) { .proj-card-v2.wide .pv2-img { aspect-ratio: 4/3; } }

.proj-card-v2 .pv2-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.85);
}
.proj-card-v2:hover .pv2-img img { transform: scale(1.05); filter: brightness(0.65); }

.proj-card-v2 .pv2-body {
  padding: 18px 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: none;
}
.proj-card-v2 .pv2-client {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 4px;
}
.proj-card-v2 .pv2-body h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--ink-900);
}
.proj-card-v2 .pv2-loc {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-600);
}

/* ---- Client table (project list) ---- */
.client-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.client-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-600);
  text-align: left;
  padding: 10px 16px;
  border-bottom: 2px solid var(--line);
  background: var(--cream-100);
}
.client-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-900);
  vertical-align: middle;
}
.client-table tr:hover td { background: var(--cream-50); }
.client-table .td-no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-600);
  width: 44px;
}
.client-table .td-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--green-700);
  color: var(--green-700);
}
.client-table .td-status.active {
  background: var(--green-700);
  color: #fff;
  border-color: var(--green-700);
}
