/* ===== TRIBUTÁRIO HUB EDUCAÇÃO — Global Styles ===== */
/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Sora:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --preto-profundo: #0A1A2A;
  --dourado-claro: #E2AE5E;
  --dourado-escuro: #B8944A;
  --azul-petroleo: #2D5168;
  --branco: #FFFFFF;
  --bg-primary: #0A1A2A;
  --bg-secondary: #0D2236;
  --bg-card: #122A3E;
  --bg-card-alt: #2D5168;
  --accent-primary: #E2AE5E;
  --accent-secondary: #B8944A;
  --accent-hover: #F0C478;
  --text-primary: #FFFFFF;
  --text-secondary: #C8D6E0;
  --text-muted: #7A9BB0;
  --border-default: #1E3448;
  --border-gold: #B8944A;
  --border-gold-light: rgba(226, 174, 94, 0.3);
  --success: #4CAF82;
  --danger: #E05555;
  --gradient-gold: linear-gradient(135deg, #E2AE5E, #B8944A);
  --gradient-bg: linear-gradient(180deg, #0A1A2A, #0D2236);
  --gradient-card: linear-gradient(145deg, #122A3E, #2D5168);
  --golden-glow: 0 0 20px rgba(226, 174, 94, 0.15);
  --golden-glow-strong: 0 0 30px rgba(226, 174, 94, 0.25);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Sora', sans-serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; border: none; outline: none; font-family: 'Inter', sans-serif; }
input, select, textarea { font-family: 'Inter', sans-serif; }

/* ===== UTILITY CLASSES ===== */
.text-gold-gradient {
  background: linear-gradient(135deg, #E2AE5E, #B8944A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.border-gold-glow {
  border: 1px solid var(--border-gold);
  box-shadow: var(--golden-glow);
}
.section-odd { background-color: var(--bg-primary); }
.section-even { background-color: var(--bg-secondary); }

/* ===== BUTTONS ===== */
.btn-gold {
  background-color: var(--accent-primary);
  color: var(--preto-profundo);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}
.btn-gold:hover {
  background-color: var(--accent-hover);
  box-shadow: var(--golden-glow-strong);
  transform: translateY(-2px);
}
.btn-gold-outline {
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-gold-outline:hover {
  background: rgba(226, 174, 94, 0.1);
  border-color: var(--accent-hover);
  color: var(--accent-hover);
  transform: translateY(-2px);
}
.btn-gold-sm {
  padding: 10px 24px;
  font-size: 0.875rem;
}
.btn-gold-lg {
  padding: 18px 40px;
  font-size: 1.125rem;
}

/* ===== CARDS ===== */
.card-premium {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s ease;
}
.card-premium:hover {
  border-color: var(--border-gold);
  box-shadow: var(--golden-glow);
  transform: translateY(-4px);
}
.card-premium-highlight {
  background: var(--bg-card);
  border: 2px solid var(--accent-primary);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--golden-glow-strong);
  transform: scale(1.03);
  position: relative;
  z-index: 2;
}

/* ===== HEADER / NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 26, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(184, 148, 74, 0.2);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(10, 26, 42, 0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-primary);
  background: rgba(226, 174, 94, 0.08);
}

/* ===== MOBILE DRAWER ===== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-default);
  z-index: 1001;
  transition: right 0.35s ease;
  padding: 24px;
  overflow-y: auto;
}
.mobile-drawer.open { right: 0; }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-nav-link {
  display: block;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-default);
  transition: color 0.3s ease;
}
.mobile-nav-link:hover { color: var(--accent-primary); }

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite;
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-100px) scale(1); }
}
.hero-geo-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
}

/* ===== BADGE / PILL ===== */
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(226, 174, 94, 0.12);
  border: 1px solid rgba(226, 174, 94, 0.3);
  color: var(--accent-primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
}
.badge-sm {
  padding: 4px 12px;
  font-size: 0.75rem;
  border-radius: 20px;
}
.badge-city {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(45, 81, 104, 0.5);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
}

/* ===== COUNTDOWN ===== */
.countdown-block {
  background: var(--bg-card);
  border: 1px solid var(--border-gold-light);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  min-width: 90px;
}
.countdown-number {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
}
.countdown-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
@media (min-width: 768px) {
  .countdown-number { font-size: 3.5rem; }
  .countdown-block { padding: 20px 28px; min-width: 110px; }
}

/* ===== STATS BAR ===== */
.stat-item .stat-number {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
}
.stat-item .stat-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 16px;
}
@media (min-width: 768px) { .section-title { font-size: 2.75rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3.25rem; } }
.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ===== ICEBERG ===== */
.iceberg-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.iceberg-surface {
  background: rgba(122, 155, 176, 0.1);
  border: 1px solid rgba(122, 155, 176, 0.2);
  border-radius: 16px 16px 0 0;
  padding: 32px;
  position: relative;
}
.iceberg-surface::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(122, 155, 176, 0.4), transparent);
}
.iceberg-surface .waterline-label {
  position: absolute;
  right: -10px;
  bottom: -14px;
  background: var(--bg-secondary);
  padding: 4px 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
  border: 1px solid rgba(122, 155, 176, 0.3);
  border-radius: 4px;
  z-index: 2;
}
.iceberg-deep {
  background: linear-gradient(180deg, rgba(226, 174, 94, 0.05), rgba(226, 174, 94, 0.12));
  border: 1px solid var(--border-gold-light);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 32px;
}
.iceberg-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.iceberg-item.surface-item { color: var(--text-muted); }
.iceberg-item.deep-item { color: var(--text-secondary); }
.iceberg-item .icon-surface { color: var(--text-muted); opacity: 0.5; }
.iceberg-item .icon-deep { color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* ===== BRAZIL MAP ===== */
.brazil-map-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto 60px;
}
.city-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(226, 174, 94, 0.6);
  animation: cityPulse 2s infinite;
}
.city-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: cityRipple 2s infinite;
}
@keyframes cityPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(226, 174, 94, 0.6); }
  50% { box-shadow: 0 0 35px rgba(226, 174, 94, 0.9); }
}
@keyframes cityRipple {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2); opacity: 0; }
}
.city-label {
  position: absolute;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ===== SPECIALIST CARD ===== */
.specialist-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--accent-secondary);
  object-fit: cover;
  background: var(--bg-card-alt);
}
.specialist-badge {
  display: inline-block;
  background: rgba(226, 174, 94, 0.1);
  border: 1px solid var(--border-gold-light);
  color: var(--accent-primary);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  margin: 2px;
}

