/*
Base Color 1 : #05A94F; // less variable @baseColor  | --accent erofio
Base Color 2 : #183762; // less variable @baseColor2 | --accent atlântico
*/
:root {
    font-family: "Exo 2", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    --background-color: #ffffff;
    --default-color: #535d6b;
    --heading-color: #344761;
    --accent-color: #05A94F; /*EROFIO*/
    /*--surface-color: #ffffff;*/
    /*--contrast-color: #ffffff;*/
}

html, body {
    font-family: "Exo 2", sans-serif;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    /* - RESET BOOTSTRAP */
    /*font-size: var(--bs-body-font-size);*/
    font-weight: 400;
    /*line-height: var(--bs-body-line-height);*/
}

/* EROFIO Loader */
#load-container {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    background: #FFF;
    z-index: 99999;
    overflow: hidden;
}

#load-container .item {
    height: 128px;
    width: 128px;
    border-radius: 50px;
    left: -webkit-calc(50% - 65px);
    left: calc(50% - 65px);
    top: -webkit-calc(50% - 100px);
    top: calc(50% - 100px);
    text-align: center;
    position: absolute;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #05A94F;
    --bs-btn-border-color: #05A94F;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #049245;
    --bs-btn-hover-border-color: #048a41;
    --bs-btn-focus-shadow-rgb: 5, 169, 79;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #037a39;
    --bs-btn-active-border-color: #037236;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #05A94F;
    --bs-btn-disabled-border-color: #05A94F;
}

#page {
    flex: 1;
}

#contacts-and-language {
    background: #293133;
    font-size: 14px;
    height: 40px;
    max-height: 40px;
    color: #FFF;
    line-height: 40px;
}

#contacts-list, #contacts-list a, #contacts-list a:visited, #contacts-list a:hover, #contacts-list a:active {
    color: #FFF;
    text-decoration: none;
}

@media (max-width: 479px) {
    #contacts-and-language {
        height: 60px;
        max-height: 60px;
    }
}


/* MAIN MENU  */
#main-menu {
    text-transform: uppercase;
}

#main-menu .nav-link {
    position: relative;
}

#main-menu .nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.35rem;
    height: 1px;
    background-color: #183762;
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0;
    transition: transform 200ms ease, opacity 200ms ease;
    border-radius: 1px;
    pointer-events: none;
}

#main-menu .nav-link:hover::before,
#main-menu .nav-link:focus-visible::before,
#main-menu .nav-link.active::before,
#main-menu .nav-link[aria-current="page"]::before {
    transform: scaleX(1);
    opacity: 1;
}

#main-menu .navbar-nav {
    gap: 1rem;
}
@media (min-width: 768px) {
    #main-menu .navbar-nav {
        gap: 1.25rem;
    }
}
@media (min-width: 1200px) {
    #main-menu .navbar-nav {
        gap: 1.75rem;
    }
}

#main-menu .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

#main-menu .nav-item.dropdown .dropdown-menu {
    transition: all 0.3s ease;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
}

#main-menu .nav-item.dropdown:hover > .dropdown-toggle {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    #main-menu .nav-item.dropdown:hover .dropdown-menu {
        display: none;
    }

    #main-menu .nav-item.dropdown .dropdown-menu {
        position: static;
    }
}

#footer-copyright {
    margin-top: auto;
    position: relative;
    background-color: #343A40;
    color: #FFFFFF;
    text-align: center;
    padding: 15px 0;
}

#footer-copyright a {
    color: #FFF;
    text-decoration: none;
}

#up-btn-container {
    position: relative;
}

#up-btn {
    display: none;
    background-color: #05A94F;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 15px;
    right: 15px;
    font-size: 20px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, transform 0.2s ease;
}

#up-btn:hover {
    background-color: #048B3C;
    color: #FFFFFF;
    text-decoration: none;
    transform: scale(1.1);
}

#footer-copyright ul, #footer-copyright li {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

#svg-footer-container {
    text-align: left;
}

#footer-complaints-link svg {
    height: 80px;
    width: 180px;
    color: #9d9d9d;
}

#footer-complaints-link svg path {
    fill: #9d9d9d;
}

#footer-complaints-link:hover svg path {
    fill: #FFFFFF;
}

#footer-copyright .version {
    font-size: 0.85em;
    opacity: 0.65;
    margin-left: 6px;
    white-space: nowrap;
}

/* PAGE HEADERS */
.page-header-section {
    position: relative;
    min-height: 281px;
    text-align: center;
    padding-top: 80px;
    background-color: #f7b71e;
    background-position: center center;
    background-attachment: scroll;
}

.page-header-section img.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    z-index: -1;
}

.page-header-section .title {
    color: #FFF;
    padding: 0 27px;
    min-width: 138px;
    line-height: 65px;
    border: 1px solid #f7b71e;
    margin: 0 auto;
    display: inline-block;
    font-size: 22px;
    font-family: 'Raleway', sans-serif;
    background: rgba(0, 0, 0, 0.2);
}

.page-header-section .breadcrumbs {
    margin: 0;
}

