/* ==========================================================================
   SURGICAL LUMINESCENCE — CLINICAL MINIMALISM & PRECISION OPTICAL HIGH-TECH
   Design System para Microlaser Equipamentos Hospitalares (Goiânia - GO)
   Baseado em DESIGN.md & code.html
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --ix-bg-base: #f8f9ff;
  --ix-bg-surface: #ffffff;
  --ix-bg-card: #ffffff;
  --ix-bg-card-hover: #eff4ff;
  --ix-bg-input: #ffffff;
  --ix-bg-elevated: #ffffff;

  /* Optical Emerald Accents */
  --ix-accent: #005d42;
  --ix-accent-hover: #047857;
  --ix-accent-dim: rgba(4, 120, 87, 0.08);
  --ix-accent-border: rgba(4, 120, 87, 0.25);
  --ix-accent-glow: 0 0 16px rgba(16, 185, 129, 0.2);
  --ix-on-accent: #ffffff;

  --ix-secondary: #10b981;
  --ix-secondary-dim: rgba(16, 185, 129, 0.12);

  /* Deep Contrast Telemetry / Dark Console */
  --ix-console-bg: #213145;
  --ix-console-text: #eaf1ff;
  --ix-console-border: rgba(255, 255, 255, 0.1);

  /* State Semantics */
  --ix-status-online: #10b981;
  --ix-status-warning: #f59e0b;
  --ix-status-alert: #ef4444;
  --ix-status-info: #0284c7;

  /* High Contrast Clinical Typography */
  --ix-text-primary: #0b1c30;
  --ix-text-secondary: #3e4943;
  --ix-text-muted: #6e7a73;
  --ix-text-mono: #005d42;

  /* Clean Hairline Borders */
  --ix-border: #e2e8f0;
  --ix-border-strong: #cbd5e1;
  --ix-border-active: #047857;

  /* Ambient Hospital Shadows (DESIGN.md) */
  --ix-shadow-card: 0px 1px 3px rgba(15, 23, 42, 0.04), 0px 8px 24px -4px rgba(4, 120, 87, 0.05);
  --ix-shadow-hover: 0px 4px 12px rgba(15, 23, 42, 0.06), 0px 12px 28px -4px rgba(4, 120, 87, 0.12);
}

/* Modo Escuro Opcional */
html.dark {
  --ix-bg-base: #0b1c30;
  --ix-bg-surface: #132338;
  --ix-bg-card: #182b44;
  --ix-bg-card-hover: #213145;
  --ix-bg-input: #132338;
  --ix-bg-elevated: #213145;

  --ix-accent: #10b981;
  --ix-accent-hover: #34d399;
  --ix-accent-dim: rgba(16, 185, 129, 0.15);
  --ix-accent-border: rgba(16, 185, 129, 0.35);
  --ix-on-accent: #002115;

  --ix-text-primary: #f8f9ff;
  --ix-text-secondary: #cbdbf5;
  --ix-text-muted: #94a3b8;
  --ix-text-mono: #7bd8b1;

  --ix-border: rgba(255, 255, 255, 0.1);
  --ix-border-strong: rgba(255, 255, 255, 0.18);
  --ix-border-active: #10b981;
}

@layer base {
  html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: clip;
  }
  body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: clip;
    background-color: var(--ix-bg-base);
    color: var(--ix-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: background-color 0.2s ease, color 0.2s ease;
  }
}

/* Mobile Smooth Scrolling & Overflow Containment */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .product-item {
    border-radius: 0.875rem;
  }
}

/* Animação Óptica Emerald Pulse (code.html & DESIGN.md) */
@keyframes emeraldPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(4, 120, 87, 0);
  }
}

.pulse-emerald {
  animation: emeraldPulse 2.5s infinite;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: #10b981;
  display: inline-block;
  animation: emeraldPulse 2s infinite;
}

/* ==========================================================================
   CARDS DE EQUIPAMENTOS DO CATÁLOGO (.product-item)
   Preserva a estrutura completa de code.html (imagem 16/10, descrição e 3 specs)
   ========================================================================== */
