/* ==========================================================================
   Albon — Design System + Animações
   Fábrica de ração para aves · Verde floresta + trigo dourado
   Carregado DEPOIS do Tailwind Play CDN; componentes aqui são
   autossuficientes (nenhum padding/size depende de utilitário Tailwind).
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Verde floresta */
  --forest-950: #04170f;
  --forest-900: #07251a;
  --forest-800: #0b3728;
  --forest-700: #0f4a34;
  --forest-600: #146144;
  --forest-500: #1c7a56;
  --forest-400: #2e9c6e;
  --forest-300: #5cbb92;
  --forest-200: #9bd9bc;
  --forest-100: #d3efe1;
  --forest-50:  #edf9f3;

  /* Trigo dourado */
  --wheat-900: #5a3b0c;
  --wheat-700: #9c6a15;
  --wheat-600: #be841c;
  --wheat-500: #d89f2c;
  --wheat-400: #e8b44a;
  --wheat-300: #f2c96b;
  --wheat-200: #f9e0a6;
  --wheat-100: #fcefd0;
  --wheat-50:  #fdf8ec;

  --cream:   #fbf8f1;
  --ink-900: #101714;
  --ink-700: #33413a;
  --ink-500: #5f6f66;
  --ink-400: #8a968e;

  /* Gradientes reutilizados */
  --grad-brand: linear-gradient(135deg, var(--forest-700) 0%, var(--forest-500) 100%);
  --grad-wheat: linear-gradient(135deg, var(--wheat-500) 0%, var(--wheat-300) 100%);
  --grad-ink:   linear-gradient(180deg, var(--forest-900) 0%, var(--forest-950) 100%);

  /* Curvas */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  /* Raios */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
}

/* ---------- 2. BASE ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  color: var(--ink-700);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Sora', 'Poppins', sans-serif;
  color: var(--forest-900);
  letter-spacing: -.02em;
}

::selection {
  background: var(--wheat-300);
  color: var(--forest-900);
}

:focus-visible {
  outline: 2.5px solid var(--wheat-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Rolagem fina e stylish */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--forest-50); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--forest-400), var(--forest-600));
  border-radius: 99px;
  border: 3px solid var(--forest-50);
}

/* ---------- 3. TIPOGRAFIA / SELOS ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wheat-600);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-wheat);
}
.eyebrow--light { color: var(--wheat-300); }
.eyebrow--center { justify-content: center; }

.lede {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink-500);
  max-width: 60ch;
}

.grad-text {
  background: linear-gradient(100deg, var(--wheat-300) 0%, var(--wheat-500) 55%, var(--wheat-300) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 6s var(--ease-soft) infinite;
}

/* ---------- 4. TEXTURAS E DECORAÇÃO ---------- */
.grain-layer {
  position: relative;
  isolation: isolate;
}
.grain-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(rgba(232, 180, 74, .13) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 26px 26px, 44px 44px;
  background-position: 0 0, 13px 21px;
  mask-image: linear-gradient(to bottom, #000 20%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
  animation: breathe 9s var(--ease-soft) infinite;
}

.wheat-divider {
  height: 22px;
  width: 100%;
  color: var(--wheat-400);
  opacity: .5;
}

/* ---------- 5. BOTÕES ---------- */
.btn {
  --btn-bg: var(--grad-brand);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .9rem 1.6rem;
  border: 0;
  border-radius: 99px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s;
  box-shadow: 0 6px 18px -8px rgba(7, 37, 26, .45);
}
/* brilho que atravessa o botão no hover */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .42) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .75s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(7, 37, 26, .55); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(-1px) scale(.99); }
.btn .ic { width: 1.15em; height: 1.15em; font-size: 1.15em; transition: transform .45s var(--ease-out); }
.btn:hover .ic { transform: translateX(3px); }

.btn--wheat { --btn-bg: var(--grad-wheat); --btn-fg: var(--forest-900); }
.btn--wa { --btn-bg: linear-gradient(135deg, #25d366 0%, #128c7e 100%); }

.btn--ghost {
  background: transparent;
  color: var(--forest-700);
  box-shadow: inset 0 0 0 1.6px var(--forest-200);
}
.btn--ghost:hover {
  background: var(--forest-50);
  color: var(--forest-800);
  box-shadow: inset 0 0 0 1.6px var(--forest-400);
}
.btn--ghost-light {
  color: #fff;
  box-shadow: inset 0 0 0 1.6px rgba(255, 255, 255, .34);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.btn--sm { padding: .65rem 1.15rem; font-size: .86rem; }
.btn--block { width: 100%; }

/* link com sublinhado que cresce */
.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--forest-700);
  font-weight: 600;
}
.link-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--wheat-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }
.link-underline .ic { width: 1.05em; height: 1.05em; font-size: 1.05em; transition: transform .4s var(--ease-out); }
.link-underline:hover .ic { transform: translateX(4px); }

