/* =====================================================
   SIPAS — PUBLIC & CITIZEN PORTAL DESIGN SYSTEM
   Modern Environmental Civic Tech & SaaS Architecture
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* ==================== DESIGN TOKENS ==================== */
:root {
  /* Brand Green Shades */
  --pub-primary: #059669;
  --pub-primary-hover: #047857;
  --pub-primary-dark: #064e3b;
  --pub-primary-light: #d1fae5;
  --pub-primary-soft: #ecfdf5;
  --pub-primary-glow: rgba(5, 150, 105, 0.25);

  --pub-accent-emerald: #10b981;
  --pub-accent-teal: #0d9488;
  --pub-accent-sky: #0284c7;
  --pub-accent-amber: #f59e0b;
  --pub-accent-rose: #e11d48;

  /* Surfaces & Backgrounds */
  --pub-bg: #f8fafc;
  --pub-bg-alt: #ffffff;
  --pub-surface: #ffffff;
  --pub-surface-card: #ffffff;
  --pub-surface-hover: #f1f5f9;

  --pub-border: #e2e8f0;
  --pub-border-light: #f1f5f9;
  --pub-border-focus: #10b981;

  /* Typography */
  --pub-txt-main: #0f172a;
  --pub-txt-muted: #475569;
  --pub-txt-subtle: #94a3b8;
  --pub-txt-white: #ffffff;

  /* Dimensions & Spacing */
  --pub-max-w: 1240px;
  --pub-nav-h: 76px;

  /* Radii */
  --pub-r-xs: 6px;
  --pub-r-sm: 10px;
  --pub-r-md: 14px;
  --pub-r-lg: 20px;
  --pub-r-xl: 28px;
  --pub-r-full: 9999px;

  /* Shadows */
  --pub-sh-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --pub-sh-sm: 0 2px 6px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --pub-sh-md: 0 8px 24px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.03);
  --pub-sh-lg: 0 16px 40px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  --pub-sh-glow: 0 8px 25px rgba(5, 150, 105, 0.3);

  /* Transitions */
  --pub-trans: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==================== BASE RESET ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
  height: 100%;
}

body.pub-body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--pub-bg);
  color: var(--pub-txt-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--pub-primary);
  text-decoration: none;
  transition: var(--pub-trans);
}

a:hover {
  color: var(--pub-primary-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--pub-trans);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.pub-container {
  width: 100%;
  max-width: var(--pub-max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== PUBLIC NAVBAR ==================== */
.pub-navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--pub-trans);
}

.pub-navbar {
  height: var(--pub-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* BRAND LOGO */
.pub-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.pub-logo-box {
  width: 44px;
  height: 44px;
  border-radius: var(--pub-r-md);
  background: linear-gradient(135deg, var(--pub-primary), var(--pub-accent-emerald));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  box-shadow: 0 4px 14px var(--pub-primary-glow);
  flex-shrink: 0;
}

.pub-brand-text h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--pub-txt-main);
  letter-spacing: -0.4px;
  line-height: 1.1;
}

.pub-brand-text p {
  font-size: 11px;
  color: var(--pub-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* NAV LINKS */
.pub-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.pub-nav-link {
  padding: 8px 14px;
  border-radius: var(--pub-r-sm);
  color: var(--pub-txt-muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--pub-trans);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pub-nav-link:hover {
  color: var(--pub-primary);
  background: var(--pub-primary-soft);
}

.pub-nav-link.active {
  color: var(--pub-primary-dark);
  background: var(--pub-primary-soft);
  font-weight: 700;
}

/* AUTH & ACTIONS RIGHT */
.pub-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pub-btn-login {
  padding: 8px 18px;
  border-radius: var(--pub-r-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--pub-txt-main);
  border: 1px solid var(--pub-border);
  background: white;
  transition: var(--pub-trans);
}

.pub-btn-login:hover {
  background: var(--pub-surface-hover);
  border-color: #cbd5e1;
  color: var(--pub-txt-main);
}

.pub-btn-cta {
  padding: 8px 20px;
  border-radius: var(--pub-r-full);
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pub-primary), var(--pub-accent-emerald));
  color: white;
  box-shadow: 0 3px 10px var(--pub-primary-glow);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--pub-trans);
}

.pub-btn-cta:hover {
  background: linear-gradient(135deg, var(--pub-primary-hover), var(--pub-primary));
  transform: translateY(-1px);
  box-shadow: var(--pub-sh-glow);
  color: white;
}

/* USER PROFILE PILL IN NAVBAR */
.pub-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border-radius: var(--pub-r-full);
  background: var(--pub-primary-soft);
  border: 1px solid var(--pub-primary-light);
  color: var(--pub-primary-dark);
  font-size: 12.5px;
  font-weight: 700;
  transition: var(--pub-trans);
}

.pub-user-badge:hover {
  background: var(--pub-primary-light);
  color: var(--pub-primary-dark);
}

.pub-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--pub-r-full);
  background: var(--pub-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

/* HAMBURGER BUTTON */
.pub-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--pub-r-sm);
  background: var(--pub-surface-hover);
  color: var(--pub-txt-main);
  font-size: 22px;
  align-items: center;
  justify-content: center;
}

