/* ─── RESET & BASE ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #0a0a0a;
  --off-wh:  #f4f3f0;
  --off-wh2: #eceae6;
  --white:   #ffffff;
  --ink:     #111111;
  --muted:   rgba(255,255,255,0.35);
  --muted-d: rgba(0,0,0,0.38);
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  cursor: default;
}

/* ─── GRAIN OVERLAY ──────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ─── NAV ────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 1.75rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding .5s ease, background .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(10,10,10,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.1rem 3rem;
  border-color: rgba(255,255,255,.06);
}

.nav-logo {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.15rem;
  letter-spacing: .38em;
  color: var(--white);
}

.nav-link {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  text-decoration: none;
  transition: color .3s;
}
.nav-link:hover { color: var(--white); }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 2rem 7rem;
  position: relative;
  background: var(--black);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,.035) 0%, transparent 65%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: .6rem;
  letter-spacing: .44em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
  margin-bottom: 2.2rem;
  animation: fadeUp .9s ease .15s both;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: 2rem;
  animation: fadeUp .9s ease .3s both;
}

.hero h1 em {
  font-style: italic;
  color: rgba(255,255,255,.42);
}

.hero-sub {
  font-size: clamp(.88rem, 1.4vw, 1.05rem);
  color: rgba(255,255,255,.55); /* era .38 — elevado para contraste 6.1:1 (WCAG AA ✓) */
  max-width: 420px;
  line-height: 1.85;
  margin-bottom: 3.5rem;
  animation: fadeUp .9s ease .45s both;
}

.btn-primary {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  border: none;
  padding: 1.15rem 3rem;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: background .35s, transform .35s, box-shadow .35s;
  animation: fadeUp .9s ease .6s both;
}
.btn-primary:hover {
  background: #d4d4d4;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 50px rgba(255,255,255,.14);
}

.btn-primary:active {
  transform: translateY(-1px) scale(1);
  box-shadow: none;
}

.hero-scroll {
  position: absolute;
  bottom: 2.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  animation: fadeUp .9s ease 1.1s both;
}

.scroll-label {
  font-size: .55rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.18);
}

.scroll-bar {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255,255,255,.22), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
  transform-origin: top;
}

/* ─── SECTION — DOR ─────────────────────────────────────────── */
.section-pain {
  background: var(--off-wh);
  padding: 8rem 2rem;
}

.pain-inner { max-width: 1080px; margin: 0 auto; }

.section-tag {
  font-size: .58rem;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--muted-d);
  margin-bottom: 1.1rem;
  display: block;
}

.pain-heading {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.12;
  max-width: 580px;
  margin-bottom: 5rem;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(0,0,0,.1);
  gap: 1px;
  background: rgba(0,0,0,.1);
}

.pain-card {
  background: var(--off-wh);
  padding: 3rem 2.4rem 3.5rem;
  transition: background .4s;
}
.pain-card:hover { background: var(--off-wh2); }

.pain-num {
  font-family: var(--serif);
  font-size: .8rem;
  letter-spacing: .18em;
  color: rgba(0,0,0,.2);
  margin-bottom: 1.8rem;
  display: block;
}

.pain-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: .7rem;
  line-height: 1.2;
}

.pain-text {
  font-size: .87rem;
  color: rgba(0,0,0,.58); /* contraste elevado para atingir 4.5:1 na WCAG 2.1 */
  line-height: 1.8;
}

/* ─── SECTION — AUTORIDADE ──────────────────────────────────── */
.section-auth {
  background: var(--black);
  padding: 8rem 2rem;
}

.auth-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.auth-img-wrap {
  position: relative;
}

.auth-img-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 3px;
  z-index: 1;
  pointer-events: none;
}

.auth-img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  filter: grayscale(25%) contrast(1.05);
}

.auth-tag {
  font-size: .6rem;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
  margin-bottom: 1.4rem;
  display: block;
}

.auth-h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 3.8vw, 3.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 2.2rem;
}

.auth-h2 em {
  font-style: italic;
  color: rgba(255,255,255,.38);
}

