/* Sustainopedia Welcome Page Styles */
:root {
    /* ── Old color palette ───────────────────────────────────────────────── */
    /* --primary: #1b4332; */
    /* --secondary: #40916c; */
    /* --accent: #8ecaaf; */
    /* --bg: #f6fff8; */
    /* --white: #fff; */
    /* --header: #78a892; */
    /* --gray: #e9ecef; */

    /* ── New color palette ───────────────────────────────────────────────── */
    --primary: #072E1B;             /* primary text */
    --secondary: #305C42;           /* icons, buttons, accents */
    --tertiary: #3c4b41;            /* highlights, secondary accents */
    --accent: #8AAD9A;              /* highlight / active */
    --bg: #E8E6DD;                  /* page background */
    --white: #F3F1E9;               /* card / surface */
    --header: #305C42;              /* header bar */
    --gray: #D4D1C6;                /* dividers */

    --shadow: 0 4px 24px rgba(64,145,108,0.08);
    --radius: 16px;
    --transition: all 0.18s cubic-bezier(.4,1,.4,1);
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--primary);
    background-color: var(--bg);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.welcome-header {
    display: flex;
    justify-content: space-between;
    padding: 24px 30px 18px 30px;
    background-color: var(--header);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 6px 8px rgba(64, 145, 108, 0.12);

}

.welcome-background {
    background: url('./static/img/w-bg.jpg') no-repeat center center;
    position: absolute;
    z-index: -1;
    background-size: cover;
    width: 100%;
    height: 830px;
    opacity: 0.7;
    justify-content: center;
    text-align: center;
    display: block;
}

.welcome-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.welcome-right {
    display: flex;
    align-items: center;
    gap: 44px;
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.welcome-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg);
    letter-spacing: 0.01em;
}
.welcome-nav {
    display: flex;
    gap: 32px;
}
.nav-link {
    color: var(--bg);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.08rem;
    position: relative;
    transition: transform 0.4s ease-out;
}
.nav-link::after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: var(--secondary);
    transition: width 0.2s;
    position: absolute;
    left: 0; bottom: -4px;
}

.nav-link:hover
 {
    transform: translateY(-6px);
}
.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}
.login-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 24px;
    padding: 10px 28px;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(64,145,108,0.10);
    transition: transform 0.4s ease-out;
    text-decoration: none;
}
.login-btn:hover {
    transform: translateY(-6px);
}

.welcome-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 0 0;
}

.top-temp-banner {
    position: sticky;
    top: 90px;
    z-index: 9;
    background: #eaefba;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9em;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
    box-sizing: border-box;
}


.hero {
    justify-content: center;
    text-align: center;
    margin: 60px 0 48px 0;
    max-width: 800px;
}
.hero-title {
    font-size: 2.9rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 18px;
}
.hero-sub {
    font-size: 1.25rem;
    /* color: #406c5c; */
    color: var(--primary);
    margin-bottom: 32px;
    font-weight: 500;
}
.get-started-btn {
    /* background: linear-gradient(90deg, var(--secondary), var(--accent)); */
    background: linear-gradient(90deg, #305C42, #4A7A5A);
    color: var(--white);
    border: none;
    border-radius: 24px;
    padding: 14px 38px;
    font-size: 1.18rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(64,145,108,0.13);
    text-decoration: none;
    transition: transform 0.4s ease-out;
}
.get-started-btn:hover {
    transform: translateY(-10px);
}
.features {
    margin: 0 auto 0px auto;
    max-width: 1100px;
    width: 100%;
    padding: 0 24px;
}
.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 32px;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(64,145,108,0.10);
    display: none;
}
.feature-list {
    display: grid;
    margin-top: 70px;
    margin-bottom: 40px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}
.feature-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 24px 28px 24px;
    text-align: center;
    transition: box-shadow 0.18s;
}
.feature-item:hover {
    box-shadow: 0 8px 32px rgba(64,145,108,0.13);
}
.feature-icon {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 12px;
    display: block;
}
.feature-item h3 {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}
.feature-item p {
    /* color: #406c5c; */
    color: #305C42;
    font-size: 1.01rem;
}
/* ── Shared reveal animation ─────────────────────────────── */
.reveal-up {
    animation: revealUp 0.8s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--secondary);
    background: rgba(48, 92, 66, 0.10);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

