/* Granola Pura · editorial kraft */

:root {
  --kraft: #D9AC72;
  --kraft-light: #E9D2AE;
  --cream: #F7F0E4;
  --ink: #1C1814;
  --muted: #4A3D30;
  --honey: #F2C66B;
  --cranberry: #A3283A;
  --white: #FFFFFF;
  --gutter: clamp(20px, 4.4vw, 64px);
  --section: clamp(64px, 8vw, 112px);
  --display: "Anton", Impact, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--kraft);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); }
a:hover { color: var(--cranberry); }

:focus-visible { outline: 3px solid var(--cranberry); outline-offset: 3px; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--section) var(--gutter);
}

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 6vw, 96px);
  line-height: 0.92;
}

.eyebrow { margin: 0; font-size: 28px; }

.muted { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 460px; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .25s, background .25s, color .25s;
}

.btn--lg { min-height: 56px; padding: 0 32px; font-size: 17px; }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--light { background: var(--white); color: var(--ink); }
.btn:hover { transform: rotate(-2deg) scale(1.04); background: var(--cranberry); color: var(--cream); }

/* Marquees */

.marquee { overflow: hidden; white-space: nowrap; }

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.marquee__track span { padding-right: 44px; }
.marquee__track--rev { animation-name: marquee-rev; animation-duration: 30s; }

.marquee--top {
  background: var(--ink);
  color: var(--honey);
  padding: 10px 0;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: .08em;
}

.marquee--ingredients {
  background: var(--cream);
  border-block: 2px solid var(--ink);
  padding: 14px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
}

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* Header */

.header {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px var(--gutter);
}

.header__logo { height: clamp(52px, 5vw, 72px); width: auto; }

/* Hero */

.hero {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px var(--gutter) 56px;
  min-height: 780px;
}

.hero__kicker { margin: 0; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.1; }

.hero__title {
  margin: 0 0 0 -.04em;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(150px, 30vw, 440px);
  line-height: .86;
  animation: wipe 1.4s cubic-bezier(.7, 0, .2, 1) .2s both;
}

