/********** Template CSS **********/
:root {
    --primary: #0e0d3b;
    --primary-rgb: 14, 13, 59;
    --secondary: #d45100;
    --light: #f5f6fb;
    --dark: #0e0d3b;
    --white: #FFFFFF;
    --muted-border: #DDDDDD;
}

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

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

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

.btn-primary {
    color: var(--white);
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary {
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-light:hover {
    color: var(--primary);
}

.whatsapp-menu-btn {
    margin-left: 36px;
    color: var(--white);
    background-color: #25D366;
    border-color: #25D366;
    border-radius: 999px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
}

.whatsapp-menu-btn:hover,
.whatsapp-menu-btn:focus {
    color: var(--white);
    background-color: #1ebe5d;
    border-color: #1ebe5d;
}

@media (max-width: 991.98px) {
    .whatsapp-menu-btn {
        margin-left: 0;
        margin-top: 12px;
    }
}

.btn-dark {
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
}

.topbar-line {
    height: 45px;
}

.footer-logo {
    height: 72px;
    width: auto;
    max-width: 100%;
}

.footer-bottom {
    background: var(--primary);
}

.footer-newsletter {
    background: #050505;
}

.footer-newsletter .footer-logo {
    filter: brightness(0) invert(1);
}

.footer-bottom-content {
    min-height: 75px;
}

.hero-caption-content {
    max-width: 900px;
}

.hero-caption-content h1 {
    font-size: clamp(2rem, 4vw, 3.65rem);
    line-height: 1.12;
    text-transform: uppercase;
}

.fact-card {
    height: 150px;
}

.icon-box {
    width: 60px;
    height: 60px;
}

.visual-tall {
    min-height: 500px;
}

.visual-medium {
    min-height: 350px;
}

.cover-img {
    object-fit: cover;
}

.section-title-narrow {
    max-width: 600px;
}

.form-field-tall {
    height: 55px;
}

.quote-submit-btn:hover,
.quote-submit-btn:focus {
    color: var(--white);
    background-color: #b84400;
    border-color: #b84400;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    flex: 0 0 60px;
}

.map-frame {
    min-height: 350px;
    border: 0;
}

.model-feature {
    transition: .5s;
}

.model-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 30px var(--muted-border);
}

.product-category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 0;
}

.product-category-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid rgba(var(--primary-rgb), .16);
    color: var(--primary);
    background: var(--white);
    font-weight: 700;
}

.product-category-nav a:hover,
.product-category-nav a.active {
    color: var(--white);
    background: var(--secondary);
    border-color: var(--secondary);
}

.product-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), .08);
    border-radius: 6px;
    transition: .5s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 30px var(--muted-border);
}

.product-card-image {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--primary);
    overflow: hidden;
}

.product-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-body {
    display: flex;
    min-height: 310px;
    flex-direction: column;
    padding: 28px;
}

.product-card-body p {
    flex: 1 1 auto;
}

.product-card-body h2 a {
    color: var(--primary);
}

.product-card-body h2 a:hover {
    color: var(--secondary);
}

.product-card-category {
    display: block;
    margin-bottom: 10px;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.product-card-price {
    color: var(--primary);
    font-size: 22px;
    font-weight: 800;
}

.product-empty {
    max-width: 680px;
    margin: 0 auto;
}

.product-detail-gallery {
    position: sticky;
    top: 110px;
}

.product-detail-main-image {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
}

.product-detail-main-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-detail-main-image span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 10px 14px;
    color: var(--white);
    background: rgba(var(--primary-rgb), .86);
    border-radius: 999px;
    font-weight: 700;
}

.product-detail-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.product-detail-thumbs button {
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 6px;
    background: var(--light);
}

.product-detail-thumbs button:hover,
.product-detail-thumbs button:focus {
    border-color: var(--secondary);
}

.product-detail-thumbs img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-detail-summary {
    padding: 8px 0;
}

.product-detail-price {
    color: var(--secondary);
    font-size: 32px;
    font-weight: 800;
}

.product-detail-content {
    color: #6B6A75;
    font-size: 1.05rem;
    line-height: 1.8;
}

.product-detail-content p {
    margin-bottom: 1.25rem;
}

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.product-whatsapp-cta {
    color: var(--white);
    background: #25D366;
    border-color: #25D366;
    border-radius: 4px;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}

.product-whatsapp-cta:hover,
.product-whatsapp-cta:focus {
    color: var(--white);
    background: #1ebe5d;
    border-color: #1ebe5d;
}

.product-image-modal .modal-body {
    padding: 0;
    background: var(--primary);
}

.product-image-modal img {
    display: block;
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
}

.news-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), .08);
    border-radius: 6px;
    transition: .5s;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 30px var(--muted-border);
}

.news-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--primary);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    display: flex;
    min-height: 300px;
    flex-direction: column;
    padding: 28px;
}

.news-card-body p {
    flex: 1 1 auto;
}

.news-card-body h2 a {
    color: var(--primary);
}

.news-card-body h2 a:hover {
    color: var(--secondary);
}

.news-card-meta,
.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.news-card-meta {
    margin-bottom: 12px;
}

.news-detail-image {
    width: 100%;
    max-height: 520px;
    margin-bottom: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.news-detail-content {
    color: #6B6A75;
    font-size: 1.05rem;
    line-height: 1.8;
}

.news-detail-content p {
    margin-bottom: 1.35rem;
}

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

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

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


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

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


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: var(--white);
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--secondary);
}

