/* ======================================================================
   SENSTECH — GREEN TECH HEADER & HERO OVERRIDES
   Visual direction: Deep Emerald · Teal Glow · Lime Accent

   Load this file AFTER the existing style.css / header / hero styles.
   Existing Blade structure and component class names are preserved.
   ====================================================================== */

:root {
    --st-green-tech-deep: #052F25;
    --st-green-tech-dark: #063D2E;
    --st-green-tech-main: #0F6A4A;
    --st-green-tech-hover: #0B543B;
    --st-green-tech-teal: #14B8A6;
    --st-green-tech-lime: #A3E635;
    --st-green-tech-white: #F7FFF9;
}


/* ======================================================================
   1. HEADER — FULL EMERALD NAVIGATION
   ====================================================================== */

#main-header.senstech-header {
    --st-nav-green: var(--st-green-tech-main);
    --st-nav-green-hover: var(--st-green-tech-hover);
    --st-nav-teal: var(--st-green-tech-lime);
    --st-nav-text: rgba(247, 255, 249, 0.92);

    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;

    width: 100%;

    /*
       IMPORTANT:
       Keep the header transparent at the top of the page.
       The hero background is positioned underneath it, so both areas
       read as one continuous emerald surface with no horizontal seam.
    */
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;

    -webkit-backdrop-filter: none;
    backdrop-filter: none;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        backdrop-filter 0.25s ease;
}

/* After scrolling, restore a subtle dark-glass navigation surface. */
#main-header.senstech-header.is-scrolled,
#main-header.senstech-header.mobile-menu-open {
    background: rgba(5, 47, 37, 0.92) !important;
    border-bottom: 1px solid rgba(220, 255, 235, 0.12) !important;
    box-shadow: 0 10px 30px rgba(2, 24, 17, 0.18) !important;

    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

#main-header.senstech-header .container {
    height: 100%;
}

#main-header .header-inner {
    min-height: 84px;
    gap: clamp(18px, 2vw, 32px);
}

#main-header .header-logo img,
#main-header .senstech-mobile-logo {
    display: block;
    height: auto;
    object-fit: contain;
}

#main-header .header-logo img {
    width: 150px;
}


/* Desktop navigation links */

#main-header.senstech-header .header-nav .nav-link {
    color: rgba(247, 255, 249, 0.9);
    font-weight: 600;
    transition: color 0.2s ease;
}

#main-header.senstech-header .header-nav .nav-link:hover,
#main-header.senstech-header .header-nav .nav-link:focus-visible,
#main-header.senstech-header .header-nav .nav-link.show {
    color: var(--st-green-tech-lime);
}

#main-header.senstech-header .header-nav .nav-link::before {
    height: 2px;
    background: var(--st-green-tech-lime);
}

#main-header.senstech-header .header-nav .dropdown-toggle::after {
    border-top-color: currentColor;
}


/* Dropdown surfaces stay light for readability. */

#main-header.senstech-header .header-nav .dropdown-menu {
    margin-top: 14px;
    padding: 8px;
    border: 1px solid rgba(15, 106, 74, 0.14);
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0 18px 42px rgba(2, 24, 17, 0.22);
}

#main-header.senstech-header .header-nav .dropdown-item {
    padding: 11px 12px;
    border-radius: 9px;
    color: #244336;
    font-size: 13.5px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#main-header.senstech-header .header-nav .dropdown-item:hover,
#main-header.senstech-header .header-nav .dropdown-item:focus {
    color: var(--st-green-tech-main);
    background: #ECFDF5;
}


/* Desktop CTA — lime is the high-contrast action color. */

#main-header.senstech-header .header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 12px 19px;
    border: 1px solid var(--st-green-tech-lime);
    border-radius: 999px;

    background: var(--st-green-tech-lime);
    color: #123322;

    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;

    box-shadow: 0 7px 20px rgba(163, 230, 53, 0.13);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#main-header.senstech-header .header-cta:hover,
#main-header.senstech-header .header-cta:focus-visible {
    border-color: #BEF264;
    background: #BEF264;
    color: #0B2E20;
    box-shadow: 0 10px 24px rgba(163, 230, 53, 0.2);
    transform: translateY(-1px);
}


/* ======================================================================
   2. MOBILE HEADER & MENU
   ====================================================================== */

#main-header .senstech-mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    width: 100%;
    min-height: 76px;
    padding: 10px 0;
    background: transparent;
}