/* ---------- 6. NAVBAR ---------- */
.nav-shell {
  transition: background-color .45s var(--ease-soft), box-shadow .45s var(--ease-soft), backdrop-filter .45s, padding .45s var(--ease-out);
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}
.nav-shell.is-stuck {
  padding-top: .55rem;
  padding-bottom: .55rem;
  background: rgba(251, 248, 241, .82);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 1px 0 rgba(15, 74, 52, .09), 0 10px 30px -18px rgba(7, 37, 26, .3);
}

.nav-link {
  position: relative;
  padding: .35rem 0;
  color: var(--ink-700);
  font-size: .93rem;
  font-weight: 500;
  transition: color .3s var(--ease-soft);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 99px;
  background: var(--grad-wheat);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover { color: var(--forest-700); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--forest-800); font-weight: 600; }
.nav-link.is-active::after { transform: scaleX(1); }

/* logo */
.logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--grad-brand);
  color: var(--wheat-300);
  box-shadow: 0 8px 18px -8px rgba(7, 37, 26, .6);
  transition: transform .6s var(--ease-out);
}
.logo-mark .ic { width: 24px; height: 24px; font-size: 24px; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo:hover .logo-mark .ic { animation: flap .7s var(--ease-soft); }

/* logo em PNG (lockup completo: hen + ALBON + tagline) */
.logo-img {
  display: block;
  height: 46px;
  width: auto;
  transition: transform .5s var(--ease-out);
}
.logo:hover .logo-img { transform: translateY(-2px) scale(1.04); }
.logo-img--footer { height: 58px; }
.logo-type {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--forest-800);
  letter-spacing: -.03em;
}
.logo-sub {
  display: block;
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-top: 3px;
}

/* botão hambúrguer animado */
.burger {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--forest-50);
  color: var(--forest-800);
  cursor: pointer;
  transition: background-color .3s, transform .4s var(--ease-out);
}
.burger:hover { background: var(--forest-100); transform: scale(1.05); }
.burger .ic { width: 22px; height: 22px; font-size: 22px; }
.burger .ic--close { display: none; }
.burger[aria-expanded='true'] .ic--menu { display: none; }
.burger[aria-expanded='true'] .ic--close { display: block; animation: pop .35s var(--ease-out); }

/* menu mobile: painel deslizante com stagger dos itens */
#menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height .55s var(--ease-out), opacity .35s var(--ease-soft);
  opacity: 0;
}
#menu.is-open { max-height: 460px; opacity: 1; }
@media (min-width: 768px) {
  #menu {
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
  }
  /* no desktop não existe "abrir menu": os itens já entram visíveis */
  #menu li {
    opacity: 1 !important;
    transform: none !important;
  }
}
#menu li {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
#menu.is-open li { opacity: 1; transform: none; }
#menu li:nth-child(1) { transition-delay: .06s; }
#menu li:nth-child(2) { transition-delay: .12s; }
#menu li:nth-child(3) { transition-delay: .18s; }
#menu li:nth-child(4) { transition-delay: .24s; }
#menu li:nth-child(5) { transition-delay: .3s; }

/* dropdown do catálogo no desktop */
.has-drop { position: relative; }
.drop-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 560px;
  padding: 1rem;
  transform: translate(-50%, -10px);
  opacity: 0;
  visibility: hidden;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -24px rgba(7, 37, 26, .38);
  border: 1px solid var(--forest-100);
  transition: opacity .3s var(--ease-soft), transform .4s var(--ease-out), visibility .3s;
}
.has-drop:hover .drop-panel,
.has-drop:focus-within .drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.drop-panel a {
  display: flex;
  gap: .8rem;
  align-items: center;
  padding: .7rem .8rem;
  border-radius: var(--r-sm);
  transition: background-color .28s, transform .35s var(--ease-out);
}
.drop-panel a:hover { background: var(--forest-50); transform: translateX(4px); }