/* ── About section ───────────────────────────────────────── */
.about {
    width: 100%;
    padding: 100px 24px;
    background: linear-gradient(180deg, rgba(243, 241, 233, 0.9), #f7f5ee);
    box-sizing: border-box;
}

.about-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.about h2 {
    font-size: clamp(1.9rem, 2.8vw, 2.5rem);
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: var(--primary);
    max-width: 1020px;
}

.about-lead {
    font-size: 1.06rem;
    line-height: 1.85;
    color: var(--tertiary);
    margin: 0 0 34px 0;
    max-width: 1020px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.about-point {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(48, 92, 66, 0.12);
    border-radius: 14px;
    padding: 18px 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-point:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(7, 46, 27, 0.08);
    border-color: rgba(48, 92, 66, 0.24);
}

.about-point h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: var(--primary);
}

.about-point p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--tertiary);
}

.about-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.pillar {
    background: #ffffff;
    border: 1px solid rgba(48, 92, 66, 0.22);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--secondary);
    transition: all 0.2s ease;
}

.pillar:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ── Product section ─────────────────────────────────────── */
.product {
    width: 100%;
    padding: 100px 24px;
    background: #f1efe6;
    box-sizing: border-box;
}

.product-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.section-heading {
    font-size: clamp(1.9rem, 2.8vw, 2.4rem);
    line-height: 1.2;
    margin: 0 0 10px 0;
    color: var(--primary);
}

.section-intro {
    font-size: 1.02rem;
    color: var(--tertiary);
    margin-bottom: 36px;
    max-width: 680px;
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(48, 92, 66, 0.14);
    padding: 22px 20px 18px 20px;
    display: flex;
    flex-direction: column;
    min-height: 140px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(7, 46, 27, 0.10);
    border-color: rgba(48, 92, 66, 0.24);
}

.product-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.product-card-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    background: rgba(48, 92, 66, 0.10);
    border-radius: 999px;
    padding: 4px 9px;
    line-height: 1;
}

.product-card h3 {
    margin: 0;
    font-size: 1.02rem;
    color: var(--primary);
}

.product-card p {
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--tertiary);
    flex: 1;
}

.product-card-tag {
    align-self: flex-start;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--secondary);
    background: rgba(48, 92, 66, 0.08);
    border-radius: 999px;
    padding: 6px 10px;
}

/* ── Contact section ─────────────────────────────────────── */
.contact {
    width: 100%;
    padding: 96px 24px;
    background: linear-gradient(135deg, #234A35 0%, #305C42 50%, #3E6E50 100%);
    box-sizing: border-box;
}

.contact-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.contact-eyebrow {
    color: #d8e6dd;
    background: rgba(255, 255, 255, 0.16);
}

.contact h2 {
    font-size: clamp(1.9rem, 2.7vw, 2.4rem);
    line-height: 1.2;
    color: #F7F5EE;
    margin: 0 0 14px 0;
}

.contact p {
    margin: 0 auto 30px auto;
    max-width: 640px;
    font-size: 1.02rem;
    line-height: 1.75;
    color: rgba(247, 245, 238, 0.88);
}

.contact-actions {
    display: flex;
    justify-content: center;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F7F5EE;
    color: #234A35;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 12px 26px;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.contact-btn:hover {
    transform: translateY(-3px);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 980px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .product-cards {
        grid-template-columns: 1fr;
    }

    .about, .product, .contact {
        padding-top: 76px;
        padding-bottom: 76px;
    }
}

@media (max-width: 600px) {
    .about, .product, .contact {
        padding-left: 16px;
        padding-right: 16px;
    }

    .about-lead,
    .section-intro,
    .contact p {
        font-size: 0.97rem;
    }
}


.welcome-footer {
    background: #f1efe6;
    /* color: #789f86; */
    color: #305C42;
    text-align: center;
    padding: 18px 0 12px 0;
    font-size: 1rem;
    border-top: 1px solid var(--gray);
    margin-top: auto;
}
@media (max-width: 900px) {
    .welcome-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 18px 18px 10px 18px;
    }
    .welcome-main {
        padding: 0 0 24px 0;
    }
    .features {
        padding: 0 8px;
    }
    .product-cards {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .welcome-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 6vw 8px 6vw;
    }
    .logo-row {
        gap: 8px;
    }
    .welcome-title {
        font-size: 1.3rem;
    }
    .welcome-nav {
        gap: 16px;
    }
    .login-btn, .get-started-btn {
        padding: 10px 18px;
        font-size: 1rem;
    }
    .hero {
        margin: 32px 0 24px 0;
        max-width: 98vw;
    }
    .features {
        max-width: 100vw;
    }
    .feature-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
