/* ==========================================================================
   MUÑOZ | Serviços e Materiais Elétricos
   Design System & Estilo de Alta Performance
   Base: Preto & Amarelo da Marca (#000000, #ffc800, #fcc804, #ffc400, #080808, #ffffff)
   ========================================================================== */

:root {
  /* Cores oficiais extraídas do logotipo */
  --bg-black: #050505;
  --bg-deep: #000000;
  --surface-panel: #0d0d0d;
  --surface-panel-hover: #141414;
  --surface-subtle: #111111;
  
  --yellow-core: #ffc800;
  --yellow-bright: #fcc804;
  --yellow-warm: #ffc400;
  --yellow-glow: rgba(255, 200, 0, 0.35);
  --yellow-rim: rgba(255, 200, 0, 0.22);
  --yellow-border-top: rgba(255, 200, 0, 0.45);
  --yellow-subtle: rgba(255, 200, 0, 0.08);

  --text-primary: #ffffff;
  --text-secondary: #f0f0f0;
  --text-muted: #a6a6a6;
  --text-dim: #737373;

  /* Tipografia */
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Dimensões & Segurança */
  --container-max: 480px;
  --radius-card: 20px;
  --radius-btn: 999px;
  --radius-chip: 999px;
  --touch-min: 48px;
}

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

html {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Trava definitiva contra estouro horizontal */
  overflow-x: hidden !important;
}

body {
  background-color: var(--bg-black);
  color: var(--text-primary);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden !important;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 24px);
}

/* Tratamento de Superfície Elétrica: Iluminação de Topo Contínua */
.ambient-energy-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--yellow-core) 35%, 
    #ffffff 50%, 
    var(--yellow-core) 65%, 
    transparent 100%
  );
  box-shadow: 0 0 16px var(--yellow-glow);
  z-index: 10;
  pointer-events: none;
}

.energy-glow-ambient {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 200, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Container Principal Link-in-Bio */
.main-wrapper {
  width: 100%;
  max-width: var(--container-max);
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

/* ==========================================================================
   1. Barra de Status / Topo de Prova
   ========================================================================== */
.top-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid rgba(255, 200, 0, 0.15);
  border-top: 1px solid var(--yellow-border-top);
  border-radius: var(--radius-chip);
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-secondary);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #ffffff;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow-core);
  box-shadow: 0 0 8px var(--yellow-core);
}

.location-badge {
  font-size: 14px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   2. Bloco de Marca (Hero)
   ========================================================================== */
.brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 4px;
}

.logo-wrapper {
  position: relative;
  margin-bottom: 14px;
  width: 120px;
  height: 120px;
}

.logo-glow-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--yellow-glow) 0%, transparent 75%);
  pointer-events: none;
}

.brand-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: block;
  position: relative;
  z-index: 2;
  border: 2px solid var(--yellow-core);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9), 0 0 14px rgba(255, 200, 0, 0.25);
  background: #000;
}

.brand-title {
  font-size: clamp(30px, 8vw, 38px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.brand-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--yellow-core);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.brand-location-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Os Dois Pilares Apresentados em Sintonia */
.dual-pillars-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.pillar-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface-panel);
  border: 1px solid var(--yellow-rim);
  border-top: 1px solid var(--yellow-border-top);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.pillar-chip svg {
  flex-shrink: 0;
  color: var(--yellow-core);
}

/* ==========================================================================
   3. Ação Principal Dominante (Acima da Dobra)
   ========================================================================== */
.hero-cta-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 2px;
}

.btn-primary-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  background: linear-gradient(180deg, #ffc800 0%, #e6b400 100%);
  color: #000000;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  border-radius: var(--radius-btn);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 200, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255, 200, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

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

/* Efeito Shiny Sweep Glow */
.shiny-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.6) 48%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.6) 52%,
    transparent 80%
  );
  transform: translateX(-100%);
  animation: shinySweep 3.6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shinySweep {
  0% {
    transform: translateX(-100%);
  }
  35%, 100% {
    transform: translateX(100%);
  }
}

.btn-primary-action svg {
  flex-shrink: 0;
}

.cta-benefit-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