/* ---------- 7. CARDS ---------- */
.card {
  position: relative;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid rgba(15, 74, 52, .08);
  box-shadow: 0 1px 2px rgba(7, 37, 26, .04), 0 12px 28px -18px rgba(7, 37, 26, .22);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 2px 4px rgba(7, 37, 26, .05), 0 30px 56px -24px rgba(7, 37, 26, .34);
  border-color: rgba(20, 97, 68, .2);
}

/* brilho que segue o cursor (desktop) */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 180, 74, .18), transparent 62%);
  transition: opacity .45s var(--ease-soft);
}
.card:hover::before { opacity: 1; }

/* card de etapa (numero grande ao fundo) */
.step {
  position: relative;
  height: 100%;
  padding: 28px 24px 26px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid rgba(15, 74, 52, .08);
  box-shadow: 0 1px 2px rgba(7, 37, 26, .04), 0 12px 28px -18px rgba(7, 37, 26, .22);
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
}
.step:hover {
  transform: translateY(-7px);
  box-shadow: 0 2px 4px rgba(7, 37, 26, .05), 0 30px 56px -24px rgba(7, 37, 26, .34);
  border-color: rgba(20, 97, 68, .2);
}
.step::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 180, 74, .18), transparent 62%);
  transition: opacity .45s var(--ease-soft);
}
.step:hover::before { opacity: 1; }

/* numero gigante: fica acima do fundo, abaixo do conteudo */
.step__num {
  position: absolute;
  top: 6px;
  right: 18px;
  z-index: 0;
  font-size: 4.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--forest-50);
  pointer-events: none;
  user-select: none;
  transition: color .5s var(--ease-soft), transform .5s var(--ease-out);
}
.step:hover .step__num {
  color: var(--wheat-100);
  transform: translateY(-4px);
}

/* conteudo acima do numero e do brilho */
.step > *:not(.step__num) { position: relative; z-index: 1; }
.step .icon-tile { position: relative; z-index: 1; }

/* card de categoria */
.cat-card {
  display: block;
  padding: 2.1rem 1.6rem;
  text-align: center;
  isolation: isolate;
}
.cat-card .icon-tile {
  margin: 0 auto 1.2rem;
  transition: transform .55s var(--ease-out);
}
.cat-card:hover .icon-tile { transform: translateY(-6px) rotate(-6deg); }
.cat-card .cat-art {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 130px;
  height: 130px;
  font-size: 130px;
  color: var(--forest-50);
  z-index: -1;
  opacity: 0;
  transform: scale(.7) rotate(-14deg);
  transition: opacity .6s var(--ease-out), transform .7s var(--ease-out);
}
.cat-card:hover .cat-art { opacity: 1; transform: scale(1) rotate(0deg); }

/* tile de ícone */
.icon-tile {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 20px;
  background: linear-gradient(140deg, var(--forest-600), var(--forest-400));
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(7, 37, 26, .55);
  position: relative;
  overflow: hidden;
}
.icon-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, .3), transparent 60%);
}
.icon-tile .ic { width: 30px; height: 30px; font-size: 30px; position: relative; z-index: 1; }
.icon-tile--wheat { background: var(--grad-wheat); color: var(--forest-900); box-shadow: 0 12px 24px -12px rgba(186, 128, 28, .5); }
.icon-tile--sm { width: 46px; height: 46px; border-radius: 14px; }
.icon-tile--sm .ic { width: 22px; height: 22px; font-size: 22px; }
.icon-tile--lg { width: 82px; height: 82px; border-radius: 26px; }
.icon-tile--lg .ic { width: 38px; height: 38px; font-size: 38px; }

/* lista com check do nicho */
.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .5rem 0;
}
.tick-list .ic {
  flex: none;
  width: 22px;
  height: 22px;
  font-size: 16px;
  padding: 3px;
  border-radius: 7px;
  background: var(--forest-100);
  color: var(--forest-700);
  margin-top: 2px;
}

/* tags / badges */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .34rem .7rem;
  border-radius: 99px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .01em;
  background: var(--forest-50);
  color: var(--forest-700);
  border: 1px solid var(--forest-100);
}
.tag .ic { width: 13px; height: 13px; font-size: 13px; }
.tag--wheat { background: var(--wheat-50); color: var(--wheat-700); border-color: var(--wheat-100); }

