/* ==========================================================================
   Teoria do Minuto - Design System & Stylesheet (Mobile-First)
   Paleta: Azul Marinho Nobre (#1A365D), Dourado Solar (#D4AF37), Neutros
   ========================================================================== */

:root {
  --navy-900: #0a1128;
  --navy-800: #0f1c3f;
  --navy-700: #1a365d;
  --navy-600: #2a4365;
  --navy-500: #3182ce;
  
  --gold-500: #d4af37;
  --gold-400: #e5c158;
  --gold-300: #f3d889;
  --gold-600: #b89225;
  --gold-glow: rgba(212, 175, 55, 0.25);
  
  --bg-light: #f8fafc;
  --card-bg-light: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(10, 17, 40, 0.08);
  --shadow-lg: 0 10px 30px rgba(10, 17, 40, 0.12);
  --shadow-gold: 0 8px 24px rgba(212, 175, 55, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--navy-900);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  min-height: 48px; /* Touch target minimum */
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-700);
}

.btn-outline:hover {
  background: var(--navy-700);
  color: #ffffff;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  min-height: 40px;
}

.btn-block {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-600);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-light {
  background: rgba(255, 255, 255, 0.15);
  color: var(--gold-300);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 17, 40, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: #ffffff;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  font-size: 1.25rem;
  box-shadow: var(--shadow-gold);
}

.brand-name span {
  color: var(--gold-400);
}

.nav-menu {
  display: none; /* Desktop only */
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Toggle Switch */
.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lang-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--gold-500);
  color: var(--navy-900);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  background: var(--navy-900);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-nav-link {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover {
  color: var(--gold-400);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, #1e3a8a 0%, var(--navy-900) 70%);
  color: #ffffff;
  padding: 120px 0 70px;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to top, var(--bg-light), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-badge {
  margin-bottom: 1.25rem;
}

.hero-title {
  color: #ffffff;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  color: var(--gold-400);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-400);
  font-family: 'Outfit', sans-serif;
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
}

.hero-card-visual {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  position: relative;
}

.quote-box {
  border-left: 3px solid var(--gold-500);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.quote-text {
  font-size: 1.1rem;
  font-style: italic;
  color: #f1f5f9;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.quote-author {
  font-size: 0.85rem;
  color: var(--gold-400);
  font-weight: 700;
}

/* ==========================================================================
   Section Common
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-tag {
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   Portais Grid (Os 4 Portais de Conversão)
   ========================================================================== */
.portals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.portal-card {
  background: var(--card-bg-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-400);
}

.portal-card.featured {
  background: linear-gradient(160deg, #ffffff 0%, #f1f5f9 100%);
  border: 2px solid var(--gold-500);
  box-shadow: var(--shadow-gold);
}

.portal-badge-top {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.portal-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  background: rgba(26, 54, 93, 0.08);
  color: var(--navy-700);
}

.portal-card.featured .portal-icon {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
}

.portal-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.portal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.portal-features {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.portal-features li {
  font-size: 0.9rem;
  color: var(--text-dark);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.portal-features li span.check {
  color: #16a34a;
  font-weight: 800;
}

/* ==========================================================================
   Portal 2 Focus: O Sistema da Construção / Minute Smart (A Solução da Ana)
   ========================================================================== */
.ana-spotlight {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  margin-top: 3.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.ana-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.ana-text h3 {
  color: #ffffff;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.ana-text p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.three-numbers-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.num-pill {
  text-align: center;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.num-green { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.num-yellow { background: rgba(234, 179, 8, 0.15); color: #facc15; }
.num-red { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.num-val {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.num-lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
}

.ana-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==========================================================================
   Biblioteca / Livros Showcase
   ========================================================================== */
.books-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.book-card {
  background: var(--card-bg-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: var(--transition);
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.book-cover-mock {
  height: 200px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  color: #ffffff;
  position: relative;
  box-shadow: var(--shadow-md);
}

.book-cover-mock.gold-edition {
  background: radial-gradient(circle at 30% 30%, #2a4365 0%, var(--navy-900) 100%);
  border: 1px solid var(--gold-500);
}

.book-cover-mock.kids-edition {
  background: linear-gradient(135deg, #1e3a8a, #0d9488);
}

.book-cover-mock.flower-edition {
  background: linear-gradient(135deg, #4c1d95, #1e1b4b);
}

.book-tag {
  font-size: 0.75rem;
  color: var(--gold-400);
  font-weight: 700;
  text-transform: uppercase;
}

.book-cover-title {
  font-size: 1.3rem;
  color: #ffffff;
  font-weight: 800;
}

.book-author {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.book-info h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.book-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.book-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.book-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-900);
}

/* ==========================================================================
   Agendamento VIP & Formulário 15 Minutos
   ========================================================================== */
.vip-section {
  background: #f1f5f9;
}

.vip-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text-dark);
  font-family: inherit;
  transition: var(--transition);
  min-height: 48px;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-900);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 340px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   Modals (Checkout Stripe Mock & Demonstração)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 17, 40, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  position: relative;
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.25rem;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  min-width: 36px;
  min-height: 36px;
}

.modal-body {
  padding: 1.5rem;
}

.stripe-badge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-700);
}

.pay-options-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.pay-tab {
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.pay-tab.active {
  border-color: var(--navy-700);
  background: var(--navy-900);
  color: #ffffff;
}

.webhook-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 380px;
  background: var(--navy-900);
  color: #ffffff;
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 3000;
  display: none;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive Breakpoints (Tablets & Desktops)
   ========================================================================== */

/* Tablets (min-width: 768px) */
@media (min-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-ctas {
    flex-direction: row;
  }
  
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .portals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .books-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .ana-actions {
    flex-direction: row;
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
  
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .nav-link {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
  }
  
  .nav-link:hover {
    color: var(--gold-400);
  }
  
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
  
  .hero-title {
    font-size: 3.25rem;
  }
  
  .portals-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .ana-grid {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 1.5rem;
  }
}
