/* ══════════════════════════════════════════
   TECHNET – Teste de Velocidade
   style.css — Estilo limpo / claro
   Cores: Azul #004aad | Laranja #ff6600
══════════════════════════════════════════ */

/* ---------- VARIABLES ---------- */
:root {
  --primary:       #004aad;
  --primary-dark:  #003380;
  --primary-light: #e8f0fb;
  --secondary:     #ff6600;
  --secondary-dark:#e65c00;
  --dark-bg:       #001025;
  --text:          #333333;
  --text-light:    #666666;
  --text-muted:    #999999;
  --border:        #dee2e6;
  --bg-light:      #f8f9fa;
  --white:         #ffffff;
  --green:         #28a745;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow-sm:     0 2px 8px rgba(0,74,173,.10);
  --shadow-md:     0 8px 25px rgba(0,74,173,.15);
  --shadow-lg:     0 20px 60px rgba(0,0,0,.15);
  --trans:         all .3s ease;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
strong { color: inherit; }

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════════
   NAVBAR / HEADER
══════════════════════════════════════════ */
.site-header {
  background: var(--white) !important;
  border-bottom: 1px solid var(--primary);
  padding: 8px 0;
  min-height: 60px;
  box-shadow: none;
  transition: var(--trans);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo-img {
  height: 35px;
  max-width: 140px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: var(--trans);
}
.logo-img:hover { opacity: .8; }

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-nav .nav-link {
  color: var(--primary) !important;
  font-weight: 600;
  font-size: .9rem;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: var(--trans);
}
.header-nav .nav-link:hover {
  color: var(--secondary) !important;
  background: rgba(0,74,173,.05);
}

/* Botão de CTA no nav */
.btn-nav {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: .88rem !important;
  transition: var(--trans) !important;
  box-shadow: var(--shadow-sm);
}
.btn-nav:hover {
  background: var(--secondary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md) !important;
}

/* Hamburguer */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--trans);
}
.menu-toggle:hover { background: var(--primary-light); }

/* Overlay escuro para menu mobile */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 998;
}
.menu-overlay.active { display: block; }

/* Botão de fechar no menu mobile */
.menu-close-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  align-self: flex-end;
  padding: 4px 8px;
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════ */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, #002a55 100%);
  color: var(--white);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,102,0,.15), transparent 65%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero text */
.hero-text { max-width: 520px; }

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -.5px;
}

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

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Pills de métricas */
.stats-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  transition: var(--trans);
}
.stat-pill:hover {
  background: rgba(255,102,0,.25);
  border-color: rgba(255,102,0,.5);
}
.stat-pill i {
  color: var(--secondary);
  font-size: .75rem;
}

/* ── SPEEDTEST CARD ── */
.speedtest-wrapper { display: flex; justify-content: center; }

.speedtest-card {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  transition: var(--trans);
  width: 100%;
  max-width: 480px;
}
.speedtest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(0,0,0,.2);
}

.speedtest-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.speedtest-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.iframe-container {
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}
.iframe-container iframe {
  display: block;
  max-width: 100%;
  border-radius: 10px;
}

/* ══════════════════════════════════════════
   SECTION COMMONS
══════════════════════════════════════════ */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -.3px;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: .97rem;
  margin-bottom: 48px;
}

/* ══════════════════════════════════════════
   INFO CARDS
══════════════════════════════════════════ */
.info-section {
  padding: 80px 0;
  background: var(--bg-light);
  position: relative;
}
.info-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.info-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  height: 100%;
  transition: var(--trans);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.info-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card-icon.down  { background: rgba(0,74,173,.1);  color: var(--primary);   box-shadow: 0 0 16px rgba(0,74,173,.15); }
.card-icon.up    { background: rgba(40,167,69,.1);  color: var(--green);     box-shadow: 0 0 16px rgba(40,167,69,.15); }
.card-icon.ping  { background: rgba(255,102,0,.1);  color: var(--secondary); box-shadow: 0 0 16px rgba(255,102,0,.15); }

.info-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.info-card p {
  color: var(--text-light);
  font-size: .88rem;
  margin-bottom: 16px;
  line-height: 1.6;
}
.info-card ul li {
  display: flex;
  align-items: center;
  font-size: .83rem;
  color: var(--text-light);
  margin-bottom: 6px;
}
.info-card ul li i {
  color: var(--primary);
  font-size: .7rem;
}

/* ══════════════════════════════════════════
   FAQ
══════════════════════════════════════════ */
.faq-section {
  padding: 80px 0;
  background: var(--white);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--trans);
  box-shadow: var(--shadow-sm);
}
.faq-item:hover { border-color: var(--primary); }
.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--trans);
  user-select: none;
}
.faq-question:hover { color: var(--primary); }
.faq-item.active .faq-question { color: var(--primary); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 16px;
  color: var(--primary);
  transition: transform .3s ease;
}
.faq-item.active .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all .35s ease;
  color: var(--text-light);
}
.faq-item.active .faq-answer {
  padding: 0 24px 20px;
  max-height: 500px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.faq-answer p {
  font-size: .9rem;
  line-height: 1.7;
  padding-top: 16px;
}

/* ══════════════════════════════════════════
   PLANOS SECTION (CTA)
══════════════════════════════════════════ */
.planos-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #002a55 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.planos-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,102,0,.2), transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.planos-section .section-title {
  color: var(--white);
  margin-bottom: 8px;
}
.planos-section .section-sub {
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
}

