/* =========================================================
   PROJECT E-REVIRESCO — CONSOLIDATED DESIGN SYSTEM
   ========================================================= */

:root {
    --primary: #176b45;
    --primary-dark: #0d4d31;
    --primary-soft: #eaf4ee;
    --accent: #80b918;
    --accent-soft: #f0f7df;
    --danger: #a52a2a;

    --page-bg: #f7f9f7;
    --page-surface: #ffffff;
    --page-surface-soft: #eef4f0;
    --page-text: #17211b;
    --page-text-soft: #58675f;
    --heading-text: #063c2d;
    --page-border: #d8e3dc;
    --header-bg: rgba(255, 255, 255, .94);
    --hero-bg-start: #ffffff;
    --hero-bg-end: #f2f8f4;

    --background: var(--page-bg);
    --surface: var(--page-surface);
    --surface-soft: var(--page-surface-soft);
    --text: var(--page-text);
    --text-soft: var(--page-text-soft);
    --border: var(--page-border);

    --radius-small: 9px;
    --radius: 15px;
    --radius-large: 22px;
    --shadow: 0 14px 36px rgba(20, 45, 31, .08);
    --container: 1240px;
}

/* =========================================================
   PROJECT E-REVIRESCO
   GLOBAL THEME SYSTEM
   ========================================================= */

:root {
    color-scheme: light;

    --bg: #f7faf8;
    --bg-soft: #eef6f1;

    --surface: #ffffff;
    --surface-soft: #f3f8f5;
    --surface-strong: #e7f2eb;

    --header-bg: rgba(255, 255, 255, 0.97);
    --footer-bg: #032f23;

    --text: #092f24;
    --text-soft: #53665e;
    --text-muted: #74827c;

    --primary: #159b35;
    --primary-hover: #10842c;
    --primary-bright: #42d95c;
    --primary-soft: #e6f7eb;

    --dark-green: #032f23;
    --deep-green: #021f18;

    --border: #d8e5dd;
    --border-strong: #b9d0c2;

    --input-bg: #ffffff;
    --input-text: #10261d;

    --shadow:
        0 12px 35px rgba(3, 47, 35, 0.08);

    --shadow-large:
        0 22px 55px rgba(3, 47, 35, 0.12);
}


/* =========================================================
   DARK THEME
   ========================================================= */

html[data-theme="dark"] {
    color-scheme: dark;

    --bg: #031d16;
    --bg-soft: #06271e;

    --surface: #082d23;
    --surface-soft: #0b3529;
    --surface-strong: #104234;

    --header-bg: #032f23;
    --footer-bg: #021f18;

    --text: #f4faf6;
    --text-soft: #c5d6cd;
    --text-muted: #9eb6aa;

    --primary: #35ce50;
    --primary-hover: #4ddd64;
    --primary-bright: #62e675;
    --primary-soft: #103f2b;

    --dark-green: #021f18;
    --deep-green: #011812;

    --border: #194b3b;
    --border-strong: #28644f;

    --input-bg: #092d23;
    --input-text: #f4faf6;

    --shadow:
        0 14px 38px rgba(0, 0, 0, 0.20);

    --shadow-large:
        0 24px 60px rgba(0, 0, 0, 0.30);
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.site-main {
    background: var(--bg);
    color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text);
}

p {
    color: var(--text-soft);
}

a {
    color: inherit;
}

