/* ============================================================
   Mbali Consultancy Company Secretaries
   Brand system derived from the company profile:
   navy + lime + gold, the mountain-peak mark, the ascent theme.
   ============================================================ */

:root {
  --ink:      #0f2438;
  --navy:     #14324f;
  --navy-700: #1b436a;
  --navy-050: #eef3f8;
  --green:    #a4c73f;
  --green-600:#7f9f2a;
  --green-050:#f0f5e2;
  --gold:     #f2a92c;
  --gold-600: #d98f18;
  --paper:    #f7f8f4;
  --paper-2:  #eef1ea;
  --line:     #dde3d9;
  --body:     #33424d;
  --muted:    #5b6a73;
  --white:    #ffffff;

  --maxw: 1160px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --sect: clamp(4rem, 8vw, 7rem);
  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 18px 46px -22px rgba(15, 36, 56, .38);
  --shadow-sm: 0 8px 22px -14px rgba(15, 36, 56, .40);

  --f-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --f-body: "Mulish", "Segoe UI", system-ui, sans-serif;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--body);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1.05rem; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sect); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.center { text-align: center; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 60ch; }
.section.center .lede { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 0.9rem;
}
.eyebrow--gold { color: var(--gold-600); }
.eyebrow--light { color: var(--green); }

.h-xl { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; }
.h-lg { font-size: clamp(1.95rem, 3.6vw, 2.9rem); font-weight: 700; }
.h-md { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 700; }

.section-head { max-width: 66ch; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section.center .section-head { margin-inline: auto; }

/* ---------- brand "tab" label (echoes the profile's Vision/Mission tabs) ---------- */
.tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .01em;
  color: var(--ink);
  background: var(--green);
  padding: .5rem 1.4rem .55rem;
  border-radius: 4px 16px 16px 4px;
  box-shadow: var(--shadow-sm);
}
.tab--navy { background: var(--navy); color: #fff; }
.tab .peak { width: 20px; height: 20px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--gold);
  --fg: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  box-shadow: 0 10px 24px -14px rgba(242,169,44,.9);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn--navy { --bg: var(--navy); --fg: #fff; box-shadow: 0 12px 26px -16px rgba(20,50,79,.9); }
.btn--green { --bg: var(--green); --fg: var(--ink); box-shadow: 0 12px 26px -16px rgba(127,159,42,.9); }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border-color: rgba(15,36,56,.22);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--navy); }
.btn--ghost-light {
  --bg: transparent; --fg: #fff;
  border-color: rgba(255,255,255,.4);
  box-shadow: none;
}
.btn--ghost-light:hover { background: rgba(255,255,255,.1); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.06rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247,248,244,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: 1.18rem; color: var(--navy); letter-spacing: .01em; }
.brand__sub { font-family: var(--f-display); font-weight: 600; font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--green-600); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__links a {
  font-family: var(--f-display); font-weight: 500; font-size: .96rem;
  color: var(--ink); padding: .55rem .85rem; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav__links a:hover { color: var(--navy-700); background: var(--paper-2); }
.nav__links a.is-active { color: var(--navy); }
.nav__links a.is-active::after {
  content: ""; display: block; height: 3px; width: 22px; margin: 4px auto 0;
  background: var(--gold); border-radius: 3px;
}
.nav__cta { margin-left: .4rem; }

.nav__toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy);
  color: #eaf1f8;
  overflow: hidden;
}
.hero::before {
  /* angled paper wedge, echoing the profile's diagonal cuts */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(164,199,63,.18), transparent 55%),
    radial-gradient(100% 80% at 4% 108%, rgba(27,67,106,.9), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--green); }
.hero__eyebrow { color: var(--green); }
.hero__lede { color: #c6d5e4; font-size: clamp(1.08rem, 1.7vw, 1.24rem); max-width: 46ch; margin-top: .4rem; }
.hero__cta { margin-top: 2rem; }
.hero__meta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.6rem; }
.hero__meta-item { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: #b9cade; }
.hero__meta-item .peak { width: 18px; height: 18px; flex: none; }
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); }

/* ============================================================
   VALUE STRIP
   ============================================================ */
.valuestrip { background: var(--green); }
.valuestrip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; padding-block: 2.2rem; }
.value {
  display: flex; align-items: flex-start; gap: .7rem;
  color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: 1rem;
}
.value .peak { width: 22px; height: 22px; flex: none; margin-top: 1px; }

/* ============================================================
   INTRO / SPLIT
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--art-left { grid-template-columns: .92fr 1.08fr; }
.split__art { position: relative; }
.split__art svg { width: 100%; height: auto; }
.prose p { color: var(--body); }
.prose .lede { color: var(--muted); margin-bottom: 1.4rem; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdd7c6; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--navy-050); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.2rem; margin-bottom: .55rem; }
.card p { font-size: .98rem; color: var(--muted); margin: 0; }

/* ============================================================
   SERVICE DETAIL BLOCKS (services page)
   ============================================================ */
