/* =============================================
   SWISSBURG PROJECTS ZIMBABWE
   style.css
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Open+Sans:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --orange:      #F5A623;
  --orange-dark: #D4891A;
  --black:       #1A1A1A;
  --white:       #FFFFFF;
  --gray:        #666666;
  --gray-light:  #F5F5F5;
  --border:      #E0E0E0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

/* =============================================
   NAVBAR
   Transparent on hero → White solid on scroll
============================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 80px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  box-shadow: none;
  transition: background 0.4s ease, height 0.4s ease, box-shadow 0.4s ease;
}

nav.scrolled {
  background: var(--white);
  height: 68px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
}

/* ── Logo image ── */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  height: 52px;
}

/* Both logos stacked, transition between them */
.logo-img-dark,
.logo-img-light {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.4s ease;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* Light logo (white text, for transparent nav) — visible by default */
.logo-img-light {
  opacity: 1;
}

/* Dark logo (dark text, for white nav) — hidden by default */
.logo-img-dark {
  opacity: 0;
}

/* When scrolled: swap logos */
nav.scrolled .logo-img-light { opacity: 0; }
nav.scrolled .logo-img-dark  { opacity: 1; }

/* ── Desktop nav links ── */
.nav-links {
  display: flex;
  align-items: right;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.92);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.4s ease;
}

/* Animated underline */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-links a.active,
.nav-links a:hover { color: var(--orange); }

nav.scrolled .nav-links a { color: var(--black); }
nav.scrolled .nav-links a.active,
nav.scrolled .nav-links a:hover { color: var(--orange); }

/* ── Get a Quote button ── */
.btn-nav-quote {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 10px 22px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.8);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.btn-nav-quote:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

nav.scrolled .btn-nav-quote {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

nav.scrolled .btn-nav-quote:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

/* ── Hamburger (mobile only) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--white);
  transition: background 0.4s ease, transform 0.3s ease, opacity 0.3s ease;
}

nav.scrolled .hamburger span { background: var(--black); }

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Mobile drawer ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 999;
  padding: 10px 6% 24px;
  flex-direction: column;
  border-top: 3px solid var(--orange);
  animation: menuSlide 0.25s ease;
}

@keyframes menuSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  display: block;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a.active { color: var(--orange); padding-left: 6px; }

.mobile-menu a:last-of-type { border-bottom: none; }

.mob-quote-btn {
  margin-top: 14px !important;
  background: var(--orange) !important;
  color: var(--white) !important;
  text-align: center;
  padding: 14px 0 !important;
  border-radius: 4px;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.5px;
  border-bottom: none !important;
  transition: background 0.2s !important;
}

.mob-quote-btn:hover {
  background: var(--orange-dark) !important;
  padding-left: 0 !important;
}

/* =============================================
   HERO
============================================= */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg,
      rgba(0,0,0,0.82) 0%,
      rgba(0,0,0,0.52) 55%,
      rgba(0,0,0,0.18) 100%),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1800&q=80')
    center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 6% 80px;
  max-width: 640px;
  animation: heroFade 0.9s ease both;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
}

.hero h1 .accent {
  color: var(--orange);
  display: block;
}

.hero p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255,255,255,0.78);
  margin: 22px 0 38px;
  font-weight: 300;
  max-width: 480px;
}

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

.btn-primary {
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 30px;
  border: 2px solid var(--orange);
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 30px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* =============================================
   SECTION SHARED STYLES
============================================= */
.sec-label {
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.sec-title {
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 50px);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--black);
  margin-bottom: 14px;
}

.sec-desc {
  text-align: center;
  font-size: 15px;
  color: var(--gray);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 56px;
  font-weight: 300;
}

/* =============================================
   SERVICES
============================================= */
.services {
  padding: 92px 6%;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.scard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.scard:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-6px);
}

.scard-img-wrap { overflow: hidden; }

.scard-img {
  width: 100%;
  height: 170px;
  background: #ccc center / cover no-repeat;
  transition: transform 0.45s ease;
}

.scard:hover .scard-img { transform: scale(1.06); }

.img-civil    { background-image: url('https://plus.unsplash.com/premium_photo-1681691912442-68c4179c530c?q=80&w=871&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); }
.img-concrete { background-image: url('https://i.pinimg.com/736x/a8/67/57/a867575f7fc561026ef4afad4d8d5595.jpg'); }
.img-equip    { background-image: url('https://i.pinimg.com/736x/bf/c2/73/bfc273f88e4373a48c622f6a72ba3299.jpg'); }
.img-material { background-image: url('https://i.pinimg.com/736x/24/5d/a2/245da2cb6120bb69a9be2a0852acc147.jpg'); }
.img-site     { background-image: url('https://i.pinimg.com/736x/ca/c7/2d/cac72d39aa8d811dc8931c64876f9c64.jpg'); }
.img-consult  { background-image: url('https://i.pinimg.com/736x/89/49/cc/8949cc99c23be0e6b94f3e414ef73c2a.jpg'); }

.scard-body { padding: 20px 20px 26px; }

.scard-body h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--black);
  margin-bottom: 8px;
}

