/* Nimwema Platform Styles - v1.0 */
/* Following Woolworths-inspired aesthetic with green/black palette */

/* ============================================
   1. CSS VARIABLES & RESET
   ============================================ */
:root {
  /* Primary Colors */
  --primary-green: #8BC34A;
  --support-green: #6FA838;
  --deep-green: #4E7A24;
  
  /* Neutrals */
  --ink-black: #111111;
  --carbon: #222222;
  --grey-700: #6B6B6B;
  --grey-400: #B5B5B5;
  --grey-200: #E6E6E6;
  --paper: #F7F7F7;
  --white: #FFFFFF;
  
  /* States */
  --success: #2E7D32;
  --warning: #F5A524;
  --error: #D32F2F;
  --info: #1976D2;
  
  /* Typography */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing (8-point scale) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  
  /* Border Radius */
  --radius-card: 16px;
  --radius-input: 12px;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-card: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
  
  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-normal: 200ms ease-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-black);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   2. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1%;
}

h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
}

h3 {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
}

p {
  margin-bottom: var(--space-md);
}

.text-green {
  color: var(--primary-green);
}

.text-small {
  font-size: 14px;
  line-height: 1.45;
}

.text-overline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================
   3. LAYOUT & CONTAINERS
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: 800px;
}

.section {
  padding: var(--space-2xl) 0;
}

.section-sm {
  padding: var(--space-lg) 0;
}

/* ============================================
   4. HEADER & NAVIGATION
   ============================================ */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-card);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--grey-200);
}

.language-selector {
  display: flex;
  gap: var(--space-sm);
}

.lang-btn {
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--grey-200);
  background: var(--white);
  border-radius: var(--radius-input);
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--primary-green);
  color: var(--ink-black);
  border-color: var(--primary-green);
}

.login-btn {
  padding: var(--space-sm) var(--space-lg);
  background: var(--ink-black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.login-btn:hover {
  background: var(--carbon);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink-black);
}

.logo .w {
  color: var(--primary-green);
  font-weight: 900;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--ink-black);
  transition: all var(--transition-fast);
}

/* ============================================
   5. HERO SECTION
   ============================================ */
.hero-section {
  text-align: center;
  padding: var(--space-lg) 0;
}

.hero-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  margin-bottom: var(--space-xl);
}
/*
.hero-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;

  .hero-image {
  width: 100%;
  height: auto;
  display: block;
  
  filter: grayscale(100%);
}
} */

.hero-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-xl);
  width: 100%;
  max-width: 100%;        /* full width of .container */
}


/*.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; 
  filter: grayscale(100%);
}*/

.hero-image-wrapper {
    display: block;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
}


.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero-text {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.hero-cta {
  padding: 12px 24px;
  background: var(--primary-green);
  color: var(--ink-black);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.hero-cta:hover {
  background: var(--support-green);
  box-shadow: var(--shadow-hover);
}

/* ============================================
   6. SUPPORT TEXT SECTION
   ============================================ */
.support-section {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-md);
  background: var(--paper);
  border-radius: var(--radius-card);
  margin-bottom: var(--space-xl);
}

.support-text {
  flex: 1;
  font-size: 18px;
  line-height: 1.6;
  color: var(--grey-700);
}

.support-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: var(--primary-green);
  border-radius: 50%;
  flex-shrink: 0;
  text-align: center;
  padding: var(--space-md);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink-black);
}

/* ============================================
   7. BUTTONS & CTAs
   ============================================ */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary-green);
  color: var(--ink-black);
}

.btn-primary:hover {
  background: var(--support-green);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink-black);
  border: 1px solid var(--ink-black);
}

.btn-secondary:hover {
  background: var(--paper);
}

.btn-large {
  width: 100%;
  padding: 16px 24px;
  font-size: 18px;
  margin-bottom: var(--space-md);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

/* ============================================
   8. MERCHANTS SECTION
   ============================================ */
.merchants-section {
  padding: var(--space-xl) 0;
}

.merchants-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.merchants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  justify-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.merchant-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: all var(--transition-fast);
}

.merchant-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.merchant-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto var(--space-md);
  display: block;
}

.merchant-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-black);
}

/* ============================================
   9. CARDS & COMPONENTS
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--grey-200);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-success {
  background: var(--success);
  color: var(--white);
}

.badge-warning {
  background: var(--warning);
  color: var(--ink-black);
}

.badge-error {
  background: var(--error);
  color: var(--white);
}

.badge-info {
  background: var(--primary-green);
  color: var(--ink-black);
}

/* ============================================
   10. FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--ink-black);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-input);
  font-family: inherit;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 2px rgba(139, 195, 74, 0.2);
}

.form-helper {
  font-size: 14px;
  color: var(--grey-700);
  margin-top: var(--space-xs);
}

.form-error {
  color: var(--error);
  font-size: 14px;
  margin-top: var(--space-xs);
}

/* ============================================
   11. FOOTER
   ============================================ */
.footer {
  background: var(--ink-black);
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4 {
  color: var(--primary-green);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--grey-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--carbon);
  color: var(--grey-400);
  font-size: 14px;
}

/* ============================================
   12. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .hero-overlay {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-lg);
  }
  
  .support-section {
    flex-direction: column;
    text-align: center;
  }
  
  .support-text {
    text-align: center;
  }
  
.merchants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  justify-items: center;
  max-width: 800px;
  margin: 0 auto;
}
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   13. UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.hidden {
  display: none;
}

.visible {
  display: block;
}
/* Password Toggle Styles */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 16px;
    color: var(--grey-600);
    transition: all 0.2s ease;
}

.password-toggle:hover {
    background-color: var(--grey-100);
    color: var(--grey-800);
}

.password-toggle:active {
    transform: scale(0.95);
}

/* Make room for toggle button */
.password-input-container .form-input {
    padding-right: 45px !important;
}