input,
select,
textarea {
    background: var(--input-bg);
    color: var(--input-text);
    border-color: var(--border);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

label {
    color: var(--text);
}

.home-hero,
.home-section,
.cms-home-section,
.awareness-home {
    background: var(--bg);
    color: var(--text);
}

.quick-section,
.five-r-section,
.impact-section {
    background: var(--bg-soft);
}

.quick-card,
.r-card,
.impact-card,
.article-card,
.awareness-empty,
.home-locator,
.cms-section-grid {
    background: var(--surface);
    color: var(--text);

    border: 1px solid var(--border);

    box-shadow: var(--shadow);
}

.quick-card p,
.r-card p,
.impact-card p,
.article-card p,
.cms-section-text,
.locator-section p,
.partner-home-section p {
    color: var(--text-soft);
}

body {
    font-size: 17px;
}

.hero-content h1 {
    margin: 18px 0 24px;

    font-family: "Space Grotesk", "Manrope", sans-serif;

    font-size: clamp(4rem, 5.4vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.055em;

    font-weight: 700;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-description {
    max-width: 720px;

    font-size: 1.18rem;
    line-height: 1.75;

    color: var(--text-soft);
}

.section-heading h2,
.locator-layout h2,
.partner-home-layout h2,
.home-cta h2 {
    font-family: "Space Grotesk", "Manrope", sans-serif;

    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.quick-card h3,
.r-card h3,
.article-card h3 {
    font-size: 1.35rem;
}

.content-section,
.page-section,
.form-section,
.form-card,
.tracking-card,
.tracking-result,
.partner-card,
.collection-card,
.collection-point-card,
.detail-card,
.status-card,
.application-card {
    background: var(--surface);
    color: var(--text);

    border-color: var(--border);
}

.content-section p,
.page-section p,
.form-card p,
.tracking-card p,
.partner-card p,
.collection-card p,
.detail-card p {
    color: var(--text-soft);
}

table {
    background: var(--surface);
    color: var(--text);
}

th,
td {
    border-color: var(--border);
}

th {
    background: var(--surface-soft);
}

hr {
    border-color: var(--border);
}

/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
}

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

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: var(--header-bg);
    border-bottom: 1px solid var(--border);

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.header-container {
    width: min(94%, 1440px);
    min-height: 100px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 28px;
}


/* =========================================================
   LOGO
   ========================================================= */

.brand {
    flex: 0 0 300px;
    width: 300px;
    max-width: 300px;

    display: flex;
    align-items: center;

    text-decoration: none;
}

.brand-logo-wrap {
    position: relative;

    display: block;

    width: 300px;
    height: 92px;
}

.brand-logo {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: left center;

    display: block;
}


/* Original logo in light mode */

.brand-logo-main {
    opacity: 1;
}


/* Circuit overlay not needed in light mode */

.brand-logo-circuit {
    opacity: 0;
    pointer-events: none;
}

html[data-theme="dark"] .site-header {
    background: var(--header-bg);
    border-bottom-color: rgba(255, 255, 255, 0.10);
}


/* Turn dark logo lettering white */

html[data-theme="dark"] .brand-logo-main {
    filter: brightness(0) invert(1);
}


/*
   Restore the original green E over the white-filtered logo.

   The E occupies the left portion of the supplied logo.
*/

html[data-theme="dark"] .brand-logo-circuit {
    opacity: 1;

    filter: none;

    clip-path: inset(0 80% 0 0);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.brand-text span {
    margin-top: 5px;
    color: var(--text-soft);
    font-size: 0.72rem;
}

.main-navigation {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation a {
    color: var(--text);

    font-size: 1rem;
    font-weight: 650;

    text-decoration: none;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.main-navigation a:hover {
    color: var(--primary);
}


html[data-theme="dark"] .main-navigation a {
    color: #f4faf6;
}

html[data-theme="dark"] .main-navigation a:hover {
    color: var(--primary-bright);
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex: 1;
}

.main-navigation a {
    position: relative;
    padding: 28px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 21px;

    width: 0;
    height: 2px;

    background: var(--primary);
    transition: width 0.2s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.header-action {
    padding: 11px 17px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-small);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.header-action {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 0 22px;

    background: var(--primary);
    color: #ffffff;

    border-radius: 12px;

    font-size: 1rem;
    font-weight: 800;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.header-action:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}


html[data-theme="dark"] .header-action {
    background: var(--primary-bright);
    color: #032016;
}

.header-action:hover {
    background: var(--primary-dark);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;

    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
}


/* =========================================================
   MAIN
   ========================================================= */

.site-main {
    min-height: 70vh;
}

.messages-container {
    width: min(92%, var(--container));
    margin: 20px auto 0;
}

.site-message {
    padding: 14px 18px;
    background: var(--primary-soft);
    border: 1px solid #cce0d3;
    border-radius: var(--radius-small);
    color: var(--primary-dark);
}


/* =========================================================
   GENERAL PAGE SECTIONS
   ========================================================= */

.updates-header {
    padding: 72px max(4%, calc((100% - var(--container)) / 2));
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.updates-header h1 {
    max-width: 760px;
    margin: 8px 0 15px;
    font-size: clamp(2.1rem, 5vw, 3.7rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.updates-header>p:not(.section-label) {
    max-width: 720px;
    color: var(--text-soft);
    font-size: 1.05rem;
}

.section-label {
    margin: 0;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.updates-section {
    width: min(92%, var(--container));
    margin: auto;
    padding: 60px 0;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.primary-button,
.partner-apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 11px 19px;

    background: var(--primary);
    color: white;

    border: 1px solid var(--primary);
    border-radius: var(--radius-small);

    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.primary-button:hover,
.partner-apply-button:hover {
    background: var(--primary-dark);
}


/* =========================================================
   FORMS
   ========================================================= */

form {
    max-width: 100%;
}

.form-section,
.device-form,
.tracking-result,
.custody-status,
.collection-status {
    margin-bottom: 24px;
    padding: 24px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.form-section h2,
.device-form h3 {
    margin-top: 0;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 650;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 12px 13px;

    background: white;
    color: var(--text);

    border: 1px solid #cfd8d2;
    border-radius: var(--radius-small);

    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

button {
    padding: 11px 18px;

    background: var(--primary);
    color: white;

    border: 0;
    border-radius: var(--radius-small);

    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: var(--primary-dark);
}

.form-help {
    color: var(--text-soft);
    font-size: 0.9rem;
}


/* =========================================================
   ARTICLES / GENERAL CARDS
   ========================================================= */

.article-grid,
.partner-grid,
.collection-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.article-card,
.partner-card,
.collection-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-card-content,
.partner-card-content {
    padding: 23px;
}


/* =========================================================
   PARTNERS
   ========================================================= */

.partner-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px;
}

.category-filter {
    padding: 8px 13px;

    background: var(--surface);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 650;
}

.category-filter:hover,
.category-filter.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.partner-dashboard-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.partner-logo {
    height: 155px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--border);
}

.partner-logo img {
    max-width: 180px;
    max-height: 100px;
    object-fit: contain;
}

.partner-card h2 {
    margin-top: 0;
}

.partner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0 18px;
}

.partner-tags span {
    padding: 5px 8px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-radius: 5px;
    font-size: 0.76rem;
    font-weight: 700;
}

.partner-description {
    color: var(--text-soft);
}

.partner-details p {
    margin: 8px 0;
}

.partner-website {
    display: inline-block;
    margin-top: 13px;
    font-weight: 700;
}

.partner-application-callout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    margin-top: 40px;
    padding: 30px;

    background: var(--primary-soft);
    border: 1px solid #d2e5d8;
    border-radius: var(--radius-large);
}

.partner-application-callout h2 {
    margin: 5px 0;
}


/* =========================================================
   COLLECTION CENTRES
   ========================================================= */

.collection-search,
.tracking-search {
    display: flex;
    gap: 10px;
    max-width: 720px;
    margin-top: 25px;
}

.collection-search input,
.tracking-search input {
    flex: 1;
    min-width: 0;
}

.search-summary {
    margin-top: 16px;
    color: var(--text-soft);
}

.collection-card {
    padding: 25px;
}

.collection-card-header h2 {
    margin: 5px 0 6px;
}

.collection-network {
    margin-top: 0;
    color: var(--text-soft);
}

.collection-details {
    margin-top: 20px;
}

.collection-detail {
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 14px;

    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.collection-instructions,
.collection-protocol {
    margin-top: 20px;
    padding: 16px;

    background: var(--surface-soft);
    border-radius: var(--radius-small);
}

.collection-instructions p,
.collection-protocol p {
    margin-bottom: 0;
}

.empty-feed,
.empty-state {
    grid-column: 1 / -1;
    padding: 35px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    text-align: center;
}


/* =========================================================
   TRACKING
   ========================================================= */

.tracking-result {
    margin-top: 25px;
}

.custody-status,
.collection-status {
    margin-top: 18px;
}

.outcome-card {
    margin-top: 16px;
    padding: 18px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
}

.outcome-heading {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.outcome-heading span {
    color: var(--primary);
    font-weight: 700;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 70px;
    background: #10251a;
    color: #dce9e1;
}

.footer-container {
    width: min(92%, var(--container));
    margin: auto;
    padding: 55px 0 40px;

    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 45px;
}

.footer-brand strong {
    color: white;
    font-size: 1.1rem;
}

.footer-brand p {
    max-width: 330px;
    color: #aec0b5;
}

.footer-tagline {
    font-weight: 700;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-column strong {
    margin-bottom: 5px;
    color: white;
}

.footer-column a {
    color: #c7d7cd;
    text-decoration: none;
}

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

.footer-column span {
    color: #c7d7cd;
}

.footer-bottom {
    width: min(92%, var(--container));
    margin: auto;
    padding: 20px 0 28px;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);

    color: #91a79a;
    font-size: 0.82rem;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 980px) {

    .header-container {
        min-height: 70px;
    }

    .brand-text span {
        display: none;
    }

    .header-action {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-navigation {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;

        padding: 14px 5% 25px;

        background: white;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .main-navigation.open {
        display: flex;
    }

    .main-navigation a {
        padding: 15px 4px;
        border-bottom: 1px solid var(--border);
    }

    .main-navigation a::after {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 650px) {

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .brand-text strong {
        font-size: 0.82rem;
    }

    .updates-header {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .updates-section {
        padding: 42px 0;
    }

    .collection-search,
    .tracking-search {
        display: block;
    }

    .collection-search input,
    .collection-search button,
    .tracking-search input,
    .tracking-search button {
        width: 100%;
    }

    .collection-search button,
    .tracking-search button {
        margin-top: 9px;
    }

    .collection-detail {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .partner-application-callout {
        display: block;
    }

    .partner-apply-button {
        margin-top: 15px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        display: block;
    }

    .outcome-heading {
        display: block;
    }

}

/* =========================================================
   PROJECT E-REVIRESCO
   PUBLIC WEBSITE VISUAL SYSTEM
   ========================================================= */


/* ---------- TYPOGRAPHY + BRAND ---------- */

:root {
    --er-green: #14952d;
    --er-green-bright: #35b52e;
    --er-dark: #063c2d;
    --er-deep: #032a20;

    --er-ink: #14251e;
    --er-muted: #647169;

    --er-white: #ffffff;
    --er-offwhite: #f7faf7;
    --er-soft: #edf5ef;

    --er-line: #dce6df;

    --er-heading: "Space Grotesk", "Segoe UI", Arial, sans-serif;
    --er-body: "Manrope", "Segoe UI", Arial, sans-serif;
    --er-container: 1240px;
}

html {
    scroll-behavior: smooth;
}


body {
    font-family: var(--er-body);
    background: var(--page-bg);
    color: var(--page-text);
    line-height: 1.65;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--er-heading);
    color: var(--heading-text);
    letter-spacing: -0.025em;
}


body,
p,
a,
button,
input,
textarea,
select {
    font-family: var(--er-body);
}


.home-container {
    width: min(92%, var(--er-container));
    margin-inline: auto;
}



/* ---------- HEADER ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: var(--header-bg);
    border-bottom: 1px solid var(--page-border);

    backdrop-filter: blur(12px);
}


.header-container {
    width: min(94%, var(--er-container));
    min-height: 104px;
    margin: auto;

    display: flex;
    align-items: center;
    gap: 30px;
}


.brand {
    flex: 0 0 320px;
    width: 320px;
    max-width: 320px;

    display: flex;
    align-items: center;

    text-decoration: none;
}


.brand-logo {
    display: block;

    width: 100%;
    height: 90px;
    max-height: 90px;

    object-fit: contain;
    object-position: left center;
}


.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex: 1;
    gap: 25px;
}


.main-navigation a {
    position: relative;

    padding: 37px 0 34px;

    color: var(--page-text);
    text-decoration: none;

    font-size: 1rem;
    font-weight: 700;
}


.main-navigation a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 28px;

    width: 0;
    height: 2px;

    background: var(--er-green);

    transition: width 0.2s ease;
}


.main-navigation a:hover {
    color: var(--er-dark);
}


.main-navigation a:hover::after {
    width: 100%;
}


.header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 10px 17px;

    background: var(--er-green);
    color: white;

    border-radius: 7px;

    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 800;

    white-space: nowrap;
}


.header-action:hover {
    background: var(--er-dark);
}



/* ---------- SHARED ---------- */

.home-section {
    padding: 88px 0;
}


.eyebrow {
    margin: 0 0 14px;

    color: var(--er-green);

    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}


.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);

    align-items: end;
    gap: 60px;

    margin-bottom: 42px;
}


.section-heading h2,
.locator-layout h2,
.partner-home-layout h2,
.home-cta h2,
.cms-section-grid h2 {
    font-family: var(--er-heading);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.section-heading>p,
.locator-layout>div>p:last-child,
.partner-home-layout>div>p:last-child {
    margin: 0;

    color: var(--page-text-soft);
    font-size: 1.08rem;
}


.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 12px 21px;

    border-radius: 7px;

    text-decoration: none;

    font-size: 0.9rem;
    font-weight: 800;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


.button:hover {
    transform: translateY(-1px);
}


.button-primary {
    background: var(--er-green);
    color: white;
    border: 1px solid var(--er-green);
}


.button-primary:hover {
    background: var(--er-dark);
    border-color: var(--er-dark);

    box-shadow:
        0 8px 22px rgba(6, 60, 45, 0.14);
}


.button-secondary {
    background: transparent;
    color: var(--er-dark);

    border: 1px solid #9baca2;
}


.button-secondary:hover {
    background: var(--page-surface);
    border-color: var(--er-dark);
}


.text-link {
    color: var(--er-dark);

    text-decoration: none;

    font-weight: 800;
}


.text-link:hover {
    color: var(--er-green);
}



/* ---------- HERO ---------- */

.home-hero {
    position: relative;
    overflow: hidden;

    padding: 105px 0 90px;

    background:
        radial-gradient(circle at 85% 20%,
            rgba(53, 181, 46, 0.09),
            transparent 28%),
        linear-gradient(135deg,
            var(--hero-bg-start) 0%,
            var(--hero-bg-end) 100%);

    border-bottom: 1px solid var(--page-border);
}


.home-hero::after {
    content: "";

    position: absolute;
    right: -130px;
    bottom: -210px;

    width: 480px;
    height: 480px;

    border: 1px solid rgba(20, 149, 45, 0.12);
    border-radius: 50%;
}


.hero-grid {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(350px, 0.85fr);

    gap: 80px;
    align-items: center;
}


.hero-content h1 {
    max-width: 760px;
    margin: 0;

    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(3.5rem, 5.6vw, 5.7rem);
    font-weight: 700;

    line-height: 1;
    letter-spacing: -0.045em;
}

@media (max-width: 700px) {

    .hero-content h1 {
        font-size: clamp(2.5rem, 11vw, 3.6rem);
        line-height: 1;
    }
}

.hero-content h1 span {
    display: block;

    color: var(--er-green);

    font-weight: 700;
}

.hero-description {
    max-width: 680px;

    margin: 28px 0 0;

    color: var(--page-text-soft);

    font-size: clamp(1.08rem, 1.45vw, 1.28rem);
    line-height: 1.75;
}


.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 34px;
}


.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;

    margin-top: 38px;

    color: #526159;

    font-size: 0.82rem;
    font-weight: 700;
}


.hero-trust span {
    position: relative;
    padding-left: 15px;
}


.hero-trust span::before {
    content: "";

    position: absolute;
    left: 0;
    top: 50%;

    width: 6px;
    height: 6px;

    background: var(--er-green);
    border-radius: 50%;

    transform: translateY(-50%);
}

.hero-panel {
    background:
        linear-gradient(145deg,
            #043d2e,
            #022b21);

    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow: var(--shadow-large);
}

.hero-panel h2,
.hero-panel strong {
    color: #ffffff;
}

.hero-panel p {
    color: #bfd2c9;
}

.hero-panel-label,
.hero-process span {
    color: var(--primary-bright);
}

.hero-panel {
    padding: 34px;

    background: var(--er-deep);
    color: white;

    border-radius: 16px;

    box-shadow:
        0 28px 65px rgba(3, 42, 32, 0.16);
}


.hero-panel-label {
    margin: 0;

    color: #75d16d;

    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}


.hero-panel h2 {
    max-width: 400px;

    margin: 10px 0 28px;

    color: white;

    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.1;
}


.hero-process {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 1px;

    background: rgba(255, 255, 255, 0.11);
}


.hero-process>div {
    padding: 22px;

    background: var(--er-deep);
}


.hero-process span {
    display: block;

    margin-bottom: 11px;

    color: #68ca61;

    font-family: var(--er-heading);
    font-size: 0.72rem;
    font-weight: 800;
}


.hero-process strong {
    display: block;

    color: white;

    font-family: var(--er-heading);
    font-size: 1rem;
}


.hero-process p {
    margin: 7px 0 0;

    color: #b9cdc3;

    font-size: 0.82rem;
    line-height: 1.6;
}



/* ---------- QUICK ACTIONS ---------- */

.quick-section {
    padding-top: 0;
    padding-bottom: 0;

    background: var(--page-surface);
}


.quick-grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-left: 1px solid var(--page-border);
    border-top: 1px solid var(--page-border);
}


.quick-card {
    min-height: 260px;
    padding: 34px;

    background: var(--page-surface);
    color: var(--page-text);

    border-right: 1px solid var(--page-border);
    border-bottom: 1px solid var(--page-border);

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.quick-card:hover {
    background: #f7fbf8;
}


.quick-number {
    color: var(--er-green);

    font-family: var(--er-heading);
    font-size: 0.74rem;
    font-weight: 800;
}


.quick-card h3,
.r-card h3,
.article-card h3 {
    font-family: var(--er-heading);
    font-weight: 650;
    letter-spacing: -0.02em;
}


.quick-card p {
    min-height: 55px;
    margin-bottom: 25px;

    color: var(--page-text-soft);
    font-size: 0.9rem;
}


.quick-card strong {
    color: var(--er-dark);
    font-size: 0.83rem;
}



/* ---------- FIVE Rs ---------- */

.five-r-section {
    background: var(--page-surface);
}


.five-r-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);

    border-top: 1px solid var(--page-border);
    border-left: 1px solid var(--page-border);
}


.r-card {
    min-height: 275px;
    padding: 27px 24px;

    border-right: 1px solid var(--page-border);
    border-bottom: 1px solid var(--page-border);
}


.r-card span {
    color: var(--er-green);

    font-family: var(--er-heading);
    font-size: 0.72rem;
    font-weight: 800;
}


.r-card h3 {
    margin: 70px 0 12px;

    font-size: 1.25rem;
}


.r-card p {
    margin: 0;

    color: var(--page-text-soft);

    font-size: 0.86rem;
}



/* ---------- LOCATOR ---------- */

.locator-section {
    background: var(--er-deep);
    color: white;
}


.locator-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;

    align-items: center;
    gap: 90px;
}


.locator-layout h2 {
    color: white;
}


.locator-layout>div>p:last-child {
    margin-top: 18px;
    color: #b9ccc2;
}


.home-locator {
    padding: 30px;

    background: var(--page-surface);
    color: var(--page-text);

    border-radius: 12px;
}


.home-locator label {
    margin-bottom: 10px;

    font-size: 0.82rem;
    font-weight: 800;
}


.home-locator-control {
    display: flex;
    gap: 9px;
}


.home-locator-control input {
    flex: 1;
    min-width: 0;

    min-height: 49px;
}


.home-locator-control button {
    min-width: 125px;
}



/* ---------- IMPACT ---------- */

.impact-section {
    background: var(--page-surface-soft);
}


.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 16px;
}


.impact-card {
    min-height: 230px;
    padding: 28px;

    background: var(--page-surface);

    border: 1px solid var(--page-border);
    border-radius: 10px;
}


.impact-marker {
    display: block;

    width: 34px;
    height: 4px;

    margin-bottom: 68px;

    background: var(--er-green);
}


.impact-card strong {
    display: block;

    color: var(--heading-text);

    font-family: var(--er-heading);
    font-size: 1.05rem;
}


.impact-card p {
    margin-bottom: 0;

    color: var(--page-text-soft);

    font-size: 0.86rem;
}



/* ---------- CMS SECTIONS ---------- */

.cms-home-section {
    padding: 82px 0;

    background: var(--page-surface);

    border-top: 1px solid var(--page-border);
}


.cms-home-section:nth-child(even) {
    background: var(--page-bg);
}


.cms-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;
    gap: 70px;
}


.cms-section-grid h2 {
    margin: 0 0 20px;

    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}


.cms-section-text {
    color: var(--page-text-soft);
}


.cms-section-image {
    overflow: hidden;

    min-height: 340px;

    border-radius: 12px;
}


.cms-section-image img {
    width: 100%;
    height: 100%;
    min-height: 340px;

    object-fit: cover;
}



/* ---------- PARTNERS ---------- */

.partner-home-section {
    background: var(--page-surface);
}


.partner-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;

    align-items: end;
    gap: 70px;
}


.partner-home-layout>div:first-child {
    max-width: 760px;
}


.partner-home-layout>div>p:last-child {
    margin-top: 20px;
}


.partner-home-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 15px;
}



/* ---------- AWARENESS ---------- */

.awareness-home {
    background: var(--page-bg);
}


.awareness-home .article-card {
    border-radius: 10px;

    box-shadow: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.awareness-home .article-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 16px 38px rgba(3, 42, 32, 0.08);
}


.awareness-home .article-card img {
    width: 100%;
    height: 220px;

    object-fit: cover;
}


.awareness-home .article-card small {
    color: var(--er-green);

    font-weight: 800;
}


.awareness-home .article-card h3 {
    margin: 9px 0 12px;
}


.awareness-home .article-card p {
    color: var(--page-text-soft);
}


.awareness-home .article-card a {
    color: var(--er-dark);

    text-decoration: none;
    font-weight: 800;
}


.awareness-empty {
    padding: 35px;

    background: var(--page-surface);

    border: 1px solid var(--page-border);
    border-radius: 10px;

    color: var(--page-text-soft);
}



/* ---------- FINAL CTA ---------- */

.home-cta {
    padding: 72px 0;

    background: var(--er-green);
    color: white;
}


.home-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;
}


.home-cta .eyebrow {
    color: #d8f3d7;
}


.home-cta h2 {
    max-width: 700px;

    margin: 0;

    color: white;

    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
}


.home-cta-actions {
    display: flex;
    gap: 10px;

    flex-shrink: 0;
}


.button-light {
    background: var(--page-surface);
    color: var(--er-dark);

    border: 1px solid white;
}


.button-outline-light {
    background: transparent;
    color: white;

    border: 1px solid rgba(255, 255, 255, 0.65);
}



/* ---------- FOOTER ---------- */

.site-footer {
    margin-top: 0;

    background: #03271e;
}


.footer-logo {
    display: block;

    width: min(100%, 290px);
    height: auto;

    margin-bottom: 20px;

    filter: brightness(0) invert(1);
    opacity: 0.95;
}


.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 16px;
}


.social-link {
    width: 36px;
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;

    color: white !important;

    text-decoration: none;

    font-size: 0.75rem;
    font-weight: 800;
}


.social-link:hover {
    background: var(--page-surface);
    color: var(--er-deep) !important;
}



/* ---------- TABLET ---------- */

@media (max-width: 1050px) {

    .header-container {
        min-height: 82px;
    }


    .brand {
        flex-basis: 245px;
        width: 245px;
        max-width: 245px;
    }


    .brand-logo {
        height: 66px;
        max-height: 66px;
    }


    .header-action {
        display: none;
    }


    .menu-toggle {
        display: block;
        margin-left: auto;
    }


    .main-navigation {
        position: fixed;

        top: 82px;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 10px 5% 22px;

        background: var(--page-surface);

        border-bottom: 1px solid var(--page-border);

        box-shadow:
            0 18px 40px rgba(3, 42, 32, 0.09);
    }


    .main-navigation.open {
        display: flex;
    }


    .main-navigation a {
        padding: 15px 4px;

        border-bottom: 1px solid var(--page-border);
    }


    .main-navigation a::after {
        display: none;
    }


    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }


    .hero-content {
        max-width: 800px;
    }


    .quick-grid {
        grid-template-columns: 1fr 1fr;
    }


    .five-r-grid {
        grid-template-columns: repeat(3, 1fr);
    }


    .impact-grid {
        grid-template-columns: 1fr 1fr;
    }


    .locator-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

}



/* ---------- MOBILE ---------- */

@media (max-width: 700px) {

    .header-container {
        min-height: 72px;
    }


    .brand {
        flex: 0 1 215px;

        width: 215px;
        max-width: 215px;
    }


    .brand-logo {
        width: 100%;

        height: 58px;
        max-height: 58px;
    }


    .main-navigation {
        top: 72px;
    }


    .home-hero {
        padding: 70px 0 60px;
    }



    .hero-content h1 {
        font-size: clamp(3rem, 14vw, 4.5rem);
        line-height: 0.96;
    }

    .hero-description {
        font-size: 0.98rem;
    }


    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }


    .hero-actions .button {
        width: 100%;
    }


    .hero-trust {
        display: grid;
        gap: 9px;
    }


    .hero-panel {
        padding: 25px 20px;
    }


    .hero-process {
        grid-template-columns: 1fr;
    }


    .quick-grid,
    .five-r-grid,
    .impact-grid {
        grid-template-columns: 1fr;
    }


    .quick-card {
        min-height: auto;
    }


    .quick-card h3 {
        margin-top: 30px;
    }


    .r-card {
        min-height: auto;
    }


    .r-card h3 {
        margin-top: 35px;
    }


    .home-section {
        padding: 62px 0;
    }


    .section-heading {
        grid-template-columns: 1fr;

        align-items: start;
        gap: 20px;

        margin-bottom: 30px;
    }


    .home-locator {
        padding: 22px 18px;
    }


    .home-locator-control {
        display: grid;
        grid-template-columns: 1fr;
    }


    .home-locator-control button {
        width: 100%;
    }


    .cms-section-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }


    .cms-section-image,
    .cms-section-image img {
        min-height: 250px;
    }


    .partner-home-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }


    .home-cta-content {
        display: block;
    }


    .home-cta-actions {
        display: grid;
        grid-template-columns: 1fr;

        margin-top: 30px;
    }


    .home-cta-actions .button {
        width: 100%;
    }


    .footer-logo {
        width: 240px;
    }

}


/* =========================================================
   THEME INTEGRATION + FINAL SCALE
   ========================================================= */

body {
    font-size: 17px;
    background: var(--page-bg);
    color: var(--page-text);
    transition: background-color .2s ease, color .2s ease;
}

.site-header {
    background: var(--header-bg);
    border-color: var(--page-border);
}

.main-navigation a {
    color: var(--page-text);
}

.theme-toggle {
    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: var(--surface);
    color: var(--text);

    cursor: pointer;

    font-size: 1.25rem;
}

.theme-toggle:hover {
    border-color: var(--primary);
}


.theme-icon-light,
.theme-icon-dark {
    line-height: 1;
}


/* Light mode */

.theme-icon-light {
    display: inline;
}

.theme-icon-dark {
    display: none;
}


/* Dark mode */

html[data-theme="dark"] .theme-icon-light {
    display: none;
}

html[data-theme="dark"] .theme-icon-dark {
    display: inline;
}


html[data-theme="dark"] .theme-toggle {
    background: #073a2d;
    border-color: #3a6d5b;
    color: #ffffff;
}

.theme-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--page-surface);
    color: var(--page-text);
    border: 1px solid var(--page-border);
    border-radius: 50%;
    cursor: pointer;
}

