/* ==========================================================================
   AgroSolo — Estilos da Página Inicial Unificada (Home / index.html)
   Sequência: 1. Banner | 2. Quem Somos | 3. O Sensor | 4. Calculadora | 5. Fale Conosco
   ========================================================================== */

.bento-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 228, 0.95);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.section-white-bordered {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

/* ==========================================================================
   1. SEÇÃO: BANNER (Hero & Carrossel + Vitrine 3D)
   ========================================================================== */

.hero-carousel {
  position: relative;
  height: 620px;
  padding-top: calc(var(--topbar-height) + 1.5rem);
  background: var(--dark);
  overflow: hidden;
  z-index: 2;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 22, 13, 0.9) 0%, rgba(15, 31, 19, 0.76) 55%, rgba(15, 31, 19, 0.58) 100%);
}

.hero-slide-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.carousel-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  color: var(--white);
}

.carousel-content h1 {
  font-size: 2.85rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.carousel-content h1 span {
  color: var(--accent);
}

.carousel-content p {
  font-size: 1.06rem;
  color: #e2e8f0;
  margin-bottom: 1.85rem;
  line-height: 1.6;
}

.carousel-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.carousel-arrow {
  position: absolute;
  top: 54%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  z-index: 10;
  transition: var(--transition);
}

.carousel-arrow:hover {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}

.carousel-arrow.prev { left: 1.5rem; }
.carousel-arrow.next { right: 1.5rem; }

.carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  width: 26px;
  border-radius: 10px;
  background: var(--accent);
}

/* ==========================================================================
   2. SEÇÃO: QUEM SOMOS (Composição 3D de Imagens e Cards)
   ========================================================================== */

.about-bento-hero {
  padding: 2.35rem;
  margin-bottom: 1.5rem;
}

.about-bento-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.5rem;
  align-items: center;
}

.about-text-col h2 {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.about-text-col p {
  color: var(--gray-600);
  font-size: 0.96rem;
  margin-bottom: 1rem;
  line-height: 1.65;
}

.about-badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.about-mini-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.about-mini-item i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(45, 122, 62, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.about-mini-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 0.15rem;
}

.about-mini-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* Showcase 3D com Dupla Camada de Imagens */
.about-3d-showcase {
  position: relative;
  perspective: 1000px;
  padding-bottom: 1.5rem;
}

.about-img-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(15, 31, 19, 0.18);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.35s ease;
}

.about-3d-showcase:hover .about-img-frame {
  transform: rotateY(0deg) rotateX(0deg);
}

.about-img-frame img {
  width: 100%;
  height: 370px;
  object-fit: cover;
}

.about-floating-photo {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 195px;
  background: var(--white);
  padding: 0.5rem;
  border-radius: 16px;
  border: 1px solid rgba(45, 122, 62, 0.28);
  box-shadow: 0 18px 36px rgba(15, 31, 19, 0.22);
  transform: translateZ(30px) rotateZ(3deg);
}

.about-floating-photo img {
  width: 100%;
  height: 95px;
  object-fit: cover;
  border-radius: 11px;
  margin-bottom: 0.45rem;
}

.floating-photo-meta {
  padding: 0 0.25rem 0.15rem;
}

.floating-photo-meta strong {
  display: block;
  font-size: 0.78rem;
  color: var(--dark);
}

.floating-photo-meta span {
  display: block;
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 700;
}

.about-3d-plant-accent {
  position: absolute;
  bottom: -14px;
  left: -34px;
  width: 145px;
  height: 195px;
  object-fit: contain;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 22px 28px rgba(15, 31, 19, 0.34));
  transform: translateZ(42px) rotateZ(-6deg);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.pillar-bento-card {
  padding: 1.85rem 1.65rem;
  transition: var(--transition);
}
.card_missao{
  border-radius: 40px 0 0 0;
}
.card_sustem{
  border-radius: 0;
}
.card_agili{
  border-radius: 0 0 40px 0;
}

.pillar-bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(45, 122, 62, 0.35);
}

.pillar-bento-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.pillar-bento-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ==========================================================================
   3. SEÇÃO: O SENSOR 7 EM 1 (Bento Cards + Preview 3D de Telemetria)
   ========================================================================== */

.sensor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem;
  align-items: center;
}

.sensor-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
  color: var(--dark);
  line-height: 1.22;
}

.sensor-info > p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.feature-card {
  display: flex;
  gap: 1.1rem;
  background: var(--bg-page);
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 228, 0.95);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(45, 122, 62, 0.35);
}

.feature-card h4 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* Wrapper 3D do Card Visual do Sensor IoT */
.sensor-3d-wrapper {
  position: relative;
  perspective: 1200px;
}

.sensor-3d-ring {
  position: absolute;
  inset: -20px;
  border-radius: 32px;
  background: radial-gradient(circle at 75% 25%, rgba(123, 192, 67, 0.28), rgba(45, 122, 62, 0.04) 70%);
  transform: rotateZ(-3deg) scale(0.98);
  z-index: 0;
  pointer-events: none;
}

.sensor-3d-plant-accent {
  position: absolute;
  top: -38px;
  right: -34px;
  width: 155px;
  height: 155px;
  object-fit: contain;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.42));
  transform: translateZ(45px) rotateZ(12deg);
}

