/* ============================================================
   Dr Tebogo Makena Consulting
   Enterprise Website Stylesheet · October 2026
   Palette: Sapphire · Graphite · Safety Copper · Ice White
   ============================================================ */

:root {
  --sapphire: #0B315C;
  --steel: #4C7599;
  --graphite: #202A33;
  --copper: #D96B32;
  --ice: #F4F7FA;
  --slate: #17212B;
  --green: #34745A;
  --white: #FFFFFF;
  --muted: #6B7C8F;
  --border: #E2E8F0;
  --shadow: 0 4px 24px rgba(11, 49, 92, 0.08);
  --radius: 6px;
  --max-w: 1280px;
  --header-h: 80px;
  --font-head: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--graphite);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 40px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-dark {
  background: var(--graphite);
  color: var(--ice);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-ice { background: var(--ice); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-link img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--sapphire);
  line-height: 1.2;
}
.logo-text span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--sapphire);
  background: rgba(11,49,92,0.06);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}
.btn-primary:hover {
  background: #c45a28;
  border-color: #c45a28;
}

.btn-secondary {
  background: transparent;
  color: var(--sapphire);
  border-color: var(--sapphire);
}
.btn-secondary:hover {
  background: var(--sapphire);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sapphire);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--sapphire);
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.68;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,49,92,0.72) 0%, rgba(32,42,51,0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 0 80px;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  color: var(--white);
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
}
.trust-strip span::before {
  content: "●";
  color: var(--copper);
  margin-right: 8px;
  font-size: 8px;
  vertical-align: middle;
}

/* ---------- Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-img {
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center center;
  width: 100%;
  height: auto;
}

/* Prevent aggressive cropping on mobile */
@media (max-width: 768px) {
  .card-img {
    aspect-ratio: 16/11;
    object-position: center 30%;
  }
  .leader-photo img {
    aspect-ratio: 4/5;
    object-position: center top;
  }
  .project-card .card-img {
    aspect-ratio: 16/12;
    object-position: center 25%;
  }
}

.card-body { padding: 24px; }

.card-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card-body p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link:hover { gap: 10px; }

/* Service icon cards */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: var(--steel);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(11,49,92,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--sapphire);
}
.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--sapphire);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ---------- About / Leadership ---------- */
.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
}

.leader-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.leader-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.value-item {
  padding: 24px;
  background: var(--ice);
  border-radius: var(--radius);
  border-left: 3px solid var(--copper);
}

.value-item h4 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--sapphire);
}

.value-item p {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Projects ---------- */
.project-card .card-img { aspect-ratio: 16/11; }

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--muted);
}
.project-meta span {
  background: var(--ice);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--graphite);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--slate);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(76,117,153,0.15);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 15px;
}
.contact-item strong {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--graphite);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
  height: 52px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  padding: 5px 0;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--copper); }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.social-links a:hover { background: var(--copper); }
.social-links svg { width: 18px; height: 18px; fill: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  font-size: 13px;
}

.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--copper); }

.footer-tree {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-tree img {
  height: 40px;
  opacity: 0.85;
}

.agency-credit {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.agency-credit a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
}

/* ---------- WhatsApp floating ---------- */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: white; }

/* ---------- Page hero (inner) ---------- */
.page-hero {
  background: var(--sapphire);
  color: var(--white);
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,49,92,0.9), rgba(32,42,51,0.7));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

.cta-banner {
  background: var(--sapphire);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 {
  color: var(--white);
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 12px;
}
.cta-banner p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .leadership-grid,
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 16px; }

  .nav-toggle { display: block; }

  .header-cta .btn { display: none; }

  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 56px 0; }
  .hero-content { padding: 80px 0 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}