

/* ===== MELHORIAS MOBILE ===== */
@media (max-width: 991px) {
    /* Navbar flex vertical */
    .navbar-custom .navbar-collapse {
        background-image: linear-gradient(125deg, rgb(25, 46, 88) 0%, rgb(8, 15, 27) 100%);
        padding: 15px 20px;
        border-radius: 8px;
    }

    /* Links centralizados e espaçados */
    .navbar-nav {
        margin-top: 15px;
        flex-direction: column !important;
        align-items: center;
    }

    .navbar-nav .nav-link {
        margin: 8px 0;
        padding: 10px 15px;
        font-size: 1.05rem;
    }

    /* Linha animada continua funcionando */
    .navbar-nav .nav-link::after {
        bottom: -3px;
    }

    /* Logo centralizada e menor */
    .navbar-brand {
        margin: 0 auto;
    }

    .navbar-brand img {
        max-width: 100px;
        max-height: 50px;
    }

    /* Toggler container */
/* Botão toggler com linhas destacadas e borda arredondada */
.navbar-toggler.custom-toggler {
    border: 2px solid #fff;  /* borda azul elegante no botão */
    border-radius: 8px;         /* cantos arredondados */
    padding: 6px 10px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 28px;
    width: 36px;
    background: transparent;
    transition: all 0.3s ease;
}

/* Linhas do hambúrguer */
.navbar-toggler.custom-toggler .toggler-icon {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;    /* cor branca */
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hover do botão */
.navbar-toggler.custom-toggler:hover {
    background-color: rgba(13, 202, 240, 0.1); /* leve destaque azul */
}

/* Ao abrir o menu: animação X */
.navbar-toggler.custom-toggler.collapsed ~ #navMenu.show .toggler-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler.custom-toggler.collapsed ~ #navMenu.show .toggler-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.custom-toggler.collapsed ~ #navMenu.show .toggler-icon:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

}











/* ===== RESPONSIVO HERO ===== */

/* Começa a empilhar em telas menores que 1220px */
@media (max-width: 1220px) {
    .hero-container {
        gap: 20px;
    }

    .hero-text {
        width: 60%;
    }

    .hero-image {
        width: 35%;
    }
}

/* Para tablets e telas médias */
@media (max-width: 991px) {
    .hero-container {
        flex-direction: column; /* texto em cima, imagem embaixo */
        align-items: center;
        text-align: center;
        gap: 40px;
        padding: 0 20px;
    }

    .hero-text, 
    .hero-image {
        width: 100%; /* ocupam toda a largura */
        max-width: 600px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .btn-hero {
        padding: 14px 32px;
    }

    .hero-image img {
        max-width: 80%;
        width: 100%;
    }
}

/* Para celulares pequenos */
@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .btn-hero {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .hero-image img {
        border-radius: 15px;
    }
}














/* ===== RESPONSIVO SERVICES SECTION ===== */

/* Tablets e telas médias */
@media (max-width: 991px) {

    .services-section {
        padding: 70px 20px;
    }

    /* Cabeçalho */
    .services-header h2 {
        font-size: 2rem;
    }

    .services-header p.section-subtitle {
        font-size: 1rem;
        max-width: 500px;
    }

    /* Grid de Cards */
    .row.g-4 {
        row-gap: 30px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon img {
        width: 55%;
        height: 55%;
    }

    .service-card h5 {
        font-size: 1.15rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    /* Diferenciais */
    .services-differentials {
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .services-differentials .diff-item {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    /* CTA */
    .services-cta .cta-text {
        font-size: 1.1rem;
    }

    .btn-cta {
        padding: 12px 32px;
        font-size: 0.95rem;
    }
}

/* Celulares pequenos */
@media (max-width: 576px) {

    .services-section {
        padding: 50px 15px;
    }

    /* Cabeçalho */
    .services-header h2 {
        font-size: 1.7rem;
    }

    .services-header p.section-subtitle {
        font-size: 0.95rem;
        max-width: 100%;
    }

    /* Cards */
    .service-card {
        padding: 25px 15px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon img {
        width: 50%;
        height: 50%;
    }

    .service-card h5 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    /* Diferenciais */
    .services-differentials .diff-item {
        font-size: 0.85rem;
        padding: 6px 14px;
    }

    /* CTA */
    .services-cta .cta-text {
        font-size: 1rem;
    }

    .btn-cta {
        padding: 10px 28px;
        font-size: 0.9rem;
    }
}



















/* ===== RESPONSIVO Portfólio ===== */

/* ===== 2 CARDS ABAIXO DE 1200PX ===== */
@media (max-width: 1200px) {
  .services-carousel-wrapper {
    max-width: calc(360px * 2 + 24px); /* 2 cards visíveis + 1 gap */
    min-width: calc(320px * 2 + 14px); /* 2 cards visíveis + 1 gap */
  }

  .services-carousel .service-card {
    max-width: 360px;
    min-width: 320px;
    height: 360px;
    padding: 30px 25px;
  }

  .service-icon {
    font-size: 46px;
    margin-bottom: 18px;
  }

  .services-carousel .service-card h5 {
    font-size: 1.2rem;
  }

  .services-carousel .service-card p {
    font-size: 1rem;
  }
}

/* ===== 2 CARDS ABAIXO DE 995PX ===== */
@media (max-width: 995px) {
  .services-carousel-wrapper {
    max-width: calc(320px * 2 + 24px); /* ajusta largura dos cards + gap */
    min-width: calc(280px * 2 + 14px); /* ajusta largura dos cards + gap */
  }

  .services-carousel .service-card {
    max-width: 320px;
    min-width: 280px;
    height: 340px;
    padding: 25px 20px;
  }

  .service-icon {
    font-size: 42px;
    margin-bottom: 15px;
  }

  .services-carousel .service-card h5 {
    font-size: 1.1rem;
  }

  .services-carousel .service-card p {
    font-size: 1rem;
  }
}

/* ===== 1 CARD ABAIXO DE 768PX ===== */
@media (max-width: 768px) {
  .services-carousel-wrapper {
    max-width: 500px; /* 1 card visível */
    min-width: 400px;
  }

  .carousel-btn {
    font-size: 1.5rem;
    padding: 6px 10px;
  }

  .services-carousel .service-card {
    max-width: 500px;
    min-width: 400px;
    height: 340px;
    padding: 25px 20px;
  }

  .service-icon {
    font-size: 40px;
    margin-bottom: 15px;
  }

  .services-carousel .service-card h5 {
    font-size: 1.05rem;
  }

  .services-carousel .service-card p {
    font-size: 0.95rem;
  }
}

/* ===== 1 CARD ABAIXO DE 590px ===== */
@media (max-width: 590px) {
  .services-carousel-wrapper {
    max-width: 400px; /* 1 card visível */
    min-width: 350px;
  }

  .services-carousel .service-card {
    max-width: 400px;
    min-width: 350px;
    height: 320px;
    padding: 20px 15px;
  }

  .service-icon {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .services-carousel .service-card h5 {
    font-size: 1rem;
  }

  .services-carousel .service-card p {
    font-size: 0.9rem;
  }

  .carousel-btn {
    font-size: 1.2rem;
    padding: 5px 8px;
  }
}

/* ===== 1 CARD ABAIXO DE 480PX ===== */
@media (max-width: 480px) {
  .services-carousel-wrapper {
    max-width: 300px; /* cards ainda menores para mobile */
    min-width: 250px;
  }

  .services-carousel .service-card {
    max-width: 300px;
    min-width: 250px;
    height: 300px;
    padding: 18px 12px;
  }

  .service-icon {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .services-carousel .service-card h5 {
    font-size: 0.95rem;
  }

  .services-carousel .service-card p {
    font-size: 0.85rem;
  }

  .carousel-btn {
    font-size: 1rem;
    padding: 4px 6px;
  }
}


















/* ===== AFTER SERVICES - RESPONSIVO ===== */
@media (max-width: 768px) {
  
  .after-services .section-title h2 {
    font-size: 2.2rem;
  }

  .after-services .section-title p {
    font-size: 0.95rem;
  }

  .after-services .cta-final h3 {
    font-size: 1.8rem;
  }
}
















/* =======================================================
   RESPONSIVO – TELAS MENORES QUE 995PX
======================================================= */
@media (max-width: 995px) {
  
  /* Ajusta a seção de contato */
  .contact-section {
    padding: 60px 20px; /* menos padding para telas menores */
  }

  /* Ajusta container do formulário */
  .contact-section .container {
    padding: 15px;
    border-radius: 12px;
  }

  
  /* ===== TÍTULO DA SEÇÃO ===== */
  .contact-section .section-title h2 {
    font-size: 2rem;
  }

  .contact-section .section-title h2::after {
    width: 150px; /* linha menor para o título */
  }

  .contact-section .section-title p {
    font-size: 0.95rem;
    max-width: 100%;
    padding: 0 10px;
  }

  /* Card do formulário */
  .contact-form {
    padding: 10px 20px;
    border-radius: 20px;
  }

  /* Labels */
  .contact-form .form-label {
    font-size: 0.85rem;
  }

  /* Inputs / Select / Textarea */
  .contact-form .form-control,
  .contact-form .form-select {
    height: 50px;
    font-size: 0.9rem;
    padding: 0 12px;
  }

  .contact-form textarea.form-control {
    min-height: 120px;
    padding: 12px;
  }

  /* Botão */
  .contact-form .btn-primary {
    padding: 12px 40px;
    font-size: 0.9rem;
  }
}