/* =====================================================================
   D'LEV — Alimentos Artesanais  |  style.css
   =====================================================================
   Paleta baseada no logotipo:
     • Verde escuro (principal) .... #2e4b2c
     • Verde limão (secundário) .... #8dc63f
     • Creme (fundos) .............. #f6efe2 / #efe7d6
     • Texto ....................... #2b2b24
   Para trocar as cores do site, edite as variáveis abaixo (:root).
   ===================================================================== */

:root {
  /* Cores da marca */
  --green-dark: #2e4b2c;   /* verde escuro do logo (cor principal) */
  --green: #4f8a3a;        /* verde médio para botões/links */
  --green-lime: #8dc63f;   /* verde limão do logo (destaques) */
  --green-soft: #eaf2df;   /* verde bem claro (fundos suaves) */

  /* Neutros */
  --cream: #f6efe2;        /* fundo creme claro */
  --cream-2: #efe7d6;      /* fundo creme alternativo */
  --white: #ffffff;
  --ink: #2b2b24;          /* texto principal */
  --muted: #6d6a5e;        /* texto secundário */
  --line: #e6ddcb;         /* linhas/bordas */

  /* Tipografia */
  --font-title: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(46, 75, 44, 0.10);
  --shadow-sm: 0 4px 14px rgba(46, 75, 44, 0.08);
  --header-h: 74px;
}

/* ---------- Reset básico ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.2; color: var(--green-dark); font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Ícones */
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-title); font-weight: 600; font-size: .95rem;
  padding: 11px 20px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--green-lime); outline-offset: 2px; }

