/* ═══════════════════════════════════════════════════════════
   Silveira de Castro — Landing Pages
   Herda o conceito "Vinho Editorial" do site institucional
   ═══════════════════════════════════════════════════════════ */

:root {
  --wine:        #74264D;
  --wine-deep:   #4A1732;
  --wine-ink:    #2E0E1F;
  --cream:       #F7F2EC;
  --cream-dim:   #E8DFD5;
  --graphite:    #2B2730;
  --silver:      #A9A2A8;
  --line-dark:   rgba(247, 242, 236, 0.16);
  --line-light:  rgba(43, 39, 48, 0.14);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 6rem);
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--graphite);
  background: var(--wine-ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--wine); color: var(--cream); }

.overline,
.section-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* ─────────────── Header enxuto ─────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
  background: rgba(46, 14, 31, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.header-inner {
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--cream);
}
.brand-mark { width: 2rem; height: auto; color: var(--silver); flex-shrink: 0; }
.brand-mark .shield { color: var(--cream); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 0.55rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--silver);
}
.header-cta {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  border: 1px solid var(--line-dark);
  padding: 0.55rem 1.1rem;
  transition: background 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
.header-cta:hover { background: var(--wine); border-color: var(--wine); }

/* ─────────────── Hero ─────────────── */
.hero {
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--wine-ink);
  color: var(--cream);
  padding: calc(var(--header-h) + 3rem) var(--gutter) 4rem;
  position: relative;
}
.hero-bg {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(58vw, 52rem);
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  filter: grayscale(0.5) sepia(0.16) saturate(1.15) contrast(1.02) brightness(0.9);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(116, 38, 77, 0.55), rgba(46, 14, 31, 0.65));
  mix-blend-mode: multiply;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--wine-ink) 4%, rgba(46, 14, 31, 0.72) 38%, rgba(46, 14, 31, 0.14) 74%, rgba(46, 14, 31, 0.3) 100%),
    linear-gradient(0deg, rgba(46, 14, 31, 0.78) 0%, transparent 34%),
    linear-gradient(180deg, rgba(46, 14, 31, 0.55) 0%, transparent 28%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 84rem;
}
.hero-copy { max-width: 46rem; }

.lp-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
  border-left: 2px solid var(--wine);
  padding-left: 0.9rem;
  margin-bottom: 1.8rem;
  max-width: 38rem;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 1.6rem;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--cream-dim);
}
.hero-lede {
  max-width: 36rem;
  font-size: 1rem;
  color: var(--cream-dim);
  margin-bottom: 2.4rem;
}
.hero-rule {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: var(--line-dark);
}

/* ─────────────── Botões ─────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.9rem;
  border: 1px solid var(--cream);
  color: var(--cream);
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.btn .ico { width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
.btn-light:hover { background: var(--cream); color: var(--wine-ink); }
.btn-solid {
  background: var(--wine);
  border-color: var(--wine);
}
.btn-solid:hover { background: var(--wine-deep); border-color: var(--wine-deep); }
.btn-dark {
  border-color: var(--wine);
  color: var(--wine-deep);
}
.btn-dark:hover { background: var(--wine); color: var(--cream); }

/* ─────────────── Seções ─────────────── */
.section {
  padding: clamp(4rem, 9vh, 7rem) var(--gutter);
  position: relative;
  overflow: hidden;
}
.section-light { background: var(--cream); color: var(--graphite); }
.section-dark  { background: var(--wine-ink); color: var(--cream); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 1.1rem;
  margin-bottom: clamp(2.2rem, 5vh, 4rem);
}
.section-dark .section-head { border-color: var(--line-dark); }
.section-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--wine);
}
.section-dark .section-num { color: var(--silver); }
.section-label { color: inherit; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  font-weight: 500;
  line-height: 1.22;
  max-width: 26ch;
  margin-bottom: 1.4rem;
}
.section-intro {
  max-width: 58ch;
  font-size: 1.02rem;
  margin-bottom: clamp(2rem, 5vh, 3rem);
}
.section-dark .section-intro { color: var(--cream-dim); }

.watermark {
  position: absolute;
  right: -4rem;
  bottom: -6rem;
  width: clamp(24rem, 45vw, 44rem);
  color: var(--cream);
  opacity: 0.08;
  pointer-events: none;
}

/* ─────────────── Lista de dores ─────────────── */
/* Duas colunas: título + intro à esquerda, lista à direita.
   Sem isso a seção ocupava só metade da tela em monitor largo. */
.pain-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.pain-split .section-title { max-width: 20ch; }
.pain-split .section-intro { max-width: 44ch; margin-bottom: 0; }