/* MOBILE OFFCANVAS DRAWER */
.pub-mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -320px;
  width: 300px;
  background: white;
  z-index: 1100;
  box-shadow: var(--pub-sh-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.pub-mobile-drawer.open {
  right: 0;
}

.pub-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1050;
}

.pub-drawer-overlay.show {
  display: block;
}

.pub-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pub-border);
  margin-bottom: 20px;
}

.pub-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.pub-mobile-nav .pub-nav-link {
  font-size: 14px;
  padding: 10px 14px;
}

/* ==================== BUTTONS & PILLS ==================== */
.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--pub-r-full);
  font-size: 14px;
  font-weight: 700;
  transition: var(--pub-trans);
}

.pub-btn.primary {
  background: linear-gradient(135deg, var(--pub-primary), var(--pub-accent-emerald));
  color: white;
  box-shadow: 0 4px 14px var(--pub-primary-glow);
}

.pub-btn.primary:hover {
  background: linear-gradient(135deg, var(--pub-primary-hover), var(--pub-primary));
  transform: translateY(-2px);
  box-shadow: var(--pub-sh-glow);
  color: white;
}

.pub-btn.secondary {
  background: white;
  color: var(--pub-txt-main);
  border: 1px solid var(--pub-border);
  box-shadow: var(--pub-sh-xs);
}

.pub-btn.secondary:hover {
  background: var(--pub-surface-hover);
  border-color: #cbd5e1;
  color: var(--pub-txt-main);
  transform: translateY(-2px);
}

.pub-btn.outline-green {
  background: transparent;
  color: var(--pub-primary);
  border: 2px solid var(--pub-primary);
}

.pub-btn.outline-green:hover {
  background: var(--pub-primary-soft);
  color: var(--pub-primary-dark);
}

.pub-btn.small {
  padding: 7px 16px;
  font-size: 12.5px;
}

/* ==================== HERO SECTION ==================== */
.pub-hero {
  position: relative;
  padding: 80px 0 100px;
  background: radial-gradient(circle at 80% 20%, rgba(209, 250, 229, 0.6) 0%, rgba(248, 250, 252, 0) 60%),
              radial-gradient(circle at 10% 80%, rgba(224, 242, 254, 0.4) 0%, rgba(248, 250, 252, 0) 60%);
  overflow: hidden;
}

.pub-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.pub-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--pub-r-full);
  background: var(--pub-primary-soft);
  border: 1px solid var(--pub-primary-light);
  color: var(--pub-primary-dark);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 20px;
}

.pub-hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -1.2px;
  color: var(--pub-txt-main);
  margin-bottom: 18px;
}

.pub-hero-title span.pub-highlight {
  background: linear-gradient(135deg, var(--pub-primary), #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pub-hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--pub-txt-muted);
  margin-bottom: 32px;
  max-width: 560px;
}

.pub-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.pub-hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--pub-border);
}

.pub-h-stat h4 {
  font-size: 24px;
  font-weight: 800;
  color: var(--pub-txt-main);
  line-height: 1;
}

.pub-h-stat p {
  font-size: 12px;
  color: var(--pub-txt-subtle);
  font-weight: 600;
  margin-top: 4px;
}

/* HERO VISUAL CARD MOCKUP */
.pub-hero-visual {
  position: relative;
}

.pub-visual-card {
  background: white;
  border-radius: var(--pub-r-xl);
  padding: 28px;
  box-shadow: var(--pub-sh-lg);
  border: 1px solid var(--pub-border);
  position: relative;
  z-index: 2;
}

.pub-visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pub-border-light);
}

.pub-floating-badge {
  position: absolute;
  background: white;
  padding: 12px 18px;
  border-radius: var(--pub-r-lg);
  box-shadow: var(--pub-sh-md);
  border: 1px solid var(--pub-border);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.pub-floating-badge.fb-top {
  top: -20px;
  right: -20px;
}

.pub-floating-badge.fb-bottom {
  bottom: -25px;
  left: -20px;
}

/* ==================== SECTION HEADERS ==================== */
.pub-section {
  padding: 80px 0;
}

.pub-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.pub-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--pub-r-full);
  font-size: 12px;
  font-weight: 700;
  background: var(--pub-primary-soft);
  color: var(--pub-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.pub-section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--pub-txt-main);
  line-height: 1.25;
  margin-bottom: 12px;
}

.pub-section-desc {
  font-size: 15px;
  color: var(--pub-txt-muted);
  line-height: 1.7;
}

/* ==================== WASTE CATEGORIES SHOWCASE ==================== */
.pub-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pub-cat-card {
  background: white;
  border-radius: var(--pub-r-xl);
  padding: 32px 28px;
  border: 1px solid var(--pub-border);
  box-shadow: var(--pub-sh-xs);
  transition: var(--pub-trans);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pub-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--pub-sh-lg);
}