.sensor-visual {
  position: relative;
  z-index: 1;
  background: linear-gradient(155deg, #0f2214 0%, #0a170e 100%);
  padding: 1.85rem;
  color: var(--white);
  border: 1px solid rgba(123, 192, 67, 0.35);
  box-shadow: 0 26px 52px -12px rgba(15, 31, 19, 0.32);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.sensor-3d-wrapper:hover .sensor-visual {
  transform: rotateY(0deg) rotateX(0deg);
  box-shadow: 0 32px 64px -12px rgba(15, 31, 19, 0.4);
}

.sensor-visual-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.1rem;
  margin-bottom: 1.25rem;
}

.probe-badge-mini {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.sensor-visual-head strong {
  font-size: 1.15rem;
  font-weight: 800;
  display: block;
}

.probe-sub {
  font-size: 0.8rem;
  color: #94a3b8;
}

.online-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.32);
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.preview-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.preview-bento-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0.95rem 1rem;
}

.preview-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.preview-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-sky { color: #38bdf8; }
.icon-orange { color: #fb923c; }
.icon-violet { color: #a78bfa; }
.icon-teal { color: #2dd4bf; }
.icon-emerald { color: #4ade80; }

.preview-chip {
  font-size: 0.68rem;
  font-weight: 700;
  color: #86efac;
  background: rgba(74, 222, 128, 0.14);
  padding: 0.12rem 0.48rem;
  border-radius: var(--radius-pill);
}

.preview-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.45rem;
}

.preview-val small {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-left: 0.2rem;
}

.metric-bar {
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.metric-bar-fill.moisture { width: 64%; background: linear-gradient(90deg, #0284c7, #38bdf8); }
.metric-bar-fill.temp { width: 56%; background: linear-gradient(90deg, #ea580c, #fb923c); }
.metric-bar-fill.ph { width: 72%; background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.metric-bar-fill.salts { width: 48%; background: linear-gradient(90deg, #0d9488, #2dd4bf); }

.preview-npk-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  margin-bottom: 1.1rem;
}

.preview-npk-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 0.7rem;
}

.preview-npk-head small {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
}

.preview-npk-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.npk-mini-card {
  background: rgba(15, 31, 19, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.npk-letter {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.npk-letter.n { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.npk-letter.p { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.npk-letter.k { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }

.npk-mini-card strong {
  display: block;
  font-size: 0.8rem;
  color: var(--white);
}

.npk-mini-card small {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
}

.sensor-visual-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.resp-tech-mini {
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.resp-tech-mini i {
  color: var(--accent);
}

.visual-cta-link {
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.visual-cta-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   4. SEÇÃO: TEASER DA CALCULADORA DE SAFRA
   ========================================================================== */

.calc-teaser-box {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 228, 0.95);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.calc-teaser-box h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.85rem;
}

.calc-teaser-box > p {
  color: var(--gray-600);
  font-size: 1.04rem;
  max-width: 660px;
  margin: 0 auto 2.15rem;
}

.calc-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin-bottom: 2.25rem;
  text-align: left;
}

.calc-fitem {
  background: var(--bg-page);
  padding: 1.45rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 228, 0.95);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.calc-fitem:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.calc-fitem h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.calc-fitem p {
  font-size: 0.86rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

.calc-teaser-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   5. SEÇÃO: BANNER SIMPLES FALE CONOSCO (Redireciona para fale-conosco.html)
   ========================================================================== */

.contact-cta-section {
  position: relative;
  z-index: 2;
  padding: 1.5rem 0 0;
  scroll-margin-top: calc(var(--topbar-height) + 1.5rem);
}

.contact-cta-banner {
  width: 100%;
  background: var(--dark);
  border-top: 1px solid rgba(123, 192, 67, 0.3);
  border-bottom: 1px solid rgba(123, 192, 67, 0.3);
  border-radius: 0;
  padding: 3.25rem 0;
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.contact-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.contact-cta-text {
  max-width: 640px;
}

.contact-cta-text h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
}

.contact-cta-text p {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

.contact-cta-action {
  flex-shrink: 0;
}

.contact-cta-action .btn {
  border-radius: 0;
}

/* ==========================================================================
   Responsividade Home Unificada
   ========================================================================== */

@media (max-width: 1040px) {
  .hero-slide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .about-bento-grid,
  .pillars-grid,
  .sensor-grid,
  .calc-features-grid {
    grid-template-columns: 1fr;
  }

  .contact-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .carousel-content h1 {
    font-size: 2.25rem;
  }

  .about-img-frame,
  .sensor-visual {
    transform: none;
  }

  .about-img-frame img {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .carousel-arrow {
    display: none;
  }

  .hero-carousel {
    height: 510px;
  }

  .calc-teaser-box {
    padding: 2rem 1.35rem;
  }

  .preview-npk-row {
    grid-template-columns: 1fr;
  }

  .sensor-visual-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-floating-photo,
  .about-3d-plant-accent,
  .sensor-3d-plant-accent {
    display: none;
  }
}

@media (max-width: 640px) {
  .about-bento-hero {
    padding: 1.4rem;
  }

  .about-badges-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .about-text-col h2,
  .contact-cta-text h2 {
    font-size: 1.55rem;
  }
}

@media (max-width: 520px) {
  .preview-bento-grid {
    grid-template-columns: 1fr;
  }

  .carousel-actions .btn,
  .calc-teaser-actions .btn,
  .contact-cta-action,
  .contact-cta-action .btn {
    width: 100%;
  }
}
