/* =========================================================================
   Embala São Paulo: folha de estilo do site (técnico-premium)
   Paleta: verde metálico #2D6A4F · dourado #C9A84C · branco #FFFFFF
   Tipografia: Manrope (títulos) + Inter (corpo)
   ========================================================================= */

/* ---- Tokens ---- */
:root {
  --green: #2D6A4F;
  --green-700: #245741;
  --green-900: #16281F;
  --green-950: #101c16;
  --gold: #C9A84C;
  --gold-600: #b3922f;
  --white: #FFFFFF;

  --bg: #FAFBF9;
  --bg-alt: #F1F4F0;
  --surface: #FFFFFF;
  --ink: #14231C;
  --ink-soft: #47564E;
  --ink-muted: #6B786F;
  --line: #E2E7E1;
  --line-strong: #cdd6ce;

  --ring: rgba(45, 106, 79, .28);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(16, 28, 22, .05), 0 1px 3px rgba(16, 28, 22, .06);
  --shadow-md: 0 6px 20px -8px rgba(16, 28, 22, .16);
  --shadow-lg: 0 24px 60px -24px rgba(16, 28, 22, .28);

  --maxw: 1160px;
  --gap: clamp(20px, 4vw, 40px);

  --font-head: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .4em; font-weight: 800; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 5vw, 40px); }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--tint { background: var(--bg-alt); }
.section--dark { background: var(--green-900); color: #E7EEE9; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600);
  margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.section--dark .eyebrow { color: var(--gold); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--ink-soft); font-size: 1.075rem; margin-bottom: 0; }
.section--dark .section-head p { color: #B9C7BE; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  min-height: 48px; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--green-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--gold { background: var(--gold); color: var(--green-950); }
.btn--gold:hover { background: var(--gold-600); color: var(--green-950); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--green); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--green); background: rgba(45,106,79,.05); color: var(--green); }
.section--dark .btn--ghost { color: #E7EEE9; border-color: rgba(255,255,255,.28); }
.section--dark .btn--ghost:hover { border-color: var(--gold); color: #fff; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; color: var(--green-900); letter-spacing: -.02em; }
.brand__tag { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; margin-top: 3px; }
.nav { display: none; gap: 26px; align-items: center; }
.nav a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--green); }
.nav .nav-cta { display: none; }
.header-cta { display: none; }
.menu-toggle { display: inline-flex; }
/* Menu mobile aberto */
.nav.is-open {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 14px clamp(18px, 5vw, 40px) 20px; box-shadow: var(--shadow-md);
}
.nav.is-open a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
.nav.is-open .nav-cta { display: inline-flex; margin-top: 12px; border-bottom: 0; }
@media (min-width: 940px) {
  .nav { display: flex; position: static; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav a { padding: 0; border: 0; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: var(--green-900); color: #EAF1EC; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 82% 12%, rgba(201,168,76,.20), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(45,106,79,.55), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: clamp(32px, 5vw, 56px); padding-block: clamp(56px, 9vw, 96px); }
.hero__eyebrow { color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; letter-spacing: -.025em; }
.hero h1 .accent { color: var(--gold); }
.hero p { color: #C6D4CB; font-size: clamp(1.05rem, 2vw, 1.22rem); max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.hero__trust li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: #C6D4CB; font-weight: 500; }
.hero__trust svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.hero__visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 300px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.12);
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.05fr .95fr; align-items: center; }
}

/* Placeholder de imagem (gradiente + SVG) */
.img-ph { position: relative; width: 100%; height: 100%; background: linear-gradient(135deg, #234b39 0%, #2D6A4F 46%, #3f8464 100%); display: grid; place-items: center; }
.img-ph::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 78% 8%, rgba(201,168,76,.34), transparent 55%); }
.img-ph svg { position: relative; width: min(78%, 380px); height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.28)); }
.img-ph__note { position: absolute; left: 14px; bottom: 12px; font-size: .68rem; letter-spacing: .04em; color: rgba(255,255,255,.62); font-weight: 500; background: rgba(16,28,22,.4); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); }

