/********** EnaQt EU Palette & Type System **********/
:root {
    /* EU-inspired blue & gold identity — matches the calculator app's --eu-blue */
    --eu-blue: #003399;
    --eu-blue-rgb: 0, 51, 153;
    --eu-blue-dark: #002280;
    --eu-blue-dark-rgb: 0, 34, 128;
    --eu-blue-tint: #E9EFFA;
    /* Dark navy gradient used for card-style surfaces — matches the persona
       cards / result panels on app.enaqt.com (contact page, calculator). */
    --card-blue-start: #142B54;
    --card-blue-end: #0F1E3B;
    --eu-gold: #F0B429;
    --eu-gold-rgb: 240, 180, 41;
    --eu-gold-deep: #B9820A;
    --eu-ink: #1F2A3C;
    --eu-body: #3C4A5E;
    --eu-muted: #6B7A8D;
    --eu-line: #E1E7F0;

    --bs-primary: var(--eu-blue);
    --bs-primary-rgb: var(--eu-blue-rgb);
    --bs-dark: var(--eu-ink);
    --bs-dark-rgb: 31, 42, 60;
    --bs-light: var(--eu-blue-tint);
    --bs-light-rgb: 237, 242, 251;
    --bs-body-color: var(--eu-body);
    --bs-body-font-family: 'Inter', -apple-system, sans-serif;
    --bs-link-color: var(--eu-blue);
    --bs-link-hover-color: var(--eu-gold-deep);
}

/*** Typography ***/
body {
    font-family: 'Inter', -apple-system, sans-serif !important;
    color: var(--eu-body) !important;
    line-height: 1.75;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand h2, .navbar-brand h1,
.display-1, .display-2, .display-3, .display-4 {
    font-family: 'Outfit', -apple-system, sans-serif !important;
    color: var(--eu-ink);
    letter-spacing: -0.01em;
}

p { color: var(--eu-body); }

a { color: var(--eu-blue); }
a:hover { color: var(--eu-gold-deep); }

/*** EU Blue / Gold overrides (guard against bundled Bootstrap defaults) ***/
.bg-primary { background-color: var(--eu-blue) !important; }
.text-primary { color: var(--eu-blue) !important; }
.border-primary { border-color: var(--eu-blue) !important; }

.btn-primary {
    color: #fff !important;
    background-color: var(--eu-blue) !important;
    border-color: var(--eu-blue) !important;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--eu-gold-deep) !important;
    border-color: var(--eu-gold-deep) !important;
    color: #fff !important;
}

.btn-outline-primary {
    color: var(--eu-blue) !important;
    border-color: var(--eu-blue) !important;
}
.btn-outline-primary:hover {
    color: #fff !important;
    background-color: var(--eu-blue) !important;
    border-color: var(--eu-blue) !important;
}

.btn-dark {
    background-color: var(--eu-ink) !important;
    border-color: var(--eu-ink) !important;
}
.btn-dark:hover {
    background-color: var(--eu-gold-deep) !important;
    border-color: var(--eu-gold-deep) !important;
}

/* Gold accent for the light-weight headline spans set against blue backgrounds
   (hero headers, newsletter, "how to use", testimonial, deal sections) so the
   two-tone headline reads as the EU blue+gold pairing rather than low-contrast
   dark-on-dark text. */
.hero-header .fw-light.text-dark,
.bg-primary .fw-light.text-dark,
.newsletter .fw-light.text-dark,
.how-to-use .fw-light.text-dark,
.testimonial .fw-light.text-dark,
.deal .fw-light.text-dark {
    color: var(--eu-gold) !important;
}

/* The navbar always sits over the blue hero (and gains .bg-primary once the
   page scrolls), so its default link color needs to be light, not dark ink. */
.navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--eu-gold) !important;
}
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        color: rgba(255, 255, 255, 0.92) !important;
    }
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5) !important;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.footer .btn.btn-link:hover { color: var(--eu-blue) !important; }
.footer .copyright a:hover { color: var(--eu-gold-deep) !important; }

.testimonial-carousel .owl-dot.active { background: var(--eu-gold) !important; }

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

img.animated.pulse {
    animation-duration: 5s;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: var(--bs-white);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    padding: 11px 0 !important;
    height: 85px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 45px;
    padding: 0;
    color: var(--bs-dark);
    font-weight: 500;
    transition: .5s;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-white);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        padding: 0 15px;
        background: var(--bs-primary);
    }

    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        /* Bootstrap's mt-lg-2 utility on the markup carries !important, so this
           has to match — otherwise it wins and leaves a gap the mouse falls
           through before reaching the menu, breaking the hover-open dropdown. */
        margin-top: 0 !important;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/* Dropdown menu polish */
.navbar .dropdown-menu {
    background-color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(14, 42, 84, 0.16);
    padding: 0.6rem 0;
    min-width: 240px;
}

.navbar .dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    color: var(--eu-ink);
    border-left: 3px solid transparent;
    transition: .2s;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item.active {
    background-color: var(--eu-blue);
    border-left-color: var(--eu-gold);
    color: #fff;
}

