/* ==========================================================================
   salescodex — página de vendas
   Paleta e tipografia seguem identidade/design-guide.md
   ========================================================================== */

:root {
  --petroleo:      #1A2229;  /* fundo principal */
  --petroleo-fundo:#141B21;  /* fundo mais profundo, alternância */
  --card:          #2A333C;  /* cards sobre fundo escuro */
  --terracota:     #8B4A3A;  /* destaque / CTA */
  --terracota-luz: #A65B47;  /* hover */
  --offwhite:      #F2EDE7;  /* texto sobre escuro */
  --muted:         #9BA6B0;  /* texto secundário sobre escuro */
  --muted-claro:   #5B646D;  /* texto secundário sobre claro */
  --borda:         rgba(242, 237, 231, 0.10);
  --borda-clara:   rgba(26, 34, 41, 0.12);

  --max: 1180px;
  --max-narrow: 780px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--petroleo);
  color: var(--offwhite);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-narrow { max-width: var(--max-narrow); }

/* --------------------------------------------------------------------------
   Tipografia base
   -------------------------------------------------------------------------- */

h1, h2, h3 { margin: 0; }

h1 {
  font-size: clamp(2.6rem, 5.3vw, 4.4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.042em;
}
h1 em {
  font-style: normal;
  color: var(--terracota);
}

.h2 {
  font-size: clamp(1.95rem, 4.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

h3 {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--terracota);
  margin: 0 0 18px;
}
.section-light .eyebrow { color: var(--terracota); }

.rule {
  display: block;
  width: 64px;
  height: 3px;
  background: var(--terracota);
  margin-bottom: 26px;
}

.lead {
  font-size: clamp(1.05rem, 1.9vw, 1.24rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 660px;
  margin: 0 0 52px;
}
.section-light .section-lead { color: var(--muted-claro); }

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--terracota);
  color: var(--offwhite);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 16px 30px;
  border-radius: 4px;
  transition: background .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--terracota-luz); transform: translateY(-2px); }

.btn-lg { padding: 19px 38px; font-size: 1.05rem; }
.btn-sm { padding: 11px 20px; font-size: 0.88rem; }

.btn-ghost {
  display: inline-block;
  color: var(--offwhite);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(242, 237, 231, 0.3);
  transition: border-color .18s ease, color .18s ease;
}
.btn-ghost:hover { border-color: var(--terracota); color: var(--terracota); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(20, 27, 33, 0.94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--borda);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 76px;
}

.logo {
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.045em;
  text-decoration: none;
  color: var(--offwhite);
}
.logo span { color: var(--terracota); }

.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .16s ease;
}
.nav a:hover { color: var(--offwhite); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92vh, 880px);
  padding: 170px 0 120px;
  overflow: hidden;

  background-color: var(--petroleo);
  background-image: url('img/fundo-hero.jpg');
  background-size: cover;
  background-position: right 38%;
  background-repeat: no-repeat;
}

/* Véu que escurece a esquerda pro texto respirar e libera a direita, onde ele aparece */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg,
      var(--petroleo) 0%,
      rgba(26, 34, 41, 0.97) 26%,
      rgba(26, 34, 41, 0.86) 42%,
      rgba(26, 34, 41, 0.48) 58%,
      rgba(26, 34, 41, 0.14) 74%,
      rgba(26, 34, 41, 0.30) 100%),
    radial-gradient(760px 480px at 88% 22%, rgba(139, 74, 58, 0.26), transparent 66%);
}

/* Emenda com a seção seguinte */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 190px;
  background: linear-gradient(180deg, transparent, rgba(26, 34, 41, 0.72) 62%, var(--petroleo));
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: 700px; }

.hero h1 { margin-bottom: 30px; }

.cta-row {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin: 40px 0 54px;
}

.hero-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-marks li { display: flex; align-items: center; gap: 10px; }
.hero-marks li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--terracota);
  border-radius: 50%;
  flex: none;
}

/* --------------------------------------------------------------------------
   Seções
   -------------------------------------------------------------------------- */

.section { padding: 120px 0; background: var(--petroleo); }
.section-tight { padding: 100px 0; background: var(--petroleo-fundo); }