.pain-list {
  list-style: none;
  max-width: 46rem;
}
.pain-split .pain-list { max-width: none; }
.pain-list li {
  display: flex;
  gap: 1.2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.98rem;
  color: var(--cream-dim);
}
.pain-list li:first-child { border-top: 1px solid var(--line-dark); }
.pain-list .pain-mark {
  font-family: var(--serif);
  font-style: italic;
  color: var(--silver);
  flex-shrink: 0;
  min-width: 1.6rem;
}
.section-light .pain-list li {
  border-color: var(--line-light);
  color: rgba(43, 39, 48, 0.85);
}
.section-light .pain-list li:first-child { border-top-color: var(--line-light); }
.section-light .pain-list .pain-mark { color: var(--wine); }

/* ─────────────── Pilares da solução ─────────────── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  position: relative;
}
.section-dark .pillar-grid {
  background: var(--line-dark);
  border-color: var(--line-dark);
}
.pillar {
  background: var(--cream);
  color: var(--graphite); /* cor explícita: dentro de seção escura herdaria creme (invisível) */
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.pillar h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.8rem;
  color: var(--wine-deep);
}
.pillar p { font-size: 0.93rem; }

/* ─────────────── Faixa de CTA ─────────────── */
.cta-band {
  background:
    radial-gradient(100% 80% at 15% 100%, rgba(116, 38, 77, 0.45), transparent 60%),
    var(--wine-ink);
  color: var(--cream);
  text-align: center;
  padding: clamp(4rem, 9vh, 6.5rem) var(--gutter);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.18;
  max-width: 26ch;
  margin: 0 auto 1.2rem;
}
.cta-band p {
  max-width: 52ch;
  margin: 0 auto 2.2rem;
  color: var(--cream-dim);
  font-size: 1rem;
}

/* ─────────────── Garantias ─────────────── */
.assure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.8rem, 4vw, 3.5rem);
}
.assure {
  border-top: 1px solid var(--wine);
  padding-top: 1.4rem;
}
.assure h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  color: var(--wine-deep);
}
.assure p { font-size: 0.95rem; max-width: 40ch; }

/* ─────────────── Passo a passo ─────────────── */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.8rem, 4vw, 3.5rem);
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 3.4rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--silver);
  opacity: 0.85;
}
.steps li::after {
  content: "";
  position: absolute;
  top: 3rem; left: 0;
  width: 2.4rem; height: 1px;
  background: var(--wine);
}
.steps h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.steps p { font-size: 0.95rem; color: var(--cream-dim); max-width: 38ch; }

/* ─────────────── FAQ (acordeão) ─────────────── */
.faq-index { list-style: none; max-width: 52rem; }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item:first-child { border-top: 1px solid var(--line-light); }
.faq-summary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  background: none;
  border: 0;
  color: var(--graphite);
  cursor: pointer;
  text-align: left;
  transition: color 0.3s ease;
}
.faq-summary > span:first-child {
  flex: 1;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.35;
}
.faq-summary:hover { color: var(--wine); }
.practice-plus {
  position: relative;
  width: 1rem; height: 1rem;
  align-self: center;
  flex-shrink: 0;
}
.practice-plus::before,
.practice-plus::after {
  content: "";
  position: absolute;
  background: var(--wine);
  transition: transform 0.35s ease;
}
.practice-plus::before { inset: 50% 0 auto 0; height: 1px; }
.practice-plus::after  { inset: 0 auto 0 50%; width: 1px; }
.faq-item.open .practice-plus::after { transform: rotate(90deg); }
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-body p {
  max-width: 66ch;
  padding: 0 2rem 1.4rem 0;
  color: rgba(43, 39, 48, 0.8);
  font-size: 0.95rem;
}

