/* Mtimande Engineers and Construction Managers (Pty) Ltd — global stylesheet */

:root {
  --gold: #d99a00;
  --gold-dark: #b88200;
  --charcoal: #252d2f;
  --charcoal-light: #313a3d;
  --white: #ffffff;
  --off-white: #f7f6f3;
  --grey-line: #e4e2dd;
  --text: #2b3234;
  --text-muted: #5f6a6c;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Barlow", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

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

.section-title {
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 700;
}
.section-title.dark { color: var(--charcoal); }

.eyebrow {
  font-size: 13px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.lead { color: var(--text-muted); font-size: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  text-align: center;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: #fff; }
.btn-outline-light { background: transparent; border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--charcoal); }
.btn-sm { padding: 9px 20px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--grey-line);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 92px;
}
.logo img { height: 62px; width: auto; }

.main-nav > ul { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: .2px;
  transition: color .2s ease;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav .active > a { color: var(--gold); }
.main-nav .quote-link a {
  background: var(--gold);
  color: #fff;
  padding: 11px 22px;
  border-radius: 2px;
  font-weight: 600;
}
.main-nav .quote-link a:hover { background: var(--gold-dark); color: #fff; }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.dropdown {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 290px;
  background: #fff;
  border-top: 3px solid var(--gold);
  border-left: 1px solid var(--grey-line);
  border-right: 1px solid var(--grey-line);
  border-bottom: 1px solid var(--grey-line);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 13.5px;
  color: var(--charcoal);
  border-left: 3px solid transparent;
}
.dropdown a:hover { background: var(--off-white); border-left-color: var(--gold); color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--grey-line);
  padding: 8px 10px;
  border-radius: 2px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--charcoal); margin: 4px 0; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: url("../images/hero.jpg") center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.85) 42%, rgba(255,255,255,.15) 72%, rgba(255,255,255,0) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 620px; padding: 70px 0; }
.hero h1 {
  font-size: 46px;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}
.hero h1 .gold { color: var(--gold); display: block; }
.hero p { margin-top: 22px; font-size: 16px; color: var(--text); max-width: 500px; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  position: relative;
  background: url("../images/banner.jpg") center/cover no-repeat;
  padding: 62px 0;
}
.page-header::before { content: ""; position: absolute; inset: 0; background: rgba(37,45,47,.72); }
.page-header .container { position: relative; z-index: 2; }
.page-header h1 {
  color: #fff;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
}
.page-header p { color: rgba(255,255,255,.82); margin-top: 8px; font-size: 15px; max-width: 640px; }

/* ---------- Sections ---------- */
section { padding: 0; }
.section { padding: 64px 0; }
.section-sm { padding: 44px 0; }
.bg-light { background: var(--off-white); }
.bg-dark { background: var(--charcoal); color: rgba(255,255,255,.86); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }

/* Growth vision */
.growth { background: var(--charcoal); color: rgba(255,255,255,.82); padding: 54px 0; }
.growth h2 { color: var(--gold); font-size: 22px; text-transform: uppercase; letter-spacing: 1.4px; }
.growth .intro { margin-top: 12px; max-width: 640px; font-size: 15px; }
.growth-layout { display: grid; grid-template-columns: 1fr 260px; gap: 40px; margin-top: 26px; align-items: start; }
.growth-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.growth-card {
  border: 1px solid rgba(255,255,255,.22);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
}
.growth-card svg { flex: 0 0 auto; width: 26px; height: 26px; stroke: var(--gold); }
.growth-card span { font-size: 13.5px; line-height: 1.35; color: #fff; }
.growth-goal { font-size: 14px; line-height: 1.7; }

/* Why choose */
.why-strip { border-top: 3px solid var(--gold); border-bottom: 1px solid var(--grey-line); background: #fff; }
.why-strip h3 {
  text-align: center;
  color: var(--gold);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  padding-top: 26px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 18px 0 26px;
}
.why-item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 8px 12px;
  border-right: 1px solid var(--grey-line);
}
.why-item:last-child { border-right: none; }
.why-item svg { width: 26px; height: 26px; stroke: var(--gold); flex: 0 0 auto; }
.why-item span { font-size: 13.5px; font-weight: 600; color: var(--charcoal); line-height: 1.25; }

/* Featured projects */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.section-head h2 { font-size: 22px; text-transform: uppercase; letter-spacing: 1px; }
.section-head a { color: var(--text-muted); font-size: 14px; font-weight: 600; }
.section-head a:hover { color: var(--gold); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.project-card { background: #fff; }
.project-card .thumb { aspect-ratio: 16 / 11; overflow: hidden; background: var(--off-white); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.project-card:hover img { transform: scale(1.04); }
.project-card h4 { margin-top: 14px; font-size: 15.5px; line-height: 1.3; }
.project-card .cat { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter-btn {
  background: #fff;
  border: 1px solid var(--grey-line);
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 2px;
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* About layout */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 46px; align-items: center; }
.split img { width: 100%; height: 100%; object-fit: cover; }
.split p + p { margin-top: 14px; }

.stat-bar { background: var(--charcoal); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 24px 20px; border-right: 1px solid rgba(255,255,255,.15); }
.stat:last-child { border-right: none; }
.stat strong { display: block; color: var(--gold); font-size: 18px; letter-spacing: .6px; }
.stat span { color: rgba(255,255,255,.8); font-size: 13.5px; }

/* Services page */
.services-layout { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
.service-menu { border: 1px solid var(--grey-line); background: #fff; }
.service-menu a {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--grey-line);
  border-left: 3px solid transparent;
  color: var(--charcoal);
}
.service-menu a:last-child { border-bottom: none; }
.service-menu a:hover, .service-menu a.active {
  background: var(--gold);
  color: #fff;
  border-left-color: var(--gold-dark);
}
.service-block { border: 1px solid var(--grey-line); padding: 26px 28px; background: #fff; }
.service-block + .service-block { margin-top: 22px; }
.service-block h3 { text-transform: uppercase; font-size: 17px; letter-spacing: .8px; }
.service-block .rule { width: 54px; height: 3px; background: var(--gold); margin: 12px 0 16px; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.service-list li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--text-muted); }
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--gold);
}

/* Checklist */
.check-list li { position: relative; padding-left: 26px; font-size: 14.5px; margin-bottom: 9px; }
.check-list li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 700;
}

/* Company profile */
.profile-visual {
  background: var(--charcoal-light);
  border: 1px solid rgba(255,255,255,.15);
  padding: 34px;
  display: flex;
  justify-content: center;
}
.pdf-mock {
  width: 260px;
  background: #1c2325;
  border: 1px solid rgba(217,154,0,.5);
  padding: 26px 20px 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
}
.pdf-mock img { height: 46px; width: auto; margin: 0 auto 18px; background: #fff; padding: 8px 10px; }
.pdf-mock h4 { color: var(--gold); text-transform: uppercase; letter-spacing: 2px; font-size: 15px; line-height: 1.5; }
.pdf-mock .bar { height: 3px; background: var(--gold); width: 60px; margin: 16px auto 0; }
.pdf-badge {
  position: absolute; right: -14px; bottom: -14px;
  background: #c62828; color: #fff; font-size: 11px; font-weight: 700;
  padding: 7px 10px; border-radius: 3px; letter-spacing: 1px;
}

/* Careers */
.perk-strip { background: var(--charcoal); }
.perk-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.perk {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px;
  border-right: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size: 13.5px; font-weight: 600;
}
.perk:last-child { border-right: none; }
.perk svg { width: 24px; height: 24px; stroke: var(--gold); flex: 0 0 auto; }

.notice {
  border: 1px solid var(--grey-line);
  border-left: 4px solid var(--gold);
  background: var(--off-white);
  padding: 20px 24px;
  font-size: 14.5px;
}

/* News */
.article-card { border: 1px solid var(--grey-line); background: #fff; display: flex; flex-direction: column; }
.article-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.article-card img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 18px 20px 22px; }
.article-meta { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.article-card h3 { font-size: 16.5px; margin-top: 8px; line-height: 1.35; }
.article-card p { font-size: 14px; color: var(--text-muted); margin-top: 10px; }
.read-more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .6px; }

/* Forms */
.form-card { border: 1px solid var(--grey-line); background: #fff; padding: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: .4px; color: var(--charcoal); margin-bottom: 6px; }
input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  padding: 11px 13px;
  border: 1px solid var(--grey-line);
  background: #fff;
  border-radius: 2px;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--text-muted); margin-top: 12px; }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(217,154,0,.12);
  border-left: 3px solid var(--gold);
  font-size: 14px;
}
.form-success.show { display: block; }

.benefit-panel { background: var(--charcoal); color: rgba(255,255,255,.85); padding: 28px; }
.benefit-panel h3 { font-size: 17px; text-transform: uppercase; letter-spacing: 1px; }
.benefit-panel ul { margin-top: 18px; }
.benefit-panel li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.benefit-panel li:last-child { border-bottom: none; }
.benefit-panel svg { width: 20px; height: 20px; stroke: var(--gold); flex: 0 0 auto; }

/* Contact */
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--grey-line); }
.contact-list li:last-child { border-bottom: none; }
.contact-list svg { width: 22px; height: 22px; stroke: var(--gold); flex: 0 0 auto; margin-top: 3px; }
.contact-list strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--charcoal); }
.contact-list span, .contact-list a { font-size: 14.5px; color: var(--text-muted); }
.map-box { min-height: 380px; background: #eceae5 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><path d='M0 0h40v40H0z' fill='%23eceae5'/><path d='M0 39.5h40M39.5 0v40' stroke='%23dedbd4'/></svg>"); position: relative; border: 1px solid var(--grey-line); }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); }
.map-pin svg { width: 40px; height: 40px; stroke: var(--gold); fill: var(--gold); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--charcoal); color: #fff; border-radius: 3px;
}
.social a:hover { background: var(--gold); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* CTA strip */
.cta-strip {
  background: var(--charcoal);
  padding: 20px 0;
  border-top: 3px solid var(--gold);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-inner p { color: #fff; font-size: 15px; letter-spacing: .4px; }

/* Footer */
.site-footer { background: var(--charcoal); border-top: 3px solid var(--gold); color: rgba(255,255,255,.82); padding: 34px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.footer-col { display: flex; gap: 12px; align-items: flex-start; }
.footer-col svg { width: 22px; height: 22px; stroke: var(--gold); flex: 0 0 auto; margin-top: 4px; }
.footer-col strong { display: block; color: var(--gold); font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.6px; }
.footer-col span, .footer-col a { font-size: 14.5px; color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); border-radius: 3px; color: #fff; }
.footer-social a:hover { background: var(--gold); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 26px;
  padding-top: 16px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav > ul { gap: 16px; }
  .main-nav a { font-size: 13px; }
  .logo img { height: 52px; }
  .growth-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .why-item { border-bottom: 1px solid var(--grey-line); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--grey-line);
    box-shadow: 0 16px 30px rgba(0,0,0,.12);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--grey-line); }
  .main-nav > ul > li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: 13px 24px; font-size: 14.5px; }
  .main-nav .quote-link a { margin: 12px 24px; text-align: center; }
  .has-dropdown > a::after { float: right; margin-top: 8px; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-top: 1px solid var(--grey-line);
    display: none; background: var(--off-white); min-width: 0; padding: 0;
  }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown.open .dropdown a { padding-left: 40px; }

  .hero { min-height: 480px; }
  .hero::before { background: rgba(255,255,255,.88); }
  .hero h1 { font-size: 34px; }
  .growth-layout { grid-template-columns: 1fr; gap: 24px; }
  .split, .grid-2, .services-layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid, .perk-grid { grid-template-columns: repeat(2, 1fr); }
  .stat, .perk { border-bottom: 1px solid rgba(255,255,255,.15); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .hero h1 { font-size: 28px; }
  .growth-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-grid, .perk-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); background: #1ebe5b; box-shadow: 0 12px 26px rgba(0,0,0,.28); }
@media (max-width: 620px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-float svg { width: 27px; height: 27px; }
}

/* Contact form feedback messages */
.form-alert { border-left: 3px solid var(--gold); background: var(--off-white); padding: 16px 18px; margin-bottom: 18px; }
.form-alert h2 { font-size: 18px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.form-alert p { font-size: 14.5px; }
.form-alert.error { border-left-color: #b3261e; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
