/* ==========================================================
   MABHENGETE TRADING AND PROJECTS — STYLESHEET
   Palette derived from the company logo:
   - Deep Navy   : primary brand colour (globe / building gradient)
   - Corporate Blue: links, accents
   - Steel Grey  : secondary brand colour (gear / hammer gradient)
   - Industrial Gold: single accent colour for calls-to-action
   ========================================================== */

:root{
  /* --- Colour tokens (edit these to re-theme the whole site) --- */
  --navy-900: #0A1F3D;   /* deepest navy - footer, dark sections */
  --navy-800: #0F2C55;   /* header / hero background */
  --navy-700: #16407A;   /* primary brand blue */
  --blue-500: #1E5FA8;   /* mid blue accent, links */
  --steel-600: #5C6B7A;  /* logo steel grey */
  --steel-300: #B9C2CC;  /* light steel grey */
  --gold-500:  #C99A2E;  /* industrial gold - CTA accent */
  --gold-600:  #A97E1F;

  --ink:      #172433;   /* body text on light backgrounds */
  --ink-soft: #4B5A6B;   /* secondary text on light backgrounds */
  --paper:    #FFFFFF;
  --paper-alt:#F3F5F8;   /* light steel-tinted background */
  --line:     #E1E6EC;

  /* --- Type tokens --- */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  /* --- Layout tokens --- */
  --container-w: 1180px;
  --radius: 6px;
  --shadow-card: 0 10px 30px rgba(10, 31, 61, 0.08);
  --shadow-card-hover: 0 18px 40px rgba(10, 31, 61, 0.16);
}

/* ==========================================================
   RESET / BASE
   ========================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
p{ margin: 0 0 1em; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

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

/* Eyebrow label used above section headings */
.eyebrow{
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.6em;
}
.eyebrow-light{ color: var(--gold-500); }

.section-title{ font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--navy-900); }
.section-title-light{ color: var(--paper); }
.section-lead{ max-width: 620px; color: var(--ink-soft); font-size: 1.05rem; }

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.9em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn-primary{
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-primary:hover{
  background: var(--gold-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(201, 154, 46, 0.35);
}
.btn-ghost{
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--paper);
}
.btn-ghost:hover{
  background: rgba(255,255,255,0.1);
  border-color: var(--paper);
  transform: translateY(-2px);
}

/* ==========================================================
   HEADER
   ========================================================== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 31, 61, 0);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled{
  background: var(--navy-900);
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand-logo{ height: 100px; width: auto; }

.main-nav{
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav ul{ display: flex; gap: 28px; }
.nav-link{
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--paper);
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after{
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-500);
  transition: width 0.25s ease;
}
.nav-link:hover::after{ width: 100%; }
.nav-cta{ padding: 0.65em 1.5em; font-size: 0.85rem; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  width: 100%;
  height: 2px;
  background: var(--paper);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero{
  position: relative;
  overflow: hidden;
  padding: 168px 0 130px;
  background: linear-gradient(155deg, var(--navy-900) 0%, var(--navy-700) 65%, var(--blue-500) 130%);
  color: var(--paper);
}
/* Blueprint grid texture — nods to construction / technical drawings */
.hero-grid{
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 20%, black 10%, transparent 75%);
}
.hero-inner{ position: relative; z-index: 2; max-width: 760px; }
.hero-eyebrow{ color: var(--gold-500); }
.hero-title{
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 0.4em;
}
.hero-subtitle{
  font-size: 1.1rem;
  color: var(--steel-300);
  max-width: 560px;
  margin-bottom: 1.8em;
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

/* Skyline silhouette sitting just above the wave divider */
.hero-skyline{
  position: absolute;
  left: 0; right: 0;
  bottom: 54px;
  height: 90px;
  width: 100%;
  fill: rgba(255,255,255,0.08);
  z-index: 1;
}

/* Signature wave divider — recreates the swoosh beneath the logo,
   reused between sections as the site's consistent transition motif */
.wave-divider{
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  height: 90px;
  z-index: 1;
}
.wave-back{ fill: var(--steel-600); opacity: 0.55; }
.wave-front{ fill: var(--paper); }

/* ==========================================================
   SERVICES
   ========================================================== */
.services{ padding: 110px 0 100px; background: var(--paper); }
.services-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
  margin-top: 48px;
}
.service-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-top-color: var(--gold-500);
}
.service-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper-alt);
  color: var(--navy-700);
  margin-bottom: 18px;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.service-icon svg{ width: 28px; height: 28px; }
