/* ====================================================================
   Nanana — frutas amazônicas liofilizadas
   Paleta: floresta (verde) ↔ tecnologia (espaço/gelo)
   ==================================================================== */

:root {
  --leaf:      #1f7a45;
  --leaf-deep: #0f5130;
  --banana:    #f7c331;
  --mango:     #f2882d;
  --camu:      #7a3e9d;
  --space:     #0e1636;
  --space-2:   #1b2657;
  --ice:       #eaf4f8;
  --ink:       #17251c;
  --paper:     #ffffff;
  --sand:      #fbf7ef;

  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body:    "Nunito Sans", system-ui, sans-serif;

  --radius:   22px;
  --radius-s: 14px;
  --wrap:     1120px;
  --pad-y:    clamp(4rem, 9vw, 7rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; font-weight: 600; }

/* ---------- Layout utilities ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; padding: 40px; }
.wrap--narrow { max-width: 760px; }
.center { text-align: center; }

.section {  }
.section--sand {  background: linear-gradient(to bottom, #FFFFFF, #FFE135); }

.section__title {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
  justify-items: center;
}
.section__title.big { font-size: clamp(2rem, 5vw, 3.4rem); }
.section__title--tight { margin-bottom: 1.5rem; }
.section__title--light { color: var(--paper); }
.section__title.center { text-align: center; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--banana);
  margin-bottom: 0.75rem;
}
.eyebrow--light { color: var(--sand); }

.lead { font-size: 1.15rem; color: #3a4a41; }
.lead--sub { margin-bottom: 2rem; }

.u-leaf { color: rgb(17, 177, 25); text-decoration: underline; text-decoration-color: var(--banana); text-decoration-thickness: 4px; text-underline-offset: 4px; }
.u-tech { color:rgb(17, 172, 177); text-decoration: underline; text-decoration-color: rgb(17, 172, 177); text-decoration-thickness: 4px; text-underline-offset: 4px; }

.link-underline { font-weight: 700; color: var(--leaf); border-bottom: 2px solid var(--banana); padding-bottom: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn--primary {
  background: var(--banana);
  color: var(--ink);
  box-shadow: 0 8px 0 -2px var(--mango);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 0 -2px var(--mango); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee7d8;
}
.brand__logo { height: 60px; width: max-content; }

/* Menu  (fica no lado direito, independente do logo) */
.nav {
  position: absolute;
  left: 80%;
  transform: translateX(-50%);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.1rem 1.4rem;
}
.nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-color: var(--banana); color: var(--leaf); }

/* ---------- Botão sanduíche (só aparece em telas menores) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 60;
}
.nav-toggle__bar {
  display: block;
  width: 26px; height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
/* Animação: vira um "X" quando aberto */
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (o contraste natureza ↔ tecnologia) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5rem);
  background: url('floresta amazonia.png');
  
  /*radial-gradient(120% 90% at 0% 100%, rgba(31,122,69,0.28), transparent 55%),
    radial-gradient(120% 90% at 100% 0%, rgba(27,38,87,0.20), transparent 55%),
    linear-gradient(120deg, #eafaf0 0%, #ffffff 45%, var(--ice) 100%); */
}
.hero__inner { width: min(100% - 2.5rem, 900px); margin-inline: auto; text-align: center; position: relative; z-index: 2; }
.hero__title {
  font-size: clamp(2.1rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  color: var(--leaf);
}
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--sand); max-width: 620px; margin: 0 auto 2rem; }

.seals {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.6rem; margin-top: 2.4rem;
}
.seals li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--paper); border: 1px solid #e5ece7;
  padding: 0.5rem 1rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(14,22,54,0.05);
}

