/* ============================================================
   VUBA VUBA — Minimal Corporate Stylesheet
   Colors: White & Green Only
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Green palette */
  --vv-green: #2DB54E;
  --vv-green-light: #3EC962;
  --vv-green-dark: #1E9A3A;
  --vv-green-pale: #E8F5EB;

  /* Neutrals (white to black) */
  --vv-white: #FFFFFF;
  --vv-off-white: #FAFAFA;
  --vv-gray-100: #F5F5F5;
  --vv-gray-200: #EEEEEE;
  --vv-gray-300: #E0E0E0;
  --vv-gray-400: #BDBDBD;
  --vv-gray-500: #9E9E9E;
  --vv-gray-600: #757575;
  --vv-gray-700: #616161;
  --vv-gray-800: #424242;
  --vv-dark: #1A1A1A;

  /* Typography */
  --font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Radius */
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);

  /* Transitions */
  --transition: 0.25s ease;
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  color: var(--vv-gray-700);
  background: var(--vv-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 { font-family: var(--font-family); color: var(--vv-dark); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.5vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
h4 { font-size: 18px; }

.text-green { color: var(--vv-green); }
.text-muted { color: var(--vv-gray-500); }

/* ---------- LAYOUT ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-family);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--vv-green);
  color: var(--vv-white);
  border-color: var(--vv-green);
}
.btn-primary:hover {
  background: var(--vv-green-dark);
  border-color: var(--vv-green-dark);
}
.btn-outline {
  background: transparent;
  color: var(--vv-dark);
  border-color: var(--vv-gray-300);
}
.btn-outline:hover {
  border-color: var(--vv-green);
  color: var(--vv-green);
}
.btn-white {
  background: var(--vv-white);
  color: var(--vv-green);
  border-color: var(--vv-white);
}
.btn-white:hover {
  background: var(--vv-off-white);
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ---------- SECTIONS ---------- */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.bg-white { background: var(--vv-white); }
.bg-light { background: var(--vv-off-white); }
.bg-green { background: var(--vv-green); color: var(--vv-white); }
.bg-green h1, .bg-green h2, .bg-green h3, .bg-green h4 { color: var(--vv-white); }
.bg-dark { background: var(--vv-dark); color: var(--vv-white); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--vv-white); }

.section-label {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--vv-green);
  margin-bottom: 12px;
}
.bg-dark .section-label { color: var(--vv-green-light); }

.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header p {
  font-size: 16px;
  color: var(--vv-gray-600);
  max-width: 540px;
  line-height: 1.7;
  margin-top: 12px;
}
.section-header.center p { margin-left: auto; margin-right: auto; }

/* ---------- PAGE HERO ---------- */
.page-hero {
  padding: 140px 0 80px;
  background: var(--vv-off-white);
}
.page-hero .section-label { margin-bottom: 16px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p {
  font-size: 18px;
  color: var(--vv-gray-600);
  max-width: 520px;
  line-height: 1.7;
}
.page-hero .breadcrumb {
  font-size: 14px;
  color: var(--vv-gray-500);
  margin-bottom: 24px;
}
.page-hero .breadcrumb a { color: var(--vv-green); }
.page-hero .breadcrumb span { margin: 0 8px; }

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  background: #fff;
}
.nav.scrolled {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 16px 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--vv-gray-700);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--vv-green); }
.nav-links .nav-cta {
  background: var(--vv-green);
  color: var(--vv-white);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
}
.nav-links .nav-cta:hover {
  background: var(--vv-green-dark);
  color: var(--vv-white);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--vv-dark);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--vv-white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 20px;
  font-weight: 500;
  color: var(--vv-dark);
}
.mobile-menu a:hover { color: var(--vv-green); }
.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--vv-dark);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--vv-dark);
  color: var(--vv-white);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-logo {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.footer-brand-logo img {
  height: 32px;
  width: auto;
}
.footer-brand p {
  color: var(--vv-gray-500);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}
.footer-app-badges {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.footer-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  color: var(--vv-white);
  font-size: 12px;
  transition: background var(--transition);
}
.footer-app-badge:hover { background: var(--vv-green); }
.footer-app-badge svg { width: 16px; height: 16px; fill: currentColor; }
.footer-col h4 {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--vv-gray-500);
  margin-bottom: 20px;
}
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: var(--vv-gray-400);
  font-size: 14px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--vv-green); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom p {
  font-size: 13px;
  color: var(--vv-gray-600);
}
.footer-socials {
  display: flex;
  gap: 8px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vv-gray-500);
  transition: all var(--transition);
}
.footer-socials a svg { width: 16px; height: 16px; fill: currentColor; }
.footer-socials a:hover { background: var(--vv-green); color: var(--vv-white); }