/* estrelas de avaliação */
.stars { position: relative; display: inline-block; line-height: 0; vertical-align: middle; }
.stars__row { display: inline-flex; gap: 2px; }
.stars__row .ic { width: 14px; height: 14px; font-size: 14px; display: block; }
.stars__bg { color: var(--forest-100); }
.stars__fg {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--wheat-400);
}
.stars--sm .stars__row .ic { width: 12px; height: 12px; font-size: 12px; }
.stars--lg .stars__row .ic { width: 18px; height: 18px; font-size: 18px; }

/* ---------- 8. BOTÃO WHATSAPP FLUTUANTE ---------- */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #34d97f, #1ba968);
  box-shadow: 0 12px 30px -8px rgba(27, 169, 104, .65);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
  animation: floatY 4.5s ease-in-out infinite;
}
.wa-float .ic { width: 28px; height: 28px; font-size: 28px; }
.wa-float:hover { transform: scale(1.09); animation-play-state: paused; }
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulseRing 2.6s var(--ease-out) infinite;
}
.wa-float .wa-tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  padding: .45rem .8rem;
  border-radius: 10px;
  background: var(--forest-900);
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, transform .4s var(--ease-out), visibility .3s;
}
.wa-float:hover .wa-tip { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }

/* voltar ao topo */
.to-top {
  position: fixed;
  right: 1.35rem;
  bottom: 5.6rem;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  color: var(--forest-700);
  box-shadow: 0 8px 22px -10px rgba(7, 37, 26, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.85);
  transition: opacity .35s, transform .45s var(--ease-out), visibility .35s;
}
.to-top .ic { width: 20px; height: 20px; font-size: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--forest-800); color: #fff; }

/* ---------- 9. FORMULÁRIOS ---------- */
.field {
  width: 100%;
  padding: .9rem 1.05rem .9rem 2.9rem;
  border-radius: 14px;
  border: 1.5px solid var(--forest-100);
  background: #fff;
  font: inherit;
  font-size: .95rem;
  color: var(--ink-900);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.field::placeholder { color: var(--ink-400); }
.field:focus {
  outline: 0;
  border-color: var(--forest-400);
  box-shadow: 0 0 0 4px rgba(46, 156, 110, .15);
}
.field-wrap { position: relative; }
.field-wrap > .ic {
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  font-size: 18px;
  color: var(--forest-500);
  pointer-events: none;
  transition: color .3s;
}
.field-wrap:focus-within > .ic { color: var(--forest-700); }
.field-label {
  display: block;
  margin-bottom: .45rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--forest-800);
}

/* ---------- 10. FILTROS (pills) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .68rem 1.15rem;
  border-radius: 99px;
  border: 1.5px solid var(--forest-100);
  background: #fff;
  color: var(--ink-700);
  font: inherit;
  font-size: .87rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform .4s var(--ease-out), background-color .3s, color .3s, border-color .3s, box-shadow .4s;
}
.pill .ic { width: 17px; height: 17px; font-size: 17px; }
.pill:hover { transform: translateY(-2px); border-color: var(--forest-300); box-shadow: 0 8px 18px -12px rgba(7, 37, 26, .5); }
.pill.is-active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(7, 37, 26, .6);
}
.pill.is-active .ic { color: var(--wheat-300); }

/* ---------- 11. SCROLL REVEAL ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal='left']  { transform: translateX(-34px); }
[data-reveal='right'] { transform: translateX(34px); }
[data-reveal='scale'] { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 12. ANIMAÇÕES ---------- */
@keyframes flap {
  0%, 100% { transform: rotate(0) translateY(0); }
  30% { transform: rotate(-9deg) translateY(-1.5px); }
  65% { transform: rotate(5deg) translateY(1px); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .55; }
  50% { transform: scale(1.16); opacity: .8; }
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: .65; }
  70%, 100% { transform: scale(1.75); opacity: 0; }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes shimmerText { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes shimmerBg {
  0% { background-position: -140% 0; }
  100% { background-position: 140% 0; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes driftDown {
  0% { transform: translate3d(0, -12vh, 0) rotate(0deg); opacity: 0; }
  12% { opacity: .85; }
  100% { transform: translate3d(var(--dx, 0), 112vh, 0) rotate(var(--rot, 220deg)); opacity: 0; }
}
@keyframes drawIn {
  from { stroke-dashoffset: var(--len, 100); }
  to { stroke-dashoffset: 0; }
}
@keyframes riseFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes ringWobble {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2.5deg); }
}

.anim-float { animation: floatY 5s ease-in-out infinite; }
.anim-float-sm { animation: floatY 6.5s ease-in-out infinite; }
.anim-float-lg { animation: floatY 4s ease-in-out infinite; }
.anim-spin { animation: spinSlow 18s linear infinite; }
.anim-wobble { animation: ringWobble 5s var(--ease-soft) infinite; transform-origin: 50% 20%; }
.anim-delay-1 { animation-delay: .9s; }
.anim-delay-2 { animation-delay: 1.7s; }
.anim-delay-3 { animation-delay: 2.5s; }

.ic { display: inline-block; vertical-align: middle; line-height: 1; font-style: normal; }
/* Ícones em fonte (Bootstrap Icons): tamanho via font-size; :where() mantém baixa especificidade */
i.ic { width: 1em; height: 1em; }
i.ic:where(.w-3\.5) { font-size: .875rem; }
i.ic:where(.w-4) { font-size: 1rem; }
i.ic:where(.w-5) { font-size: 1.25rem; }
i.ic:where(.w-9) { font-size: 2.25rem; }
i.ic:where(.w-\[18px\]) { font-size: 18px; }

/* Faixa de selos infinita */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  padding: .5rem 0;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-700);
  white-space: nowrap;
}
.marquee__item .ic { width: 20px; height: 20px; font-size: 20px; color: var(--wheat-600); }

