/* ==========================================================================
   omarcelomenezes.com — Marcelo Menezes | Consultoria de SEO
   HTML5 + CSS + JS puro. Sem framework, sem build.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --bg:            #ffffff;
  --bg-alt:        #f6f6f4;
  --surface:       #ffffff;
  --text:          #12140f;
  --text-soft:     #55584f;
  --line:          #e3e3de;
  --accent:        #1f5f3f;
  --accent-soft:   #e8f2ec;
  --accent-text:   #ffffff;

  --wrap:      1160px;
  --wrap-narrow: 780px;
  --radius:    14px;
  --radius-sm: 8px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(0,0,0,.06);
  --ease: cubic-bezier(.22,.61,.36,1);
}

:root[data-theme="dark"] {
  --bg:          #0d0f0d;
  --bg-alt:      #141712;
  --surface:     #171a15;
  --text:        #eef0ea;
  --text-soft:   #a2a89b;
  --line:        #2a2e27;
  --accent:      #7fd6a3;
  --accent-soft: #17281f;
  --accent-text: #0d0f0d;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 34px rgba(0,0,0,.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #0d0f0d;
    --bg-alt:      #141712;
    --surface:     #171a15;
    --text:        #eef0ea;
    --text-soft:   #a2a89b;
    --line:        #2a2e27;
    --accent:      #7fd6a3;
    --accent-soft: #17281f;
    --accent-text: #0d0f0d;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 34px rgba(0,0,0,.5);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .25s var(--ease), color .25s var(--ease);
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: .1em .38em;
  border-radius: 5px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-text);
  padding: .7rem 1.1rem;
  z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }

/* --- Typography --------------------------------------------------------- */
h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 640;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -.015em; }
p  { text-wrap: pretty; }
p + p { margin-top: 1rem; }

/* Destaque de entidade: sobe o contraste em blocos de texto suave. */
strong { font-weight: 660; color: var(--text); }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .85rem;
}

/* --- Layout ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(64px, 9vw, 118px); }
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-sub { color: var(--text-soft); margin-top: 1rem; }

.grid-2 {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  font-weight: 680;
  letter-spacing: -.03em;
  text-decoration: none;
  font-size: 1.02rem;
  white-space: nowrap;
}
.brand-dot { color: var(--accent); }

.nav ul {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
  padding: 0;
}
.nav a {
  text-decoration: none;
  font-size: .93rem;
  color: var(--text-soft);
  position: relative;
  padding-block: 4px;
  transition: color .18s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .4rem; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.icon-btn:hover { background: var(--bg-alt); border-color: var(--text-soft); }

.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun  { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun  { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}

.nav-toggle { display: none; }
.bars, .bars::before, .bars::after {
  display: block;
  width: 16px; height: 1.7px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -5px; }
.bars::after  { top: 5px; }

.nav-open .bars { background: transparent; }
.nav-open .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-open .bars::after  { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem 24px 1.6rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .nav a { font-size: 1.05rem; padding-block: .6rem; display: block; }
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .82rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), opacity .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { opacity: .9; }

.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: var(--bg-alt); }

.btn-ext {
  font-size: .9em;
  line-height: 1;
  transition: transform .18s var(--ease);
}
.btn:hover .btn-ext { transform: translate(2px, -2px); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Hero --------------------------------------------------------------- */
.hero { padding-top: clamp(56px, 9vw, 104px); padding-bottom: 0; }

.hero-title {
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  margin-bottom: 1.3rem;
}

.hero-tagline {
  font-size: clamp(1.15rem, 2.6vw, 1.75rem);
  font-weight: 550;
  letter-spacing: -.02em;
  line-height: 1.3;
  max-width: 720px;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

.rotator {
  display: inline-grid;
  vertical-align: bottom;
}
.rotator-item {
  grid-area: 1 / 1;
  color: var(--accent);
  opacity: 0;
  transform: translateY(.35em);
  transition: opacity .38s var(--ease), transform .38s var(--ease);
}
.rotator-item.is-active { opacity: 1; transform: none; }

.hero-lead {
  max-width: 640px;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--text-soft);
}
.hero-lead strong { color: var(--text); font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.2rem;
}

