/*
Theme Name: DECARONA
Theme URI: https://decarona.com.br
Author: DECARONA
Author URI: https://decarona.com.br
Description: Tema oficial do DECARONA - Conectando pessoas, compartilhando caminhos.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: decarona
*/

/* ==============================
   CSS Variables / Design Tokens
   ============================== */
:root {
  --color-primary: #d8ff00;
  --color-primary-hover: #bbe800;
  --color-secondary: #5ad08f;
  --color-background: #ffffff;
  --color-foreground: #000000;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-card: #ffffff;
  --color-section-alt: #eaeaea;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  
  --container-max-width: 1280px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  --border-radius-sm: 0.5rem;
  --border-radius-md: 1rem;
  --border-radius-lg: 1.5rem;
  --border-radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height-base);
  color: var(--color-foreground);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==============================
   Typography
   ============================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}

/* ==============================
   Layout
   ============================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-2xl) 0;
}

@media (min-width: 768px) {
  .section {
    padding: calc(var(--spacing-2xl) * 1.5) 0;
  }
}

/* ==============================
   Header
   ============================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--color-background);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.main-navigation {
  display: none;
}

@media (min-width: 768px) {
  .main-navigation {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
  }
}

.main-navigation a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  transition: color 0.2s ease;
}

.main-navigation a:hover {
  color: var(--color-primary);
}

.header-cta {
  display: none;
}

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

/* ==============================
   Buttons
   ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background: linear-gradient(to right, var(--color-primary-hover), var(--color-secondary));
}

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

/* ==============================
   Hero Section
   ============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.hero-title .highlight {
  color: var(--color-primary);
}

.hero-description {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-description {
    font-size: 1.5rem;
  }
}

/* ==============================
   Social Proof Section
   ============================== */
.social-proof {
  background-color: var(--color-section-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
}

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

.stat-card {
  background-color: var(--color-card);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--spacing-sm);
  background-color: rgba(216, 255, 0, 0.1);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
}

.stat-value .suffix {
  color: var(--color-primary);
}

.stat-label {
  color: var(--color-muted);
  font-weight: 500;
  margin-top: var(--spacing-xs);
}

/* ==============================
   How It Works Section
   ============================== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
}

.section-header h2 {
  margin-bottom: var(--spacing-sm);
}

.section-header p {
  color: var(--color-muted);
  font-size: 1.125rem;
}

.steps-grid {
  display: grid;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
  }
}

.step-card {
  text-align: center;
  position: relative;
}

.step-icon-wrapper {
  width: 128px;
  height: 128px;
  margin: 0 auto var(--spacing-md);
  background-color: rgba(216, 255, 0, 0.1);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.step-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.step-card h3 {
  margin-bottom: var(--spacing-xs);
}

.step-card p {
  color: var(--color-muted);
  max-width: 280px;
  margin: 0 auto;
}

/* ==============================
   Security Section
   ============================== */
.security-grid {
  display: grid;
  gap: var(--spacing-md);
  max-width: 1000px;
  margin: 0 auto;
}

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

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

.security-card {
  background-color: var(--color-card);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.security-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.security-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(216, 255, 0, 0.1);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
}

.security-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xs);
}

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

/* ==============================
   Testimonials Section
   ============================== */
.testimonials {
  background-color: var(--color-section-alt);
}

.testimonials-grid {
  display: grid;
  gap: var(--spacing-md);
}

@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: var(--color-card);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-full);
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  background-color: var(--color-section-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

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

.testimonial-role {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--spacing-sm);
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--color-primary);
  color: var(--color-primary);
}

.testimonial-quote {
  position: relative;
  padding-left: var(--spacing-md);
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 2rem;
  color: var(--color-primary);
  font-weight: 700;
}

.testimonial-quote p {
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ==============================
   Earn Money Section
   ============================== */
.earn-money {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.earn-money::before,
.earn-money::after {
  content: '';
  position: absolute;
  border-radius: var(--border-radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  filter: blur(60px);
}

.earn-money::before {
  width: 240px;
  height: 240px;
  top: -80px;
  right: -80px;
}

.earn-money::after {
  width: 320px;
  height: 320px;
  bottom: -80px;
  left: -80px;
}

.earn-money .section-header h2,
.earn-money .section-header p {
  color: var(--color-foreground);
}

.earn-money .section-header p {
  opacity: 0.8;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

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

.benefit-card {
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  text-align: center;
  transition: background-color 0.3s ease;
}

.benefit-card:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--spacing-sm);
  background-color: var(--color-foreground);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg {
  color: var(--color-background);
}

.benefit-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xs);
}

.benefit-card p {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ==============================
   Download Section
   ============================== */
.download {
  background-color: var(--color-foreground);
  color: var(--color-background);
}

.download-content {
  display: grid;
  gap: var(--spacing-xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .download-content {
    grid-template-columns: 1fr 1fr;
  }
}

.download-text h2 {
  color: var(--color-background);
  margin-bottom: var(--spacing-sm);
}

.download-text p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-lg);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background-color: var(--color-background);
  color: var(--color-foreground);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: transform 0.3s ease;
}

.store-button:hover {
  transform: scale(1.05);
}

.download-image {
  display: flex;
  justify-content: center;
}

.download-image img {
  max-width: 300px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ==============================
   Footer
   ============================== */
.site-footer {
  background-color: var(--color-foreground);
  color: var(--color-background);
  padding-top: var(--spacing-2xl);
  padding-bottom: var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

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

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

.footer-brand {
  grid-column: span 2;
}

@media (min-width: 1024px) {
  .footer-brand {
    grid-column: span 1;
  }
}

.footer-brand img {
  height: 80px;
  width: auto;
  filter: invert(1);
  margin-bottom: var(--spacing-sm);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--color-primary);
  color: var(--color-foreground);
}

.footer-links h4 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  justify-content: center;
  align-items: center;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-contact {
    flex-direction: row;
    gap: var(--spacing-lg);
  }
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-lg);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-tagline {
  font-size: 1.125rem !important;
  font-weight: 700;
  color: var(--color-background) !important;
}

.footer-tagline span {
  color: var(--color-primary);
}

/* ==============================
   Mobile Menu
   ============================== */
.mobile-menu-toggle {
  display: flex;
  padding: 0.5rem;
}

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

.mobile-menu {
  display: none;
  background-color: var(--color-background);
  padding: var(--spacing-sm) 0 var(--spacing-md);
}

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

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--color-primary);
}

.mobile-menu .btn {
  width: 100%;
  margin-top: var(--spacing-sm);
}

/* ==============================
   Utilities
   ============================== */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-muted); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
