/* ==========================================================================
   LDM SERVIÇOS DIGITAIS (LDM DOCS) - DESIGN SYSTEM & BASE TOKENS
   Domínio: ldmdocs.com.br
   Identidade: Papel que vira dado (Verde-petróleo nobre, off-white e laser menta)
   ========================================================================== */

:root {
  /* Paleta Corporativa LDM Docs */
  --ldm-bg-dark: #071212;
  --ldm-bg-main: #0a1918;
  --ldm-bg-surface: #0e2423;
  --ldm-bg-surface-elevated: #143331;
  --ldm-bg-surface-hover: #1a403d;

  /* Bordas e Realces */
  --ldm-border-subtle: rgba(45, 106, 106, 0.28);
  --ldm-border-strong: rgba(45, 106, 106, 0.55);
  --ldm-border-glow: rgba(45, 212, 191, 0.35);

  /* Texto e Tipografia */
  --ldm-text-light: #f4f6f0;
  --ldm-text-muted: #9ab3b0;
  --ldm-text-subtle: #678480;

  /* Acentos de Marca */
  --ldm-accent-teal: #0d9488;
  --ldm-accent-teal-deep: #097268;
  --ldm-accent-mint: #2dd4bf;
  --ldm-accent-laser: #10b981;
  --ldm-accent-amber: #d97706;

  /* Famílias Tipográficas */
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Geometria e Espaçamento */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container-max: 1160px;

  /* Transições Otimizadas para Compositor */
  --trans-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --trans-smooth: 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

svg {
  max-width: 100%;
  flex-shrink: 0;
  vertical-align: middle;
}

html {
  font-family: var(--font-body);
  background-color: var(--ldm-bg-dark);
  color: var(--ldm-text-light);
  line-height: 1.6;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-color: var(--ldm-bg-dark);
}

/* Acessibilidade: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* Barra de Navegação Superior */
.ldm-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 18, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ldm-border-subtle);
  padding: 1rem 0;
}

.ldm-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ldm-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ldm-text-light);
}

.ldm-brand-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.ldm-nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

@media (min-width: 768px) {
  .ldm-nav-links {
    display: flex;
  }
}

.ldm-nav-item a {
  color: var(--ldm-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--trans-fast);
}

.ldm-nav-item a:hover {
  color: var(--ldm-accent-mint);
}

.ldm-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ldm-accent-teal);
  color: #ffffff;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: background var(--trans-fast), transform var(--trans-fast);
  white-space: nowrap;
}

.ldm-nav-cta:hover {
  background: var(--ldm-accent-teal-deep);
  transform: translateY(-1px);
}

.ldm-nav-cta:focus-visible {
  outline: 2px solid var(--ldm-accent-mint);
  outline-offset: 2px;
}

/* Badges e Rótulos Técnicos */
.ldm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  background: rgba(45, 212, 191, 0.1);
  color: var(--ldm-accent-mint);
  border: 1px solid rgba(45, 212, 191, 0.25);
  margin-bottom: 1rem;
}

.ldm-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ldm-accent-laser);
  box-shadow: 0 0 8px var(--ldm-accent-laser);
}

/* Seções Gerais */
.ldm-section {
  padding: 5rem 0;
  position: relative;
  border-bottom: 1px solid var(--ldm-border-subtle);
}

@media (max-width: 640px) {
  .ldm-section {
    padding: 3.5rem 0;
  }
}

.ldm-section-header {
  margin-bottom: 3rem;
  max-width: 720px;
}

.ldm-section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ldm-text-light);
  margin-bottom: 0.85rem;
  line-height: 1.2;
}

.ldm-section-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--ldm-text-muted);
  line-height: 1.6;
}

/* Botões Globais */
.ldm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--trans-fast), background var(--trans-fast), border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.ldm-btn-primary {
  background: var(--ldm-accent-teal);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.ldm-btn-primary:hover {
  background: #0f766e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}

.ldm-btn-secondary {
  background: var(--ldm-bg-surface-elevated);
  color: var(--ldm-text-light);
  border: 1px solid var(--ldm-border-subtle);
}

.ldm-btn-secondary:hover {
  background: var(--ldm-bg-surface-hover);
  border-color: var(--ldm-border-glow);
  transform: translateY(-2px);
}

.ldm-btn:focus-visible {
  outline: 2px solid var(--ldm-accent-mint);
  outline-offset: 3px;
}