.theme-toggle:hover {
    background: var(--page-surface-soft);
}

.theme-icon-dark {
    display: none;
}

html[data-theme="dark"] .theme-icon-light {
    display: none;
}

html[data-theme="dark"] .theme-icon-dark {
    display: inline;
}

.form-section,
.device-form,
.tracking-result,
.custody-status,
.collection-status,
.article-card,
.partner-card,
.collection-card,
.outcome-card,
.empty-feed,
.empty-state {
    background: var(--page-surface);
    border-color: var(--page-border);
    color: var(--page-text);
}

input,
select,
textarea {
    background: var(--page-surface) !important;
    color: var(--page-text) !important;
    border-color: var(--page-border) !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--page-text-soft);
    opacity: .78;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-text);
}

.home-container {
    width: min(92%, 1240px);
    margin-inline: auto;
}

.section-heading h2,
.locator-layout h2,
.partner-home-layout h2,
.cms-section-grid h2 {
    font-size: clamp(2.4rem, 4vw, 3.65rem);
    line-height: 1.04;
}

.home-page p,
.home-section p {
    line-height: 1.72;
}

html[data-theme="dark"] .quick-section,
html[data-theme="dark"] .five-r-section,
html[data-theme="dark"] .partner-home-section,
html[data-theme="dark"] .cms-home-section,
html[data-theme="dark"] .awareness-home,
html[data-theme="dark"] .impact-section {
    background: var(--page-bg);
}