/* Grãos de trigo flutuando no hero */
.mote {
  position: absolute;
  top: 0;
  color: var(--wheat-400);
  opacity: 0;
  pointer-events: none;
  animation: driftDown linear infinite;
  z-index: 1;
}
.mote .ic { width: 100%; height: 100%; }

/* Brilho que percorre um container (linha de destaque) */
.shimmer-line {
  background: linear-gradient(90deg, transparent, var(--wheat-400), transparent);
  background-size: 200% 100%;
  animation: shimmerBg 3.5s linear infinite;
}

/* ---------- 13. HERO / SEÇÕES ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--grad-ink);
  color: #fff;
  overflow: hidden;
}
.hero h1, .hero h2 { color: #fff; }
.hero__grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(70% 65% at 50% 35%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 65% at 50% 35%, #000, transparent 78%);
}
.hero__art {
  filter: drop-shadow(0 24px 46px rgba(4, 23, 15, .55));
}

/* Barra de progresso da leitura (página interna) */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--grad-wheat);
  z-index: 70;
}

/* Faixa de estatística */
.stat__value {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  line-height: 1;
  color: var(--wheat-300);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: .5rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, .66);
}

/* Linha do tempo */
.tl { position: relative; padding-left: 2.4rem; }
.tl::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--wheat-400), var(--forest-200));
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.3s var(--ease-out);
}
.tl.is-in::before { transform: scaleY(1); }
.tl__item { position: relative; padding-bottom: 2.1rem; }
.tl__item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 5px;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--wheat-500);
  box-shadow: 0 0 0 5px rgba(232, 180, 74, .18);
  transition: transform .5s var(--ease-out), background-color .4s;
}
.tl__item:hover::before { transform: scale(1.35); background: var(--wheat-500); }
.tl__year {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--forest-700);
}
.tl__card {
  margin-top: .45rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid rgba(15, 74, 52, .08);
  box-shadow: 0 10px 24px -18px rgba(7, 37, 26, .3);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
  display: flex;
  gap: 1rem;
  align-items: center;
}
.tl__card:hover { transform: translateX(6px); box-shadow: 0 16px 32px -18px rgba(7, 37, 26, .4); }
.tl__img {
  flex: 0 0 120px;
  width: 120px;
  height: 90px;
  border-radius: var(--r-md);
  object-fit: cover;
}
.tl__body { flex: 1 1 auto; min-width: 0; }

/* FAQ / acordeão */
.acc__item { border-bottom: 1px solid var(--forest-100); }
.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem .2rem;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--forest-800);
  transition: color .3s;
}
.acc__btn:hover { color: var(--wheat-600); }
.acc__btn .ic { flex: none; width: 20px; height: 20px; font-size: 20px; transition: transform .45s var(--ease-out); color: var(--wheat-500); }
.acc__item.is-open .acc__btn .ic { transform: rotate(180deg); }
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-out);
}
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding: 0 .2rem 1.25rem; color: var(--ink-500); line-height: 1.75; font-size: .95rem; }

