/* ------------------------------------------------
  Custom Styles - Nebula Code
  Customizações específicas do site
------------------------------------------------ */

/* ========================
   Fix Dropdown Menu - Desktop
======================== */

@media (min-width: 992px) {
    /* Corrige o fundo branco definido no base.css linha 182 */
    .navbar-nav .dropdown > .dropdown-menu {
        background: var(--themeht-primary2-color) !important;
    }
}

/* ========================
   NGA Menu - Destaque
======================== */

/* NGA como item em destaque */
.nav-item.dropdown .dropdown-menu .nga-highlight {
    font-weight: 600 !important;
    color: var(--themeht-primary-color) !important;
}

/* Ícone antes do texto NGA */
.nav-item.dropdown .dropdown-menu .nga-highlight::before {
    content: "\f3ed";
    font-family: 'bootstrap-icons' !important;
    font-size: 14px;
    margin-right: 8px;
    color: var(--themeht-primary-color);
}

/* Hover state para NGA */
.nav-item.dropdown .dropdown-menu .nga-highlight:hover {
    color: var(--themeht-white-color) !important;
}

.nav-item.dropdown .dropdown-menu .nga-highlight:hover::before {
    color: var(--themeht-white-color);
}

/* ========================
   Divisor do dropdown
======================== */

.navbar-nav .dropdown-menu .dropdown-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 12px 0;
}

/* ========================
   Hero Video Box
======================== */

.banner .video-box {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.banner .video-box video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.banner .video-box:hover video {
    transform: scale(1.02);
}

/* Botão de play centralizado */
.banner .video-box .video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(115deg, var(--themeht-primary-color), var(--themeht-secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    text-decoration: none;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(62, 163, 248, 0.4);
    z-index: 10;
}

.banner .video-box .video-play-btn i {
    margin-left: 4px;
}

.banner .video-box:hover .video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.banner .video-box .video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 15px 40px rgba(62, 163, 248, 0.6);
}

/* Overlay escuro ao hover */
.banner .video-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.banner .video-box:hover::after {
    opacity: 1;
}

/* Responsivo */
@media (max-width: 767px) {
    .banner .video-box .video-play-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
        opacity: 1;
    }
}

/* ========================
   Video Modal (Magnific Popup)
======================== */

.mfp-iframe-holder .mfp-content {
    max-width: 1200px;
    width: 90%;
}

.mfp-iframe-scaler {
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.mfp-iframe-scaler iframe {
    background: #000;
}

.mfp-fade.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.9;
}

.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
    opacity: 1;
    transform: scale(1);
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
    transform: scale(0.95);
}

/* Video Modal Content */
.video-modal-content {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-content video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
}

.video-popup-modal .mfp-close {
    color: #fff;
    font-size: 36px;
    top: -40px;
    right: 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.video-popup-modal .mfp-close:hover {
    opacity: 1;
}

.video-popup-modal .mfp-container {
    padding: 40px 20px;
}

/* ========================
   Section Titles Enhancement
======================== */

.theme-title h6 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(115deg, var(--themeht-primary-color), var(--themeht-secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

/* ========================
   Products Section Fix
======================== */

/* Cards com fundo branco sólido na seção light-bg */
.light-bg .featured-item.style-1 {
    background: #fff;
    box-shadow: 0 10px 40px rgba(8, 10, 55, 0.1);
}

/* Ajustar padding-top da seção para título não sobrepor wave */
section.light-bg.position-relative {
    padding-top: 100px;
}

/* ========================
   Menu Centralizado na Página
   Centraliza o menu em relação à largura total, não ao espaço restante
======================== */

.header .navbar {
    position: relative;
}

.header .navbar-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.header .navbar-nav .nav-item {
    position: relative;
    z-index: 10;
}

.header .navbar-nav .nav-link {
    pointer-events: auto !important;
    cursor: pointer;
}

/* Desktop: esconder hamburger, mostrar menu */
@media (min-width: 992px) {
    .header .ht-nav-toggle {
        display: none !important;
    }
}

/* Mobile: esconder menu, mostrar hamburger */
@media (max-width: 991.98px) {
    .header .navbar-nav {
        display: none !important;
    }

    .header .ht-nav-toggle {
        display: flex !important;
    }

    /* Esconder pseudo-elementos decorativos no mobile */
    .navbar-nav::before,
    .navbar-nav::after,
    #ht-main-nav .mobile-nav::before,
    #ht-main-nav .mobile-nav::after {
        display: none !important;
    }
}

/* ========================
   Menu Ativo - Header Navigation
======================== */

/* Estilo para o item de menu ativo */
.navbar-nav .nav-link.active {
    color: var(--themeht-primary-color) !important;
    font-weight: 600;
    position: relative;
}

/* Linha indicadora abaixo do item ativo */
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(115deg, var(--themeht-primary-color), var(--themeht-secondary-color));
    border-radius: 2px;
}

/* Destaque NGA no header - apenas quando ativo */
.navbar-nav .nav-link.nga-highlight {
    /* Herda cor padrão do menu */
}

/* NGA ativo */
.navbar-nav .nav-link.nga-highlight.active {
    color: var(--themeht-primary-color) !important;
    font-weight: 600;
}

/* ========================
   Header Breadcrumb
   Breadcrumb renderizado dentro do header para evitar z-index issues
======================== */

#header-breadcrumb {
    background: transparent;
    position: relative;
    z-index: 1;
}

