/* ==========================================================================
   PH INFORMÁTICA — DESIGN SYSTEM & ESTILO OFICIAL
   Tema: Tecnologia, Luz e Profundidade (Azul & Branco Brilhante)
   Superfície Contínua Sem Caixas Cinzas · Motion Puro em GPU (transform)
   ========================================================================== */

/* Design Tokens HSL — Auditados nas Cores Oficiais da Marca */
:root {
  /* Marca e Luz */
  --royal: hsl(224, 94%, 37%);           /* #0b38b3 — a cor da marca */
  --royal-glow: hsla(224, 94%, 48%, 0.45);
  --cyan: hsl(199, 100%, 64%);           /* #47c6ff — a luz e brilho */
  --cyan-bright: hsl(195, 100%, 75%);
  --cyan-glow: hsla(199, 100%, 64%, 0.35);
  --deep: hsl(216, 44%, 15%);            /* #162439 — profundidade */
  --night: hsl(217, 57%, 7%);            /* #070e1a — base tecnológica */
  --surface-tech: hsl(218, 48%, 10%);

  /* Branco Luminoso */
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.92);
  --white-dim: rgba(255, 255, 255, 0.76);
  --white-border: rgba(255, 255, 255, 0.16);
  --white-border-glow: rgba(71, 198, 255, 0.32);

  /* Dimensões & Espaçamentos Fluidos */
  --container-max: 640px;
  --pad-fluid: clamp(16px, 4.5vw, 28px);
  --touch-min: 48px;
  --radius-pill: 9999px;
  --radius-card: 18px;

  /* Tipografia do Sistema de Alto Desempenho */
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Universal & Prevenção Rigorosa de Estouro */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

html {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  background-color: var(--night);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background: radial-gradient(circle at 50% 0%, var(--deep) 0%, var(--night) 85%);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Superfície Contínua Sem Caixas Cinzas */
.site-surface {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Luz Ambiente Tecnológica */
.tech-light-ambient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ambient-beam {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.55;
}

.beam-top {
  top: -120px;
  left: 50%;
  width: min(100vw, 680px);
  height: 380px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--royal-glow) 0%, var(--cyan-glow) 40%, transparent 70%);
}

.beam-bottom {
  bottom: 80px;
  left: 50%;
  width: min(90vw, 520px);
  height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--royal-glow) 0%, transparent 65%);
}

.ambient-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(71, 198, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(71, 198, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 25%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 25%, black 40%, transparent 80%);
}

/* Barra de Topo Integrada (min-height, padding fluido em todas as resoluções) */
.top-nav {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--pad-fluid);
  padding-block: 10px;
  border-bottom: 1px solid var(--white-border);
  background: rgba(11, 24, 46, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  width: 100%;
  max-width: var(--container-max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulseLight 2s infinite ease-in-out;
}

.nav-status-text {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  overflow-wrap: anywhere;
}

.nav-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--cyan);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(71, 198, 255, 0.1);
  border: 1px solid rgba(71, 198, 255, 0.3);
  transition: all var(--transition-smooth);
}

.nav-phone-link:hover, .nav-phone-link:focus-visible {
  color: var(--white);
  background: var(--royal);
  border-color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
}

.nav-phone-num {
  overflow-wrap: anywhere;
}

/* Fluxo Central da Página */
.main-flow {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--container-max);
  padding-inline: var(--pad-fluid);
  padding-top: clamp(24px, 5vw, 42px);
  padding-bottom: clamp(36px, 6vw, 60px);
}

.flow-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero Section */
.hero-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-emblem-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.emblem-halo {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  animation: haloBreathe 4s infinite alternate ease-in-out;
}

.brand-emblem {
  position: relative;
  z-index: 2;
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(11, 56, 179, 0.6));
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(11, 56, 179, 0.45) 0%, rgba(71, 198, 255, 0.2) 100%);
  border: 1px solid var(--white-border-glow);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  box-shadow: 0 4px 18px rgba(7, 14, 26, 0.6);
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.brand-badge svg {
  color: var(--cyan);
  flex-shrink: 0;
}

.brand-title {
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--white);
  text-shadow: 0 0 24px rgba(71, 198, 255, 0.4);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.brand-subtitle {
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.brand-description {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--white-soft);
  max-width: 480px;
  margin-bottom: 28px;
  overflow-wrap: anywhere;
}

/* Botão Principal Hero com Shiny Sweep Glow */
.hero-primary-action {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.btn-hero-whatsapp {
  width: 100%;
  background: linear-gradient(135deg, var(--royal) 0%, hsl(224, 94%, 48%) 100%);
  border: 1.5px solid var(--cyan);
  box-shadow: 0 8px 30px var(--royal-glow), 0 0 16px var(--cyan-glow);
}

.btn-hero-whatsapp:hover, .btn-hero-whatsapp:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 38px var(--royal-glow), 0 0 26px rgba(71, 198, 255, 0.7);
  border-color: var(--white);
}

/* Botões de Ação Unificados (Design System Premium) */
.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--touch-min);
  padding: 16px 20px;
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--white);
  background: linear-gradient(145deg, rgba(22, 36, 57, 0.85) 0%, rgba(11, 24, 46, 0.95) 100%);
  border: 1px solid var(--white-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-smooth);
}

