:root {
    --forest: #087A4B;
    --dark: #063B27;
    --emerald: #16A66A;
    --navy: #082D5E;
    --soft: #F1F8F3;
    --text: #26352D;
    --muted: #6B7A72;
    --border: #E1EAE3
}

* {
    box-sizing: border-box
}

body {
    font-family: Inter, system-ui, sans-serif;
    color: var(--text);
    background: #fff
}

a {
    text-decoration: none
}

.brand-logo {
    width: 142px;
    height: 54px;
    object-fit: contain
}

.navbar {
    z-index: 20
}

.nav-link {
    font-size: .99rem;
    font-weight: 600;
    color: #33483b !important
}

.nav-link:hover {
    color: var(--forest) !important
}

.btn-green {
    background: var(--forest);
    color: #fff;
    border: 1px solid var(--forest);
    border-radius: 999px;
    padding: .7rem 1.2rem;
    font-weight: 700
}

.btn-green:hover {
    background: var(--dark);
    color: #fff
}

.btn-outline-green {
    border: 1px solid #a9cbb6;
    color: var(--forest);
    border-radius: 999px;
    padding: .65rem 1.15rem;
    font-weight: 700
}

.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(3, 43, 28, .88), rgba(3, 43, 28, .30)), url('https://images.unsplash.com/photo-1789543633775-a50938e380f2?q=80&w=2977&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=NHwxMjA3fDA%3D') center/cover
}

.hero-content {
    padding: 100px 0;
    max-width: 700px;
    animation: rise .8s ease both
}

.eyebrow {
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #61c99a;
    font-weight: 800
}

.hero h1 {
    font-size: clamp(2.7rem, 5vw, 5rem);
    line-height: 1.04;
    letter-spacing: -.05em;
    font-weight: 800;
    margin: 1rem 0
}

.hero p {
    max-width: 580px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e4f0e7
}

.section {
    padding: 84px 0
}

.section-soft {
    background: var(--soft)
}

.section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -.04em;
    font-weight: 800;
    color: var(--dark)
}

.section-copy {
    color: var(--muted);
    line-height: 1.8;
    max-width: 650px
}

.service-card,
.project-card,
.content-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(7, 54, 31, .05);
    transition: transform .25s, box-shadow .25s
}

.service-card:hover,
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(7, 54, 31, .12)
}

.service-img {
    height: 190px;
    width: 100%;
    object-fit: cover
}

.card-body-custom {
    padding: 24px
}

.icon-circle {
    height: 48px;
    width: 48px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: #e0f4e7;
    color: var(--forest);
    font-size: 1.35rem
}

.about-panel {
    background: linear-gradient(120deg, #052e20, #0a5737);
    color: #fff;
    border-radius: 24px;
    overflow: hidden
}

.about-panel .section-title {
    color: #fff
}

.stat-card {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--forest)
}

.site-footer {
    background: #062d20;
    color: #fff
}

.site-footer h6 {
    font-weight: 800;
    margin-bottom: 1rem
}

.site-footer a {
    display: block;
    color: #c7ded0;
    margin: .65rem 0;
    font-size: .9rem
}

.footer-logo {
    width: 160px;
    max-height: 80px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 5px
}

.page-hero {
    padding: 65px 0;
    background: linear-gradient(120deg, #e9f6ed, #f8fbf8)
}

.page-hero h1 {
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -.04em
}

.auth-page {
    min-height: 100vh;
    background: linear-gradient(130deg, rgba(3, 43, 28, .82), rgba(8, 45, 94, .25)), url('https://images.unsplash.com/photo-1789543633775-a50938e380f2?q=80&w=2977&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=NHwxMjA3fDA%3D') center/cover;
    display: grid;
    place-items: center;
    padding: 30px
}

.auth-card {
    width: min(100%, 470px);
    padding: 34px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 90px #001b1070
}

.auth-logo {
    display: block;
    width: 170px;
    height: 76px;
    object-fit: contain;
    margin: 0 auto 20px
}

.form-control,
.form-select {
    border-radius: 11px;
    padding: .75rem .9rem;
    border-color: #dce8df
}

.form-control:focus,
.form-select:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 .2rem #16a66a20
}

