/* ============================================================
   NASIMBWA AFRICA LTD - Main Stylesheet
   Colors : Black #0a0a0a | Green #55e428 | White #ffffff
   Fonts  : Aboreto (headings) | Golos Text (body)
   ============================================================ */

:root {
  --black:      #0a0a0a;
  --lemon:      #55e428;
  --white:      #ffffff;
  --cream:      #f8f8f2;
  --light-grey: #f1f1ec;
  --border:     #e6e6e0;
  --grey:       #999999;
  --dark-grey:  #444444;
  --heading:    'Aboreto', Arial, Helvetica, sans-serif;
  --body:       'Golos Text', sans-serif;
  --nav-h:      72px;
  --ease:       0.3s ease;
  --radius:     3px;
  --shadow:     0 6px 28px rgba(0,0,0,0.13);
  --max-w:      1280px;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--white);
  color: var(--black);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { font-family: var(--body); cursor: pointer; border: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--heading); line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }
p  { color: var(--dark-grey); }

/* ── LOGO IMAGE ─────────────────────────────────────────── */
.nav-logo-link {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border-radius: 5px;
  padding: 5px 10px;
  transition: opacity var(--ease);
  flex-shrink: 0;
}
.nav-logo-link:hover { opacity: 0.85; }
.nav-logo-img {
  height: 42px;
  width: auto;
  display: block;
}
.footer-logo-wrap {
  display: inline-flex;
  background: #ffffff;
  border-radius: 5px;
  padding: 5px 12px;
  margin-bottom: 1.1rem;
}
.footer-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: all var(--ease);
}
.btn-primary {
  background: var(--lemon);
  color: var(--black);
  border-color: var(--lemon);
}
.btn-primary:hover {
  background: transparent;
  color: var(--lemon);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--black);
}
.btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-dark:hover {
  background: var(--lemon);
  color: var(--black);
  border-color: var(--lemon);
}
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
}
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-grey);
  position: relative;
  transition: color var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--lemon);
  transition: width var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--lemon); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 5px;
}
.nav-toggle span {
  display: block;
  width: 25px; height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--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); }

/* Dropdown submenu */
.nav-links .has-dropdown { position: relative; }
.dropdown-caret { font-size: .6em; opacity: .7; margin-left: .2em; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 180px;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  padding: .4rem 0;
  padding-top: 14px;
  z-index: 999;
  list-style: none;
  border: 1px solid var(--border);
}
.dropdown::before {
  content: '';
  position: absolute;
  top: 2px; left: 1.2rem;
  border: 6px solid transparent;
  border-bottom-color: var(--white);
  border-top: none;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open   .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: .55rem 1.1rem;
  font-size: .8rem;
  color: var(--dark-grey);
  white-space: nowrap;
  transition: color var(--ease), background var(--ease);
}
.dropdown li a::after { display: none; }
.dropdown li a:hover,
.dropdown li a.active { color: var(--lemon); background: var(--light-grey); }

/* ── HERO (Home - video bg) ─────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.28) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 820px;
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.2rem;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--lemon);
}
.hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2.2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(85,228,40,0.7), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.6); }
}

/* ── PAGE HERO (inner pages) ────────────────────────────── */
.page-hero {
  height: 380px;
  margin-top: var(--nav-h);
  background: var(--light-grey);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
}
.page-hero-content h1 { margin-bottom: 0.5rem; }
.page-hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}

