:root {
  /* neutrals tinted toward the brand green; hex fallback then OKLCH */
  --bg: #f0f3f0;
  --bg: oklch(0.965 0.008 150);
  --bg-raised: #f8faf8;
  --bg-raised: oklch(0.985 0.006 150);
  --white: #fcfefc;
  --white: oklch(0.995 0.004 150);
  --ink: #23281f;
  --ink: oklch(0.26 0.02 150);
  --ink-soft: #3a4137;
  --ink-soft: oklch(0.38 0.018 150);
  --ink-mute: #5b6359;
  --ink-mute: oklch(0.54 0.015 150);
  --line: #dbe1da;
  --line: oklch(0.9 0.012 150);
  --line-soft: #e6eae5;
  --line-soft: oklch(0.935 0.01 150);
  --forest: #1f5232;
  --forest: oklch(0.42 0.1 155);
  --forest-deep: #163e25;
  --forest-deep: oklch(0.34 0.09 155);
  --lime: #82b93e;
  --lime: oklch(0.72 0.16 128);
  --amber: #c08635;
  --amber: oklch(0.66 0.13 75);
  --font-display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, sans-serif;
  /* type scale, ~1.28 ratio */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.28rem, 1.2rem + 0.4vw, 1.5rem);
  --step-2: clamp(1.64rem, 1.5rem + 0.7vw, 2.05rem);
  --step-3: clamp(2.1rem, 1.85rem + 1.25vw, 2.95rem);
  --step-4: clamp(2.7rem, 2.2rem + 2.4vw, 4.2rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--forest); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(248, 250, 248, 0.94);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.site-header.over-hero {
  background: transparent;
  border-bottom-color: transparent;
}

.site-header.over-hero .menu-btn span { background: #f7f3ea; }

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; }
.brand img { height: 44px; width: auto; }

.menu-btn {
  appearance: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.menu-btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Menu overlay ---------- */

.site-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 55;
  background: var(--bg-raised);
  padding: 28px 20px 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out), visibility 0s 0.28s;
}

.site-menu.open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}

.site-menu nav { display: flex; flex-direction: column; }

.site-menu nav a {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--ink);
  padding: 14px 2px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.site-menu nav a::after {
  content: "\2192";
  font-size: 1rem;
  color: var(--line);
  transition: color 0.2s, transform 0.25s var(--ease-out);
}

.site-menu nav a:hover { color: var(--forest); }
.site-menu nav a:hover::after { color: var(--lime); transform: translateX(4px); }

.lang-switch {
  display: flex;
  gap: 6px;
  margin-top: 28px;
}

.lang-switch button {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.lang-switch button:hover { border-color: var(--forest); color: var(--forest); }

.lang-switch button[aria-pressed="true"] {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

@media (min-width: 900px) and (min-height: 640px) {
  .hero {
    min-height: min(100svh, 780px);
    justify-content: center;
    padding-top: calc(var(--header-h) + 64px);
  }
}

.hero-bg { position: absolute; inset: 0; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4, 11, 7, 0.72),
    rgba(4, 11, 7, 0.2) 50%,
    rgba(4, 11, 7, 0.32)
  );
}

.hero-content { position: relative; }

.hero h1 {
  font-size: clamp(2.125rem, 8vw, 3.75rem);
  max-width: 14ch;
  color: #faf7ee;
}

.hero-sub {
  font-size: 1.0625rem;
  color: rgba(250, 247, 238, 0.88);
  max-width: 54ch;
  margin-top: 18px;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.25s var(--ease-out);
}

.btn-primary { background: var(--forest); color: #fdfefd; }
.btn-primary:hover { background: var(--forest-deep); transform: translateY(-1px); }

.btn-light { background: #faf9f3; color: var(--forest-deep); }
.btn-light:hover { background: #fdfefd; transform: translateY(-1px); }

.parallax-inner {
  position: absolute;
  left: 0;
  right: 0;
  top: -7%;
  height: 114%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.media-poster { background-image: url("../assets/liquid-hero.jpg"); }
.hero-bg canvas { width: 100%; height: 100%; display: block; }

/* ---------- Sections ---------- */

section { padding: 80px 0; }
section.section-white { padding: 96px 0; }
#calidad { padding-block: 72px 88px; }

.section-white { background: var(--white); border-block: 1px solid var(--line-soft); }

.overline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 18px;
}

.overline::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--lime);
}

section h2 { font-size: var(--step-3); max-width: 20ch; }

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 58ch;
  margin-top: 22px;
  text-wrap: pretty;
}

.body-col p + p { margin-top: 16px; }
.body-col { margin-top: 20px; max-width: 62ch; color: var(--ink-soft); }

.subhead {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 52px 0 4px;
}

.app-list { list-style: none; margin-top: 8px; }

.app-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}

.app-row:first-child { border-top: 1px solid var(--line); }

.app-num {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--forest);
  padding-top: 0.42em;
}

.app-body h3 { font-size: var(--step-1); }

