/*
Theme Name: A Virada do Empresário da Representação
Theme URI: https://example.com
Author: Rodrigo Prado
Author URI: https://www.instagram.com/rodrigoprado/
Description: Tema corporativo para landing page de mentoria para representantes comerciais
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: virada-empresario
*/

/* ========================================
   CSS Variables / Design Tokens
======================================== */
:root {
  --primary: 217 91% 60%;
  --primary-foreground: 0 0% 100%;
  --background: 210 40% 98%;
  --foreground: 222 47% 11%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;
  --accent: 210 40% 96%;
  --accent-foreground: 222 47% 11%;
  --cta: 142 76% 36%;
  --cta-foreground: 0 0% 100%;
  --cta-hover: 142 76% 29%;
  --border: 214 32% 91%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --radius: 0.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ========================================
   Typography
======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: hsl(var(--foreground));
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
  color: hsl(var(--muted-foreground));
}

/* ========================================
   Utility Classes
======================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.text-center {
  text-align: center;
}

.text-primary {
  color: hsl(var(--primary));
}

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

.bg-muted {
  background-color: hsl(var(--muted));
}

/* ========================================
   Buttons
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.btn-cta {
  background-color: hsl(var(--cta));
  color: hsl(var(--cta-foreground));
  box-shadow: 0 10px 30px -10px hsl(var(--cta) / 0.4);
}

.btn-cta:hover {
  background-color: hsl(var(--cta-hover));
  transform: translateY(-2px);
  box-shadow: 0 15px 40px -10px hsl(var(--cta) / 0.5);
}

.btn-outline {
  background-color: transparent;
  color: hsl(var(--primary));
  border: 2px solid hsl(var(--primary));
}

.btn-outline:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* ========================================
   Navbar
======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.navbar-logo {
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(var(--primary));
  max-width: 200px;
  line-height: 1.2;
}

.navbar-nav {
  display: none;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .navbar-nav {
    display: flex;
  }
}

.navbar-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 0.3s ease;
}

.navbar-nav a:hover {
  color: hsl(var(--primary));
}

.navbar-cta {
  display: none;
}

@media (min-width: 768px) {
  .navbar-cta {
    display: block;
  }
}

.navbar-cta .btn {
  font-size: 0.75rem;
  padding: 0.625rem 1.25rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: hsl(var(--foreground));
  transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-bottom: 1px solid hsl(var(--border));
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* ========================================
   Hero Section
======================================== */
.hero {
  padding-top: 120px;
  padding-bottom: 4rem;
  background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(217 91% 97%) 100%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 140px;
    padding-bottom: 6rem;
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(217 91% 50%) 100%);
  color: hsl(var(--primary-foreground));
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge svg {
  width: 1rem;
  height: 1rem;
}

.hero-title {
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.hero-title span {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(217 91% 50%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  max-width: 540px;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.hero-avatars {
  display: flex;
}

.hero-avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid hsl(var(--background));
  margin-left: -10px;
  object-fit: cover;
}

.hero-avatars img:first-child {
  margin-left: 0;
}

.hero-social-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.hero-social-text strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.hero-image {
  position: relative;
  animation: fadeInRight 0.8s ease-out 0.3s backwards;
}

.hero-image img {
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--primary) / 0.05) 100%);
  border-radius: 1rem;
  z-index: -1;
}

/* ========================================
   Credibility Logos
======================================== */
.credibility {
  padding: 3rem 0;
  background-color: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.credibility-title {
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.credibility-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .credibility-logos {
    gap: 4rem;
  }
}

.credibility-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background-color: hsl(var(--muted));
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.credibility-logo:hover {
  background-color: hsl(var(--primary) / 0.1);
  transform: translateY(-2px);
}

.credibility-logo svg {
  width: 2rem;
  height: 2rem;
  color: hsl(var(--primary));
}

.credibility-logo span {
  font-weight: 600;
  color: hsl(var(--foreground));
}

/* ========================================
   Features Section
======================================== */
.features {
  padding: 5rem 0;
  background-color: hsl(var(--background));
}

.features-header {
  text-align: center;
  margin-bottom: 3rem;
}

.features-badge {
  display: inline-block;
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.features-title {
  margin-bottom: 1rem;
}

.features-subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: hsl(var(--muted-foreground));
}

/* Main Feature Card */
.feature-main {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(217 91% 50%) 100%);
  border-radius: 1.5rem;
  padding: 2.5rem;
  color: hsl(var(--primary-foreground));
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .feature-main {
    grid-template-columns: 1fr 1fr;
    padding: 3rem;
  }
}