/* Galeria de posts */
.post-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--forest-50);
}
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.post-card:hover img { transform: scale(1.09); }
.post-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(7, 37, 26, .86), transparent 62%);
  opacity: 0;
  transition: opacity .45s var(--ease-soft);
}
.post-card:hover .post-card__overlay { opacity: 1; }
.post-card__overlay span {
  transform: translateY(10px);
  transition: transform .5s var(--ease-out);
  color: #fff;
  font-size: .84rem;
  font-weight: 500;
}
.post-card:hover .post-card__overlay span { transform: none; }

/* Preenchimento de barra (nutrição / níveis) */
.bar {
  height: 9px;
  border-radius: 99px;
  background: var(--forest-50);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--grad-wheat);
  transition: width 1.4s var(--ease-out);
  transition-delay: var(--d, .2s);
}

/* ---------- 14. ORÇAMENTO (carrinho + popup) ---------- */
/* Botão de carrinho no canto da imagem do card */
.orc-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 10px 22px -12px rgba(7, 37, 26, .85), inset 0 0 0 1.5px rgba(255, 255, 255, .18);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background .35s;
}
.orc-btn .ic { width: 22px; height: 22px; font-size: 22px; }
.orc-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 28px -14px rgba(7, 37, 26, .9), inset 0 0 0 1.5px rgba(255, 255, 255, .3);
}
.orc-btn:active { transform: scale(.97); }
.orc-btn [data-ic-in] { display: none; }
.orc-btn.is-in {
  background: var(--grad-wheat);
  color: var(--forest-900);
  box-shadow: 0 10px 22px -12px rgba(156, 106, 21, .9), inset 0 0 0 1.5px rgba(255, 255, 255, .35);
}
.orc-btn.is-in [data-ic-add] { display: none; }
.orc-btn.is-in [data-ic-in] { display: block; }

/* Quantidade daquele produto já no orçamento */
.orc-btn__count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 99px;
  display: none;
  place-items: center;
  background: var(--forest-900);
  color: var(--wheat-300);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  border: 2px solid #fff;
}
.orc-btn.is-in .orc-btn__count { display: grid; }

/* Atalho do carrinho na navbar */
.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--forest-800);
  transition: color .3s;
}
.nav-cart:hover { color: var(--forest-600); }
.nav-cart .ic { width: 1.15rem; height: 1.15rem; font-size: 1.15rem; }
.nav-cart__count {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .32rem;
  border-radius: 99px;
  display: inline-grid;
  place-items: center;
  background: var(--grad-wheat);
  color: var(--forest-900);
  font-size: .74rem;
  font-weight: 700;
  line-height: 1;
}
.nav-cart__count[hidden] { display: none; }

/* Popup de escolha da variação/quantidade */
.orc-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}
.orc-modal.is-open {
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
}
.orc-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 23, 15, .58);
  backdrop-filter: blur(4px);
  animation: orcFade .3s var(--ease-soft);
}
.orc-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 30rem;
  margin: auto;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid rgba(15, 74, 52, .1);
  box-shadow: 0 40px 80px -30px rgba(7, 37, 26, .5);
  padding: 1.6rem;
  animation: orcPop .42s var(--ease-out);
}
.orc-dialog__close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: var(--forest-50);
  color: var(--forest-700);
  transition: background .3s, color .3s;
}
.orc-dialog__close:hover { background: var(--forest-100); color: var(--forest-900); }
.orc-dialog__close .ic { width: 1.1rem; height: 1.1rem; font-size: 1.1rem; }

