:root {
  --bg: #130d09;
  --bg-2: #1a120b;
  --gold: #d4af37;
  --gold-2: #e5c158;
  --green: #4c6e3d;
  --ink: #f6f0e6;
  --muted: rgba(246, 240, 230, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.05);
  --serif: "Cormorant Garamond", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, sans-serif;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/CormorantGaramond-Medium.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: radial-gradient(1200px 700px at 70% -10%, #3a2a14 0%, transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg-2) 40%, #100c09);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(212, 175, 55, 0.35) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  z-index: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

#beans {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 28px));
  margin: 12px auto 0;
  padding: 8px 14px 8px 18px;
  border-radius: 18px;
  background: rgba(19, 13, 9, 0.48);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.logo { width: 148px; height: auto; flex: 0 0 auto; }
.menu {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  font-size: 0.92rem;
}
.menu a { position: relative; padding: 6px 0; color: var(--muted); }
.menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.menu a:hover, .menu a:focus-visible { color: var(--ink); }
.menu a:hover::after, .menu a:focus-visible::after { transform: scaleX(1); }
.menu-cta { display: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--gold-2); cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-1px) scale(1.03); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a120b;
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.0);
}
.btn-gold:hover { box-shadow: 0 0 24px rgba(212, 175, 55, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--gold-2);
  border-color: var(--gold);
}
.btn-ghost:hover { box-shadow: 0 0 18px rgba(212, 175, 55, 0.25); }

.hero-scene {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 36px 0 48px;
}
.hero-scene::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -220px;
  bottom: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 10, 6, 0.15) 0%, rgba(16, 10, 6, 0.55) 46%, #120c08 100%),
    url("/assets/hero-lavoura.jpg?v=20261012f") center top / cover no-repeat;
  background-size: auto, cover;
}
.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  min-height: 62vh;
  padding: 36px 0 28px;
}
h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 0.95;
  margin: 0 0 18px;
  text-transform: uppercase;
  font-weight: 500;
}
h1 span, h1 em { font-style: normal; color: var(--gold-2); }
.cta-row .btn { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82rem; }

.dash {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  border-radius: 22px;
  padding: 28px 16px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.dots::before {
  content: "";
  position: absolute;
  top: 12px; left: 16px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff5f57;
  box-shadow: 14px 0 #febc2e, 28px 0 #28c840;
}
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tile {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 84px;
}
.tile span { display: block; font-size: 0.78rem; color: var(--muted); }
.tile b { font-family: var(--serif); font-size: 1.8rem; color: var(--gold-2); line-height: 1; }
.tile .word { font-size: 1.35rem; }
.tile.wide { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.chart-tile { grid-column: 1 / 2; }
.gauge, .spark { width: 72px; height: 36px; color: var(--gold-2); margin-top: 8px; }
.chart-tile svg { width: 100%; height: 64px; }

.about {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: end;
  padding-top: 12px;
}
.icon-card { text-align: center; min-height: 180px; }
.icon-card h3 { margin: 8px 0 0; font-size: 1.25rem; }
.icon-card .icon {
  margin: 8px auto 4px;
  width: 54px; height: 54px;
  border: 0;
  color: var(--gold-2);
}
.kicker {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold-2);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0.01em; }
.lede { color: var(--muted); max-width: 38rem; font-size: 1.05rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

section { position: relative; z-index: 2; padding: 72px 0; }
.hero-scene { padding: 28px 0 48px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 8px 0 16px; }
.section-intro { color: var(--muted); max-width: 40rem; }

.pillars, .cards, .steps, .certs { display: grid; gap: 16px; }
.pillars { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(12px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.glass:hover {
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.18);
}
.icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold-2);
  border: 1px solid rgba(212, 175, 55, 0.4);
  margin-bottom: 12px;
  transition: transform 0.35s ease;
}
.glass:hover .icon { transform: scale(1.08) rotate(-6deg); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.filters button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.filters button[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--gold-2);
}
.cards { grid-template-columns: repeat(3, 1fr); }
.card h3 { margin: 8px 0; }
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a120b;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.notes { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.notes span {
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.bean {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}
.hint { color: var(--muted); font-size: 0.85rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.benefit { width: 100%; text-align: left; cursor: pointer; margin-bottom: 10px; }
.benefit[aria-pressed="true"] { border-color: var(--gold); }
.stage {
  position: relative;
  min-height: 320px;
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  transition: filter 0.45s ease, transform 0.45s ease;
}
.stage img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.stage p {
  position: absolute;
  left: 20px;
  bottom: 18px;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  text-shadow: 0 2px 16px #000;
}

.steps { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.steps article { position: relative; }
.steps article::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.4rem;
}

.certs { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.map { width: 100%; height: auto; }
.map .land { fill: #24180f; stroke: rgba(212, 175, 55, 0.55); stroke-width: 0.45; }
.map .coffee { fill: #2b3a1a; stroke: var(--gold); stroke-width: 0.6; }
.map .pin { fill: var(--gold-2); }
.map .pulse { fill: none; stroke: var(--gold-2); }
.seals { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.seals span {
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--glass);
}

.contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; }
form { display: grid; gap: 16px; }
.perfil { display: flex; gap: 8px; }
.perfil label {
  flex: 1;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px;
  cursor: pointer;
}
.perfil input { position: absolute; opacity: 0; }
.perfil input:focus-visible + span { outline: 2px solid var(--gold); }
.perfil input:checked + span { color: var(--gold-2); }
.perfil label:has(input:checked) { border-color: var(--gold); }
label.field { display: grid; gap: 6px; font-size: 0.85rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0;
  outline: none;
}
input:focus, textarea:focus { border-bottom-color: var(--gold); }
.hp { position: absolute; left: -9999px; }
.form-msg { min-height: 1.2em; color: var(--gold-2); }
footer {
  position: relative;
  z-index: 2;
  padding: 28px 0 48px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
footer img { width: 120px; }
footer p { margin: 0; }
.footer-meta { display: flex; flex-direction: column; gap: 4px; }
.footer-meta a { color: var(--gold-2); }
.credit { margin-left: auto; }
.credit a { color: var(--gold-2); }
.legal { max-width: 720px; padding: 48px 0 24px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); text-transform: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.consent a { color: var(--gold-2); }

.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.8s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 1040px) {
  .logo { width: 108px; }
  .nav-toggle { display: block; margin-left: auto; padding: 10px; }
  .menu, .nav-cta { display: none; }
  .nav.open .menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 16px 12px;
    background: rgba(19, 13, 9, 0.94);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 16px;
    backdrop-filter: blur(16px);
  }
  .nav.open .menu-cta { display: list-item; }
  .menu a { display: block; padding: 12px 0; }
  .hero, .about, .split, .certs, .contact, .pillars, .cards, .steps {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; padding-top: 12px; }
  h1 { font-size: clamp(1.85rem, 9vw, 2.8rem); }
  h2 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  section { padding: 48px 0; }
  .hero-scene { min-height: auto; padding: 16px 0 28px; }
  .hero-scene::before {
    top: -160px;
    background:
      linear-gradient(180deg, rgba(16, 10, 6, 0.2) 0%, rgba(16, 10, 6, 0.55) 46%, #120c08 100%),
      url("/assets/hero-lavoura-m.jpg?v=20261012f") center top / cover no-repeat;
    background-size: auto, cover;
  }
  .stage, .stage img { min-height: 220px; }
  .stage p { font-size: 1.3rem; }
  .contact img { max-width: 160px; }
  footer { flex-direction: column; align-items: flex-start; }
  .credit { margin-left: 0; }
  .legal { padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .btn, .glass, .icon { transition: none; }
}
