/*
Theme Name: BMB+ Crédito Consignado
Theme URI: https://bmbmais.com.br
Author: BMB+
Author URI: https://bmbmais.com.br
Description: Tema customizado para BMB+ - Correspondente bancário especializado em crédito consignado
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: bmbplus
Tags: landing-page, business, finance, responsive, custom-colors

This theme, like WordPress, is licensed under the GPL.
*/

/* ========================================
   DESIGN SYSTEM - BMB+ Theme
   ======================================== */

:root {
  /* Colors - HSL Values */
  --color-primary: 221, 83%, 53%;
  --color-primary-dark: 221, 83%, 43%;
  --color-accent: 18, 95%, 60%;
  --color-accent-hover: 18, 95%, 50%;
  
  --color-background: 0, 0%, 100%;
  --color-foreground: 220, 13%, 20%;
  
  --color-card: 0, 0%, 100%;
  --color-card-foreground: 220, 13%, 20%;
  
  --color-muted: 210, 40%, 96%;
  --color-muted-foreground: 220, 13%, 46%;
  
  --color-border: 214, 32%, 88%;
  
  /* Shadows */
  --shadow-card: 0 4px 20px -2px hsla(var(--color-primary), 0.15);
  --shadow-elevated: 0 10px 40px -10px hsla(var(--color-primary), 0.25);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border Radius */
  --radius: 1rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1.5rem;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: hsl(var(--color-background));
  color: hsl(var(--color-foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

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

.container-wide {
  max-width: 1400px;
}

.section {
  padding: 4rem 0;
}

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

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: hsl(var(--color-primary));
  color: white;
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  background-color: hsl(var(--color-primary-dark));
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.btn-cta {
  background-color: hsl(var(--color-accent));
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.btn-cta:hover {
  background-color: hsl(var(--color-accent-hover));
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

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

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

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

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

.card {
  background-color: hsl(var(--color-card));
  border: 2px solid hsl(var(--color-border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: hsl(var(--color-foreground));
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid hsl(var(--color-border));
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition-smooth);
  background-color: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: hsl(var(--color-primary));
  box-shadow: 0 0 0 3px hsla(var(--color-primary), 0.1);
}

.form-error {
  color: hsl(0, 84%, 60%);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

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

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, 
    hsl(var(--color-primary)), 
    hsl(var(--color-primary-dark))
  );
  overflow: hidden;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  top: 5rem;
  left: 2.5rem;
  width: 18rem;
  height: 18rem;
  background-color: hsl(var(--color-accent));
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
  animation: pulse 3s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 5rem;
  right: 2.5rem;
  width: 24rem;
  height: 24rem;
  background-color: white;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
  animation: pulse 3s ease-in-out infinite 1s;
}

@keyframes pulse {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.15; transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.hero-logo {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  animation: fadeIn 0.6s ease-out;
}

.hero-logo .accent {
  color: hsl(var(--color-accent));
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.6s ease-out 0.2s backwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeIn 0.6s ease-out 0.4s backwards;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 48rem;
  margin: 3rem auto 0;
  animation: fadeIn 0.6s ease-out 0.8s backwards;
}

.hero-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

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

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero-badges {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

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

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

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

@media (min-width: 768px) {
  .grid {
    gap: 2rem;
  }
}

/* ========================================
   SECTION TITLES
   ======================================== */

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: hsl(var(--color-foreground));
}

.section-subtitle {
  font-size: 1.125rem;
  text-align: center;
  color: hsl(var(--color-muted-foreground));
  max-width: 48rem;
  margin: 0 auto 3rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

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

.site-footer {
  background-color: hsl(var(--color-card));
  border-top: 2px solid hsl(var(--color-border));
  padding: 3rem 0 1.5rem;
}

.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-bottom {
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--color-border));
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--color-muted-foreground));
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

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

/* ========================================
   WORDPRESS SPECIFIC
   ======================================== */

.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: hsl(var(--color-muted-foreground));
  margin-top: 0.5rem;
}

/* Screen reader text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