.navbar-dark .navbar-brand h1 {
    color: var(--white);
}

.navbar-dark .navbar-brand .site-logo {
    height: 62px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter .5s;
}

.navbar-dark .navbar-toggler {
    color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: var(--white);
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--dark);
    }

    .navbar-dark .navbar-brand h1 {
        color: var(--secondary);
    }

    .navbar-dark .navbar-brand .site-logo,
    .sticky-top.navbar-dark .navbar-brand .site-logo {
        height: 54px;
        filter: none;
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    
    .sticky-top.navbar-dark {
        position: fixed;
        background: var(--white);
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--secondary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--secondary);
    }

    .sticky-top.navbar-dark .navbar-brand .site-logo {
        filter: none;
    }
}


/*** Carousel ***/
#header-carousel .carousel-item {
    height: clamp(420px, 72vh, 680px);
}

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

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--primary-rgb), .78);
    z-index: 1;
}

@media (max-width: 576px) {
    #header-carousel .carousel-item {
        height: 460px;
    }

    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.section-title h1,
.section-title h5 {
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--secondary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: var(--white);
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@-webkit-keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}


/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-emergency-card {
    height: 300px;
}

.service-item h4,
.service-emergency-card h3 {
    text-transform: uppercase;
}

.why-choose-grid h4 {
    text-transform: uppercase;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--muted-border);
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--secondary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--white) !important;
    box-shadow: 0 0 30px var(--muted-border);
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px var(--muted-border);
}

.team-item:hover .team-social {
    background: rgba(var(--primary-rgb), .78);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img {
    transition: .5s;
}

.team-item:hover .team-img img {
    transform: scale(1.15);
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

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

.bg-header {
    background: linear-gradient(rgba(var(--primary-rgb), .78), rgba(var(--primary-rgb), .78)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.product-bg-header {
    background-image: linear-gradient(rgba(var(--primary-rgb), .74), rgba(var(--primary-rgb), .74)), url(../img/transformador-transformadores.jpg);
}

.news-bg-header {
    background-image: linear-gradient(rgba(var(--primary-rgb), .74), rgba(var(--primary-rgb), .74)), url(../img/transformador-eletrico-e-comportamento-em-picos.jpeg);
}

.page-header {
    margin-bottom: 35px;
}

.page-header .row {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.contact-main {
    padding-top: 1.5rem !important;
}

.contact-main .container {
    padding-top: 1.5rem !important;
}

.product-page-header {
    margin-bottom: 0;
}

.product-intro {
    padding-top: 2rem !important;
}

.product-intro .container {
    padding-top: 1rem !important;
}

@media (max-width: 767.98px) {
    .product-intro .visual-tall {
        display: none;
    }

    .product-intro {
        padding-bottom: 3rem !important;
    }

    .product-intro .container {
        padding-bottom: 2rem !important;
    }

    .product-listing {
        padding-top: 1rem !important;
    }
}

.page-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-family: 'Nunito', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.page-breadcrumb a,
.page-breadcrumb span {
    color: var(--white);
}

.page-breadcrumb a:hover {
    color: var(--secondary);
}

.page-breadcrumb a + a::before {
    content: "/";
    margin-right: 10px;
    color: var(--secondary);
    font-weight: 800;
}

.page-breadcrumb span::before {
    content: "/";
    margin-right: 10px;
    color: var(--secondary);
    font-weight: 800;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

.error-page {
    min-height: 720px;
    display: flex;
    align-items: center;
    padding: 170px 0 90px;
    background:
        linear-gradient(rgba(var(--primary-rgb), .86), rgba(var(--primary-rgb), .78)),
        url(../img/torres-energia2.jpg) center center / cover no-repeat;
}

.error-panel {
    max-width: 780px;
    color: var(--white);
}

.error-code {
    margin-bottom: 18px;
    color: var(--secondary);
    font-family: 'Nunito', sans-serif;
    font-size: clamp(86px, 18vw, 180px);
    font-weight: 800;
    line-height: .82;
}

.error-panel .section-title h1,
.error-panel .section-title h5,
.error-copy {
    color: var(--white);
}

.error-panel .section-title::after {
    background: var(--secondary);
}

.error-copy {
    max-width: 640px;
    margin-bottom: 32px;
    font-size: 1.15rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.error-page-401 {
    background:
        linear-gradient(rgba(var(--primary-rgb), .88), rgba(var(--primary-rgb), .8)),
        url(../img/tensao-eletrica-energia.jpg) center center / cover no-repeat;
}

.error-page-403 {
    background:
        linear-gradient(rgba(var(--primary-rgb), .88), rgba(var(--primary-rgb), .8)),
        url(../img/torre-energia4.jpeg) center center / cover no-repeat;
}

.error-page-500 {
    background:
        linear-gradient(rgba(var(--primary-rgb), .88), rgba(var(--primary-rgb), .8)),
        url(../img/transformador-eletrico-e-comportamento-em-picos.jpeg) center center / cover no-repeat;
}

@media (max-width: 576px) {
    .error-page {
        min-height: 620px;
        padding: 130px 0 70px;
    }

    .error-actions .btn {
        width: 100%;
    }
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}