#main-header .senstech-mobile-nav .navbar-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
}

#main-header .senstech-mobile-logo {
    width: 120px;
}

#main-header .senstech-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    width: 44px;
    height: 44px;
    padding: 0;

    border: 1px solid rgba(220, 255, 235, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;

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

#main-header .senstech-menu-toggle:hover,
#main-header .senstech-menu-toggle:focus-visible {
    border-color: rgba(190, 242, 100, 0.72);
    background: rgba(255, 255, 255, 0.14);
}

#main-header .senstech-menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 99px;
    background: #F7FFF9;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#main-header.mobile-menu-open .senstech-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#main-header.mobile-menu-open .senstech-menu-toggle span:nth-child(2) {
    opacity: 0;
}

#main-header.mobile-menu-open .senstech-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

#main-header .senstech-mobile-nav .navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    width: 100%;
}

#main-header .senstech-mobile-nav .navbar-collapse.show {
    margin-top: 8px;
    padding: 10px 12px 14px;
    border: 1px solid rgba(220, 255, 235, 0.15);
    border-radius: 16px;
    background: rgba(4, 43, 32, 0.98);
    box-shadow: 0 18px 36px rgba(0, 20, 13, 0.24);
}

#main-header .senstech-mobile-nav .navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

#main-header .senstech-mobile-nav .nav-item {
    width: 100%;
}

#main-header .senstech-mobile-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(247, 255, 249, 0.92);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    text-decoration: none;
    white-space: normal;
}

#main-header .senstech-mobile-nav .nav-link::before {
    display: none;
}

#main-header .senstech-mobile-nav .nav-link:hover,
#main-header .senstech-mobile-nav .nav-link:focus-visible,
#main-header .senstech-mobile-nav .nav-link.show {
    background: rgba(163, 230, 53, 0.1);
    color: var(--st-green-tech-lime);
}

#main-header .senstech-mobile-nav .dropdown-menu {
    position: static !important;
    inset: auto !important;
    float: none !important;
    transform: none !important;

    width: 100%;
    min-width: 0;
    margin: 0 0 8px;
    padding: 5px 8px 8px 14px;

    border: 1px solid rgba(220, 255, 235, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: none;
}

#main-header .senstech-mobile-nav .dropdown-item {
    display: block;
    padding: 11px 12px;
    border-radius: 8px;
    color: rgba(247, 255, 249, 0.82);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    white-space: normal;
}

#main-header .senstech-mobile-nav .dropdown-item:hover,
#main-header .senstech-mobile-nav .dropdown-item:focus {
    background: rgba(163, 230, 53, 0.1);
    color: var(--st-green-tech-lime);
}

#main-header .senstech-mobile-nav .mobile-cta-item {
    padding-top: 8px;
}

#main-header .senstech-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    width: 100%;
    padding: 13px 18px;
    border: 1px solid var(--st-green-tech-lime);
    border-radius: 999px;
    background: var(--st-green-tech-lime);
    color: #123322;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#main-header .senstech-mobile-cta:hover,
#main-header .senstech-mobile-cta:focus-visible {
    border-color: #BEF264;
    background: #BEF264;
    color: #0B2E20;
}


/* ======================================================================
   3. HERO — FULL GREEN MODERN TECH
   ====================================================================== */

.senstech-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;

    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    padding: clamp(132px, 15vh, 168px) 0 84px;

    color: var(--st-green-tech-white);
    background: linear-gradient(
        118deg,
        #052F25 0%,
        #064B36 48%,
        #0F6A4A 100%
    );
}

/* Ambient teal and lime light — subtle, diffused, and behind content. */
.senstech-hero::before {
    position: absolute;
    z-index: 0;
    inset: -16%;
    content: "";
    background:
        radial-gradient(
            ellipse 38% 48% at 78% 23%,
            rgba(20, 184, 166, 0.25) 0%,
            rgba(20, 184, 166, 0.09) 44%,
            transparent 100%
        ),
        radial-gradient(
            ellipse 30% 38% at 88% 78%,
            rgba(163, 230, 53, 0.15) 0%,
            rgba(163, 230, 53, 0.045) 48%,
            transparent 100%
        ),
        radial-gradient(
            ellipse 42% 42% at 22% 18%,
            rgba(52, 211, 153, 0.12) 0%,
            transparent 100%
        );
    filter: blur(30px);
    transform: scale(1.04);
    pointer-events: none;
    user-select: none;
}

