/* =========================================================
   AMI Cosméticos Naturais — estilos
   Paleta botânica: eucalipto + floresta + linho
   ========================================================= */

:root {
  --forest-deep: #2c3a30;
  --forest: #3a4a3f;
  --sage: #7f9a76;
  --sage-soft: #a9c0a0;
  --sage-tint: #dce6d6;
  --linen: #f4f1ea;
  --cream: #fbfaf6;
  --sand: #c9b79c;
  --ink: #34403a;
  --muted: #6c7a70;

  --maxw: 1180px;
  --pad: clamp(1.2rem, 5vw, 3rem);
  --radius: 18px;
  --shadow: 0 24px 60px -30px rgba(44, 58, 48, 0.4);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* scroll-padding = altura do header sticky, para as âncoras do menu não pararem embaixo dele */
html { scroll-behavior: smooth; scroll-padding-top: 74px; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--forest-deep); }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: 0.2px; }
h3 { font-size: 1.5rem; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--sage);
  margin-bottom: 0.9rem;
}

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }

.section-head { max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head h2 { margin-bottom: 0.6rem; }
.section-desc { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 2rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-size: 0.92rem;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-deep); transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(44, 58, 48, 0.6); }
.btn-ghost { background: transparent; color: var(--forest); border: 1px solid var(--sage-soft); }
.btn-ghost:hover { background: var(--sage-tint); transform: translateY(-3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 246, 0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.site-header.scrolled { border-color: rgba(127, 154, 118, 0.22); box-shadow: 0 8px 30px -20px rgba(44, 58, 48, 0.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--forest-deep); }
.brand-leaf { height: 44px; width: auto; color: var(--sage); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.35em; font-weight: 600; }
.brand-sub { font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; color: var(--forest); font-size: 0.92rem; letter-spacing: 0.02em; position: relative; transition: color 0.25s; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px;
  background: var(--sage); transition: width 0.35s var(--ease);
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav a:hover { color: var(--forest-deep); }
.nav-cta { background: var(--sage-tint); padding: 0.5rem 1.3rem; border-radius: 100px; color: var(--forest-deep); }
.nav-cta:hover { background: var(--sage-soft); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--forest); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* calc(-74px) = altura do header sticky, para o hero caber exato na primeira dobra */
.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  min-height: calc(100svh - 74px);
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-color: var(--forest);
  /* véu escuro sutil por cima da foto, para a caixa de texto creme destacar */
  background-image:
    linear-gradient(160deg, rgba(44, 58, 48, 0.28) 0%, rgba(44, 58, 48, 0.14) 55%, rgba(44, 58, 48, 0.34) 100%),
    url("../assets/imgs/fundo-hero-ami.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
/* viewport em retrato (celular, tablet em pé): recorte vertical dedicado */
@media (max-aspect-ratio: 4 / 5) {
  .hero-bg {
    background-image:
      linear-gradient(160deg, rgba(44, 58, 48, 0.28) 0%, rgba(44, 58, 48, 0.14) 55%, rgba(44, 58, 48, 0.34) 100%),
      url("../assets/imgs/fundo-hero-ami-mobile.webp");
  }
}

.hero-inner { padding-block: clamp(2rem, 6vh, 4rem); }
.hero-card {
  max-width: 720px; margin-inline: auto; text-align: center;
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -32px rgba(20, 30, 24, 0.55);
}
.hero-title { font-size: clamp(2.1rem, 5vw, 3.8rem); margin-bottom: 1.3rem; letter-spacing: -0.5px; }
.hero-title em { color: var(--sage); font-style: italic; }
.hero-lead { font-size: clamp(1rem, 2vw, 1.18rem); max-width: 540px; margin: 0 auto 2rem; color: var(--muted); }
.hero-lead strong { color: var(--forest); font-weight: 500; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ---------- Strip ---------- */
.strip { background: var(--forest); color: var(--sage-tint); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.4rem; padding-block: 1.1rem; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.74rem; }
.strip span:not([aria-hidden]) { opacity: 0.92; }
.strip [aria-hidden] { color: var(--sage); }

/* ---------- Sobre ---------- */
.sobre { background: var(--cream); }
.sobre-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.sobre-visual { display: flex; justify-content: center; }
.leaf-frame {
  position: relative; width: min(340px, 80%); aspect-ratio: 3 / 4;
  background: linear-gradient(150deg, var(--sage-tint), var(--sage-soft));
  border-radius: 200px 200px 12px 12px;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
/* PNG 319x787 (ratio 0.41): a altura é a dimensão que controla, não a largura */
.big-leaf { height: 54%; width: auto; max-width: 60%; opacity: 0.75; }
.sobre-text h2 { margin-bottom: 1.3rem; }
.sobre-text p { color: var(--muted); margin-bottom: 1.1rem; }
.sobre-text strong { color: var(--forest); font-weight: 500; }

.check-list { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.8rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--forest); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 6px;
  border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage);
  transform: rotate(-45deg);
}

/* ---------- Valores ---------- */
.valores { background: var(--linen); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.value-card {
  background: var(--cream); border-radius: var(--radius); padding: 2.6rem 2rem;
  border: 1px solid rgba(127, 154, 118, 0.16); text-align: center;
  transition: translate 0.5s var(--ease), box-shadow 0.5s;
}
.value-card:hover { translate: 0 -8px; box-shadow: var(--shadow); }
.value-ic { width: 64px; height: 64px; margin: 0 auto 1.4rem; border-radius: 50%; background: var(--sage-tint); display: grid; place-items: center; color: var(--forest); }
.value-ic svg { width: 34px; height: 34px; }
/* a folha da marca é bem mais estreita que alta (319x787) — controla pela altura */
.value-ic img { height: 40px; width: auto; }
.value-card h3 { margin-bottom: 0.7rem; }
.value-card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Produtos / categorias ---------- */
.produtos { background: var(--cream); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.cat-card {
  padding: 2.4rem 1.6rem; border-radius: var(--radius);
  background: linear-gradient(165deg, var(--linen), var(--cream));
  border: 1px solid rgba(127, 154, 118, 0.16);
  transition: translate 0.5s var(--ease), background 0.5s, box-shadow 0.5s;
}
.cat-card:hover { translate: 0 -8px; background: var(--sage-tint); box-shadow: var(--shadow); }
.cat-ic { width: 52px; height: 52px; color: var(--sage); margin-bottom: 1.2rem; }
.cat-ic svg { width: 100%; height: 100%; }
.cat-card h3 { font-size: 1.32rem; margin-bottom: 0.6rem; }
.cat-card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Destaques ---------- */
.destaques { background: var(--linen); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.feature:last-child { margin-bottom: 0; }
.feature-reverse .feature-media { order: 2; }
.feature-media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, var(--sage-tint), var(--sage-soft));
  box-shadow: var(--shadow);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.6; }
.feature-text h3 { margin: 0.4rem 0 1rem; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.feature-text > p { color: var(--muted); margin-bottom: 1.1rem; }
.feature-list { list-style: none; display: grid; gap: 0.9rem; margin-bottom: 1.6rem; }
.feature-list li { position: relative; padding-left: 1.5rem; color: var(--forest); font-size: 0.98rem; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.feature-list strong { color: var(--forest-deep); font-weight: 500; }
.tag { display: inline-block; background: var(--forest); color: var(--sage-tint); padding: 0.5rem 1.2rem; border-radius: 100px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Catálogo ---------- */
.catalogo { background: var(--cream); }
.cat-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.chip {
  font-family: var(--sans); font-size: 0.86rem; letter-spacing: 0.03em; color: var(--forest);
  background: transparent; border: 1px solid var(--sage-soft); border-radius: 100px;
  padding: 0.5rem 1.2rem; cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover { background: var(--sage-tint); }
.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--cream); }

/* Carrossel: rolagem nativa com scroll-snap (swipe no celular) + setas e barra de progresso.
   --per = cards por tela (fracionado deixa o próximo aparecendo). A trilha "sangra" para o padding
   do .container, então os cards vizinhos aparecem até a borda; o padding vertical é o espaço do
   hover subir e da sombra, que o overflow cortaria. */
.prod-track {
  --per: 4; --gap: 1.4rem;
  display: grid; grid-auto-flow: column; gap: var(--gap);
  grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  margin-inline: calc(var(--pad) * -1); padding: 12px var(--pad) 40px;
  scroll-padding-inline: var(--pad); scroll-snap-type: x mandatory;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.prod-track::-webkit-scrollbar { display: none; }
/* mouse: a trilha pode ser arrastada (js/main.js) */
@media (hover: hover) and (pointer: fine) {
  .prod-track { cursor: grab; }
}
.prod-track.is-dragging { cursor: grabbing; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.carousel-btn {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: transparent; color: var(--forest); border: 1px solid var(--sage-soft); cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s;
}
.carousel-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn:hover:not(:disabled) { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-progress { flex: 0 1 220px; height: 3px; border-radius: 3px; background: var(--sage-tint); overflow: hidden; }
.carousel-progress span { display: block; height: 100%; border-radius: 3px; background: var(--sage); }

.prod-card {
  display: flex; flex-direction: column; overflow: hidden; scroll-snap-align: start;
  background: var(--linen); border-radius: var(--radius);
  border: 1px solid rgba(127, 154, 118, 0.16);
  transition: translate 0.5s var(--ease), box-shadow 0.5s;
}
/* o display:flex acima anularia o atributo hidden usado pelo filtro */
.prod-card[hidden] { display: none; }
.prod-card:hover { translate: 0 -8px; box-shadow: var(--shadow); }
.prod-media { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(150deg, var(--sage-tint), var(--sage-soft)); }
.prod-media img { width: 100%; height: 100%; object-fit: cover; }
/* Botão da galeria: cobre a foto inteira (área de clique) e mostra o selo "N fotos" no canto */
.prod-gallery {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 0.8rem; border: 0; background: none; cursor: zoom-in; font: inherit;
}
.prod-gallery span {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.8rem; border-radius: 100px;
  background: rgba(251, 250, 246, 0.92); color: var(--forest-deep);
  font-family: var(--sans); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.04em; line-height: 1.4;
  box-shadow: 0 6px 18px -8px rgba(20, 30, 24, 0.55); transition: background 0.3s, color 0.3s;
}
.prod-gallery svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prod-gallery:hover span { background: var(--forest); color: var(--cream); }
.prod-gallery:focus-visible { outline: 2px solid var(--sage); outline-offset: -4px; border-radius: var(--radius) var(--radius) 0 0; }
.prod-track.is-dragging .prod-gallery { cursor: grabbing; }
.prod-body { flex: 1; display: flex; flex-direction: column; padding: 1.2rem 1.2rem 1.3rem; }
.prod-cat { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.4rem; }
.prod-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.prod-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.55; margin-bottom: 1rem; }
/* margin-top:auto empurra o preço para a base — alinha os preços dos cards de uma mesma linha */
.prod-prices { list-style: none; margin-top: auto; padding-top: 0.8rem; border-top: 1px solid rgba(127, 154, 118, 0.22); display: grid; gap: 0.15rem; }
.prod-prices li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: 0.6rem; font-size: 0.84rem; color: var(--muted); }
.prod-prices strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--forest-deep); white-space: nowrap; }

.catalogo-foot { text-align: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.catalogo-foot p { color: var(--muted); font-size: 0.92rem; max-width: 520px; margin: 0 auto 1.4rem; }

/* ---------- Galeria (lightbox) ---------- */
/* o <dialog> ocupa a tela toda; display só no [open] para não anular o display:none nativo quando fechado */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #1c2620; color: var(--cream);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
html.lb-open { overflow: hidden; }
.lb-figure { display: grid; justify-items: center; gap: 0.9rem; width: 100%; padding: 64px 84px 24px; }
.lb-img {
  width: auto; height: auto; max-width: min(100%, 900px); max-height: calc(100vh - 150px); max-height: calc(100svh - 150px);
  border-radius: 12px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
  user-select: none; -webkit-user-select: none; touch-action: pan-y pinch-zoom;
}
.lb-caption { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.3rem 1rem; text-align: center; }
.lb-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--cream); }
.lb-count { font-size: 0.82rem; letter-spacing: 0.12em; color: var(--sage-soft); }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(28, 38, 32, 0.55); color: var(--cream); border: 1px solid rgba(251, 250, 246, 0.3);
  cursor: pointer; transition: background 0.3s, color 0.3s;
}
.lb-btn:hover { background: var(--cream); color: var(--forest-deep); }
.lb-btn:focus-visible { outline: 2px solid var(--sage-soft); outline-offset: 3px; }
.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb-next { right: 18px; top: 50%; translate: 0 -50%; }
.lb-close { right: 18px; top: 14px; }
.lightbox[data-single] .lb-prev, .lightbox[data-single] .lb-next, .lightbox[data-single] .lb-count { display: none; }

/* ---------- Quote ---------- */
.quote { background: var(--forest-deep); color: var(--cream); padding-block: clamp(4rem, 8vw, 6rem); text-align: center; }
.quote blockquote { max-width: 780px; margin: 0 auto; }
.quote p { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.8rem); font-style: italic; line-height: 1.35; color: var(--cream); }
.quote cite { display: block; margin-top: 1.4rem; font-style: normal; letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.76rem; color: var(--sage-soft); }

/* ---------- Contato ---------- */
.contato { background: var(--cream); }
.contato-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contato-text h2 { margin-bottom: 1.1rem; }
.contato-text > p { color: var(--muted); margin-bottom: 2rem; max-width: 480px; }
.contact-list { list-style: none; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.contact-list a, .contact-list span:not(.ci) { color: var(--forest); text-decoration: none; font-size: 1.02rem; transition: color 0.25s; }
.contact-list a:hover { color: var(--sage); }
.ci { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--sage-tint); display: grid; place-items: center; color: var(--forest); }
.ci svg { width: 22px; height: 22px; }

.contato-card {
  background: linear-gradient(160deg, var(--sage-tint), var(--sage-soft));
  border-radius: var(--radius); padding: 3rem 2.4rem; text-align: center; box-shadow: var(--shadow);
}
/* folha da marca em PNG (319x787): altura manda, largura acompanha */
.contato-card .brand-leaf.big { width: auto; height: 76px; margin: 0 auto 1.2rem; }
.card-quote { font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--forest-deep); margin-bottom: 1.8rem; line-height: 1.3; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: var(--sage-tint); padding-block: 2.6rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-brand { display: flex; flex-direction: column; line-height: 1; }
.footer-brand .brand-name { font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0.35em; color: var(--cream); font-weight: 600; }
.footer-brand .brand-sub { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--sage-soft); margin-top: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.6rem; }
.footer-nav a { color: var(--sage-tint); text-decoration: none; font-size: 0.9rem; transition: color 0.25s; }
.footer-nav a:hover { color: var(--cream); }
.footer-copy { width: 100%; text-align: center; font-size: 0.8rem; color: var(--sage-soft); border-top: 1px solid rgba(169, 192, 160, 0.2); padding-top: 1.6rem; margin-top: 0.4rem; }
.footer-bottom { width: 100%; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--sage-soft); border-top: 1px solid rgba(169, 192, 160, 0.2); padding-top: 1.6rem; margin-top: 0.4rem; }
.footer-credit { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.6); font-size: .85rem; text-decoration: none; }
.footer-credit img { width: 26px; height: 26px; border-radius: 7px; display: block; }
.footer-credit strong { color: #fff; font-weight: 700; }
.footer-credit:hover strong { color: #4fd0ff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* .reveal redefine `transition` e o .reveal.in zera `transform`: por isso o hover dos cards usa `translate`
   (independente de `transform`), e aqui a transição soma as propriedades do hover */
.value-card.reveal, .cat-card.reveal {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), translate 0.5s var(--ease), box-shadow 0.5s;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .prod-track { --per: 3; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); padding: 1rem var(--pad) 2rem;
    box-shadow: 0 20px 40px -20px rgba(44, 58, 48, 0.4);
    transform: translateY(-140%); transition: transform 0.45s var(--ease);
    border-bottom: 1px solid rgba(127, 154, 118, 0.2);
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 0.9rem 0; border-bottom: 1px solid rgba(127, 154, 118, 0.14); }
  .nav-cta { margin-top: 0.8rem; text-align: center; }
  .nav-toggle { display: flex; }

  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-visual { order: -1; }
  .value-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature, .contato-grid { grid-template-columns: 1fr; }
  .feature-reverse .feature-media { order: -1; }
  .feature-media img { aspect-ratio: 16 / 12; }
  .prod-track { --per: 2.3; }
}

@media (max-width: 520px) {
  .cat-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }

  .chip { font-size: 0.8rem; padding: 0.45rem 1rem; }
  /* 1 card por tela + o próximo aparecendo, convidando ao swipe */
  .prod-track { --per: 1.3; --gap: 1rem; }

  /* galeria no celular: foto quase na largura toda; setas menores por cima das bordas (swipe também troca) */
  .lb-figure { padding: 64px 10px 20px; }
  .lb-btn { width: 42px; height: 42px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { right: 10px; top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .value-card:hover, .cat-card:hover, .prod-card:hover { translate: none; }
  html { scroll-behavior: auto; }
}
