/* ==========================================================================
   MCT — Mbukiswane Consulting & Training
   Global stylesheet
   ========================================================================== */

:root {
  --black: #0a0c10;
  --near-black: #12151c;
  --blue: #1565ea;
  --blue-dark: #0d47b8;
  --blue-light: #4d9bff;
  --white: #ffffff;
  --gray-50: #f6f8fb;
  --gray-100: #eef1f6;
  --gray-200: #e4e8ee;
  --gray-400: #9aa4b2;
  --gray-600: #5a6472;
  --gray-800: #2b303a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 12, 16, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 12, 16, 0.16);
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--black);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-tight { padding: 56px 0; }

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

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.section-head {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-head p { color: var(--gray-600); font-size: 1.05rem; }

.text-accent { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 10px 24px rgba(21, 101, 234, 0.35); }

.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--near-black); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-outline-dark { background: transparent; color: var(--black); border-color: var(--gray-200); }
.btn-outline-dark:hover { border-color: var(--black); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { height: 46px; width: auto; display: block; }
.logo-mark {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  color: var(--black);
}
.logo-mark span { color: var(--blue); }
.logo-text {
  line-height: 1.15;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--gray-800);
  text-transform: uppercase;
}
.logo-text span { color: var(--blue); display: block; }
.logo-text b { color: var(--black); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > li { position: relative; }

.main-nav > li > a,
.main-nav > li > button.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gray-800);
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.main-nav > li > a:hover,
.main-nav > li > button.nav-link:hover,
.main-nav > li.active > a {
  color: var(--blue);
}

.main-nav > li.active > a { position: relative; }

.caret { width: 10px; height: 10px; margin-top: 2px; }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.main-nav > li.has-dropdown:hover .dropdown,
.main-nav > li.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
}
.dropdown a:hover { background: var(--gray-50); color: var(--blue); }
.dropdown a small { display: block; color: var(--gray-600); font-weight: 400; font-size: 0.78rem; margin-top: 2px; }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--black); border-radius: 2px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.hero-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 90px 24px 70px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-accent {
  position: absolute;
  top: 0;
  right: 26%;
  width: 140px;
  height: 100%;
  background: var(--blue);
  transform: skewX(-12deg);
  opacity: 0.9;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--blue-light); }

.hero p.lead {
  color: rgba(255,255,255,0.78);
  font-size: 1.08rem;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- Highlights strip (overlapping hero) ---------- */
.highlights-wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.highlights {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  margin-top: -60px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
}
.highlight-item {
  padding: 34px 28px;
  border-right: 1px solid var(--gray-200);
}
.highlight-item:last-child { border-right: none; }
.highlight-item .icon {
  width: 42px; height: 42px;
  color: var(--blue);
  margin-bottom: 16px;
}
.highlight-item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.highlight-item p { color: var(--gray-600); font-size: 0.9rem; margin: 0; }

/* ---------- Generic page header (inner pages) ---------- */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -8%;
  width: 380px;
  height: 220%;
  background: var(--blue);
  transform: skewX(-12deg);
  opacity: 0.85;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--blue-light); }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 620px; margin: 0; }

/* ---------- Cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.card .icon {
  width: 44px; height: 44px;
  color: var(--blue);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { color: var(--gray-600); font-size: 0.94rem; margin-bottom: 0; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--blue);
}

/* Service block with bullet list */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--gray-200);
}
.service-block:last-child { border-bottom: none; }
.service-block.reverse .service-media { order: 2; }
.service-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.service-copy .icon { width: 40px; height: 40px; color: var(--blue); margin-bottom: 14px; }
.service-copy h2 { font-size: 1.5rem; margin-bottom: 12px; }
.service-copy p { color: var(--gray-600); }
.service-copy ul { margin: 18px 0 24px; padding-left: 0; list-style: none; }
.service-copy ul li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  color: var(--gray-800);
  font-size: 0.96rem;
  border-top: 1px solid var(--gray-100);
}
.service-copy ul li:first-child { border-top: none; }
.service-copy ul li .check { width: 18px; height: 18px; color: var(--blue); flex: none; margin-top: 3px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 26px; }
.cta-band .btn-dark { background: var(--black); border-color: var(--black); }

