/* ==========================================================
   Nutreat — Landing page
   Paleta: verde #373921 · salva #9ca18a · areia #d7c7b7
           terracota #854627 · creme #e3e0d1
   ========================================================== */

:root {
  --green: #373921;
  --green-90: #43462b;
  --sage: #9ca18a;
  --sand: #d7c7b7;
  --terra: #854627;
  --terra-dark: #6f3a20;
  --cream: #e3e0d1;
  --paper: #f3f1ea;

  --ink: #373921;
  --ink-soft: #4d4f3d;
  --on-dark: #e3e0d1;
  --on-dark-soft: #b9bba6;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Raleway", "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 18px 40px -22px rgba(55, 57, 33, .45);
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.15; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 18px;
}
.eyebrow--terra { color: var(--terra); }
.eyebrow--line::after {
  content: "";
  display: block;
  width: 40px; height: 1px;
  margin-top: 18px;
  background: currentColor;
  opacity: .6;
}
.center .eyebrow--line::after { margin-inline: auto; }

.h2 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -.01em; margin-bottom: 24px; }
.h2 em { font-style: italic; }
.h3 { font-size: 24px; font-weight: 500; margin-bottom: 12px; }

.lead { font-size: clamp(17px, 1.6vw, 19px); font-weight: 300; color: var(--ink-soft); }
.lead--strong { font-weight: 400; color: var(--ink); margin-top: 1.6em; }
.sub { font-weight: 300; color: var(--ink-soft); max-width: 640px; margin-inline: auto; }

.rule { display: block; width: 40px; height: 1px; background: var(--sage); margin: 0 auto 28px; }
.rule--light { background: var(--on-dark-soft); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 34px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease, color .25s ease;
  box-shadow: var(--shadow);
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--dark { background: var(--green); color: var(--cream); }
.btn--dark:hover { background: var(--green-90); }
.btn--light { background: var(--cream); color: var(--green); }
.btn--light:hover { background: #fff; }
.btn--terra { background: var(--terra); color: var(--paper); }
.btn--terra:hover { background: var(--terra-dark); }
.btn--small { padding: 10px 20px; font-size: 12px; box-shadow: none; }
.btn--large { padding: 22px 42px; font-size: 15px; }

.cta-row { margin-top: clamp(40px, 6vw, 64px); }

/* ---------- Barra superior ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  background: rgba(227, 224, 209, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(55, 57, 33, .08);
  transform: translateY(-100%);
  transition: transform .35s ease;
}
.topbar.is-visible { transform: none; }
.topbar__brand { font-family: var(--serif); font-size: 22px; color: var(--green); text-decoration: none; }

/* ---------- Secções ---------- */
.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--green); color: var(--on-dark); }
.section--dark .lead, .section--dark .sub { color: var(--on-dark-soft); }
.section--dark .lead--strong { color: var(--on-dark); }
.section--dark .muted { color: var(--sage); }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .h2 { max-width: 760px; margin-inline: auto; }

/* ---------- 1 · Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--paper);
}
.hero__media { position: absolute; inset: 0 0 0 auto; width: 50%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(243,241,234,1) 0%, rgba(243,241,234,0) 22%);
}
.hero__content { position: relative; padding-block: 120px 80px; }
.hero__content > * { max-width: min(520px, 42vw); }
.hero__title {
  font-size: clamp(44px, 4.3vw, 70px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--green);
  margin-bottom: 28px;
}
.hero__title > span { display: block; }
.hero__title .accent { color: var(--terra); font-weight: 400; }
.hero__lead { font-family: var(--serif); font-size: clamp(19px, 1.9vw, 23px); line-height: 1.5; color: var(--ink); margin-bottom: 36px; }
.hero__note { margin-top: 18px; font-size: 13px; font-style: italic; color: var(--ink-soft); }

/* ---------- 4 · Pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pillar {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column;
}
.pillar__num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--terra); margin-bottom: 18px; }
.pillar > p { color: var(--ink-soft); font-weight: 300; }
.pillar__shift { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(55,57,33,.14); }
.pillar__shift p:last-child { margin: 0; color: var(--ink); font-size: 16px; }
.pillar__label { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--terra); margin-bottom: 8px; }

/* ---------- 5 · Cartões com foto ---------- */
.photo-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.photo-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green);
  box-shadow: var(--shadow);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.photo-card:hover img { transform: scale(1.04); }
.photo-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(55,57,33,0) 40%, rgba(55,57,33,.92) 100%);
}
.photo-card__body { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 24px; color: var(--paper); }
.photo-card__num { display: block; font-size: 12px; letter-spacing: .2em; margin-bottom: 6px; opacity: .8; }
.photo-card h3 { font-size: 23px; font-weight: 500; }

/* ---------- 6 · Bónus ---------- */
.bonus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bonus {
  border: 1px solid rgba(227, 224, 209, .18);
  border-radius: var(--radius);
  padding: clamp(32px, 4vw, 48px) 32px;
  text-align: center;
  transition: background-color .3s ease, border-color .3s ease;
}
.bonus:hover { background: rgba(227, 224, 209, .05); border-color: rgba(227, 224, 209, .32); }
.bonus__icon { width: 52px; height: 52px; margin: 0 auto 24px; fill: none; stroke: var(--sage); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.bonus__icon .fill { fill: var(--sage); stroke: none; }
.bonus__label { font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--sage); margin-bottom: 10px; }
.bonus .h3 { color: var(--on-dark); margin: 0; }

