/* ============================================================
   Tokens
   ============================================================ */
:root {
  --ink:        #182420;   /* sombra da mata — texto principal, seções escuras */
  --paper:      #F3EEE2;   /* papel técnico — fundo claro, cartões */
  --gold:       #DA9A34;   /* amanhecer — acento primário, CTAs */
  --gold-deep:  #B87A22;
  --clay:       #A8492C;   /* terra da Serra Fluminense — acento secundário */
  --forest:     #24382C;   /* verde de mata — seções escuras alternativas */
  --forest-deep:#182420;
  --ink-soft:   #46564E;   /* texto secundário sobre papel */
  --paper-soft: #E8E1D1;   /* cartões sobre papel */
  --line:       rgba(24,36,32,0.14);
  --line-light: rgba(243,238,226,0.18);

  --font-display: "Roboto Slab", ui-serif, Georgia, serif;
  --font-body: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --radius: 10px;
  --wrap: 1160px;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; margin-bottom: 0.35em; }
p { line-height: 1.6; margin: 0 0 1em; }
a { color: inherit; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.9em;
  display: block;
}
.eyebrow-light { color: var(--gold); }

.section-lede { max-width: 640px; color: var(--ink-soft); font-size: 1.05rem; }
.section-dark .section-lede { color: rgba(243,238,226,0.78); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(243,238,226,0.5); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-block { width: 100%; text-align: center; border: none; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(24,36,32,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-light);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--paper); }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand-text em { font-style: normal; color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: rgba(243,238,226,0.85); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.main-nav a:hover { color: var(--paper); }
.nav-cta {
  background: var(--gold); color: var(--ink) !important;
  padding: 0.55em 1.2em; border-radius: 8px; font-weight: 600;
}
.nav-cta:hover { background: var(--gold-deep); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 22px; background: var(--paper); }

.mobile-nav { display: none; flex-direction: column; background: var(--forest-deep); padding: 8px 24px 20px; }
.mobile-nav a { color: var(--paper); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line-light); font-size: 1rem; }
.mobile-nav .nav-cta { text-align: center; margin-top: 12px; border-bottom: none; color: var(--ink); }

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.is-open { display: flex; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 96px;
  color: var(--paper);
}
.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; display: block; }
.hero-photo-wash {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(24,36,32,0.82) 0%, rgba(24,36,32,0.35) 38%, rgba(168,73,44,0.38) 72%, rgba(218,154,52,0.55) 100%);
}

.hero-inner { position: relative; z-index: 1; padding: 64px 0 120px; text-align: center; }
.hero-lede { max-width: 620px; margin: 0 auto 1.8em; color: rgba(243,238,226,0.88); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.readout-strip {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap;
  background: rgba(24,36,32,0.72);
  border-top: 1px solid var(--line-light);
  backdrop-filter: blur(4px);
}
.readout {
  flex: 1 1 160px;
  padding: 18px 20px;
  border-right: 1px solid var(--line-light);
  display: flex; flex-direction: column; gap: 4px;
}
.readout:last-child { border-right: none; }
.readout-value { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 600; color: var(--gold); }
.readout-label { font-size: 0.78rem; color: rgba(243,238,226,0.72); }

@media (max-width: 700px) {
  .hero-inner { padding: 48px 0 60px; }
  .readout { flex: 1 1 45%; }
}

/* ============================================================
   Section shells
   ============================================================ */
.section { padding: 88px 0; }
.section-light { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark h2 { color: var(--paper); }
.section-dawn {
  background: linear-gradient(160deg, var(--forest-deep) 0%, var(--ink) 45%, var(--clay) 100%);
  color: var(--paper);
}
.section-dawn h2 { color: var(--paper); }

/* ============================================================
   Documentação / doc cards
   ============================================================ */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.doc-card {
  background: rgba(243,238,226,0.05);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 26px;
}
.doc-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.04em; color: var(--gold);
  background: rgba(218,154,52,0.12); border: 1px solid rgba(218,154,52,0.3);
  padding: 4px 9px; border-radius: 5px; margin-bottom: 14px;
}
.doc-card h3 { font-size: 1.1rem; margin-bottom: 0.6em; }
.doc-card dl { margin: 0; }
.doc-card dl div { display: flex; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line-light); font-size: 0.92rem; }
.doc-card dl div:first-child { border-top: none; }
.doc-card dt { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(243,238,226,0.55); flex: 0 0 88px; padding-top: 2px; }
.doc-card dd { margin: 0; color: rgba(243,238,226,0.92); }

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

