/********** Template CSS **********/
:root {
    --primary: #F27A1A;
    --secondary: #233A66;
    --light: #F4F7FB;
    --dark: #101A33;
    --ink: #263244;
}

body {
    color: #5F6B7A;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark);
}

a,
.text-primary {
    color: var(--primary) !important;
}

.bg-primary,
.btn-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.bg-dark {
    background-color: var(--dark) !important;
}

.btn-primary {
    border-color: var(--primary) !important;
    box-shadow: 0 12px 28px rgba(242, 122, 26, .22);
}

.btn-primary:hover,
.btn-outline-primary:hover {
    background-color: #D9650F !important;
    border-color: #D9650F !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(242, 122, 26, .42);
    box-shadow: 0 0 0 .25rem rgba(242, 122, 26, .16);
}

.rounded,
.rounded-pill {
    border-radius: 8px !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** 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 {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF !important;
}

.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;
}

/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 75px;
}

.navbar {
    border-bottom: 1px solid rgba(16, 26, 51, .08);
}

.navbar-brand {
    min-width: 220px;
    padding-right: 1.5rem;
}

.navbar-brand-logo-img {
    display: block;
    max-height: 54px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    background: transparent;
    padding: 2px 0;
    filter: drop-shadow(0 2px 4px rgba(16, 26, 51, .08));
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
    white-space: nowrap;
}

.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;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border: 1px solid rgba(16, 26, 51, .1);
    border-radius: 999px;
    background: var(--light);
    box-shadow: 0 6px 18px rgba(16, 26, 51, .06);
}

.language-switch .lang-btn {
    border: 0;
    background: transparent;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    transition: .3s;
    line-height: 1;
}

.language-switch .lang-btn.active {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 8px 16px rgba(242, 122, 26, .18);
}

.language-switch .lang-btn:hover {
    background: rgba(242, 122, 26, .12);
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }

    .navbar-brand {
        min-width: 0;
        padding-right: 1rem;
    }

    .navbar-brand-logo-img {
        max-height: 42px;
        max-width: 140px;
    }
}

@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 ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(16, 26, 51, .92) 0%, rgba(16, 26, 51, .76) 46%, rgba(16, 26, 51, .18) 100%);
}

.owl-carousel:not(.owl-loaded) {
    display: block;
}

.header-carousel:not(.owl-loaded) .owl-carousel-item:not(:first-child),
.testimonial-carousel:not(.owl-loaded) .testimonial-item:not(:first-child) {
    display: none;
}

.header-carousel:not(.owl-loaded) .owl-dots,
.testimonial-carousel:not(.owl-loaded) .owl-nav {
    display: none;
}

.header-carousel .display-2 {
    max-width: 860px;
}

.header-carousel p {
    max-width: 680px;
}

.header-carousel .owl-carousel-item img {
    min-height: 680px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }
}

.header-carousel .owl-dots {
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(255, 255, 255, .9);
    border-radius: 45px;
    transition: .5s;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    border-radius: 45px;
    transition: .5s;
}

.page-header {
    background: linear-gradient(90deg, rgba(16, 26, 51, .88), rgba(16, 26, 51, .52)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    border: 1px solid rgba(16, 26, 51, .08);
}

.service-icon {
    position: relative;
    margin: -50px 0 25px 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 100px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover .service-icon {
    color: #FFFFFF;
    background: var(--primary);
}

.service-item h4 {
    color: var(--dark);
}

.footer {
    background: radial-gradient(circle at top left, rgba(242, 122, 26, .16), transparent 32%), var(--dark) !important;
}


/*** Feature ***/
.feature-strip {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
}

.feature-strip-item {
    min-height: 150px;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 28px 24px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
}

.feature-strip-item h5 {
    color: #FFFFFF;
    line-height: 1.25;
}

.feature-strip-item p {
    color: rgba(255, 255, 255, .78);
    line-height: 1.55;
}

@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-img {
    position: relative;
}

.portfolio-img::before,
.portfolio-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    background: var(--dark);
    transition: .5s;
}

.portfolio-img::before {
    left: 50%;
}

.portfolio-img::after {
    right: 50%;
}

.portfolio-item:hover .portfolio-img::before {
    width: 51%;
    left: 0;
}

.portfolio-item:hover .portfolio-img::after {
    width: 51%;
    right: 0;
}

.portfolio-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 1;
    transition: .5s;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    transition-delay: .3s;
}


/*** Customers ***/
.clients-section {
    background: linear-gradient(180deg, var(--light) 0%, #FFFFFF 100%);
}

.client-copy {
    color: var(--ink);
    line-height: 1.8;
}

.client-logo-card {
    min-height: 178px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #FFFFFF;
    border: 1px solid rgba(35, 58, 102, .12);
    border-radius: 8px;
    box-shadow: 0 0 35px rgba(16, 26, 51, .06);
    transition: .35s;
}

.client-logo-card img {
    width: 100%;
    max-width: 245px;
    height: 86px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .82;
    transition: .35s;
}

.client-logo-card span {
    min-height: 40px;
    display: flex;
    align-items: center;
    color: var(--dark);
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.client-logo-card:hover {
    transform: translateY(-5px);
    border-color: rgba(242, 122, 26, .55);
    box-shadow: 0 18px 40px rgba(16, 26, 51, .10);
}

.client-logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}


/*** Our Diferencial ***/
.diferencial-card {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    padding: 2rem;
    transition: all .35s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diferencial-card:hover {
    border-color: var(--primary);
    background: rgba(242, 122, 26, .08);
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(242, 122, 26, .22);
}

.diferencial-content {
    text-align: center;
    width: 100%;
}

.diferencial-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hexagon-bg {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .05));
    border: 2px solid rgba(242, 122, 26, .5);
    border-radius: 50%;
    position: relative;
    transition: all .35s;
}