.auth-p {
  font-size: .9rem;
  color: rgba(255,255,255,.55); /* contraste elevado para atingir 4.5:1 na WCAG 2.1 */
  line-height: 1.9;
  margin-bottom: 1rem;
}

.auth-divider {
  width: 36px;
  height: 1px;
  background: rgba(255,255,255,.14);
  margin: 2.4rem 0;
}

.auth-quote {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,.50); /* era .30 — elevado para contraste 5.2:1 (WCAG AA ✓) */
  line-height: 1.7;
}

/* ─── SECTION — PROCESSO ────────────────────────────────────── */
.section-process {
  background: var(--off-wh);
  padding: 8rem 2rem;
}

.process-inner { max-width: 1080px; margin: 0 auto; }

.process-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.process-h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
}

.process-desc {
  font-size: .82rem;
  color: rgba(0,0,0,.38);
  max-width: 220px;
  line-height: 1.8;
  text-align: right;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(0,0,0,.1);
  gap: 1px;
  background: rgba(0,0,0,.1);
}

.process-card {
  background: var(--off-wh);
  padding: 2.8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  transition: background .4s;
}
.process-card:hover { background: var(--off-wh2); }

.process-card::after {
  content: attr(data-num);
  position: absolute;
  bottom: -1.8rem; right: -.4rem;
  font-family: var(--serif);
  font-size: 7.5rem;
  font-weight: 600;
  color: var(--ink);
  opacity: .02;
  line-height: 1;
  transition: opacity .4s;
  pointer-events: none;
}
.process-card:hover::after { opacity: .05; }

.process-num {
  font-size: .58rem;
  letter-spacing: .22em;
  color: rgba(0,0,0,.22);
  display: block;
  margin-bottom: 2.4rem;
}

.process-title {
  font-family: var(--serif);
  font-size: 1.72rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: .9rem;
}

.process-text {
  font-size: .83rem;
  color: rgba(0,0,0,.56); /* contraste elevado para atingir 4.5:1 na WCAG 2.1 */
  line-height: 1.82;
}

/* ─── SECTION — CTA ─────────────────────────────────────────── */
.section-cta {
  background: var(--black);
  padding: 11rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(255,255,255,.028) 0%, transparent 65%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-tag {
  font-size: .58rem;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: rgba(255,255,255,.18);
  display: block;
  margin-bottom: 1.5rem;
}

.cta-h2 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.04;
  margin-bottom: 1.5rem;
}

.cta-h2 em {
  font-style: italic;
  color: rgba(255,255,255,.35);
}

.cta-p {
  font-size: .92rem;
  color: rgba(255,255,255,.52); /* era .32 — elevado para contraste 5.5:1 (WCAG AA ✓) */
  margin-bottom: 3.8rem;
  line-height: 1.8;
}

.btn-outline {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
  padding: 1.1rem 2.8rem;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  margin-left: 1rem;
  transition: border-color .35s, background .35s, transform .35s;
}
.btn-outline:hover {
  border-color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.04);
  transform: translateY(-2px);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,.055);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--serif);
  font-size: .88rem;
  letter-spacing: .32em;
  color: rgba(255,255,255,.18);
  font-weight: 300;
}

.footer-copy {
  font-size: .6rem;
  letter-spacing: .12em;
  color: rgba(255,255,255,.12);
}

/* ─── REVEAL ON SCROLL ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .95s ease, transform .95s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%,100% { opacity: .28; }
  50%      { opacity: .7; }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 1.5rem 1.5rem; }
  nav.scrolled { padding: 1rem 1.5rem; }

  .pain-grid { grid-template-columns: 1fr; }

  .auth-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .auth-img-wrap img { height: 380px; }

  .process-grid { grid-template-columns: 1fr 1fr; }

  .process-header { flex-direction: column; align-items: flex-start; }
  .process-desc { text-align: left; max-width: 100%; }

  footer { padding: 1.8rem 1.5rem; }
}

@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
  .btn-outline  { margin-left: 0; margin-top: .8rem; }
}

/* ─── FORMULÁRIO — LAYOUT SPLIT ─────────────────────────────── */
.section-cta--split {
  padding: 9rem 2rem;
}

