/* ============================================================
   Ponsor Agrociência — estilos
   ============================================================ */

:root {
  --blue: #174654;
  --blue-soft: #456b76;
  --orange: #e89400;
  --white: #fff;
  --shadow: 0 10px 30px rgba(0, 0, 0, .15);
  --radius: 28px;
  --font: "Avenir Next", "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1000px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--blue);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.08; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: calc(var(--container) + 32px); margin: 0 auto; padding: 0 16px; }

.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block; border: 0; border-radius: 999px;
  font-weight: 800; text-decoration: none; line-height: 1;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-orange { background: var(--orange); color: var(--blue); font-size: clamp(22px, 2.6vw, 36px); padding: 14px 44px; }
.btn-blue { background: var(--blue); color: var(--white); font-size: 22px; padding: 12px 40px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  color: var(--white);
  background: #174654;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0; background: center / cover no-repeat;
  opacity: 0; transition: opacity 1.2s ease; z-index: 0;
}
.hero-slide.is-active { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(23, 70, 84, .92) 0%, rgba(23, 70, 84, .65) 55%, rgba(23, 70, 84, .35) 100%);
}
.hero > .site-header, .hero > .hero-content { position: relative; z-index: 2; }
.hero::after { /* linha branca na base */
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(var(--container), calc(100% - 32px)); height: 2px; background: var(--white);
}

.site-header { padding: 40px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: clamp(170px, 18vw, 240px); }

.main-nav { display: flex; gap: clamp(24px, 6vw, 90px); }
.main-nav a {
  text-decoration: none; font-size: 22px; padding-bottom: 6px;
  border-bottom: 3px solid transparent; transition: border-color .2s;
}
.main-nav a:hover, .main-nav a.active { border-color: var(--orange); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 28px; height: 3px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 20px; padding-bottom: 90px; }
.hero-title { font-size: clamp(40px, 5.5vw, 64px); margin-bottom: 32px; }

/* Texto com barra de rolagem lateral (igual ao original, sem plugin) */
.hero-text {
  max-width: 520px;
}
.hero-text p { margin: 0 0 1em; line-height: 1.65; font-size: 16px; }
.hero-text::-webkit-scrollbar { width: 6px; }
.hero-text::-webkit-scrollbar-track { background: rgba(255, 255, 255, .25); border-radius: 6px; }
.hero-text::-webkit-scrollbar-thumb { background: var(--white); border-radius: 6px; }

/* ---------- Produtos ---------- */
.products {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(var(--orange) 0 calc(100% - 200px), var(--white) 0);
}
.section-title { text-align: center; font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 80px; }

.lines {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px;
}
.line-card {
  position: relative; width: 100%; padding: 0; border: 0; text-align: left;
  display: grid; grid-template-rows: auto minmax(0, 1fr); aspect-ratio: 275 / 190;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.line-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .2); }
.line-card img { width: 100%; height: 100%; min-width: 0; min-height: 0; aspect-ratio: auto; object-fit: contain; background: var(--white); padding: 20px 24px; box-sizing: border-box; }
.line-card .tag { position: static; justify-self: start; max-width: 100%; overflow-wrap: anywhere; }

.tag {
  display: inline-block; background: var(--blue); color: var(--white);
  font-weight: 800; font-size: 18px; padding: 16px 22px;
  border-bottom-right-radius: 24px;
}

/* ---------- Catálogo ---------- */
.catalog { background: var(--blue); color: var(--white); padding: 40px 0; overflow: hidden; }
.catalog-inner { display: flex; align-items: center; justify-content: center; gap: 60px; }
.catalog-img { width: min(400px, 40%); }
.catalog-title { font-size: clamp(32px, 4.2vw, 62px); margin-bottom: 22px; }

/* ---------- Rodapé ---------- */
.site-footer { padding: 120px 0 0; border-bottom: 22px solid var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; }
.footer-logo img { width: 230px; }
.social { display: flex; gap: 40px; margin-top: 36px; }
.social img { width: 48px; transition: transform .15s; }
.social a:hover img { transform: scale(1.08); }
.footer-nav { display: flex; flex-direction: column; gap: 14px; padding-top: 30px; }
.footer-nav a { text-decoration: none; font-size: 20px; }
.footer-nav a:hover { color: var(--orange); }
.footer-address { font-style: normal; padding-top: 30px; }
.footer-address h3 { font-size: 24px; margin-bottom: 16px; }
.footer-address p { margin: 0; font-size: 18px; line-height: 1.45; }
.footer-address a { text-decoration: none; }
.copyright { text-align: center; font-size: 14px; margin: 90px 0 0; padding-bottom: 36px; }

.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 78px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25));
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.07); }

/* ---------- Popup de cadastro ---------- */
.lead {
  width: min(440px, calc(100% - 32px)); max-width: none; margin: auto; position: fixed; inset: 0; height: fit-content; max-height: calc(100dvh - 32px); overflow-y: auto;
  border: 0; border-radius: var(--radius); padding: 48px 36px 36px;
  color: var(--blue);
  background: linear-gradient(0deg, var(--orange) 32%, var(--white) 0);
  box-shadow: var(--shadow);
}
.lead::backdrop { background: rgba(0, 0, 0, .5); }
.lead[open] { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }

.lead-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: 0; font-size: 22px; color: var(--blue); line-height: 1;
}
.lead h2 { font-size: 22px; margin-bottom: 22px; }
.lead-form input:not(.hp) {
  width: 100%; margin-bottom: 14px; padding: 14px 18px;
  border: 0; border-radius: 12px; font: inherit; color: var(--blue);
  background: var(--white); box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.lead-form input::placeholder { color: var(--blue-soft); }
.lead-form input[aria-invalid="true"] { outline: 2px solid #c0392b; }
.lead-actions { display: flex; justify-content: flex-end; margin-top: 6px; }
.form-error { color: #8b1a10; background: rgba(255, 255, 255, .85); padding: 8px 12px; border-radius: 8px; font-size: 14px; margin: 0 0 10px; }

.lead-sending { text-align: center; padding: 50px 0; }
.spinner {
  display: inline-block; width: 46px; height: 46px; border-radius: 50%;
  border: 5px solid rgba(23, 70, 84, .2); border-top-color: var(--blue);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lead-success { text-align: center; padding: 40px 0 20px; }
.lead-success p { font-size: 18px; }
.lead-success a { font-weight: 800; }

/* ---------- Overlay de produtos ---------- */
.product-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 35, 42, .82);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: fade .25s ease;
}
.product-overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }

.overlay-close, .slider-btn {
  position: absolute; z-index: 2;
  width: 84px; height: 84px; border-radius: 50%; border: 0;
  background: var(--white); color: var(--blue); font-size: 34px;
  box-shadow: var(--shadow); transition: transform .15s, opacity .15s;
}
.overlay-close { top: 36px; left: 4.5vw; }
.slider-btn { top: 50%; transform: translateY(-50%); }
.slider-btn:hover:not(:disabled) { transform: translateY(-50%) scale(1.06); }
.overlay-close:hover { transform: scale(1.06); }
.slider-btn:disabled { opacity: .35; cursor: default; }
.slider-btn.prev { left: 4.5vw; }
.slider-btn.next { right: 4.5vw; }

.slider { width: 100%; overflow: hidden; touch-action: pan-y; }
.slider-track { display: flex; align-items: center; transition: transform .45s cubic-bezier(.2, .7, .2, 1); will-change: transform; }

.product-card {
  flex: 0 0 auto; width: min(670px, 72vw); margin: 0 1.5vw;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  transform: scale(.52); transform-origin: center; opacity: .9;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .3s;
  cursor: pointer;
}
.product-card.is-active { transform: scale(1); opacity: 1; cursor: default; }
.product-card .image { height: clamp(180px, 34vh, 330px); display: flex; align-items: center; justify-content: center; padding: 20px 20px 0; }
.product-card .image img { max-height: 100%; width: auto; }
.product-card .info { padding: 24px 40px 36px; }
.product-card h3 { font-size: clamp(18px, 2vw, 26px); margin-bottom: 14px; }
.product-card p { margin: 0 0 4px; font-size: 16px; }

.slider-dots { position: absolute; bottom: 28px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .45); }
.slider-dots button[aria-current="true"] { background: var(--orange); width: 26px; border-radius: 6px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .overlay-close, .slider-btn { width: 60px; height: 60px; font-size: 26px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; position: relative; z-index: 31; }
  .main-nav {
    position: fixed; inset: 0; z-index: 30;
    flex-direction: column; align-items: center; justify-content: center; gap: 36px;
    background: rgba(23, 70, 84, .97);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav a { font-size: 28px; }


  /* Linhas empilhadas no celular */
  .lines { grid-template-columns: 1fr; gap: 28px; max-width: 420px; margin: 0 auto; }
  .line-card img { padding: 20px 28px; }
  .tag { font-size: 16px; padding: 12px 18px; }
  .products { padding: 60px 0 70px; background: linear-gradient(var(--orange) 0 calc(100% - 140px), var(--white) 0); }
  .section-title { margin-bottom: 50px; }

  .catalog-inner { flex-direction: column; text-align: center; gap: 24px; }
  .catalog-img { width: min(340px, 85%); }

  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .footer-logo img { margin: 0 auto; }
  .social { justify-content: center; }
  .footer-nav, .footer-address { padding-top: 0; }
  .site-footer { padding-top: 70px; }
  .copyright { margin-top: 50px; padding-bottom: 110px; }

  .product-card { width: 82vw; margin: 0 2vw; }
  .product-card .info { padding: 18px 22px 26px; }
  .slider-btn { top: auto; bottom: 20px; transform: none; }
  .slider-btn:hover:not(:disabled) { transform: scale(1.06); }
  .slider-btn.prev { left: 20px; }
  .slider-btn.next { right: 20px; }
  .slider-dots { bottom: 44px; }
  .overlay-close { top: 18px; left: 18px; }
  .whatsapp-float { width: 62px; right: 16px; bottom: 16px; }
  .lead { padding: 44px 20px 24px; }
  .hero { min-height: auto; }
  .site-header { padding: 24px 0; }
  .hero-content { padding-bottom: 60px; }
  .hero-title { font-size: 38px; margin-bottom: 22px; }
  .hero-text p { font-size: 15px; }
  .btn-orange { padding: 14px 36px; }
}
