/* ============================================================
   "Os 5 amigos e seus supersentidos" — LP do Vol. 02
   Reaproveita tokens.css + styles.css (mesmos componentes da LP do Tomate)
   e só troca a paleta: os tokens são redefinidos no <body class="theme-amigos">.
   Cores tiradas da capa e do miolo:
     verde-floresta (texto, barras)  ·  amora/roxo (CTA, destaques)
     verde-limão (o "verdinho" que as duas coleções dividem)
     creme amarelado do papel  ·  mostarda do sol da capa
   ============================================================ */
body.theme-amigos {
  --cream: #fbf7e0;
  --cream-soft: #fffcee;
  --cream-deep: #eee7bf;
  --line: #e5ddb3;

  --teal: #2c4a20;          /* verde-floresta escuro */
  --teal-deep: #3d6a2c;     /* verde-floresta: texto, sticky, kit, universo, footer */
  --teal-mid: #5b8a38;
  --teal-soft: #e1eab9;
  --line-dark: #55743f;

  --tomato: #87497a;        /* amora: CTAs, eyebrows, destaques */
  --tomato-deep: #64325a;
  --tomato-bright: #b67aa6;

  --lime: #c2d362;
  --lime-bg: rgba(182, 200, 85, 0.32);

  --amber: #f0b92a;
  --amber-deep: #cf9512;
  --gold: #f0c030;

  --ink: #1f2b17;

  /* Sombras que referenciam cores precisam ser redeclaradas aqui: o valor do
     :root já vem resolvido com as cores do Tomate. */
  --shadow-stack-teal: 0 14px 0 0 #3d6a2c, 0 24px 40px -16px rgba(0,0,0,.4);
  --shadow-stack-tomato: 0 10px 0 -2px #64325a, 0 20px 30px -10px rgba(0,0,0,.4);
  --shadow-card: 0 18px 36px -22px rgba(40,60,20,.45);
  --shadow-float: 0 26px 50px -26px rgba(40,60,20,.5);

  --berry-title: #e4572e;   /* laranja-tomate do título da capa */
}

