@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 Extra Pequenos (até 600px) */
@media screen and (max-width: 600px) {
    body {
        background-size: contain;
        background-position: top center;
        background-color: var(--cor-fundo);
    }

    /* Typing text - permitir quebra de linha no mobile */
    .typing-text {
        white-space: normal;
        overflow: visible;
        animation: none;
        border-right: none;
        font-size: 1rem;
        text-align: center;
    }

    /* Header Mobile - Compacto e Horizontal */
    header {
        flex-direction: row;
        height: 70px;
        padding: 10px 15px;
        margin: 10px;
        width: calc(100% - 20px);
        border-radius: 10px;
        gap: 10px;
    }

    header.scrolled {
        height: 60px;
        margin: 5px 10px;
        padding: 8px 12px;
    }

    header .logo img {
        display: none;
    }

    header.scrolled .logo img {
        display: none;
    }

    /* Esconde o menu desktop no mobile */
    header nav {
        display: none;
    }

    /* Social icons no mobile */
    header .social-icons {
        gap: 8px;
        margin-left: auto;
    }

    header .social-icons a {
        width: 32px;
        height: 32px;
    }

    header .social-icons a i {
        font-size: 0.9rem;
    }

    .home1 {
        height: auto;
        padding: 120px 16px 50px;
        text-align: center;
        min-height: auto;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .home1 h1 {
        font-size: 1.8em;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .home1 p {
        font-size: 1rem;
        margin-bottom: 20px;
        padding: 0 5px;
    }

    /* CTA Principal - Dominante e thumb-friendly */
    .cta-button.cta-primary {
        display: block;
        width: 90%;
        max-width: none;
        font-size: 1.1rem;
        font-weight: 700;
        padding: 16px 24px;
        min-height: 54px;
        border-radius: 12px;
        margin: 0 auto;
        letter-spacing: 0.3px;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    }

    .home2 {
        padding: 40px 15px;
        text-align: center;
    }

    .beneficios-grid {
        padding: 0 10px;
        gap: 15px;
    }

    .beneficio-item {
        padding: 15px;
    }

    .beneficio-item h3 {
        font-size: 1rem;
    }

    .beneficio-item p {
        font-size: 0.85rem;
    }

    .conteudo1 h2#segu,
    .conteudo1 p#segu {
        font-size: 1rem;
        padding: 0 10px;
    }

    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }

    .servico-card {
        padding: 25px 20px;
        min-height: 48px;
    }

    .numeros-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .numero-item {
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .social-footer {
        justify-content: center;
    }

    /* WhatsApp mobile */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-tooltip {
        display: none;
    }

    /* Ajustes para o formulário de contato */
    .contato-rapido {
        padding: 40px 15px;
    }

    .contato-rapido h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    #form-contato {
        padding: 0;
    }

    #form-contato input,
    #form-contato textarea {
        padding: 10px;
        font-size: 16px;
        /* Evita zoom em iOS */
    }

    #form-contato button {
        width: 100%;
        max-width: none;
        padding: 12px 20px;
    }
}

/* Tablets (601px até 768px) */
@media screen and (min-width: 601px) and (max-width: 768px) {
    body {
        background-size: cover;
        background-position: center 30%;
    }

    header {
        padding: 10px;
        margin: 0;
        background-color: rgba(15, 23, 42, 0.95);
    }

    .menu {
        gap: 15px;
    }

    ul>li>a {
        font-size: 0.9rem;
        padding: 8px 10px;
    }

    .home1 {
        height: auto;
        padding: 140px 30px 80px;
    }

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

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

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Tablets Grandes e Notebooks (769px até 992px) */
@media screen and (min-width: 769px) and (max-width: 992px) {
    .home1 h1 {
        font-size: 3em;
    }

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

/* Desktops (993px até 1200px) */
@media screen and (min-width: 993px) and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

/* Telas Grandes (acima de 1200px) */
@media screen and (min-width: 1201px) {
    .container {
        max-width: 1140px;
    }
}

/* Menu Mobile */
@media screen and (max-width: 768px) {
    nav .menu {
        display: none;
    }

    .menu-mobile {
        display: block;
    }

    .menu-items {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(15, 23, 42, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 8px 0;
        min-width: 180px;
        margin-top: 10px;
    }

    header {
        height: 50px;
        padding: 5px 15px;
        margin: 0;
        justify-content: flex-end;
        background-color: transparent;
        backdrop-filter: none;
    }

    header .logo {
        display: none;
    }

    header .social-icons {
        display: none;
    }
}

/* 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) {
    body {
        /* Avoid tonal bands caused by `contain` and iOS background rendering */
        background-size: cover !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }

    .home1 {
        margin: 0 !important;
        padding: 105px 16px 28px !important;
        background: transparent !important;
    }

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

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

@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));
    }
}
