@charset "UTF-8";

/*Todas as demas midias*/

/*typical device breakpoints
Pequenas telas: ate 600px
Celulares: de 600ps ate 768px
Tablets: de 768px ate 992px
Desktops: de 992px ate 1200px
Grandes telas : maior que 1200px*/

@media print {

    /*empressora*/
    * {
        font-family: 'courier new';
    }

    img#phone {
        display: none
    }

    img#tablet {
        display: none
    }

    img#impressora {
        display: none
    }

    img#tv {
        display: none
    }

    img#pc {
        display: none
    }
}

@media screen and (min-width: 768px) and (max-width: 992px) {
    /*tablet*/


    img#phone {
        display: none
    }

    img#tablet {
        display: none
    }

    img#impressora {
        display: none
    }

    img#tv {
        display: none
    }

    img#pc {
        display: none
    }
}

@media screen and (min-width: 992px) and (max-width: 1200px) {
    /*desktop*/


    img#phone {
        display: none
    }

    img#tablet {
        display: none
    }

    img#impressora {
        display: none
    }

    img#tv {
        display: none
    }

    img#pc {
        display: none
    }
}

@media screen and (min-width: 1200px) {
    /*grandes telas*/


    img#phone {
        display: none
    }

    img#tablet {
        display: none
    }

    img#impressora {
        display: none
    }

    img#tv {
        display: none
    }

    img#pc {
        display: none
    }
}

/* Dispositivos Móveis (até 768px) */
@media screen and (max-width: 768px) {
    /* No mobile, o background no body com cover+scroll nao funciona
       porque o body e muito alto (pagina inteira). Aplicamos a imagem
       diretamente na .home1 que tem min-height:100vh. */
    body {
        background-image: none !important;
        background-color: var(--cor-fundo);
    }

    /* Ocultar icones sociais no header mobile */
    header .social-icons {
        display: none !important;
    }

    /* Header Mobile - Alinhado e Funcional */
    header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        min-height: 74px !important;
        padding: 8px 18px !important;
        margin: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
        top: 0 !important;
        left: 0 !important;
        background-color: rgba(15, 34, 51, 0.96) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        z-index: 2000 !important;
        border: none !important;
    }

    header .logo {
        display: block !important;
        margin: 0 !important;
    }

    header .logo img {
        display: block !important;
        width: 142px !important;
        height: auto !important;
        border-radius: 0 !important;
        object-fit: contain !important;
    }

    header.scrolled {
        min-height: 68px !important;
        background-color: rgba(15, 34, 51, 0.98) !important;
    }

    header.scrolled .logo img {
        width: 132px !important;
        height: auto !important;
    }

    /* Esconde o menu desktop e ícones sociais */
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 10px !important;
        background: rgba(244, 241, 234, 0.06) !important;
        border-radius: 14px !important;
        border: 1px solid rgba(200, 168, 107, 0.16);
        cursor: pointer;
        width: 44px;
        height: 44px;
        transition: all 0.3s ease;
    }

    .menu-toggle:hover {
        background: rgba(200, 168, 107, 0.12) !important;
        border-color: var(--cor-texto-1);
    }

    .menu-toggle i {
        color: white;
        font-size: 1.2rem;
    }

    /* Menu Mobile Overlay */
    header nav, 
    .site-header nav,
    .header-nav {
        display: none;
        position: fixed;
        top: 74px;
        left: 0;
        width: 100%;
        height: calc(100vh - 74px);
        background: rgba(15, 34, 51, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 1500;
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    header nav.active,
    .site-header nav.active,
    .header-nav.active {
        display: flex !important;
        opacity: 1;
        transform: translateY(0);
    }

    header nav ul.menu,
    .site-header nav ul.menu,
    .header-nav ul.menu,
    .site-header .header-nav {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100%;
        padding: 40px 20px !important;
        align-items: center !important;
    }

    header nav ul.menu li {
        width: 100%;
        text-align: center;
    }

    header nav ul.menu li a {
        font-size: 1.04rem !important;
        padding: 15px !important;
        justify-content: center !important;
        width: 100%;
        border-radius: 14px;
    }

    /* Ajuste para o Cookie Banner no Mobile */
    .cookie-banner {
        padding: 1rem !important;
        text-align: left !important;
    }

    .cookie-banner p {
        font-size: 0.8rem !important;
        margin-bottom: 0.8rem !important;
    }

    .cookie-buttons {
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
    }

    .cookie-btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
        flex: 1;
        text-align: center;
    }

    /* Hero Section mobile - aplicar foto diretamente aqui */
    .home1 {
        padding: 110px 20px 50px !important;
        min-height: 100vh !important;
        background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(15, 23, 42, 0.85)),
                          url(../img/FT-HOME.png) !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }

    .home1 h1 {
        font-size: 2em !important;
        line-height: 1.2;
    }

    .home1 p {
        font-size: 1.1rem !important;
    }

    .typing-text {
        white-space: normal !important;
        overflow: visible !important;
        animation: none !important;
        border-right: none !important;
        font-size: 1rem !important;
        text-align: center;
        max-width: 90%;
    }

    .cta-button.cta-primary {
        display: block !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    /* General responsive grids */
    .beneficios-grid,
    .servicos-grid,
    .numeros-grid,
    .footer-content {
        grid-template-columns: 1fr !important;
    }

    .numero-item {
        padding: 15px !important;
    }

    .whatsapp-float {
        bottom: 20px !important;
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
    }
}