.btn-cta-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--secondary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 42px;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(255,102,0,.4);
  transition: var(--trans);
  position: relative;
  z-index: 1;
  text-decoration: none;
}
.btn-cta-large:hover {
  background: var(--secondary-dark);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(255,102,0,.55);
  color: var(--white);
}
.btn-cta-large i { font-size: .95rem; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 36px 0;
  border-top: 4px solid var(--primary);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand { display: flex; align-items: center; }
.footer-logo {
  height: 28px;
  max-width: 120px;
  object-fit: contain;
  opacity: .9;
  filter: brightness(0) invert(1);
}

.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  transition: var(--trans);
}
.footer-links a:hover { color: var(--secondary); }

/* ══════════════════════════════════════════
   WHATSAPP FLUTUANTE
══════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #25D366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(37,211,102,.5);
  z-index: 1000;
  transition: var(--trans);
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,.65);
}

/* ══════════════════════════════════════════
   POP-UP
══════════════════════════════════════════ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .3s ease;
}
.popup-overlay.hidden { display: none !important; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.popup-box {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 28px;
  padding: 48px 40px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1);
  color: var(--text);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
}
.popup-close:hover {
  background: #fee;
  color: #c00;
  border-color: #fcc;
}

/* Wi-fi animado */
.popup-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.popup-signal {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-wifi-icon {
  font-size: 2.2rem;
  color: var(--primary);
  position: relative;
  z-index: 2;
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.6; transform:scale(.9); }
}

.signal-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signal-rings span {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(0,74,173,.25);
  animation: ring-out 2.5s ease-out infinite;
}
.signal-rings span:nth-child(1) { width:50px; height:50px; animation-delay:0s; }
.signal-rings span:nth-child(2) { width:70px; height:70px; animation-delay:.5s; }
.signal-rings span:nth-child(3) { width:90px; height:90px; animation-delay:1s; }

@keyframes ring-out {
  0%   { transform:scale(.5); opacity:1; }
  100% { transform:scale(1.5); opacity:0; }
}

.popup-title {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -.3px;
  color: var(--text);
  text-transform: uppercase;
}
.popup-title span {
  color: var(--primary);
}

.popup-desc {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.popup-desc strong { color: var(--primary); font-weight: 700; }
.popup-desc em     { color: var(--text); font-style: normal; font-weight: 600; }

.popup-features {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.feat {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  border: 1px solid rgba(0,74,173,.2);
  padding: 7px 14px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
}
.feat i { color: var(--secondary); font-size: .78rem; }

.btn-popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--secondary);
  color: var(--white);
  font-size: .97rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(255,102,0,.35);
  transition: var(--trans);
  width: 100%;
  margin-bottom: 14px;
  text-decoration: none;
}
.btn-popup-cta:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,102,0,.5);
  color: var(--white);
}

.popup-skip {
  font-size: .82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--trans);
  margin-top: 4px;
}
.popup-skip:hover { color: var(--text-light); text-decoration: underline; }

/* ══════════════════════════════════════════
   ACTIVE NAV LINK
══════════════════════════════════════════ */
.header-nav .nav-link.active {
  color: var(--secondary) !important;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 991px) {
  /* Hambúrguer visível */
  .menu-toggle { display: block; }
  .menu-close-btn { display: flex; }

  /* Menu lateral */
  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px 40px;
    transition: right .3s ease;
    z-index: 999;
    box-shadow: -4px 0 30px rgba(0,0,0,.12);
    gap: 4px;
    overflow-y: auto;
  }

  .header-nav.active { right: 0; }

  .header-nav .nav-link {
    padding: 14px 12px !important;
    border-bottom: 1px solid var(--border);
    width: 100%;
    font-size: .95rem;
    border-radius: 0;
  }

  .btn-nav {
    margin-top: 10px;
    border-radius: 50px !important;
    text-align: center;
    width: 100%;
    justify-content: center;
  }

  /* Hero */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-text { max-width: 580px; margin: 0 auto; }
  .stats-row { justify-content: center; }
  .speedtest-wrapper { width: 100%; }
  .speedtest-card { max-width: 100%; }
}

@media (max-width: 768px) {
  .hero-section { padding: 70px 0 50px; }
  h1 { font-size: 1.9rem; }
  .iframe-container iframe { width: 100%; height: auto; min-height: 420px; }
  .speedtest-card { padding: 14px; }
  .popup-box { padding: 36px 24px 32px; }
  .popup-title { font-size: 1.35rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .section-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .popup-features { flex-direction: column; align-items: center; }
  .btn-cta-large { font-size: .9rem; padding: 14px 28px; }
  .stat-pill { font-size: .75rem; padding: 6px 12px; }
  .whatsapp-float { bottom: 18px; right: 18px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}
