/* ==========================================================
   RF — base compartilhada (tokens, tipografia, botões, layout)
   Reutilize este arquivo nas próximas páginas (ex.: /orcamentacao)
   ========================================================== */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-latin-var.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-latin-var.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-900: #1c3329;
  --green-800: #24423a;
  --green-700: #2f5446;
  --sage-700: #4f6d5b;
  --sage-600: #5f7f6b;
  --sage-500: #7e9c88;
  --sage-300: #b8cbbb;
  --sage-200: #d3dfd3;
  --sage-100: #e6ede5;
  --sage-50: #f0f4ef;
  --off: #f7f5f0;
  --white: #ffffff;
  --ink: #1b2621;
  --muted: #56645c;
  --line: #e1e6de;
  --warn-bg: #fbf3e2;
  --warn-ink: #7a5212;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgba(28, 51, 41, .06), 0 2px 8px rgba(28, 51, 41, .05);
  --shadow: 0 10px 30px -12px rgba(28, 51, 41, .22), 0 2px 6px rgba(28, 51, 41, .05);
  --shadow-l: 0 30px 60px -24px rgba(28, 51, 41, .35);

  --wrap: 1160px;
  --gutter: 20px;
  --sticky-h: 0px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

*, *::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: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--off);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--sticky-h) + var(--cookie-h, 0px));
}
html.sticky-on { --sticky-h: 84px; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; text-wrap: balance; }
h1, .h2, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sage-500); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--green-900); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
@media (min-width: 768px) { :root { --gutter: 32px; } .section { padding: 104px 0; } }

/* ---------- tipografia utilitária ---------- */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-600); }
.h2 { font-size: clamp(30px, 7vw, 50px); line-height: 1.12; color: var(--green-900); }
.h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 4.6vw, 32px); line-height: 1.18; color: var(--green-900); }
.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); line-height: 1.65; }
.center { text-align: center; }
.section-head { max-width: 760px; margin: 0 auto 40px; display: grid; gap: 16px; }
.section-head.center { justify-items: center; }
@media (min-width: 768px) { .section-head { margin-bottom: 56px; } }

/* ---------- botões ---------- */
.btn {
  --bg: var(--green-900); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 16px 28px; border-radius: 14px; border: 0;
  background: var(--bg); color: var(--fg);
  font: 700 15px/1.2 var(--font); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; text-align: center;
  box-shadow: 0 10px 24px -10px rgba(28, 51, 41, .55);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(28, 51, 41, .6); background: var(--green-800); }
.btn:active { transform: translateY(0); }
.btn .arrow { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--light { --bg: #fff; --fg: var(--green-900); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45); }
.btn--light:hover { background: var(--sage-50); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 13px; border-radius: 12px; }

/* ---------- ícones ---------- */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--sage-100); color: var(--green-800); flex: none; }

/* ---------- animação de entrada (só com JS ativo) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal][data-delay="1"] { transition-delay: .08s; }
.js [data-reveal][data-delay="2"] { transition-delay: .16s; }
.js [data-reveal][data-delay="3"] { transition-delay: .24s; }

/* ---------- cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247, 245, 240, .97); border-bottom: 1px solid rgba(225, 230, 222, .7); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-900); }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--green-900); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.brand-name { display: grid; line-height: 1.1; }
.brand-name b { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.brand-name span { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.brand img { height: 44px; width: auto; display: block; }
@media (min-width: 768px) { .brand img { height: 52px; } .site-header .wrap { height: 76px; } }
.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

/* ---------- rodapé ---------- */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, .78); padding: 40px 0 48px; font-size: 14px; }
.site-footer .wrap { display: grid; gap: 22px; }
.footer-brand { display: grid; gap: 12px; }
.footer-brand img { height: 46px; width: auto; opacity: .92; }
.site-footer strong { color: #fff; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a, .footer-links button { color: rgba(255, 255, 255, .78); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-links .soon { opacity: .6; }
@media (min-width: 768px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- botão fixo no celular ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -16px rgba(28, 51, 41, .35);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 14px;
  transform: translateY(110%); transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .price { display: grid; line-height: 1.15; flex: none; }
.sticky-cta .price small { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sticky-cta .price b { font-size: 20px; color: var(--green-900); }
.sticky-cta .btn { flex: 1; min-height: 52px; padding: 12px 14px; font-size: 13px; }
/* com o aviso de cookies embaixo, o botão fixo sobe e fica visível acima dele */
html.cookie-bottom .sticky-cta { bottom: var(--cookie-h, 0px); padding-bottom: 12px; }
html.cookie-bottom .sticky-cta:not(.is-visible) { transform: translateY(calc(110% + var(--cookie-h, 0px))); }
@media (min-width: 900px) { .sticky-cta { display: none; } html.sticky-on { --sticky-h: 0px; } }

/* ---------- consentimento de cookies (faixa discreta; o script a reposiciona
   para nunca ficar sobre um botão de compra) ---------- */
.cookie-banner { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; margin: 0; background: rgba(255, 255, 255, .98); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(0, 0, 0, .35); padding: 10px var(--gutter, 16px) calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 240px; margin: 0; }
.cookie-banner strong { color: var(--ink); }
.cookie-banner.is-top { top: var(--header-b, 64px); bottom: auto; border-top: 0; border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px -18px rgba(0, 0, 0, .35); padding-bottom: 10px; }
.cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.cookie-actions button { min-height: 40px; min-width: 104px; padding: 0 16px; border-radius: 10px; font: 700 12px/1 var(--font); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.cookie-actions .accept { background: var(--green-900); color: #fff; border: 0; }
.cookie-actions .reject { background: #fff; color: var(--green-900); border: 1.5px solid var(--sage-300); }
@media (max-width: 420px) { .cookie-actions { flex: 1 1 100%; } .cookie-actions button { flex: 1 1 0; } }
@media (min-width: 900px) {
  .cookie-banner { left: 16px; right: auto; bottom: 16px; max-width: 440px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
  .cookie-banner.is-top { top: calc(var(--header-b, 76px) + 16px); bottom: auto; border: 1px solid var(--line); }
  .cookie-banner.is-right { left: auto; right: 16px; }
}
