/* ============================================================
   AGÊNCIA DE MKT SP — Sistema visual
   Consultoria Estratégica de Marketing & Posicionamento
   ============================================================ */

:root {
  /* Cores */
  --bg:            #0A0A0A;
  --bg-2:          #151515;
  --bg-3:          #1E1E1E;
  --line:          #242424;
  --line-2:        #2E2A22;
  --white:         #F5F5F5;
  --white-dim:     #C9C9C9;
  --gold:          #C8A96B;
  --gold-dim:      #8E794B;
  --gold-soft:     #c8a96b22;
  --metal:         #8A8A8A;
  --metal-2:       #5E5E5E;

  /* Tipografia */
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --serif-alt: "Playfair Display", Georgia, serif;
  --sans:  "Inter", "Manrope", system-ui, -apple-system, sans-serif;

  /* Espaços */
  --pad-x: clamp(24px, 5vw, 96px);
  --section-y: clamp(96px, 12vw, 180px);
  --max: 1320px;

  /* Easing */
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  background-image:
    radial-gradient(1100px 600px at 80% -10%, #161310 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 30%, #100f0d 0%, transparent 55%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* Selection */
::selection { background: var(--gold); color: #0A0A0A; }

/* Scrollbar — bem discreto */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c1c1c; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #2a2a2a; }

/* ============================================================
   Layout
   ============================================================ */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section { position: relative; }

.section-pad { padding: var(--section-y) 0; }

/* ============================================================
   Tipografia
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--white);
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 6.6vw, 92px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.h-section {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
  hyphens: auto;
}
.h-section em { font-style: italic; color: var(--gold); font-weight: 300; }

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
  opacity: .8;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--metal);
}

.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--white-dim);
  font-weight: 300;
  max-width: 56ch;
  overflow-wrap: break-word;
}
@media (max-width: 600px) {
  .lede { font-size: 15px; line-height: 1.6; }
}

.body-md { font-size: 16px; line-height: 1.7; color: var(--white-dim); font-weight: 300; }
.body-sm { font-size: 14px; line-height: 1.65; color: var(--metal); font-weight: 300; }

/* ============================================================
   Botões
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--white);
  background: transparent;
  transition: all .5s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  max-width: 100%;
  text-align: left;
  line-height: 1.3;
}
@media (max-width: 600px) {
  .btn {
    padding: 16px 20px;
    font-size: 11px;
    letter-spacing: 0.16em;
    gap: 10px;
  }
}
.btn .arrow {
  width: 18px; height: 1px; background: var(--gold);
  position: relative;
  transition: all .5s var(--ease);
}
.btn .arrow::after {
  content:""; position:absolute; right:0; top:-3px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  transform: rotate(45deg);
  transition: all .5s var(--ease);
}
.btn:hover { background: var(--gold); color: #0A0A0A; }
.btn:hover .arrow,
.btn:hover .arrow::after { background: #0A0A0A; border-color:#0A0A0A; }
.btn:hover .arrow { width: 26px; }

.btn--ghost {
  border-color: var(--line);
  color: var(--white-dim);
}
.btn--ghost .arrow,
.btn--ghost .arrow::after { background: var(--white-dim); border-color: var(--white-dim); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn--ghost:hover .arrow,
.btn--ghost:hover .arrow::after { background: var(--gold); border-color: var(--gold); }

.link-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), gap .4s var(--ease);
}
.link-gold:hover { border-color: var(--gold); gap: 16px; }

/* ============================================================
   Navegação
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px var(--pad-x);
  border-bottom-color: var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 1;
}
.nav-brand .mark {
  font-family: var(--serif);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
  white-space: nowrap;
}
.nav-brand .mark em {
  font-style: italic;
  color: var(--gold);
}
.nav-brand .tag {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--metal);
  padding-left: 14px;
  border-left: 1px solid var(--line);
  line-height: 1.3;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .nav-brand .tag { display: none; }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-menu a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
  position: relative;
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav-menu a::after {
  content:"";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .4s var(--ease);
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--white); }
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }
.nav-menu a.active { color: var(--gold); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: all .4s var(--ease);
}
.nav-cta:hover { background: var(--gold); color: #0A0A0A; }

/* Mobile menu */
.nav-toggle { display: none; }
@media (max-width: 1024px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    background: none;
    border: 0;
    padding: 0;
  }
  .nav-toggle span {
    display: block;
    height: 1px;
    background: var(--white);
    width: 100%;
    transition: all .3s var(--ease);
  }
  .nav-toggle span:nth-child(2) { width: 70%; margin-left: auto; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 100%; }

  .nav-menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s var(--ease);
  }
  .nav-menu a { font-size: 22px; font-family: var(--serif); text-transform: none; letter-spacing: 0; }
  .nav.open .nav-menu { display: flex; opacity: 1; pointer-events: auto; }
}

/* ============================================================
   Hairlines, ornaments
   ============================================================ */
.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  width: 100%;
}
.gold-dot {
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}
.gold-line {
  width: 56px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* Numerador de seção */
.section-index {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}
.section-index .n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
}
.section-index .l {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--metal);
}
.section-index .bar {
  flex: 1; height: 1px; background: var(--line);
  align-self: center;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .4s; }