.btn--primary { background: var(--green-dark); color: #fff; }
.btn--primary:hover { background: #26401f; box-shadow: var(--shadow-sm); }

.btn--ghost { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn--ghost:hover { background: var(--green-dark); color: #fff; }

.btn--wa { background: var(--green-lime); color: var(--green-dark); padding: 9px 16px; font-size: .9rem; }
.btn--wa:hover { background: #7cb531; }
.btn--wa .ico { width: 18px; height: 18px; }

.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ===================================================================
   1. CABEÇALHO
   =================================================================== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 239, 226, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.header__logo { display: flex; align-items: center; gap: 10px; }
.header__logo img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.header__brand { font-family: var(--font-title); font-weight: 700; font-size: 1.35rem; color: var(--green-dark); }

.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__link {
  font-family: var(--font-title); font-weight: 500; font-size: .96rem;
  color: var(--ink); padding: 8px 14px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--green-dark); background: var(--green-soft); }
.nav__cta-wrap { margin-left: 6px; }

/* Botão hambúrguer (celular) */
.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 10px; cursor: pointer;
}
.nav__toggle span { width: 26px; height: 3px; background: var(--green-dark); border-radius: 3px; transition: transform .25s, opacity .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===================================================================
   2. HERO
   =================================================================== */
.hero {
  background:
    radial-gradient(900px 400px at 90% -10%, rgba(141,198,63,.18), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: clamp(40px, 7vw, 84px) 0;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero__badge {
  display: inline-block; background: var(--green-soft); color: var(--green-dark);
  font-family: var(--font-title); font-weight: 600; font-size: .8rem;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; letter-spacing: .2px;
}
.hero__title { font-size: clamp(2rem, 4.6vw, 3.25rem); margin-bottom: 16px; }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 40ch; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 18px; color: var(--green-dark); font-size: .9rem; font-weight: 600; }

.hero__media img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 6px solid #fff; object-fit: cover;
}

/* ===================================================================
   Seções genéricas
   =================================================================== */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(30px, 5vw, 52px); }
.section__kicker {
  font-family: var(--font-title); font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; font-size: .78rem; color: var(--green);
}
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 8px 0 12px; }
.section__sub { color: var(--muted); font-size: 1.05rem; }

/* ===================================================================
   3. PRODUTOS
   =================================================================== */
.products { background: var(--cream); }
.products__cat {
  font-size: 1.4rem; margin: 20px 0 20px; padding-bottom: 10px;
  border-bottom: 2px solid var(--line); color: var(--green-dark);
}
.products__cat:not(:first-of-type) { margin-top: 54px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 1.2rem; }
.card__desc { color: var(--muted); font-size: .95rem; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.card__price { font-family: var(--font-title); font-weight: 700; color: var(--green-dark); font-size: 1.1rem; }

/* Nota abaixo do título da categoria */
.cat__note { color: var(--muted); margin: -8px 0 22px; font-size: .98rem; }
.cat__note strong { color: var(--green-dark); }

/* Seletor de tamanho dos caldos (individual / 5 potes / 10 potes) */
.tiers { display: flex; gap: 6px; margin: 2px 0 6px; }
.tier {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: var(--cream); border: 2px solid var(--line); border-radius: 10px;
  padding: 8px 4px; cursor: pointer; font-family: var(--font-title);
  transition: border-color .15s, background .15s, transform .15s;
}
.tier:hover { border-color: var(--green-lime); transform: translateY(-1px); }
.tier.is-active { border-color: var(--green-dark); background: var(--green-soft); }
.tier:focus-visible { outline: 3px solid var(--green-lime); outline-offset: 2px; }
.tier__lbl { font-size: .72rem; color: var(--muted); font-weight: 600; line-height: 1.1; }
.tier__val { font-size: .84rem; color: var(--green-dark); font-weight: 700; line-height: 1.2; }
.tier.is-active .tier__lbl { color: var(--green-dark); }

/* ---------- MARMITAS: montador de combo ---------- */
.marmitas { margin-top: 56px; }
.marmitas__periodo { color: var(--muted); margin: -8px 0 22px; font-size: 1.02rem; }
.marmitas__periodo strong { color: var(--green-dark); }

/* Como pedir */
.howto {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px;
}
.howto__item {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm);
}
.howto__ico {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: var(--green-soft); color: var(--green-dark);
  display: inline-flex; align-items: center; justify-content: center;
}
.howto__ico svg { width: 22px; height: 22px; }
.howto__item p { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.howto__item strong { color: var(--green-dark); font-family: var(--font-title); }

/* Montador */
.builder {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: clamp(18px, 3vw, 28px);
}
.builder__combos { display: flex; flex-wrap: wrap; gap: 12px; }
.combo {
  flex: 1 1 150px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--cream); border: 2px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 12px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s;
  font-family: var(--font-title);
}
.combo:hover { transform: translateY(-2px); border-color: var(--green-lime); }
.combo.is-active { border-color: var(--green-dark); background: var(--green-soft); }
.combo__un { font-weight: 700; color: var(--green-dark); font-size: 1.05rem; }
.combo__preco { color: var(--muted); font-weight: 600; font-size: .95rem; }
.combo.is-active .combo__preco { color: var(--green); }

.builder__hint { color: var(--muted); font-size: .92rem; margin: 16px 0 4px; }
.builder__menu { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 14px; }
.menu-group__title {
  font-size: 1.1rem; color: var(--green-dark); margin-bottom: 6px;
  padding-bottom: 8px; border-bottom: 2px solid var(--green-soft);
}
.mrow {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mrow__name { font-size: .95rem; color: var(--ink); line-height: 1.4; }

/* Contador − valor + */
.stepper { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.stepper__btn {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--green-dark);
  background: #fff; color: var(--green-dark); font-size: 1.25rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s, opacity .15s;
}
.stepper__btn:hover:not(:disabled) { background: var(--green-dark); color: #fff; }
.stepper__btn:disabled { opacity: .3; cursor: not-allowed; }
.stepper__btn:focus-visible { outline: 3px solid var(--green-lime); outline-offset: 2px; }
.stepper__val { min-width: 26px; text-align: center; font-family: var(--font-title); font-weight: 700; color: var(--green-dark); }

.builder__obs { color: var(--muted); font-size: .88rem; margin-top: 14px; font-style: italic; }

/* Barra de resumo (fica fixa no rodapé da tela ao rolar) */
.summary {
  position: sticky; bottom: 12px; margin-top: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--green-dark); color: #fff; border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow);
}
.summary__info { display: flex; flex-direction: column; }
.summary__info strong { font-family: var(--font-title); font-size: 1.05rem; }
.summary__info span { color: var(--green-lime); font-weight: 700; font-family: var(--font-title); }
.summary__btn { background: var(--green-lime); color: var(--green-dark); pointer-events: none; opacity: .5; }
.summary__btn.is-ready { pointer-events: auto; opacity: 1; }
.summary__btn.is-ready:hover { background: #7cb531; }

.builder__noscript { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--muted); }

/* ===================================================================
   4. SOBRE
   =================================================================== */
.about { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.about__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.about__media { text-align: center; }
.about__media img {
  width: min(360px, 80%); height: auto; aspect-ratio: 1 / 1; margin: 0 auto; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow); padding: 14px; border: 1px solid var(--line); object-fit: contain;
}
.about__text p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.about__text .section__title { margin-top: 8px; }
.about__facts {
  margin-top: 22px; display: grid; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.about__facts li { color: var(--ink); font-size: .98rem; }
.about__facts strong { color: var(--green-dark); }

/* ===================================================================
   5. DIFERENCIAIS
   =================================================================== */
.features { background: var(--green-dark); color: #fff; }
.features .section__title, .features .section__kicker { color: #fff; }
.features .section__kicker { color: var(--green-lime); }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 26px 22px; text-align: center;
  transition: transform .2s, background .2s;
}
.feature:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.feature__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%; background: var(--green-lime); color: var(--green-dark);
  margin-bottom: 14px;
}
.feature__ico svg { width: 30px; height: 30px; }
.feature__title { color: #fff; font-size: 1.12rem; margin-bottom: 6px; }
.feature p { color: rgba(255,255,255,.82); font-size: .94rem; }

/* ===================================================================
   6. CONTATO
   =================================================================== */
.contact { background: var(--cream); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 44px); align-items: start; }

.contact__list { display: grid; gap: 16px; margin-bottom: 24px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: 12px; background: var(--green-soft); color: var(--green-dark);
}
.contact__ico svg { width: 22px; height: 22px; }
.contact__list strong { display: block; font-family: var(--font-title); color: var(--green-dark); font-size: .95rem; }
.contact__value { color: var(--muted); font-size: 1rem; }
a.contact__value:hover { color: var(--green-dark); text-decoration: underline; }

/* Formulário */
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-title); font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--green-dark); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #a8a394; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--green); background: #fff;
  box-shadow: 0 0 0 3px rgba(141,198,63,.25);
}
.field textarea { resize: vertical; }
.form__note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 12px; }