.service-card:hover .service-icon{
  background: var(--navy-900);
  color: var(--gold-500);
}
.service-card h3{
  font-size: 1.15rem;
  color: var(--navy-900);
  margin-bottom: 0.5em;
}
.service-card p{
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about{ padding: 100px 0; background: var(--paper-alt); }
.about-inner{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-copy p{ color: var(--ink-soft); }

.cert-row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 10px;
}
.cert-badge{
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius);
  min-width: 140px;
}
.cert-badge strong{
  font-family: var(--font-display);
  color: var(--navy-900);
  font-size: 1rem;
  letter-spacing: 0.03em;
}
.cert-badge span{ font-size: 0.82rem; color: var(--ink-soft); }
.cert-note{ font-size: 0.82rem; color: var(--steel-600); font-style: italic; }

.about-panel{
  background: var(--navy-900);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-stat{
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 20px;
}
.about-stat:last-child{ border-bottom: none; padding-bottom: 0; }
.stat-number{
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold-500);
  line-height: 1;
}
.stat-label{
  margin-top: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel-300);
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact{
  padding: 110px 0;
  background: var(--navy-900);
  color: var(--paper);
}
.contact-inner{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
}
.contact-lead{ color: var(--steel-300); max-width: 460px; }

.contact-list{ margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.contact-list li{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--steel-300);
  font-size: 0.98rem;
}
.contact-list em{ color: var(--steel-600); font-style: normal; font-size: 0.85rem; }
.contact-icon{
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--gold-500);
}
.contact-icon svg{ width: 20px; height: 20px; }

/* Social links — reused in both the contact section and the footer */
.social-row{
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.social-label{
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-300);
  margin-bottom: 12px;
}
.social-links{ display: flex; gap: 12px; }
.social-links a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--steel-300);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-links a svg{ width: 18px; height: 18px; }
.social-links a:hover{
  background: var(--gold-500);
  color: var(--navy-900);
  transform: translateY(-2px);
}
.footer-social{ margin-top: 20px; }

.contact-form{
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.form-title{ color: var(--navy-900); font-size: 1.3rem; margin-bottom: 0.8em; }
.form-row{ margin-bottom: 18px; display: flex; flex-direction: column; }
.form-row label{
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.form-row input, .form-row textarea{
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-alt);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.form-row input:focus, .form-row textarea:focus{
  border-color: var(--navy-700);
  background: var(--paper);
}
.form-row.has-error input, .form-row.has-error textarea{
  border-color: #C63B3B;
}
.form-error{
  display: none;
  color: #C63B3B;
  font-size: 0.8rem;
  margin-top: 6px;
}
.form-row.has-error .form-error{ display: block; }

.form-submit-row{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.form-submit{ width: 100%; }
.btn-icon{ width: 18px; height: 18px; margin-right: 8px; flex: none; }
.btn-whatsapp{
  background: #25D366;
  color: #063C21;
}
.btn-whatsapp:hover{
  background: #1EBE59;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.35);
}
.form-success{
  display: none;
  margin-top: 14px;
  margin-bottom: 0;
  padding: 12px 14px;
  background: #E8F5EA;
  color: #2C6E36;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
}
.form-success.show{ display: block; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer{ background: var(--navy-900); color: var(--steel-300); }
.footer-inner{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-logo{ height: 48px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p{ font-size: 0.88rem; color: var(--steel-600); max-width: 320px; }
.footer-links h4{
  color: var(--paper);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1em;
}
.footer-links ul{ display: flex; flex-direction: column; gap: 10px; }
.footer-links a{ font-size: 0.92rem; transition: color 0.2s ease; }
.footer-links a:hover{ color: var(--gold-500); }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom p{ margin: 0; font-size: 0.82rem; text-align: center; color: var(--steel-600); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px){
  .about-inner, .contact-inner{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; }
}

@media (max-width: 760px){
  .nav-toggle{ display: flex; }
  .main-nav{
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy-900);
    padding: 12px 24px 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open{ max-height: 400px; }
  .main-nav ul{ flex-direction: column; gap: 0; width: 100%; }
  .nav-link{ display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-cta{ margin-top: 16px; width: 100%; }

  .hero{ padding: 140px 0 110px; }
  .hero-skyline{ display: none; }

  .services, .about, .contact{ padding: 76px 0; }

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

@media (max-width: 480px){
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .cert-row{ gap: 10px; }
  .cert-badge{ min-width: 0; flex: 1 1 calc(50% - 10px); }
}