html[data-theme="dark"] .quick-card,
html[data-theme="dark"] .impact-card,
html[data-theme="dark"] .awareness-empty,
html[data-theme="dark"] .home-locator {
    background: var(--page-surface);
    color: var(--page-text);
    border-color: var(--page-border);
}

html[data-theme="dark"] .quick-card:hover {
    background: var(--page-surface-soft);
}

html[data-theme="dark"] .quick-card strong,
html[data-theme="dark"] .text-link {
    color: var(--primary);
}

html[data-theme="dark"] .hero-trust {
    color: var(--page-text-soft);
}

html[data-theme="dark"] .hero-panel {
    background: #052d22;
}

html[data-theme="dark"] .hero-process>div {
    background: #052d22;
}

html[data-theme="dark"] .button-secondary {
    color: var(--page-text);
    border-color: var(--page-border);
}

html[data-theme="dark"] .button-secondary:hover {
    background: var(--page-surface-soft);
    border-color: var(--primary);
}

@media (max-width: 1050px) {
    .main-navigation {
        background: var(--page-surface);
        border-color: var(--page-border);
    }
}

@media (max-width: 700px) {
    body {
        font-size: 16px;
    }

    .site-header .brand {
        width: 210px;
        max-width: 210px;
        flex-basis: 210px;
    }

    .site-header .brand-logo {
        width: 210px;
        height: 62px;
        max-height: 62px;
    }
}