/* ===================================================================
   7. RODAPÉ
   =================================================================== */
.footer { background: #24391f; color: rgba(255,255,255,.85); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 48px 20px 36px; }
.footer__brand img { width: 60px; height: 60px; border-radius: 50%; margin-bottom: 12px; }
.footer__brand p { margin: 2px 0; }
.footer__small { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer__col ul { display: grid; gap: 8px; }
.footer__col a { color: rgba(255,255,255,.8); font-size: .95rem; transition: color .15s; }
.footer__col a:hover { color: var(--green-lime); }
.footer__bar { border-top: 1px solid rgba(255,255,255,.12); }
.footer__bar p { text-align: center; padding: 16px 0; font-size: .88rem; color: rgba(255,255,255,.65); }

/* ---------- Botão flutuante WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: wa-pulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
/* Esconde o botão flutuante enquanto o montador de marmitas está na tela
   (para não sobrepor o botão "Enviar pedido" da barra de resumo). */
.wa-float.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(.4); }
@keyframes wa-pulse {
  0%   { box-shadow: 0 8px 22px rgba(0,0,0,.25), 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 8px 22px rgba(0,0,0,.25), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 22px rgba(0,0,0,.25), 0 0 0 0 rgba(37,211,102,0); }
}

/* ===================================================================
   Animações discretas ao rolar (revelar elementos)
   =================================================================== */
/* As animações só valem quando o JavaScript está ativo (classe .js no <html>).
   Sem JavaScript, todo o conteúdo aparece normalmente. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ===================================================================
   RESPONSIVO — tablets e celulares
   =================================================================== */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__media { order: -1; }
  .about__inner { grid-template-columns: 1fr; text-align: center; }
  .about__media { order: -1; }
  .about__facts { text-align: left; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .howto { grid-template-columns: repeat(2, 1fr); }
  .builder__menu { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 640px) {
  /* Menu vira gaveta no celular */
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px; }
  .nav__link { display: block; padding: 12px 14px; }
  .nav__cta-wrap { margin: 8px 0 0; }
  .nav__cta { width: 100%; }
  .nav__toggle { display: flex; }

  .cards { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__col ul { justify-items: center; }
  .hero__trust { flex-direction: column; gap: 8px; }

  .howto { grid-template-columns: 1fr; }
  .summary { flex-direction: column; align-items: stretch; text-align: center; }
  .summary__info { align-items: center; }
  .summary__btn { justify-content: center; }
}

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