/* ---------- FADE ANIMATION ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.1s; }
.fade-up.d2 { transition-delay: 0.2s; }
.fade-up.d3 { transition-delay: 0.3s; }

/* ---------- ICONS ---------- */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon svg { width: 100%; height: 100%; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.icon-box-sm { width: 40px; height: 40px; }
.icon-box-md { width: 48px; height: 48px; }
.icon-box-lg { width: 56px; height: 56px; }
.icon-box-light { background: var(--vv-green-pale); color: var(--vv-green); }
.icon-box-green { background: var(--vv-green); color: var(--vv-white); }

/* ---------- IMAGES WITH FILTER ---------- */
.img-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--vv-gray-100);
}
.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}
.img-container:hover img {
  filter: grayscale(0%);
}
.img-container.color img {
  filter: none;
}
.img-container.green-tint img {
  filter: grayscale(100%) sepia(50%) hue-rotate(80deg) saturate(200%);
}
.img-container.green-tint:hover img {
  filter: none;
}

/* Placeholder styling */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: var(--vv-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--vv-green-pale) 0%, var(--vv-gray-100) 100%);
}
.img-placeholder svg {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  color: var(--vv-green);
  opacity: 0.5;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--vv-white);
  border: 1px solid var(--vv-gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--vv-green);
  box-shadow: var(--shadow-md);
}
.card h4 { margin-bottom: 8px; }
.card p {
  font-size: 14px;
  color: var(--vv-gray-600);
  line-height: 1.6;
}

/* ---------- STATS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-item { text-align: center; padding: 24px 16px; }
.stat-value {
  font-family: var(--font-family);
  font-size: 42px;
  font-weight: 600;
  color: var(--vv-green);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 14px;
  color: var(--vv-gray-600);
}
.bg-dark .stat-value { color: var(--vv-green-light); }
.bg-dark .stat-label { color: var(--vv-gray-500); }

/* ---------- FEATURE GRID ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--vv-white);
  border: 1px solid var(--vv-gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--vv-green);
}
.feature-card .icon-box { margin-bottom: 20px; }
.feature-card h4 { margin-bottom: 8px; }
.feature-card p {
  font-size: 14px;
  color: var(--vv-gray-600);
  line-height: 1.6;
}

/* ---------- SPLIT LAYOUT ---------- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-section.reverse .split-content { order: 2; }
.split-section.reverse .split-visual { order: 1; }
.split-content h2 { margin-bottom: 16px; }
.split-content p {
  font-size: 16px;
  color: var(--vv-gray-600);
  line-height: 1.7;
  margin-bottom: 12px;
}
.split-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 360px;
}

/* ---------- STAKEHOLDER CARDS ---------- */
.stakeholder-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stakeholder-card {
  background: var(--vv-white);
  border: 1px solid var(--vv-gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
}
.stakeholder-card:hover {
  border-color: var(--vv-green);
}
.stakeholder-card .icon-box { margin: 0 auto 16px; }
.stakeholder-card h4 { margin-bottom: 8px; font-size: 16px; }
.stakeholder-card p {
  font-size: 13px;
  color: var(--vv-gray-600);
  line-height: 1.5;
}

/* ---------- LEAD TEXT ---------- */
.lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--vv-gray-600);
}

