@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --custom-primary: #ffbe06;
  --custom-primary-hover: #e6a805;
  --black: #000203;
  --white: #ffffff;
  --gray: #f8f9fa;
  --font-family: 'Roboto', var(--bs-font-sans-serif);
  --font-title: 'Montserrat', var(--bs-font-sans-serif);
}

.btn-custom-primary {
  background-color: var(--custom-primary);
  border-color: var(--custom-primary);
  color: var(--white);
}

.btn-custom-primary:hover,
.btn-custom-primary:focus,
.btn-custom-primary:active {
  background-color: var(--custom-primary-hover) !important;
  border-color: var(--custom-primary-hover) !important;
  color: var(--white) !important;
  filter: brightness(0.9) !important;
}

body {
  font-family: var(--font-family);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  color: var(--black);
}

h1,
h2 {
  text-transform: uppercase;
}

h1 {
  color: var(--white);
  font-size: 3.0rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
}

h4 {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.4;
}

p {
  color: var(--black);
}

section {
  padding: 72px 0px;
}

.bt a {
  text-decoration: none;
  color: var(--black);
  font-weight: 300;
  text-transform: uppercase;
  border: none;
  border-radius: 12px;
  background-color: var(--custom-primary);
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

.bt a:hover {
  background-color: var(--custom-primary-hover);
  color: var(--black);
}

.enhance {
  color: var(--custom-primary);
}

.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-link {
  color: var(--black);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--black);
  border-bottom: 2px solid var(--custom-primary);
}

.bt-nav a {
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: 12px;
  background-color: var(--custom-primary);
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

.hero-section {
  background-image: url('../images/banner-plastika-principal.jpg');
  background-size: cover;
  background-position: center;
}

.home {
  padding: 110px 0px;
}

.home .content p {
  color: var(--white);
  text-decoration: underline;
}

.formulario {
  background-color: var(--gray);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-warning {
  font-size: 0.8rem;
  color: var(--black);
  margin-top: 10px;
  text-align: center;
}

.points {
  background-color: var(--gray);
}

.point {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;
}

.solucoes .box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  flex-direction: column;
}

.solucoes .box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.solucoes .bt {
  display: grid;
  place-items: center;
}

.maquinas {
  background-color: var(--gray);
}

.maquinas .box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 8px 34px;
}

.maquinas .bt {
  display: grid;
  place-items: center;
}

.cta {
  background-image: url('../images/banner-plastika-cta.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.cta-content .bt {
  display: grid;
  place-items: center;
}

/* ===== SWIPER FIXES ===== */
.swiper-container,
.mySwiper {
  width: 100%;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.maquinas .swiper-pagination {
  position: relative !important;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: auto !important;
}

.maquinas .swiper-pagination-bullet {
  background: var(--custom-primary) !important;
  opacity: 0.5;
  width: 12px;
  height: 12px;
  margin: 0 5px;
}

.maquinas .swiper-pagination-bullet-active {
  opacity: 1 !important;
}

.float {
  position: fixed;
  width: 70px;
  height: 70px;
  bottom: 40px;
  right: 40px;
  z-index: 100;
  transition: 0.5s;
}

.float:hover {
  transform: scale(1.1);
}

.float img {
  max-width: 100%;
}

footer {
  background-color: var(--gray) !important;
}

footer .footer-logo {
  display: flex;
  align-items: center;
}

footer h5 {
  color: var(--custom-primary);
}

footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--custom-primary-hover) !important;
}

footer .fab {
  transition: all 0.3s ease;
}

footer .fab:hover {
  color: var(--custom-primary-hover) !important;
  transform: translateY(-2px);
}

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

/* Extra Large Devices (1400px e acima) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }
}

/* Large Devices (1200px - 1399px) */
@media (max-width: 1399px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.2rem;
  }
}

