/* =========================================
   VARIÁVEIS CSS (DESIGN SYSTEM)
   Tema escuro como padrão (paleta home.css)
   ========================================= */

/* ── Tema ESCURO (padrão) ─────────────────── */
:root,
[data-theme="dark"] {
  /* ── Accent / Marca ── */
  --primary-color: #f16122;
  --primary-hover: #d14f16;
  --primary-glow: rgba(241, 97, 34, 0.22);
  --primary-bg: rgba(241, 97, 34, 0.08);
  --primary-border: rgba(241, 97, 34, 0.22);

  /* ── Superfícies ── */
  --c-bg: #060404;
  /* body base */
  --c-surface: #0a0a0a;
  /* seções principais */
  --c-surface-2: #0d0d0d;
  /* seções alternadas */
  --c-surface-3: #111111;
  /* cards sólidos */
  --c-card: rgba(255, 255, 255, 0.03);
  --c-card-hover: rgba(255, 255, 255, 0.055);

  /* ── Bordas ── */
  --c-border: rgba(255, 255, 255, 0.07);
  --c-border-md: rgba(255, 255, 255, 0.13);
  --c-section-top: rgba(255, 255, 255, 0.05);

  /* ── Texto ── */
  --c-text: #ffffff;
  --c-text-muted: rgba(255, 255, 255, 0.55);
  --c-text-soft: rgba(255, 255, 255, 0.38);
  --c-text-dim: rgba(255, 255, 255, 0.45);

  /* ── Hero gradient ── */
  --c-hero-start: #060404;
  --c-hero-mid: #100806;
  --c-hero-end: #060300;
  --c-orb-a: rgba(241, 97, 34, 0.2);
  --c-orb-b: rgba(180, 50, 10, 0.15);

  /* ── Header ── */
  --c-header-bg: rgba(15, 15, 17, 0.87);
  --c-header-border: rgba(255, 255, 255, 0.1);
  --c-nav-link: rgba(255, 255, 255, 0.7);
  --c-nav-link-hover: #ffffff;
  --c-nav-active: #ffffff;
  --c-hamburger: rgba(255, 255, 255, 0.85);

  /* ── Footer ── */
  --c-footer-bg: #060404;
  --c-footer-text: #a0aec0;

  /* ── Legado (mantidos para compatibilidade) ── */
  --dark-bg: #222222;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);

  /* ── Tipografia ── */
  --font-heading: "Raleway", sans-serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;

  /* ── Efeitos & Layout ── */
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --container-width: 1200px;
  --nav-height: 80px;
}

/* ── Tema CLARO ───────────────────────────── */
[data-theme="light"] {
  /* ── Accent / Marca (ligeiramente mais escuro para contraste) ── */
  --primary-color: #e05515;
  --primary-hover: #c44415;
  --primary-glow: rgba(224, 85, 21, 0.15);
  --primary-bg: rgba(224, 85, 21, 0.07);
  --primary-border: rgba(224, 85, 21, 0.22);

  /* ── Superfícies ── */
  --c-bg: #f7f5f2;
  --c-surface: #ffffff;
  --c-surface-2: #f2efe9;
  --c-surface-3: #eeeae4;
  --c-card: rgba(0, 0, 0, 0.028);
  --c-card-hover: #eeeae4b7;

  /* ── Bordas ── */
  --c-border: rgba(0, 0, 0, 0.08);
  --c-border-md: rgba(19, 19, 19, 0);
  --c-section-top: rgba(0, 0, 0, 0.04);

  /* ── Texto ── */
  --c-text: #1a1410;
  --c-text-muted: rgba(30, 20, 10, 0.58);
  --c-text-soft: rgba(30, 20, 10, 0.4);
  --c-text-dim: rgba(30, 20, 10, 0.48);

  /* ── Hero gradient (quente e claro) ── */
  --c-hero-start: #faf7f3;
  --c-hero-mid: #f5efe7;
  --c-hero-end: #f0e8dc;
  --c-orb-a: rgba(224, 85, 21, 0.08);
  --c-orb-b: rgba(180, 50, 10, 0.06);

  /* ── Header ── */
  --c-header-bg: rgba(247, 245, 242, 0.938);
  --c-header-border: rgba(0, 0, 0, 0.12);
  --c-nav-link: rgba(30, 20, 10, 0.62);
  --c-nav-link-hover: #1a1410;
  --c-nav-active: #1a1410;
  --c-hamburger: rgba(30, 20, 10, 0.8);

  /* ── Footer (mantém escuro mesmo em modo claro) ── */
  --c-footer-bg: #0c0704;
  --c-footer-text: #a0aec0;

  /* ── Legado ── */
  --text-main: #1a1410;
  --text-muted: rgba(30, 20, 10, 0.58);

  /* ── Hero — gradiente quente/claro ── */
  .hero {
    background:
      radial-gradient(ellipse 60% 50% at 80% 20%,
        rgba(224, 85, 21, 0.1) 0%,
        transparent 60%),
      radial-gradient(ellipse 45% 60% at 15% 80%,
        rgba(180, 50, 10, 0.07) 0%,
        transparent 55%),
      radial-gradient(ellipse 50% 40% at 50% 50%,
        rgba(255, 120, 40, 0.04) 0%,
        transparent 65%),
      linear-gradient(170deg,
        var(--c-hero-start) 0%,
        var(--c-hero-mid) 50%,
        var(--c-hero-end) 100%);
  }

  .hero::before {
    background: radial-gradient(circle,
        var(--c-orb-a) 0%,
        rgba(180, 50, 10, 0.04) 40%,
        transparent 70%);
  }

  .hero::after {
    background: radial-gradient(circle,
        var(--c-orb-b) 0%,
        rgba(100, 25, 5, 0.02) 45%,
        transparent 70%);
  }

  /* ── Wave fill ── */
  .wave-fill {
    fill: var(--c-surface);
  }

  /* ── Testimonials hero visual ── */
  .testimonials-hero-visual::before {
    background:
      radial-gradient(ellipse 70% 60% at 30% 40%,
        rgba(224, 85, 21, 0.288) 0%,
        transparent 65%),
      radial-gradient(ellipse 50% 50% at 70% 70%,
        rgba(200, 61, 10, 0.322) 0%,
        transparent 60%),
      linear-gradient(160deg,
        var(--c-surface-2) 0%,
        var(--c-surface-3) 50%,
        var(--c-surface-2) 100%);
  }

  /* ── FAQ visual ── */
  .faq-visual {
    background: linear-gradient(140deg,
        var(--c-surface-3) 0%,
        var(--c-surface-2) 60%,
        var(--c-surface-3) 100%);
    border-color: var(--c-border-md);
  }


}

