@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

/* As cores reais são injetadas via JS (render.js) a partir de config.js.
   Os valores abaixo são apenas fallback caso o JS não carregue. */
:root {
  --ink: #14213d;
  --ink-soft: #3a4666;
  --paper: #fbfaf7;
  --paper-alt: #f1efe8;
  --gold: #b98b3e;
  --gold-soft: #e8d5ae;
  --line: #dedad0;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--ink); background: var(--paper); line-height: 1.6; }
h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 500; letter-spacing: -0.01em; }
a { color: inherit; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header { position: sticky; top: 0; z-index: 50; background: rgba(251,250,247,0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-size: 1.15rem; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border: 1.5px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; letter-spacing: 0.05em; color: var(--gold); flex-shrink: 0; }
nav ul { list-style: none; display: flex; gap: 28px; }
nav a { text-decoration: none; font-size: 0.92rem; color: var(--ink-soft); transition: color 0.2s; }
nav a:hover { color: var(--gold); }
@media (max-width: 760px) { nav ul { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 96px 24px 80px; border-bottom: 1px solid var(--line); }
.hero .container { max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--gold); }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); line-height: 1.15; margin-bottom: 22px; color: var(--ink); }
.hero p.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 560px; margin-bottom: 34px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 26px; border-radius: var(--radius); text-decoration: none; font-size: 0.92rem; font-weight: 600; transition: all 0.2s; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--gold); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Sections ---------- */
section { padding: 72px 24px; border-bottom: 1px solid var(--line); }
section.alt { background: var(--paper-alt); }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { color: var(--ink-soft); margin-top: 12px; }

/* Sobre */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.about-grid .fact-list { display: flex; flex-direction: column; gap: 18px; }
.fact { border-left: 2px solid var(--gold-soft); padding-left: 16px; }
.fact dt { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.fact dd { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/* Serviços */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: border-color 0.2s; }
.card:hover { border-color: var(--gold); }
.card .num { font-family: 'Fraunces', serif; font-size: 0.85rem; color: var(--gold); margin-bottom: 14px; }
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.92rem; }

/* Contato */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-item { margin-bottom: 22px; }
.contact-item dt { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.contact-item dd { font-size: 1rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.map-box { background: var(--paper-alt); border: 1px dashed var(--line); border-radius: var(--radius); min-height: 220px; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 0.88rem; text-align: center; padding: 20px; }

/* Legal pages */
.legal { padding: 96px 24px; max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.2rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; font-size: 0.96rem; }
.legal ul { padding-left: 22px; }
.legal a.back { display: inline-block; margin-bottom: 32px; color: var(--gold); text-decoration: none; font-size: 0.9rem; }
.legal a.back:hover { text-decoration: underline; }
.legal strong { color: var(--ink); }

/* Footer */
footer { padding: 48px 24px 32px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
footer .brand { margin-bottom: 10px; }
footer .col p, footer .col a { color: var(--ink-soft); font-size: 0.9rem; display: block; margin-bottom: 8px; text-decoration: none; }
footer .col a:hover { color: var(--gold); }
footer .col h4 { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: var(--ink-soft); }