.app-body p {
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: var(--step-0);
  max-width: 58ch;
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .app-row { grid-template-columns: 56px 1fr; gap: 28px; }
}

/* ---------- UCO split ---------- */

.uco-split {
  margin-top: 44px;
  display: grid;
  gap: 16px;
}

.uco-panel {
  border-radius: 16px;
  padding: 32px 28px;
}

.uco-panel h3 { font-size: var(--step-2); }

.uco-panel p { margin-top: 14px; font-size: var(--step-0); text-wrap: pretty; }

.uco-panel .btn { margin-top: 28px; }

.uco-supply {
  background: var(--white);
  border: 1px solid var(--line);
}

.uco-supply p { color: var(--ink-mute); }

.uco-supply .btn {
  border-color: var(--forest);
  color: var(--forest);
  background: transparent;
}

.uco-supply .btn:hover { background: var(--forest); color: #fff; }

.uco-buy { background: var(--forest); }
.uco-buy h3 { color: #fff; }
.uco-buy p { color: #cfe0d3; }
.uco-buy .btn { background: #fff; color: var(--forest); }
.uco-buy .btn:hover { background: #e8f0e9; }

/* ---------- Quality ---------- */

.quality-list { margin-top: 40px; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--forest); }

.cta-band h2 { color: #f7faf7; }

.cta-band p { color: #cfe0d3; margin-top: 14px; max-width: 52ch; }

.cta-band .btn {
  margin-top: 28px;
  background: #fbfdfb;
  color: var(--forest);
}

.cta-band .btn:hover { background: #e8f0e9; }

/* ---------- Contact page ---------- */

.contact-main {
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 72px;
}

.contact-main h1 { font-size: clamp(1.875rem, 7vw, 3rem); max-width: 16ch; }

.contact-main .lead { margin-top: 14px; }

.contact-form { margin-top: 40px; max-width: 480px; display: grid; gap: 18px; }

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(30, 82, 49, 0.12);
}

.contact-alt {
  margin-top: 28px;
  font-size: 0.9375rem;
  color: var(--ink-mute);
}

.contact-alt a { font-weight: 500; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--line-soft);
  padding: 44px 0 36px;
}

.site-footer .brand img { height: 28px; }

.footer-nav {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--ink-mute);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--forest); }

.footer-base {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.8125rem;
  color: var(--ink-mute);
}

.footer-base a { color: var(--ink-mute); }
.footer-base a:hover { color: var(--forest); }

/* ---------- Reveal motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
  .wrap { padding-inline: 32px; }
  .uco-split { grid-template-columns: 1fr 1fr; }
  .uco-panel { padding: 40px 36px; }

    }

@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .brand img { height: 52px; }
  section { padding: 104px 0; }

  .hero { padding-bottom: 44px; }
  .hero h1 { max-width: 16ch; }
  .hero-sub { margin-top: 20px; }
      .site-menu { padding: 48px 0; }
  .site-menu .wrap { width: 100%; }
  .site-menu nav a { font-size: 1.75rem; padding: 18px 2px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .parallax-inner { transform: none !important; }
  .about-diagram .float { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Quem somos: texto + painel líquido ---------- */

.about-grid { display: flex; flex-direction: column; gap: 32px; }

.about-diagram { max-width: 460px; margin-inline: auto; }
.about-diagram svg { width: 100%; height: auto; display: block; }

.dg-big {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  fill: #22271f;
}

.dg-small {
  font-family: var(--font-body);
  font-size: 13px;
  fill: #2e332f;
}

.dg-light { fill: #f4f7f4; }

.about-diagram .float { animation: dgfloat 7s ease-in-out infinite alternate; }
.about-diagram .f2 { animation-duration: 8.5s; animation-delay: -2s; }
.about-diagram .f3 { animation-duration: 6s; animation-delay: -1s; }
.about-diagram .f4 { animation-duration: 7.5s; animation-delay: -3.4s; }
.about-diagram .f5 { animation-duration: 6.6s; animation-delay: -0.6s; }
.about-diagram .f6 { animation-duration: 8s; animation-delay: -4.2s; }
.about-diagram .f7 { animation-duration: 5.6s; animation-delay: -2.8s; }

@keyframes dgfloat {
  from { transform: translateY(-6px); }
  to   { transform: translateY(6px); }
}

/* ---------- CTA final com o líquido do hero ---------- */

.cta-band { position: relative; overflow: hidden; }

.cta-band .liquid-bg { position: absolute; inset: 0; }
.cta-band .liquid-bg canvas { width: 100%; height: 100%; display: block; }

.cta-scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 11, 7, 0.55);
}

.cta-content { position: relative; }

@media (min-width: 900px) {
  .about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
  }
  .about-diagram { max-width: 520px; }
}

/* ---------- WhatsApp floating button ---------- */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(6, 30, 15, 0.28);
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo);
}

.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2.6s ease-out infinite;
}

.wa-float:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 26px rgba(6, 30, 15, 0.34);
}

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (min-width: 640px) {
  .wa-float { right: 28px; bottom: 28px; width: 60px; height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float::after { animation: none; }
}