/* =========================================================
   PRODUCTION THEME LOCK
   Light theme only until dark theme is rebuilt properly.
   ========================================================= */

html,
html[data-theme="dark"],
html[data-theme="light"] {
    color-scheme: light;

    --bg: #f7faf8;
    --bg-soft: #eef6f1;

    --surface: #ffffff;
    --surface-soft: #f3f8f5;
    --surface-strong: #e7f2eb;

    --header-bg: rgba(255, 255, 255, 0.98);

    --text: #092f24;
    --text-soft: #53665e;
    --text-muted: #74827c;

    --primary: #159b35;
    --primary-hover: #10842c;
    --primary-bright: #42d95c;
    --primary-soft: #e6f7eb;

    --border: #d8e5dd;
    --border-strong: #b9d0c2;

    --input-bg: #ffffff;
    --input-text: #10261d;
}

html,
body,
.site-main {
    background: var(--bg) !important;
    color: var(--text) !important;
}

.site-header,
html[data-theme="dark"] .site-header {
    background: #ffffff !important;
    border-bottom-color: var(--border) !important;
}

/* Never filter the actual logo */
.brand-logo,
.brand-logo-main,
html[data-theme="dark"] .brand-logo,
html[data-theme="dark"] .brand-logo-main {
    filter: none !important;
    opacity: 1 !important;
}

