/*
Theme Name: Escritor de Primeira Viagem
Theme URI: https://primeira-viagem-landing.lovable.app
Author: Editora NPE
Author URI: https://editoranpe.com.br
Description: Tema WordPress de landing page para captura de leads de escritores iniciantes. Otimizado para tráfego pago (topo de funil). Design moderno com gradientes, animações e formulário de captura para guia gratuito.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: escritor-primeira-viagem
Tags: landing-page, one-page, business, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========== Design Tokens ========== */
:root {
  --background: #fdfdff;
  --foreground: #363a47;
  --card: #ffffff;
  --card-foreground: #363a47;
  --primary: #2563eb;
  --primary-foreground: #fafafa;
  --primary-glow: #4f86f0;
  --secondary: #ea9c1f;
  --secondary-foreground: #fafafa;
  --secondary-glow: #f0b556;
  --muted: #f1f3f7;
  --muted-foreground: #6b7280;
  --accent: #ea9c1f;
  --destructive: #ef4444;
  --border: #dee1e8;
  --input: #f1f3f7;
  --radius: 0.5rem;
  --gradient-hero: linear-gradient(135deg, var(--primary), var(--primary-glow));
  --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--secondary-glow));
  --gradient-subtle: linear-gradient(180deg, var(--background), var(--muted));
  --shadow-elegant: 0 10px 40px -10px rgba(37, 99, 235, 0.2);
  --shadow-warm: 0 10px 40px -10px rgba(234, 156, 31, 0.2);
  --shadow-soft: 0 4px 20px -4px rgba(54, 58, 71, 0.1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5rem; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition-smooth); }
a:hover { color: var(--primary-glow); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 5rem 0; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
  line-height: 1.2;
}
.btn-hero {
  background: var(--gradient-hero);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-elegant);
  font-size: 1.125rem;
  height: 3rem;
  width: 100%;
}
.btn-hero:hover { transform: scale(1.03); color: #fff; }
.btn-cta {
  background: var(--gradient-secondary);
  color: var(--secondary-foreground);
  box-shadow: var(--shadow-warm);
  font-size: 1.125rem;
  padding: 1rem 2rem;
}
.btn-cta:hover { transform: scale(1.05); color: #fff; }

/* ========== Header ========== */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.25rem 0;
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.site-branding a { color: #fff; font-size: 1.25rem; font-weight: 700; }
.main-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.main-nav a { color: rgba(255,255,255,.9); font-weight: 500; }
.main-nav a:hover { color: var(--secondary); }

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0 3rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.75), rgba(0,0,0,.5), rgba(0,0,0,.1));
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero-content { color: #fff; }
.hero-content h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 1rem;
}
.hero-content h1 .accent { color: var(--secondary); }
.hero-lead {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: #e5e7eb;
  margin-bottom: 2rem;
}
.benefits-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.benefits-list li {
  display: flex; align-items: center; gap: .75rem;
  padding: .4rem 0;
  color: #e5e7eb;
}
.benefits-list .check {
  width: 1.25rem; height: 1.25rem;
  color: var(--secondary);
  flex-shrink: 0;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; padding: 1.5rem 0;
}
.stat { text-align: center; }
.stat-number { font-size: 1.875rem; font-weight: 700; color: var(--secondary); }
.stat-label { font-size: .875rem; color: #d1d5db; }

/* Lead form card */
.lead-card {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-elegant);
  max-width: 28rem;
  width: 100%;
  margin-left: auto;
  transition: var(--transition-smooth);
}
.lead-card:hover { transform: translateY(-4px) scale(1.02); }
.lead-card .icon-wrap {
  width: 3rem; height: 3rem;
  margin: 0 auto 1rem;
  color: var(--primary);
}
.lead-card h3 { text-align: center; font-size: 1.5rem; color: var(--foreground); margin-bottom: .5rem; }
.lead-card .subtitle { text-align: center; color: var(--muted-foreground); margin-bottom: 1.5rem; }
.lead-card form { display: flex; flex-direction: column; gap: 1rem; }
.lead-card input[type="email"] {
  height: 3rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--input);
  font-size: 1rem;
  width: 100%;
  font-family: inherit;
}
.lead-card input[type="email"]:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.lead-card .secure-note {
  text-align: center; font-size: .75rem;
  color: var(--muted-foreground); margin-top: 1rem;
}
.social-proof {
  margin-top: 1.5rem; padding: 1rem;
  background: rgba(241,243,247,.6); border-radius: .5rem;
}
.stars { color: var(--secondary); margin-bottom: .25rem; }
.testimonial-quote { font-size: .8rem; color: var(--muted-foreground); font-style: italic; margin: 0; }
.testimonial-author { font-size: .8rem; color: var(--muted-foreground); margin: .25rem 0 0; font-weight: 600; }

