/********** Template CSS **********/
:root {
    --primary: #C9A24A;
    --primary-light: #E3C77E;
    --secondary: #5F656F;
    --light: #F6F5F1;
    --dark: #071A3D;
}


h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
h6,
.h5,
.h6,
.fw-semi-bold {
    font-weight: 500 !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;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: #FFFFFF;
}

.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;
}


.topbar-right {
    position: relative;
    background: var(--primary);
}

.topbar-right::before {
    position: absolute;
    content: "";
    width: 30px;
    height: 100%;
    top: 0;
    left: -15px;
    transform: skewX(-30deg);
    background-color: var(--primary);
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand {
    position: relative;
    padding-right: 50px;
    height: 75px;
    display: flex;
    align-items: center;
    background: var(--primary);
}

.navbar .navbar-brand::after {
    position: absolute;
    content: "";
    width: 50px;
    height: 100%;
    top: 0;
    right: -25px;
    transform: skewX(-30deg);
    background-color: var(--primary);
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 20px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.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 .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/*** Header ***/
#header-carousel {
    width: 100%;
    height: 650px;
    overflow: hidden;
}

#header-carousel .carousel-inner,
#header-carousel .carousel-item {
    width: 100%;
    height: 100%;
}

#header-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(
        to right,
        rgba(2, 36, 91, 1) 0%,
        rgba(2, 36, 91, 0) 100%
    );
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary);
    border: 15px solid var(--primary);
    border-radius: 3.5rem;
}

/* Tablets */
@media (max-width: 992px) {
    #header-carousel {
        height: 550px;
    }
}

/* Telemóveis */
@media (max-width: 768px) {
    #header-carousel {
        height: 450px;
    }

    #header-carousel .carousel-item {
        height: 450px;
    }

    #header-carousel .carousel-item img {
        height: 450px;
        object-fit: cover;
    }

    .carousel-caption {
        background: linear-gradient(
            to right,
            rgba(2, 36, 91, 0.95) 0%,
            rgba(2, 36, 91, 0.35) 100%
        );
    }
}


/*** Facts ***/
.facts {
    position: relative;
    margin: 6rem 0;
    background: var(--dark);
}

.facts .border {
    border-color: rgba(255, 255, 255, .1) !important;
}


/*** Service ***/
.service-item {
    position: relative;
    margin: 65px 0 25px 0;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item .service-img {
    position: absolute;
    padding: 12px;
    width: 130px;
    height: 130px;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .service-detail {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.service-item .service-title {
    position: absolute;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-title {
    top: -100%;
}

.service-item .service-text {
    position: absolute;
    overflow: hidden;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 100%;
    left: 0;
    display: flex;
    align-items: center;
    text-align: center;
    background: rgba(2, 36, 91, .7);
    transition: .5s;
}

.service-item:hover .service-text {
    top: 0;
}

.service-item .service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100px;
    top: -100%;
    left: 0;
    transform: skewY(-12deg);
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-text::before {
    top: -55px;
}

.service-item .btn {
    position: absolute;
    width: 130px;
    height: 50px;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    background: #FFFFFF;
    border: none;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Project ***/
.project-item {
    position: relative;
    display: block;
}

.project-item img {
    transition: .5s;
}

.project-item:hover img {
    margin-top: -60px;
}

.project-item .project-title {
    position: absolute;
    padding: 0 15px;
    width: 100%;
    height: 80px;
    bottom: -110px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--dark);
    transition: .5s;
}

.project-item:hover .project-title  {
    bottom: -60px;
}

.project-item .project-title::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 30px;
    top: -15px;
    left: 0;
    transform: skewY(-5deg);
    background: var(--dark);
    transition: .5s;
}


/*** Client ***/
.client-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.client-logo img {
    width: 100px;
}

.client-logo small {
    display: block;
}

.client-item a {
    transition: .5s;
}

.client-item a:hover {
    color: var(--primary);
    letter-spacing: 1px;
}


/*** Team ***/
.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    display: flex;
    align-items: center;
    background: var(--primary);
    transition: .5s;
}

.team-item:hover .team-social {
    left: 0;
}


/*** Footer ***/
.footer {
    color: #B0B9AE;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #B0B9AE;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.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 {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: #B0B9AE;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

/*** Imara: Logo ***/
.navbar .navbar-brand {
    background: var(--dark);
    padding-left: 20px;
    padding-right: 40px;
}

.navbar .navbar-brand::after {
    background-color: var(--dark);
}

.navbar-brand img {
    height: 46px;
    width: auto;
}

.topbar-right {
    background: var(--dark);
}

.topbar-right::before {
    background-color: var(--dark);
}


/*** Imara: Division / Service Cards (icon based, no external images required) ***/
.division-card {
    position: relative;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    padding: 45px 30px 35px 30px;
    height: 100%;
    text-align: center;
    border-top: 3px solid var(--primary);
    transition: .4s;
}

.division-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(7, 26, 61, .15);
}

.division-card .division-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 22px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 50%;
}

.division-card .division-icon i {
    color: var(--primary);
    font-size: 2rem;
}

.division-card h4 {
    margin-bottom: 12px;
}

.division-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.division-card ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    color: var(--secondary);
    font-size: 15px;
}