.app-shell {
    display: flex;
    min-height: calc(100vh - 0px);
    background: #f6faf7
}

.sidebar {
    width: 255px;
    flex-shrink: 0;
    background: #062e22;
    color: #fff;
    padding: 20px 14px
}

.sidebar-brand img {
    width: 175px;
    height: 72px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
    padding: 6px
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 8px;
    border-bottom: 1px solid #ffffff20
}

.sidebar-user strong,
.sidebar-user small {
    display: block
}

.sidebar-user small {
    color: #a6c8b4;
    margin-top: 4px
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #147b50;
    display: grid;
    place-items: center;
    font-weight: 800
}

.side-nav {
    display: grid;
    gap: 5px;
    padding-top: 20px
}

.side-nav a {
    color: #c9ded1;
    padding: 12px;
    border-radius: 10px;
    font-size: .9rem
}

.side-nav a:hover,
.side-nav a:focus {
    background: #0e6944;
    color: #fff
}

.side-nav i {
    margin-right: 10px
}

.dashboard-main {
    flex: 1;
    min-width: 0;
    padding: 28px clamp(16px, 3vw, 42px)
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px
}

.dashboard-top h1 {
    font-size: clamp(1.7rem, 2.5vw, 2.3rem);
    font-weight: 800;
    color: var(--dark);
    margin: .25rem 0
}

.top-user {
    font-size: .85rem;
    color: var(--muted)
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #16a66a;
    border-radius: 50%;
    margin-right: 6px
}

.metric-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    height: 100%;
    box-shadow: 0 5px 20px #063b2708
}

.metric-card .metric-label {
    font-size: .86rem;
    color: var(--muted)
}

.metric-card .metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-top: 10px
}

.metric-icon {
    float: right;
    color: var(--forest);
    background: #e5f5eb;
    border-radius: 12px;
    padding: 10px
}

.table-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    overflow-x: auto
}

.table {
    vertical-align: middle
}

.table thead th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #718178;
    border-bottom-color: var(--border)
}

.content-card {
    padding: 24px
}

.empty-state {
    padding: 42px;
    text-align: center;
    color: var(--muted)
}

.empty-state i {
    font-size: 2rem;
    color: var(--forest)
}

