/* Visual theme only. Rich emerald actions, crisp mint surfaces, and jewel accents. */
:root {
    color-scheme: light;
    --bg: #edf7f1 !important;
    --bg-dark: #edf7f1 !important;
    --ink: #edf7f1 !important;
    --ink-2: #d8eee1 !important;
    --card: #fff !important;
    --sidebar: #cde9d8 !important;
    --text: #142e25 !important;
    --text-main: #142e25 !important;
    --text-muted: #496359 !important;
    --text-dim: #496359 !important;
    --muted: #496359 !important;
    --border: #bcd9ca !important;
    --accent: #08734f !important;
    --accent2: #5f48aa !important;
    --accent-2: #5f48aa !important;
    --accent-blue: #3759a3 !important;
    --accent-cyan: #087e96 !important;
    --glass: #fff !important;
    --glass-strong: #dcefe4 !important;
    --glass-border: #bcd9ca !important;
    --line: #bcd9ca !important;
    --line-soft: #dcebe2 !important;
    --gold: #a15c0c !important;
    --gold-2: #a15c0c !important;
    --teal: #007d69 !important;
    --teal-2: #007d69 !important;
    --coral: #bd3e57 !important;
    --shadow: 0 14px 38px rgba(13, 77, 51, .12) !important;
    --bs-body-color: #142e25;
    --bs-body-bg: #edf7f1;
    --bs-border-color: #bcd9ca;
    --bs-primary: #08734f;
    --bs-primary-rgb: 8, 115, 79;
}
body { color: var(--text); }
.sidebar, .mobile-header {
    background: linear-gradient(160deg, #d7f0df, #b9dec9);
    border-color: #a7ceb8;
    box-shadow: 4px 0 24px rgba(13, 77, 51, .06);
}
.sidebar ul li:hover, .sidebar ul li.active,
.submenu li a:hover, .submenu li a.active,
.team-item.active > .team-menu {
    background: #08734f;
    color: #fff;
    border-left-color: #63dba0;
}
.sidebar ul li.active a, .sidebar ul li:hover a { color: inherit; }
.card, .glass-card, .login-container, .modal-content, body .glass {
    background-color: #fff;
    border-color: #bcd9ca;
    box-shadow: 0 10px 30px rgba(13, 77, 51, .10);
}
body .glass:hover { border-color: #79b696; box-shadow: 0 16px 38px rgba(13, 77, 51, .15); }
.user-info { background: #e8defa; color: #5b3497 !important; }
/* Explicit foreground/background pairs preserve contrast in every action state. */
body .btn-primary, body .hgnl-btn-primary, body .hgnl-btn,
body button.btn:not(.btn-danger):not(.btn-warning):not(.btn-outline):not(.btn-secondary):not(.btn-ghost),
body .btn-view, body .toggle-btn {
    background: linear-gradient(135deg, #109467, #056344) !important;
    border-color: #08734f !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(8, 115, 79, .23);
    transition: background .2s, box-shadow .2s, transform .2s;
}
body .btn-primary:hover, body .btn-primary:focus-visible,
body .hgnl-btn-primary:hover, body .hgnl-btn-primary:focus-visible,
body .hgnl-btn:hover, body .hgnl-btn:focus-visible,
body button.btn:not(.btn-danger):not(.btn-warning):not(.btn-outline):not(.btn-secondary):not(.btn-ghost):hover,
body .btn-view:hover {
    background: linear-gradient(135deg, #087b54, #034e37) !important;
    border-color: #034e37 !important;
    color: #fff !important;
    box-shadow: 0 9px 24px rgba(8, 115, 79, .30);
}
body .btn-ghost, body .btn-outline, body .btn-secondary, body .hgnl-btn-secondary {
    background: #fff !important;
    border: 2px solid #08734f !important;
    color: #066344 !important;
    box-shadow: none;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
body .btn-ghost:hover, body .btn-outline:hover, body .btn-secondary:hover,
body .hgnl-btn-secondary:hover,
body .btn-ghost:focus-visible, body .btn-outline:focus-visible,
body .btn-secondary:focus-visible, body .hgnl-btn-secondary:focus-visible {
    background: #08734f !important;
    border-color: #08734f !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(8, 115, 79, .20);
}
body .btn-danger { background: #b9304b !important; color: #fff !important; }
body .btn-danger:hover, body .btn-danger:focus-visible { background: #922039 !important; color: #fff !important; }
body .btn-warning { background: #f5ce72 !important; color: #513507 !important; }
body .btn-warning:hover, body .btn-warning:focus-visible { background: #e9b94e !important; color: #513507 !important; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
select, textarea, .form-control, .form-select {
    color: #142e25;
    background-color: #fff;
    border-color: #a9cbbb;
    color-scheme: light;
}
input::placeholder, textarea::placeholder { color: #60776c; opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: #08734f; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: none !important; }
:focus-visible { outline: 3px solid #218e65; outline-offset: 3px; }
body input:focus, body select:focus, body textarea:focus {
    border-color: #08734f;
    box-shadow: 0 0 0 4px rgba(8, 115, 79, .12);
}
th { background-color: #d8eee1; color: #194c36; }
.table { --bs-table-color: #142e25; --bs-table-bg: #fff; --bs-table-border-color: #bcd9ca; }
.custom-row label, div#passwordModal h2 { color: #142e25 !important; }
::selection { background: #97ddb5; color: #142e25; }
.hero-banner {
    background: radial-gradient(ellipse at 5% 20%, #aee4bf, transparent 60%),
                radial-gradient(ellipse at 100% 80%, #dcd1f5, transparent 55%), #edf7f1;
}
.hero-content h1 { color: #123c2a; }
.hero-content h1 span { color: #08734f; }
.hero-eyebrow { color: #5f48aa; }
.hero-marquee { background: #bfe5cd; border-color: #95c9aa; }
.home-products { background: #f7fcf9; }
.testimonial-section { background: #e8e1f4; }
body .tile:nth-child(4n + 1) { background: #ccebd7; border-color: #9acaaa; }
body .tile:nth-child(4n + 2) { background: #dce7fb; border-color: #b3c8ec; }
body .tile:nth-child(4n + 3) { background: #e7dcfa; border-color: #ccbae9; }
body .tile:nth-child(4n) { background: #fce5b5; border-color: #e6c78c; }
body .tile:hover { box-shadow: 0 8px 20px rgba(13, 77, 51, .12); }
/* Login: strong branding on a bright card, with a framed green backdrop. */
body .hgnl-login-wrapper {
    background: radial-gradient(ellipse at 12% 15%, #8dd9ac, transparent 55%),
                radial-gradient(ellipse at 95% 90%, #c6b8ec, transparent 50%),
                linear-gradient(135deg, #ddf4e5, #f2f8f4 55%, #e9e3f5);
    padding: 48px 0;
}
body .hgnl-login-card {
    background: linear-gradient(145deg, #fff 75%, #f1faf5);
    border: 1px solid #a5cdb6;
    border-top: 6px solid #08734f;
    border-radius: 24px;
    box-shadow: 0 24px 65px rgba(16, 75, 48, .18), 0 2px 6px rgba(16, 75, 48, .06);
}
body .login-header { border-bottom-color: #c9e1d2; }
body .login-logo {
    border: 1px solid #c5e2cf;
    box-shadow: 0 6px 18px rgba(8, 115, 79, .10);
    border-radius: 16px;
}
body .brand-text h1 { color: #123c2a; }
body .brand-accent, body .forgot-link { color: #08734f; }
body .login-field label { color: #264b3a; }
body .login-input { background: #f8fcf9; border: 1px solid #a9cbbb; border-radius: 12px; }
body .hgnl-btn-primary, body .hgnl-btn-secondary { border-radius: 12px; letter-spacing: .5px; }
@media (prefers-reduced-motion: reduce) {
    body .btn, body .hgnl-btn-primary, body .hgnl-btn-secondary, body .hgnl-btn { transition: none; }
}

/* Homepage product collection: editorial cards with progressive entrance motion. */
.home-products {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 96px 0 104px;
    text-align: center;
    background: linear-gradient(155deg, #f5fcf7, #e2f3e9 55%, #f2edf9);
    border-top: 1px solid #c5e3d0;
    border-bottom: 1px solid #c5e3d0;
}
.home-products::before, .home-products::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, #99dcb066, transparent 68%);
    animation: hp-ambient 12s ease-in-out infinite alternate;
}
.home-products::before { top: -170px; left: -140px; }
.home-products::after {
    right: -180px;
    bottom: 5%;
    background: radial-gradient(circle, #bba0e650, transparent 68%);
    animation-delay: -6s;
}
.home-products .container { position: relative; max-width: 1160px; }
.home-products .hp-heading { max-width: 820px; margin: 0 auto 48px; }
.home-products .hp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid #add5bd;
    background: #ffffffb3;
    color: #086344;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 22px;
}
.home-products .hp-spark { font-size: 20px; color: #08734f; animation: hp-spark 8s ease-in-out infinite; }
.home-products .hp-title {
    margin: 0 0 18px;
    color: #123c2a;
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -1.8px;
}
.home-products .hp-title span {
    color: #08734f;
    background: linear-gradient(100deg, #08734f, #148366 50%, #684aab);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.home-products .hp-intro { margin: 0 auto 18px; max-width: 590px; color: #496359; font-size: 16px; line-height: 1.7; }
.home-products .hp-hint { display: inline-flex; align-items: center; gap: 8px; color: #586679; font-size: 12px; }
.home-products .hp-hint > span { color: #08734f; font-size: 20px; }
.home-products .hp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.home-products .hp-card {
    --hp-tint: #e1f3e8;
    --hp-tone: #08734f;
    position: relative;
    display: flex;
    flex-direction: column;
    width: auto;
    min-width: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #c5dfd0;
    border-radius: 24px;
    text-decoration: none;
    color: #142e25;
    box-shadow: 0 6px 20px rgba(15, 72, 45, .06);
    transition: transform .35s cubic-bezier(.2,.75,.3,1), box-shadow .35s, border-color .35s;
}
.home-products .hp-card:nth-child(3n + 2) { --hp-tint: #eee8f8; --hp-tone: #65469b; }
.home-products .hp-card:nth-child(3n) { --hp-tint: #fff0d5; --hp-tone: #95600e; }
.home-products .hp-img {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1.18;
    overflow: hidden;
    background: var(--hp-tint);
    border: none;
    border-radius: 17px;
    box-shadow: none;
}
.home-products .hp-img::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 25%, #ffffff80 45%, transparent 65%);
    transform: translateX(-150%);
}
.home-products .hp-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .65s cubic-bezier(.2,.75,.3,1);
}
.home-products .hp-number {
    position: absolute;
    z-index: 1;
    left: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ffffffb3;
    border-radius: 50%;
    background: #ffffffdf;
    color: var(--hp-tone);
    font-size: 11px;
    font-weight: 800;
}
.home-products .hp-image-arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--hp-tone);
    box-shadow: 0 4px 12px #123c2a15;
    font-size: 23px;
    transition: transform .35s, background .35s, color .35s;
}
.home-products .hp-details { display: flex; flex-direction: column; flex: 1; padding: 22px 12px 12px; text-align: left; }
.home-products .hp-card-label { color: var(--hp-tone); font-size: 9px; font-weight: 800; letter-spacing: 1.7px; margin-bottom: 9px; }
.home-products .hp-name { margin: 0 0 20px; padding: 0; background: none; color: #193d2d; font-size: 19px; line-height: 1.35; font-weight: 750; text-transform: none; letter-spacing: -.3px; }
.home-products .hp-wa {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 12px 10px;
    border: 1px solid #bedecb;
    border-radius: 11px;
    background: #edf8f1;
    color: #086344;
    font-size: 12px;
    font-weight: 700;
    transition: background .25s, color .25s, border-color .25s;
}
.home-products .hp-wa svg { width: 20px; height: 20px; flex-shrink: 0; }
.home-products .hp-cta-arrow { margin-left: auto; font-size: 19px; }
.home-products .hp-card:focus-visible { outline: 3px solid #08734f; outline-offset: 5px; }
.home-products .hp-card:is(:hover, :focus-visible) { border-color: #76b992; box-shadow: 0 18px 40px rgba(15, 72, 45, .15); }
.home-products .hp-card:is(:hover, :focus-visible) .hp-wa { background: #08734f; color: #fff; border-color: #08734f; text-decoration: none; }
.home-products .hp-card:is(:hover, :focus-visible) .hp-image-arrow { background: var(--hp-tone); color: #fff; transform: rotate(8deg); }
@media (hover: hover) and (pointer: fine) {
    .home-products .hp-card:hover { transform: translateY(-9px); }
    .home-products .hp-card:hover .hp-img img { transform: scale(1.06) rotate(-2deg); }
    .home-products .hp-card:hover .hp-img::after { animation: hp-shine .85s ease; }
}
.home-products .hp-entered { animation: hp-arrive .75s cubic-bezier(.2,.75,.3,1) both; }
.home-products .hp-card:nth-child(3n + 2).hp-entered { animation-delay: .1s; }
.home-products .hp-card:nth-child(3n).hp-entered { animation-delay: .2s; }
@keyframes hp-arrive { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
@keyframes hp-ambient { to { transform: translate(60px, 50px) scale(1.15); } }
@keyframes hp-spark { 0%, 70%, 100% { transform: rotate(0); } 85% { transform: rotate(180deg); } }
@keyframes hp-shine { to { transform: translateX(150%); } }
@media (max-width: 900px) {
    .home-products .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 560px) {
    .home-products { padding: 64px 0; }
    .home-products .hp-heading { margin-bottom: 32px; }
    .home-products .hp-title { letter-spacing: -1px; }
    .home-products .hp-intro { font-size: 14px; }
    .home-products .hp-grid { gap: 12px; }
    .home-products .hp-card { padding: 6px; border-radius: 17px; }
    .home-products .hp-img { border-radius: 12px; aspect-ratio: 1; }
    .home-products .hp-details { padding: 15px 5px 5px; }
    .home-products .hp-card-label { font-size: 8px; letter-spacing: .8px; }
    .home-products .hp-name { font-size: 15px; margin-bottom: 15px; }
    .home-products .hp-wa { padding: 10px 7px; gap: 5px; font-size: 10px; }
    .home-products .hp-wa svg { width: 16px; height: 16px; }
    .home-products .hp-cta-arrow { display: none; }
    .home-products .hp-number { width: 26px; height: 26px; left: 8px; top: 8px; }
    .home-products .hp-image-arrow { width: 28px; height: 28px; right: 8px; bottom: 8px; font-size: 18px; }
    .home-products .hp-hint { font-size: 11px; }
}
@media (max-width: 350px) { .home-products .hp-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
    .home-products *, .home-products::before, .home-products::after { animation: none !important; transition: none !important; }
}

/* Homepage banner (hero-banner--custom)
   One image (1673 x 940; its left third is empty backdrop, trimmed via object-fit).
   - >= 601px  two columns: copy | framed image card, balanced widths.
   - <= 600px  stacked: copy, then the image card.                                  */
.hero-banner--custom { padding-top: 0; background: #f3f7f1; }
.hero-banner--custom .hero-stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(60% 80% at 0% 0%, #cfeedb 0%, transparent 60%),
        radial-gradient(50% 70% at 100% 100%, #e7def7 0%, transparent 60%),
        #f3f7f1;
}
.hero-banner--custom .hero-grid {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(24px, 3.6vw, 56px);
    min-height: 0;
    padding-top: clamp(28px, 4.2vw, 64px);
    padding-bottom: clamp(28px, 4.2vw, 64px);
}
.hero-banner--custom .hero-content { width: auto; min-width: 0; max-width: 600px; }
.hero-banner--custom .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffffffd9;
    border: 1px solid #aacfb8;
    color: #086344;
    font-size: clamp(11px, 1vw, 13px);
    letter-spacing: .3px;
}
.hero-banner--custom .hero-content h1 {
    font-size: clamp(26px, 3.4vw, 50px);
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: clamp(14px, 1.6vw, 24px) 0 clamp(12px, 1.4vw, 20px);
    color: #123c2a;
}
.hero-banner--custom .hero-content p {
    color: #33584a;
    font-size: clamp(14px, 1.35vw, 18px);
    line-height: 1.65;
    max-width: 540px;
}
.hero-banner--custom .hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(18px, 2.4vw, 32px);
}
.hero-banner--custom .hero-actions .btn {
    justify-content: center;
    white-space: nowrap;
    padding: clamp(10px, 1vw, 14px) clamp(16px, 1.8vw, 26px);
    font-size: clamp(14px, 1.1vw, 16px);
}
.hero-banner--custom .hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: clamp(18px, 2.4vw, 32px) 0 0;
    padding: 0;
    list-style: none;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 600;
    color: #33584a;
}
.hero-banner--custom .hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-banner--custom .hero-trust__icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #08734f;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}
.hero-banner--custom .hero-artwork {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: none;
    border-radius: clamp(16px, 1.8vw, 26px);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(13, 77, 51, .06), 0 24px 60px rgba(13, 77, 51, .14);
    outline: 1px solid rgba(13, 77, 51, .06);
}
.hero-banner--custom .hero-artwork img {
    display: block;
    position: static;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 1250 / 940;
    object-fit: cover;
    object-position: right center;
}
.hero-banner--custom .hero-marquee { margin-top: 0; }

/* Landscape phones: short screens, keep the whole hero compact */
@media (max-height: 500px) and (orientation: landscape) and (min-width: 601px) {
    .hero-banner--custom .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding-top: 18px; padding-bottom: 18px; gap: 24px; }
    .hero-banner--custom .hero-content p { font-size: 13px; line-height: 1.55; }
    .hero-banner--custom .hero-content h1 { font-size: clamp(24px, 3.6vw, 32px); margin: 10px 0; }
    .hero-banner--custom .hero-eyebrow { padding: 6px 12px; }
    .hero-banner--custom .hero-actions { margin-top: 14px; }
    .hero-banner--custom .hero-actions .btn { padding: 10px 14px; font-size: 14px; }
    .hero-banner--custom .hero-trust { display: none; }
    .hero-banner--custom .hero-artwork img { max-height: 64vh; }
}

/* Phones: stacked */
@media (max-width: 600px) {
    .hero-banner--custom .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
    .hero-banner--custom .hero-content { max-width: none; }
    .hero-banner--custom .hero-content h1 { font-size: clamp(27px, 8.2vw, 36px); margin: 16px 0 12px; }
    .hero-banner--custom .hero-content p { font-size: 15px; }
    .hero-banner--custom .hero-actions { margin-top: 20px; }
    .hero-banner--custom .hero-trust { margin-top: 18px; gap: 8px 14px; }
    .hero-banner--custom .hero-artwork { max-width: none; border-radius: 16px; }
    .hero-banner--custom .hero-artwork img { aspect-ratio: 1180 / 940; }
}
@media (max-width: 480px) {
    .hero-banner--custom .hero-content h1 br { display: none; }
    .hero-banner--custom .hero-actions { flex-direction: column; gap: 10px; }
    .hero-banner--custom .hero-actions .btn { width: 100%; padding: 13px 16px; font-size: 15px; }
}