.navbar .dropdown-header {
    padding: 0.4rem 1.5rem 0.2rem;
    color: var(--eu-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.navbar .dropdown-divider {
    margin: 0.4rem 0;
    border-top: 1px solid var(--eu-line);
}

/* Nav action buttons: Contact Us / Sign In */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-nav-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    color: #fff !important;
    font-weight: 500;
    padding: 0.5rem 1.1rem;
    border-radius: 4px;
    transition: .2s;
    white-space: nowrap;
}
.btn-nav-outline:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.btn-signin {
    background-color: var(--eu-gold);
    color: var(--eu-ink) !important;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    border: 1.5px solid var(--eu-gold);
    transition: .2s;
    white-space: nowrap;
}
.btn-signin:hover {
    background-color: transparent;
    color: var(--eu-gold) !important;
    border-color: var(--eu-gold);
}

@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.06);
        border-radius: 4px;
        padding: 0.25rem 0;
        min-width: 0;
    }
    .navbar .dropdown-item {
        color: rgba(255, 255, 255, 0.85);
        padding: 0.4rem 0 0.4rem 1rem;
    }
    .navbar .dropdown-item:hover,
    .navbar .dropdown-item:focus {
        background-color: transparent;
        color: var(--eu-gold);
    }
    .navbar .dropdown-header {
        color: rgba(255, 255, 255, 0.55);
        padding: 0.5rem 0 0.2rem 1rem;
    }
    .navbar .dropdown-divider {
        border-top-color: rgba(255, 255, 255, 0.2);
    }
    .navbar-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 0.75rem;
        gap: 0.5rem;
    }
    .btn-nav-outline,
    .btn-signin {
        text-align: center;
    }
}


/*** Hero Header ***/
.hero-header {
    position: relative;
    margin-top: -85px;
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
}

/* Bootstrap's .badge defaults to white-space: nowrap, which is fine for
   short labels but forces a long single-line pill (e.g. the hero's
   "CBAM · EU Regulation..." badge) past the viewport on phones. Let badges
   wrap onto multiple lines below tablet width instead of overrunning. */
@media (max-width: 575.98px) {
    .badge {
        white-space: normal;
        text-align: center;
    }
}

.hero-header::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.hero-header .container {
    position: relative;
    z-index: 1;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-light);
}


/*** Feature ***/
/* Uniform "dark card" treatment: every .feature-item that carries the
   bg-primary utility gets the same navy gradient as .stat-strip, matching
   the card surfaces on app.enaqt.com, instead of a flat blue. */
.feature-item.bg-primary {
    background: linear-gradient(160deg, var(--card-blue-start) 0%, var(--card-blue-end) 100%) !important;
}

.feature-item::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.feature-item .border {
    position: relative;
    border-color: rgba(255, 255, 255, .2) !important;
    z-index: 1;
}


/*** Deal ***/
.deal {
    position: relative;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
}

.deal::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.deal .bg-white {
    position: relative;
    z-index: 1;
}

.deal .cdt span {
    display: block;
    font-size: 16px;
    font-style: italic;
    font-weight: 200;
    text-transform: capitalize;
}


/*** How To Use ***/
.how-to-use {
    position: relative;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
}

.how-to-use::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.how-to-use .container {
    position: relative;
    z-index: 1;
}

.how-to-use .border {
    border-color: rgba(255, 255, 255, .2) !important;
}


/*** Product ***/
.product-item {
    transition: .1s;
}

.product-item:hover {
    border-width: 0 !important;
    box-shadow: 0 0 35px rgba(144, 188, 121, .25);
}

.product-item:hover a.btn {
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Testimonial ***/
.testimonial {
    position: relative;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
}

.testimonial::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.testimonial .testimonial-carousel {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item img {
    width: 120px;
    height: 120px;
    border-color: rgba(255, 255, 255, .2) !important;
    margin: 0 auto 20px auto;
    border-radius: 100px;
}

.testimonial-carousel .owl-dots {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 3px solid rgba(255, 255, 255, .2);
    border-radius: 30px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--bs-dark);
}


/*** Blog ***/
.blog-item {
    transition: .1s;
}

.blog-item:hover {
    border-width: 0 !important;
    box-shadow: 0 0 35px rgba(144, 188, 121, .25);
}

.blog-item:hover a.btn {
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Contact ***/
.contact-info-item::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.contact-info-item .border {
    position: relative;
    border-color: rgba(255, 255, 255, .2) !important;
    z-index: 1;
}


/*** Newsletter ***/
.newsletter {
    position: relative;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
}

.newsletter::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.newsletter .container {
    position: relative;
    z-index: 1;
}

.newsletter .form-control {
    background: rgba(255, 255, 255, .3);
}


/*** Feature pages: stat strip ***/
.stat-strip {
    background: linear-gradient(160deg, var(--card-blue-start) 0%, var(--card-blue-end) 100%);
    border-radius: 10px;
}
.stat-strip .stat-figure {
    font-family: 'Outfit', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--eu-gold);
    line-height: 1;
}
.stat-strip .stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    margin-top: 0.35rem;
}