/* ---- ATM explainer ---- */
.atm-grid { display: grid; gap: clamp(28px, 4vw, 48px); align-items: center; }
@media (min-width: 900px) { .atm-grid { grid-template-columns: 1fr 1fr; } }
.atm-points { display: grid; gap: 16px; margin-top: 24px; }
.atm-point { display: flex; gap: 14px; }
.atm-point__ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(45,106,79,.08); color: var(--green); display: grid; place-items: center; }
.atm-point__ic svg { width: 22px; height: 22px; }
.atm-point h4 { margin: 2px 0 4px; font-size: 1.05rem; }
.atm-point p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* Diagrama ATM (card) */
.atm-diagram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-md); }
.atm-diagram h3 { font-size: 1.15rem; margin-bottom: 6px; }
.atm-diagram .sub { color: var(--ink-muted); font-size: .9rem; margin-bottom: 18px; }
.gas-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gas { text-align: center; padding: 16px 10px; border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px solid var(--line); }
.gas__sym { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--green); }
.gas__sym sub { font-size: .62em; }
.gas__name { font-size: .78rem; color: var(--ink-muted); margin-top: 2px; }
.gas__bar { height: 6px; border-radius: 999px; background: var(--line-strong); margin-top: 10px; overflow: hidden; }
.gas__bar i { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.gas--down .gas__bar i { background: var(--gold); }

/* ---- Cards genéricos / catálogo ---- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card__ic { width: 52px; height: 52px; border-radius: 14px; background: var(--green); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.card__ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 16px; }
.card__meta { margin-top: auto; display: grid; gap: 8px; }
.card__meta li { display: flex; gap: 9px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); }
.card__meta svg { width: 16px; height: 16px; color: var(--gold-600); flex: none; margin-top: 3px; }
.card__tag { align-self: flex-start; font-family: var(--font-head); font-weight: 700; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green); background: rgba(45,106,79,.09); padding: 5px 11px; border-radius: 999px; margin-bottom: 16px; }

/* ---- Comparativo ATM x comum ---- */
.compare { display: grid; gap: 18px; }
@media (min-width: 820px) { .compare { grid-template-columns: 1fr 1fr; gap: 24px; } }
.compare__col { border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); border: 1px solid var(--line); background: var(--surface); }
.compare__col--good { background: var(--green-900); color: #E7EEE9; border-color: transparent; box-shadow: var(--shadow-lg); }
.compare__badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.compare__col--good .compare__badge { background: var(--gold); color: var(--green-950); }
.compare__col--plain .compare__badge { background: var(--bg-alt); color: var(--ink-muted); }
.compare__col h3 { font-size: 1.3rem; margin-bottom: 16px; }
.compare__col--good h3 { color: #fff; }
.compare__list li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); font-size: .96rem; }
.compare__col--good .compare__list li { border-top-color: rgba(255,255,255,.12); color: #D6E1DA; }
.compare__list li:first-child { border-top: 0; }
.compare__list svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.ic-yes { color: var(--gold); }
.compare__col--plain .ic-no { color: #B24A3A; }

/* ---- Impacto (stats) ---- */
.stats { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 26px 22px; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4.5vw, 2.7rem); color: var(--gold); letter-spacing: -.03em; line-height: 1; }
.stat__label { color: #C6D4CB; font-size: .94rem; margin-top: 10px; }
.impact-note { margin-top: 28px; font-size: .84rem; color: #93a89b; max-width: 60ch; }

/* ---- Aplicações ---- */
.apps { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .apps { grid-template-columns: repeat(4, 1fr); } }
.app {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; color: #fff; border: 1px solid var(--line);
  background: linear-gradient(160deg, #2f7254, #1c3b2d);
}
.app::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 80% at 80% 0%, rgba(201,168,76,.28), transparent 60%); }
.app svg { position: absolute; top: 18px; left: 18px; width: 30px; height: 30px; color: rgba(255,255,255,.85); }
.app h4 { position: relative; color: #fff; font-size: 1.1rem; margin: 0 0 4px; }
.app p { position: relative; color: rgba(255,255,255,.82); font-size: .88rem; margin: 0; }

/* ---- FAQ ---- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; gap: 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.03rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q-ic { margin-left: auto; flex: none; width: 24px; height: 24px; color: var(--green); transition: transform .2s ease; }
.faq details[open] summary .q-ic { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---- Orçamento (form) ---- */
.quote { display: grid; gap: clamp(32px, 5vw, 56px); align-items: start; }
@media (min-width: 960px) { .quote { grid-template-columns: .9fr 1.1fr; } }
.quote__intro h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: #fff; }
.quote__intro p { color: #C6D4CB; }
.quote__list { margin-top: 22px; display: grid; gap: 14px; }
.quote__list li { display: flex; gap: 12px; align-items: flex-start; color: #D6E1DA; font-size: .96rem; }
.quote__list svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 2px; }
.form {
  background: var(--surface); color: var(--ink); border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 38px); box-shadow: var(--shadow-lg);
}
.form__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form__grid { grid-template-columns: 1fr 1fr; } .form__grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--ink); }
.field label .req { color: var(--gold-600); }
.field input, .field select {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; min-height: 48px; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--ring); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232D6A4F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form .btn { width: 100%; margin-top: 4px; }
.form__hint { font-size: .8rem; color: var(--ink-muted); margin: 14px 0 0; text-align: center; }

/* ---- Footer ---- */
.site-footer { background: var(--green-950); color: #B9C7BE; padding-block: clamp(44px, 6vw, 64px) 30px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: #8ba295; }
.footer-brand p { color: #93a89b; font-size: .92rem; max-width: 40ch; margin-top: 14px; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #B9C7BE; font-size: .94rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .82rem; color: #7d9488; }
.gap-tag { color: #6f8579; font-style: italic; }

/* ---- Utilidades ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; transition: top .18s ease; }
.skip-link:focus { top: 12px; color: #fff; }
.icon-btn { background: none; border: 1.5px solid var(--line-strong); border-radius: 10px; width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; color: var(--green-900); }