.diferencial-card:hover .hexagon-bg {
    background: linear-gradient(135deg, rgba(242, 122, 26, .2), rgba(242, 122, 26, .1));
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(242, 122, 26, .3);
}

.hexagon-bg i {
    font-size: 3rem;
    color: var(--primary);
    transition: all .35s;
}

.diferencial-card:hover .hexagon-bg i {
    transform: scale(1.1);
    color: var(--primary);
}

.text-white-75 {
    color: rgba(255, 255, 255, .75);
    font-size: 15px;
    line-height: 1.6;
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.team-item img {
    border-radius: 8px 60px 0 0;
}

.team-item .team-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: #FFFFFF;
    transition: .5s;
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.testimonial-carousel .testimonial-img img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .testimonial-img .btn-square {
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-carousel .owl-item .testimonial-text {
    margin-bottom: 30px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    color: #9B9B9B;
    border: 1px solid #9B9B9B;
    border-radius: 38px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    border-color: var(--light);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #9B9B9B;
    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: #FFFFFF;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/* Ajuste só para PT em desktop, sem alterar proporção geral */
@media (min-width: 992px) {
    body.lang-pt .navbar .navbar-nav .nav-link {
        font-size: 0.92rem !important;
        padding-left: 0.60rem !important;
        padding-right: 0.60rem !important;
        letter-spacing: 0 !important;
    }

    body.lang-pt .navbar a.btn.btn-primary {
        font-size: 0.88rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        white-space: nowrap;
    }
}

/* Navbar: mantém largura existente, evita quebrar */
.navbar .navbar-collapse,
.navbar .navbar-nav {
    min-width: 0;
}

.navbar .navbar-nav .nav-link {
    white-space: nowrap;
}

/* Desktop: sem alterar width do template */
@media (min-width: 992px) {
    /* estado padrão */
    .navbar .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding-left: 0.70rem;
        padding-right: 0.70rem;
        letter-spacing: 0;
    }

    /* PT: texto maior -> compacta só fonte/padding */
    body.lang-pt .navbar .navbar-nav .nav-link {
        font-size: 0.88rem !important;
        padding-left: 0.52rem !important;
        padding-right: 0.52rem !important;
        letter-spacing: 0 !important;
    }

    body.lang-pt .navbar a.btn.btn-primary {
        font-size: 0.84rem !important;
        padding-left: 0.90rem !important;
        padding-right: 0.90rem !important;
        white-space: nowrap;
    }

    body.lang-pt .navbar a.btn.btn-primary .fa-arrow-right {
        margin-left: 0.45rem !important;
    }
}

/* Navbar sem quebrar, sem alterar width do layout */
.navbar .navbar-nav .nav-link,
.navbar a.btn.btn-primary {
    white-space: nowrap;
}

.navbar a.btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Desktop: só ajuste de tipografia/padding por idioma */
@media (min-width: 992px) {
    /* EN */
    body.lang-en .navbar .navbar-nav .nav-link {
        font-size: 0.93rem !important;
        padding-left: 0.62rem !important;
        padding-right: 0.62rem !important;
    }

    body.lang-en .navbar a.btn.btn-primary {
        font-size: 0.88rem !important;
        padding-left: 0.95rem !important;
        padding-right: 0.95rem !important;
    }

    /* PT */
    body.lang-pt .navbar .navbar-nav .nav-link {
        font-size: 0.88rem !important;
        padding-left: 0.52rem !important;
        padding-right: 0.52rem !important;
    }

    body.lang-pt .navbar a.btn.btn-primary {
        font-size: 0.84rem !important;
        padding-left: 0.90rem !important;
        padding-right: 0.90rem !important;
    }
}

.testimonial-logo{
    width: 165px;              /* um pouco maior */
    height: 165px;
    object-fit: contain;       /* mantém proporção */
    background: #fff;
    border-radius: 50%;
    padding: 16px;
    border: 3px solid var(--primary); /* outline laranja */
    box-sizing: border-box;
}

/*** Testimonial - logos dos clientes ***/
.testimonial-carousel .testimonial-img {
    position: relative;
    width: 190px;
    height: 190px;
    margin: 0 auto 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #F9A15E 0%, var(--primary) 100%); /* anel laranja */
    padding: 4px; /* espessura do anel */
    box-shadow: 0 10px 26px rgba(242, 122, 26, .28);
}

.testimonial-carousel .testimonial-img img.testimonial-logo {
    width: 172px !important;
    height: 172px !important;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 16px;
    box-sizing: border-box;
}

.testimonial-carousel .testimonial-img .btn-square {
    bottom: -14px; /* melhor encaixe do ícone de citação */
    border: 2px solid #fff;
}