/* Fine technical grid. No heavy circles or distracting outlines. */
.senstech-hero::after {
    display: block !important;
    position: absolute;
    z-index: 0;
    inset: 0;
    content: "" !important;
    background-image:
        linear-gradient(rgba(235, 255, 244, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(235, 255, 244, 0.055) 1px, transparent 1px);
    background-size: 58px 58px;
    opacity: 0.38;
    -webkit-mask-image: radial-gradient(ellipse at 68% 48%, #000 0%, transparent 78%);
    mask-image: radial-gradient(ellipse at 68% 48%, #000 0%, transparent 78%);
    pointer-events: none;
    user-select: none;
}

.senstech-hero__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
}

.senstech-hero__content {
    width: 100%;
    /*max-width: 920px;*/
}


/* Eyebrow */

.senstech-hero__eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;

    color: var(--st-green-tech-lime);
    font-family: var(--st-font-body, 'Inter', sans-serif);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.senstech-hero__separator {
    color: var(--st-green-tech-teal);
    font-size: 1rem;
}


/* Headline */

.senstech-hero__title {
    margin: 0 0 26px;
    color: #FFFFFF;
    font-family: var(--st-font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(3.2rem, 6.5vw, 5.75rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.055em;
    text-transform: none;
    text-wrap: balance;
}

.senstech-hero__title > span {
    display: block;
}

.senstech-hero__title-accent {
    color: var(--st-green-tech-lime);
}


/* Description */

.senstech-hero__description {
    max-width: 730px;
    margin: 0;
    color: rgba(240, 253, 244, 0.78);
    font-family: var(--st-font-body, 'Inter', sans-serif);
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    font-weight: 400;
    line-height: 1.85;
}


/* CTA group */

.senstech-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.senstech-hero__actions .st-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 54px;
    padding: 14px 22px;
    border-radius: 10px;

    font-family: var(--st-font-body, 'Inter', sans-serif);
    font-size: 0.925rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: normal;

    transition:
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

/* Primary CTA */

.senstech-hero__actions .st-btn-primary {
    border: 1px solid var(--st-green-tech-lime);
    background: var(--st-green-tech-lime);
    color: #123322;
    box-shadow: 0 9px 24px rgba(163, 230, 53, 0.16);
}

.senstech-hero__actions .st-btn-primary:hover {
    border-color: #BEF264;
    background: #BEF264;
    color: #0B2E20;
    box-shadow: 0 13px 28px rgba(163, 230, 53, 0.22);
    transform: translateY(-2px);
}

/* Secondary CTA */

.senstech-hero__actions .st-btn-outline {
    border: 1px solid rgba(235, 255, 244, 0.45);
    background: rgba(255, 255, 255, 0.055);
    color: #F7FFF9;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.senstech-hero__actions .st-btn-outline:hover {
    border-color: rgba(190, 242, 100, 0.78);
    background: rgba(163, 230, 53, 0.1);
    color: var(--st-green-tech-lime);
    transform: translateY(-2px);
}

.senstech-hero__actions .st-btn i {
    flex-shrink: 0;
    font-size: 0.8rem;
}

.senstech-hero__actions .st-btn:focus-visible {
    outline: 3px solid rgba(190, 242, 100, 0.72);
    outline-offset: 4px;
}


/* Supporting tagline */

.senstech-hero__tagline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 0;

    color: rgba(240, 253, 244, 0.68);
    font-family: var(--st-font-body, 'Inter', sans-serif);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.7;
}

.senstech-hero__tagline-dot {
    display: inline-block;
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    background: var(--st-green-tech-lime);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(163, 230, 53, 0.55);
}


/* ======================================================================
   4. RESPONSIVE
   ====================================================================== */

@media (min-width: 992px) and (max-width: 1199.98px) {
    #main-header .header-inner {
        gap: 16px;
    }

    #main-header .header-nav__list {
        gap: 12px;
    }

    #main-header .header-nav .nav-link {
        font-size: 13px;
    }

    #main-header .header-cta {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 991.98px) {
    #main-header.senstech-header .container {
        height: auto;
    }

    #main-header .header-inner {
        display: none !important;
    }

    #main-header .senstech-mobile-nav {
        display: flex;
    }

    .senstech-hero {
        min-height: auto;
        padding: 126px 0 76px;
    }

    .senstech-hero__content {
        max-width: 800px;
    }

    .senstech-hero__title {
        font-size: clamp(3rem, 7vw, 4.5rem);
    }

    .senstech-hero::before {
        inset: -18%;
        filter: blur(28px);
        transform: none;
    }
}

