/* ============================================
   CAIXAÇA — Design System (Bootstrap Override)
   Premium Acessível · Artesanal · Sensorial
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ============================================
   1. CSS Variables / Bootstrap Overrides
   ============================================ */
:root {
  /* Cores principais */
  --bs-primary: #C6A15B;
  --bs-primary-rgb: 198, 161, 91;
  --bs-secondary: #3B2A1E;
  --bs-secondary-rgb: 59, 42, 30;
  --bs-light: #F5E9DA;
  --bs-light-rgb: 245, 233, 218;
  --bs-dark: #1E140F;
  --bs-dark-rgb: 30, 20, 15;

  --bs-body-bg: #FAFAFA;
  --bs-body-color: #3B2A1E;

  /* Tipografia */
  --bs-font-sans-serif: 'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.7;

  /* Cores extras */
  --gold: #C6A15B;
  --gold-hover: #d4af6a;
  --gold-light: #e8d5a8;
  --brown-dark: #3B2A1E;
  --brown-deep: #1E140F;
  --cream: #F5E9DA;
  --cream-light: #FBF5ED;
  --bg-page: #FAFAFA;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(59, 42, 30, 0.06);
  --shadow-md: 0 8px 24px rgba(59, 42, 30, 0.08);
  --shadow-lg: 0 16px 48px rgba(59, 42, 30, 0.12);
  --shadow-gold: 0 8px 32px rgba(198, 161, 91, 0.2);

  /* Bordas */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transições */
  --transition-fast: all 0.2s ease;
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* Tema escuro */
[data-bs-theme="dark"] {
  --bs-body-bg: #121212;
  --bs-body-color: #E5E5E5;
  --bs-primary: #E0B86D;
  --bs-primary-rgb: 224, 184, 109;
  --bs-secondary: #5A3E2B;
  --bs-secondary-rgb: 90, 62, 43;
  --gold: #E0B86D;
  --gold-hover: #edc87d;
  --brown-dark: #E5E5E5;
  --cream: #1E1E1E;
  --cream-light: #252525;
  --bg-page: #121212;
}

/* ============================================
   2. Tipografia
   ============================================ */
.font-display {
  font-family: 'Playfair Display', 'Merriweather', Georgia, serif;
  letter-spacing: 0.5px;
}

h1, h2, h3, .h1, .h2, .h3 {
  font-family: 'Playfair Display', 'Merriweather', Georgia, serif;
  letter-spacing: 0.5px;
  color: var(--brown-dark);
  font-weight: 600;
}

h4, h5, h6, .h4, .h5, .h6 {
  font-family: 'Inter', 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--brown-dark);
}

.lead {
  font-weight: 300;
  color: var(--brown-dark);
  opacity: 0.85;
}

.text-gold {
  color: var(--gold) !important;
}

.text-cream {
  color: var(--cream) !important;
}

.text-brown {
  color: var(--brown-dark) !important;
}

/* ============================================
   3. Backgrounds
   ============================================ */
.bg-gold {
  background-color: var(--gold) !important;
}

.bg-cream {
  background-color: var(--cream) !important;
}

.bg-cream-light {
  background-color: var(--cream-light) !important;
}

.bg-brown-dark {
  background-color: var(--brown-dark) !important;
}

.bg-brown-deep {
  background-color: var(--brown-deep) !important;
}

