/* ==========================================================
   QUINTAL DA ARI | Landing page "Segredos do Cultivo"
   Dica: as cores e fontes ficam em :root (logo abaixo).
   Mude uma cor lá e ela muda no site todo.
   ========================================================== */

:root {
  --gs: #245c37;
  --g1: #1f7a3a;
  --g2: #2e9b47;
  --gdd: #0e3a1b;
  --tint: #f3faf0;
  --line: #bfddb4;
  --ink: #22362a;
  --display:
    "DynaPuff", "Trebuchet MS", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-text-size-adjust: 100%;
  padding-bottom: 84px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1,
h2 {
  color: #17a141;
  -webkit-text-stroke: 0.07em var(--gdd);
  paint-order: stroke fill;
  text-shadow: 0 0.05em 0 var(--gdd);
  letter-spacing: 0.015em;
}

h1 .d,
h2 .d {
  color: #a8edb5;
}

.g h1,
.g h2 {
  color: #a8edb5;
  -webkit-text-stroke-color: #1b9e40;
  text-shadow: 0 0.05em 0 #0a2a13;
}

.g h2 .d {
  color: #fff;
}

h1 {
  font-size: clamp(2.7rem, 12vw, 5rem);
}

h2 {
  font-size: clamp(1.8rem, 7vw, 2.7rem);
}

h3 {
  font-size: 1.2rem;
  color: var(--gs);
}

p {
  margin: 0 0 1em;
}
.desc {
  padding: 10px;
  margin: 10px;
  font-size: 15px;
  font-weight: 600;
}
a {
  color: inherit;
}

.wrap {
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  padding: clamp(3.4rem, 9vw, 5.5rem) 0 clamp(3rem, 8vw, 4.5rem);
  overflow: hidden;
}

.g {
  background: var(--gs);
  color: #fff;
}

.g::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../images/respigadoras.webp) center/cover;
  opacity: 0.3;
  mix-blend-mode: luminosity;
}

.wv {
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 34px;
  fill: #fff;
  z-index: 0;
}

.wv.gr {
  fill: var(--gs);
}

.leaf {
  position: absolute;
  width: clamp(90px, 22vw, 190px);
  opacity: 0.16;
  color: #fff;
  z-index: 0;
  pointer-events: none;
}

.orn {
  display: block;
  width: 150px;
  height: 18px;
  margin: -0.2rem 0 1.4rem;
  color: var(--g2);
}

.g .orn {
  color: #9be5aa;
}

.center {
  text-align: center;
}

.center .orn {
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  position: relative;
  z-index: 2;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.brand b {
  font: 700 1.15rem var(--display);
  color: var(--gs);
}

.btn {
  display: inline-block;
  background: var(--g1);
  color: #fff;
  font: 700 1.1rem var(--display);
  text-decoration: none;
  text-align: center;
  padding: 1rem 2rem;
  border-radius: 999px;
  border: 3px solid var(--gdd);
  box-shadow: 4px 4px 0 var(--gdd);
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background-color 0.3s;
  position: relative;
  overflow: hidden;
}

/* Efeito de luz */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 1.5s ease;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 0 var(--gdd);
  background-color: #3ebd45;
}

.btn:hover::before {
  left: 150%;
}

.btn:active {
  transform: translateY(5px);
  box-shadow: none;
}

/* Para a variante .g (botão claro) */
.g .btn {
  background: #fff;
  color: var(--gs);
}

.g .btn::before {
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 50%,
    transparent 100%
  );
}
.g .btn:hover {
  background-color: #0fcc35;
}

.btn:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #62cd78;
  outline-offset: 3px;
}

.g .btn:focus-visible,
.g summary:focus-visible {
  outline-color: #fff;
}

.cta {
  text-align: center;
  margin-top: 2.4rem;
}

/* ===== TOPO ===== */
.hero {
  /* Aumentamos o padding-bottom para a imagem descer por trás da faixa inclinada */
  padding: 0 0 7.5rem;
  margin-bottom: 0; /* Removemos a margem negativa daqui */
  position: relative;
  z-index: 1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.33), rgba(255, 255, 255, 0.33)),
    url(../images/respigadoras.webp) 47% 62% / cover;
}

.hg {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-top: 1rem;
}

.kick {
  font: 500 clamp(0.85rem, 2.6vw, 0.95rem)/1.2 var(--body);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--g1);
  margin: 0 0 0.7rem;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.432);
}