/* Remove the duplicate dark-logo overlay */
.brand-logo-circuit {
    display: none !important;
}

.main-navigation a,
html[data-theme="dark"] .main-navigation a {
    color: #092f24 !important;
}

.main-navigation a:hover,
html[data-theme="dark"] .main-navigation a:hover {
    color: #159b35 !important;
}

input,
textarea,
select {
    background: #ffffff;
    color: #10261d;
}

/* TEMPORARY PRODUCTION LIGHT-MODE LOCK */

html,
html[data-theme="dark"],
html[data-theme="light"],
body {
    color-scheme: light !important;
    background: #f7faf8 !important;
    color: #092f24 !important;
}

.site-main,
.home-hero,
.home-section,
.quick-section,
.five-r-section,
.impact-section,
.cms-home-section,
.awareness-home {
    background-color: #f7faf8 !important;
    color: #092f24 !important;
}

.site-header,
html[data-theme="dark"] .site-header {
    background: #ffffff !important;
}

html[data-theme="dark"] .brand-logo,
html[data-theme="dark"] .brand-logo-main,
.brand-logo {
    filter: none !important;
    opacity: 1 !important;
}

.brand-logo-circuit {
    display: none !important;
}

/* =========================================================
   MOBILE LIGHT THEME FIX
   ========================================================= */