/* Marquee */
.marquee {
  margin-top: clamp(56px, 8vw, 96px);
  border-block: 1px solid var(--line);
  padding-block: 1rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-size: .9rem;
  font-weight: 550;
  letter-spacing: .02em;
  color: var(--text-soft);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Portrait ----------------------------------------------------------- */
.portrait {
  margin: 2.2rem 0 0;
  max-width: 340px;
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  filter: saturate(.92);
}
.portrait figcaption {
  margin-top: .7rem;
  font-size: .82rem;
  color: var(--text-soft);
}
@media (max-width: 899px) {
  .portrait { max-width: 260px; }
}

/* --- Stats -------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.stat-num {
  display: block;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 660;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: .5rem;
  font-size: .84rem;
  color: var(--text-soft);
  line-height: 1.35;
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* --- Cards -------------------------------------------------------------- */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 780px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              border-color .22s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.card-num {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .1em;
}

/* Ilustração do card: SVG inline, herda a cor do tema via currentColor. */
.card-media {
  margin: -.6rem -.35rem 1.3rem;
  padding: 1.1rem 0;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--accent);
  display: flex;
  justify-content: center;
}
.card-art {
  display: block;
  width: 100%;
  height: auto;
  max-height: 108px;
}
.card:hover .card-media { background: color-mix(in srgb, var(--accent) 12%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .card-media { transition: background .22s var(--ease); }
}
.card h2,
.card h3 {
  font-size: 1.25rem;
  letter-spacing: -.015em;
  margin: .9rem 0 .75rem;
}
.card > p { color: var(--text-soft); font-size: .95rem; }

.card-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: grid;
  gap: .5rem;
  font-size: .89rem;
}
.card-price {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--text-soft);
}
.card-price strong {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: -.01em;
}

.card-list li { position: relative; padding-left: 1.15rem; color: var(--text-soft); }
.card-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* --- Feature (Método) --------------------------------------------------- */
.feature {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 940px) {
  .feature { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
}

.feature-card {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.feature-badge {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.feature-card-title {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  color: var(--text);
}
.feature-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  counter-reset: fs;
}
.feature-steps li {
  font-size: .82rem;
  font-weight: 550;
  padding: .3rem .75rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px;
  color: var(--accent);
}

.steps { margin: 2rem 0; display: grid; gap: 1.25rem; }
.steps dt {
  font-weight: 620;
  font-size: .95rem;
  letter-spacing: -.01em;
}
.steps dd {
  margin: .3rem 0 0;
  color: var(--text-soft);
  font-size: .93rem;
}

/* --- Accordion ---------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }

.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-weight: 550;
  font-size: 1.02rem;
  position: relative;
  transition: color .18s var(--ease);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--accent); }

.acc-item summary::after {
  content: "";
  position: absolute;
  right: .35rem;
  top: 50%;
  width: 11px; height: 11px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .24s var(--ease);
}
.acc-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.acc-item[open] summary { color: var(--accent); }

.acc-body {
  padding-bottom: 1.4rem;
  color: var(--text-soft);
  max-width: 62ch;
  font-size: .96rem;
  animation: accIn .28s var(--ease);
}
@keyframes accIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}

/* --- Contato ------------------------------------------------------------ */
.link-list {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--line);
}
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem .5rem 1.1rem 0;
  text-decoration: none;
  transition: padding-left .22s var(--ease), color .18s var(--ease);
}
.link-list a:hover { padding-left: .6rem; color: var(--accent); }
.ll-label {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.ll-value { font-weight: 500; }
.ll-arrow { transition: transform .22s var(--ease); }
.link-list a:hover .ll-arrow { transform: translateX(5px); }

@media (max-width: 560px) {
  .link-list a { grid-template-columns: 1fr auto; }
  .ll-label { grid-column: 1 / -1; margin-bottom: -.5rem; }
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  --line: #26292a;
  --text: #f2f3f0;
  --text-soft: #a0a49c;
  --accent: #7fd6a3;
  border-top: 1px solid #26292a;
  background: #0b0c0b;
  color: var(--text-soft);
  padding-block: clamp(2.6rem, 5vw, 4rem) 2rem;
  font-size: .88rem;
}
.site-footer .brand { color: var(--text); }
.footer-grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; }
}
.footer-brand .brand { font-size: 1.05rem; }
.footer-tagline {
  margin-top: .9rem;
  max-width: 34ch;
  line-height: 1.6;
}
.footer-credential {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  line-height: 1.55;
  font-style: normal; /* <address> vem em italico por padrao no navegador */
}
.footer-col h3 {
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer-col a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer-col a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.footer-bottom {
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .82rem;
}

/* --- Páginas internas --------------------------------------------------- */
.page-head {
  padding-top: clamp(56px, 8vw, 92px);
  padding-bottom: clamp(24px, 4vw, 40px);
}
.page-head h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-top: .6rem;
}
.page-head .section-sub { max-width: 62ch; }

