/* ============================================================
   Camilla Matos — Consultoria contábil
   Tokens e estilos compartilhados
   Paleta: azul profundo #16313f · dourado #aa804e · creme #ede6db
   Títulos: serif condensada itálica (Noto Serif Display ~ Times New Roman Condensed)
   Corpo: Outfit (~ Agrandir)
   ============================================================ */

:root {
  --navy: #16313f;
  --navy-deep: #0e2230;
  --navy-soft: #2c4a5c;
  --gold: #aa804e;
  --gold-soft: #c4a274;
  --gold-faint: rgba(170, 128, 78, 0.16);
  --cream: #ede6db;
  --paper: #f7f3ec;
  --paper-card: #fffdf9;
  --ink: #16313f;
  --ink-soft: rgba(22, 49, 63, 0.72);
  --muted: rgba(22, 49, 63, 0.52);
  --rule: rgba(22, 49, 63, 0.12);
  --rule-gold: rgba(170, 128, 78, 0.35);
  --shadow-card: 0 2px 6px rgba(22, 49, 63, 0.05), 0 18px 44px rgba(22, 49, 63, 0.09);
  --font-display: "Noto Serif Display", "Times New Roman", Times, serif;
  --font-body: "Outfit", "Agrandir", system-ui, sans-serif;
  --max-w: 1200px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Tipografia de display ---------- */
.display {
  font-family: var(--font-display);
  font-style: italic;
  font-stretch: 70%;
  font-weight: 480;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-wrap: balance;
}
.display .gold { color: var(--gold); }

.eyebrow {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.lead { font-size: 19px; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- Container ---------- */
.container {
  width: min(var(--max-w), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.site-header.scrolled {
  background: rgba(247, 243, 236, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--rule);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-lockup img { height: 44px; width: auto; }
.brand-lockup .brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-stretch: 72%;
  font-size: 21px;
  font-weight: 540;
  color: var(--navy);
  line-height: 1.05;
}
.brand-lockup .brand-sub {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a.nav-link {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.site-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transition: right 0.3s var(--ease-out);
}
.site-nav a.nav-link:hover { color: var(--navy); }
.site-nav a.nav-link:hover::after { right: 0; }
.site-nav a.nav-link.active { color: var(--navy); font-weight: 600; }
.site-nav a.nav-link.active::after { right: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 28px;
  border: 1.5px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--navy);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(22, 49, 63, 0.28);
}
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover {
  background: #97703f;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(170, 128, 78, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--rule-gold);
}
.btn-ghost:hover { border-color: var(--gold); background: var(--gold-faint); transform: translateY(-2px); }
.btn-on-dark {
  background: var(--cream);
  color: var(--navy);
}
.btn-on-dark:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); }
.btn .wa-ic { width: 18px; height: 18px; flex: none; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Seções ---------- */
.section { padding: 104px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy .display { color: var(--cream); }
.section-navy .lead { color: rgba(237, 230, 219, 0.75); }

.section-head { max-width: 640px; display: grid; gap: 18px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); }

/* ---------- Marquee de frases ---------- */
.marquee {
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid var(--rule-gold);
}
.marquee .track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
}
.marquee:hover .track { animation-play-state: paused; }
.marquee .item {
  font-family: var(--font-display);
  font-style: italic;
  font-stretch: 72%;
  font-size: 22px;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.marquee .item::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  margin: 0 36px;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Cards genéricos ---------- */
.card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--rule-gold);
  box-shadow: 0 4px 10px rgba(22, 49, 63, 0.06), 0 28px 60px rgba(22, 49, 63, 0.13);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(237, 230, 219, 0.7);
  padding: 64px 0 36px;
  font-size: 14.5px;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(237, 230, 219, 0.12);
}
.site-footer img.foot-logo { height: 64px; width: auto; opacity: 0.92; }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: inherit; text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--cream); }
.site-footer .legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(237, 230, 219, 0.45);
  flex-wrap: wrap;
}
.foot-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-stretch: 72%;
  font-size: 22px;
  color: var(--cream);
  margin-top: 18px;
  max-width: 280px;
  line-height: 1.25;
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  font-family: var(--font-display);
  font-style: italic;
  font-stretch: 72%;
  font-size: 23px;
  color: var(--navy);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }
.faq-item summary .faq-x {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 22px;
  font-weight: 300;
  color: var(--gold);
  flex: none;
  transition: transform 0.35s var(--ease-out);
  line-height: 1;
}
.faq-item[open] summary .faq-x { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 4px 28px;
  max-width: 720px;
  color: var(--ink-soft);
}

/* ---------- WhatsApp flutuante (avatar da Camilla) ---------- */
.wa-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 55;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: block;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(22, 49, 63, 0.35);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 18px 40px rgba(22, 49, 63, 0.45); }
.wa-float img.wa-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-sizing: border-box;
  display: block;
}
.wa-float .wa-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
}
.wa-float .wa-badge svg { width: 14px; height: 14px; }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Mobile ---------- */
.menu-toggle { display: none; }
@media (max-width: 880px) {
  .site-nav { display: none; }
  .menu-toggle {
    display: grid;
    place-items: center;
    background: none;
    border: 1.5px solid var(--rule-gold);
    border-radius: 999px;
    width: 44px; height: 44px;
    color: var(--navy);
    cursor: pointer;
  }
  .site-header.menu-open .site-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 18px 24px 26px;
    gap: 18px;
    box-shadow: 0 30px 50px rgba(22, 49, 63, 0.12);
  }
  .section { padding: 72px 0; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 36px; }
}
