/* ==============================
   WASTEWISE - Main Stylesheet
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --green-dark:   #1b4332;
    --green-mid:    #2d6a4f;
    --green-main:   #40916c;
    --green-light:  #74c69d;
    --green-pale:   #d8f3dc;
    --accent:       #f4a261;
    --accent-dark:  #e76f51;
    --text-dark:    #1a1a2e;
    --text-mid:     #4a5568;
    --text-light:   #718096;
    --white:        #ffffff;
    --bg-light:     #f7faf8;
    --border:       #e2e8f0;
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:    0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg:    0 8px 40px rgba(0,0,0,0.14);
    --radius:       12px;
    --radius-sm:    8px;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    font-size: 16px;
    line-height: 1.6;
}

/* ---- NAVBAR ---- */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--green-dark) !important;
    letter-spacing: -0.5px;
}

.navbar-brand span { color: var(--green-main); }

.nav-link {
    font-weight: 500;
    color: var(--text-mid) !important;
    padding: 6px 14px !important;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--green-dark) !important;
    background: var(--green-pale);
}

.btn-nav {
    background: var(--green-main);
    color: var(--white) !important;
    border-radius: 50px;
    padding: 8px 22px !important;
}

.btn-nav:hover { background: var(--green-dark); }

/* ---- HERO ---- */
.hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-main) 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: italic;
    color: var(--green-light);
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.75;
}

.btn-primary-custom {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(244,162,97,0.4);
}

.btn-primary-custom:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(231,111,81,0.45);
}

.btn-outline-custom {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s;
    margin-left: 12px;
}

.btn-outline-custom:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
    color: #fff;
}

/* ---- STAT CARDS ---- */
.stats-section { padding: 80px 0; background: var(--bg-light); }

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}

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

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.stat-icon.green  { background: var(--green-pale); color: var(--green-main); }
.stat-icon.orange { background: #fff3e0; color: #f4a261; }
.stat-icon.blue   { background: #e8f4fd; color: #3182ce; }
.stat-icon.red    { background: #ffeaea; color: #e53e3e; }

.stat-value {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ---- SECTION HEADER ---- */
.section-header { text-align: center; margin-bottom: 56px; }

.section-tag {
    display: inline-block;
    background: var(--green-pale);
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 540px;
    margin: 12px auto 0;
    line-height: 1.7;
}

/* ---- FINDINGS SECTION ---- */
.findings-section { padding: 80px 0; }

.chart-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    height: 100%;
}

.chart-card h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1rem;
}

/* ---- SURVEY CTA ---- */
.survey-cta {
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.survey-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
}

.survey-cta p { color: rgba(255,255,255,0.82); font-size: 1.05rem; margin-bottom: 32px; }

/* ---- FOOTER ---- */
footer {
    background: var(--green-dark);
    color: rgba(255,255,255,0.75);
    padding: 56px 0 32px;
}

footer h5 {
    font-family: var(--font-display);
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
}

footer a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--green-light); }
footer hr { border-color: rgba(255,255,255,0.1); margin: 32px 0 20px; }

/* ---- AUTH PAGES ---- */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
    display: flex;
    align-items: center;
    padding: 40px 16px;
}

.auth-card {
    background: var(--white);
    border-radius: 16px;
    padding: 44px 40px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.auth-card h2 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.auth-card p.sub { color: var(--text-light); margin-bottom: 28px; font-size: 0.95rem; }

.form-label { font-weight: 500; font-size: 0.9rem; color: var(--text-mid); margin-bottom: 6px; }

.form-control {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--green-main);
    box-shadow: 0 0 0 3px rgba(64,145,108,0.15);
    outline: none;
}

.btn-green {
    background: var(--green-main);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-green:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-green:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---- DASHBOARD ---- */
.dash-sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--green-dark);
    position: fixed;
    left: 0; top: 0;
    padding: 28px 0;
    z-index: 100;
    transition: transform 0.3s;
}

.dash-sidebar .brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    padding: 0 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
}

.dash-sidebar .brand span { color: var(--green-light); }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover, .sidebar-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-left-color: var(--green-light);
}

.sidebar-link i { width: 20px; text-align: center; font-size: 1rem; }

.dash-content {
    margin-left: 260px;
    min-height: 100vh;
    background: var(--bg-light);
}

.dash-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.dash-topbar h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.dash-main { padding: 32px; }

.dash-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.dash-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-light);
}

.dash-card-body { padding: 24px; }

/* ---- UTILITIES ---- */
.text-green   { color: var(--green-main) !important; }
.text-green-d { color: var(--green-dark) !important; }
.bg-green-p   { background: var(--green-pale) !important; }

.badge-green {
    background: var(--green-pale);
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
}

.progress-bar-custom {
    height: 8px;
    background: var(--border);
    border-radius: 50px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-main), var(--green-light));
    border-radius: 50px;
    transition: width 1s ease;
}

@media (max-width: 768px) {
    .dash-sidebar { transform: translateX(-100%); }
    .dash-sidebar.open { transform: translateX(0); }
    .dash-content { margin-left: 0; }
    .auth-card { padding: 32px 24px; }
}
