/* Estilos específicos para melhorar a responsividade em todas as páginas */

/* Ajustes gerais para mobile */
@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
    
    .header-container {
        padding: 10px 0;
    }
    
    .logo {
        font-size: 22px;
        margin-left: 5px;
    }
    
    .header-btn {
        font-size: 12px;
        padding: 6px 12px;
        margin-right: 5px;
    }
    
    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .form-container {
        padding: 20px 15px;
    }
    
    .form-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .form-control {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .service-content {
        padding: 5px 0;
    }
    
    .service-image-container {
        text-align: center;
        margin: 0 auto;
    }
    
    .service-image {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }
    
    .how-it-works {
        padding: 30px 0;
    }
    
    .step-item {
        margin-bottom: 25px;
    }
    
    .testimonial-item {
        margin-bottom: 15px;
    }
    
    .rating-section {
        margin-bottom: 15px;
    }
}

/* Ajustes para tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .service-title {
        font-size: 30px;
    }
    
    .service-content {
        flex-direction: column;
    }
    
    .service-text {
        margin-bottom: 20px;
    }
    
    .service-image-container {
        text-align: center;
    }
    
    .service-image {
        max-width: 80%;
        margin: 0 auto;
    }
    
    /* Ajustes específicos para a seção hero em tablets */
    .hero-content {
        flex-direction: row !important;
        align-items: center;
        gap: 30px;
    }
    
    .hero-text {
        flex: 1;
        margin-right: 20px;
        margin-bottom: 0;
    }
    
    .hero-image-container {
        flex: 1;
        order: 2;
        margin-bottom: 0;
    }
    
    .hero-image {
        max-width: 100%;
        margin: 0;
    }
    
    /* Correção para eliminar barra branca lateral em tablets */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        margin: 0;
    }
    
    /* Ajustar campos de seleção para ocupar toda a largura em tablets */
    .select-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 20px;
    }
    
    .select-wrapper {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .custom-select {
        width: 100%;
        box-sizing: border-box;
    }
    
    .action-button {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Ajustes para desktop */
@media (min-width: 992px) {
    .container {
        padding: 0 30px;
    }
    
    .service-content {
        display: flex;
        align-items: center;
        gap: 30px;
    }
    
    .service-text {
        flex: 1;
    }
    
    .service-image-container {
        flex: 1;
        text-align: right;
    }
    
    .service-image {
        max-width: 90%;
    }
}

/* Ajustes para cards de serviço na home */
.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-image {
    width: 100%;

    object-position: center;
}

/* Título de serviços disponíveis */
.services-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 80px 0 30px;
    color: #333;
}

@media (max-width: 767px) {
    .services-title {
        font-size: 21px;
        margin: 35px 0 15px;
    }
    
    .service-card {
        margin-bottom: 15px;
    }
}

/* Footer fixo para páginas pendente e confirmado */
.page-with-fixed-footer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-with-fixed-footer main {
    flex: 1;
}

.page-with-fixed-footer footer {
    margin-top: auto;
}

/* Melhorias adicionais de responsividade para 100% compatibilidade */

/* Ajustes para telas muito pequenas (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 35px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .service-selection-title {
        font-size: 25px;
        margin-bottom: 20px;
    }
    
    .select-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .select-wrapper {
        width: 100%;
    }
    
    .custom-select {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .action-button {
        font-size: 16px;
        padding: 15px 20px;
        margin-top: 10px;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card-title {
        font-size: 16px;
    }
    
    .service-card-description {
        font-size: 13px;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .step-item {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .step-icon {
        margin: 0 auto 10px;
    }
    
    .provider-title {
        font-size: 25px;
    }
    
    .provider-description {
        font-size: 14px;
    }
}

/* Ajustes para tablets em modo retrato (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-content {
        flex-direction: row !important;
        align-items: center;
        gap: 20px;
    }
    
    .hero-text {
        flex: 1;
        margin-right: 15px;
        margin-bottom: 0;
    }
    
    .hero-image-container {
        flex: 1;
        order: 2;
        margin-bottom: 0;
    }
    
    .hero-image {
        max-width: 100%;
        margin: 0;
    }
    
    /* Correção para eliminar barra branca lateral em tablets menores */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        margin: 0;
    }
    
    /* Ajustar campos de seleção para ocupar toda a largura em tablets menores */
    .select-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 20px;
    }
    
    .select-wrapper {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .custom-select {
        width: 100%;
        box-sizing: border-box;
    }
    
    .action-button {
        width: 100%;
        box-sizing: border-box;
    }
    
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .step-item {
        text-align: center;
        max-width: 300px;
        margin: 0 auto 25px;
    }
}

/* Ajustes específicos para iPad Air (820x1180) e Surface Pro 7 (912x1368) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Garantir que não há overflow horizontal */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    /* Ajustar o grid de service-cards para tablets */
    .service-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
        justify-items: center;
    }
    
    .service-card {
        width: 100%;
        max-width: 350px;
        box-sizing: border-box;
    }
    
    /* Ajustar hero section para tablets */
    .hero-content {
        flex-direction: row !important;
        align-items: center;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-text {
        flex: 1;
        margin-right: 15px;
        margin-bottom: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-image-container {
        flex: 1;
        order: 2;
        margin-bottom: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-image {
        max-width: 100%;
        margin: 0;
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }
    
    /* Ajustar campos de seleção para ocupar toda a largura */
    .select-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }
    
    .select-wrapper {
        width: 100%;
        margin-bottom: 15px;
        box-sizing: border-box;
    }
    
    .custom-select {
        width: 100%;
        box-sizing: border-box;
    }
    
    .action-button {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Ajustar steps container */
    .steps-container {
        justify-content: space-around;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .step-item {
        flex: 1;
        max-width: 250px;
        box-sizing: border-box;
    }
}

/* Ajustes para desktop pequeno (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        max-width: 1140px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .service-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Ajustes para desktop grande (1201px+) */
@media (min-width: 1201px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .hero-content {
        gap: 50px;
    }
    
    .service-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 55px;
    }
}

/* Ajustes para orientação landscape em dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .benefits-list {
        margin-bottom: 20px;
    }
    
    .benefit-item {
        margin-bottom: 5px;
    }
    
    .service-selection {
        padding: 30px 0;
    }
    
    .how-it-works {
        padding: 40px 0;
    }
}

/* Melhorias para acessibilidade e touch */
@media (hover: none) and (pointer: coarse) {
    .category-item:hover {
        background-color: transparent;
        transform: none;
    }
    
    .category-item:active {
        background-color: #f8f9fa;
        transform: scale(0.98);
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}

/* Ajustes para impressão */
@media print {
    .categories-menu,
    .categories-mobile,
    .header-btn,
    .action-button,
    .btn {
        display: none !important;
    }
    
    .hero-section,
    .service-selection,
    .how-it-works {
        page-break-inside: avoid;
    }
    
    .service-card {
        break-inside: avoid;
    }
}

/* Ajustes para modo escuro (se suportado pelo sistema) */
@media (prefers-color-scheme: dark) {
    /* Manter o design atual, mas preparar para futuras implementações */
}

/* Ajustes para redução de movimento (acessibilidade) */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .category-dropdown {
        transition: none;
    }
    
    .category-mobile-services {
        transition: none;
    }
}






