/*
Theme Name: Cartão Avenida
Theme URI: https://www.avenida.com.br
Description: Site para emissão de boleto e negociação do Cartão Avenida - Otimizado para SEO e WhatsApp
Version: 1.0.0
Author: Lojas Avenida
Author URI: https://www.avenida.com.br
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cartao-avenida
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ============================================
   RESET E ESTILOS GLOBAIS
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #2D1B3D;
  background-color: #FFFBF7;
  font-size: 16px;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #7B4B8A;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #F4D03F;
}

/* ============================================
   CONTAINER
   ============================================ */

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

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

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

/* ============================================
   BOTÕES
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Quicksand', sans-serif;
}

.btn-primary {
  background-color: #F4D03F;
  color: #2D1B3D;
}

.btn-primary:hover {
  background-color: #E8C91F;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(244, 208, 63, 0.3);
}

.btn-secondary {
  background-color: #7B4B8A;
  color: #FFFBF7;
}

.btn-secondary:hover {
  background-color: #6A3D78;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(123, 75, 138, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: #2D1B3D;
  border: 2px solid #2D1B3D;
}

.btn-outline:hover {
  background-color: #2D1B3D;
  color: #FFFBF7;
}

/* ============================================
   HEADER / NAVEGAÇÃO
   ============================================ */

header {
  background-color: #FFFBF7;
  padding: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: #2D1B3D;
  font-size: 1.25rem;
}

.logo-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #F4D03F, #7B4B8A);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: #2D1B3D;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #F4D03F;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(135deg, #FFFBF7 0%, #F5F0E8 100%);
}

.hero h1 {
  color: #2D1B3D;
  margin-bottom: 1rem;
}

.hero .highlight {
  color: #F4D03F;
}

.hero p {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card h3 {
  color: #2D1B3D;
  margin-bottom: 0.5rem;
}

.card p {
  color: #666;
  font-size: 0.95rem;
}

/* ============================================
   GRID
   ============================================ */

.grid {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SEÇÕES
   ============================================ */

section {
  padding: 4rem 0;
}

section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #2D1B3D;
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: #2D1B3D;
  color: #FFFBF7;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

footer h4 {
  color: #F4D03F;
  margin-bottom: 1rem;
}

footer a {
  color: #A8D8D8;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #F4D03F;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

.bounce {
  animation: bounce 2s infinite;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

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

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  section {
    padding: 2rem 0;
  }
}

/* ============================================
   UTILITÁRIOS
   ============================================ */

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

.text-primary {
  color: #F4D03F;
}

.text-secondary {
  color: #7B4B8A;
}

.text-muted {
  color: #999;
}

.bg-primary {
  background-color: #F4D03F;
}

.bg-secondary {
  background-color: #7B4B8A;
}

.bg-light {
  background-color: #F5F0E8;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.rounded {
  border-radius: 0.5rem;
}

.rounded-lg {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

.shadow {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow-lg {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */

a:focus,
button:focus,
input:focus {
  outline: 2px solid #F4D03F;
  outline-offset: 2px;
}

/* ============================================
   IMPRESSÃO
   ============================================ */

@media print {
  header,
  footer,
  .no-print {
    display: none;
  }
}