.product-item {
  background-color: var(--ix-bg-card);
  border: 1px solid rgba(189, 201, 193, 0.35);
  box-shadow: var(--ix-shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-item:hover {
  transform: translateY(-2px);
  border-color: rgba(4, 120, 87, 0.4);
  box-shadow: var(--ix-shadow-hover);
}

/* ==========================================================================
   INDICADOR DE NAVEGAÇÃO ATIVA
   ========================================================================== */
.nav-link-ix {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link-ix::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--ix-accent);
  transition: width 0.2s ease;
}

.nav-link-ix:hover::after,
.nav-link-ix.active::after {
  width: 100%;
}

/* ==========================================================================
   MATRIZ DE DADOS HOSPITALAR (TABELA TÉCNICA - DESIGN.md)
   ========================================================================== */
.ix-table {
  width: 100%;
  min-width: 1360px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.ix-table th {
  background-color: #eff4ff;
  color: #0b1c30;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  border-bottom: 1px solid #cbd5e1;
  text-align: left;
  white-space: nowrap;
}

.ix-table th:last-child {
  padding-right: 24px;
}

.ix-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  color: #0b1c30;
}

.ix-table td:last-child {
  padding-right: 24px;
  white-space: nowrap;
}

.ix-table tbody tr:nth-child(odd) td {
  background-color: #ffffff;
}

.ix-table tbody tr:nth-child(even) td {
  background-color: #f8fafc;
}

.ix-table tbody tr:hover td {
  background-color: #eff4ff;
}

/* ==========================================================================
   ACCORDION FAQ
   ========================================================================== */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background-color: #ffffff;
  box-shadow: var(--ix-shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-header {
  cursor: pointer;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 24px;
  color: #3e4943;
  font-size: 15px;
  line-height: 1.6;
}

.faq-item.open,
.faq-item.active {
  border-color: #047857;
}

.faq-item.open .faq-content,
.faq-item.active .faq-content {
  max-height: 500px;
  padding: 0 24px 20px 24px;
}

.faq-item.open .faq-icon,
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #005d42;
}

/* ==========================================================================
   SCROLLBAR DISCRETA
   ========================================================================== */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
  border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* ==========================================================================
   HERO MOTION DESIGN — PRECISION RADAR & LASER SCANNER (RESPONSIVO)
   ========================================================================== */
@keyframes laserSweep {
  0% {
    top: -5%;
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.9;
  }
  100% {
    top: 105%;
    opacity: 0;
  }
}

@keyframes pingSlow {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  70% {
    transform: scale(2.2);
    opacity: 0;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.laser-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.4) 15%, #10b981 50%, rgba(16, 185, 129, 0.4) 85%, transparent 100%);
  box-shadow: 0 0 16px 2px rgba(16, 185, 129, 0.7), 0 0 32px 6px rgba(4, 120, 87, 0.4);
  animation: laserSweep 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 20;
}

.ping-ring {
  animation: pingSlow 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ==========================================================================
   LANDING PAGE DESIGN SYSTEM — BUTTON TOKENS & RESPONSIVE RULES (B1, B2, B7, B9, B10)
   ========================================================================== */

/* Regras Tipográficas: Prevenção de Palavras Órfãs (B1 Copy Rules) */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
}

/* Prevenção de Overflow Horizontal Segura sem bloquear rolagem de tela */
html, body {
  overflow-x: clip;
}

/* Botões: Curva de Transição Base B7 e Feedback Físico Ativo B9 */
.btn-lp,
button,
a[role="button"] {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-lp:active,
button:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-lp:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ix-accent);
  outline-offset: 2px;
}

/* Escala Oficial de Botões (B1 & B2 Spacing) */
/* Button-lg: 18px / 28px Semibold */
.btn-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 0.5rem;
  min-height: 48px;
}

/* Button-md: 16px / 24px Semibold (Regra B2: 8px vertical, 12px horizontal) */
.btn-md {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 0.5rem;
  min-height: 42px;
}

/* Button-sm: 14px / 20px Semibold */
.btn-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 0.5rem;
  min-height: 38px;
}

/* Button-Xsm: 12px / 16px Semibold (Tabelas e Cards) */
.btn-xsm {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 0.5rem;
  min-height: 34px;
}

/* Variantes Visuais com Transições Suaves */
.btn-primary-lp {
  background-color: var(--ix-accent);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(0, 93, 66, 0.24);
}

.btn-primary-lp:hover {
  background-color: var(--ix-accent-hover);
  box-shadow: 0 6px 18px rgba(0, 93, 66, 0.32);
}

.btn-secondary-lp {
  background-color: var(--ix-bg-surface);
  color: var(--ix-text-primary);
  border: 1px solid var(--ix-border-strong);
}

.btn-secondary-lp:hover {
  background-color: var(--ix-bg-card-hover);
  border-color: var(--ix-accent);
}

/* Dica de Rolagem Horizontal no Mobile para Tabelas Técnicas */
.table-scroll-hint {
  display: none;
}

@media (max-width: 768px) {
  .table-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background-color: #eff4ff;
    color: #0b1c30;
    font-size: 11px;
    font-weight: 600;
    border-radius: 0.5rem;
    margin-bottom: 8px;
  }
}

/* Ajustes Mobile Finos (Telas de 390px - iPhones / Androids Modernos) */
@media (max-width: 640px) {
  /* No mobile, botões de ação do Hero ganham área de toque ergonômica total */
  .hero-cta-btn {
    width: 100% !important;
    min-height: 48px !important;
    justify-content: center !important;
  }

  /* Redução de padding excessivo para não espremer telas estreitas */
  .mobile-tight-px {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