/* Medium Devices - Tablets (768px - 1199px) */
@media (max-width: 1199px) {
  section {
    padding: 60px 0px;
  }

  .home {
    padding: 90px 0px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .navbar-nav {
    text-align: center;
    margin-top: 20px;
  }

  .formulario {
    margin-top: 30px;
  }
}

/* Small Devices - Large Phones (576px - 767px) */
@media (max-width: 767px) {
  section {
    padding: 50px 20px;
  }

  .home {
    padding: 70px 20px;
  }

  h1 {
    font-size: 2rem;
    text-align: center;
    line-height: 1.1;
  }

  h2 {
    font-size: 1.8rem;
    text-align: center;
    line-height: 1.2;
  }

  h3 {
    font-size: 1.2rem;
    text-align: center;
  }

  h4 {
    font-size: 1.1rem;
    text-align: center;
  }

  p {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-section .row {
    flex-direction: column;
  }

  .hero-section .col-xl-6:first-child {
    order: 1;
    margin-bottom: 30px;
  }

  .hero-section .col-xl-6:last-child {
    order: 2;
  }

  .formulario {
    margin-bottom: 30px;
    padding: 25px;
  }

  .form-warning {
    font-size: 0.75rem;
  }

  .solucoes .row .col,
  .maquinas .row .col {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .bt {
    text-align: center;
    margin-top: 30px;
  }

  .bt a {
    padding: 12px 25px;
    font-size: 0.9rem;
    display: inline-block;
    width: auto;
    min-width: 200px;
  }

  .navbar-toggler {
    border: none;
    padding: 4px 8px;
  }

  .navbar-brand img {
    max-height: 50px;
  }

  .hero-section {
    background-attachment: scroll;
  }

  .cta {
    background-attachment: scroll;
  }

  /* Swiper mobile fixes */
  .swiper-container,
  .mySwiper {
    overflow: hidden;
    margin: 0;
    padding: 20px 0;
  }

  .swiper-wrapper {
    width: 100%;
  }

  .swiper-slide {
    width: 100% !important;
    flex-shrink: 0;
  }

  .maquinas .box {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Extra Small Devices - Small Phones (até 575px) */
@media (max-width: 575px) {
  section {
    padding: 40px 15px;
  }

  .home {
    padding: 60px 15px;
  }

  h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  h4 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  .formulario {
    padding: 20px;
  }

  .form-control {
    font-size: 16px;
    /* Evita zoom no iOS */
    padding: 12px 15px;
  }

  .form-warning {
    font-size: 0.7rem;
    margin-top: 8px;
  }

  .bt a {
    padding: 10px 20px;
    font-size: 0.85rem;
    min-width: 180px;
  }

  .navbar-brand img {
    max-height: 40px;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Swiper small mobile fixes */
  .swiper-container,
  .mySwiper {
    margin: 0;
    padding: 15px 0;
    overflow: hidden;
  }

  .swiper-slide {
    width: 100% !important;
    margin-right: 0 !important;
  }

  .maquinas .box {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Ultra Small Devices - Very Small Phones (até 400px) */
@media (max-width: 400px) {
  section {
    padding: 35px 10px;
  }

  .home {
    padding: 50px 10px;
  }

  h1 {
    font-size: 1.6rem;
    line-height: 1.1;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  .formulario {
    padding: 15px;
  }

  .bt a {
    padding: 8px 15px;
    font-size: 0.8rem;
    min-width: 150px;
  }

  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Landscape Orientation para Devices Móveis */
@media (max-width: 767px) and (orientation: landscape) {
  .home {
    padding: 40px 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .hero-section .row {
    align-items: center;
  }

  .formulario {
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

/* Melhorias para Touch Devices */
@media (hover: none) and (pointer: coarse) {
  .bt a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }

  .nav-link {
    padding: 12px 15px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .form-control {
    min-height: 44px;
  }

  .navbar-toggler {
    min-height: 44px;
    min-width: 44px;
  }
}