/* ==========================================================
   Método de Orçamentação — base (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 {
  --brown-900: #34261c;
  --brown-800: #4a3527;
  --brown-700: #6b442c;
  --brown-600: #8b5a3c;
  --caramel-500: #b07a52;
  --caramel-300: #d9b99c;
  --sand-200: #e6d6c5;
  --sand-100: #efe5da;
  --sand-50: #f6f0e8;
  --off: #faf6f0;
  --white: #ffffff;
  --ink: #2c2119;
  --muted: #6e5f53;
  --line: #e7ddd1;
  --warn-bg: #fbf1e1;
  --warn-ink: #7a5212;
  --ok: #3f6b4a;
  --ok-bg: #e4efe4;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgba(52, 38, 28, .06), 0 2px 8px rgba(52, 38, 28, .05);
  --shadow: 0 10px 30px -12px rgba(52, 38, 28, .22), 0 2px 6px rgba(52, 38, 28, .05);
  --shadow-l: 0 30px 60px -24px rgba(52, 38, 28, .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: var(--sticky-h);
}
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(--caramel-500); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--brown-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(--brown-600); }
.h2 { font-size: clamp(30px, 7vw, 50px); line-height: 1.12; color: var(--brown-900); }
.h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 4.6vw, 32px); line-height: 1.18; color: var(--brown-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(--brown-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(52, 38, 28, .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(52, 38, 28, .6); background: var(--brown-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(--brown-900); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45); }
.btn--light:hover { background: var(--sand-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(--sand-100); color: var(--brown-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(250, 246, 240, .97); border-bottom: 1px solid rgba(231, 221, 209, .8); }
.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(--brown-900); }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--brown-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: 30px; width: auto; display: block; }
@media (min-width: 768px) { .brand img { height: 36px; } .site-header .wrap { height: 76px; } }
.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

/* ---------- rodapé ---------- */
.site-footer { background: var(--brown-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(52, 38, 28, .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(--brown-900); }
.sticky-cta .btn { flex: 1; min-height: 52px; padding: 12px 14px; font-size: 13px; }
html.has-cookie-banner .sticky-cta { transform: translateY(110%); }
@media (min-width: 900px) { .sticky-cta { display: none; } html.sticky-on { --sticky-h: 0px; } }

/* ---------- consentimento de cookies ---------- */
.cookie-banner { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-l); padding: 18px 18px 16px; display: grid; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { color: var(--ink); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button { flex: 1 1 140px; min-height: 44px; border-radius: 12px; font: 700 13px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.cookie-actions .accept { background: var(--brown-900); color: #fff; border: 0; }
.cookie-actions .reject { background: #fff; color: var(--brown-900); border: 1.5px solid var(--caramel-300); }
