/* ============================================================
   IMPUNDU Design System — impundu.css
   ============================================================ */

:root {
  /* Brand Colours */
  --teal:         #3D8EA0;
  --teal-dark:    #2A6E7E;
  --teal-light:   #E8F4F7;
  --navy:         #1A2B6B;
  --gold:         #C9972A;
  --gold-light:   #F0C96B;
  --maroon:       #5D1E2C;

  /* Neutrals */
  --off-white:    #FAF9F7;
  --cream:        #F5E6D3;
  --light-gray:   #F0F0F0;
  --mid-gray:     #999999;
  --dark-text:    #222222;
  --white:        #FFFFFF;

  /* Scent Colours */
  --cocoa:        #7B4F2E;
  --vanilla:      #4CAF50;
  --passion:      #8E44AD;
  --rose:         #C0392B;

  /* System */
  --kill-green:   #27AE60;
  --whatsapp:     #25D366;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-accent:  'Cormorant Garamond', serif;

  /* Spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(61,142,160,0.15);
  --shadow-btn:  0 4px 12px rgba(61,142,160,0.3);
  --shadow-gold: 0 4px 12px rgba(201,151,42,0.35);

  /* Navbar */
  --nav-height: 70px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark-text);
  background: var(--off-white);
  margin: 0;
  padding-top: var(--nav-height);
  line-height: 1.6;
}

body.auth-body {
  padding-top: 0;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, var(--navy) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dashboard-body { padding-top: 0; background: #f0f2f5; }

h1, h2, h3, h4, .brand-text { font-family: var(--font-heading); }

img { max-width: 100%; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar-impundu {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--white);
  z-index: 1000;
  border-bottom: 1px solid rgba(61,142,160,0.1);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.navbar-impundu.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

.navbar-impundu .container {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.navbar-brand-impundu {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
}

.nav-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal-light);
}

.nav-links { display: flex; align-items: center; gap: var(--sp-4); flex: 1; justify-content: center; }

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-text);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }

.btn-cart {
  position: relative;
  font-size: 1.25rem;
  color: var(--dark-text);
  cursor: pointer;
  text-decoration: none;
}

.cart-badge {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--teal);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}

.btn-primary-teal {
  background: var(--teal);
  color: white !important;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary-teal:hover {
  background: var(--teal-dark);
  box-shadow: var(--shadow-btn);
  transform: translateY(-1px);
}

.btn-outline-teal {
  background: transparent;
  color: var(--teal) !important;
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 7px 18px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-outline-teal:hover {
  background: var(--teal);
  color: white !important;
}

.btn-gold {
  background: var(--gold);
  color: white !important;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--mid-gray) !important;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

/* ── Mobile Nav ───────────────────────────────────────────── */
.hamburger {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-text);
  cursor: pointer;
  margin-left: auto;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--teal-dark);
  z-index: 2000;
  display: none;
  flex-direction: column;
  padding: var(--sp-6);
}

.mobile-menu.open { display: flex; }

.mobile-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: var(--sp-5);
}

.mobile-links { display: flex; flex-direction: column; gap: var(--sp-4); }

.mobile-links a {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  font-family: var(--font-heading);
  text-decoration: none;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* ── Sections ─────────────────────────────────────────────── */
.section-white   { background: var(--white); }
.section-cream   { background: var(--cream); }
.section-teal    { background: var(--teal); }
.section-dark    { background: var(--teal-dark); }
.section-navy    { background: var(--navy); }
.section-offwhite{ background: var(--off-white); }

.section-padding { padding: var(--sp-9) 0; }
.section-padding-sm { padding: var(--sp-7) 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp-3);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin-bottom: var(--sp-6);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.hero-left {
  background: linear-gradient(145deg, var(--teal-dark), var(--teal));
  padding: var(--sp-8) var(--sp-7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-left::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -80px; left: -80px;
}

.hero-left::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  bottom: -40px; right: -40px;
}

.hero-logo {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.4);
  margin-bottom: var(--sp-5);
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: var(--sp-3);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: var(--sp-3);
}

.hero-tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: var(--sp-5);
}

.hero-desc {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--sp-6);
  max-width: 420px;
}

.hero-ctas { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.hero-right {
  background: linear-gradient(135deg, #f5e6d3, #ede0d4);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-badge {
  position: absolute;
  top: var(--sp-5); right: var(--sp-5);
  background: white;
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.hero-badge .badge-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  font-family: var(--font-heading);
}

.hero-badge .badge-text { font-size: 0.7rem; color: var(--mid-gray); }

/* ── Stats Strip ──────────────────────────────────────────── */
.stat-strip {
  background: var(--teal);
  padding: var(--sp-6) 0;
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ── Product / Scent Cards ────────────────────────────────── */
.scent-card {
  --accent: var(--teal);
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.scent-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.scent-band {
  height: 8px;
  background: var(--accent);
}

.scent-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.scent-card:hover .scent-img { transform: scale(1.03); }

.scent-body { padding: var(--sp-4); }

.scent-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.scent-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.scent-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--accent);
  color: white;
  margin-bottom: var(--sp-3);
}

/* ── Offering Cards ───────────────────────────────────────── */
.offering-card {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
}

.offering-icon {
  width: 64px; height: 64px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 15px rgba(61,142,160,0.3);
}

.offering-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

/* ── Testimonial Cards ────────────────────────────────────── */
.testimonial-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--teal-light);
  position: absolute;
  top: -20px; left: 20px;
  line-height: 1;
}