/* ---------- SOCIAL ICONS ---------- */
.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all var(--transition);
}
.social-icon svg { width: 16px; height: 16px; fill: currentColor; }
.social-icon-light {
  background: rgba(255,255,255,0.06);
  color: var(--vv-gray-500);
}
.social-icon-light:hover { background: var(--vv-green); color: var(--vv-white); }

/* ---------- LIST CHECKS ---------- */
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--vv-gray-700);
}
.check-item svg {
  width: 20px;
  height: 20px;
  color: var(--vv-green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- FORM STYLES ---------- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--vv-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--vv-gray-300);
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font-family);
  color: var(--vv-dark);
  background: var(--vv-white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--vv-green);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group.error input,
.form-group.error textarea {
  border-color: #dc3545;
}
.form-error {
  display: block;
  font-size: 13px;
  color: #dc3545;
  margin-top: 4px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stakeholder-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split-section { grid-template-columns: 1fr; gap: 40px; }
  .split-section.reverse .split-content,
  .split-section.reverse .split-visual { order: unset; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav.scrolled { padding: 14px 20px; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .page-hero { padding: 100px 0 48px; }
  .footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .stakeholder-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .split-visual { min-height: 240px; }
}

/* ============================================================
   RESPONSIVE OVERRIDES FOR INLINE-STYLE GRIDS
   Uses attribute selectors to collapse layouts at breakpoints
   without modifying HTML.
   ============================================================ */

/* --- Tablet (≤1024px) --- */
@media (max-width: 1024px) {
  /* Large split sections (gap: 60px) → single column */
  [style*="gap: 60px"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  /* 3-col card grids → 2-col */
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* 4-col & 5-col grids → 2-col */
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(5, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
  /* Medium 2-col grids → single column */
  [style*="grid-template-columns: 1fr 1fr"][style*="gap: 32px"],
  [style*="grid-template-columns: 1fr 1fr"][style*="gap: 24px"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns: 1fr 1.5fr"],
  [style*="grid-template-columns: repeat(2, 1fr)"][style*="gap: 24px"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  /* 3-col and 4-col card grids → single column */
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* 5-col → 2-col on mobile */
  [style*="grid-template-columns: repeat(5, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Hero-style sections with large top padding */
  [style*="padding: 160px 0"] {
    padding-top: 100px !important;
    padding-bottom: 48px !important;
  }
  /* General full-padding sections */
  [style*="padding: 100px 0"] {
    padding: 64px 0 !important;
  }
  /* Inline heading font sizes */
  [style*="font-size: 52px"],
  [style*="font-size: 48px"] {
    font-size: clamp(28px, 8vw, 40px) !important;
    line-height: 1.2 !important;
  }
  /* Ensure flex button groups wrap */
  [style*="display: flex"][style*="gap: 16px"] {
    flex-wrap: wrap;
  }
  /* About page: reset quote card positioning on mobile */
  [style*="bottom: -30px"] {
    position: static !important;
    margin-top: 20px;
  }
  /* Clamp fixed image heights on mobile */
  [style*="height: 500px"] { height: 280px !important; }
  [style*="height: 420px"] { height: 260px !important; }
  [style*="height: 380px"] { height: 240px !important; }
}

/* --- Small mobile (≤480px) --- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  /* 5-col and remaining 2-col (gap 24px) → single column */
  [style*="grid-template-columns: repeat(5, 1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"][style*="gap: 24px"] {
    grid-template-columns: 1fr !important;
  }
  /* Stats/metric pairs stay 2-col at 480px, collapse only at 360px */
  [style*="grid-template-columns: repeat(2, 1fr)"][style*="gap: 16px"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