.svc {
  display: grid; grid-template-columns: 64px 1fr; gap: 1.5rem;
  padding: 2.1rem 0; border-top: 1px solid var(--line);
}
.svc:first-child { border-top: 0; }
.svc__badge {
  width: 64px; height: 64px; border-radius: 16px; flex: none;
  background: var(--navy); color: #fff; display: grid; place-items: center;
}
.svc__badge svg { width: 32px; height: 32px; }
.svc h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.svc p { color: var(--body); }
.svc__list { display: flex; flex-wrap: wrap; gap: .5rem .7rem; margin-top: .9rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--green-050); color: var(--navy);
  font-family: var(--f-display); font-weight: 500; font-size: .86rem;
  padding: .42rem .85rem; border-radius: 999px; border: 1px solid #dfe9c9;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-600); }

/* ============================================================
   PANELS (navy / feature)
   ============================================================ */
.panel {
  position: relative; overflow: hidden;
  background: var(--navy); color: #dfe9f2; border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 4rem);
}
.panel--split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.panel h2, .panel h3 { color: #fff; }
.panel .eyebrow { color: var(--green); }
.panel__deco { position: absolute; right: -40px; bottom: -40px; width: 260px; opacity: .18; pointer-events: none; }
.panel__deco svg { width: 100%; }

/* mission list */
.mission-list { display: grid; gap: 1rem; margin-top: 1.4rem; }
.mission-list li { display: grid; grid-template-columns: 26px 1fr; gap: .8rem; align-items: start; color: #cdd9e6; }
.mission-list .peak { width: 22px; height: 22px; margin-top: 3px; }
.mission-list strong { color: #fff; font-family: var(--f-display); }

/* ============================================================
   WHY US
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.why {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm);
}
.why__num {
  font-family: var(--f-display); font-weight: 800; font-size: 1rem;
  color: var(--gold-600); display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .7rem;
}
.why__num .peak { width: 18px; height: 18px; }
.why h3 { font-size: 1.14rem; margin-bottom: .5rem; }
.why p { font-size: .96rem; color: var(--muted); margin: 0; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2.6rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1.3fr auto; gap: 2rem; align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c6d5e4; margin: .6rem 0 0; max-width: 48ch; }
.cta-band__deco { position: absolute; right: 6%; top: -30px; width: 210px; opacity: .16; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.ccard {
  display: flex; align-items: center; gap: 1.1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.4rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ccard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ccard__icon { width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff; }
.ccard__icon svg { width: 24px; height: 24px; }
.ccard__icon.is-wa { background: #25d366; }
.ccard__icon.is-call { background: var(--navy); }
.ccard__icon.is-mail { background: var(--gold); color: var(--ink); }
.ccard__icon.is-loc { background: var(--green-600); }
.ccard small { display: block; font-family: var(--f-display); font-weight: 600; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ccard b { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }

.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--f-display); font-weight: 600; font-size: .86rem; color: var(--ink); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: 1rem; color: var(--ink);
  padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(164,199,63,.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.form__note { font-size: .84rem; color: var(--muted); margin: .4rem 0 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #b7c6d4; }
.site-footer .wrap { padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { color: #9fb2c2; margin-top: 1rem; max-width: 34ch; font-size: .96rem; }
.footer-col h4 { font-family: var(--f-display); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 1rem; }
.footer-col a, .footer-col li { display: block; color: #b7c6d4; padding: .3rem 0; font-size: .96rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem;
  font-size: .84rem; color: #8ca0b1;
}
.footer-bottom a { color: #b7c6d4; }
.footer-bottom a:hover { color: #fff; }

/* ---------- diagonal section transitions ---------- */
.slash-top { position: relative; }
.slash-top::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 46px;
  background: var(--paper); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 40%);
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 460px; margin-inline: auto; }
  .split, .split--art-left, .panel--split, .contact-grid { grid-template-columns: 1fr; }
  .split__art { order: -1; max-width: 480px; }
  .grid-cards, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .valuestrip .wrap { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav__links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1rem; box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: .8rem .4rem; border-radius: 8px; }
  .nav__links a.is-active::after { margin: 4px 0 0; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .grid-cards, .why-grid, .valuestrip .wrap, .footer-top { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc__badge { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .ccard:hover { transform: none; }
}

/* ============================================================
   REAL LOGO + CTA REFINEMENTS (v1.0.1)
   ============================================================ */
.brand__logo { height: 46px; width: auto; display: block; }
.brand__logo--footer { height: 54px; }
/* Get Started: gold by default so it reads as the action on the light header;
   hover deepens the gold rather than revealing the button. */
.nav__cta { --bg: var(--gold); --fg: var(--navy); }
.nav__cta:hover { --bg: #e0961f; }
@media (max-width: 620px) {
  .brand__logo { height: 40px; }
  .brand__logo--footer { height: 48px; }
}
