/* ========================================
   THRONUS — Global Styles
   Reset, Variables, Typography & Utilities
   ======================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --navy-deep: #030F23;
  --navy-imperial: #0F172A;
  --gold-primary: #F59E0B;
  --gold-dark: #D97706;
  --violet-deep: #2E1065;
  --white-ice: #F8FAFC;
  --gray-blue: #64748B;

  /* Extended */
  --gold-light: #FCD34D;
  --navy-mid: #0A1628;
  --navy-light: #1E293B;
  --violet-mid: #4C1D95;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(3, 15, 35, 0.3);
  --shadow-card-hover: 0 12px 40px rgba(3, 15, 35, 0.5);
  --shadow-gold: 0 4px 20px rgba(245, 158, 11, 0.25);
  --shadow-gold-hover: 0 8px 32px rgba(245, 158, 11, 0.4);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--navy-deep);
  color: var(--white-ice);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Transição suave de tema */
body.theme-transitioning,
body.theme-transitioning *,
body.theme-transitioning *::before,
body.theme-transitioning *::after {
  transition: background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    fill 0.3s ease,
    stroke 0.3s ease !important;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.section-badge i {
  font-size: 0.7rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--white-ice);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-blue);
  max-width: 600px;
  line-height: 1.8;
}

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Keyframe Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse-gold {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }

  50% {
    box-shadow: 0 0 0 15px rgba(245, 158, 11, 0);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes rotate-border {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ---------- Scroll Animation Classes ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Page Banner (shared for inner pages) ---------- */
.page-banner {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-imperial) 100%);
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 20%, rgba(46, 16, 101, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.page-banner>* {
  position: relative;
  z-index: 1;
}

.page-banner .section-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}

.page-banner .section-subtitle {
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--gray-blue);
}

.breadcrumb a {
  color: var(--gray-blue);
  transition: var(--transition-fast);
}

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

.breadcrumb .separator {
  color: rgba(248, 250, 252, 0.2);
}

.breadcrumb .current {
  color: var(--gold-primary);
  font-weight: 500;
}

/* ---------- Responsive Base ---------- */
@media (max-width: 768px) {
  :root {
    --section-padding: 72px 0;
  }

  .page-banner {
    padding: 140px 0 60px;
  }
}

/* Base compartilhada para telas estreitas: evita cortes de texto e preserva
   áreas de toque confortáveis em todas as páginas. */
@media (max-width: 480px) {
  :root {
    --section-padding: 64px 0;
    --container-padding: 0 20px;
  }

  .page-banner {
    padding: 124px 0 54px;
  }

  .section-badge {
    max-width: 100%;
    padding: 6px 13px;
    font-size: 0.68rem;
    letter-spacing: 1.3px;
    text-align: left;
  }

  .section-subtitle,
  .about-full-text {
    font-size: 0.98rem;
  }

  h1, h2, h3, p, a, button, span {
    overflow-wrap: anywhere;
  }
}

/* ================================================================
   THRONUS — Sistema de Tema Claro (Light Mode)
   Ativado quando <html data-theme="light">
   Inverte fundos para claros e textos/letras para cores escuras
   ================================================================ */
body,
.navbar,
.service-card,
.footer,
.card,
.stat-card,
.value-card,
.contact-card,
.contact-form-card {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

[data-theme="light"] {
  --navy-deep: #F4F6FB;
  --navy-imperial: #FFFFFF;
  --navy-mid: #EAEFF7;
  --navy-light: #E2E8F0;
  --white-ice: #030F23;
  --gray-blue: #475569;
}

[data-theme="light"] body {
  background-color: #F4F6FB;
  color: #1E293B;
}

/* ── Títulos e Tipografia em Cor Escura no Modo Claro ── */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] .section-title,
[data-theme="light"] .hero-title,
[data-theme="light"] .page-banner .section-title {
  color: #030F23;
}

[data-theme="light"] .section-subtitle,
[data-theme="light"] .hero-description,
[data-theme="light"] .about-text {
  color: #475569;
}

[data-theme="light"] .hero-title .highlight {
  background: linear-gradient(135deg, #D97706, #B45309);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Seção Hero no Modo Claro ── */
[data-theme="light"] .hero {
  background: linear-gradient(180deg, #F8FAFC 0%, #EEF2F7 100%);
}

[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(46, 16, 101, 0.04) 0%, transparent 60%);
}

[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(3, 15, 35, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 15, 35, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .hero-stats {
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero-stat-number {
  color: #D97706;
}

[data-theme="light"] .hero-stat-label {
  color: #64748B;
}

/* ── Page Banners no Modo Claro ── */
[data-theme="light"] .page-banner {
  background: linear-gradient(180deg, #FFFFFF 0%, #EEF2F7 100%);
}

[data-theme="light"] .page-banner::before {
  background:
    radial-gradient(ellipse 50% 40% at 50% 20%, rgba(245, 158, 11, 0.06) 0%, transparent 60%);
}

[data-theme="light"] .breadcrumb a {
  color: #64748B;
}

[data-theme="light"] .breadcrumb .separator {
  color: #CBD5E1;
}

/* ── Badges no Modo Claro ── */
[data-theme="light"] .section-badge,
[data-theme="light"] .hero-badge {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #D97706;
}

/* ── Cards e Elementos no Modo Claro ── */
[data-theme="light"] .service-card,
[data-theme="light"] .value-card,
[data-theme="light"] .contact-card,
[data-theme="light"] .contact-form,
[data-theme="light"] .contact-form-card,
[data-theme="light"] .contact-form-wrapper,
[data-theme="light"] .contact-info-card,
[data-theme="light"] .mvv-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .tech-category,
[data-theme="light"] .history-card,
[data-theme="light"] .team-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .service-card:hover,
[data-theme="light"] .value-card:hover,
[data-theme="light"] .contact-card:hover,
[data-theme="light"] .mvv-card:hover {
  background: #FFFFFF !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09) !important;
}

[data-theme="light"] .service-card h3,
[data-theme="light"] .value-card h3,
[data-theme="light"] .contact-card h3 {
  color: #030F23 !important;
}

[data-theme="light"] .service-card p,
[data-theme="light"] .value-card p,
[data-theme="light"] .contact-card p {
  color: #475569 !important;
}

/* ── Inputs e Formulários no Modo Claro ── */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #030F23 !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: #94A3B8 !important;
}

[data-theme="light"] .form-group label {
  color: #1E293B !important;
}

/* ── Botões com Contraste Perfeito ── */
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-primary * {
  color: #030F23 !important;
}

[data-theme="light"] .btn-secondary {
  background: #FFFFFF;
  color: #030F23;
  border-color: #CBD5E1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .btn-secondary:hover {
  background: #F1F5F9;
  border-color: var(--gold-primary);
  color: #D97706;
}

[data-theme="light"] .scroll-top {
  color: #030F23 !important;
}