.lead {
  font-size: clamp(1rem, 2.8vw, 1.1rem);
  max-width: 46ch;
  font-weight: 550;
  color: #000000;
  margin: 1.1rem 0 1.5rem;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.137);
}

.lead strong {
  /* Camadas de sombra para criar o brilho */
  text-shadow:
    0 0 2px #16d804,
    /* Brilho interno branco */ 0 0 1px #0ece07,
    /* Brilho médio branco */ 0 0 2px #0fbe09,
    /* Brilho externo cor principal (rosa neon) */ 0 0 1px #07d318,
    /* Brilho externo maior */ 0 0 2px #08dd08; /* Brilho externo difuso */

  /* Animação opcional para piscar ou pulsar */
  animation: neon-pulse 1.5s infinite alternate;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
  margin: 1.1rem 0 0;
}

.price b {
  white-space: nowrap;
  font: 700 2.8rem var(--display);
  color: var(--gs);
}

.price span {
  font-size: 0.92rem;
  font-weight: 800;
}

.final-desc {
  display: block;
  margin-top: 16px; /* Afasta do título "Comece sua horta..." */
  margin-bottom: 24px; /* Afasta do preço "R$ 24,90" */
  line-height: 1.5;
}

.book {
  width: min(76%, 370px);
  margin: 0 auto;
  filter: drop-shadow(0 22px 18px rgba(10, 40, 20, 0.4));
}

.bandw {
  overflow: hidden;
  position: relative;
  z-index: 3;
  /* Puxa a faixa inteira para cima, fazendo ela sobrepor a imagem do .hero */
  margin-top: -4.2rem;
  padding: 1.5rem 0;
  /* Garante que o fundo da área ao redor da faixa seja transparente para mostrar a pintura */
  background: transparent;
}

/* ===== FAIXA DE CAPÍTULOS ===== */
.band {
  background: var(--gs);
  color: #fff;
  transform: rotate(-1.3deg);
  margin: 0 -3%;
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 18px rgba(14, 58, 27, 0.3);
  border-block: 3px solid var(--gdd);
}

.band div {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  animation: mq 45s linear infinite;
  white-space: nowrap;
  font-weight: 500;
}

.band i {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  background: #9be5aa;
  border-radius: 0 100% 0 100%;
  margin-right: 1.6rem;
  vertical-align: -1px;
}

@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}

/* ===== CARDS ===== */
.card {
  background: var(--tint);
  border: 3px solid var(--gdd);
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--gdd);
  overflow: hidden;
}

.pains {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.pain {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  font-weight: 500;
}

.pain svg {
  flex: none;
  width: 54px;
  height: 54px;
  color: #fff;
  background: var(--g1);
  border-radius: 50%;
  padding: 11px;
  border: 3px solid var(--gdd);
}

/* ===== QUEM SOU EU ===== */
.about {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.ava {
  text-align: center;
}

.ava img {
  width: 170px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 0 0 4px #0a2a13;
}

.quote {
  font: italic 600 1.5rem/1.35 var(--serif);
  color: #c9f3d2;
  margin: 0;
}

.ava small {
  display: block;
  margin-top: 0.5rem;
  opacity: 0.85;
}

.about p {
  max-width: 60ch;
}

/* ===== O QUE TEM DENTRO ===== */
.parts {
  display: grid;
  gap: 1.6rem;
  margin-top: 2rem;
}

.part img {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: contain;
  border-bottom: 3px solid var(--gdd);
  background: #fbf5e6;
}

.part img.w {
  object-fit: cover;
}

.part div {
  padding: 1.1rem 1.3rem 1.3rem;
}

.part small {
  display: block;
  font-weight: 700;
  color: var(--g2);
}

.part h3 {
  margin: 0.1rem 0 0.6rem;
  font-size: 1.35rem;
}

.part ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.part li {
  padding: 0.35rem 0 0.35rem 1.7rem;
  border-bottom: 1px dashed var(--line);
  position: relative;
}

.part li:last-child {
  border: 0;
}

.part li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.95rem;
  height: 0.95rem;
  background: var(--g2);
  border-radius: 0 100% 0 100%;
}

.plus {
  margin: 1.6rem 0 0;
  font-weight: 500;
}

/* ===== GALERIA DE PÁGINAS ===== */
.pages {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2rem 1.25rem 1.4rem;
  margin: 0 -1.25rem;
  -webkit-overflow-scrolling: touch;
}

.pages figure {
  margin: 0;
  flex: 0 0 min(66%, 270px);
  scroll-snap-align: center;
}

.pages img {
  border-radius: 12px;
  border: 3px solid #0a2a13;
  box-shadow: 6px 6px 0 #0a2a13;
  background: #fff;
}

.pages figcaption {
  text-align: center;
  font-weight: 500;
  margin-top: 0.9rem;
}

.hint {
  opacity: 0.85;
  font-size: 0.92rem;
  margin: 0;
}

/* ===== APRENDA VENDO ===== */
.rows {
  display: grid;
  gap: 2.4rem;
  margin-top: 2rem;
}

.row {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}

.row img {
  background: #fbf5e6;
}

.row h3 {
  font-size: 1.45rem;
  margin-bottom: 0.3rem;
}

.row p {
  margin: 0;
}

/* ===== DÚVIDAS ===== */
details {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  margin: 0.7rem 0;
  padding: 0 1.2rem;
}

summary {
  cursor: pointer;
  font: 700 1.02rem var(--body);
  padding: 1rem 1.6rem 1rem 0;
  list-style: none;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.5rem;
  font: 700 1.5rem var(--display);
}

details[open] summary::after {
  content: "\2212";
}

details p {
  padding-bottom: 0.4rem;
}

/* ===== FECHAMENTO ===== */
.final {
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.9)),
    url(../images/respigadoras.webp) center/cover;
}

