/* ================== Index - Caltech Agro ================== */

/* Regra global para tornar todas as imagens responsivas */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== BANNER (Hero) ===== */
.hero {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-color: #004d00;
  animation: backgroundSlide 10s infinite;
}

@keyframes backgroundSlide {
  0% {
    background-image: url('../imghome/Campanha-triple-shield-enfermedad-zero-2.png');
  }
  45% {
    background-image: url('../imghome/Campanha-triple-shield-enfermedad-zero-2.png');
  }
  55% {
    background-image: url('../imghome/fondo-caltech-es-biologico.jpg');
  }
  100% {
    background-image: url('../imghome/fondo-caltech-es-biologico.jpg');
  }
}

/* ===== SEÇÃO DO BIO BOX ===== */
.bio-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  gap: 40px;
  background-color: #ffffff;
  flex-wrap: wrap;
  max-width: 1600px;
  margin: 0 auto;
}

.image-container {
  position: relative;
  width: 50%;
  flex-shrink: 0;
}

.image-container img.main-image {
  width: 100%;
}

.image-container img.overlay-image {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 280px;
}

.text-container {
  width: 50%;
  max-width: 500px;
  text-align: center;
  color: #000000;
  flex-shrink: 0;
}

.text-container h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #2e7d32;
}

.text-container p {
  font-size: 24px;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #ffa000;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 18px;
  margin-top: 20px;
}

.cta-button:hover {
  background-color: #ff8f00;
}

/* ===== SEÇÃO INVERTIDA ===== */
.inverted-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  gap: 40px;
  background-color: #ffffff;
  flex-wrap: wrap;
}

.text-container-inverted {
  width: 50%;
  max-width: 500px;
  text-align: center;
}

.text-container-inverted h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #2e7d32;
}

.text-container-inverted p {
  font-size: 24px;
  margin-bottom: 20px;
}

.cta-button-inverted {
  display: inline-block;
  padding: 15px 30px;
  background-color: #ffa000;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 18px;
  margin-top: 10px;
}

.cta-button-inverted:hover {
  background-color: #ff8f00;
}

.image-container-inverted {
  position: relative;
  width: 50%;
  flex-shrink: 0;
  text-align: center;
}

.image-container-inverted img.main-image-inverted {
  width: 100%;
}

.image-container-inverted img.overlay-image-inverted {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 300px;
}

/* ===== SEÇÃO DRONE XAG P150 ===== */
.drone-section {
  width: 100%;
  overflow: hidden;
  background-color: #ffffff;
}

/* Área branca superior */
.drone-top-area {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 180px;
}

.drone-top-left {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.drone-top-right {
  padding-top: 90px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-30px);
}

.xag-logo {
  max-width: 200px;
}

/* Área vermelha - FULL WIDTH */
.drone-red-area {
  width: 100%;
  background-color: #B71C1C;
}

.drone-red-content {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 280px;
}

.drone-red-left {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drone-image {
  position: absolute;
  top: -180px;
  max-width: 90%;
  max-height: 1280px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.drone-model {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 120px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -5px;
  z-index: 1;
  font-family: 'Arial Black', Arial, sans-serif;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.drone-red-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.drone-description {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 450px;
}

.drone-button {
  display: inline-block;
  padding: 15px 50px;
  background-color: #ffffff;
  color: #333333;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.drone-button:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Espaço branco inferior */
.drone-spacer {
  height: 60px;
  background-color: #ffffff;
  width: 100%;
}

/* ===== SEÇÃO DE CONTATO ===== */
.contact-section {
  background-image: url('../imghome/Slide-inferior.png');
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-container {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  margin: auto;
}

.contact-container h2 {
  font-size: 24px;
  color: #2e7d32;
  margin-bottom: 10px;
}

.divider {
  border: 0;
  border-top: 2px solid #d3d3d3;
  margin: 20px auto;
  width: 80%;
}

.contact-container p {
  font-size: 18px;
  color: #333333;
  margin-bottom: 20px;
}

.whatsapp-button {
  display: inline-block;
  padding: 10px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3);
}

.whatsapp-button:active {
  transform: scale(0.95);
}

/* ===== SEÇÃO DE CAMBIOS ===== */
.exchange-rates {
  padding: 50px 20px;
  text-align: center;
  background-color: #ffffff;
}

.exchange-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.exchange-table {
  background-color: #f9f9f9;
  border: 2px solid #3a9d23;
  overflow: hidden;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
  width: 600px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  background-color: #3db822;
  color: #ffffff;
  font-weight: bold;
  padding: 15px;
  font-size: 18px;
  text-transform: uppercase;
}

.table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 2px solid #ddd;
  font-size: 18px;
}

.table-row:last-child {
  border-bottom: none;
}

.currency {
  display: flex;
  align-items: center;
  gap: 10px;
}

.currency img {
  width: 30px;
}

.buy,
.sell {
  font-weight: bold;
}

.up {
  color: rgb(2, 145, 2);
  font-size: 20px;
}

.down {
  color: red;
  font-size: 20px;
}

.equal {
  color: gray;
  font-size: 20px;
}

.source {
  margin-top: 30px;
  font-size: 16px;
  color: #333333;
}

.source a {
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
}

.source a:hover {
  text-decoration: underline;
}
.whatsapp-button img {
  width: 75px;
  height: 75px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  .hero {
    height: auto;
    padding-top: 56.25%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center calc(50% + 60px);
  }

  .bio-box,
  .inverted-section {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .image-container,
  .text-container,
  .text-container-inverted,
  .image-container-inverted {
    width: 100%;
    max-width: none;
  }

  .image-container img.overlay-image,
  .image-container-inverted img.overlay-image-inverted {
    width: 100px;
    bottom: 10px;
    right: 10px;
    left: auto;
  }

  .cta-button,
  .cta-button-inverted {
    transform: none;
    margin: 20px auto 0 auto;
    display: block;
    text-align: center;
  }

  .exchange-table {
    width: 100%;
    max-width: 500px;
  }

  .table-header,
  .table-row {
    font-size: 16px;
  }

  /* Responsivo Drone Section */
  .drone-top-area {
    flex-direction: column;
    min-height: auto;
  }

  .drone-top-left {
    display: none;
  }

  .drone-top-right {
    padding: 30px 20px;
  }

  .xag-logo {
    max-width: 150px;
  }

  .drone-red-content {
    flex-direction: column;
    min-height: auto;
  }

  .drone-red-left {
    min-height: 250px;
    padding-top: 80px;
  }

  .drone-image {
    top: -60px;
    max-width: 80%;
    max-height: 250px;
  }

  .drone-model {
    font-size: 60px;
    bottom: 20px;
  }

  .drone-red-right {
    padding: 30px 20px;
  }

  .drone-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .drone-button {
    padding: 12px 40px;
    font-size: 14px;
  }

  .drone-spacer {
    height: 40px;
  }
}