/* ========================
   Fixed Header - Estilo ao rolar
   Sobrescreve o fundo branco padrão para fundo escuro
======================== */

#header-wrap.fixed-header {
    background: var(--themeht-primary2-color) !important;
}

/* Remover o estilo de "pill" do navbar quando fixo */
#header-wrap.fixed-header .navbar-nav {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

#header-wrap.fixed-header .navbar-nav:before,
#header-wrap.fixed-header .navbar-nav:after {
    display: none;
}

/* Manter links do menu visíveis no fundo escuro */
#header-wrap.fixed-header .navbar-nav .nav-link {
    color: var(--themeht-white-color);
}

#header-wrap.fixed-header .navbar-nav .nav-link:hover,
#header-wrap.fixed-header .navbar-nav .nav-link.active {
    color: var(--themeht-primary-color) !important;
}

/* Quando o header está fixo (scroll), ajustar o breadcrumb */
#header-wrap.fixed-header + #header-breadcrumb {
    padding-top: 100px;
}

/* Breadcrumb items - manter estilo consistente */
#header-breadcrumb .breadcrumb {
    margin-bottom: 0;
}

#header-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--themeht-body-color);
}

/* ========================
   Blog/Artigos - Ajuste de padding para header
   Compensa a altura do header absoluto nas páginas de artigos
======================== */

.blog-hero {
    padding-top: 200px !important;
}

/* ========================
   Mobile Navigation Menu
   Estilos para o menu lateral mobile (main-nav)
   O painel tem fundo branco, então texto deve ser escuro
======================== */

#ht-main-nav .mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

#ht-main-nav .mobile-nav .nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#ht-main-nav .mobile-nav .nav-item:last-child {
    border-bottom: none;
}

#ht-main-nav .mobile-nav .nav-link {
    display: block;
    padding: 15px 0;
    color: var(--themeht-text-color);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

#ht-main-nav .mobile-nav .nav-link:hover {
    color: var(--themeht-primary-color);
    padding-left: 10px;
}

#ht-main-nav .mobile-nav .nav-link.active {
    color: var(--themeht-primary-color);
    font-weight: 600;
}

/* ================================================
   RESPONSIVE DESIGN - Mobile First Approach
   Breakpoints:
   XS: < 576px (extra small phones)
   SM: 576px - 767px (phones landscape)
   MD: 768px - 991px (tablets)
   LG: 992px - 1199px (desktops)
   XL: >= 1200px (large desktops)
================================================ */

/* ========================
   Tipografia Responsiva
======================== */

/* Extra Small (< 576px) */
@media (max-width: 575.98px) {
    h1 {
        font-size: 36px !important;
        line-height: 44px !important;
    }
    h2 {
        font-size: 28px !important;
        line-height: 36px !important;
    }
    h3 {
        font-size: 22px !important;
        line-height: 30px !important;
    }
    h4 {
        font-size: 18px !important;
        line-height: 26px !important;
    }
    .theme-title h2 {
        font-size: 28px !important;
        line-height: 36px !important;
    }
    .lead {
        font-size: 16px !important;
        line-height: 26px !important;
    }
    p {
        font-size: 14px;
        line-height: 24px;
    }
}

/* Small (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1 {
        font-size: 42px !important;
        line-height: 52px !important;
    }
    h2 {
        font-size: 32px !important;
        line-height: 40px !important;
    }
}

/* ========================
   Seções - Padding Responsivo
======================== */

@media (max-width: 767.98px) {
    section {
        padding: 60px 0 !important;
    }
    section.pt-0 {
        padding-top: 0 !important;
    }
    section.pb-0 {
        padding-bottom: 0 !important;
    }
    section.p-0 {
        padding: 0 !important;
    }
    .banner {
        padding: 180px 0 60px !important;
    }
    .page-content {
        padding-top: 0;
    }
}