.page-header-section .breadcrumbs .breadcrumb {
    border-bottom: 1px solid #FFF;
    line-height: 40px;
    display: inline-block;
    border-radius: 0;
    background: transparent;
}

.page-header-section .breadcrumbs .breadcrumb li {
    color: #FFF;
}

.page-header-section .breadcrumbs .breadcrumb li a {
    color: #FFF;
}

/* ----------------------------  PAGES  ---------------------------------------- */

/* NEWS INDEX AND READ PAGES */

/* CONTACTS PAGE */
/* -------------------------------------------- MISC ---------------------------------------------------------------- */
/* PAGER */
.pager {
    text-align: center;
    position: relative;
}

.pager .pagination {
    margin: 35px 0 33px;
}

.pager .pagination li a {
    border-radius: 0;
    color: #000;
}

.pager .pagination li.active a,
.pager .pagination li:hover a {
    background: #f7b71e;
    border-color: #f7b71e;
    color: #FFF;
}

.pager .pager-wrapper {
    border-bottom: 1px solid rgba(156, 156, 156, 0.3);
}

.homepage-hero {
    position: relative;
    height: 60vh;
    min-height: 380px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.homepage-hero .hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.homepage-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.5) 100%);
    z-index: -1;
}

.homepage-hero .hero-content {
    color: #fff;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.homepage-hero .hero-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 700;
    margin: 0 0 10px 0;
}

.homepage-hero .hero-subtitle {
    font-size: clamp(16px, 2.2vw, 22px);
    margin: 0;
    max-width: 900px;
}

/* Sections */
.homepage-section .section-kicker {
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9c9c9c;
    font-weight: 600;
    font-size: 14px;
    display: block;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.homepage-section .section-title {
    font-size: 28px;
    font-weight: 700;
    display: block;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Megamenu-like widget */
.services-section .megamenu-left {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 8px;
    padding: 16px;
}

.services-section .menu-item {
    padding: 16px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.services-section .menu-item:last-child {
    border-bottom: none;
}

.services-section .menu-icon {
    width: 48px;
    height: 48px;
    /*border-radius: 8px;*/
    /*background: #e9ecef;*/
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.services-section .menu-icon img,
.services-section .menu-icon svg {
    max-width: 48px;
    max-height: 48px;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.services-section .menu-text {
    font-weight: 600;
}

.services-section .megamenu-right {
    border: 1px dashed rgba(0, 0, 0, .15);
    border-radius: 8px;
    background: #ffffff;
}

@media (max-width: 575.98px) {
    .homepage-hero {
        height: 48vh;
        min-height: 320px;
    }
}

.business-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
}

.business-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0;
}

.business-card-desc {
    color: var(--default-color);
}

.business-card-link {
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
}

.business-card-link:hover {
    text-decoration: underline;
}

.homepage-hero.image-hero {
    height: 281px;
    min-height: 281px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

@media (max-width: 575.98px) {
    .homepage-hero.image-hero {
        height: 281px;
        min-height: 281px;
    }
}

/* Preserve existing page header background images when using the homepage hero */
#about-badge.homepage-hero {
    background-image: url("../images/banner/banner9.png");
}

#erofio-badge.homepage-hero {
    background-image: url("../images/banner/banner5.jpg");
}

#atlantico-badge.homepage-hero {
    background-image: url("../images/banner/banner10.png");
}

#services-badge.homepage-hero {
    background-image: url("../images/banner/banner11.png");
}

#sponsored-projects-badge.homepage-hero {
    background-image: url("../images/banner/banner4.jpg");
}

#contacts-badge.homepage-hero {
    background-image: url("../images/banner/banner2.jpg");
}

#legal-badge.homepage-hero {
    background-image: url("../images/banner/banner.jpg");
}

/* Language dropdown: remove underline transition and customize panel */
#main-menu #languageDropdown.nav-link::before {
    content: none;
}

#main-menu #languageDropdown.nav-link {
    text-decoration: none !important;
}

#main-menu .nav-item.dropdown:hover > #languageDropdown {
    text-decoration: none !important;
}

#main-menu #languageDropdown.nav-link:hover,
#main-menu #languageDropdown.nav-link:focus {
    text-decoration: none !important;
}

#main-menu .dropdown-menu[aria-labelledby="languageDropdown"] {
    /* Flat look for the language dropdown panel */
    --bs-dropdown-box-shadow: none;
    background-color: #f8fafc;
    border: 1px solid #e6e9ef;
    border-radius: 6px;
    box-shadow: none;
    padding: 0.25rem 0;
    min-width: 12rem;
}

#main-menu .dropdown-menu[aria-labelledby="languageDropdown"] .dropdown-item {
    color: #344761; /* heading color */
    font-weight: 500;
}

#main-menu .dropdown-menu[aria-labelledby="languageDropdown"] .dropdown-item:hover,
#main-menu .dropdown-menu[aria-labelledby="languageDropdown"] .dropdown-item:focus {
    background-color: rgba(24, 55, 98, 0.06); /* subtle atlântico tint */
    color: #183762;
}

#main-menu .dropdown-menu[aria-labelledby="languageDropdown"] .dropdown-item img {
    width: 20px;
    height: auto;
}