/* ---------- Two column content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-media img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
.split-media.logo-frame {
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.split-media.logo-frame img {
  width: auto;
  max-width: 80%;
  height: auto;
  max-height: 260px;
  aspect-ratio: auto;
  object-fit: contain;
}
.split-copy .icon-list { list-style: none; padding: 0; margin: 20px 0 0; }
.split-copy .icon-list li { display: flex; gap: 12px; padding: 10px 0; }
.split-copy .icon-list .check { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }

/* ---------- Values / why choose ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.value-item { text-align: left; }
.value-item .icon { width: 40px; height: 40px; color: var(--blue); margin-bottom: 16px; }
.value-item h3 { font-size: 1rem; margin-bottom: 8px; }
.value-item p { color: var(--gray-600); font-size: 0.9rem; margin: 0; }

/* ---------- Resource / training cards ---------- */
.resource-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.resource-card .tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--gray-100);
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.resource-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.resource-card p { color: var(--gray-600); font-size: 0.92rem; flex: 1; }

.notice-box {
  background: var(--gray-50);
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius);
  padding: 26px 28px;
  color: var(--gray-600);
  font-size: 0.94rem;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
}
.contact-info-card h3 { color: var(--white); font-size: 1.2rem; }
.contact-info-card p { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.contact-line:first-of-type { border-top: none; }
.contact-line .icon { width: 20px; height: 20px; color: var(--blue-light); flex: none; margin-top: 2px; }
.contact-line a, .contact-line span { color: rgba(255,255,255,0.9); font-size: 0.94rem; }
.contact-line a:hover { color: var(--blue-light); }

.social-row { display: flex; gap: 10px; margin-top: 22px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--blue); border-color: var(--blue); }
.social-row svg { width: 16px; height: 16px; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid var(--gray-200);
}
.map-embed iframe { width: 100%; height: 200px; border: 0; display: block; }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--gray-800);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--gray-50);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-error {
  color: #d33;
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #d33; }
.field.invalid .field-error { display: block; }

.form-note { font-size: 0.8rem; color: var(--gray-400); margin-top: 4px; }

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.form-status.success { display: block; background: #e7f7ee; color: #1c7a41; border: 1px solid #b9e8cc; }
.form-status.error { display: block; background: #fdeaea; color: #b3261e; border: 1px solid #f4c2c0; }

/* honeypot field, hidden from real users */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--near-black);
  color: rgba(255,255,255,0.75);
}
.footer-top {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.footer-top h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-top .logo-mark { color: var(--white); }
.footer-top .logo-mark span { color: var(--blue-light); }
.footer-about p { font-size: 0.9rem; color: rgba(255,255,255,0.6); max-width: 320px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; }
.footer-top ul li { margin-bottom: 10px; }
.footer-top ul a { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.footer-top ul a:hover { color: var(--blue-light); }
.footer-contact li { display: flex; gap: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.65); align-items: flex-start; }
.footer-contact .icon { width: 16px; height: 16px; color: var(--blue-light); flex: none; margin-top: 3px; }

.footer-bottom-bar {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.9);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
  font-size: 0.85rem;
}
.footer-bottom-inner .quick-contacts { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-bottom-inner .quick-contacts span { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom-inner .icon { width: 15px; height: 15px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: rgba(255,255,255,0.3); }
.footer-social svg { width: 14px; height: 14px; }

/* ---------- Breadcrumb-ish page badge ---------- */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.badge-row span {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(0,0,0,0.34); }
.whatsapp-float svg { width: 30px; height: 30px; color: #fff; }

@media (max-width: 640px) {
  .whatsapp-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .whatsapp-float svg { width: 25px; height: 25px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
  .main-nav, .header-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .header-cta.mobile-open { display: none; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 10px 24px 20px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .site-header.nav-open .main-nav > li { width: 100%; }
  .site-header.nav-open .main-nav > li > a,
  .site-header.nav-open .main-nav > li > button.nav-link { width: 100%; justify-content: space-between; }
  .site-header.nav-open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    display: none;
    padding: 0 0 6px 12px;
  }
  .site-header.nav-open .main-nav > li.open .dropdown { display: block; }
  .site-header.nav-open .header-cta { display: block; padding: 14px 24px 20px; }
  .site-header.nav-open .header-cta .btn { display: inline-flex; width: 100%; }

  .hero-grid { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-accent { display: none; }
  .hero-media { order: -1; }

  .highlights { grid-template-columns: repeat(2, 1fr); margin-top: 30px; border-radius: var(--radius); }
  .highlight-item { border-right: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
  .highlight-item:nth-child(2n) { border-right: none; }

  .grid-4, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .service-block, .service-block.reverse, .split { grid-template-columns: 1fr; }
  .service-block.reverse .service-media { order: 0; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .grid-4, .grid-3, .grid-2, .values-grid { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr; }
  .highlight-item { border-right: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .hero-grid { padding-left: 20px; padding-right: 20px; }
}