.phase-chart-bar {
    transition: height .3s ease;
}

/*** Feature pages v2: sticky index + narrative rows (no card grid) ***/
.feature-index {
    position: sticky;
    top: 110px;
}
.feature-index .idx-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--eu-muted);
    margin-bottom: 0.75rem;
    display: block;
}
.feature-index .idx-link {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.5rem 0 0.5rem 1rem;
    border-left: 2px solid var(--eu-line);
    color: var(--eu-muted);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: .2s;
}
.feature-index .idx-link .idx-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--eu-line);
    flex-shrink: 0;
}
.feature-index .idx-link:hover,
.feature-index .idx-link.active {
    background-color: var(--eu-blue);
    color: #fff;
    border-left-color: var(--eu-gold);
    font-weight: 600;
}
.feature-index .idx-link:hover .idx-num,
.feature-index .idx-link.active .idx-num {
    color: rgba(255, 255, 255, 0.75);
}

.feature-section {
    padding: 3.25rem 0;
    border-bottom: 1px solid var(--eu-line);
    scroll-margin-top: 110px;
}
.feature-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.feature-section .section-eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--eu-line);
    line-height: 1;
    display: block;
}

.feature-row-list .feature-row {
    display: flex;
    gap: 1.1rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--eu-line);
}
.feature-row-list .feature-row:first-child {
    border-top: none;
    padding-top: 0.25rem;
}
.feature-row .row-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--eu-blue-tint);
    color: var(--eu-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}
.feature-row h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--eu-ink);
    margin-bottom: 0.25rem;
}
.feature-row p {
    margin-bottom: 0;
    font-size: 0.92rem;
    color: var(--eu-body);
}

@media (max-width: 991.98px) {
    .feature-index {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    .feature-index .idx-eyebrow {
        grid-column: 1 / -1;
    }
    .feature-index .idx-link {
        border-left: none;
        border: 1px solid var(--eu-line);
        border-radius: 8px;
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }
    .feature-index .idx-link.active,
    .feature-index .idx-link:hover {
        border-color: var(--eu-blue);
        background-color: var(--eu-blue);
        color: #fff;
    }
    .feature-index .idx-link.active .idx-num,
    .feature-index .idx-link:hover .idx-num {
        color: rgba(255, 255, 255, 0.75);
    }
}

/* Horizontal process stepper (verification workflow, review flow, etc.) */
.process-flow {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    padding: 0.5rem 0 1rem;
    gap: 0;
}
.process-flow .flow-step {
    flex: 1 0 120px;
    text-align: center;
    position: relative;
    padding: 0 0.5rem;
}
.process-flow .flow-step::before {
    content: "";
    position: absolute;
    top: 15px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--eu-line);
    z-index: 0;
}
.process-flow .flow-step:first-child::before {
    display: none;
}
.process-flow .flow-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--eu-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    margin: 0 auto 0.6rem;
    position: relative;
    z-index: 1;
}
.process-flow .flow-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--eu-ink);
    line-height: 1.3;
}

/* Below tablet, a horizontal stepper with 5-9 items no longer fits — switch
   to a vertical list (dot + label side by side per row) instead of relying
   on horizontal scroll, which had no visible affordance and read as
   cut-off/broken content on phones. */
@media (max-width: 767.98px) {
    .process-flow {
        flex-direction: column;
        align-items: stretch;
        overflow-x: visible;
        gap: 0.85rem;
        padding: 0.5rem 0;
    }
    .process-flow .flow-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 0.75rem;
        padding: 0;
    }
    .process-flow .flow-step::before {
        display: none;
    }
    .process-flow .flow-dot {
        margin: 0;
        flex-shrink: 0;
    }
}

/*** FAQ Accordion (native <details>/<summary>, no JS needed) ***/
.faq-item {
    border: 1px solid var(--eu-line);
    border-radius: 8px;
    padding: 0 1.25rem;
    margin-bottom: 0.75rem;
    background: #fff;
}
.faq-item summary {
    cursor: pointer;
    padding: 1.1rem 0;
    font-weight: 600;
    color: var(--eu-ink);
    font-family: 'Outfit', sans-serif;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--eu-blue);
    transition: transform .2s;
    flex-shrink: 0;
}
.faq-item[open] summary::after {
    transform: rotate(180deg);
}
.faq-item p {
    padding-bottom: 1.1rem;
    margin-bottom: 0;
    color: var(--eu-body);
}
.faq-group-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--eu-blue);
    background: var(--eu-blue-tint);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    flex-shrink: 0;
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: var(--bs-body);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary);
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    border-top: 3px solid var(--bs-light);
}

.footer .copyright a {
    color: var(--bs-body);
}

.footer .copyright a:hover {
    color: var(--bs-primary);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 3px solid var(--bs-light);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}