/* 
  DED Express - Global Styles
  Design System: Premium, Modern, and Professional
*/

:root {
  --roxo: #6a1fc2;
  --roxo-escuro: #4a0e8f;
  --roxo-light: #9b59d0;
  --dourado: #f5b800;
  --dourado-dark: #d9a300;
  --branco: #ffffff;
  --cinza: #f8f9fa;
  --texto: #2d2d2d;
  --texto-light: #666666;
  --verde: #25d366;
  --shadow-sm: 0 4px 12px rgba(106, 31, 194, 0.08);
  --shadow-md: 0 12px 24px rgba(106, 31, 194, 0.12);
  --shadow-lg: 0 20px 40px rgba(74, 14, 143, 0.2);
  --radius: 16px;
}

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

body {
  font-family: 'Nunito', sans-serif;
  color: var(--texto);
  line-height: 1.6;
  background-color: var(--branco);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
}

/* ──────────────── TOP BAR ──────────────── */
.top-bar {
  background: var(--roxo-escuro);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.top-bar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.top-bar-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--dourado);
}

.top-bar-brand-text {
  display: flex;
  flex-direction: column;
}

.top-bar-name {
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
}

.top-bar-sub {
  color: var(--dourado);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.top-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 40px;
  transition: all 0.2s;
  white-space: nowrap;
}

.top-nav a:hover, .top-nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.nav-install {
  background: var(--dourado) !important;
  color: #1a0030 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 15px rgba(245, 184, 0, 0.3);
}

/* ──────────────── REVEAL ANIMATIONS ──────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ──────────────── PROMO BANNER ──────────────── */
.promo-banner {
  background: linear-gradient(135deg, #4a0e8f 0%, #1a0030 100%);
  color: white;
  padding: 12px 20px;
  position: relative;
  z-index: 1001;
  border-bottom: 2px solid var(--dourado);
}

.promo-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.promo-text { display: flex; align-items: center; gap: 10px; }
.promo-badge { background: var(--dourado); color: #000; font-size: 0.7rem; font-weight: 900; padding: 3px 8px; border-radius: 4px; }
.promo-text strong { color: var(--dourado); }
.promo-countdown { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); padding: 4px 12px; border-radius: 50px; font-weight: 800; color: var(--dourado); }

/* ──────────────── INDEX COMPONENTS ──────────────── */
.banner-hero { width: 100%; background: var(--roxo-escuro); }
.banner-hero img { width: 100%; max-height: 480px; object-fit: cover; }

.destaques { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding: 60px 20px; }
.destaque-card { background: var(--cinza); border-radius: var(--radius); padding: 30px; width: 240px; text-align: center; transition: 0.3s; box-shadow: var(--shadow-sm); }
.destaque-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* ──────────────── PRICING & PLANS PAGE ──────────────── */
.hero-wrapper {
  background: linear-gradient(135deg, #1a0033 0%, #3b0a7d 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero-plans h1 span { color: var(--dourado); }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.plan-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
  border: 1px solid rgba(0,0,0,0.05);
}

.plan-card.featured {
  border: 2px solid var(--roxo);
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.plan-icon { font-size: 3rem; margin-bottom: 15px; }
.plan-name { font-size: 1.5rem; font-weight: 800; color: var(--roxo-escuro); }
.total-aulas-badge { background: rgba(106, 31, 194, 0.1); color: var(--roxo); padding: 5px 15px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; margin: 10px 0; display: inline-block; }
.plan-price { font-size: 2.5rem; font-weight: 900; color: var(--roxo-escuro); margin: 15px 0; }
.plan-price small { font-size: 0.9rem; opacity: 0.5; }
.price-old-promo { text-decoration: line-through; opacity: 0.4; font-size: 0.6em; margin-right: 10px; }
.price-new-promo { color: var(--verde) !important; }

.plan-features { list-style: none; text-align: left; margin: 20px 0; border-top: 1px solid #eee; padding-top: 20px; }
.plan-features li { margin-bottom: 10px; font-size: 0.9rem; padding-left: 25px; position: relative; }
.plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--verde); font-weight: 900; }

.btn-plan {
  display: block;
  background: var(--roxo);
  color: white;
  padding: 15px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  transition: 0.3s;
}

.btn-plan:hover { background: var(--roxo-escuro); transform: translateY(-3px); }

/* FAQ */
.faq { background: var(--cinza); border-radius: 20px; padding: 40px; margin: 40px 0; }
.faq-item { background: white; margin-bottom: 10px; border-radius: 10px; padding: 15px; }

/* ──────────────── FOOTER (FIXED) ──────────────── */
.site-footer {
  background: #1a0030;
  color: white;
  padding: 60px 20px 30px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-brand img {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  border: 2px solid var(--roxo-light);
  object-fit: cover;
}

.footer-brand strong { font-size: 1.3rem; color: var(--dourado); display: block; }
.footer-brand span { font-size: 0.8rem; opacity: 0.6; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
}

.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.85rem; transition: 0.2s; }
.footer-links a:hover { color: var(--dourado); }
.footer-copy { text-align: center; font-size: 0.75rem; opacity: 0.4; margin-top: 20px; }

/* ──────────────── RESPONSIVE & UTILITIES ──────────────── */

/* Fluid Typography */
h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 4vw, 1.8rem); }

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 2001;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: var(--roxo-escuro);
  z-index: 2000;
  padding: 100px 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.3);
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-nav-drawer a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 15px 25px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-nav-drawer a:hover, .mobile-nav-drawer a.active {
  background: var(--dourado);
  color: #1a0030;
  transform: translateX(5px);
  border-color: var(--dourado);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.drawer-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 992px) {
  .top-bar { padding: 0 20px; }
  .top-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

@media (max-width: 768px) {
  .page-wrap { padding: 15px 15px 60px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 16px; }
}

/* Hide drawer scrollbar */
.mobile-nav-drawer::-webkit-scrollbar { display: none; }
.mobile-nav-drawer { -ms-overflow-style: none; scrollbar-width: none; }

@media (max-width: 768px) {
  .hero-wrapper { padding: 60px 15px; }
  .plans-grid { grid-template-columns: 1fr; padding: 20px 15px; }
  .footer-inner { text-align: center; }
  .footer-brand { flex-direction: column; gap: 10px; }
  .footer-links { justify-content: center; }
  .promo-content { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
  .top-bar-brand-text { display: none; }
  .destaque-card { width: 100%; }
  .plan-card { padding: 30px 20px; }
  .btn-plan { font-size: 0.9rem; padding: 12px; }
}