/* Hovers que no Tomate são um vermelho fixo */
.theme-amigos .btn--tomato:hover,
.theme-amigos .pill-btn:hover { background: #9a5a8c; }
.theme-amigos :focus-visible { outline-color: var(--tomato); }

/* ============================================================
   HERO
   ============================================================ */
.am-hero {
  position: relative; overflow: hidden;
  padding: 70px var(--pad-x) 96px;
  color: var(--teal);
  background:
    radial-gradient(900px 520px at 85% 15%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(140,170,60,.35), transparent 60%),
    linear-gradient(180deg, #eef3c6 0%, #d5e292 100%);
}
.am-hero .brand__name { color: var(--teal); }
.am-hero .hero__links a { color: var(--teal); }
.am-hero .eyebrow-pill { background: rgba(61,106,44,.12); color: var(--teal-deep); }
.am-hero .eyebrow-pill__dot { background: var(--tomato); }

/* Amoras decorativas: um cacho feito com box-shadow, sem imagem extra. */
.am-hero__berry {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: var(--tomato); opacity: .85; pointer-events: none;
  box-shadow:
    16px 0 0 var(--tomato), 8px 13px 0 #9a5a8c, -8px 13px 0 var(--tomato),
    24px 13px 0 #9a5a8c, 0 26px 0 var(--tomato), 16px 26px 0 #9a5a8c, 8px 38px 0 var(--tomato);
}
.am-hero__berry::before {        /* folhinha */
  content: ''; position: absolute; left: 4px; top: -18px; width: 22px; height: 12px;
  border-radius: 0 100% 0 100%; background: var(--teal-mid); transform: rotate(-18deg);
}
.am-hero__berry--a { right: 7%; top: 120px; transform: rotate(12deg); }
.am-hero__berry--b { left: 4%; bottom: 70px; transform: rotate(-20deg) scale(.8); opacity: .55; }
.am-hero__berry--c { right: 44%; bottom: 40px; transform: rotate(30deg) scale(.6); opacity: .45; }

.am-hero__grid {
  position: relative; display: grid;
  grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.am-hero__title {
  font-family: var(--font-title); font-weight: 800;
  font-size: 74px; line-height: 0.98; letter-spacing: -0.04em;
  margin: 24px 0 0; color: var(--teal);
}
.am-hero__accent {
  display: block; margin-top: 10px;
  font-family: var(--font-italic); font-style: italic; font-weight: 500;
  font-size: 0.6em; line-height: 1.08; letter-spacing: -0.02em;
  color: var(--tomato);
}
.am-hero__sub {
  max-width: 520px; font-size: 19px; line-height: 1.55; color: #3c5428;
  margin: 26px 0 0;
}
.am-hero__sub strong { font-weight: 800; color: var(--teal); }
.am-btn-lg { font-size: 17px; padding: 20px 28px; border-radius: var(--r-btn); }
.am-link {
  display: inline-flex; align-items: center; padding: 14px 4px;
  font-weight: 700; font-size: 14px; color: var(--teal-deep);
  text-decoration: underline; text-decoration-thickness: 2px;
  text-decoration-color: rgba(61,106,44,.35); text-underline-offset: 5px;
  transition: text-decoration-color .15s ease;
}
.am-link:hover { text-decoration-color: var(--teal-deep); }
.am-hero__seals { color: var(--teal-deep); opacity: 1; }

/* Capa em "3D" leve: perspectiva + lombada desenhada com gradiente. */
.am-hero__art { display: flex; justify-content: center; }
.am-book { position: relative; perspective: 1400px; width: min(440px, 100%); }
.am-book picture {
  display: block; position: relative;
  transform: rotateY(-14deg) rotateX(3deg) rotateZ(1deg);
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.9,.3,1);
  filter: drop-shadow(0 34px 40px rgba(40,60,20,.38));
}
.am-book:hover picture { transform: rotateY(-6deg) rotateX(1deg) rotateZ(0deg); }
.am-book picture::after {
  content: ''; position: absolute; inset: 0; border-radius: 4px 10px 10px 4px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(255,255,255,.25) 2.2%, rgba(0,0,0,.06) 4.5%, transparent 9%, transparent 85%, rgba(255,255,255,.12) 100%);
}
.am-book__img { width: 100%; height: auto; border-radius: 4px 10px 10px 4px; }
.am-book__sticker {
  position: absolute; left: -22px; bottom: 34px; z-index: 2;
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--tomato); color: var(--cream);
  font-family: var(--font-title); font-weight: 800; font-size: 17px; line-height: 1.05;
  transform: rotate(-10deg);
  box-shadow: 0 8px 0 -2px var(--tomato-deep), 0 16px 26px -12px rgba(0,0,0,.4);
}
.am-book__sticker small { font-family: var(--font-label); font-size: 11px; font-weight: 700; opacity: .85; }
.am-book__note {
  position: absolute; right: -54px; top: -58px; z-index: 2;
  font-family: var(--font-hand); font-size: 28px; line-height: .95; font-weight: 700;
  color: var(--tomato); transform: rotate(8deg); text-align: center;
}

/* ============================================================
   A HISTÓRIA
   ============================================================ */
.am-story { background: var(--cream); }
.am-spread { margin: 0; }
.am-spread img {
  width: 100%; height: auto; border-radius: var(--r-card-lg);
  box-shadow: var(--shadow-float);
}
.am-spread figcaption {
  margin: 18px auto 0; max-width: 640px; text-align: center;
  font-family: var(--font-hand); font-size: 26px; line-height: 1.15; color: var(--tomato);
}
.am-facts {
  margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.am-facts li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px; border-radius: var(--r-card);
  background: var(--cream-soft); border: 1.5px solid var(--line);
}
.am-facts strong { font-family: var(--font-title); font-size: 20px; color: var(--teal-deep); }
.am-facts span { font-size: 14px; line-height: 1.5; color: var(--teal); opacity: .8; }

/* ============================================================
   OS 5 AMIGOS
   ============================================================ */