/* =========================================
   RESET E BASE
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Remove o focus ring ao clicar (mantém para navegação por teclado) */
:focus:not(:focus-visible) {
  outline: none;
}

/* Remove highlight azul ao tocar em mobile (iOS/Android) */
* {
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background-color: var(--c-surface);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.highlight {
  color: var(--primary-color);
}

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

.bg-primary {
  background-color: var(--primary-color);
}

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

.text-white,
.text-white h2,
.text-white p,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6 {
  color: var(--white);
}

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

.mt-2 {
  margin-top: 1rem;
}

/* SPA Content Container */
#app-content {
  min-height: calc(100vh - var(--nav-height) - 300px);
  opacity: 1;
  transition:
    opacity 0.3s ease-in-out,
    background-color 0.35s ease;
  /* clip: corta overflow horizontal sem criar scroll container,
     preservando o position:sticky do .hero para o efeito parallax cover */
  overflow-x: clip;
  position: relative;
  z-index: 1;
  /* Fica por cima do footer sticky para o efeito reveal */
  /* Cor de fundo evita que o footer apareça por gaps criados por transforms GSAP */
  background-color: var(--c-bg);
}

/* =========================================
   BOTÕES E FORMULÁRIOS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  font-family: var(--font-body);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border-color: #e2e8f0;
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background-color: #f8f9fa;
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =========================================
   SEÇÕES GERAIS
========================================= */
.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(241, 97, 34, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.section-badge-mini {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background-color: rgba(241, 97, 34, 0.08);
  color: rgba(241, 97, 34, 0.85);
  border: 1px solid rgba(241, 97, 34, 0.2);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.highlight-italic {
  font-style: italic;
  background: linear-gradient(90deg, #f16122, #ffab6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================
   ANIMAÇÕES CSS CLASSICAS
   ========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

.pulse-anim {
  animation: pulse 4s infinite ease-in-out alternate;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

/* ── Botão flutuante de alternância de tema (fixo canto inferior direito) ── */
.btn-theme-toggle {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--c-border-md);
  background: var(--c-surface-3);
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
}

.btn-theme-toggle:hover {
  background: var(--primary-bg);
  border-color: var(--primary-border);
  color: var(--primary-color);
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 6px 24px rgba(241, 97, 34, 0.3);
}

/* =========================================
   MEDIA QUERIES (RESPONSIVIDADE)
   Regras de header → header.css
   Regras de footer → footer.css
   ========================================= */
@media screen and (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

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

@media screen and (max-width: 480px) {
  .hero-stats-mini {
    flex-direction: column;
    gap: 0.5rem;
  }
}