.premium-bg {
  background: linear-gradient(135deg, #C6A15B, #A47148);
}

.premium-border {
  border: 1px solid var(--gold) !important;
}

.bg-hero {
  background: linear-gradient(135deg, var(--brown-deep) 0%, var(--brown-dark) 50%, #4a3628 100%);
  position: relative;
  overflow: hidden;
}

.bg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(198, 161, 91, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* ============================================
   4. Navbar
   ============================================ */
.navbar {
  background-color: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(198, 161, 91, 0.1);
  padding: 0.75rem 0;
  transition: var(--transition-base);
}

.navbar.scrolled {
  background-color: rgba(250, 250, 250, 0.95);
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brown-dark) !important;
  letter-spacing: 1px;
}

.navbar-brand span {
  color: var(--gold);
}

.navbar-nav .nav-link {
  color: var(--brown-dark);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
}

.navbar-nav .nav-link:hover {
  color: var(--gold);
}

.navbar-toggler {
  border: 1px solid var(--gold);
  padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C6A15B' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   5. Botões
   ============================================ */
.btn {
  border-radius: var(--radius-md);
  padding: 10px 24px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-base);
  letter-spacing: 0.3px;
}

.btn-primary {
  background-color: var(--gold);
  border: none;
  color: var(--brown-dark);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--gold-hover);
  color: var(--brown-dark);
  transform: scale(1.03);
  box-shadow: var(--shadow-gold);
}

.btn-primary:active {
  background-color: #b8933f;
  transform: scale(0.98);
}

.btn-outline-primary {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline-primary:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--brown-dark);
  transform: scale(1.03);
}

.btn-dark {
  background-color: var(--brown-dark);
  border: none;
  color: var(--cream);
}

.btn-dark:hover {
  background-color: var(--brown-deep);
  color: var(--gold);
  transform: scale(1.03);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.85rem;
}

/* ============================================
   6. Cards
   ============================================ */
.card {
  border: none;
  border-radius: var(--radius-lg);
  background-color: #fff;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  overflow: hidden;
}

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

.card-body {
  padding: 1.5rem;
}

.card-img-top {
  width: 100%;
  object-fit: cover;
}

/* Cards de Planos */
.card-plan {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.card-plan .plan-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brown-dark);
}

.card-plan .plan-price small {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.7;
}

.card-plan .plan-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-plan ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.card-plan ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(198, 161, 91, 0.15);
  font-size: 0.95rem;
}

.card-plan ul li i {
  color: var(--gold);
  width: 20px;
}

/* Variantes de plano */
.card-plan-basic {
  background-color: #fff;
}

.card-plan-alchemist {
  background-color: var(--cream);
  border: 2px solid var(--gold);
}

.card-plan-alchemist .badge-popular {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--brown-dark);
  padding: 4px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-plan-collector {
  background-color: var(--brown-deep);
  color: #fff;
  border: 1px solid var(--gold);
}

.card-plan-collector .plan-name,
.card-plan-collector .plan-price {
  color: var(--gold);
}

.card-plan-collector ul li {
  color: #ddd;
  border-bottom-color: rgba(198, 161, 91, 0.2);
}

/* Card Produto */
.card-product .card-img-top {
  height: 220px;
  object-fit: cover;
}

.card-product .card-body {
  padding: 1.25rem;
}

.card-product .product-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.card-product .product-price {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ============================================
   7. Accordion (FAQ)
   ============================================ */
.accordion {
  --bs-accordion-border-color: rgba(198, 161, 91, 0.2);
  --bs-accordion-border-radius: var(--radius-md);
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-active-bg: var(--cream-light);
  --bs-accordion-active-color: var(--brown-dark);
}

.accordion-item {
  border-radius: var(--radius-md) !important;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(198, 161, 91, 0.2);
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  font-size: 1rem;
  color: var(--brown-dark);
  background-color: transparent;
  padding: 1.1rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  color: var(--brown-dark);
  background-color: var(--cream-light);
  box-shadow: none;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23C6A15B'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 1rem 1.5rem;
  color: var(--brown-dark);
  opacity: 0.85;
  line-height: 1.8;
}

/* ============================================
   8. Modal
   ============================================ */
.modal-content {
  border-radius: var(--radius-lg);
  background-color: var(--cream-light);
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid rgba(198, 161, 91, 0.2);
}

.modal-footer {
  border-top: 1px solid rgba(198, 161, 91, 0.2);
}

/* ============================================
   9. Badge
   ============================================ */
.badge {
  background-color: var(--gold);
  color: var(--brown-dark);
  font-weight: 500;
  padding: 0.4em 0.8em;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.badge-outline {
  background-color: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

/* ============================================
   10. Seções
   ============================================ */
section {
  padding: 5rem 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--brown-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--brown-dark);
  opacity: 0.7;
  margin-bottom: 3rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1rem auto 2.5rem;
}

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

.hero-section h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.hero-section .lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
}

.hero-badge {
  display: inline-block;
  background: rgba(198, 161, 91, 0.15);
  border: 1px solid rgba(198, 161, 91, 0.3);
  color: var(--gold);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-img-wrapper {
  position: relative;
}

.hero-img-wrapper img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 100%;
  height: auto;
}

.hero-img-wrapper .floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brown-dark);
}