/* ========== Section Heads ========== */
.section-head { text-align: center; max-width: 800px; margin: 0 auto 4rem; }
.section-head h2 { font-size: clamp(1.875rem, 4vw, 3rem); margin-bottom: 1rem; }
.section-head .destructive { color: var(--destructive); }
.section-head .accent { color: var(--secondary); }
.section-head p { font-size: 1.125rem; color: var(--muted-foreground); }

/* ========== Problem Section ========== */
.bg-muted { background: rgba(241,243,247,.4); }
.problems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}
@media (min-width: 640px) { .problems-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .problems-grid { grid-template-columns: repeat(4, 1fr); } }
.problem-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: .75rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition-smooth);
}
.problem-card:hover { transform: translateY(-4px) scale(1.02); }
.problem-icon-wrap {
  width: 4rem; height: 4rem; margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(239,68,68,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--destructive);
}
.problem-card h3 { font-size: 1.125rem; margin-bottom: .75rem; }
.problem-card p { font-size: .875rem; color: var(--muted-foreground); margin: 0; }
.pain-box {
  background: linear-gradient(to right, rgba(239,68,68,.05), rgba(239,68,68,.1));
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
}
.pain-box h3 { font-size: 1.875rem; margin-bottom: 1rem; }
.pain-list { max-width: 600px; margin: 0 auto; }
.pain-list p { font-style: italic; color: var(--muted-foreground); font-size: 1.125rem; }
.truth-box {
  background: var(--card); border-radius: .75rem;
  padding: 1.5rem; margin: 2rem auto 0;
  max-width: 600px; box-shadow: var(--shadow-soft);
}
.truth-box strong { color: var(--destructive); }

/* ========== Solution Section ========== */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .solutions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .solutions-grid { grid-template-columns: repeat(3, 1fr); } }
.solution-card {
  background: var(--card);
  padding: 2rem;
  border-radius: .75rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition-smooth);
}
.solution-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-elegant); }
.solution-icon-wrap {
  width: 4rem; height: 4rem; margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.solution-card h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.solution-card p { color: var(--muted-foreground); }

.solution-cta {
  margin-top: 4rem;
  background: var(--gradient-hero);
  border-radius: 1rem;
  padding: 3rem 2rem;
  color: #fff;
  text-align: center;
}
.solution-cta h3 { font-size: 1.875rem; margin-bottom: 1rem; }
.solution-cta p { font-size: 1.125rem; opacity: .95; margin-bottom: 1.5rem; }

/* ========== Testimonials Section ========== */
.testimonials-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: var(--card);
  padding: 2rem;
  border-radius: .75rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); }
.testimonial-card .stars-row { color: var(--secondary); margin-bottom: 1rem; }
.testimonial-card .quote { font-style: italic; color: var(--foreground); margin-bottom: 1.5rem; }
.testimonial-card .author { font-weight: 600; color: var(--foreground); }
.testimonial-card .role { font-size: .875rem; color: var(--muted-foreground); }

.stats-band {
  margin-top: 4rem;
  background: var(--gradient-hero);
  border-radius: 1rem;
  padding: 3rem 2rem;
  color: #fff;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }
.stats-band .num { font-size: 2.25rem; font-weight: 700; }
.stats-band .lbl { font-size: .9rem; opacity: .9; }

/* ========== Final CTA ========== */
.final-cta {
  background: var(--gradient-hero);
  color: #fff;
  padding: 6rem 0;
  text-align: center;
}
.final-cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.final-cta .lead { font-size: 1.25rem; opacity: .95; max-width: 700px; margin: 0 auto 2.5rem; }
.cta-form {
  max-width: 480px; margin: 0 auto;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.2);
}
.cta-form input[type="email"] {
  width: 100%; height: 3rem; padding: 0 1rem;
  border-radius: var(--radius); border: none;
  font-size: 1rem; margin-bottom: 1rem;
  font-family: inherit;
}
.urgency {
  margin-top: 2rem; font-size: .9rem;
  opacity: .9; display: inline-flex; align-items: center; gap: .5rem;
}

/* ========== Footer ========== */
.site-footer { background: var(--muted); padding: 3rem 0 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.footer-grid h4 { font-size: 1rem; margin-bottom: 1rem; }
.footer-grid p, .footer-grid li { font-size: .875rem; color: var(--muted-foreground); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { padding: .25rem 0; display: flex; align-items: center; gap: .5rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem; text-align: center;
  font-size: .875rem; color: var(--muted-foreground);
}

/* ========== Animations ========== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.animate-fade-in { animation: fadeIn .8s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* SVG icon helper */
.icon { width: 1.25rem; height: 1.25rem; display: inline-block; vertical-align: middle; }
.icon-lg { width: 2rem; height: 2rem; }
.icon-xl { width: 3rem; height: 3rem; }

/* WP defaults */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%);
  clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