.am-friends {
  background:
    linear-gradient(rgba(251,247,224,.90), rgba(251,247,224,.90)),
    url('../images/amigos/lp-pattern.webp') center / 260px repeat;
}
.am-friends__head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 44px; }
.am-friends__text { font-size: 17px; line-height: 1.65; color: var(--teal); opacity: .88; margin: 0; }
.am-friends__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.friend {
  display: flex; flex-direction: column;
  background: var(--cream-soft); border: 1.5px solid var(--line); border-radius: var(--r-card-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform .2s cubic-bezier(.2,.9,.3,1.2);
}
.friend:hover { transform: translateY(-4px) rotate(-.6deg); }
.friend--b:hover { transform: translateY(-4px) rotate(.6deg); }
.friend__img { position: relative; aspect-ratio: 1 / 1; background: var(--teal-soft); }
.friend__img img { width: 100%; height: 100%; object-fit: cover; }
.friend__sense {
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: var(--r-pill);
  background: var(--tomato); color: var(--cream);
  font-family: var(--font-label); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.45);
}
.friend__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.friend__name {
  margin: 0; font-family: var(--font-title); font-weight: 800; font-size: 26px; line-height: 1;
  color: var(--teal-deep);
}
.friend__name span { display: block; margin-top: 3px; font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--teal); opacity: .7; }
.friend__food { margin: 0; font-size: 13px; color: var(--teal); }
.friend__food strong { color: var(--teal-deep); }
.friend__quote {
  margin: auto 0 0; padding-top: 10px; border-top: 1.5px dashed var(--line);
  font-family: var(--font-hand); font-size: 19px; line-height: 1.1; color: var(--tomato);
}
.am-friends__note {
  margin: 28px auto 0; max-width: 720px; text-align: center;
  font-size: 13px; line-height: 1.6; color: var(--teal); opacity: .7;
}

/* ============================================================
   KITS
   ============================================================ */
.am-kits { background: var(--teal-deep); color: var(--cream); overflow: hidden; }
.am-kits__glow {
  position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: var(--tomato); opacity: .35; filter: blur(70px); pointer-events: none;
}
.am-kits .container { position: relative; }
.am-kits__sub { color: var(--cream); opacity: .85; }
.am-kits__grid { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 18px; align-items: center; }
.am-kit {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 30px 24px 28px; border-radius: var(--r-card-lg);
  background: var(--cream-soft); color: var(--teal);
}
.am-kit--featured {
  padding: 40px 28px 34px;
  box-shadow: 0 0 0 4px var(--lime), 0 30px 50px -24px rgba(0,0,0,.55);
}
.am-kit__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--lime); color: var(--teal);
  font-family: var(--font-label); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  white-space: nowrap;
}
.am-kit__covers { display: flex; justify-content: center; align-items: flex-end; height: 132px; }
.am-kit__covers img {
  width: auto; height: 116px; border-radius: 5px; background: #fff;
  box-shadow: 0 14px 22px -10px rgba(0,0,0,.45);
}
.am-kit__covers img:first-child { transform: rotate(-7deg) translateX(10px); }
.am-kit__covers img + img { transform: rotate(6deg) translateX(-10px) translateY(-6px); }
.am-kit--featured .am-kit__covers img { height: 128px; }
.am-kit__title { margin: 4px 0 0; font-family: var(--font-title); font-weight: 800; font-size: 26px; line-height: 1.05; color: var(--teal-deep); }
.am-kit__text { margin: 0; font-size: 14px; line-height: 1.55; opacity: .85; max-width: 300px; }
.am-kit__btn { margin-top: 8px; }
.am-kit .btn:not(.btn--tomato) {
  background: transparent; color: var(--tomato); font-size: 15px; padding: 14px 20px;
  border: 2px solid var(--tomato); border-radius: var(--r-btn-sm);
}
.am-kit .btn:not(.btn--tomato):hover { background: var(--tomato); color: var(--cream); }

/* ============================================================
   ESPIE POR DENTRO
   ============================================================ */
.am-preview__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.am-preview__cell {
  margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card);
  aspect-ratio: 1 / 1; background: var(--cream-deep);
}
.am-preview__cell--wide { grid-column: span 2; aspect-ratio: auto; }
.am-preview__cell img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   CINCO PASSOS
   ============================================================ */