.final .book {
  width: min(58%, 270px);
  margin: 0 auto 1.4rem;
}

.opts {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin: 1.6rem 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.opts figure {
  margin: 0;
  width: 104px;
}

.opts img {
  filter: drop-shadow(0 8px 8px rgba(14, 58, 27, 0.3));
}

.fine {
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0rem;
}

.garantia {
  display: flex;
  align-items: center; /* Alinha o ícone e o texto verticalmente no centro */
  justify-content: center; /* Centraliza o conjunto na tela */
  gap: 8px; /* Espaço entre o ícone e o texto */
  margin-top: 12px; /* Espaço em relação ao botão verde acima (ajuste se precisar) */
}

.garantia img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.garantia .fine {
  text-align: left;
  line-height: 1.35;
}

/* ===== RODAPÉ ===== */
footer {
  background: #0a2a13;
  color: #d3ecd9;
  padding: 1.6rem 0;
  font-size: 0.86rem;
  text-align: center;
}

footer p {
  margin: 0.3rem 0;
}

/* ===== BARRA FIXA (CELULAR) ===== */
.bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  background: #fff;
  border-top: 3px solid var(--gdd);
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  transform: translateY(110%);
  transition: transform 0.3s;
}

.bar.on {
  transform: none;
}

.bar .btn {
  width: 100%;
  max-width: 520px;
  padding: 0.8rem 1rem;
}

[hidden] {
  display: none !important;
}

/* ===== TELAS MAIORES (tablet em pé/computador, a partir de 820px) ===== */
@media (min-width: 820px) {
  body {
    padding-bottom: 0;
  }
  .bar {
    display: none;
  }
  .hero {
    background-position:
      center,
      50% 62%;
  }
  .hg {
    grid-template-columns: 1.1fr 0.9fr;
    padding-top: 2rem;
  }
  .pains {
    grid-template-columns: repeat(2, 1fr);
  }
  .about {
    grid-template-columns: 260px 1fr;
  }
  .parts {
    grid-template-columns: repeat(2, 1fr);
  }
  .pages {
    margin: 0;
    padding-inline: 0;
  }
  .pages figure {
    flex-basis: 230px;
  }
  .row {
    grid-template-columns: 1fr 1fr;
    gap: 2.6rem;
  }
  .row:nth-child(even) .card {
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .band div {
    animation: none;
  }
}

.hero h1 {
  color: #17a141;
  text-shadow:
    0 0.05em 0 var(--gdd),
    0 0 0.5em rgba(0, 0, 0, 0);
}

.hero .brand b,
.hero .price span {
  text-shadow: 0 0 10px rgba(37, 255, 17, 0);
}

.hero .price b {
  text-shadow: 0 0 10px rgba(39, 250, 20, 0);
}

@media (min-width: 640px) {
  .pains,
  .parts {
    grid-template-columns: repeat(2, 1fr);
  }
}