@media (max-width: 575.98px) {
    section {
        padding: 40px 0 !important;
    }
    .banner {
        padding: 160px 0 40px !important;
    }
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ========================
   Botões Responsivos
======================== */

@media (max-width: 767.98px) {
    .themeht-btn {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
    .themeht-btn span {
        font-size: 14px;
    }
    /* Botão de CTA principal - quebra em duas linhas se necessário */
    .banner .themeht-btn {
        white-space: normal;
        text-align: center;
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .themeht-btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
        width: 100%;
        justify-content: center;
    }
    .d-sm-flex {
        flex-direction: column;
        gap: 15px;
    }
}

/* ========================
   Formulário de Contato Responsivo
======================== */

@media (max-width: 767.98px) {
    #contact-form .row .col-md-4 {
        margin-bottom: 15px;
    }
    .contact-box {
        padding: 25px !important;
        margin-top: 30px;
    }
    .contact-box .contact-info li {
        padding-left: 50px !important;
        margin-bottom: 20px !important;
    }
    .contact-box .contact-info li i {
        font-size: 30px !important;
    }
    .contact-box .contact-info li p,
    .contact-box .contact-info li a {
        font-size: 16px !important;
        line-height: 24px !important;
    }
}

@media (max-width: 575.98px) {
    .contact-box {
        padding: 20px !important;
    }
    .contact-box .theme-title h2 {
        font-size: 24px !important;
    }
}

/* ========================
   Cards e Features Responsivos
======================== */

@media (max-width: 767.98px) {
    .featured-item {
        padding: 25px !important;
        margin-bottom: 20px;
    }
    .featured-item .featured-icon {
        margin-bottom: 15px;
    }
    .featured-item .featured-icon i {
        font-size: 32px !important;
    }
    .featured-item .featured-title h4 {
        font-size: 18px !important;
    }
    .service-item {
        padding: 25px !important;
        margin-bottom: 20px;
    }
    .service-item .service-icon i {
        font-size: 40px;
    }
    .service-item .service-title h4 {
        font-size: 18px !important;
    }
    .post-card {
        margin-bottom: 20px;
    }
    .post-card .post-title h4 {
        font-size: 16px !important;
    }
}

@media (max-width: 575.98px) {
    .featured-item {
        padding: 20px !important;
    }
    .service-item {
        padding: 20px !important;
    }
}

/* ========================
   Footer Responsivo
======================== */

@media (max-width: 767.98px) {
    .footer {
        padding: 60px 15px 30px !important;
        margin-bottom: 0 !important;
    }
    .footer-logo img {
        height: 100px !important;
    }
    .primary-footer h5 {
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .footer-menu li {
        margin-bottom: 10px;
    }
    .copyright {
        margin-top: 30px;
        padding-top: 20px;
        text-align: center;
    }
    .social-icons.footer-social {
        justify-content: center;
        margin-top: 20px;
    }
}

@media (max-width: 575.98px) {
    .footer {
        padding: 40px 15px 20px !important;
    }
    .footer-logo img {
        height: 80px !important;
    }
    .media-icon li {
        font-size: 16px;
        padding-left: 40px;
    }
    .media-icon li i {
        font-size: 24px;
    }
}

/* ========================
   Testimonials Responsivo
======================== */

@media (max-width: 767.98px) {
    .testimonial-box {
        padding: 15px !important;
    }
    .testimonial p {
        font-size: 16px !important;
        line-height: 28px !important;
    }
    .testimonial-carousel .controls {
        margin-top: 20px;
    }
    .testimonial-carousel .controls li {
        width: auto !important;
        margin: 5px !important;
    }
    .testimonial-carousel .controls li img {
        width: 50px !important;
        height: 50px !important;
        border-radius: 50%;
        object-fit: cover;
    }
    .testimonial .testimonial-img img {
        width: 80px !important;
        height: 80px !important;
    }
    .testimonial-caption h5 {
        font-size: 16px !important;
    }
    .testimonial-caption label {
        font-size: 13px !important;
    }
}

/* ========================
   Fix Inline Styles - Products Section
======================== */

@media (max-width: 991.98px) {
    /* Corrige margin-top: -150px da seção produtos */
    .light-bg .theme-title {
        margin-top: 0 !important;
    }
    /* Corrige margin-top: 150px do row de produtos */
    .light-bg .row[style*="margin-top: 150px"] {
        margin-top: 30px !important;
    }
    /* Corrige margin-top inline nos elementos da seção produtos */
    section.light-bg .col-lg-6[style*="margin-top"] {
        margin-top: 0 !important;
    }
}

@media (max-width: 767.98px) {
    /* Seção light-bg ajustes */
    section.light-bg {
        padding-top: 60px !important;
    }
    /* Blog section margin */
    section[style*="margin-top: 100px"] {
        margin-top: 40px !important;
    }
}

/* ========================
   Marquee Responsivo
======================== */

@media (max-width: 767.98px) {
    .marquee-text span {
        font-size: 50px !important;
        line-height: 60px !important;
    }
    .marquee-text i {
        font-size: 12px !important;
        margin: 0 15px;
    }
}

@media (max-width: 575.98px) {
    .marquee-text span {
        font-size: 36px !important;
        line-height: 46px !important;
    }
}

/* ========================
   Hero Video Box Responsivo
======================== */

@media (max-width: 991.98px) {
    /* Reordenar: texto primeiro, vídeo depois em mobile */
    .banner-1 > .container > .row {
        display: flex;
        flex-direction: column;
    }
    .banner-1 .col-lg-6.order-lg-1 {
        order: 2 !important;
    }
    .banner-1 .col-lg-6:not(.order-lg-1) {
        order: 1 !important;
    }
    .banner .video-box {
        margin-bottom: 40px;
        margin-top: 30px;
    }
}

@media (max-width: 767.98px) {
    .banner .video-box {
        margin-bottom: 30px;
    }
    .banner .video-box .video-play-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* ========================
   Portfolio Filter Responsivo
======================== */

@media (max-width: 767.98px) {
    .portfolio-filter {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    .portfolio-filter button {
        padding: 8px 16px !important;
        font-size: 13px !important;
        margin: 0 !important;
    }
    .portfolio-item {
        margin-bottom: 20px;
    }
    .portfolio-title {
        padding: 15px;
    }
    .portfolio-title h4 {
        font-size: 16px;
    }
}

/* ========================
   Scroll Top e Utilitários
======================== */

@media (max-width: 767.98px) {
    .scroll-top {
        right: 20px !important;
        bottom: 20px !important;
        width: 50px !important;
        height: 50px !important;
    }
    .scroll-top::after,
    .scroll-top::before {
        line-height: 50px !important;
        height: 50px !important;
        width: 50px !important;
        font-size: 24px !important;
    }
}

/* ========================
   Blog Cards Responsivos
======================== */

@media (max-width: 767.98px) {
    .post-card {
        margin-bottom: 25px;
    }
    .post-meta li {
        font-size: 12px;
        margin-right: 10px;
    }
    .post-image img {
        height: 180px !important;
    }
    .post-desc {
        padding: 15px !important;
    }
    .post-desc p {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .post-date {
        font-size: 12px !important;
    }
}

/* ========================
   Blog Article/Hero Responsivo
======================== */

@media (max-width: 767.98px) {
    .blog-hero {
        padding-top: 140px !important;
    }
}

@media (max-width: 575.98px) {
    .blog-hero {
        padding-top: 120px !important;
    }
}

/* ========================
   Step/Process Items Responsivo
======================== */

@media (max-width: 767.98px) {
    .step-item {
        padding: 25px !important;
        margin-bottom: 20px;
    }
    .step-item h4 {
        font-size: 18px !important;
    }
    .step-item .step-icon i {
        font-size: 36px;
    }
    .step-process-area {
        padding: 60px 15px !important;
    }
}

/* ========================
   Price Tables Responsivo
======================== */

@media (max-width: 767.98px) {
    .price-table {
        padding: 25px !important;
        margin-bottom: 30px;
    }
    .price-table .price-title {
        font-size: 20px !important;
    }
    .price-table .price-value h2 {
        font-size: 36px !important;
    }
}

/* ========================
   Social Icons Responsivo
======================== */

@media (max-width: 767.98px) {
    .social-icons li {
        margin: 0 5px !important;
    }
    .social-icons li a {
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 16px !important;
    }
}

/* ========================
   CTA Section Responsivo
======================== */

@media (max-width: 767.98px) {
    .step-process-area .theme-title h2 {
        font-size: 24px !important;
        line-height: 32px !important;
    }
    .step-process-area .theme-title p {
        font-size: 14px !important;
    }
}

/* ========================
   About Section Shape Image Responsivo
======================== */

@media (max-width: 991.98px) {
    /* Reordenar: título primeiro, imagem depois em mobile */
    section.pt-0 > .container > .row {
        display: flex;
        flex-direction: column;
    }
    /* Coluna da imagem (primeira no HTML) vai para segundo */
    section.pt-0 .col-lg-6:has(.shape-img-bg) {
        order: 2 !important;
    }
    /* Coluna do texto (segunda no HTML) vai para primeiro */
    section.pt-0 .col-lg-6:has(.theme-title) {
        order: 1 !important;
    }
}

@media (max-width: 767.98px) {
    .shape-img-bg {
        margin-bottom: 30px;
        margin-top: 30px;
    }
    .shape-img-bg img {
        border-radius: 15px;
    }
    .img-bg-shape {
        display: none;
    }
}

/* ========================
   List Icons Responsivo
======================== */

@media (max-width: 767.98px) {
    .list-icon li {
        font-size: 14px !important;
        margin-bottom: 10px;
    }
    .list-icon li i {
        font-size: 14px;
    }
}