.scard-body p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.75;
}

/* 
   WHY CHOOSE US
 */
.why-us {
  background: var(--gray-light);
  padding: 92px 6%;
}

.why-box {
  background: var(--black);
  border-radius: 8px;
  padding: 64px 5%;
  max-width: 1100px;
  margin: 0 auto;
}

.why-box .sec-label { color: var(--orange); }
.why-box .sec-title { color: var(--white); margin-bottom: 50px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.why-item {
  text-align: center;
  padding: 24px 10px;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s;
}

.why-item:last-child { border-right: none; }
.why-item:hover { background: rgba(255,255,255,0.04); }

.why-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon svg {
  width: 36px; height: 36px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.5;
  transition: stroke 0.2s;
}

.why-item:hover .why-icon svg { stroke: var(--orange); }

.why-item h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  line-height: 1.45;
}

/* =============================================
   CTA / CONTACT BAND
============================================= */
.cta-band {
  padding: 80px 6%;
  background: var(--white);
}

.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
}

.cta-left h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 40px);
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 12px;
}

.cta-left p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.75;
  max-width: 340px;
  font-weight: 300;
}

.cta-sep {
  width: 1px;
  height: 90px;
  background: var(--border);
  margin: 0 52px;
}

.cta-contact { text-align: center; }

.cta-contact .clabel {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 6px;
}

.cta-contact .cvalue {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--black);
}

/* =============================================
   FOOTER LOGO BAND
============================================= */
.footer-logo-band {
  padding: 36px 6%;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo-band img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* =============================================
   FOOTER
============================================= */
footer {
  background: var(--black);
  color: var(--white);
  padding: 48px 6% 24px;
  text-align: center;
}

footer h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-addr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
}

.footer-addr svg {
  width: 15px; height: 15px;
  stroke: var(--orange); fill: none; stroke-width: 2;
  flex-shrink: 0;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.soc {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.soc:hover { background: var(--orange); transform: translateY(-3px); }
.soc svg { width: 18px; height: 18px; fill: var(--white); }

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.5px;
}

/* =============================================
   FLOATING WHATSAPP
============================================= */
.wa-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: waPulse 2.5s infinite;
}

.wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.65);
  animation: none;
}

.wa-btn svg { width: 30px; height: 30px; fill: var(--white); }

.wa-tip {
  position: absolute;
  right: 68px;
  background: var(--black);
  color: var(--white);
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.2s, transform 0.2s;
}

.wa-tip::after {
  content: '';
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--black);
  border-right-width: 0;
}

.wa-btn:hover .wa-tip { opacity: 1; transform: translateX(0); }

@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* =============================================
   RESPONSIVE — TABLET  ≤ 1024px
============================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .why-item:nth-child(3) { border-right: none; }
  .why-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .why-item:nth-last-child(-n+3) { border-bottom: none; }

  .cta-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .cta-sep { display: none; }
  .cta-left p { margin: 0 auto; }
}

/* =============================================
   RESPONSIVE — MOBILE  ≤ 768px
============================================= */
@media (max-width: 768px) {
  nav { padding: 0 4%; }
  .nav-links { display: none; }
  .btn-nav-quote { display: none; }
  .hamburger { display: flex; }

  .hero-content { padding: 110px 5% 70px; max-width: 100%; }
  .hero h1 { font-size: clamp(34px, 9vw, 52px); }
  .hero p { font-size: 14px; }
  .hero-btns { gap: 12px; }

  .services { padding: 64px 4%; }
  .services-grid { grid-template-columns: 1fr; gap: 18px; }
  .sec-desc { font-size: 14px; margin-bottom: 36px; }

  .why-us { padding: 64px 4%; }
  .why-box { padding: 44px 5%; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item { border-right: 1px solid rgba(255,255,255,0.08) !important; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .why-item:nth-child(even) { border-right: none !important; }
  .why-item:nth-last-child(-n+2) { border-bottom: none; }

  .cta-band { padding: 64px 4%; }
  .cta-left h2 { font-size: 26px; }

  .footer-logo-band { padding: 24px 4%; }
  footer { padding: 36px 4% 20px; }
  .footer-addr { font-size: 13px; }

  .wa-btn { bottom: 18px; right: 18px; width: 52px; height: 52px; }
  .wa-btn svg { width: 26px; height: 26px; }
  .wa-tip { display: none; }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE  ≤ 420px
============================================= */
@media (max-width: 420px) {
  .logo { height: 38px; }
  .logo-img-dark, .logo-img-light { height: 36px; }

  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: none !important; }
  .why-item:last-child { border-bottom: none !important; }
}