.breadcrumb { font-size: .84rem; color: var(--text-soft); }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .45rem; opacity: .55; }
.breadcrumb a { text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.prose { max-width: 72ch; }
.prose h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin-top: 2.8rem;
  margin-bottom: .9rem;
}
.prose h3 { font-size: 1.05rem; margin-top: 1.8rem; margin-bottom: .6rem; }
.prose p, .prose li { color: var(--text-soft); }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.1rem; display: grid; gap: .5rem; }
.prose a { color: var(--accent); }
.prose > p:first-child { color: var(--text); font-size: 1.05rem; }
.prose-updated {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .84rem;
}

/* --- Contato ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: grid;
  gap: 1.15rem;
}
.field { display: grid; gap: .45rem; }
.field label {
  font-size: .86rem;
  font-weight: 600;
  color: var(--text);
}
.field label span { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .7rem .85rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-soft); opacity: .7; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.form-note {
  font-size: .82rem;
  line-height: 1.5;
  color: var(--text-soft);
  padding-left: .9rem;
  border-left: 2px solid var(--line);
}
.form-error { font-size: .85rem; color: #c2402f; }
:root[data-theme="dark"] .form-error { color: #ff8b78; }
.contact-form .btn { justify-self: start; }

.contact-side { display: grid; gap: 1.25rem; }
.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.side-card h2 {
  font-size: 1rem;
  letter-spacing: .01em;
  margin-bottom: 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
}
.side-card p { font-size: .92rem; color: var(--text-soft); }
.side-card p + p { margin-top: .8rem; }
.side-card a { color: var(--accent); }
.side-card .link-list li a { padding-block: .8rem; }

.promises {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px)  { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .promises { grid-template-columns: repeat(4, 1fr); } }
.promises li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.promises h3 {
  font-size: .98rem;
  margin-bottom: .6rem;
  color: var(--accent);
}
.promises p { font-size: .89rem; line-height: 1.55; color: var(--text-soft); }

/* --- Etapas do método --------------------------------------------------- */
.stage + .stage {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.stage-head {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}
.stage-letter {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}
.stage-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.stage-lead { margin-top: .5rem; color: var(--text-soft); max-width: 62ch; }
.stage-why {
  margin: 0 0 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--line);
  color: var(--text-soft);
  font-size: .94rem;
  max-width: 70ch;
}

.pillar-blocks {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .pillar-blocks { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.pillar h3 {
  font-size: 1rem;
  letter-spacing: .01em;
  margin-bottom: 1.1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
}
.pillar ul { list-style: none; padding: 0; display: grid; gap: .85rem; }
.pillar li {
  position: relative;
  padding-left: 1.15rem;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text-soft);
}
.pillar li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* --- Regiões ------------------------------------------------------------ */
.region-base {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.8rem 1.75rem;
  margin-bottom: 2.6rem;
}
.region-base h2 { margin-bottom: .7rem; }
.region-base p { color: var(--text-soft); max-width: 70ch; }

.regions {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
}
@media (min-width: 720px)  { .regions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .regions { grid-template-columns: repeat(3, 1fr); } }
.region {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.region h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.region .region-uf {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .08em;
  color: var(--accent);
}
.region p { margin-top: .7rem; font-size: .9rem; color: var(--text-soft); }

/* --- Botão flutuante do WhatsApp ---------------------------------------- */
.wa-float {
  /* Deslocamento vertical do botão. Fica em transform, não em bottom, porque
     mudar bottom depois do carregamento conta como layout shift (CLS). */
  --wa-lift: 0px;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 140;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
  transform: translateY(var(--wa-lift));
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-float svg { width: 39px; height: 39px; position: relative; z-index: 1; }

/* Anel que pulsa para fora do botão. */
.wa-float::before,
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: 0;
  animation: wa-pulse 2.4s cubic-bezier(.24, .8, .4, 1) infinite;
}
.wa-float::after { animation-delay: 1.2s; }

@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: .55; }
  70%  { transform: scale(1.85); opacity: 0; }
  100% { transform: scale(1.85); opacity: 0; }
}

