/* ==============================
   RESPONSIVIDADE COMPLETA
============================== */

/* ======= Laptops / telas médias (1024px) ======= */
@media screen and (max-width: 1024px) {
  /* Header */
  header {
    padding: 15px 5%;
  }
  nav a {
    margin: 0 10px;
  }

  /* Menu */
  .menu-toggle {
    display: flex;
    order: 4;
    margin-left: 15px;
  }
  .nav-links {
    display: none;
  }
  .nav-links.mobile-active {
    display: flex;
  }
  .header-buttons {
    order: 3;
  }

  /* Hero */
  .hero {
    height: 80vh;
    min-height: 250px;
    max-height: none;
  }
  .hero .prev,
  .hero .next {
    font-size: 2rem;
    padding: 10px 14px;
  }
  .carousel-indicators i {
    font-size: 1.1rem;
    padding: 3px;
  }

  /* Planos */
  .planos {
    padding: 80px 5%;
  }
  .planos h2 {
    font-size: 2.5rem;
  }
  .planos h1 {
    font-size: 2rem;
  }
  .planos .mega-text {
    font-size: 30px;
  }

  /* Cards */
  .cards {
    gap: 25px;
    flex-wrap: wrap;
  }
  .card {
    flex: 1 1 45%;
    max-width: 300px;
    padding: 35px 20px;
  }
  .card h3 {
    font-size: 60px;
    height: 80px;
  }
  .card h4 {
    font-size: 1.1rem;
  }
  .card ul li {
    font-size: 1rem;
  }
  .card .price {
    font-size: 1.8rem;
  }

  /* Diferenciais */
  .diferenciais {
    padding: 60px 20px;
  }
  .diferenciais .grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .footer-buttons a{
    width: 37%;
  }
    .copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto; /* ajusta altura automática */
    text-align: center;
  }

  .left,
  .right {
    position: static; /* remove absolute */
    transform: none;
    padding: 0;
    margin: 5px 0; /* espaçamento entre os grupos */
  }
   .sky-code{
    margin-top: 45px;
  }

}

/* ======= Tablets (768px) ======= */
@media screen and (max-width: 768px) {
  /* Header */
  header {
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
  }
  nav {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  nav a {
    margin: 5px 10px;
  }

  /* Menu */
  .menu-toggle {
    display: flex;
    order: 4;
    margin-left: 15px;
  }
  .nav-links {
    display: none;
  }
  .nav-links.mobile-active {
    display: flex;
  }
  .header-buttons {
    order: 3;
  }

  /* Hero */
  .hero {
    height: auto;
    min-height: 300px;
    max-height: none;
  }
  .carousel-container,
  .carousel-slide {
    height: auto;
  }
  .carousel-slide img {
    object-fit: contain;
    max-height: 60vh;
  }
  .hero .prev,
  .hero .next {
    font-size: 1.8rem;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.6);
  }
  .hero .prev {
    left: 15px;
  }
  .hero .next {
    right: 15px;
  }
  .carousel-indicators {
    bottom: 15px;
    gap: 10px;
  }
  .carousel-indicators i {
    font-size: 1rem;
  }

  /* Planos */
  .planos {
    padding: 60px 4%;
  }
  .planos h2 {
    font-size: 2rem;
  }
  .planos h1 {
    font-size: 1.8rem;
  }
  .planos .mega-text {
    font-size: 24px;
  }

  /* Cards */
  .cards {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .card {
    max-width: 100%;
    padding: 30px 15px;
  }
  .card h3 {
    font-size: 50px;
    height: 70px;
  }
  .card h4 {
    font-size: 1rem;
  }
  .card ul li {
    font-size: 0.95rem;
  }
  .card .price {
    font-size: 1.6rem;
  }

  /* Diferenciais */
  .diferenciais .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }



  /* Footer */
  footer .footer-container {
    flex-direction: column;
    text-align: center;
  }
  footer .col-left,
  footer .col-right {
    align-items: center;
  }
  .footer-buttons a,
  .social a {
    justify-content: center;
    width: 80%;
  }
    .copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto; /* ajusta altura automática */
    text-align: center;
  }
  .sky-code{
    margin-top: 45px;
  }
  .left,
  .right {
    position: static; /* remove absolute */
    transform: none;
    padding: 0;
    margin: 5px 0; /* espaçamento entre os grupos */
  }
}