.am-steps .step__img img { aspect-ratio: 16 / 10; object-fit: cover; }
.step__badge {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--lime); color: var(--teal); letter-spacing: .1em;
}

/* ============================================================
   COLEÇÃO (cross-sell com o Tomate — nas cores do Tomate)
   ============================================================ */
.am-collection { background: var(--cream-soft); }
.am-collection__card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center;
  padding: 44px; border-radius: var(--r-card-lg);
  background: #cd474b; color: #faf3e3;
}
.am-collection__card::before {
  content: ''; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px;
  border-radius: 50%; background: #ff6a4d; opacity: .22; pointer-events: none;
}
.am-collection__art { position: relative; height: 260px; }
.am-collection__art img { position: absolute; border-radius: 6px; box-shadow: 0 22px 34px -14px rgba(0,0,0,.5); }
.am-collection__tomate { width: 190px; height: auto; left: 10%; top: 0; transform: rotate(-6deg); }
.am-collection__amigos { width: 170px; height: auto; left: 45%; top: 70px; transform: rotate(7deg); }
.am-collection__copy { position: relative; }
.am-collection .eyebrow--tomato { color: #ffd38a; }
.am-collection__title {
  font-family: var(--font-title); font-weight: 800; font-size: 44px; line-height: 1.02;
  letter-spacing: -.03em; margin: 14px 0 0;
}
.am-collection__text { margin: 16px 0 0; font-size: 16px; line-height: 1.6; opacity: .92; max-width: 520px; }
.am-collection__actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.am-collection .btn--tomato {
  background: #faf3e3; color: #cd474b;
  box-shadow: 0 10px 0 -2px #a8332f, 0 20px 30px -10px rgba(0,0,0,.4);
}
.am-collection .btn--tomato:hover { background: #fff; }
.am-collection .am-link { color: #faf3e3; text-decoration-color: rgba(250,243,227,.5); }
.am-collection .am-link:hover { text-decoration-color: #faf3e3; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.am-final .final-cta__title { max-width: 980px; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  .am-hero { padding: 48px 40px 76px; }
  .am-hero__title { font-size: 58px; }
  .am-friends__grid { grid-template-columns: repeat(3, 1fr); }
  .am-kits__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; gap: 30px; }
  .am-collection__title { font-size: 36px; }
}

@media (max-width: 860px) {
  .am-hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .am-hero__art { order: 2; }
  .am-friends__head { grid-template-columns: 1fr; gap: 20px; }
  .am-facts { grid-template-columns: 1fr; }
  .am-collection__card { grid-template-columns: 1fr; padding: 32px; gap: 20px; }
  .am-collection__art { height: 220px; max-width: 360px; width: 100%; margin: 0 auto; }
  .am-preview__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .am-hero { padding: 32px 20px 64px; }
  .am-hero__title { font-size: 42px; }
  .am-hero__sub { font-size: 17px; }
  .am-hero .hero__seals { flex-direction: column; align-items: flex-start; gap: 8px; }
  .am-hero .hero__seals .sep { display: none; }
  .am-btn-lg { width: 100%; justify-content: center; }
  .am-book { width: min(300px, 86%); }
  .am-book__sticker { width: 78px; height: 78px; font-size: 14px; left: -14px; }
  .am-book__note { font-size: 22px; right: -8px; top: -30px; }
  .am-hero__berry--a, .am-hero__berry--c { display: none; }

  /* Amigos: carrossel horizontal com snap, um card e meio na tela */
  .am-friends__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 -20px; padding: 6px 20px 18px; scrollbar-width: none;
  }
  .am-friends__grid::-webkit-scrollbar { display: none; }
  .friend { scroll-snap-align: center; }
  .friend:hover, .friend--b:hover { transform: none; }

  .am-spread figcaption { font-size: 21px; }
  .am-preview__grid { grid-template-columns: 1fr; }
  .am-preview__cell--wide { grid-column: auto; }
  .am-collection__card { padding: 26px 20px; }
  .am-collection__title { font-size: 30px; }
  .am-collection__art { height: 190px; }
  .am-collection__tomate { width: 140px; }
  .am-collection__amigos { width: 130px; top: 54px; }
  .am-kit__title { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .am-book picture, .friend { transition: none; }
}