.wa-float:hover {
  transform: translateY(calc(var(--wa-lift) - 3px)) scale(1.06);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .34);
}
.wa-float:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Sobe o botão enquanto o aviso de privacidade ocupa a base da tela. */
body:has(.privacy-notice.is-visible) .wa-float { --wa-lift: -84px; }

@media (max-width: 520px) {
  .wa-float { width: 64px; height: 64px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 35px; height: 35px; }
  body:has(.privacy-notice.is-visible) .wa-float { --wa-lift: -132px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: none; }
  .wa-float:hover { transform: translateY(var(--wa-lift)); }
  .wa-float::before,
  .wa-float::after { animation: none; opacity: 0; }
}

/* --- Aviso de privacidade ----------------------------------------------- */
.privacy-notice {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 150;
  width: min(680px, calc(100% - 32px));
  transform: translate(-50%, calc(100% + 32px));
  opacity: 0;
  visibility: hidden;
  transition: transform .4s var(--ease), opacity .4s var(--ease), visibility .4s;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.2rem;
  padding: 1rem 1.2rem;
  background: #101210;
  color: #a0a49c;
  border: 1px solid #2a2e29;
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
  font-size: .84rem;
  line-height: 1.5;
}
.privacy-notice.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}
.privacy-notice p { flex: 1 1 320px; margin: 0; }
.privacy-notice a {
  color: #7fd6a3;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.privacy-notice a:hover { border-bottom-color: #7fd6a3; }
.privacy-notice button {
  flex: 0 0 auto;
  background: #7fd6a3;
  color: #0d0f0d;
  border: 0;
  border-radius: var(--radius-sm);
  padding: .55rem 1.15rem;
  font-size: .84rem;
  font-weight: 620;
  cursor: pointer;
  transition: filter .18s var(--ease);
}
.privacy-notice button:hover { filter: brightness(1.08); }

@media (prefers-reduced-motion: reduce) {
  .privacy-notice { transition: opacity .2s, visibility .2s; transform: translate(-50%, 0); }
}

/* --- Reveal on scroll --------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

.side-card address {
  font-style: normal;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text-soft);
  padding-bottom: .9rem;
  margin-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}

/* --- Parceiros ---------------------------------------------------------- */
.partner-group + .partner-group {
  margin-top: clamp(2.8rem, 5vw, 4.2rem);
  padding-top: clamp(2.8rem, 5vw, 4.2rem);
  border-top: 1px solid var(--line);
}
.partner-group .section-head { margin-bottom: 2rem; }
.partner-group .card-num { text-transform: none; letter-spacing: .02em; }
.partner-group .card h3 { margin: .8rem 0 .7rem; }
.partner-group .card h3 a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.partner-group .card h3 a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.partner-group .card .btn-ext { font-size: .78em; opacity: .6; }

/* --- Blog --------------------------------------------------------------- */
.post-list { display: grid; gap: 1.25rem; }
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
}
.post-card time {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--accent);
  letter-spacing: .06em;
}
.post-card h2 { font-size: 1.3rem; margin: .6rem 0 .7rem; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.post-card p { font-size: .94rem; color: var(--text-soft); }

.post-empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
}
.post-empty p { color: var(--text-soft); }
.post-empty a { color: var(--accent); }