/* ===== TESTIMONIAL CARD ===== */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}
.testimonial-card .quote-icon {
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 3rem;
  color: var(--accent-secondary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

/* ===== PRICING ===== */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.4s ease;
  position: relative;
}
.pricing-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--golden-glow);
  transform: translateY(-4px);
}
.pricing-card.featured {
  border: 2px solid var(--accent-primary);
  box-shadow: var(--golden-glow-strong);
  transform: scale(1.04);
}
.pricing-card.featured:hover {
  transform: scale(1.06);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-gold);
  color: var(--preto-profundo);
  font-weight: 700;
  padding: 6px 24px;
  border-radius: 20px;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
  border: 1px solid var(--border-default);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(226, 174, 94, 0.1);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: color 0.3s ease;
}
.faq-question:hover { color: var(--accent-primary); }
.faq-item.active .faq-question { color: var(--accent-primary); }
.faq-chevron {
  transition: transform 0.3s ease;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.active .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}
.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== FORM ===== */
.form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(226, 174, 94, 0.15);
}
.form-input::placeholder { color: var(--text-muted); }
.form-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237A9BB0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
select.form-input option { background: var(--bg-card); color: var(--text-primary); }

/* ===== FOOTER ===== */
.footer { background: #050A12; border-top: 1px solid rgba(184, 148, 74, 0.2); }
.footer-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s ease;
  display: block;
  padding: 4px 0;
}
.footer-link:hover { color: var(--accent-primary); }

/* ===== CAROUSEL ===== */
.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}
.carousel-container { overflow: hidden; position: relative; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  cursor: pointer;
}
.carousel-btn:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--golden-glow);
}
.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }

/* ===== LOGO MARQUEE ===== */
.marquee-container { overflow: hidden; position: relative; }
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  filter: grayscale(100%) brightness(0.6);
  opacity: 0.5;
  transition: all 0.3s ease;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marquee-item:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* ===== HERO GLOW ===== */
.hero-logo-glow {
  position: relative;
  display: inline-block;
}
.hero-logo-glow::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(226, 174, 94, 0.15) 0%, transparent 70%);
  animation: glowPulse 3s infinite;
  pointer-events: none;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ===== TRAIL CARD TOP BORDER ===== */
.trail-card-top {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #E2AE5E, #B8944A) 1;
}

/* ===== STICKY CTA MOBILE ===== */
.sticky-cta-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 26, 42, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-gold-light);
  padding: 12px 20px;
  z-index: 999;
  display: none;
  animation: slideUpCTA 0.4s ease;
}
@keyframes slideUpCTA {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@media (max-width: 767px) {
  .sticky-cta-mobile.show { display: block; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--azul-petroleo); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-secondary); }

/* ===== SELECTION ===== */
::selection { background: rgba(226, 174, 94, 0.3); color: var(--text-primary); }

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 640px) {
  .section-title { font-size: 1.75rem; }
  .section-subtitle { font-size: 0.95rem; }
  .card-premium { padding: 24px; }
  .btn-gold, .btn-gold-outline { padding: 12px 24px; font-size: 0.9rem; }
  .pricing-card { padding: 28px 24px; }
  .pricing-card.featured { transform: scale(1); }
}

/* ===== CITY CARD TOP GRADIENT ===== */
.city-card-top {
  position: relative;
}
.city-card-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 16px 16px 0 0;
}

/* ===== COUNTER UP ===== */
.counter-value {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  color: var(--accent-primary);
}

/* Loader / Spinner */
.spinner {
  border: 3px solid var(--border-default);
  border-top: 3px solid var(--accent-primary);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* SVG Map line draw */
.map-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s ease;
}
.map-line.drawn { stroke-dashoffset: 0; }