.action-btn:hover, .action-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 10px 28px rgba(11, 56, 179, 0.35), 0 0 18px var(--cyan-glow);
  background: linear-gradient(145deg, rgba(27, 44, 70, 0.95) 0%, rgba(14, 30, 58, 0.98) 100%);
}

.action-btn:active {
  transform: translateY(0);
}

/* Shiny Sweep Glow — Executado ESTRITAMENTE em GPU via transform: translateX */
.btn-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: translateX(-150%) skewX(-20deg);
  pointer-events: none;
  animation: shinySweep 4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.action-btn:hover .btn-sweep {
  animation: shinySweepHover 1.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes shinySweep {
  0% {
    transform: translateX(-160%) skewX(-20deg);
  }
  35% {
    transform: translateX(260%) skewX(-20deg);
  }
  100% {
    transform: translateX(260%) skewX(-20deg);
  }
}

@keyframes shinySweepHover {
  0% {
    transform: translateX(-160%) skewX(-20deg);
  }
  100% {
    transform: translateX(260%) skewX(-20deg);
  }
}

/* Conteúdo Interno do Botão */
.btn-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(71, 198, 255, 0.12);
  border: 1px solid rgba(71, 198, 255, 0.28);
  color: var(--cyan);
  flex-shrink: 0;
  transition: all var(--transition-smooth);
}

.action-btn:hover .btn-icon-wrap {
  background: var(--cyan);
  color: var(--night);
  border-color: var(--white);
  box-shadow: 0 0 16px var(--cyan);
}

.btn-texts {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}

.btn-label-lead {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  overflow-wrap: anywhere;
}

.btn-label-sub {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white-soft);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
  transition: transform var(--transition-smooth), color var(--transition-smooth);
}

.action-btn:hover .btn-arrow {
  transform: translateX(4px);
  color: var(--white);
}

/* Divisores Luminosos de Fluxo (Superfície Contínua) */
.flow-divider {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-block: clamp(24px, 4vw, 36px);
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(71, 198, 255, 0.4), transparent);
}

.divider-node {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

/* Lista de Links Contínuos */
.links-flow {
  width: 100%;
}

.links-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Seção de Informações Físicas & Contato */
.info-flow {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-title {
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 0 16px rgba(71, 198, 255, 0.3);
  overflow-wrap: anywhere;
}

.info-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-card);
  background: rgba(18, 32, 53, 0.7);
  border: 1px solid var(--white-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.info-item:hover {
  border-color: var(--cyan);
  box-shadow: 0 4px 20px rgba(11, 56, 179, 0.25);
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(71, 198, 255, 0.12);
  border: 1px solid rgba(71, 198, 255, 0.25);
  color: var(--cyan);
  flex-shrink: 0;
}

.info-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.info-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin-bottom: 4px;
}

.info-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.info-sub {
  font-size: 0.875rem;
  color: var(--white-soft);
  margin-top: 3px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.text-link {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-underline-offset: 3px;
  transition: color var(--transition-smooth), text-decoration-color var(--transition-smooth);
  overflow-wrap: anywhere;
}

.text-link:hover, .text-link:focus-visible {
  color: var(--cyan);
  text-decoration-color: var(--white);
}

/* Rodapé Unificado */
.site-footer {
  position: relative;
  z-index: 5;
  width: 100%;
  padding-inline: var(--pad-fluid);
  padding-block: 32px;
  border-top: 1px solid var(--white-border);
  background: rgba(7, 14, 26, 0.95);
  display: flex;
  justify-content: center;
}

.footer-container {
  width: 100%;
  max-width: var(--container-max);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.footer-brand-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  overflow-wrap: anywhere;
}

.footer-logo-text {
  letter-spacing: 0.05em;
  color: var(--cyan);
}

.footer-dot {
  color: var(--royal);
}

.footer-history {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--white-soft);
  max-width: 460px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.footer-copy {
  font-size: 0.775rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
  overflow-wrap: anywhere;
}

/* Keyframe Animations */
@keyframes pulseLight {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

@keyframes haloBreathe {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.1);
    opacity: 0.85;
  }
}

/* Acessibilidade: prefers-reduced-motion (movimento para e o acabamento permanece) */
@media (prefers-reduced-motion: reduce) {
  .btn-sweep {
    display: none !important;
  }
  .emblem-halo,
  .nav-status-dot {
    animation: none !important;
  }
  .action-btn,
  .btn-arrow,
  .btn-icon-wrap,
  .nav-phone-link,
  .info-item {
    transition: none !important;
  }
}

/* Ajustes Específicos para Telas Ultra-Pequenas (320px - 360px) */
@media (max-width: 360px) {
  .nav-container {
    justify-content: center;
    text-align: center;
  }
  .action-btn {
    padding: 14px 14px;
    gap: 12px;
  }
  .btn-content {
    gap: 12px;
  }
  .btn-icon-wrap {
    width: 38px;
    height: 38px;
  }
  .brand-title {
    font-size: 1.85rem;
  }
}
