/* ============================================
   Hengyi Sourcing Africa — Global Stylesheet
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --primary: #0B2447;      /* Deep navy */
  --primary-light: #19376D;
  --accent: #E8630A;       /* Industrial orange */
  --accent-hover: #C95408;
  --text-dark: #1A1A2E;
  --text-body: #4A4A6A;
  --text-light: #7A7A9A;
  --bg-light: #F7F8FA;
  --bg-white: #FFFFFF;
  --border: #E4E7EF;
  --success: #059669;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1200px;
  --nav-h: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--primary); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { color: var(--text-body); }

/* ---------- Layout Utilities ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-dark {
  background: var(--primary);
  color: #fff;
}
.section-dark h2,
.section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.8); }
.section-light { background: var(--bg-light); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,99,10,0.35);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
}
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* ---------- Section Headers ---------- */
.section-header {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-header p { margin-top: 16px; font-size: 1.05rem; }
.section-tag {
  display: inline-block;
  background: rgba(232,99,10,0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.2rem;
}
.nav-logo svg { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.15s;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--bg-light);
  color: var(--accent);
}
.nav-cta {
  margin-left: 8px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 12px 16px; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--primary);
  padding: 140px 0 80px;
  text-align: center;
  color: #fff;
}
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ---------- Category Cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.cat-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.cat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.cat-icon {
  width: 56px;
  height: 56px;
  background: rgba(232,99,10,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--accent);
}
.cat-card h3 { color: var(--primary); margin-bottom: 10px; }
.cat-card p { font-size: 0.9rem; flex: 1; }
.cat-card .btn-link {
  margin-top: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------- How It Works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  position: relative;
}
.step-card {
  text-align: center;
  position: relative;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}
.step-num.alt {
  background: var(--primary-light);
}
.step-card h3 { font-size: 1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.875rem; }

/* Connecting line between steps (desktop) */
@media (min-width: 900px) {
  .steps-grid::before {
    content: '';
    position: absolute;
    top: 26px;
    left: calc(10% + 26px);
    right: calc(10% + 26px);
    height: 2px;
    background: var(--border);
    z-index: 0;
  }
}

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.feature-card {
  display: flex;
  gap: 18px;
  padding: 28px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(232,99,10,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 6px; }
.feature-card p { font-size: 0.875rem; }

/* ---------- Markets Grid ---------- */
.markets-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  margin-bottom: 40px;
}
.market-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  background: rgba(255,255,255,0.1);
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testi-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.testi-quote {
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.testi-card blockquote {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testi-card cite {
  display: flex;
  flex-direction: column;
  font-style: normal;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}
.testi-card cite span {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 400;
}
.testi-flag { margin-right: 8px; }

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--primary);
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 { color: #fff; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.75); margin-bottom: 32px; font-size: 1.1rem; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Product Cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.product-info { padding: 20px; }
.product-info h3 { margin-bottom: 8px; font-size: 1rem; }
.product-info p { font-size: 0.85rem; margin-bottom: 12px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.product-tag {
  font-size: 0.75rem;
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 500;
}

/* ---------- Pricing Cards ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.pricing-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all 0.2s;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 20px;
}
.pricing-card ul { margin-bottom: 28px; }
.pricing-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-body);
}
.pricing-card li .check { color: var(--success); flex-shrink: 0; }

/* ---------- FAQ Accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  font-family: inherit;
}
.faq-q:hover { color: var(--accent); }
.faq-icon { flex-shrink: 0; transition: transform 0.2s; font-size: 1.2rem; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding-bottom: 20px; font-size: 0.95rem; }

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group label .req { color: var(--accent); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,99,10,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }
.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  margin-top: 8px;
}
.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
}

/* Contact Info Sidebar */
.contact-info-card {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 32px;
  color: #fff;
}
.contact-info-card h3 { color: #fff; margin-bottom: 24px; }
.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-item-text { font-size: 0.9rem; }
.contact-item-text strong { display: block; margin-bottom: 2px; color: #fff; }
.contact-item-text span { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.contact-item a { color: rgba(255,255,255,0.9); }
.contact-item a:hover { color: #fff; }
.contact-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 20px 0;
}

/* ---------- Footer ---------- */
.footer {
  background: #061525;
  color: rgba(255,255,255,0.65);
  padding: 60px 0 0;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand p { margin-top: 12px; font-size: 0.85rem; line-height: 1.6; }
.footer h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer ul li { margin-bottom: 8px; }
.footer ul li a {
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.footer ul li a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.15s;
  text-decoration: none;
}
.footer-social a:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- WhatsApp Floating Button ---------- */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 14px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: all 0.2s;
}
.wa-float:hover {
  background: #20BA5A;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.wa-float svg { flex-shrink: 0; }
.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: var(--text-dark);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.wa-float:hover .wa-tooltip { opacity: 1; }

/* ---------- About Page Specifics ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.value-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--accent);
}
.value-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.value-card p { font-size: 0.9rem; }
.team-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 500px;
}
.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.team-card h3 { margin-bottom: 4px; }
.team-card .team-role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 12px;
}
.team-card p { font-size: 0.9rem; }

/* ---------- Blog Cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.blog-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.blog-date { font-size: 0.8rem; color: var(--text-light); }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.4; }
.blog-card p { font-size: 0.875rem; flex: 1; margin-bottom: 16px; }
.blog-read {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Africa Map ---------- */
.africa-map {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.africa-map svg {
  width: 100%;
  height: auto;
  opacity: 0.4;
}

/* ---------- Responsive Helpers ---------- */
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .container { padding: 0 16px; }
  .contact-grid { gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Form success state ---------- */
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.form-success.show { display: block; }
.form-success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.form-success h3 { color: var(--success); margin-bottom: 8px; }
.form-success p { font-size: 0.95rem; }
