/* ============================================
   josuepires.com.br — Stylesheet
   Estrutura: reset → variáveis → tipografia base
              → componentes → seções → utilitários
   ============================================ */

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

/* ===== CSS VARIABLES (paleta e design tokens) ===== */
:root {
  /* Cores de fundo */
  --bg: #0A0A0A;
  --bg-2: #141414;
  --bg-3: #1C1C1C;

  /* Cores de texto */
  --fg: #F5F4F0;
  --fg-2: #A8A39C;
  --fg-3: #6E6A65;

  /* Bordas */
  --border: #2A2A2A;
  --border-2: #3A3A3A;

  /* Cores de destaque */
  --accent: #E0A04A;
  --accent-2: #F5B560;
  --accent-dim: #3A2D15;

  /* Cores funcionais */
  --green: #5DBE8A;
  --whatsapp: #25D366;

  /* Layout */
  --container-max: 1140px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
}

/* ===== TIPOGRAFIA BASE ===== */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

/* ===== LAYOUT BASE ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  text-decoration: none;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--accent-2);
}

@media (max-width: 680px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ===== HERO ===== */
.hero {
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(224, 160, 74, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--accent-dim);
  border-radius: 99px;
  background: rgba(224, 160, 74, 0.05);
  margin-bottom: 1.5rem;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(224, 160, 74, 0.2);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 880px;
  margin-bottom: 1.5rem;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--fg-2);
  max-width: 620px;
  margin-bottom: 2.5rem;
  line-height: 1.55;
}

.hero-meta {
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--fg-3);
}

.hero-meta strong {
  color: var(--fg-2);
  font-weight: 600;
}

/* ===== BOTÕES ===== */
.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-2);
}

.btn-secondary:hover {
  border-color: var(--fg-2);
  background: var(--bg-2);
}

.btn-arrow {
  transition: transform 0.2s;
}

.btn:hover .btn-arrow {
  transform: translateX(2px);
}

/* ===== SECTION HEADERS ===== */
.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.section-h {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: 780px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--fg-2);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ===== PROBLEM SECTION ===== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.problem-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
}

.problem-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.problem-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.problem-card p {
  color: var(--fg-2);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ===== SERVICES SECTION ===== */
.services {
  background: var(--bg-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.service:hover {
  border-color: var(--border-2);
}

.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.service h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.service-promise {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.service-list {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.service-list li {
  color: var(--fg-2);
  font-size: 0.92rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.55;
}

.service-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.service-list li:last-child {
  border-bottom: none;
}

.service-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.service-price-label {
  font-size: 0.8rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-price-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
}

.service-price-period {
  font-size: 0.85rem;
  color: var(--fg-2);
}

.btn-service {
  width: 100%;
  justify-content: center;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-2);
}

.btn-service:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ===== HOW IT WORKS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.step {
  position: relative;
  padding: 1.75rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--fg-2);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--bg-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

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

.about-photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
}

.about-text p {
  color: var(--fg-2);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.about-text p strong {
  color: var(--fg);
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.about-stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.about-stat-label {
  font-size: 0.8rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== GUARANTEE SECTION ===== */
.guarantee {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg) 100%);
  text-align: center;
}

.guarantee-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent);
}

.guarantee h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.guarantee p {
  color: var(--fg-2);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.02rem;
}

/* ===== FAQ SECTION ===== */
.faq-list {
  margin-top: 2.5rem;
  max-width: 820px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  padding: 1.5rem 0;
  font-size: 1.02rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
  transition: color 0.2s;
}

.faq-q:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.25s;
  color: var(--fg-2);
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 0 1.5rem 0;
}

/* ===== CTA FINAL ===== */
.cta-final {
  background: var(--accent);
  color: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-final h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.15;
  position: relative;
}

.cta-final p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  opacity: 0.85;
  position: relative;
}

.cta-final .btn-row {
  justify-content: center;
  position: relative;
}

.cta-final .btn-primary {
  background: var(--bg);
  color: var(--accent);
}

.cta-final .btn-primary:hover {
  background: #000;
  color: var(--accent-2);
}

.cta-final .btn-secondary {
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--bg);
}

.cta-final .btn-secondary:hover {
  border-color: var(--bg);
  background: rgba(0, 0, 0, 0.05);
}

/* ===== FOOTER ===== */
.footer {
  padding: 3rem 0 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

.footer-brand {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--fg-3);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.78rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: var(--fg-2);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--fg-3);
  font-size: 0.82rem;
}

/* ===== WHATSAPP FAB ===== */
.wa-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  background: var(--whatsapp);
  color: white;
  padding: 0.85rem 1.25rem;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s;
}

.wa-fab:hover {
  transform: translateY(-2px) scale(1.02);
}

.wa-pulse {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (max-width: 480px) {
  .wa-fab span:not(.wa-pulse) {
    display: none;
  }
  .wa-fab {
    padding: 1rem;
    border-radius: 50%;
  }
}