/* Frutas flutuando */
.hero__floaties { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floaty { position: absolute; font-size: clamp(1.8rem, 4vw, 3rem); filter: drop-shadow(0 8px 10px rgba(0,0,0,0.12)); animation: float 7s ease-in-out infinite; }
.f1 { top: 12%; left: 7%;  animation-delay: 0s;   }
.f2 { top: 22%; left: 88%; animation-delay: 0.8s; }
.f3 { top: 62%; left: 5%;  animation-delay: 1.6s; }
.f4 { top: 70%; left: 90%; animation-delay: 2.4s; }
.f5 { top: 8%;  left: 40%; animation-delay: 1.2s; }
.f6 { top: 78%; left: 30%; animation-delay: 2s;   }
.f7 { top: 40%; left: 94%; animation-delay: 0.4s; }
.f8 { top: 48%; left: 3%;  animation-delay: 2.8s; }

@keyframes float { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-18px) rotate(4deg); } }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.25rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid #ece5d5;
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-4px); }
.card__icon { font-size: 2.2rem; display: block; margin-bottom: 0.8rem; }
.card__icon-img { width: 68px; height: 68px; object-fit: contain; margin: 0 auto 0.8rem; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card p { color: #55645b; font-size: 0.98rem; }

.card--glass {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  text-align: center;
  color: var(--paper);
}
.card--glass h3 { color: var(--paper); font-size: 1.05rem; }

/* ---------- Manchetes (jornal) ---------- */
.news { margin-top: 4rem; }
.news__track {
  overflow: hidden;
  padding-block: 1.5rem;
  margin-block: 1.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.news__row { display: flex; gap: 1rem; width: max-content; animation: marquee 38s linear infinite; }
.clip {
  flex: 0 0 320px;
  background: var(--paper);
  border: 1px solid #e2ddce;
  border-left: 5px solid var(--mango);
  border-radius: var(--radius-s);
  padding: 1.2rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Da floresta à lancheira (imagem preenche o fundo da dobra) ---------- */
.floresta-band {
  position: relative;
  width: 100%;
  aspect-ratio: 1710 / 945;          /* proporção da animação.png */
  background: url('animação.png') center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
/* leve escurecimento no rodapé para a frase ficar legível */
.floresta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,10,31,0.55) 0%, rgba(6,10,31,0) 32%);
  pointer-events: none;
}
.floresta-band__note {
  position: relative;
  z-index: 2;
  margin-bottom: clamp(1rem, 3vw, 2.2rem);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(15, 81, 48, 0.88);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  text-align: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
}

/* ---------- Tecnologia NASA (bloco espacial) ---------- */
.nasa {
  margin-block: 4rem 0;
  padding-block: var(--pad-y);
  background:
    radial-gradient(80% 60% at 80% 10%, rgba(122,62,157,0.35), transparent 60%),
    linear-gradient(160deg, var(--space) 0%, var(--space-2) 100%);
  color: var(--paper);
}
.stages { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1rem; align-items: center; margin-block: 2.5rem; }
.stage { text-align: center; }
.stage figcaption { margin-top: 0.8rem; font-family: var(--font-display); font-weight: 500; color: var(--ice); font-size: 0.95rem; }
.stage__arrow { font-size: 1.6rem; color: var(--banana); }
.stage__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-s);
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
}
.nasa__copy { max-width: 640px; color: #cfd6f0; font-size: 1.08rem; }

/* ---------- O tesouro (grid de frutas, arrastável) ---------- */
.fruits {
  display: flex; gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem clamp(1rem, 4vw, 2.5rem) 1.5rem;
  scrollbar-width: thin;
}
.fruit {
  flex: 0 0 230px;
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid #ece5d5;
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
}
/* Imagem real da fruta (mesmo enquadramento do antigo placeholder) */
.fruit__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--radius-s);
}
.fruit h3 { font-size: 1.15rem; margin: 0.9rem 0 0; }
.fruit p { font-size: 0.92rem; color: #55645b; }

/* ---------- Produtos (missões) ---------- */
.missions { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 4.5rem; }
.mission {
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.mission--amazon { background: linear-gradient(160deg, #204d2b, #0f5130); color: var(--paper); }
.mission--tropical { background: linear-gradient(160deg, #f7c331, #f2882d); color: #3a2400; }
.mission__img { width: 100%; height: auto; display: block; }
.mission__body { padding: 1.6rem 1.8rem 2rem; }
.mission__body h3 { font-size: 1.5rem; margin: 0.2rem 0 1rem; }
.mission--amazon .eyebrow { color: var(--banana); }
.mission--tropical .eyebrow { color: #5a3a00; }
.taglist { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.taglist li {
  font-family: var(--font-display); font-weight: 500; font-size: 0.88rem;
  padding: 0.35rem 0.9rem; border-radius: 999px;
  background: rgba(255,255,255,0.18);
}
.mission--tropical .taglist li { background: rgba(255,255,255,0.45); }

/* ---------- Comparação ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem; align-items: stretch;
  max-width: 900px; margin-inline: auto;
}
.compare__col { border-radius: var(--radius); padding: 1.8rem; }
.compare__col h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.compare__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.compare__col li { padding-left: 1.5rem; position: relative; font-size: 0.98rem; }
.compare__col--common { background: #f2ede3; }
.compare__col--common li::before { content: "•"; position: absolute; left: 0.3rem; color: #b9ab90; }
.compare__col--ours { background: #e8f5ec; border: 2px solid var(--leaf); }
.compare__col--ours li::before { content: "✓"; position: absolute; left: 0.2rem; color: var(--leaf); font-weight: 700; }
.compare__vs { align-self: center; font-family: var(--font-display); font-weight: 700; color: var(--mango); font-size: 1.3rem; }

/* ---------- Impacto (faixa espacial) ---------- */
.impact {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--space) 0%, #060a1f 100%);
}
.impact__stars {
  position: absolute; inset: 0; opacity: 0.7;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 70% 20%, #fff, transparent),
    radial-gradient(1px 1px at 40% 70%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, #fff, transparent),
    radial-gradient(1px 1px at 55% 45%, #fff, transparent),
    radial-gradient(1px 1px at 10% 80%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 90% 85%, #fff, transparent);
  margin-top: -64px;
}
.impact .wrap { position: relative; z-index: 2; }

/* ---------- Placeholders de mídia (mockup) ---------- */
.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.35rem; text-align: center;
  border: 2px dashed #c9c2b0;
  border-radius: var(--radius-s);
  color: #7a7360;
  font-family: var(--font-display); font-weight: 500;
  background: repeating-linear-gradient(45deg, #f6f3ea, #f6f3ea 12px, #f1ede1 12px, #f1ede1 24px);
  padding: 1.5rem;
}
.placeholder small { font-weight: 400; font-size: 0.8rem; opacity: 0.8; }
.placeholder--fruit { aspect-ratio: 1; font-size: 3rem; border-color: #d8c7b0; }
.placeholder--fruit span { animation: float 6s ease-in-out infinite; }
.placeholder--pack { aspect-ratio: 4 / 3; border-color: #5a7a4f; color: #dff0e2; background: repeating-linear-gradient(45deg, #234a2c, #234a2c 12px, #1c3f24 12px, #1c3f24 24px); }
.placeholder--pack-tropical { border-color: #d99a2f; color: #6a4600; background: repeating-linear-gradient(45deg, #ffe9a8, #ffe9a8 12px, #ffe0a0 12px, #ffe0a0 24px); }

/* ---------- Rodapé ---------- */
.site-footer {
  text-align: center; padding: 3rem 1.5rem;
  background: var(--leaf-deep); color: #d6e8db;
}
.site-footer__logo { height: 40px; margin: 0 auto 1rem; opacity: 0.9; }
.site-footer__tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.2rem);
  color: var(--paper);
  max-width: 34ch;
  margin: 0 auto 1.2rem;
  line-height: 1.25;
}
.site-footer p { font-family: var(--font-display); margin-bottom: 0.5rem; }
.site-footer small { opacity: 0.6; }

/* ====================================================================
   Responsivo
   ==================================================================== */

/* ---- Ponto em que o menu vira sanduíche ---- */
@media (max-width: 1800px) {
  .nav-toggle { display: flex; }

  .nav {
    /* dropdown abaixo do cabeçalho */
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    transform: none;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid #eee7d8;
    box-shadow: 0 14px 26px rgba(14,22,54,0.10);
    padding: 0 clamp(1rem, 4vw, 2.5rem);

    /* fechado por padrão */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
  }
  .nav.is-open {
    max-height: 380px;
    opacity: 1;
    pointer-events: auto;
    padding: 0.4rem clamp(1rem, 4vw, 2.5rem) 0.9rem;
  }
  .nav a {
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f1ece0;
  }
  .nav a:last-child { border-bottom: none; }
  .nav a:hover { border-color: transparent; border-bottom-color: #f1ece0; }

 
}

@media (max-width: 860px) {
  .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .missions { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .stage__arrow { transform: rotate(90deg); justify-self: center; }
  .compare { grid-template-columns: 1fr; }
  .compare__vs { justify-self: center; }
}

@media (max-width: 560px) {
  .cards--3, .cards--4 { grid-template-columns: 1fr; }
  .clip { flex-basis: 260px; }
  .brand__logo { height: 48px; width:fit-content; }
  .floresta-band__note { font-size: 1rem; padding: 0.45rem 1rem; }
  .problema {padding-bottom: -64px;}
}

/* Acessibilidade: respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}