.testimonial-stars { color: var(--gold); margin-bottom: var(--sp-3); font-size: 0.9rem; }
.testimonial-body  { color: #555; font-size: 0.95rem; line-height: 1.7; margin-bottom: var(--sp-4); }
.testimonial-name  { font-weight: 700; color: var(--dark-text); font-size: 0.9rem; }

/* ── Reseller CTA Banner ──────────────────────────────────── */
.reseller-cta {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: var(--sp-7) 0;
  text-align: center;
}

.reseller-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: white;
  margin-bottom: var(--sp-2);
}

.reseller-cta p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: var(--sp-5); }

/* ── Auth ─────────────────────────────────────────────────── */
.auth-container {
  width: 100%;
  max-width: 460px;
  padding: var(--sp-5);
}

.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--sp-7);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--dark-text);
  margin-bottom: var(--sp-2);
}

.auth-subtitle { color: var(--mid-gray); font-size: 0.95rem; margin-bottom: var(--sp-6); }

.form-impundu .form-control {
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-body);
}

.form-impundu .form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61,142,160,0.15);
  outline: none;
}

.form-impundu .form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #444;
  margin-bottom: 6px;
}

.form-error { color: #dc3545; font-size: 0.8rem; margin-top: 4px; }

/* ── Dashboard ────────────────────────────────────────────── */
.dashboard-wrapper { display: flex; min-height: 100vh; }

.dashboard-sidebar {
  width: 240px;
  background: var(--teal-dark);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-4);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.sidebar-nav { flex: 1; padding: var(--sp-4) 0; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 12px var(--sp-4);
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255,255,255,0.1);
  color: white;
  padding-left: calc(var(--sp-4) + 4px);
}

.sidebar-footer {
  padding: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.dashboard-main {
  flex: 1;
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.dashboard-topbar {
  background: white;
  padding: 16px 24px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.dashboard-content { padding: 28px; flex: 1; }

.stat-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--teal);
}

.stat-card .stat-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-text);
}

.stat-card .stat-lbl {
  font-size: 0.8rem;
  color: var(--mid-gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.code-display {
  background: var(--teal-light);
  border: 2px dashed var(--teal);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  text-align: center;
}

.code-text {
  font-family: monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: 6px;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: var(--sp-8) 0 var(--sp-5);
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: white;
  font-weight: 700;
  margin: var(--sp-3) 0 var(--sp-2);
}

.footer-tagline {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--gold-light);
  font-size: 1rem;
  margin-bottom: var(--sp-3);
}

.footer-desc { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-bottom: var(--sp-4);
}

.footer-links { list-style: none; padding: 0; margin: 0; }

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-socials { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }

.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.footer-socials a:hover { background: var(--teal); border-color: var(--teal); color: white; }

.footer-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(201,151,42,0.2);
  border: 1px solid var(--gold);
  border-radius: 20px;
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  margin: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-5);
  margin-top: var(--sp-6);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ── WhatsApp Float ───────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  z-index: 9999;
  animation: wa-pulse 2.5s infinite;
  transition: transform 0.2s ease;
}

.wa-float:hover { transform: scale(1.1); }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.75); }
}

/* ── Fade-in animations ───────────────────────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Flash alerts ─────────────────────────────────────────── */
.flash-alert {
  position: fixed;
  top: calc(var(--nav-height) + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ── Error page ───────────────────────────────────────────── */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-code { font-size: 8rem; font-weight: 700; color: var(--teal-light); font-family: var(--font-heading); line-height: 1; }
.error-title { font-family: var(--font-heading); font-size: 2rem; color: var(--teal-dark); }
.error-msg { color: var(--mid-gray); font-size: 1rem; }

/* ── Notification bell ────────────────────────────────────── */
.notif-bell { position: relative; cursor: pointer; font-size: 1.3rem; }
.notif-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--gold);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { height: 50vw; min-height: 220px; }
  .hero-left  { padding: var(--sp-7) var(--sp-5); }
  .hero-title { font-size: 2.2rem; }
  .dashboard-sidebar { transform: translateX(-100%); }
  .dashboard-sidebar.open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; }
  .dashboard-content { padding: 16px; }
  body { padding-top: var(--nav-height); }
}