@media (max-width: 900px) {

    html,
    body {
        background: #f7faf8 !important;
        color: #092f24 !important;
    }

    .site-main {
        background: #f7faf8 !important;
        color: #092f24 !important;
    }

    .site-header,
    html[data-theme="dark"] .site-header {
        background: #ffffff !important;
        color: #092f24 !important;
        border-bottom: 1px solid #d8e5dd !important;
    }

    .header-container {
        background: #ffffff !important;
    }

    .main-navigation,
    html[data-theme="dark"] .main-navigation {
        background: #ffffff !important;
        color: #092f24 !important;
    }

    .main-navigation a,
    html[data-theme="dark"] .main-navigation a {
        color: #092f24 !important;
    }

    .menu-toggle,
    html[data-theme="dark"] .menu-toggle {
        color: #092f24 !important;
        background: transparent !important;
        border-color: #d8e5dd !important;
    }

    .menu-toggle span {
        background: #092f24 !important;
    }

    .brand-logo,
    .brand-logo-main,
    html[data-theme="dark"] .brand-logo,
    html[data-theme="dark"] .brand-logo-main {
        filter: none !important;
        opacity: 1 !important;
    }

    .brand-logo-circuit {
        display: none !important;
    }

    .home-hero,
    .home-section,
    .quick-section,
    .five-r-section,
    .impact-section,
    .cms-home-section,
    .partner-home-section,
    .awareness-home {
        color: #092f24;
    }
}