/* ============================================================
   EMBI Assessoria — Proposta 3 (landing curta de conversão)
   Direção híbrida: hero escuro → corpo claro → CTA final escura
   ============================================================ */

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #D4B06A;
  --gold-dark: #B38B3D;
  --black: #1F1F24;
  --gray-light: #F2F2F2;
  --cream: #FAF6EF;
  --white: #FFFFFF;

  --ink-soft: rgba(31, 31, 36, 0.72);
  --paper-ink: rgba(242, 242, 242, 0.78);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --header-h: 84px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--black);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

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

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- Ornamento — ◆ — ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ornament-line {
  display: block;
  height: 1px;
  width: min(76px, 18vw);
  background: linear-gradient(90deg, transparent, rgba(212, 176, 106, 0.9));
}

.ornament-line:last-child {
  background: linear-gradient(90deg, rgba(212, 176, 106, 0.9), transparent);
}

.ornament-diamond {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.ornament.on-light .ornament-line {
  background: linear-gradient(90deg, transparent, rgba(179, 139, 61, 0.75));
}

.ornament.on-light .ornament-line:last-child {
  background: linear-gradient(90deg, rgba(179, 139, 61, 0.75), transparent);
}

.ornament.on-light .ornament-diamond {
  background: var(--gold-dark);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 1.05rem 1.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s var(--ease-out),
    box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover {
  background: var(--gold-dark);
  box-shadow: 0 14px 34px -12px rgba(212, 176, 106, 0.55);
}

.btn-outline {
  background: transparent;
  border-color: rgba(212, 176, 106, 0.55);
  color: var(--gray-light);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(212, 176, 106, 0.08);
  color: var(--gold);
}

.btn-lg {
  padding: 1.25rem 2.6rem;
  font-size: 0.84rem;
}

.icon-whats {
  flex: none;
}

/* ============================================================
   HEADER — escuro, fixo, minimalista
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(31, 31, 36, 0.92);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* Com JS: transparente apenas no topo (sem JS o fundo escuro garante a leitura da logo) */
html.js .site-header:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.site-header.is-scrolled {
  background: rgba(31, 31, 36, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(212, 176, 106, 0.16);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.6);
}

.header-inner {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
}

.brand img {
  width: 150px;
  height: auto;
}

.btn-header {
  padding: 0.85rem 1.5rem;
  font-size: 0.72rem;
}

/* ============================================================
   HERO — escuro, glow dourado sutil
   ============================================================ */
.hero {
  position: relative;
  background: var(--black);
  color: var(--gray-light);
  padding: calc(var(--header-h) + clamp(4.5rem, 10vh, 7.5rem)) 24px clamp(5.5rem, 12vh, 8.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 48% at 50% 30%, rgba(212, 176, 106, 0.10), transparent 68%),
    radial-gradient(ellipse 40% 30% at 50% 108%, rgba(212, 176, 106, 0.05), transparent 70%);
}

.hero-inner {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
}

.hero .ornament {
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--white);
  margin-bottom: 1.75rem;
  text-wrap: balance;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--paper-ink);
  max-width: 640px;
  margin: 0 auto 3rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.microcopy {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(242, 242, 242, 0.55);
}

/* ============================================================
   SEÇÕES CLARAS — base
   ============================================================ */
.section-head {
  text-align: center;
  margin-bottom: clamp(3rem, 7vw, 4.5rem);
}

.section-head .ornament {
  margin-top: 1.4rem;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--black);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.15;
  color: var(--black);
  text-wrap: balance;
}

/* ============================================================
   BENEFÍCIOS — creme, 3 itens
   ============================================================ */
.beneficios {
  background: var(--cream);
  padding: clamp(5rem, 11vw, 8rem) 0;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
}

.beneficio {
  text-align: center;
  padding: 0 0.5rem;
}

.beneficio-marker {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  margin-bottom: 1.5rem;
  transition: background-color 0.35s ease, transform 0.45s var(--ease-out);
}

.beneficio:hover .beneficio-marker {
  background: var(--gold-dark);
  transform: rotate(225deg);
}

.beneficio h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: 0.9rem;
  color: var(--black);
}