.section-light {
  background: var(--offwhite);
  color: var(--petroleo);
}
.section-light .h2 { color: var(--petroleo); }
.section-light p { color: #4A535C; }

.punch {
  margin: 60px 0 0;
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  max-width: 24ch;
  border-left: 3px solid var(--terracota);
  padding-left: 26px;
}

/* --------------------------------------------------------------------------
   Grids e cards
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--borda);
  border-radius: 6px;
  padding: 32px 28px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(139, 74, 58, 0.55); }

.card-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--terracota);
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 12px; }
.card p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.58;
}

.card-service { padding: 40px 34px; }
.card-service h3 {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--borda);
  padding-top: 22px;
}
.ticks li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 11px;
  font-size: 0.93rem;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--terracota);
  border-bottom: 2px solid var(--terracota);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Método — etapas
   -------------------------------------------------------------------------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: etapa;
  border-top: 1px solid var(--borda-clara);
}
.steps li {
  display: flex;
  gap: 34px;
  padding: 34px 0;
  border-bottom: 1px solid var(--borda-clara);
}
.step-num {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--terracota);
  line-height: 1;
  min-width: 68px;
  flex: none;
}
.steps h3 {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: var(--petroleo);
}
.steps p {
  margin: 0;
  max-width: 62ch;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Pra quem é / não é
   -------------------------------------------------------------------------- */

.fit-list { gap: 22px; }

.fit {
  background: var(--card);
  border: 1px solid var(--borda);
  border-radius: 6px;
  padding: 36px 32px;
}
.fit h3 { margin-bottom: 22px; font-size: 1.3rem; letter-spacing: -0.03em; }
.fit ul { list-style: none; padding: 0; margin: 0; }
.fit li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.fit-yes { border-top: 3px solid var(--terracota); }
.fit-yes li::before {
  content: "";
  position: absolute;
  left: 2px; top: 7px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--terracota);
  border-bottom: 2px solid var(--terracota);
  transform: rotate(-45deg);
}

.fit-no { border-top: 3px solid #4A535C; opacity: 0.86; }
.fit-no li::before {
  content: "";
  position: absolute;
  left: 3px; top: 11px;
  width: 12px; height: 2px;
  background: #6E7882;
}

/* --------------------------------------------------------------------------
   Quem sou
   -------------------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 6px;
}
.about-text p { margin: 0 0 18px; font-size: 1.04rem; line-height: 1.65; }
.about-text .btn { margin-top: 16px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

details {
  border-bottom: 1px solid var(--borda);
  padding: 24px 0;
}
details:first-of-type { border-top: 1px solid var(--borda); }

summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: color .16s ease;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--terracota); }
summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--terracota);
  line-height: 1;
  flex: none;
  transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 68ch;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */

.final-cta {
  padding: 130px 0;
  text-align: center;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(139, 74, 58, 0.3), transparent 65%),
    var(--petroleo-fundo);
  border-top: 1px solid var(--borda);
}
.final-cta .lead { margin: 0 auto 40px; }
.final-cta .h2 { margin-bottom: 22px; }
.micro {
  margin: 20px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--petroleo);
  border-top: 1px solid var(--borda);
  padding: 56px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
}
.footer-tag {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 34ch;
}
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color .16s ease;
}
.footer-links a:hover { color: var(--terracota); }

.footer-bottom {
  border-top: 1px solid var(--borda);
  padding-top: 24px;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: #6E7882;
}

/* --------------------------------------------------------------------------
   WhatsApp flutuante
   -------------------------------------------------------------------------- */

.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  width: 58px; height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.07); }

/* --------------------------------------------------------------------------
   Reveal no scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visivel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .nav { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-photo img { max-height: 420px; }

  .hero {
    padding: 150px 0 100px;
    min-height: min(88vh, 760px);
    background-position: 78% 38%;
  }
  .hero::before {
    background:
      linear-gradient(96deg,
        var(--petroleo) 0%,
        rgba(26, 34, 41, 0.97) 34%,
        rgba(26, 34, 41, 0.80) 52%,
        rgba(26, 34, 41, 0.40) 72%,
        rgba(26, 34, 41, 0.35) 100%),
      radial-gradient(600px 420px at 88% 20%, rgba(139, 74, 58, 0.22), transparent 66%);
  }
  .hero-copy { max-width: 560px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section, .section-tight { padding: 80px 0; }
  .final-cta { padding: 90px 0; }
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .header-inner { height: 66px; }

  /* No celular a foto ocupa a tela inteira, mas ancorada à esquerda:
     aparece só a lousa, sem o personagem brigando com o texto. */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 118px 0 70px;
    background-size: cover;
    background-position: 20% center;
  }
  .hero::before {
    background:
      linear-gradient(180deg,
        rgba(26, 34, 41, 0.78) 0%,
        rgba(26, 34, 41, 0.52) 44%,
        rgba(26, 34, 41, 0.72) 100%),
      radial-gradient(360px 300px at 78% 12%, rgba(139, 74, 58, 0.20), transparent 70%);
  }
  .hero::after { height: 120px; }
  .hero-copy { max-width: none; }
  .cta-row { gap: 16px; margin: 32px 0 44px; }
  .cta-row .btn { width: 100%; text-align: center; }
  .steps li { flex-direction: column; gap: 12px; padding: 28px 0; }
  .step-num { font-size: 1.5rem; }
  .punch { margin-top: 44px; padding-left: 20px; }
  .card-service { padding: 32px 26px; }
  .wa-float { right: 16px; bottom: 16px; }
}

/* Telas estreitas (360px e abaixo): o título quebrava em 4 linhas */
@media (max-width: 400px) {
  h1 { font-size: 2.3rem; }
  .hero { padding: 108px 0 60px; }
  .lead { font-size: 1rem; }
}
