/* =============================================
   MUNTSWU ENGINEERING & PROJECTS
   Main Stylesheet
   Colors: #0f1923 (dark) | #1b9bc0 (teal) | #ffffff | #f4f8fb
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --dark:     #0f1923;
  --dark2:    #162030;
  --teal:     #1b9bc0;
  --teal2:    #157fa0;
  --teal-light: #e8f6fb;
  --white:    #ffffff;
  --offwhite: #f4f8fb;
  --text:     #2d3748;
  --text-light: #718096;
  --border:   #e2e8f0;
  --radius:   6px;
  --shadow:   0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 12px;
}

/* ---- LAYOUT ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-gray { background: var(--offwhite); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal2); border-color: var(--teal2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,155,192,0.35); }

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

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

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15,25,35,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}

.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.3); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo svg { width: 42px; height: 34px; flex-shrink: 0; }
.nav-logo-img { height: 44px; width: auto; flex-shrink: 0; display: block; }

.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-text .name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
}
.nav-logo-text .tagline {
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--teal);
  text-transform: uppercase;
  font-weight: 500;
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 8px 16px;
  border-radius: var(--radius);
  letter-spacing: 0.5px;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-links a.active { color: var(--teal); }

.nav-cta { margin-left: 16px; padding: 10px 22px !important; font-size: 0.82rem !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--dark2);
  padding: 16px 28px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.nav-mobile a:hover, .nav-mobile a.active { color: var(--teal); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

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

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,25,35,0.95) 40%, rgba(27,155,192,0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 72px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(27,155,192,0.15);
  border: 1px solid rgba(27,155,192,0.35);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--teal); }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.75;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.hero-stat { color: var(--white); }
.hero-stat .num { font-size: 2.2rem; font-weight: 800; color: var(--teal); line-height: 1; }
.hero-stat .lbl { font-size: 0.78rem; color: rgba(255,255,255,0.5); letter-spacing: 1px; margin-top: 4px; text-transform: uppercase; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: 140px 0 80px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(15,25,35,0.98) 50%, rgba(15,25,35,0.7));
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.6); font-size: 1.05rem; max-width: 500px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.breadcrumb a { color: var(--teal); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ---- SECTION HEADER ---- */
.section-header { text-align: center; max-width: 620px; margin: 0 auto 60px; }
.section-header.left { text-align: left; margin-left: 0; }
.section-header p { color: var(--text-light); margin-top: 14px; line-height: 1.7; }
.section-dark .section-header p { color: rgba(255,255,255,0.55); }

/* Teal underline */
.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--teal);
  margin: 16px auto 0;
}
.section-header.left h2::after { margin-left: 0; }

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

.card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-body { padding: 32px; }

/* Service Card */
.service-card .icon-wrap {
  width: 56px; height: 56px;
  background: var(--teal-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: background 0.2s;
}
.service-card:hover .icon-wrap { background: var(--teal); }
.service-card .icon-wrap svg { color: var(--teal); transition: color 0.2s; }
.service-card:hover .icon-wrap svg { color: var(--white); }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--text-light); font-size: 0.92rem; line-height: 1.65; }

/* Team Card */
.team-card { text-align: center; }
.team-card .avatar {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--offwhite);
}
.team-card .avatar-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--dark2), var(--dark));
  display: flex; align-items: center; justify-content: center;
}
.team-card .avatar-placeholder svg { opacity: 0.2; }
.team-card .card-body { padding: 24px 20px; }
.team-card h3 { font-size: 1rem; margin-bottom: 4px; }
.team-card .role { color: var(--teal); font-size: 0.82rem; font-weight: 600; margin-bottom: 8px; }
.team-card .quals { color: var(--text-light); font-size: 0.78rem; line-height: 1.5; }

/* ---- DARK CARD ---- */
.card-dark {
  background: var(--dark2);
  border-color: rgba(255,255,255,0.07);
}
.card-dark h3 { color: var(--white); }
.card-dark p { color: rgba(255,255,255,0.55); }
.card-dark .icon-wrap { background: rgba(27,155,192,0.15); }

/* ---- SPLIT SECTION ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.reverse .split-img { order: -1; }

.split-img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.split-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
  min-height: 420px;
}
.split-img .img-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: var(--teal);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
}

.split-text h2 { margin-bottom: 16px; }
.split-text p { color: var(--text-light); margin-bottom: 16px; line-height: 1.75; }
.split-text .btn { margin-top: 12px; }

.check-list { margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.92rem; color: var(--text-light);
}
.check-list li::before {
  content: '';
  width: 20px; height: 20px; flex-shrink: 0;
  background: var(--teal);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: cover;
  margin-top: 2px;
}

/* ---- HIGHLIGHT STRIP ---- */
.highlights {
  background: var(--teal);
  padding: 60px 0;
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.highlight-item { color: var(--white); }
.highlight-item .num { font-size: 2.6rem; font-weight: 800; }
.highlight-item .lbl { font-size: 0.82rem; opacity: 0.8; margin-top: 4px; letter-spacing: 1px; text-transform: uppercase; }

/* ---- BBBEE BADGE ---- */
.bbbee-strip {
  background: var(--dark);
  padding: 20px 0;
  text-align: center;
}
.bbbee-strip .inner {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.bbbee-strip .badge-pill {
  background: rgba(27,155,192,0.15);
  border: 1px solid rgba(27,155,192,0.4);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 8px 20px;
  border-radius: 50px;
  text-transform: uppercase;
}
.bbbee-strip span { color: rgba(255,255,255,0.4); font-size: 0.85rem; }

/* ---- VALUES ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.value-item {
  background: var(--white);
  padding: 36px 32px;
  transition: background 0.2s;
}
.value-item:hover { background: var(--offwhite); }
.value-item .v-icon {
  width: 48px; height: 48px;
  background: var(--teal-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.value-item h3 { margin-bottom: 8px; font-size: 1rem; }
.value-item p { color: var(--text-light); font-size: 0.88rem; line-height: 1.6; }

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 { margin-bottom: 24px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item-row {
  display: flex; align-items: flex-start; gap: 16px;
}
.contact-item-row .ci-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--teal-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.contact-item-row .ci-icon svg { color: var(--teal); }
.contact-item-row .ci-text .ci-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); margin-bottom: 2px; }
.contact-item-row .ci-text a, .contact-item-row .ci-text span { color: var(--text); font-weight: 500; font-size: 0.9rem; }
.contact-item-row .ci-text a:hover { color: var(--teal); }

/* Contact Form */
.contact-form { background: var(--white); border-radius: 12px; padding: 40px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.contact-form h3 { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
  background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27,155,192,0.12); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---- MAP ---- */
.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  height: 320px;
  background: var(--offwhite);
  border: 1px solid var(--border);
  margin-top: 48px;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.88rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--teal); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  color: rgba(255,255,255,0.6);
}
.footer-social a:hover { background: var(--teal); color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0;
  font-size: 0.8rem;
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: var(--teal); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-img { order: 0; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 480px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
}

/* ---- WHATSAPP FLOATING BUTTON ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 0;
  background: #25D366;
  color: #fff;
  height: 58px;
  width: 58px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  overflow: hidden;
  transition: width 0.3s ease, box-shadow 0.2s;
  white-space: nowrap;
}
.whatsapp-float .wa-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-float .wa-label {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
  padding-right: 4px;
}
.whatsapp-float:hover {
  width: 210px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}
.whatsapp-float:hover .wa-label { opacity: 1; }

/* Gentle pulse to draw attention */
.whatsapp-float::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: wa-pulse 2.4s infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 480px) {
  .whatsapp-float { bottom: 18px; right: 18px; }
}
