/* ==========================================================================
   Triunfo — US B2B Lead Gen Landing Page
   Brand: verde lima #B8C037 · verde acinzentado #67836C · verde escuro #132E14
   Type:  Panton (display, caps) / Bio Sans (body) / Brittanian (accent script)
   ========================================================================== */

@font-face {
  font-family: "Panton";
  src: url("assets/fonts/Panton-BlackCaps.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bio Sans";
  src: url("assets/fonts/BioSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bio Sans";
  src: url("assets/fonts/BioSans-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Bio Sans";
  src: url("assets/fonts/BioSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bio Sans";
  src: url("assets/fonts/BioSans-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brittanian";
  src: url("assets/fonts/Brittanian.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core 4 — from branding/identidade.md */
  --lime: #B8C037;
  --sage: #67836C;
  --forest: #132E14;
  --white: #FFFFFF;
  /* Extended tokens derived for this LP, not yet in the brand manual —
     worth formalizing in branding/identidade.md if reused elsewhere. */
  --lime-dark: #96A02B;
  --forest-soft: #1B3E1D;
  --off-white: #F7F8F2;
  --ink: #16241A;
  --border-soft: rgba(19, 46, 20, 0.12);
  /* Darkened sage for body text — brand --sage (#67836C) on white is ~4.17:1,
     below WCAG AA (4.5:1). --sage-text holds ~5.2:1 while staying in the
     same hue family. Use --sage only for non-text (borders, backgrounds, SVG). */
  --sage-text: #4E6C53;

  --font-display: "Panton", "Bio Sans", sans-serif;
  --font-body: "Bio Sans", -apple-system, "Segoe UI", sans-serif;
  --font-script: "Brittanian", cursive;

  --max-width: 1180px;
  --radius: 18px;
  --transition: 260ms cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: var(--forest);
  margin: 0 0 0.5em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); text-align: center; }
h3 { font-size: 1.05rem; letter-spacing: 0.05em; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--sage-text);
  margin-bottom: 0.9em;
  text-align: center;
}
.eyebrow.light { color: var(--lime); }

.section-lead {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.6rem;
  color: var(--sage-text);
  font-size: 1.05rem;
}
.section-lead.light { color: rgba(255,255,255,0.78); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 30px;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
  min-height: 48px;
}
.btn-primary {
  background: var(--lime);
  color: var(--forest);
  box-shadow: 0 6px 18px rgba(184,192,55,0.35);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--lime-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(184,192,55,0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--border-soft);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--forest);
  transform: translateY(-2px);
}
.btn-large { padding: 17px 36px; font-size: 1.05rem; width: 100%; }
.btn-small { padding: 10px 20px; font-size: 0.85rem; min-height: 40px; }

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.link-cta:hover { color: var(--sage-text); border-color: var(--sage); }
.link-cta-arrow { display: inline-block; transition: transform 220ms ease; }
.link-cta:hover .link-cta-arrow { transform: translateX(4px); }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--lime);
  z-index: 200;
  transition: width 80ms linear;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(19,46,20,0.08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.header-logo img { height: 48px; width: auto; }
.header-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.header-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color var(--transition);
}
.header-nav a:hover { color: var(--sage-text); }
.header-cta { white-space: nowrap; }

@media (max-width: 780px) {
  .header-nav { display: none; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
  padding: 88px 0 76px;
}
.hero-leaf-decor {
  position: absolute;
  top: -60px;
  right: -80px;
  width: 420px;
  height: 420px;
  opacity: 0.14;
  transform-origin: 50% 90%;
  animation: float-slow 9s ease-in-out infinite;
}
@keyframes float-slow {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(-16px, 22px) rotate(6deg); }
}
.hero-inner { position: relative; text-align: center; max-width: 820px; }
.hero h1 { margin-bottom: 0.5em; }
.hero-sub {
  font-size: 1.12rem;
  color: var(--sage-text);
  max-width: 620px;
  margin: 0 auto 1.8em;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.6em;
}
.hero-micro {
  font-size: 0.82rem;
  color: var(--sage-text);
  letter-spacing: 0.02em;
  margin: 0;
}

/* Trust bar */
.trust-bar {
  background: var(--forest);
  padding: 18px 0;
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
}
.trust-bar-inner span {
  color: rgba(255,255,255,0.88);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Sections */
.section { padding: 88px 0; }
.section.why { background: var(--white); }
.section.products { background: var(--off-white); }
.section.origin { background: var(--white); }
.section.certifications { background: var(--off-white); }
.section.faq { background: var(--white); }
.section.rfq { position: relative; background: var(--forest); color: var(--white); overflow: hidden; }
.section.rfq h2, .section.rfq p { color: var(--white); }
.section.rfq::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1.5'%3E%3Cpath d='M30,10 C42,12 52,24 53,36 C54,48 46,58 38,62 L30,68 L22,62 C14,58 6,48 7,36 C8,24 18,12 30,10 Z'/%3E%3Cpath d='M30,16 L30,62' stroke-width='1'/%3E%3Cpath d='M110,80 C122,82 132,94 133,106 C134,118 126,128 118,132 L110,138 L102,132 C94,128 86,118 87,106 C88,94 98,82 110,80 Z'/%3E%3Cpath d='M110,86 L110,132' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 140px 140px;
}
.section.rfq > .wrap { position: relative; z-index: 1; }

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 2.4rem;
}
.stat-card {
  background: var(--off-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(19,46,20,0.09); }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--lime-dark);
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.9rem; color: var(--sage-text); }

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 2.4rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(19,46,20,0.1); }
.product-icon { width: 40px; height: 40px; margin-bottom: 16px; color: var(--lime-dark); }
.product-icon svg { width: 100%; height: 100%; display: block; }
.product-card h3 { font-size: 1.15rem; }
.product-card p { color: var(--sage-text); }

