/* =====================================================================
   FRUTAS BECA — Site institucional · tema claro/escuro automático
   ===================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---------- THEME TOKENS ---------- */
:root, [data-theme="light"] {
  --bg:        #FAF9F5;
  --surface:   #FFFFFF;
  --surface-2: #F3EFE6;
  --text:      #1A2415;
  --text-soft: #3A4232;
  --text-mute: #6B6454;
  --border:    #E4DFD3;
  --nav-bg:    rgba(250,249,245,0.86);
  --cta-bg:    #16350B;
  --shadow:    0 12px 32px rgba(26,36,21,0.10), 0 4px 8px rgba(26,36,21,0.05);
  --shadow-sm: 0 2px 8px rgba(26,36,21,0.07);
  --logo-filter: none;
}
[data-theme="dark"] {
  --bg:        #0C1F06;
  --surface:   #16350B;
  --surface-2: #112A09;
  --text:      #EAF1E1;
  --text-soft: #C5D6B4;
  --text-mute: #8AA372;
  --border:    rgba(255,255,255,0.10);
  --nav-bg:    rgba(8,20,4,0.86);
  --cta-bg:    #1E4A12;
  --shadow:    0 16px 40px rgba(0,0,0,0.45);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0C1F06;
    --surface:   #16350B;
    --surface-2: #112A09;
    --text:      #EAF1E1;
    --text-soft: #C5D6B4;
    --text-mute: #8AA372;
    --border:    rgba(255,255,255,0.10);
    --nav-bg:    rgba(8,20,4,0.86);
    --cta-bg:    #1E4A12;
    --shadow:    0 16px 40px rgba(0,0,0,0.45);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.35);
  }
}

body {
  margin: 0;
  font-family: var(--fonte);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t-media), color var(--t-media);
}
h1,h2,h3,h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
img { max-width: 100%; }
a { color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 560px){ .wrap { padding: 0 32px; } }
.band { padding: clamp(48px, 9vw, 128px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--laranja-600); margin-bottom: 22px;
}
.eyebrow::before { content:""; width: 32px; height: 4px; background: var(--lima); border-radius: 2px; }
.h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; }
.lead { font-size: clamp(18px, 1.9vw, 23px); color: var(--text-soft); line-height: 1.55; max-width: 56ch; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--fonte); font-weight: 700; font-size: 16px; text-decoration: none;
  border: none; border-radius: 999px; padding: 15px 30px; transition: all var(--t-media);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn--wa { background: var(--laranja); color: #fff; box-shadow: 0 8px 20px rgba(252,81,1,0.30); }
.btn--wa:hover { background: var(--laranja-600); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--border); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--lima); }
.btn--light { background: #fff; color: var(--verde-folha-800); }
.btn--light:hover { background: var(--lima); }
.btn--sm { padding: 11px 20px; font-size: 14px; }

/* ---------- NAV ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav__logo { height: 36px; display: block; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--text-soft); font-size: 15px; font-weight: 600; transition: color var(--t-rapida); }
.nav__links a:hover { color: var(--laranja-600); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
@media (max-width: 900px){ .nav__links { display: none; } }
@media (max-width: 560px){ .nav__cta-text { display: none; } }

/* ---------- NAV MOBILE MENU ---------- */
.nav__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color var(--t-rapida);
}
.nav__burger:hover,
.nav__burger:active { border-color: var(--lima); }
.nav__burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--t-media), opacity var(--t-media);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) { .nav__burger { display: flex; } }

.nav__mobile {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--border);
  flex-direction: column;
  padding: 4px 24px 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  z-index: 59;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  display: block;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 17px; font-weight: 600;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--t-rapida);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:active { color: var(--laranja-600); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; background: var(--verde-folha-900); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(12,31,6,0.92) 0%, rgba(12,31,6,0.78) 42%, rgba(12,31,6,0.45) 100%); }
