/* Belari Design System - Clube Belovers
All colors MUST be HSL.
*/

:root {
  --background: 0 0% 100%;
  --foreground: 210 20% 15%;

  /* Belari Brand Colors - #7ec7cb and #d61262 */
  --belari-tiffany: 182 45% 60%;
  --belari-rose: 338 79% 55%;
  --belari-cream: 45 50% 95%;
  --belari-warm: 25 45% 88%;

  /* UI Colors using Belari palette */
  --card: 0 0% 100%;
  --card-foreground: 210 20% 15%;

  --popover: 0 0% 100%;
  --popover-foreground: 210 20% 15%;

  --primary: 182 45% 60%;
  --primary-foreground: 0 0% 100%;

  --secondary: 338 79% 55%;
  --secondary-foreground: 0 0% 100%;

  --muted: 45 50% 95%;
  --muted-foreground: 210 20% 45%;

  --accent: 174 85% 85%;
  --accent-foreground: 210 20% 15%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;

  --border: 174 25% 88%;
  --input: 174 25% 95%;
  --ring: 174 85% 70%;

  --radius: 0.5rem;

  /* Shadows */
  --shadow-soft: 0 4px 20px -4px hsl(var(--belari-tiffany) / 0.15);
  --shadow-medium: 0 8px 32px -8px hsl(var(--belari-tiffany) / 0.2);
  --shadow-strong: 0 16px 48px -8px hsl(var(--belari-tiffany) / 0.25);
  
  /* Animations */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset and 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(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  line-height: 1.2;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utility classes */
.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.shadow-medium {
  box-shadow: var(--shadow-medium);
}

.shadow-strong {
  box-shadow: var(--shadow-strong);
}

.transition-smooth {
  transition: var(--transition-smooth);
}

.transition-bounce {
  transition: var(--transition-bounce);
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.875rem;
}

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

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

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

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.9);
}

/* Card styles */
.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Form styles */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: var(--transition-smooth);
  font-size: 0.875rem;
}

.form-input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: var(--transition-smooth);
  font-size: 0.875rem;
}

.form-select:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

/* Grid system */
.grid {
  display: grid;
  gap: 1rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Navbar styles */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: hsl(var(--background) / 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-soft);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1rem;
}

.navbar-logo img {
  height: 2rem;
  width: auto;
}

.navbar-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

.navbar-menu a {
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

/* Hero section */
.hero {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  background-color: hsl(var(--primary));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(var(--primary)/0.9), hsl(var(--primary) / 0.6));
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  color: white;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-description {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.hero-seals {
  display: none;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-seal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: hsl(var(--background) / 0.9);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--background) / 0.2);
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
}

.hero-seal.secondary {
  background-color: hsl(var(--secondary) / 0.9);
  color: white;
  border-color: hsl(var(--secondary) / 0.2);
}

/* Section styles */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
}

/* Como Funciona */
.como-funciona-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.como-funciona-item {
  text-align: center;
  padding: 2rem;
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.como-funciona-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

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

.como-funciona-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: hsl(var(--secondary));
}

.como-funciona-item p {
  color: hsl(var(--foreground));
}

/* Benefícios */
.beneficios-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.beneficio-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.beneficio-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.beneficio-icon {
  font-size: 2rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.beneficio-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: hsl(var(--secondary));
}

/* Cards de produtos - corrigir imagens cortadas */
.product-card {
  overflow: hidden;
  transition: var(--transition-smooth);
}

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

.product-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  color: white;
}

/* FAQ */
.faq-item {
  margin-bottom: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}

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

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

.faq-answer {
  padding: 0 1.5rem;
  background-color: hsl(var(--background));
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: black;
}

.faq-answer.open {
  max-height: 200px;
  padding: 1rem 1.5rem;
}

/* Footer */
.footer {
  background-color: hsl(var(--muted));
  padding: 3rem 0 2rem;
  margin-top: 0;
}

.footer-content {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: hsl(var(--secondary));
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-section ul li a:hover {
  color: hsl(var(--primary));
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* Modal styles */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal.open {
  display: flex;
}

.modal-content {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: hsl(var(--foreground));
}

.modal-body {
  padding: 1.5rem;
}

/* Result styles */
.result {
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-weight: 500;
}

.result.success {
  background-color: hsl(120 50% 95%);
  color: hsl(120 50% 25%);
  border: 1px solid hsl(120 50% 80%);
}

.result.error {
  background-color: hsl(0 50% 95%);
  color: hsl(0 50% 25%);
  border: 1px solid hsl(0 50% 80%);
}

/* Custom animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive design - Mobile first */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
  
  .navbar-menu {
    display: flex;
  }
  
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero-seals {
    display: flex;
  }
  
  .como-funciona-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .beneficios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
}

/* Hide/show utilities */
.hidden {
  display: none;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

/* Text utilities */
.text-center {
  text-align: center;
}

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

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

/* Spacing utilities */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

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

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