/* ======= Mobile (480px) ======= */
@media screen and (max-width: 480px) {
  /* Header */
  header {
    padding: 10px 5%;
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  nav a {
    font-size: 0.9rem;
    margin: 5px 8px;
    padding: 8px 12px;
  }
  header .logo img{
    position: relative;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
  }
  header .logo{
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hero */
  .hero {
    min-height: 280px;
    max-height: none;
    height: 100px;
  }
  .carousel-slide img {
    object-fit: contain;
    max-height: 55vh;
  }
  .hero .prev,
  .hero .next {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero .prev {
    left: 8px;
  }
  .hero .next {
    right: 8px;
  }
  .carousel-indicators {
    bottom: 12px;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
  }
 .carousel-indicators i {
    font-size: 1.0rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
  }

  /* Planos */
  .planos {
    padding: 40px 3%;
  }
  .planos h2 {
    font-size: 2.6rem;
  }
  .planos h1 {
    font-size: 1.5rem;
  }
  .planos .mega-text {
    font-size: 30px;
  }

  /* Cards */
  .cards {
    gap: 15px;
    padding: 0 10px;
  }
  .card {
    max-width: 100%;
    padding: 20px 15px;
  }
  .card h3 {
    font-size: 35px;
    height: 50px;
  }
  .card ul li {
    font-size: 1.0rem;
  }
  .card .price {
    font-size: 2.0rem;
  }
    .extras{
    margin-top: 25px;
  }
  .card-header i{
    position: relative;
    top: 30px;
  }
  
    .footer-buttons a{
    width: 60%;
  }
  .footer-buttons p{
    margin-bottom: 35px;
  }
  .sky-code{
    margin-top: 35px;
  }
    .copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto; /* ajusta altura automática */
    text-align: center;
  }

  .left,
  .right {
    position: static; /* remove absolute */
    transform: none;
    padding: 0;
    margin: 5px 0; /* espaçamento entre os grupos */
  }


  /* WhatsApp */
  .whatsapp-popup {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
  .whatsapp-float {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    bottom: 20px;
    right: 15px;
  }
  
}

/* ======= Mobile Muito Pequeno (425px e menores) ======= */
@media screen and (max-width: 425px) {
  header {
    flex-direction: row;
  }
  .hero {
    min-height: 240px;
    height: 100px;
  }
  .carousel-slide img {
    max-height: 50vh;
  }
  .hero .prev,
  .hero .next {
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
  }
  .planos h2 {
    font-size: 2.6rem;
  }
  .card {
    padding: 15px 10px;
  }
    .card .card-header{
    margin-bottom: 30px;
  }
  .card .card-header h3{
    font-size: 60px;
    height: 80px;
  }
  .card ul{
    align-items: center;
  }
    .extras{
    margin-top: 25px;
  }
  
}

/* ======= Mobile Muito Pequeno (375px) ======= */
@media screen and (max-width: 375px) {
  header {
    flex-direction: row;
    align-items: flex-start;
  }
  .hero {
    min-height: 150px;
  }
}

/* ======= Mobile Muito Pequeno (360px) ======= */
@media screen and (max-width: 360px) {
  .hero {
    min-height: 220px;
  }
  .card h3 {
    font-size: 28px;
    height: 40px;
  }
  .card ul li {
    font-size: 0.8rem;
  }
  .card .price {
    font-size: 1.2rem;
  }
}

/* ======= Mobile Muito Pequeno (320px) ======= */
@media screen and (max-width: 320px) {
  header {
    flex-direction: row;
  }
  .hero {
    min-height: 150px;
  }
  .carousel-slide img {
    max-height: 50vh;
  }
  .hero .prev,
  .hero .next {
    font-size: 1rem;
    width: 32px;
    height: 32px;
  }
  .planos h2 {
    font-size: 1.4rem;
  }
  .card h3 {
    font-size: 25px;
  }
  .card ul li {
    font-size: 0.75rem;
  }
  .card .price {
    font-size: 1.1rem;
  }
}

/* ==============================
   CARROSSEL RESPONSIVO
============================== */
.hero {
  width: 100%;
  max-height: 100vh;
  overflow: hidden;
  position: relative;
}
.carousel-container,
.carousel-slide {
  width: 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-height: 100vh;
  content-visibility: auto; /* performance */
}

/* Landscape em mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: 100vh;
  }
  .carousel-indicators {
    bottom: 5px;
  }
}

/* Acessibilidade */
.hero .prev:focus,
.hero .next:focus,
.carousel-indicators i:focus {
  outline: 2px solid var(--laranja);
  outline-offset: 2px;
}