.hero__in { position: relative; z-index: 2; padding-top: 100px; padding-bottom: 100px; }
.hero .badge { display:inline-flex; align-items:center; gap:10px; font-size:14px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color: var(--lima-400); margin-bottom: 26px; }
.hero .badge::before { content:""; width:8px; height:8px; border-radius:50%; background: var(--lima); }
.hero h1 { font-size: clamp(40px, 6.4vw, 86px); font-weight: 800; line-height: 1.0; color: #fff; max-width: 16ch; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--lima-400); }
.hero p.sub { margin-top: 28px; font-size: clamp(18px, 2vw, 25px); color: #D4E2C5; max-width: 40ch; line-height: 1.5; }
.hero__cta { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; color: #9FB98A; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__scroll::after { content:""; width: 1px; height: 32px; background: linear-gradient(var(--lima), transparent); }
@media (max-width: 600px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero p.sub { max-width: 100%; }
}
/* Mobile: hero centralizado */
@media (max-width: 768px) {
  .hero__in { text-align: center; }
  .hero .badge { justify-content: center; }
  .hero .badge::before { display: none; }
  .hero h1 { margin-left: auto; margin-right: auto; }
  .hero p.sub { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  /* Overlay uniforme (texto centralizado não precisa do gradiente lateral) */
  .hero__overlay { background: rgba(12, 31, 6, 0.68); }
}
/* Desktop: hero ancorado mais à esquerda (aproveita a área escura do gradiente) */
@media (min-width: 769px) {
  .hero__in { margin-left: clamp(40px, 6vw, 96px); margin-right: auto; max-width: 720px; }
}

/* ---------- STATS ---------- */
.stats-band { background: var(--surface-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 720px){ .stats { grid-template-columns: 1fr; gap: 36px 24px; } }
.stat { text-align: center; }
.stat .n { font-size: clamp(40px, 5.5vw, 68px); font-weight: 800; color: var(--laranja); letter-spacing: -0.02em; line-height: 1; }
.stat .l { margin-top: 10px; font-size: 16px; color: var(--text-mute); font-weight: 600; }

/* ---------- FRUTAS ---------- */
.frutas-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.frutas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px){ .frutas-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .frutas-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (max-width: 360px){ .frutas-grid { grid-template-columns: 1fr; } }
.fruta { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; transition: transform var(--t-media), box-shadow var(--t-media); }
.fruta:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fruta__video {
  position: relative; aspect-ratio: 3/4; background: var(--verde-folha-800);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.fruta__video img.fruta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Troca automática de foto conforme o tema */
.fruta__video img.fruta__img--creme { display: block; }
.fruta__video img.fruta__img--verde { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fruta__video img.fruta__img--creme { display: none; }
  :root:not([data-theme="light"]) .fruta__video img.fruta__img--verde { display: block; }
}
[data-theme="dark"] .fruta__video img.fruta__img--creme { display: none; }
[data-theme="dark"] .fruta__video img.fruta__img--verde { display: block; }
[data-theme="light"] .fruta__video img.fruta__img--creme { display: block; }
[data-theme="light"] .fruta__video img.fruta__img--verde { display: none; }
.fruta__b { padding: 24px 26px 28px; }
@media (max-width: 560px) {
  .fruta__b { padding: 14px 16px 18px; }
  .fruta__b h3 { font-size: 20px; }
}
.fruta__b h3 { font-size: 26px; font-weight: 800; }
.fruta__b h3 span { color: var(--laranja); }

/* ---------- CTA ---------- */
.cta-band { background: var(--cta-bg); position: relative; overflow: hidden; }
.cta-band .leaf { position: absolute; right: -4%; bottom: -30%; width: 46%; opacity: 0.12; }
.cta-band .leaf path { fill: var(--lima); }
.cta-in { position: relative; z-index: 2; text-align: center; }
.cta-in .eyebrow { color: var(--lima-400); justify-content: center; }
.cta-in h2 { font-size: clamp(30px, 4.6vw, 56px); font-weight: 800; color: #fff; max-width: 18ch; margin: 0 auto 18px; }
.cta-in h2 em { font-style: normal; color: var(--lima-400); }
.cta-in p { font-size: clamp(16px, 4vw, 19px); color: #C5D6B4; max-width: 46ch; margin: 0 auto 38px; }
.cta-in .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.footer { background: var(--verde-folha-900); color: #BFD3AC; padding: clamp(48px, 8vw, 72px) 0 36px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px){ .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px){ .footer__top { grid-template-columns: 1fr; gap: 32px; } }
.footer__brand img { height: 40px; margin-bottom: 18px; }
.footer__brand p { font-size: 15px; line-height: 1.7; color: #8AA372; max-width: 30ch; }
.footer h5 { color: var(--lima-400); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 16px; }
.footer a, .footer__col p { display: block; font-size: 15px; line-height: 2; color: #BFD3AC; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__bottom { margin-top: 52px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #6E8A56; }
@media (max-width: 520px) {
  .footer__top { text-align: center; }
  .footer__brand img { margin-left: auto; margin-right: auto; }
  .footer__brand p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .footer a, .footer__col p { text-align: center; }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-top: 36px; }
}