/* Ajustes de Impressão */
@media print {

    header,
    footer,
    .social-icons,
    .cta-button,
    .contato-rapido,
    .servicos-destaque {
        display: none;
    }

    body {
        background: none;
        color: #000;
    }

    .home1,
    .home2 {
        padding: 20px;
    }

    .home1 h1 {
        color: #000;
        font-size: 24pt;
    }

    .conteudo2 p {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* Usar unidades relativas */
:root {
    --font-size-base: 16px;
    --font-size-large: 1.25rem;
    --font-size-xlarge: 1.5rem;
}

/* Adicionar breakpoints intermediários */
@media screen and (max-width: 480px) {
    /* Estilos para telas muito pequenas */
}

/* Media Queries para Calculadora de Férias */

/* Tablets e dispositivos menores */
@media (max-width: 1200px) {
    .calculadora-container {
        width: 100%;
        max-width: 100%;
        margin: 0.5rem auto;
        padding: 1rem;
        gap: 1.5rem;
        overflow-x: hidden;
    }

    .entrada-dados,
    .passo-a-passo,
    .resultados {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        margin: 0 auto;
    }
}

/* Dispositivos móveis */
@media (max-width: 768px) {
    .calculadora-page {
        width: 100%;
        padding: 0;
        padding-top: 70px;
        overflow-x: hidden;
    }

    .calculadora-hero {
        width: 90%;
        margin: 0.5rem auto;
        padding: 1rem;
    }

    .calculadora-container {
        width: 90%;
        margin: 0.5rem auto;
        padding: 0.5rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .entrada-dados,
    .passo-a-passo,
    .resultados {
        width: 100%;
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
        box-sizing: border-box;
    }

    .form-group {
        width: 100%;
        margin-bottom: 0.8rem;
    }

    .form-group input[type="number"],
    .form-group input[type="text"],
    .form-group select {
        width: 100%;
        box-sizing: border-box;
        padding: 0.6rem;
        font-size: 16px;
    }

    .resultado-cards {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .card {
        width: 100%;
        box-sizing: border-box;
    }

    .grafico-container {
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    table {
        width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .detalhes-calculo {
        width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
    }
}

/* Ajustes específicos para telas muito pequenas */
@media (max-width: 360px) {
    .calculadora-page {
        padding: 0;
        padding-top: 60px;
    }

    .calculadora-hero {
        width: 95%;
        margin: 0.3rem auto;
        padding: 0.8rem;
    }

    .calculadora-container {
        width: 95%;
        margin: 0.3rem auto;
    }
}

/* Modo paisagem em dispositivos móveis */
@media screen and (max-width: 900px) and (orientation: landscape) {
    .home1 {
        height: auto;
        padding: 100px 20px 40px;
    }

    .home1 h1 {
        font-size: 2.5em;
    }

    .servicos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Media Queries para Calculadoras */
@media screen and (max-width: 480px) {
    .calculadora-container {
        padding: 1rem;
        margin: 0.5rem;
    }

    .entrada-dados {
        gap: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input[type="number"] {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .btn-calcular,
    .btn-exemplo {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .resultado-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        padding: 1rem;
    }

    .tooltip .tooltip-text {
        width: 160px;
        font-size: 0.8rem;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .calculadora-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .resultado-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .calculadora-container {
        max-width: 90%;
        margin: 0 auto;
    }

    .resultado-cards {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Mobile visual fixes for home */
@media screen and (max-width: 600px) {
    .home1 {
        margin: 0 !important;
        padding: 100px 16px 28px !important;
        /* Nao sobrescrever o background-image aplicado no bloco 768px */
    }

    .cta-button.cta-primary {
        width: 100% !important;
        max-width: 340px !important;
    }

    .home2 {
        margin-top: 0 !important;
        padding: 26px 16px 36px !important;
    }
}

/* ============================================================
   Desktop Only — re-enable parallax (fixed) effect
   Only applied on 992px+ where iOS/Android restrictions don't apply
   ============================================================ */
@media screen and (min-width: 992px) {
    body {
        background-attachment: fixed;
    }
}

@media screen and (orientation: landscape) and (max-height: 600px) {
    .calculadora-container {
        max-height: 85vh;
        overflow-y: auto;
        padding-right: 1rem;
    }

    .entrada-dados {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .resultado-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