.leaf-decoration {
    color: #9bc9aa;
    font-size: 2rem
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media(max-width:991px) {
    .hero {
        min-height: 520px
    }

    .section {
        padding: 60px 0
    }

    .app-shell {
        display: block
    }

    .sidebar {
        width: 100%;
        padding: 12px;
        position: relative
    }

    .sidebar-brand img {
        height: 50px;
        width: 120px
    }

    .sidebar-user {
        display: none
    }

    .side-nav {
        display: flex;
        overflow: auto;
        padding: 10px 0 0
    }

    .side-nav a {
        white-space: nowrap
    }

    .dashboard-main {
        padding: 20px 16px
    }

    .dashboard-top {
        align-items: flex-start;
        flex-direction: column
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important
    }
}

/* SGPL visual refresh: closer to the approved green corporate reference */
:root {
    --forest: #087a4b;
    --dark: #063b27;
    --emerald: #16a66a;
    --navy: #082d5e;
    --soft: #f1f8f3;
    --text: #26352d;
    --muted: #6b7a72;
    --border: #e1eae3
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

body {
    letter-spacing: -.008em
}

.navbar {
    min-height: 78px;
    box-shadow: 0 3px 18px rgba(6, 59, 39, .035)
}

.brand-logo {
    width: 150px;
    height: 58px
}

.nav-link {
    padding: .65rem .7rem !important
}

.hero {
    min-height: 590px;
    background-image: linear-gradient(90deg, rgba(3, 43, 28, .92) 0%, rgba(3, 43, 28, .78) 43%, rgba(3, 43, 28, .18) 100%), url('https://i.pinimg.com/736x/43/be/f0/43bef099016861d34222c7793c70b9b7.jpg');
    background-position: center;
    background-size: cover
}



/* Hero image uses a reliable environmental photograph layered into the background. */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px
}

.hero h1 {
    max-width: 650px;
    text-wrap: balance
}

.hero p {
    font-size: 1.04rem
}

.section {
    padding: 76px 0
}

.section-soft {
    background: linear-gradient(180deg, #f3f9f4, #fff)
}

.section-title {
    line-height: 1.12
}

.service-card,
.project-card,
.content-card,
.metric-card,
.table-card,
.stat-card {
    border-radius: 15px;
    box-shadow: 0 5px 22px rgba(6, 59, 39, .055)
}

.service-card:hover,
.project-card:hover {
    transform: translateY(-4px)
}

.service-img {
    height: 174px
}

.card-body-custom {
    padding: 20px
}

.about-panel {
    border-radius: 18px;
    background: linear-gradient(115deg, #052e20, #0b5738)
}

.about-panel .stat-card {
    border: 1px solid rgba(255, 255, 255, .5);
    box-shadow: none
}

.btn-green,
.btn-outline-green {
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease
}

.btn-green:hover,
.btn-outline-green:hover {
    transform: translateY(-1px)
}

.page-hero {
    padding: 62px 0;
    background: linear-gradient(115deg, #edf8ef, #fbfdfb);
    border-bottom: 1px solid #e5eee7
}

.page-hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.4rem)
}

.auth-page {
    background-image: linear-gradient(130deg, rgba(3, 43, 28, .86), rgba(8, 45, 94, .28)), url('https://images.unsplash.com/photo-1497250681960-ef046c08a56e?q=80&w=1287&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=NHwxMjA3fDA%3D')
}

.auth-card {
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 20px
}

.app-shell {
    background: #f5f9f6
}

.sidebar {
    background: linear-gradient(180deg, #063b2a, #042b20)
}

.sidebar-brand img {
    background: #fff
}

.side-nav a {
    transition: background .15s, color .15s
}

.side-nav a:hover,
.side-nav a:focus {
    background: #0c7148
}

.dashboard-main {
    padding-top: 30px
}

.dashboard-top {
    padding-bottom: 18px;
    border-bottom: 1px solid #e3ece5
}

.metric-card {
    border-radius: 14px
}

.metric-card .metric-value {
    letter-spacing: -.04em
}

.table-card {
    border-radius: 14px
}

.table> :not(caption)>*>* {
    padding: .85rem .75rem
}

.site-footer {
    background: linear-gradient(120deg, #052e20, #063b27)
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #063b27;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #e9fff0;
    transition: opacity .45s, visibility .45s
}

.preloader img {
    width: 190px;
    height: 100px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 22px
}

.preloader p {
    margin-top: 14px;
    font-size: .92rem;
    color: #cce5d5
}

.loader-ring {
    width: 43px;
    height: 43px;
    border: 3px solid #ffffff30;
    border-top-color: #37d98b;
    border-radius: 50%;
    animation: sgplspin .8s linear infinite
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden
}

@keyframes sgplspin {
    to {
        transform: rotate(360deg)
    }
}

.modal-content {
    box-shadow: 0 25px 90px rgba(0, 30, 15, .2)
}

.form-label {
    font-weight: 650;
    color: #34483c
}

.form-control,
.form-select {
    min-height: 45px
}

.empty-state {
    background: #fff;
    border: 1px dashed #d5e5d9;
    border-radius: 15px
}

.badge {
    font-weight: 650;
    letter-spacing: .01em
}

@media(max-width:991px) {
    .hero:after {
        display: none
    }

    .hero {
        min-height: 500px;
        background-position: 58% center
    }

    .hero-content {
        padding: 76px 0
    }

    .section {
        padding: 58px 0
    }

    .navbar-collapse {
        padding: 12px 0 18px
    }

    .nav-link {
        padding: .55rem .2rem !important
    }

    .sidebar {
        position: relative
    }

    .dashboard-main {
        padding: 22px 16px
    }
}

@media(max-width:575px) {
    .brand-logo {
        width: 125px;
        height: 50px
    }

    .hero {
        min-height: 520px
    }

    .hero h1 {
        font-size: clamp(2.45rem, 12vw, 3.5rem)
    }

    .hero-content {
        padding: 60px 0
    }

    .section-title {
        font-size: 2rem
    }

    .auth-page {
        padding: 16px
    }

    .auth-card {
        padding: 25px 20px
    }

    .card-body-custom {
        padding: 18px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .loader-ring {
        animation: none
    }
}