/* --- Post --------------------------------------------------------------- */
.post-meta {
  margin-top: 1rem;
  font-size: .86rem;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.post-meta time { font-family: var(--font-mono); }
.post-body { margin-top: 1rem; }
.post-body > p:first-child { font-size: 1.12rem; color: var(--text); }
.post-body h2 {
  margin-top: 3rem;
  padding-top: .4rem;
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
}
.post-body ul { margin-left: 0; padding-left: 0; list-style: none; display: grid; gap: .9rem; }
.post-body ul li { position: relative; padding-left: 1.3rem; }
.post-body ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.post-body em { color: var(--text); }

.post-cta {
  margin-top: 3.5rem;
  padding: 2rem 1.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.post-cta h2 { font-size: 1.25rem; margin-bottom: .7rem; }
.post-cta p { color: var(--text-soft); margin-bottom: 1.4rem; font-size: .95rem; }

.card-link { margin-top: .9rem; font-size: .89rem; }
.card-link a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .18s var(--ease);
}
.card-link a:hover { border-bottom-color: var(--accent); }

/* Segunda linha do rodapé: consultoria por cidade. */
.footer-cities {
  margin-top: clamp(2.2rem, 4vw, 3rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.footer-cities h3 {
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-cities ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.4rem;
  font-size: .85rem;
}
.footer-cities a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer-cities a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* --- Faixa "O que é SEO?" ------------------------------------------------ */
.band {
  background: var(--accent);
  color: #ffffff;
  border-block: 0;
}
:root[data-theme="dark"] .band { color: #08130d; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .band { color: #08130d; }
}
.band h2 {
  color: inherit;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 1.6rem;
}
/* A figura entra no meio do texto, então o espaçamento vale dos dois lados —
   o seletor `p + p` abaixo não alcança o parágrafo que vem depois dela. */
.band-figure {
  margin-block: 3.2rem;
  margin-inline: 0;
}
.band-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 670;
  border-radius: var(--radius);
}
.band-figure figcaption {
  margin-top: .8rem;
  font-size: .86rem;
  line-height: 1.5;
  color: inherit;
  opacity: .8;
}
.band-text p { color: inherit; opacity: .92; }
.band-text p + p { margin-top: 1.1rem; }
.band-text strong { color: inherit; font-weight: 700; }
.band-text em { font-style: italic; }
.band-cta { margin-top: 1.9rem; }
.band-cta a {
  color: inherit;
  font-weight: 620;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  opacity: 1;
}
.band-cta a:hover { opacity: .78; }
.band :focus-visible { outline-color: currentColor; }

.footer-tagline { max-width: 42ch; }
.footer-credential a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.footer-credential a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* --- Links dentro de texto corrido --------------------------------------
   Cor sozinha não distingue link para quem tem baixa visão ou daltonismo.
   Todo link em parágrafo, lista ou item de texto leva sublinhado.         */
.prose p a,
.prose li a,
.post-body a,
.privacy-notice p a,
.side-card p a,
.band-text p a,
.footer-credential a,
.stage-why a,
.pillar li a,
.region p a {
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: .07em;
}
.prose p a:hover,
.prose li a:hover,
.post-body a:hover,
.privacy-notice p a:hover,
.side-card p a:hover,
.band-text p a:hover,
.footer-credential a:hover,
.stage-why a:hover,
.pillar li a:hover,
.region p a:hover { text-decoration-thickness: .14em; }

/* O aviso já sublinha; a borda de hover ficaria dobrada. */
.privacy-notice a:hover { border-bottom-color: transparent; }

.region h3 a { text-decoration: none; }
.region h3 a:hover { color: var(--accent); }
.region-link { margin-top: .9rem; font-size: .86rem; }
.region-link a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: .07em;
}
.region-base .region-link { margin-top: 1.1rem; }

/* Card da praça-sede: destacado dentro da grade. */
.regions li:first-child {
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

/* --- Podcast "Café com SEO" ---------------------------------------------
   Painel escuro em qualquer tema: a capa tem fundo preto, então o contraste
   sai do laranja da marca do podcast, não do verde do site.               */
.podcast-panel {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  border-radius: var(--radius);
  background: #0b0c0b;
  color: #f2f4ef;
  box-shadow: var(--shadow);
}
@media (min-width: 780px) {
  .podcast-panel {
    grid-template-columns: 260px 1fr;
    align-items: center;
    justify-items: start;
    text-align: left;
  }
}

.podcast-art { margin: 0; width: min(260px, 62vw); }
.podcast-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(253, 113, 3, .28);
}

.podcast-text .eyebrow { color: #fd7103; }
.podcast-panel h2 {
  color: inherit;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}
.podcast-lead { margin-top: 1rem; color: #bcc2b6; }
.podcast-lead strong { color: #f2f4ef; }

.podcast-cta {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .9rem 1.2rem;
}
@media (min-width: 780px) { .podcast-cta { justify-content: flex-start; } }
.podcast-cta .btn-primary { background: #fd7103; color: #14100c; }
.podcast-note { font-size: .86rem; color: #8f958a; }
.podcast-panel :focus-visible { outline-color: #fd7103; }

/* O painel do podcast é escuro nos dois temas: o ghost precisa de borda e
   texto próprios, senão herda o contraste do tema claro e some no preto. */
.podcast-cta .btn-ghost {
  border-color: rgba(242, 244, 239, .3);
  color: #f2f4ef;
}
.podcast-cta .btn-ghost:hover {
  border-color: #fd7103;
  background: rgba(253, 113, 3, .12);
}
.podcast-note { margin-top: 1rem; }