/* ---------- 7 · Comparação ---------- */
.compare {
  max-width: 940px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px -36px rgba(55,57,33,.5);
}
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 28px; text-align: center; }
.compare thead th {
  background: var(--green);
  color: var(--cream);
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  padding-block: 22px;
}
.compare thead th:first-child { text-align: left; }
.compare thead th.col-prog { background: var(--terra); }
.compare tbody th { text-align: left; font-weight: 400; color: var(--ink-soft); font-size: 16px; }
.compare tbody tr + tr { border-top: 1px solid rgba(55,57,33,.08); }
.compare tbody tr:nth-child(even) { background: var(--paper); }
.compare tbody td.col-prog { background: rgba(133, 70, 39, .06); }
.compare td { width: 22%; font-size: 18px; }
.compare .yes { color: var(--green); }
.compare .no { color: #b3b3a5; font-size: 15px; }
.compare td:not(.col-prog).yes { color: var(--sage); }
.pill {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green); color: var(--cream);
  font-family: var(--serif); font-size: 15px;
}

/* ---------- 8 · Testemunhos ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; gap: 24px; }
.testimonial { margin: 0; }
.video {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green);
  box-shadow: var(--shadow);
}
.video video { width: 100%; height: 100%; object-fit: cover; }
.video.is-playing video { object-fit: contain; background: #000; }
.video__play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border: 0; padding: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(55,57,33,0) 50%, rgba(55,57,33,.35) 100%);
}
.video__play span {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(243,241,234,.92);
  display: grid; place-items: center;
  transition: transform .3s ease;
}
.video__play span::before {
  content: "";
  border-left: 18px solid var(--green);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 5px;
}
.video__play:hover span { transform: scale(1.08); }
.video.is-playing .video__play { display: none; }
.testimonial figcaption { margin-top: 16px; text-align: center; font-family: var(--serif); font-size: 19px; }

/* ---------- 9 · Passos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step__num {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--sage);
  margin-bottom: 18px;
}
.step__num::after { content: ""; flex: 1; height: 1px; background: rgba(156,161,138,.45); }
.step p { color: var(--on-dark-soft); font-weight: 300; margin: 0; }

/* ---------- 10 · Sobre ---------- */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -30px rgba(55,57,33,.55); }
.about__text p { color: var(--ink-soft); font-weight: 300; }
.about__text .btn { margin-top: 16px; }

/* ---------- 11 · FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--paper);
  border-radius: var(--radius);
  transition: background-color .25s ease;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 28px;
  font-family: var(--serif); font-size: clamp(18px, 1.8vw, 21px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--terra);
  border-bottom: 1.5px solid var(--terra);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .3s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq__answer { padding: 0 28px 24px; color: var(--ink-soft); font-weight: 300; }
.faq__answer p:last-child { margin: 0; }

/* ---------- 12 · Final ---------- */
.final__title { font-size: clamp(52px, 8vw, 96px); margin-bottom: 24px; }
.final .btn { margin-top: 20px; }

/* ---------- 13 · Rodapé ---------- */
.footer { background: var(--green); color: var(--on-dark-soft); padding: 36px 0 44px; border-top: 1px solid rgba(227,224,209,.12); }
.footer__brand { font-family: var(--serif); font-size: 22px; color: var(--cream); margin-bottom: 6px; }
.footer__copy { font-size: 13px; margin: 0; }

/* ---------- Animação ao fazer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .photo-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
}

@media (max-width: 860px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__media { position: relative; width: 100%; height: 62svh; min-height: 360px; }
  .hero__media img { object-position: 62% 25%; }
  .hero__media::after { background: linear-gradient(180deg, rgba(243,241,234,0) 60%, rgba(243,241,234,1) 100%); }
  .hero__content { padding-block: 8px 64px; margin-top: -40px; }
  .hero__content > * { max-width: 560px; }
  .hero__title { font-size: clamp(40px, 10vw, 64px); }
  .pillars, .bonus-grid, .testimonials { grid-template-columns: 1fr; }
  .testimonials { max-width: 460px; margin-inline: auto; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 460px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn { padding: 16px 24px; font-size: 13px; letter-spacing: .08em; }
  .btn--small { padding: 9px 16px; font-size: 11px; }
  .photo-cards { gap: 12px; }
  .photo-card__body { padding: 16px; }
  .photo-card h3 { font-size: 18px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .compare th, .compare td { padding: 14px 12px; }
  .compare thead th { font-size: 11px; letter-spacing: .1em; }
  .compare tbody th { font-size: 14px; }
  .compare td { width: 20%; }
  .faq summary { padding: 18px 20px; }
  .faq__answer { padding: 0 20px 20px; }
}

/* Contraste: o rótulo do topo usa terracota sobre o fundo claro */
.hero .eyebrow { color: var(--terra); }

/* Testemunho em vídeo do YouTube */
.video img { width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