/* ============================================================
   Cards (Soluções)
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 880px) { .cards-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--bg);
  padding: 56px 48px;
  position: relative;
  transition: background .5s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.card:hover { background: var(--bg-2); }
.card:hover::before { transform: scaleX(1); }
.card .card-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 28px;
  display: block;
}
.card .card-title {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.card .card-body {
  font-size: 14.5px;
  color: var(--metal);
  line-height: 1.65;
  font-weight: 300;
  max-width: 38ch;
  margin-bottom: 36px;
}
.card .card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .6;
  transition: opacity .4s var(--ease);
}
.card:hover .card-meta { opacity: 1; }

/* Card com imagem de fundo */
.card.has-bg {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 0;
}
.card.has-bg > * { position: relative; z-index: 2; }
.card.has-bg::before { z-index: 3; }
.card.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,.55) 45%, rgba(10,10,10,.95) 100%),
    var(--card-bg) center/cover no-repeat;
  z-index: 1;
  transition: transform 1.4s var(--ease), filter .5s var(--ease);
}
.card.has-bg:hover::after { transform: scale(1.04); filter: brightness(1.08); }
.card.has-bg .card-num { color: var(--gold); opacity: .9; }
.card.has-bg .card-title { color: var(--white); }
.card.has-bg .card-body { color: var(--white-dim); }

/* ============================================================
   Rodapé
   ============================================================ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 96px var(--pad-x) 40px;
  position: relative;
}
footer::before {
  content:"";
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 1px;
  background: var(--gold);
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.footer-brand .mark {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
}
.footer-brand .mark em { color: var(--gold); font-style: italic; }
.footer-brand .tag {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--metal);
  margin-top: 12px;
}
.footer-brand .slogan {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--white-dim);
  margin-top: 24px;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a {
  font-size: 14px;
  color: var(--white-dim);
  font-weight: 300;
  transition: color .3s var(--ease);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--metal);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 16px;
}

/* WhatsApp pill no rodapé */
.footer-contact .wa-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  transition: all .4s var(--ease);
}
.footer-contact .wa-pill:hover { background: var(--gold); color: #0A0A0A; }
.footer-contact .wa-pill:hover { color: #0A0A0A; }
.footer-contact .wa-hint {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--metal);
  letter-spacing: 0.04em;
  max-width: 26ch;
}

/* ============================================================
   WhatsApp floating
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  z-index: 90;
  color: var(--gold);
  transition: all .4s var(--ease);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.wa-float:hover { background: var(--gold); color: #0A0A0A; transform: translateY(-3px); }
.wa-float svg { width: 24px; height: 24px; }

/* ============================================================
   Helpers
   ============================================================ */
.row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
@media (max-width: 880px) { .grid-2 { grid-template-columns: 1fr; gap: 48px; } }

.text-gold { color: var(--gold); }
.text-metal { color: var(--metal); }
.italic { font-style: italic; }

/* divisor de página */
.page-hero {
  padding: 220px var(--pad-x) 120px;
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero::before {
  content:"";
  position: absolute;
  inset:0;
  background:
    radial-gradient(700px 360px at 80% 10%, rgba(200,169,107,.06), transparent 60%);
}

/* Hero com imagem de fundo cinematográfica */
.hero-with-bg {
  padding: 240px var(--pad-x) 160px;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.75) 60%, var(--bg) 100%),
    var(--hero-bg, none) center/cover no-repeat fixed;
  border-bottom: 1px solid var(--line);
}
.hero-with-bg::before { display: none; }
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(200,169,107,.10), transparent 60%);
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 880px) {
  .hero-with-bg { background-attachment: scroll; padding: 200px var(--pad-x) 120px; }
}