.orc-group { margin-bottom: 1.15rem; }
.orc-group__label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--forest-500);
  margin-bottom: .55rem;
}
.orc-opcoes { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Seletor de quantidade */
.qty {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  border-radius: 99px;
  background: var(--forest-50);
  border: 1px solid var(--forest-100);
  padding: .2rem;
}
.qty button {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  background: #fff;
  color: var(--forest-700);
  box-shadow: 0 1px 3px rgba(7, 37, 26, .12);
  transition: background .3s, color .3s, transform .3s var(--ease-out);
}
.qty button:hover { background: var(--forest-600); color: #fff; }
.qty button:active { transform: scale(.94); }
.qty .ic { width: 1rem; height: 1rem; font-size: 1rem; }
.qty input {
  width: 3.1rem;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 600;
  color: var(--forest-900);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button { width: 1.85rem; height: 1.85rem; }
.qty--sm input { width: 2.6rem; font-size: .92rem; }

/* Campo de texto sem o ícone à esquerda (usado no textarea do orçamento) */
.field--plain { padding-left: 1.05rem; resize: vertical; min-height: 92px; }

/* O atributo hidden precisa vencer o display do Tailwind/propriedade */
[data-orc-ja][hidden] { display: none; }

/* Item do carrinho na página /orcamento */
.orc-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid rgba(15, 74, 52, .08);
  box-shadow: 0 1px 2px rgba(7, 37, 26, .04), 0 12px 28px -20px rgba(7, 37, 26, .22);
}
.orc-item__img {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--forest-50);
}
.orc-item__acoes { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.orc-item__remover {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-400);
  transition: color .3s;
}
.orc-item__remover:hover { color: #b42318; }
.orc-item__remover .ic { width: 1rem; height: 1rem; font-size: 1rem; }
.orc-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--forest-100);
  font-size: .88rem;
  color: var(--ink-500);
}
.orc-linha:last-child { border-bottom: 0; }
.orc-linha strong { color: var(--forest-800); font-weight: 600; }

@media (max-width: 560px) {
  .orc-item { grid-template-columns: 64px 1fr; }
  .orc-item__img { width: 64px; height: 64px; }
  .orc-item__acoes { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .tl__img { flex: 0 0 84px; width: 84px; height: 84px; }
}

/* Aviso de "adicionado" */
.orc-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 95;
  transform: translate(-50%, 140%);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.25rem;
  border-radius: 99px;
  background: var(--forest-900);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: 0 24px 48px -20px rgba(7, 37, 26, .75);
  transition: transform .5s var(--ease-out), opacity .4s;
  opacity: 0;
  pointer-events: none;
}
.orc-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.orc-toast .ic { width: 1.15rem; height: 1.15rem; font-size: 1.15rem; color: var(--wheat-300); }

@keyframes orcFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes orcPop {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- 15. Acessibilidade: movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    /* sem delay tambem: o stagger do reveal seguraria o offset e criaria
       scroll horizontal por um instante */
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  /* revela na hora. Nao force transform aqui: quem tem data-reveal costuma
     ser .card/.step, e um transform:none !important mataria a elevacao no
     hover de todo o site (o .is-in abaixo ja zera o offset do reveal). */
  [data-reveal] { opacity: 1 !important; }
  [data-reveal].is-in { transform: none; }
  .tl::before { transform: scaleY(1) !important; }
  .bar > i { width: var(--w, 100%) !important; }
  .mote { display: none; }
}

/* ---------- 16. FILTRO MOBILE (botão + modal) ---------- */
/* FAB fica no canto INFERIOR ESQUERDO: no direito já vivem o WhatsApp
   (bottom) e o voltar-ao-topo (acima dele) — não empilhamos um terceiro. */
.filter-float {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 65;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 0;
  background: var(--grad-brand);
  color: #fff;
  cursor: pointer;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  box-shadow: 0 8px 20px -6px rgba(28, 122, 86, .55);
}
.filter-float .ic { width: 22px; height: 22px; font-size: 22px; }
.filter-float:hover { transform: scale(1.08); box-shadow: 0 12px 28px -8px rgba(28, 122, 86, .7); }

/* Modal de filtros fullscreen (mobile) */
.filter-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}
.filter-modal.is-open {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  overflow-y: auto;
}
.filter-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 23, 15, 0.65);
  backdrop-filter: blur(6px);
  animation: modalFadeIn .3s var(--ease-soft) forwards;
}
.filter-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid rgba(15, 74, 52, 0.08);
  box-shadow: 0 40px 80px -30px rgba(7, 37, 26, 0.5);
  padding: 2rem;
  animation: modalPop .45s var(--ease-out) forwards;
}
.filter-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 10px;
  background: var(--forest-50);
  color: var(--forest-700);
  cursor: pointer;
  transition: background .25s, color .25s;
}
.filter-modal__close:hover { background: var(--forest-100); color: var(--forest-900); }
.filter-modal__close .ic { width: 1.15rem; height: 1.15rem; font-size: 1.15rem; }
.filter-modal__title {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest-900);
  margin: 0 0 1.5rem;
}
.filter-modal__pills {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* no desktop o filtro é a barra sticky — FAB só existe no mobile */
@media (min-width: 1024px) {
  .filter-float { display: none; }
}

@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop {
  from { opacity: 0; transform: translateY(24px) scale(.94); }
  to { opacity: 1; transform: none; }
}