/* ─────────────── Diagnóstico (quiz) ─────────────── */
.quiz-shell {
  max-width: 46rem;
  margin: 0 auto;
  border: 1px solid var(--line-dark);
  background: rgba(46, 14, 31, 0.55);
  backdrop-filter: blur(6px);
  padding: clamp(1.6rem, 4vw, 2.8rem);
}
.quiz-progress {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.2rem;
}
.quiz-bar {
  height: 2px;
  background: var(--line-dark);
  margin-bottom: 2rem;
  position: relative;
}
.quiz-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--wine);
  transition: width 0.4s ease;
}
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-question {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.quiz-note {
  font-size: 0.85rem;
  color: var(--silver);
  margin-bottom: 1.6rem;
}
.quiz-options { display: flex; flex-direction: column; gap: 0.7rem; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--cream-dim);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.95rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.quiz-option::before {
  content: "";
  width: 0.85rem; height: 0.85rem;
  border: 1px solid var(--silver);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.quiz-option:hover { border-color: var(--wine); color: var(--cream); }
.quiz-option.selected {
  border-color: var(--wine);
  background: rgba(116, 38, 77, 0.25);
  color: var(--cream);
}
.quiz-option.selected::before {
  background: var(--wine);
  border-color: var(--cream);
  box-shadow: inset 0 0 0 2px var(--wine-ink);
}
.quiz-back {
  background: none;
  border: 0;
  color: var(--silver);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 1.6rem;
  padding: 0.4rem 0;
}
.quiz-back:hover { color: var(--cream); }

.quiz-done-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.9rem;
}
.quiz-done-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.quiz-done-text {
  font-size: 0.92rem;
  color: var(--cream-dim);
  margin-bottom: 1.8rem;
  max-width: 46ch;
}

/* ─────────────── Formulário (captura / contato) ─────────────── */
.lead-form { display: flex; flex-direction: column; gap: 1.3rem; }
.lead-form label { display: flex; flex-direction: column; gap: 0.45rem; }
.lead-form label span {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--silver);
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  padding: 0.55rem 0;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  resize: vertical;
  transition: border-color 0.3s ease;
}
.lead-form select { cursor: pointer; }
.lead-form select option { background: var(--wine-ink); color: var(--cream); }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--cream);
}
.lead-form ::placeholder { color: rgba(247, 242, 236, 0.35); }
.lead-form .btn { justify-content: center; margin-top: 0.4rem; }
.form-note {
  font-size: 0.75rem;
  color: var(--silver);
  text-align: center;
}

/* contato final em duas colunas (form + canais) */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.contact-copy h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1.4rem;
}
.contact-copy h2 em { font-style: italic; color: var(--cream-dim); }
.contact-copy > p { max-width: 44ch; color: var(--cream-dim); }
.contact-form-panel {
  border: 1px solid var(--line-dark);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}

/* ─────────────── Rodapé ─────────────── */
.site-footer {
  background: var(--wine-ink);
  color: var(--cream);
  border-top: 1px solid var(--line-dark);
  padding: 3rem var(--gutter);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-brand .brand-name { font-size: 1.05rem; }
.footer-meta { font-size: 0.8rem; color: var(--silver); text-align: right; }
.footer-legal {
  width: 100%;
  font-size: 0.72rem;
  color: var(--silver);
  border-top: 1px solid var(--line-dark);
  padding-top: 1.4rem;
  margin-top: 1rem;
  max-width: 100ch;
}

/* ─────────────── WhatsApp flutuante ─────────────── */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.8rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 60;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--wine);
  color: var(--cream);
  box-shadow: 0 6px 22px rgba(46, 14, 31, 0.45);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--wine);
  animation: wa-pulse 2.6s ease-out infinite;
}
.wa-float svg { width: 1.7rem; height: 1.7rem; }
.wa-float:hover {
  transform: translateY(-2px);
  background: var(--wine-deep);
  box-shadow: 0 10px 28px rgba(46, 14, 31, 0.55);
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; }
}

/* ─────────────── Reveal on scroll ─────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.18s; }
.reveal.d3 { transition-delay: 0.28s; }
.reveal.d4 { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─────────────── Responsivo ─────────────── */
@media (max-width: 60rem) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }

  /* seção da dor volta a empilhar: intro acima, lista abaixo */
  .pain-split { grid-template-columns: 1fr; gap: 0; }
  .pain-split .section-title { max-width: 26ch; }
  .pain-split .section-intro {
    max-width: 58ch;
    margin-bottom: clamp(2rem, 5vh, 3rem);
  }

  /* hero mobile: foto vira banner no topo, texto abaixo em vinho sólido */
  .hero {
    justify-content: flex-start;
    padding-top: calc(30vh + 3rem);
    padding-bottom: 3.5rem;
    min-height: 0;
  }
  .hero-bg {
    width: 100%;
    height: 30vh;
    bottom: auto;
  }
  .hero-bg img { object-position: 50% 14%; }
  .hero-bg::before { display: none; }
  .hero-bg::after {
    background: linear-gradient(180deg,
      rgba(46, 14, 31, 0.55) 0%,
      rgba(46, 14, 31, 0.10) 20%,
      rgba(46, 14, 31, 0.10) 52%,
      rgba(46, 14, 31, 0.9) 80%,
      var(--wine-ink) 96%);
  }
  .hero-title { font-size: clamp(1.8rem, 7.4vw, 2.7rem); }
  .brand-sub { display: none; }
  .header-cta { font-size: 0.68rem; padding: 0.5rem 0.8rem; }
}