.cta-benefit-note strong {
  color: var(--text-secondary);
}

.page-is-hidden .shiny-sweep {
  animation-play-state: paused !important;
}

/* ==========================================================================
   4. Ações Secundárias Especializadas (Materiais & Serviços)
   ========================================================================== */
.secondary-actions-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin-top: 6px;
  content-visibility: auto;
  contain-intrinsic-size: 0 350px;
}

.action-card {
  position: relative;
  background: var(--surface-panel);
  border: 1px solid var(--yellow-rim);
  border-top: 1px solid var(--yellow-border-top);
  border-radius: var(--radius-card);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.action-card:hover {
  transform: translateY(-2px);
  background: var(--surface-panel-hover);
  border-color: rgba(255, 200, 0, 0.45);
}

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

.action-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon-frame {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 200, 0, 0.1);
  border: 1px solid rgba(255, 200, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow-core);
  flex-shrink: 0;
}

.card-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-tag {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yellow-core);
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.card-description {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.45;
}

.card-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--touch-min);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 200, 0, 0.2);
  border-radius: 10px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.action-card:hover .card-btn-link {
  background: rgba(255, 200, 0, 0.12);
  border-color: var(--yellow-core);
  color: var(--yellow-bright);
}

.card-btn-link svg {
  color: var(--yellow-core);
  flex-shrink: 0;
}

/* ==========================================================================
   5. Canal Social (Instagram Oficial)
   ========================================================================== */
.social-channel-block {
  width: 100%;
  margin-top: 4px;
}

.instagram-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface-panel);
  border: 1px solid var(--yellow-rim);
  border-top: 1px solid var(--yellow-border-top);
  border-radius: var(--radius-card);
  padding: 16px;
  text-decoration: none;
  min-height: var(--touch-min);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.instagram-card:hover {
  transform: translateY(-2px);
  background: var(--surface-panel-hover);
  border-color: rgba(255, 200, 0, 0.45);
}

.instagram-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.instagram-icon-frame {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 200, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow-core);
  flex-shrink: 0;
}

.instagram-text {
  display: flex;
  flex-direction: column;
}

.instagram-label {
  font-size: 14px;
  color: var(--text-muted);
}

.instagram-handle {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.instagram-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 200, 0, 0.1);
  border: 1px solid rgba(255, 200, 0, 0.3);
  color: var(--yellow-core);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ==========================================================================
   6. Informações Operacionais & Disponibilidade
   ========================================================================== */
.operational-info-card {
  background: var(--surface-subtle);
  border: 1px solid rgba(255, 200, 0, 0.15);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.info-row svg {
  color: var(--yellow-core);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-content {
  display: flex;
  flex-direction: column;
}

.info-content strong {
  color: #ffffff;
  font-size: 14px;
}

.info-content span {
  color: var(--text-muted);
  font-size: 14px;
}

/* ==========================================================================
   7. Rodapé Mínimo
   ========================================================================== */
.footer-minimal {
  text-align: center;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 10px;
}

.footer-brand {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 14px;
  color: var(--text-dim);
}

.footer-link {
  color: var(--yellow-core);
  text-decoration: none;
}

/* ==========================================================================
   Otimizações de Acessibilidade & Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .shiny-sweep {
    animation: none !important;
    display: none !important;
  }
  .btn-primary-action,
  .action-card,
  .instagram-card {
    transition: none !important;
  }
  .btn-primary-action:hover,
  .action-card:hover,
  .instagram-card:hover {
    transform: none !important;
  }
}

/* Ajustes de Densidade para Telas Muito Estreitas (320px) */
@media (max-width: 340px) {
  .main-wrapper {
    padding: 12px 10px 30px;
    gap: 16px;
  }
  .brand-title {
    font-size: 28px;
  }
  .logo-wrapper,
  .brand-logo {
    width: 100px;
    height: 100px;
  }
  .dual-pillars-container {
    grid-template-columns: 1fr;
  }
  .btn-primary-action {
    font-size: 16px;
    padding: 12px 14px;
  }
  .card-title {
    font-size: 16px;
  }
  .instagram-cta-pill span {
    display: none;
  }
}