/* ── SECTION BASE ───────────────────────────────────────── */
.section       { padding: 6rem 2rem; }
.section-sm    { padding: 4rem 2rem; }
.section-cream { background: var(--cream); }
.section-black { background: var(--light-grey); color: var(--black); }
.section-black p { color: var(--dark-grey); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lemon);
  margin-bottom: 0.7rem;
}
.section-heading { margin-bottom: 1rem; }
.section-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 2.8rem;
}
.section-intro-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ── ROW UTILS ──────────────────────────────────────────── */
.flex-between {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* ── PRODUCT CARDS ──────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.product-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.product-thumb {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f0f0f0;
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.55s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-body { padding: 1rem 1.1rem 1.2rem; }
.product-cat {
  font-size: 0.7rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.3rem;
}
.product-name {
  font-family: var(--heading);
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.product-price {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

/* ── FILTER TABS ────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.5rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--dark-grey);
  border: 1.5px solid #d5d5d5;
  border-radius: 2px;
  transition: all var(--ease);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--lemon);
  color: var(--black);
  border-color: var(--lemon);
}

/* ── HOME - BRAND STORY ─────────────────────────────────── */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.split-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ── HOME - QUOTE STRIP ─────────────────────────────────── */
.quote-strip {
  position: relative;
  height: 360px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote-strip-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.quote-strip-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
}
.quote-strip-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  max-width: 700px;
}
.quote-strip-content blockquote {
  font-family: var(--heading);
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.quote-strip-content blockquote span,
.quote-strip-content blockquote em { color: var(--lemon); font-style: normal; }
.quote-strip-content cite {
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ── CTA BANNER ─────────────────────────────────────────── */
.cta-banner {
  background: var(--cream);
  padding: 5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-banner h2 { color: var(--black); margin-bottom: 0.8rem; }
.cta-banner h2 span,
.cta-banner h2 em { color: var(--lemon); font-style: normal; }
.cta-banner p {
  color: var(--dark-grey);
  margin-bottom: 2.2rem;
  font-size: 1.05rem;
}

/* ── ABOUT - VALUES ─────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 3.5rem;
}
.value-card {
  padding: 2rem 1.8rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.value-card:hover { border-color: var(--lemon); box-shadow: var(--shadow); }
.value-icon {
  margin-bottom: 1rem;
  color: var(--lemon);
}
.icon-svg {
  width: 2rem;
  height: 2rem;
  display: block;
}
.step-icon .icon-svg {
  width: 2rem;
  height: 2rem;
  margin: 0 auto;
  color: var(--lemon);
}
.value-card h3 {
  font-size: 1.05rem;
  color: var(--black);
  margin-bottom: 0.6rem;
}
.value-card p {
  color: var(--dark-grey);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── ABOUT - TEAM STRIP ─────────────────────────────────── */
.team-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  overflow: hidden;
  border-radius: var(--radius);
}
.team-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.team-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.team-img:hover img { transform: scale(1.04); }

/* ── CONTACT ────────────────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}
.contact-info-block { margin-bottom: 1.5rem; }
.contact-info-block .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lemon);
  margin-bottom: 0.3rem;
}
.contact-info-block p { color: var(--dark-grey); font-size: 0.95rem; }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.8rem;
  background: #25D366;
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 1.2rem;
  transition: opacity var(--ease);
  border: none;
}
.whatsapp-btn:hover { opacity: 0.88; }
.whatsapp-btn svg { width: 22px; height: 22px; flex-shrink: 0; }

/* Form */
.form-stack { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-grey);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--black);
  outline: none;
  transition: border-color var(--ease);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--lemon); }
.form-group input.input-error,
.form-group textarea.input-error { border-color: #e05252; box-shadow: 0 0 0 2px rgba(224,82,82,.25); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── SOCIAL LINKS ───────────────────────────────────────── */
.social-links { display: flex; flex-direction: column; gap: 0.55rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--dark-grey);
  font-size: 0.9rem;
  transition: color var(--ease);
}
.social-link:hover { color: var(--lemon); }
.social-link svg { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--light-grey);
  color: var(--black);
  padding: 4.5rem 2rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
/* .footer-brand logo handled by .footer-logo-wrap */
.footer-brand p {
  color: var(--dark-grey);
  font-size: 0.88rem;
  max-width: 280px;
  line-height: 1.75;
}
.footer-col h4 {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lemon);
  margin-bottom: 1.2rem;
}
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  color: var(--dark-grey);
  font-size: 0.9rem;
  transition: color var(--ease);
}
.footer-col a:hover { color: var(--lemon); }
.footer-col .plain {
  color: var(--dark-grey);
  font-size: 0.9rem;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--grey);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ugflag { height: 14px; display: inline; vertical-align: middle; margin-left: 5px; }

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);     }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem 2rem 2.5rem;
    gap: 1.8rem;
    /* Move fully off-screen: account for nav height so nothing peeks out */
    transform: translateY(calc(-100% - var(--nav-h)));
    transition: transform var(--ease);
    border-bottom: 2px solid var(--lemon);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1rem; }
  /* Mobile dropdown - show inline below parent */
  .dropdown {
    position: static;
    transform: none;
    background: var(--light-grey);
    border-radius: 4px;
    box-shadow: none;
    border: none;
    padding: .4rem 0 .4rem .8rem;
    margin-top: .5rem;
    display: none;
  }
  .dropdown::before { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown li a { font-size: .9rem; padding: .45rem .8rem; }
  .dropdown-caret { display: inline; }

  /* Layouts */
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .split-grid    { grid-template-columns: 1fr; gap: 2.5rem; }
  .values-grid   { grid-template-columns: 1fr; }
  .contact-wrap  { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand  { grid-column: 1 / -1; }
  .footer-col    { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Spacing */
  .section    { padding: 4rem 1.5rem; }
  .section-sm { padding: 3rem 1.5rem; }
  .page-hero  { height: 280px; }
  .split-img  { aspect-ratio: 16/9; }
  .flex-between { flex-direction: column; align-items: flex-start; }
  .team-strip { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.2rem; }
  .quote-strip { height: 300px; }
}