.division-card ul li::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 0;
}


/*** Imara: Industries We Serve tag grid ***/
.industry-tag {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50px;
    padding: 14px 10px;
    text-align: center;
    color: #FFFFFF;
    font-weight: 500;
    transition: .3s;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.industry-tag i {
    color: var(--primary);
    margin-right: 8px;
}

.industry-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.industry-tag:hover i {
    color: var(--dark);
}


/*** Imara: Approach steps ***/
.approach-step {
    text-align: center;
    padding: 20px;
}

.approach-step .approach-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background: var(--primary);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    position: relative;
}

.approach-step h4 {
    margin-bottom: 10px;
}

.approach-step p {
    color: var(--secondary);
    margin: 0;
}


/*** Imara: Values list in About ***/
.value-badge h1 {
    line-height: 1;
}

.value-badge span {
    font-size: 15px;
    line-height: 1.3;
}

/* =========================================
   FLOATING CONTACT
========================================= */

.floating-contact {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;

    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}


/* =========================================
   FLOATING BUTTON
========================================= */

.floating-btn {
    position: relative;

    width: 58px;
    height: 58px;

    border: none;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;

    cursor: pointer;
    text-decoration: none;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.20);

    transition: transform .3s ease,
                box-shadow .3s ease;
}

.floating-btn:hover {
    transform: scale(1.08);
}


/* =========================================
   CHATBOT BUTTON
========================================= */

.chatbot-btn {
    background: var(--primary);
    color: #fff;
}

.chatbot-btn:hover {
    color: #fff;
    background: #011f50;
}


/* =========================================
   WHATSAPP BUTTON
========================================= */

.whatsapp-btn {
    background: #25D366;
    color: #fff;

    animation: whatsappPulse 2s infinite;
}

.whatsapp-btn:hover {
    color: #fff;
}


/* Pulse */

@keyframes whatsappPulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(37, 211, 102, .65),
            0 8px 25px rgba(0, 0, 0, .20);
    }

    70% {
        box-shadow:
            0 0 0 17px rgba(37, 211, 102, 0),
            0 8px 25px rgba(0, 0, 0, .20);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(37, 211, 102, 0),
            0 8px 25px rgba(0, 0, 0, .20);
    }

}


/* =========================================
   TOOLTIP
========================================= */

.floating-tooltip {
    position: absolute;

    right: 72px;

    padding: 7px 12px;

    background: #111;
    color: #fff;

    border-radius: 6px;

    font-size: 12px;
    font-weight: 500;

    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    transform: translateX(8px);

    transition: all .25s ease;
}

.floating-btn:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;

    transform: translateX(0);
}


/* =========================================
   CHATBOT WINDOW
========================================= */