.feature-main-content h3 {
  color: hsl(var(--primary-foreground));
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-main-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-main-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-main-list svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.feature-main-image img {
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: hsl(var(--primary) / 0.3);
}

.feature-card-image {
  width: 100%;
  height: 160px;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.feature-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ========================================
   Why Choose Section
======================================== */
.why-choose {
  padding: 5rem 0;
  background-color: hsl(var(--muted));
}

.why-choose-header {
  text-align: center;
  margin-bottom: 3rem;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why-choose-card {
  background-color: hsl(var(--card));
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid hsl(var(--border));
  transition: all 0.3s ease;
}

.why-choose-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.why-choose-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.why-choose-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(217 91% 50%) 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary-foreground));
}

.why-choose-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.why-choose-card h3 {
  font-size: 1.25rem;
}

.why-choose-card > p {
  margin-bottom: 1.5rem;
  color: hsl(var(--muted-foreground));
}

.why-choose-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.why-choose-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.why-choose-list svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--cta));
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* ========================================
   Testimonials Section
======================================== */
.testimonials {
  padding: 5rem 0;
  background-color: hsl(var(--background));
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: hsl(var(--primary) / 0.3);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid hsl(var(--primary) / 0.2);
}

.testimonial-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.testimonial-info span {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-stars svg {
  width: 1rem;
  height: 1rem;
  color: #fbbf24;
  fill: #fbbf24;
}

.testimonial-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

/* ========================================
   FAQ Section
======================================== */
.faq {
  padding: 5rem 0;
  background-color: hsl(var(--muted));
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: hsl(var(--primary) / 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: hsl(var(--primary));
}

.faq-question svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

/* ========================================
   Final CTA Section
======================================== */
.final-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(217 91% 45%) 100%);
  color: hsl(var(--primary-foreground));
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,...') repeat;
  opacity: 0.1;
}

.final-cta-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .final-cta-container {
    grid-template-columns: 1fr 1fr;
  }
}

.final-cta-content h2 {
  color: hsl(var(--primary-foreground));
  margin-bottom: 1.5rem;
}

.final-cta-content p {
  color: hsl(var(--primary-foreground) / 0.9);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.final-cta-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: hsl(var(--primary-foreground) / 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.final-cta-stats svg {
  width: 2rem;
  height: 2rem;
}

.final-cta-stats span {
  font-weight: 600;
}

.final-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .final-cta-buttons {
    flex-direction: row;
  }
}

.btn-white {
  background-color: hsl(var(--primary-foreground));
  color: hsl(var(--primary));
}

.btn-white:hover {
  background-color: hsl(var(--primary-foreground) / 0.9);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: hsl(var(--primary-foreground));
  border: 2px solid hsl(var(--primary-foreground));
}

.btn-outline-white:hover {
  background-color: hsl(var(--primary-foreground));
  color: hsl(var(--primary));
}

.final-cta-image img {
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Footer
======================================== */
.footer {
  background-color: hsl(222 47% 11%);
  color: hsl(var(--primary-foreground));
  padding: 3rem 0 1.5rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-logo {
  font-weight: 700;
  color: hsl(var(--primary-foreground));
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: hsl(var(--primary-foreground) / 0.1);
  border-radius: 50%;
  color: hsl(var(--primary-foreground));
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: hsl(var(--primary));
  transform: translateY(-2px);
}

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.7);
}

/* ========================================
   Animations
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive Utilities
======================================== */
@media (max-width: 639px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .hide-sm {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hide-md {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .hide-lg {
    display: none !important;
  }
}