@media (max-width: 760px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Origin */
.origin-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.origin-copy p { color: var(--ink); }
.origin-flourish {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--lime-dark);
  margin: -0.4em 0 0.7em;
}
.origin-visual {
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  background: linear-gradient(145deg, var(--forest) 0%, var(--sage) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.origin-visual-leaf {
  width: 48%;
  height: 48%;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.25));
  animation: sway 7s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.leaf-blade { filter: drop-shadow(0 2px 4px rgba(19,46,20,0.15)); }
.vein-mid { opacity: 0.6; }
.vein-lat { opacity: 0.42; }

.js-enabled .origin-visual-leaf .vein-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
/* Constant, slow, repeating "growth" of the leaf veins — draws in, holds,
   retracts, redraws. Each lateral pair is staggered via animation-delay
   (set inline per path) so the veins appear to branch outward from the
   midrib rather than all drawing at once. */
.js-enabled .reveal.in-view .origin-visual-leaf .vein-path {
  animation: draw-line-loop 6s ease-in-out infinite;
}
@keyframes draw-line-loop {
  0%   { stroke-dashoffset: 1; }
  35%  { stroke-dashoffset: 0; }
  80%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}
@keyframes sway {
  0%, 100% { transform: rotate(-3deg) scale(1); }
  50% { transform: rotate(3deg) scale(1.03); }
}

@media (max-width: 860px) {
  .origin-inner { grid-template-columns: 1fr; }
  .origin-visual { max-width: 320px; margin: 0 auto; }
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 2.4rem;
}
.cert-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.cert-card:hover { transform: translateY(-4px); border-color: var(--lime); box-shadow: 0 14px 28px rgba(19,46,20,0.08); }
.cert-card h3 { color: var(--forest); margin-bottom: 8px; }
.cert-card p { color: var(--sage-text); font-size: 0.9rem; margin: 0; }

.cert-card-cta {
  display: block;
  text-decoration: none;
  background: var(--forest);
  border-color: var(--forest);
}
.cert-card-cta h3 { color: var(--white); }
.cert-card-cta p { color: rgba(255,255,255,0.72); }
.cert-card-cta .link-cta-arrow { color: var(--lime); font-weight: 700; font-size: 1.2rem; }
.cert-card-cta:hover { border-color: var(--lime); background: var(--forest-soft); }
.cert-card-cta:hover .link-cta-arrow { transform: translateX(4px); display: inline-block; }

@media (max-width: 960px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cert-grid { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 6px 22px;
  background: var(--off-white);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  color: var(--forest);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--lime-dark);
  transition: transform var(--transition);
  margin-left: 12px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--sage-text); padding-bottom: 18px; margin: 0; }

/* RFQ Form */
.rfq-form {
  margin-top: 2.4rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 34px;
}
.hp-field { position: absolute; left: -9999px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.9);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(184,192,55,0.35);
}
.form-micro {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin: 14px 0 0;
}
.form-micro#formError { color: #ffb4ac; font-weight: 700; }

/* Field validation feedback */
.form-field.is-valid input,
.form-field.is-valid select {
  border-color: var(--lime);
  background-image: none;
}
.form-field.is-invalid input,
.form-field.is-invalid select {
  border-color: #e0554c;
  animation: field-shake 320ms ease;
}
@keyframes field-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Submit button loading state */
.btn-large { position: relative; }
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(19,46,20,0.25);
  border-top-color: var(--forest);
  border-radius: 50%;
}
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading .btn-spinner {
  display: inline-block;
  animation: spin 700ms linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .rfq-form { padding: 24px 18px; }
}

.form-success {
  text-align: center;
  padding: 48px 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  margin-top: 2.4rem;
}
.form-success h3 { color: var(--white); text-transform: none; font-family: var(--font-body); }
.form-success p { color: rgba(255,255,255,0.8); margin: 0; }
.form-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest);
  font-size: 1.6rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  animation: pop-in 420ms cubic-bezier(.34,1.56,.64,1);
}
@keyframes pop-in {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Footer */
.site-footer { background: var(--forest-soft); padding: 48px 0 32px; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-logo { height: 40px; width: auto; opacity: 0.95; }
.footer-certs { color: rgba(255,255,255,0.6); font-size: 0.78rem; letter-spacing: 0.03em; margin: 0; }
.footer-links { margin: 0; }
.footer-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.88rem; margin: 0 6px; }
.footer-links a:hover { color: var(--lime); }
.footer-copy { color: rgba(255,255,255,0.45); font-size: 0.78rem; margin: 6px 0 0; }

/* Scroll reveal (progressive enhancement — content visible by default, JS adds motion) */
.reveal {
  opacity: 1;
  transform: none;
}
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 640ms ease, transform 640ms ease;
}
.js-enabled .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-enabled .reveal { opacity: 1; transform: none; transition: none; }
  .hero-leaf-decor, .origin-visual-leaf { animation: none; }
  .btn, .stat-card, .product-card, .cert-card, .link-cta-arrow { transition: none; }
  .js-enabled .origin-visual-leaf .vein-path { stroke-dashoffset: 0; animation: none; }
  .form-field.is-invalid input, .form-field.is-invalid select { animation: none; }
  .scroll-progress { transition: none; }
}