.chatbot-window {
    position: fixed;

    right: 25px;
    bottom: 95px;

    width: 360px;
    height: 500px;

    max-width: calc(100vw - 30px);

    background: #fff;

    border-radius: 18px;

    overflow: hidden;

    z-index: 9998;

    display: flex;
    flex-direction: column;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .25);

    opacity: 0;
    visibility: hidden;

    transform: translateY(20px) scale(.95);

    transition:
        opacity .3s ease,
        transform .3s ease,
        visibility .3s ease;
}


/* Open */

.chatbot-window.active {
    opacity: 1;
    visibility: visible;

    transform: translateY(0) scale(1);
}


/* =========================================
   CHATBOT HEADER
========================================= */

.chatbot-header {
    background: var(--primary);
    color: #fff;

    padding: 16px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-logo {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: rgba(255,255,255,.15);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
}

.chatbot-header strong {
    display: block;

    font-size: 15px;
}

.chatbot-header small {
    display: flex;
    align-items: center;
    gap: 5px;

    margin-top: 3px;

    font-size: 11px;

    opacity: .9;
}

.status-dot {
    width: 7px;
    height: 7px;

    background: #25D366;

    border-radius: 50%;

    display: inline-block;
}


/* Close */

.chatbot-header > button {
    border: none;
    background: transparent;

    color: #fff;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

    opacity: .9;
}

.chatbot-header > button:hover {
    opacity: 1;
}


/* =========================================
   CHATBOT BODY
========================================= */

.chatbot-body {
    flex: 1;

    padding: 18px;

    overflow-y: auto;

    background: #f6f7f9;
}


/* Bot message */

.bot-message {
    max-width: 88%;

    background: #fff;

    padding: 12px 14px;

    border-radius: 12px 12px 12px 3px;

    font-size: 13px;

    line-height: 1.5;

    color: #333;

    margin-bottom: 16px;

    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}


/* =========================================
   QUICK OPTIONS
========================================= */

.chat-options {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.chat-options button {
    width: 100%;

    padding: 11px 13px;

    border: 1px solid #e1e4e8;

    background: #fff;

    border-radius: 9px;

    color: #333;

    font-size: 13px;

    text-align: left;

    cursor: pointer;

    transition: all .2s ease;
}

.chat-options button i {
    width: 22px;

    color: var(--primary);
}

.chat-options button:hover {
    background: var(--primary);

    color: #fff;

    border-color: var(--primary);
}

.chat-options button:hover i {
    color: #fff;
}


/* =========================================
   USER MESSAGE
========================================= */

.user-message {
    max-width: 85%;

    margin-left: auto;
    margin-bottom: 10px;

    padding: 10px 13px;

    background: var(--primary);
    color: #fff;

    border-radius: 12px 12px 3px 12px;

    font-size: 13px;

    line-height: 1.4;
}


/* =========================================
   BOT RESPONSE
========================================= */

.bot-response {
    max-width: 85%;

    margin-bottom: 10px;

    padding: 10px 13px;

    background: #fff;
    color: #333;

    border-radius: 12px 12px 12px 3px;

    font-size: 13px;

    line-height: 1.4;

    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}


/* =========================================
   CHATBOT FOOTER
========================================= */

.chatbot-footer {
    display: flex;
    align-items: center;

    padding: 9px;

    background: #fff;

    border-top: 1px solid #eee;
}

.chatbot-footer input {
    flex: 1;

    border: none;
    outline: none;

    padding: 10px;

    font-size: 13px;

    color: #333;
}

.chatbot-footer input::placeholder {
    color: #999;
}

.chatbot-footer button {
    width: 40px;
    height: 40px;

    border: none;

    border-radius: 50%;

    background: var(--primary);
    color: #fff;

    cursor: pointer;

    transition: transform .2s ease;
}

.chatbot-footer button:hover {
    transform: scale(1.08);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 576px) {

    .floating-contact {
        right: 15px;
        bottom: 15px;

        gap: 10px;
    }

    .floating-btn {
        width: 54px;
        height: 54px;

        font-size: 21px;
    }

    .floating-tooltip {
        display: none;
    }

    .chatbot-window {
        right: 15px;
        bottom: 80px;

        width: calc(100vw - 30px);

        height: 470px;

        border-radius: 16px;
    }

}