.doc-photos-lede { margin-top: 48px; }
.gallery-grid-dark img { border: 1px solid var(--line-light); }

/* ============================================================
   As usinas / plant cards
   ============================================================ */
.plant-list { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; }
.plant-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}
.plant-card-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.plant-card-header h3 { margin: 0; }
.plant-tag {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em;
  color: var(--clay); border: 1px solid var(--clay); border-radius: 5px; padding: 3px 9px; white-space: nowrap;
}

.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
  margin: 40px 0 8px;
}
.gallery-grid img { width: 100%; height: 190px; object-fit: cover; border-radius: 8px; transition: transform 0.25s ease; display: block; }
.gallery-grid a:hover img { transform: scale(1.03); }
.gallery-grid a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-grid a:first-child img { height: 100%; min-height: 396px; }

@media (max-width: 640px) {
  .gallery-grid a:first-child { grid-column: span 1; grid-row: span 1; }
  .gallery-grid a:first-child img { min-height: 190px; }
}

.spec-sheet { margin: 0; border-top: 1px solid var(--line); }
.spec-sheet div { padding: 11px 2px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.spec-sheet dt { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); flex: none; }
.spec-sheet dd { margin: 0; font-weight: 600; text-align: right; }
.spec-note { font-size: 0.85rem; color: var(--ink-soft); margin: 12px 0 0; font-style: italic; }

@media (max-width: 640px) {
  .plant-card { padding: 22px; }
}

/* ============================================================
   Destaque do desconto
   ============================================================ */
.discount-stat {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px;
  margin: 0 0 12px;
}
.discount-stat-value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3rem);
  color: var(--gold);
}
.discount-stat-label { color: rgba(243,238,226,0.8); font-size: 1rem; max-width: 320px; }

/* ============================================================
   Como funciona — steps
   ============================================================ */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 14px; }
.step-index {
  font-family: var(--font-mono); font-size: 0.95rem; font-weight: 600;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { color: var(--paper); }
.steps p { color: rgba(243,238,226,0.78); margin: 0; }

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

/* ============================================================
   Perguntas frequentes
   ============================================================ */
.faq-list { max-width: 760px; margin: 40px 0 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono); font-size: 1.3rem; font-weight: 400;
  color: var(--clay); flex: none;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 14px 0 0; color: var(--ink-soft); max-width: 640px; }

/* ============================================================
   Contato
   ============================================================ */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.whatsapp-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--clay); text-decoration: none;
  border-bottom: 1.5px solid var(--clay); padding-bottom: 2px;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; background: var(--paper-soft); padding: 28px; border-radius: 14px; border: 1px solid var(--line); }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 0.7em 0.85em;
  border-radius: 8px; border: 1.5px solid var(--line); background: var(--paper);
  color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); }
.hidden-field { position: absolute; left: -9999px; }
.form-note { font-size: 0.88rem; min-height: 1.2em; margin: 0; }
.form-note[data-state="ok"] { color: #2E6B44; }
.form-note[data-state="err"] { color: var(--clay); }

@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--forest-deep); color: rgba(243,238,226,0.85); padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-text { color: var(--paper); font-weight: 700; font-family: var(--font-display); }
.footer-info p { margin: 0 0 6px; font-size: 0.9rem; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-contact a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 0.92rem; }
.footer-contact a:hover { color: var(--gold); }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,16,14,0.92);
  padding: 24px;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  cursor: default;
}
.lightbox-close {
  -webkit-appearance: none; appearance: none;
  position: absolute; top: 18px; right: 24px; z-index: 1;
  margin: 0; padding: 0;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(243,238,226,0.4);
  background: rgba(24,36,32,0.6);
  color: var(--paper);
  font-family: inherit; font-size: 1.8rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(24,36,32,0.9); border-color: var(--paper); }

/* ============================================================
   Scroll-reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