@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.hero__foot { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.hero__foot p { margin: 0; max-width: 420px; font-size: 19px; line-height: 1.5; }

/* Polaroids */

.pola {
  margin: 0;
  background: var(--white);
  padding: 10px 10px 40px;
  box-shadow: 0 20px 44px rgba(28, 24, 20, .25);
}

.pola figcaption { margin-top: 8px; font-size: 20px; }
.pola img { width: 100%; object-fit: cover; }

.polas { position: absolute; inset: 0; pointer-events: none; }
.polas > * { pointer-events: auto; }

.pola--1 { position: absolute; top: 120px; right: 330px; width: 300px; animation: float-a 6s ease-in-out infinite; }
.pola--1 img { aspect-ratio: 1 / 1; }
.pola--2 { position: absolute; top: 290px; right: 64px; width: 250px; animation: float-b 7s ease-in-out infinite; }
.pola--2 img { aspect-ratio: 4 / 5; }

.badge { position: absolute; top: 60px; right: 110px; width: 160px; height: 160px; animation: spin 14s linear infinite; }

@keyframes float-a { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-14px); } }
@keyframes float-b { 0%, 100% { transform: rotate(5deg) translateY(0); } 50% { transform: rotate(7deg) translateY(10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Recipe: layers */

.recipe { background: var(--cream); }

.recipe__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  justify-content: space-between;
}

.recipe__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.layers { flex: 0 1 auto; display: flex; gap: 28px; align-items: flex-end; margin: 0 auto; }

.pouch {
  position: relative;
  width: 300px;
  height: 520px;
  border: 3px solid var(--ink);
  border-radius: 26px 26px 38px 38px;
  padding: 64px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  background: var(--kraft-light);
}

.pouch::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

.layer {
  flex: var(--h) 1 0;
  border-radius: 8px;
  background: var(--c);
  opacity: 0;
  transform: translateY(-380px);
  /* Saída: some de cima para baixo (a camada do topo, --i 11, primeiro) e só
     depois volta para cima, invisível, pronta para cair de novo. */
  transition: opacity .35s ease calc((11 - var(--i)) * .2s),
              transform 0s linear calc((11 - var(--i)) * .2s + .35s);
}

.layer--last { border-radius: 8px 8px 20px 20px; }

.labels {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.labels li { opacity: 0; transform: translateX(-10px); }

.layers.is-built .layer {
  opacity: 1;
  transform: translateY(0);
  /* Entrada: cai de baixo para cima (a camada do fundo, --i 0, primeiro). */
  transition: opacity .2s ease calc(var(--i) * .22s),
              transform .7s cubic-bezier(.3, 1.4, .5, 1) calc(var(--i) * .22s);
}

.labels li {
  transition: opacity .35s ease calc((11 - var(--i)) * .2s),
              transform .35s ease calc((11 - var(--i)) * .2s);
}

.layers.is-built .labels li {
  opacity: 1;
  transform: translateX(0);
  transition: opacity .5s ease-out calc(var(--i) * .22s + .15s),
              transform .5s ease-out calc(var(--i) * .22s + .15s);
}

/* Pacote dá um leve balanço quando a última camada assenta. */
.layers.is-built .pouch { animation: settle .6s ease-in-out 2.9s; }

@keyframes settle {
  0%, 100% { transform: rotate(0); }
  35% { transform: rotate(-1.5deg); }
  70% { transform: rotate(1deg); }
}

/* Order */

.order { background: var(--kraft); }

.order__inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }

.order__photo { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.pola--tilt { width: min(100%, 420px); transform: rotate(-3deg); }
.pola--tilt img { aspect-ratio: 4 / 5; }

.order__content { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price p { margin: 0; }
.price__value { font-family: var(--display); font-size: 44px; }
.price__unit { font-size: 24px; }

.order__form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 24px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 20px;
}

.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.field--full { grid-column: 1 / -1; }

.field input {
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
  background: var(--white);
}

.qty-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.qty-row p { margin: 0; font-size: 17px; font-weight: 400; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
}

.qty button {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 22px;
  cursor: pointer;
  border-radius: 999px;
}

.qty button:hover { background: var(--cream); }
.qty output { min-width: 32px; text-align: center; font-weight: 700; font-size: 18px; }

.form__note { margin: 0; font-size: 14px; font-weight: 400; color: var(--muted); }

/* Gallery */

.gallery { background: var(--cream); border-top: 2px solid var(--ink); }

.gallery__title {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--section) var(--gutter) 32px;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
}

.gal {
  display: flex;
  gap: 32px;
  justify-content: center;
  padding: 8px var(--gutter) var(--section);
}

.gal__item { flex: 0 0 300px; transform: rotate(var(--r)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.gal__item:hover { transform: rotate(0deg) scale(1.03); }
.gal__item img { aspect-ratio: 4 / 5; }

/* Narua */

.narua { background: var(--cranberry); color: var(--white); }

.narua__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(56px, 6vw, 80px);
}

.narua__inner > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.narua__inner p { margin: 0; font-size: 18px; line-height: 1.55; max-width: 520px; }
.narua__kicker { font-size: 26px !important; }
.narua__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5vw, 72px); line-height: .95; }

/* Footer */

.footer { background: var(--ink); color: var(--cream); }

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding-block: 40px;
}

.footer__brand { margin: 0; font-family: var(--display); font-size: 28px; letter-spacing: .02em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; }
.footer__links a { color: var(--cream); }
.footer__copy { margin: 0; font-size: 13px; color: #CBBBA8; }

/* Reveal on scroll */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Phone */

@media (max-width: 820px) {
  .hero { padding: 4px var(--gutter) 40px; min-height: 0; }

  .polas {
    position: relative;
    inset: auto;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: -24px 0 28px;
    min-height: 250px;
  }

  .pola--1 { position: relative; top: auto; right: auto; width: 46%; }
  .pola--2 { position: relative; top: 24px; right: auto; width: 42%; }
  .badge { top: -56px; right: -8px; width: 84px; height: 84px; }

  .pouch { width: 180px; height: 400px; }
  .layers { gap: 18px; }
  .labels { font-size: 14px; gap: 8px; }

  .gal { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); }
  .gal__item { flex: 0 0 72%; scroll-snap-align: center; }
}

/* Respect reduced motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .layer, .labels li, .reveal { opacity: 1; transform: none; }
  .hero__title { clip-path: none; }
}