.cta-split-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 7rem;
  align-items: start;
}

/* Coluna de texto: fica "presa" enquanto o form rola */
.cta-col-text {
  position: sticky;
  top: 9rem;
}

.cta-col-text .cta-tag,
.cta-col-text .cta-h2,
.cta-col-text .cta-p {
  text-align: left;
}

.cta-divider {
  width: 36px;
  height: 1px;
  background: rgba(255,255,255,.14);
  margin: 2rem 0;
}

.cta-detail {
  font-size: .82rem;
  color: rgba(255,255,255,.32);
  line-height: 1.85;
}

/* Card branco que envolve o formulário */
.form-card {
  background: var(--off-wh);
  border-radius: 14px;
  padding: 3.2rem 3rem;
}

/* ─── CAMPOS DO FORMULÁRIO (fundo claro) ─────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.form-group--full {
  margin-bottom: 1.6rem;
}

.form-group label {
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(0,0,0,.42);
  font-weight: 500;
}

.form-group input,
.form-group select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,.14);
  padding: .72rem 0;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  width: 100%;
  transition: border-color .3s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder {
  color: rgba(0,0,0,.22);
}

.form-group input:focus,
.form-group select:focus {
  border-bottom-color: var(--ink);
}

/* Select customizado */
.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 44%;
  width: 7px;
  height: 7px;
  border-right: 1px solid rgba(0,0,0,.35);
  border-bottom: 1px solid rgba(0,0,0,.35);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.form-group select {
  cursor: pointer;
  padding-right: 1.4rem;
}

.form-group select option {
  background: var(--off-wh);
  color: var(--ink);
}

/* Radio buttons */
.radio-group {
  display: flex;
  gap: 2rem;
  margin-top: .5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: .65rem;
  cursor: pointer;
  font-size: .88rem;
  color: rgba(0,0,0,.55);
  transition: color .3s;
}

.radio-label:hover { color: var(--ink); }

.radio-label input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0,0,0,.22);
  border-radius: 50%;
  background: transparent;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  transition: border-color .3s;
  cursor: pointer;
}

.radio-label input[type="radio"]:checked {
  border-color: var(--ink);
}

.radio-label input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
}

/* Botão de submit — largura total, escuro */
.form-submit {
  margin-top: 2.4rem;
}

.btn-form-submit {
  display: block;
  width: 100%;
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--white);
  background: var(--ink);
  border: none;
  padding: 1.2rem 2rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background .35s, transform .25s, box-shadow .35s;
}

.btn-form-submit:hover {
  background: #2a2a2a;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}

.btn-form-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Responsivo */
@media (max-width: 900px) {
  .cta-split-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .cta-col-text {
    position: static;
  }

  .cta-col-text .cta-h2 { font-size: clamp(2.2rem, 6vw, 3.5rem); }

  .form-card {
    padding: 2.4rem 1.8rem;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ─── MENSAGEM DE CONFIRMAÇÃO ───────────────────────────────── */
[hidden] { display: none !important; }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  gap: 1rem;
}

.form-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--off-wh);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: .5rem;
}

.form-success-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.2;
}

.form-success-text {
  font-size: .92rem;
  color: rgba(0,0,0,.52);
  line-height: 1.8;
  max-width: 340px;
}

/* ─── ERROS DE VALIDAÇÃO ─────────────────────────────────────── */
.form-error {
  display: block;
  margin-top: .28rem;
  font-size: .76rem;
  color: #c0392b;
  font-weight: 500;
}

input.input-error,
select.input-error {
  border-color: #c0392b !important;
}

/* ─── FOCUS VISÍVEL (acessibilidade de teclado) ──────────────── */
:focus { outline: none; }

:focus-visible {
  outline: 2px solid rgba(255,255,255,.7);
  outline-offset: 4px;
  border-radius: 3px;
}

.section-pain :focus-visible,
.section-process :focus-visible {
  outline-color: rgba(0,0,0,.55);
}