@media (max-width: 575.98px) {
    #main-header.senstech-header .container {
        padding-right: 18px;
        padding-left: 18px;
    }

    #main-header .senstech-mobile-nav {
        min-height: 72px;
        padding: 9px 0;
    }

    #main-header .senstech-mobile-logo {
        width: 116px;
    }

    .senstech-hero {
        min-height: auto;
        padding: 112px 0 60px;
    }

    .senstech-hero__eyebrow {
        gap: 7px;
        margin-bottom: 22px;
        font-size: 0.67rem;
        letter-spacing: 0.075em;
    }

    .senstech-hero__title {
        margin-bottom: 20px;
        font-size: clamp(2.65rem, 10.5vw, 3.6rem);
        line-height: 1.07;
        letter-spacing: -0.05em;
    }

    .senstech-hero__description {
        font-size: 0.98rem;
        line-height: 1.8;
    }

    .senstech-hero__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        margin-top: 28px;
    }

    .senstech-hero__actions .st-btn {
        width: 100%;
        min-height: 52px;
        padding: 13px 16px;
    }

    .senstech-hero__tagline {
        align-items: flex-start;
        margin-top: 24px;
        font-size: 0.8rem;
    }

    .senstech-hero__tagline-dot {
        margin-top: 7px;
    }

    .senstech-hero::before {
        inset: -22%;
        filter: blur(25px);
        transform: none;
    }

    .senstech-hero::after {
        background-size: 42px 42px;
        opacity: 0.25;
    }
}


/* ======================================================================
   5. ACCESSIBILITY — REDUCED MOTION
   ====================================================================== */

@media (prefers-reduced-motion: reduce) {
    #main-header.senstech-header,
    #main-header .header-nav .nav-link,
    #main-header .header-nav .nav-link::before,
    #main-header .header-cta,
    #main-header .senstech-menu-toggle,
    #main-header .senstech-menu-toggle span,
    #main-header .senstech-mobile-cta,
    .senstech-hero *,
    .senstech-hero *::before,
    .senstech-hero *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* ======================================================================
   6. SPACING REFINEMENT — HEADER / HERO CLEARANCE
   Prevent the hero eyebrow from sitting too close to the header logo.
   Also switch to compact navigation before the desktop menu gets cramped.
   ====================================================================== */

@media (min-width: 1200px) {
    #main-header .header-inner {
        min-height: 112px;
    }

    #main-header .header-logo img {
        width: 132px;
    }

    .senstech-hero {
        /* More breathing room below the fixed header. */
        padding-top: clamp(158px, 18vh, 188px);
    }
}

/* Compact laptop / tablet landscape: avoid clipped desktop navigation. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    #main-header .header-inner {
        display: none !important;
    }

    #main-header .senstech-mobile-nav {
        display: flex !important;
        min-height: 76px;
        padding: 8px 0;
    }

    #main-header .senstech-mobile-logo {
        width: 108px;
    }

    .senstech-hero {
        padding-top: 154px;
    }
}

@media (max-width: 991.98px) {
    #main-header .senstech-mobile-logo {
        width: 108px;
    }

    .senstech-hero {
        padding-top: 138px;
    }
}

@media (max-width: 575.98px) {
    #main-header .senstech-mobile-logo {
        width: 100px;
    }

    .senstech-hero {
        padding-top: 124px;
    }
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.berdaya-nav {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 20px 8px 10px;
    min-height: 48px;
    background: linear-gradient(135deg, #0F6A4A, #0B543B);
    border: 1px solid rgba(163, 230, 53, 0.35);
    border-radius: 14px 24px 14px 24px;
    text-decoration: none;
    transition: all .25s ease;
}

.berdaya-nav__icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(163, 230, 53, .15);
    color: #A3E635;
    font-size: 17px;
}

.berdaya-nav__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.1;
}

.berdaya-nav__brand {
    color: rgba(255,255,255,.85);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.berdaya-nav__title {
    color: #A3E635;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.berdaya-nav__spark {
    position: absolute;
    top: -8px;
    right: -7px;
    color: #A3E635;
    font-size: 16px;
}

.berdaya-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 106, 74, .22);
}

.berdaya-nav:focus-visible {
    outline: 3px solid #A3E635;
    outline-offset: 4px;
}