.beneficio p {
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 34ch;
  margin-inline: auto;
}

/* ============================================================
   SERVIÇOS — branco, 4 cards compactos
   ============================================================ */
.servicos {
  background: var(--white);
  padding: clamp(5rem, 11vw, 8rem) 0;
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.servico-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(31, 31, 36, 0.1);
  border-radius: 2px;
  padding: 2.4rem 1.8rem 2.1rem;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s var(--ease-out);
}

.servico-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  width: 44px;
  background: var(--gold);
  transition: width 0.45s var(--ease-out), background-color 0.35s ease;
}

.servico-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 176, 106, 0.65);
  box-shadow: 0 26px 50px -28px rgba(31, 31, 36, 0.28);
}

.servico-card:hover::before {
  width: calc(100% + 2px);
  background: var(--gold-dark);
}

.servico-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.servico-card p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 1.9rem;
}

.card-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(179, 139, 61, 0.45);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.card-link::after {
  content: "\2192";
  font-size: 1rem;
  line-height: 1;
  color: var(--gold-dark);
  transition: transform 0.3s var(--ease-out);
}

.card-link:hover {
  border-bottom-color: var(--gold-dark);
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   CTA FINAL — escura, espelha o hero
   ============================================================ */
.cta-final {
  position: relative;
  background: var(--black);
  color: var(--gray-light);
  padding: clamp(5.5rem, 12vw, 8.5rem) 24px;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 52% at 50% 62%, rgba(212, 176, 106, 0.10), transparent 68%),
    radial-gradient(ellipse 38% 26% at 50% -8%, rgba(212, 176, 106, 0.05), transparent 70%);
}

.cta-inner {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.cta-symbol {
  width: 56px;
  height: auto;
  margin: 0 auto 2rem;
  opacity: 0.92;
}

.cta-final h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

.cta-text {
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.85;
  color: var(--paper-ink);
  max-width: 560px;
  margin: 0 auto 2.75rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.cta-apoio {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(242, 242, 242, 0.5);
}

/* ============================================================
   RODAPÉ — só texto, 2 linhas
   ============================================================ */
.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(212, 176, 106, 0.14);
  text-align: center;
  padding: 2.75rem 24px;
}

.footer-line1 {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(242, 242, 242, 0.7);
  margin-bottom: 0.5rem;
}

.footer-line2 {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(242, 242, 242, 0.55);
}

/* ============================================================
   BOTÃO FLUTUANTE — WhatsApp
   ============================================================ */
.whats-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.45);
  transition:
    background-color 0.3s ease,
    transform 0.35s var(--ease-out),
    box-shadow 0.35s ease,
    opacity 0.45s ease;
}

.whats-float:hover {
  background: var(--gold-dark);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 40px -10px rgba(212, 176, 106, 0.5);
}

/* Com JS: aparece após a primeira rolagem (sem JS fica sempre visível) */
html.js .whats-float {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

html.js .whats-float.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

html.js .whats-float.is-on:hover {
  transform: translateY(-4px) scale(1.04);
}

/* ============================================================
   REVEAL ON SCROLL (progressivo; página visível sem JS)
   ============================================================ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.85s ease,
    transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .servico-card,
  .beneficio-marker,
  .card-link::after,
  .whats-float {
    transition: none !important;
  }

  html.js .whats-float {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1100px) {
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
  }
}

@media (max-width: 880px) {
  :root {
    --header-h: 72px;
  }

  .beneficios-grid {
    grid-template-columns: 1fr;
    gap: 3.25rem;
    max-width: 480px;
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  .servicos-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }

  .servico-card {
    padding: 2.1rem 1.6rem 1.9rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
    margin-inline: auto;
    margin-bottom: 2.5rem;
  }

  .btn-lg {
    padding: 1.2rem 1.8rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    width: calc(100% - 32px);
  }

  .brand img {
    width: 118px;
  }

  .btn-header {
    padding: 0.75rem 0.85rem;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .btn-lg {
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    padding: 1.1rem 1.4rem;
  }

  .btn-header .icon-whats {
    width: 14px;
    height: 14px;
  }

  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.24em;
  }

  .container {
    width: calc(100% - 40px);
  }

  .whats-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
}
