/*
Theme Name: Mapheto Investments
Theme URI: https://www.maphetoinvestments.co.za/
Author: Mapheto Investments
Description: Custom corporate investment platform theme for Mapheto Investments, Mapheto QSR Investments, and Mapheto Property Investments.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 7.0
Text Domain: mapheto-investments
*/
:root {
  --ink: #211d19;
  --charcoal: #302a25;
  --muted: #736b63;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #e7dfd6;
  --copper: #b76718;
  --gold: #d8992f;
  --red: #bd4434;
  --green: #516455;
  --shadow: 0 24px 70px rgba(33, 29, 25, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(251, 250, 247, 0.9);
  border-bottom: 1px solid rgba(231, 223, 214, 0.75);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  box-shadow: 0 14px 44px rgba(33, 29, 25, 0.08);
}

.brand img {
  width: 154px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  padding: 10px 0;
}

.site-nav a:hover {
  color: var(--copper);
}

.nav-cta {
  padding: 10px 16px !important;
  color: var(--white) !important;
  background: var(--ink);
  border-radius: var(--radius);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.15fr) minmax(230px, 0.4fr);
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  padding: 118px clamp(20px, 4vw, 56px) 46px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.hero-image {
  min-height: 620px;
  height: calc(100vh - 164px);
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-image img,
.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-label.light {
  color: #f3bf6d;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: 74px;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: 50px;
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.hero-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 21px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--copper), var(--red));
}

.button.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--white);
}

.hero-panel {
  align-self: end;
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.hero-panel strong,
.stats-row strong,
.impact-grid strong {
  display: block;
  color: var(--gold);
  font-size: 34px;
  line-height: 1;
}

.hero-panel span,
.stats-row span,
.impact-grid span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.section {
  padding: clamp(72px, 9vw, 126px) clamp(20px, 4vw, 56px);
}

.split,
.section-heading,
.first-investment,
.contact,
.image-feature,
.partnership {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: start;
}

.section-heading {
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.compact {
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
}

.section-heading p,
.prose p,
.investment-copy p,
.impact-card p,
.contact p,
.feature-copy p {
  color: var(--muted);
  font-size: 18px;
}

.prose p {
  margin-bottom: 20px;
}

.profile {
  padding-top: 0;
}

.model {
  padding-top: 0;
  background: var(--paper);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.model-grid article {
  min-height: 260px;
  padding: 26px;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius);
}

.model-grid span {
  display: block;
  margin-bottom: 44px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.model-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.companies {
  background: var(--white);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.company-card {
  display: grid;
  align-content: start;
  min-height: 430px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.company-card img {
  width: min(330px, 78%);
  height: auto;
  margin-bottom: 28px;
}

.company-card p {
  color: var(--muted);
  font-size: 18px;
}

.company-card a {
  justify-self: start;
  margin-top: 14px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius);
  font-weight: 800;
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(340px, 1.25fr);
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(28px, 5vw, 58px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.thesis {
  background: var(--white);
}

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.thesis-grid article,
.focus-grid article {
  min-height: 320px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.thesis-grid p,
.focus-grid p,
.timeline p {
  color: var(--muted);
}

.market {
  padding-top: 0;
  background: var(--white);
}

.market-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(34px, 5vw, 64px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(33, 29, 25, 0.96), rgba(48, 42, 37, 0.88)),
    linear-gradient(90deg, var(--red), var(--gold));
  border-radius: var(--radius);
}

.market-band h2 {
  margin-bottom: 0;
}

.market-band p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}

.stats-row div {
  min-height: 170px;
  padding: 26px;
  background: var(--ink);
}

.stats-row span {
  color: rgba(255, 255, 255, 0.72);
}

.platform {
  background: var(--paper);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius);
  font-weight: 800;
}

.image-feature,
.partnership {
  align-items: center;
  background: var(--white);
}

.property {
  background: var(--paper);
}

.property-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(340px, 1.28fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.property-logo {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.property-card p {
  color: var(--muted);
  font-size: 18px;
}

.property-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.property-tags span {
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
}

.partnership {
  background: var(--paper);
}

.feature-image {
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.first-investment {
  background: var(--paper);
}

.investment-card,
.contact-form,
.contact-direct {
  padding: clamp(24px, 4vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

dl {
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

dl div:first-child {
  padding-top: 0;
}

dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  color: var(--copper);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--charcoal);
  font-weight: 700;
}

.strategy {
  background: var(--white);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.timeline article {
  position: relative;
  min-height: 330px;
  padding: 30px;
  border-left: 4px solid var(--copper);
  background: var(--paper);
  border-radius: var(--radius);
}

.timeline span {
  display: block;
  margin-bottom: 58px;
  color: var(--copper);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.impact {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 42%, var(--ink) 42%, var(--ink) 100%);
}

.impact-card {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 32px 0;
}

.impact-grid div {
  min-height: 150px;
  padding: 22px;
  background: var(--ink);
  border-radius: var(--radius);
}

.contact {
  color: var(--white);
  background: var(--ink);
}

.contact .section-label {
  color: var(--gold);
}

.contact p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-direct {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: var(--ink);
  box-shadow: none;
}

.contact-direct a,
.contact-direct span {
  display: block;
  padding: 14px;
  background: var(--paper);
  border-radius: var(--radius);
  font-weight: 800;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  color: var(--ink);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-form label.full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(216, 153, 47, 0.3);
  border-color: var(--gold);
}

.contact-form button {
  justify-self: start;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted) !important;
  font-size: 14px !important;
}

.form-note.success {
  color: var(--green) !important;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 4vw, 56px);
  background: #171411;
  color: rgba(255, 255, 255, 0.66);
}

.site-footer img {
  width: 132px;
  filter: brightness(1.12);
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  text-align: right;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  }

  .hero-panel {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }

  .company-grid,
  .model-grid,
  .thesis-grid,
  .focus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .site-header {
    min-height: 72px;
  }

  .brand img {
    width: 136px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero,
  .split,
  .section-heading,
  .section-heading.compact,
  .market-band,
  .first-investment,
  .contact,
  .image-feature,
  .partnership,
  .property-card,
  .profile-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-image {
    order: 2;
    min-height: 430px;
    height: 430px;
  }

  .hero-panel {
    order: 3;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 19px;
  }

  .stats-row,
  .model-grid,
  .timeline,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .feature-image {
    min-height: 390px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .company-grid,
  .thesis-grid,
  .focus-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .thesis-grid article,
  .focus-grid article {
    min-height: auto;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}


