/* =========================================================
   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; }

html { scroll-behavior: smooth; }

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: transform 0.5s var(--ease), box-shadow 0.5s;
}
.value-card:hover { transform: translateY(-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: transform 0.5s var(--ease), background 0.5s, box-shadow 0.5s;
}
.cat-card:hover { transform: translateY(-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; }

/* ---------- 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; gap: 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; }

/* ---------- Responsivo ---------- */
@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; }
}

@media (max-width: 520px) {
  .cat-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
