/*
Theme Name: Site Quiz — Rafaela Cancio
Theme URI: https://rafaelacancio.com
Author: Rafaela Cancio
Description: Tema personalizado para captação de clientes — landing page, quiz e portfólio.
Version: 1.0
*/

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

:root {
  --bg:        #0d0f14;
  --bg2:       #13151f;
  --bg3:       #1a1d27;
  --accent:    #7C6AF7;
  --accent2:   #a89cf7;
  --white:     #ffffff;
  --gray:      #aaaaaa;
  --gray2:     #666666;
  --border:    rgba(255,255,255,0.08);
  --radius:    10px;
  --radius-lg: 16px;
  --font:      'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
.site-nav {
  padding: 20px 0;
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13,15,20,0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--gray);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
.nav-cta:hover { background: #6a59e0; }

/* ── Hero ── */
.hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,106,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  background: rgba(124,106,247,0.15);
  color: var(--accent2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
}
.hero h1 em {
  color: var(--accent);
  font-style: normal;
}
.hero-desc {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}
.hero-cta:hover { background: #6a59e0; transform: translateY(-1px); }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 0.5px solid var(--border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--gray);
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* Hero mockup */
.hero-visual {
  position: relative;
}
.browser-mockup {
  background: var(--bg2);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.browser-bar {
  background: var(--bg3);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red   { background: #ff5f57; }
.dot-yellow{ background: #febc2e; }
.dot-green { background: #28c840; }
.browser-url {
  flex: 1;
  background: var(--bg);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--gray2);
  text-align: center;
}
.browser-content {
  padding: 24px;
}
.mock-headline {
  width: 70%;
  height: 14px;
  background: var(--accent);
  border-radius: 4px;
  margin-bottom: 10px;
  opacity: 0.8;
}
.mock-line {
  height: 8px;
  background: var(--bg3);
  border-radius: 4px;
  margin-bottom: 8px;
}
.mock-line.short { width: 55%; }
.mock-btn {
  display: inline-block;
  background: var(--accent);
  width: 100px;
  height: 30px;
  border-radius: 6px;
  margin-top: 14px;
}
.mock-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}
.mock-card {
  background: var(--bg3);
  border-radius: 6px;
  padding: 10px;
  height: 60px;
}

/* ── Section titles ── */
.section-tag {
  display: inline-block;
  background: rgba(124,106,247,0.12);
  color: var(--accent2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-title em { color: var(--accent); font-style: normal; }
.section-sub {
  font-size: 16px;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.7;
}

/* ── How it works ── */
.how {
  padding: 80px 0;
  border-top: 0.5px solid var(--border);
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  align-items: start;
}
.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
  height: 100%;
}
.how-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 24px;
  position: relative;
}
.how-icon {
  width: 64px; height: 64px;
  background: rgba(124,106,247,0.12);
  border: 1px solid rgba(124,106,247,0.3);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.how-step:hover .how-icon {
  background: rgba(124,106,247,0.22);
  border-color: rgba(124,106,247,0.6);
  transform: translateY(-3px);
}
.how-icon-final {
  background: rgba(124,106,247,0.2);
  border-color: rgba(124,106,247,0.5);
}
.how-connector {
  position: absolute;
  top: 32px;
  left: calc(50% + 32px);
  width: calc(100% - 32px);
  height: 1px;
  background: linear-gradient(90deg, rgba(124,106,247,0.5), rgba(124,106,247,0.1));
}
.how-card {
  background: var(--bg2);
  border: 0.5px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  width: 100%;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
.how-step:hover .how-card {
  border-color: rgba(124,106,247,0.25);
  transform: translateY(-2px);
}
.how-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(124,106,247,0.15);
  border: 1px solid rgba(124,106,247,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin: 0 auto 14px;
}
.how-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.how-card p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  border-top: 0.5px solid rgba(255,255,255,0.06);
  padding-top: 10px;
  margin-top: auto;
  width: 100%;
}
@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr 1fr; gap: 20px; }
  .how-connector { display: none; }
  .how-step { padding: 0; }
}
@media (max-width: 540px) {
  .how-steps { grid-template-columns: 1fr; }
}
/* ── Portfolio ── */
.portfolio {
  padding: 80px 0;
  border-top: 0.5px solid var(--border);
}
.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.portfolio-card {
  background: var(--bg2);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.portfolio-card:hover {
  border-color: rgba(124,106,247,0.4);
  transform: translateY(-3px);
}
.portfolio-img {
  width: 100%;
  height: 200px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--gray2);
  position: relative;
  overflow: hidden;
}
.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-info {
  padding: 20px;
}
.portfolio-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent2);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.portfolio-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.portfolio-info p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 14px;
}
.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent2);
  font-weight: 500;
  transition: gap 0.2s;
}
.portfolio-link:hover { gap: 10px; }

/* ── Quiz section ── */
.quiz-section {
  padding: 80px 0;
  border-top: 0.5px solid var(--border);
}
.quiz-wrap {
  max-width: 640px;
  margin: 48px auto 0;
  background: var(--bg2);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.quiz-progress {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-bottom: 36px;
}
.quiz-progress-fill {
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.quiz-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent2);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.quiz-question {
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
}
.quiz-hint {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 28px;
}
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
.quiz-options.cols-1 { grid-template-columns: 1fr; }
.quiz-opt {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 14px;
  transition: all 0.2s;
  text-align: left;
}
.quiz-opt:hover {
  border-color: var(--accent);
  background: rgba(124,106,247,0.08);
}
.quiz-opt.active {
  border-color: var(--accent);
  background: rgba(124,106,247,0.15);
}
.quiz-opt-icon {
  width: 32px; height: 32px;
  background: rgba(124,106,247,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.quiz-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-back {
  background: transparent;
  border: 0.5px solid rgba(255,255,255,0.15);
  color: var(--gray);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  transition: all 0.2s;
}
.btn-back:hover { color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-next {
  background: var(--accent);
  border: none;
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.btn-next:hover { background: #6a59e0; }
.btn-next:disabled { opacity: 0.35; cursor: not-allowed; }

/* Contact form */
.contact-form { display: none; }
.contact-form h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.contact-form .sub {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 24px;
}
.summary-box {
  background: rgba(124,106,247,0.08);
  border: 0.5px solid rgba(124,106,247,0.25);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.summary-box p {
  font-size: 13px;
  color: var(--accent2);
  margin-bottom: 3px;
}
.summary-box p:last-child { margin-bottom: 0; }
.summary-box span { color: var(--white); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group textarea { height: 80px; resize: none; }
.btn-send {
  width: 100%;
  background: var(--accent);
  border: none;
  color: var(--white);
  padding: 15px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}
.btn-send:hover { background: #6a59e0; }

/* Thanks */
.thanks-screen {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.thanks-icon {
  width: 64px; height: 64px;
  background: rgba(124,106,247,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.thanks-screen h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.thanks-screen p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto 28px;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-whatsapp:hover { background: #1ebe5a; }

/* ── Footer ── */
.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 13px;
  color: var(--gray2);
}
.footer-copy a { color: var(--accent2); }
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 13px;
  color: var(--gray2);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .how-grid { grid-template-columns: 1fr; }
  .quiz-options { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .portfolio-header { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; text-align: center; }
  .quiz-wrap { padding: 24px; }
}

/* ── Pain section ── */
.pain {
  padding: 64px 0;
  border-top: 0.5px solid var(--border);
}
.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}
.pain-card {
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  border: 0.5px solid var(--border);
}
.pain-bad  { background: rgba(226,75,74,0.05);  border-color: rgba(226,75,74,0.15); }
.pain-good { background: rgba(124,106,247,0.06); border-color: rgba(124,106,247,0.2); }
.pain-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pain-bad  .pain-label { color: #f09595; }
.pain-good .pain-label { color: var(--accent2); }
.pain-bad  .pain-label::before { content: '✕'; font-size: 12px; }
.pain-good .pain-label::before { content: '✓'; font-size: 12px; }
.pain-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pain-list li {
  font-size: 14px;
  color: var(--gray);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.pain-bad  .pain-list li::before { content: '—'; position: absolute; left: 0; color: rgba(226,75,74,0.5); }
.pain-good .pain-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

/* 5-col quiz options */
.quiz-options.cols-5 { grid-template-columns: 1fr; }

@media (max-width: 768px) {
  .pain-grid { grid-template-columns: 1fr; }
}
