/* =============================================
   UMBAVU ELECTRONICS — Main Stylesheet
   Palette: Light Green (#6FCF97 / #27AE60) + Light Grey (#F4F6F5 / #E8ECEB)
   ============================================= */

:root {
  --green:        #4CAF7D;
  --green-dark:   #2E8B57;
  --green-light:  #E8F5EE;
  --green-xlight: #F0FAF4;
  --grey:         #F4F6F5;
  --grey-mid:     #E2E8E5;
  --grey-dark:    #6B7280;
  --text:         #1A1F1C;
  --text-light:   #4B5563;
  --white:        #FFFFFF;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.07);
  --shadow-md:    0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
  --radius:       12px;
  --radius-sm:    8px;
  --transition:   .25s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== CONTAINER ===== */
.container {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76,175,125,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ===== SECTION SHARED ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--grey); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  color: var(--green);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.accent { color: var(--green); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow-md);
  padding: .7rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.navbar:not(.scrolled) .logo-text { color: var(--white); }
.navbar.scrolled .logo-text { color: var(--text); }
.navbar:not(.scrolled) .logo-text .accent { color: #b4f0cc; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  transition: color var(--transition);
}
.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,.88); }
.navbar:not(.scrolled) .nav-links a:hover { color: var(--white); }
.navbar.scrolled .nav-links a { color: var(--text-light); }
.navbar.scrolled .nav-links a:hover { color: var(--green); }
.nav-links .btn-primary { color: var(--white) !important; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--text); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a3d2b 0%, #2E8B57 50%, #4CAF7D 100%);
  z-index: -1;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  color: var(--white);
  max-width: 700px;
}
.hero-tag {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.2rem;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.4rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 2rem;
}
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label {
  font-size: .83rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover, .service-card.featured {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}
.service-card.featured { border-color: var(--green); }
.service-icon {
  width: 52px; height: 52px;
  background: var(--green-light);
  color: var(--green);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}
.service-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: .6rem;
}
.service-card p {
  color: var(--text-light);
  font-size: .93rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--green);
  font-size: .88rem;
  font-weight: 600;
  transition: gap var(--transition);
}
.card-link:hover { gap: .7rem; }

/* ===== PRODUCTS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--grey-mid);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-img {
  height: 130px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  color: var(--green);
}
.product-body { padding: 1.4rem; }
.product-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.product-body p { color: var(--text-light); font-size: .9rem; line-height: 1.6; margin-bottom: .9rem; }
.product-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 50px;
  letter-spacing: .05em;
}
.products-cta {
  text-align: center;
  background: var(--green-xlight);
  border: 1px solid var(--green-light);
  border-radius: var(--radius);
  padding: 2rem;
}
.products-cta p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-mid);
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.project-thumb {
  height: 180px;
  position: relative;
  display: flex; align-items: flex-end;
}
.project-thumb-1 { background: linear-gradient(135deg, #1a3d2b, #4CAF7D); }
.project-thumb-2 { background: linear-gradient(135deg, #2c4a6b, #4a9eba); }
.project-thumb-3 { background: linear-gradient(135deg, #4a2c6b, #a04aba); }
.project-thumb-4 { background: linear-gradient(135deg, #6b4a2c, #ba7a4a); }
.project-overlay {
  padding: .8rem 1rem;
  width: 100%;
}
.project-cat {
  background: rgba(255,255,255,.2);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.project-body { padding: 1.4rem; }
.project-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.project-body p { color: var(--text-light); font-size: .9rem; line-height: 1.65; }

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--grey-mid);
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.team-avatar {
  width: 80px; height: 80px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.2rem;
}
.team-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; }
.team-role {
  color: var(--green);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .7rem;
}
.team-bio {
  color: var(--text-light);
  font-size: .88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.team-social {
  display: flex;
  gap: .6rem;
  justify-content: center;
}
.team-social a {
  width: 34px; height: 34px;
  background: var(--grey);
  color: var(--text-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  transition: background var(--transition), color var(--transition);
}
.team-social a:hover { background: var(--green); color: var(--white); }

/* ===== ABOUT ===== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text .section-tag { display: inline-block; margin-bottom: .5rem; }
.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.about-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: .97rem;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin: 1.8rem 0 2rem;
}
.value-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  font-weight: 500;
}
.value-item i { color: var(--green); font-size: 1rem; flex-shrink: 0; }
.about-card-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.about-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.about-card i {
  color: var(--green);
  font-size: 1.3rem;
  margin-top: .1rem;
  flex-shrink: 0;
}
.about-card strong { display: block; font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.about-card p { color: var(--text-light); font-size: .82rem; line-height: 1.4; }

/* ===== CONTACT ===== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-info { padding-top: .5rem; }
.ci-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}
.ci-icon {
  width: 44px; height: 44px;
  background: var(--green-light);
  color: var(--green);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.ci-item strong { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .2rem; }
.ci-item p { color: var(--text-light); font-size: .9rem; line-height: 1.6; }
.contact-social {
  display: flex;
  gap: .7rem;
  margin-top: .5rem;
}
.contact-social a {
  width: 40px; height: 40px;
  background: var(--grey);
  color: var(--text-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.contact-social a:hover { background: var(--green); color: var(--white); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--grey-mid);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(76,175,125,.15);
}
.form-group textarea { resize: vertical; }
.form-success,
.form-error {
  display: none;
  text-align: center;
  font-weight: 600;
  font-size: .93rem;
  margin-top: 1rem;
  padding: .7rem;
  border-radius: var(--radius-sm);
}
.form-success { color: var(--green-dark); background: var(--green-light); }
.form-error   { color: #b91c1c; background: #fef2f2; }
.form-success.show,
.form-error.show { display: block; }

/* ===== FOOTER ===== */
.footer {
  background: #111814;
  color: rgba(255,255,255,.7);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 48px;
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand p {
  margin-top: .8rem;
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
  max-width: 260px;
}
.footer-links h4,
.footer-services h4,
.footer-contact h4 {
  color: var(--white);
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: .03em;
}
.footer-links a,
.footer-services a {
  display: block;
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .55rem;
  transition: color var(--transition);
}
.footer-links a:hover,
.footer-services a:hover { color: var(--green); }
.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .7rem;
}
.footer-contact p i { color: var(--green); margin-top: .15rem; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.2rem 0;
  text-align: center;
}
.footer-bottom p { font-size: .83rem; color: rgba(255,255,255,.35); }

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20,50,30,.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.3rem; color: var(--white) !important; }
  .nav-links .btn-primary { font-size: 1.1rem; }
  .hero-stats { gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .about-card-stack { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2.2rem; }
  .hero-cta { flex-direction: column; }
  .hero-stats { flex-direction: column; gap: 1rem; }
}