.pub-cat-card.organik:hover { border-color: #10b981; }
.pub-cat-card.anorganik:hover { border-color: #0284c7; }
.pub-cat-card.b3:hover { border-color: #e11d48; }

.pub-cat-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--pub-r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.pub-cat-card.organik .pub-cat-icon { background: #ecfdf5; color: #059669; }
.pub-cat-card.anorganik .pub-cat-icon { background: #e0f2fe; color: #0284c7; }
.pub-cat-card.b3 .pub-cat-icon { background: #ffe4e6; color: #e11d48; }

.pub-cat-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--pub-txt-main);
  margin-bottom: 8px;
}

.pub-cat-desc {
  font-size: 13.5px;
  color: var(--pub-txt-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.pub-cat-examples {
  background: var(--pub-bg);
  padding: 14px 16px;
  border-radius: var(--pub-r-md);
  margin-bottom: 24px;
}

.pub-cat-examples h5 {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--pub-txt-subtle);
  font-weight: 700;
  margin-bottom: 6px;
}

.pub-cat-examples p {
  font-size: 13px;
  color: var(--pub-txt-main);
  font-weight: 600;
}

/* ==================== 4-STEP WORKFLOW ==================== */
.pub-workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.pub-step-card {
  background: white;
  border-radius: var(--pub-r-lg);
  padding: 28px 22px;
  border: 1px solid var(--pub-border);
  box-shadow: var(--pub-sh-xs);
  transition: var(--pub-trans);
  position: relative;
}

.pub-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pub-sh-md);
}

.pub-step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--pub-r-full);
  background: var(--pub-primary-soft);
  color: var(--pub-primary-dark);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pub-step-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--pub-txt-main);
  margin-bottom: 8px;
}

.pub-step-card p {
  font-size: 13px;
  color: var(--pub-txt-muted);
  line-height: 1.6;
}

/* ==================== QUICK REPORT TRACKING SEARCH ==================== */
.pub-track-card {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  border-radius: var(--pub-r-xl);
  padding: 48px;
  color: white;
  box-shadow: 0 16px 40px rgba(6, 78, 59, 0.25);
  position: relative;
  overflow: hidden;
}

.pub-track-card::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pub-track-input-wrap {
  display: flex;
  align-items: center;
  background: white;
  border-radius: var(--pub-r-full);
  padding: 6px 8px 6px 20px;
  box-shadow: var(--pub-sh-md);
  max-width: 580px;
}

.pub-track-input-wrap i {
  color: var(--pub-txt-subtle);
  font-size: 18px;
  margin-right: 10px;
}

.pub-track-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--pub-txt-main);
}

/* ==================== TRACKING TIMELINE COMPONENT ==================== */
.pub-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px 0;
  position: relative;
}

.pub-timeline::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: var(--pub-border);
  z-index: 1;
}

.pub-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.pub-timeline-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--pub-r-full);
  background: white;
  border: 3px solid var(--pub-border);
  color: var(--pub-txt-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 10px;
  transition: var(--pub-trans);
}

.pub-timeline-step.active .pub-timeline-icon {
  background: var(--pub-primary);
  border-color: var(--pub-primary);
  color: white;
  box-shadow: 0 0 0 6px var(--pub-primary-light);
}

.pub-timeline-step.completed .pub-timeline-icon {
  background: var(--pub-primary);
  border-color: var(--pub-primary);
  color: white;
}

.pub-timeline-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--pub-txt-muted);
}

.pub-timeline-step.active .pub-timeline-title {
  color: var(--pub-primary-dark);
  font-weight: 800;
}

.pub-timeline-desc {
  font-size: 11px;
  color: var(--pub-txt-subtle);
  margin-top: 2px;
}

/* ==================== FOOTER ==================== */
.pub-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 80px 0 30px;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.pub-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.pub-footer-col h4 {
  font-size: 15px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.2px;
  margin-bottom: 20px;
}

.pub-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pub-footer-links a {
  color: #94a3b8;
  font-size: 13.5px;
  transition: var(--pub-trans);
}

.pub-footer-links a:hover {
  color: #6ee7b7;
  transform: translateX(3px);
}

.pub-footer-bottom {
  padding-top: 28px;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
}

/* ==================== RESPONSIVE ADAPTATIONS ==================== */
@media (max-width: 992px) {
  .pub-nav-links, .pub-btn-login, .pub-btn-cta {
    display: none;
  }
  .pub-hamburger {
    display: flex;
  }
  .pub-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pub-categories-grid {
    grid-template-columns: 1fr;
  }
  .pub-workflow-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pub-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .pub-hero {
    padding: 50px 0 70px;
  }
  .pub-hero-title {
    font-size: 32px;
  }
  .pub-workflow-grid {
    grid-template-columns: 1fr;
  }
  .pub-timeline {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .pub-timeline::before {
    top: 20px;
    bottom: 20px;
    left: 22px;
    width: 4px;
    height: auto;
  }
  .pub-timeline-step {
    flex-direction: row;
    gap: 16px;
    text-align: left;
  }
  .pub-footer-grid {
    grid-template-columns: 1fr;
  }
}