/* ============================================
   12. Como Funciona (Steps)
   ============================================ */
.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--brown-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.step-card h5 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* ============================================
   13. Carousel / Depoimentos
   ============================================ */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.testimonial-card .quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--brown-dark);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--brown-dark);
}

.testimonial-card .author-role {
  font-size: 0.85rem;
  color: var(--gold);
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  margin-bottom: 0.75rem;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--gold);
  opacity: 0.4;
}

.carousel-indicators .active {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: none;
  background-color: var(--gold);
  border-radius: 50%;
  padding: 1rem;
  background-size: 50%;
}

/* ============================================
   14. Footer
   ============================================ */
.footer {
  background-color: var(--brown-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 1.5rem;
}

.footer h5 {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 0.9rem;
}

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

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff !important;
}

.footer-brand span {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 3rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(198, 161, 91, 0.3);
  color: var(--gold);
  margin-right: 0.5rem;
  transition: var(--transition-fast);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--brown-deep);
  border-color: var(--gold);
}

/* ============================================
   15. Forms
   ============================================ */
.form-control,
.form-select {
  border: 1px solid rgba(198, 161, 91, 0.3);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: var(--transition-fast);
  background-color: #fff;
  color: var(--brown-dark);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(198, 161, 91, 0.15);
}

.form-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--brown-dark);
  margin-bottom: 0.35rem;
}

/* ============================================
   16. Page Headers
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--brown-deep) 0%, var(--brown-dark) 100%);
  padding: 7rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 80%, rgba(198, 161, 91, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.page-header h1 {
  color: #fff;
  font-size: 2.5rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

/* ============================================
   17. Utilities
   ============================================ */
.img-placeholder {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 2.5rem;
  min-height: 200px;
  border-radius: var(--radius-lg);
}

.img-placeholder-dark {
  background: linear-gradient(135deg, var(--brown-dark) 0%, #4a3628 100%);
  color: var(--gold);
}

.divider-gold {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(198, 161, 91, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.4rem;
}

.icon-circle-sm {
  width: 44px;
  height: 44px;
  font-size: 1rem;
}

.cta-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1040;
  box-shadow: var(--shadow-gold);
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(198, 161, 91, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(198, 161, 91, 0); }
}

/* Sidebar Conta */
.sidebar-nav .nav-link {
  color: var(--brown-dark);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.25rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: var(--cream);
  color: var(--gold);
}

.sidebar-nav .nav-link i {
  width: 24px;
}

/* Filtros Loja */
.filter-btn {
  border: 1px solid rgba(198, 161, 91, 0.3);
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  background: transparent;
  color: var(--brown-dark);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--brown-dark);
}

/* Blog card */
.blog-card .card-body {
  padding: 1.5rem;
}

.blog-card .blog-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 600;
}

.blog-card .blog-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--brown-dark);
}

.blog-card .blog-excerpt {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.7;
}

.blog-card .blog-meta {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ============================================
   18. Animations
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   19. Responsive Tweaks
   ============================================ */
@media (max-width: 991.98px) {
  .hero-section {
    text-align: center;
    min-height: auto;
    padding: 6rem 0 3rem;
  }

  .hero-section .lead {
    margin: 0 auto;
  }

  .hero-img-wrapper {
    margin-top: 2rem;
  }

  section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .page-header {
    padding: 6rem 0 3rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  section {
    padding: 2.5rem 0;
  }

  .card-plan {
    padding: 1.5rem 1rem;
  }

  .cta-float {
    bottom: 16px;
    right: 16px;
  }
}

/* ============================================
   20. Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cream-light);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-hover);
}

/* ============================================
   21. Selection
   ============================================ */
::selection {
  background: rgba(198, 161, 91, 0.3);
  color: var(--brown-dark);
}
