/* ValeUp Tecnologia — Stylesheet global (SEO + conversão + Core Web Vitals)
   Razão Social: Valeup Tecnologia LTDA — CNPJ 63.803.240/0001-44
   Internet, Telefonia, TV e Automação Predial em SC e RS  |  WhatsApp (47) 93384-1788 */

:root {
  --primary: #0e3a5a;
  --primary-dark: #082338;
  --secondary: #1c527c;
  --accent: #00c2ff;
  --accent-dark: #009ed0;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --warn: #ffcc00;
  --danger: #ff3b3b;
  --text: #1f2937;
  --muted: #6b7280;
  --light-bg: #f5f8fb;
  --border: #e5e7eb;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 6px 18px rgba(14, 58, 90, 0.08);
  --shadow-lg: 0 16px 40px rgba(14, 58, 90, 0.14);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--primary); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .6em; }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
p { margin-bottom: 1em; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }

/* ===== PROMO BAR (topo) ===== */
.promo-bar {
  background: linear-gradient(90deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff; text-align: center; padding: 8px 12px; font-size: .9rem; font-weight: 600;
  position: relative; z-index: 1001;
}
.promo-bar a { color: #fff; text-decoration: underline; font-weight: 700; }
.promo-bar i { margin-right: 6px; }

/* ===== HEADER ===== */
header.site-header {
  background: var(--white);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
}
.header-container {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; max-width: var(--container); margin: 0 auto;
}
.logo img { height: 48px; width: auto; }
.logo span.brand-name { display: none; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-weight: 600; color: var(--primary); transition: color .25s;
  font-size: .95rem;
}
.nav-links a:hover { color: var(--accent); }
.btn-nav-call {
  background: var(--whatsapp); color: #fff !important; padding: 10px 18px;
  border-radius: 50px; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, .35);
  transition: transform .25s, box-shadow .25s;
}
.btn-nav-call:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37, 211, 102, .5); }
.btn-nav-call i { font-size: 1.05rem; }

.burger { display: none; cursor: pointer; padding: 8px; }
.burger div { width: 26px; height: 3px; background: var(--primary); margin: 5px 0; transition: .25s; border-radius: 3px; }
.burger.active div:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active div:nth-child(2) { opacity: 0; }
.burger.active div:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--secondary) 100%);
  padding: 70px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0,194,255,.25), transparent 50%),
              radial-gradient(circle at 10% 90%, rgba(37,211,102,.15), transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .highlight { color: var(--accent); display: inline-block; }
.hero p.lead { font-size: clamp(1rem, 2.4vw, 1.25rem); max-width: 720px; margin: 0 auto 30px; opacity: .95; }
.hero-stats {
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
  margin: 30px 0;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 2rem; color: var(--accent); font-family: 'Montserrat', sans-serif; }
.hero-stat span { font-size: .85rem; opacity: .9; }
.hero-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 50px; font-weight: 700;
  cursor: pointer; border: none; font-size: 1rem; line-height: 1;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  text-align: center;
}
.btn-whatsapp { background: var(--whatsapp); color: #fff !important; box-shadow: 0 6px 20px rgba(37,211,102,.45); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37,211,102,.6); }
.btn-primary { background: var(--accent); color: var(--primary-dark) !important; box-shadow: 0 6px 20px rgba(0,194,255,.35); }
.btn-primary:hover { background: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff !important; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--primary) !important; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ===== SEÇÕES ===== */
section { padding: 70px 0; }
.section-header { text-align: center; margin-bottom: 50px; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-header .eyebrow {
  display: inline-block; background: rgba(0,194,255,.12); color: var(--accent-dark);
  padding: 5px 14px; border-radius: 50px; font-size: .8rem; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 12px;
}
.bg-light { background: var(--light-bg); }
.bg-dark { background: var(--primary-dark); color: #fff; }
.bg-dark h2, .bg-dark h3 { color: #fff; }

/* ===== CARDS DE PLANOS ===== */
.planos-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 30px;
}
.plano-card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px 24px;
  text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border);
  display: flex; flex-direction: column; position: relative;
  transition: transform .3s, box-shadow .3s;
}
.plano-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.plano-card.featured { border: 2px solid var(--accent); transform: scale(1.02); }
.plano-card.featured:hover { transform: translateY(-8px) scale(1.02); }
.combo-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--danger); color: #fff; padding: 5px 14px; border-radius: 50px;
  font-size: .72rem; font-weight: 700; letter-spacing: .5px;
}
.combo-badge.gold { background: linear-gradient(90deg,#ff8a00,#ffcc00); color: #1a1a1a; }
.combo-badge.green { background: var(--whatsapp); }
.plano-card h3 { font-size: 1.6rem; margin: 8px 0 4px; }
.plano-speed { color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.plano-price { font-size: 2.4rem; font-weight: 800; color: var(--primary); margin: 10px 0; font-family: 'Montserrat', sans-serif; }
.plano-price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.plano-features { list-style: none; padding: 0; margin: 20px 0; text-align: left; flex-grow: 1; }
.plano-features li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.plano-features li:last-child { border-bottom: none; }
.plano-features i { color: var(--whatsapp); margin-right: 9px; }
.plano-card .btn { width: 100%; justify-content: center; padding: 13px; }

/* ===== SPLIT ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.features-list li { padding: 10px 0; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.features-list i { color: var(--whatsapp); font-size: 1.1rem; }

/* ===== COMPARATIVO ===== */
.comparativo {
  overflow-x: auto;
}
.comparativo table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  min-width: 560px;
}
.comparativo th, .comparativo td {
  padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--border);
}
.comparativo th { background: var(--primary); color: #fff; font-family: 'Montserrat', sans-serif; }
.comparativo td:first-child { text-align: left; font-weight: 600; background: var(--light-bg); }
.comparativo .ok { color: var(--whatsapp); font-size: 1.2rem; }
.comparativo .no { color: var(--danger); font-size: 1.2rem; }

/* ===== DEPOIMENTOS ===== */
.testimonials-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial {
  background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.testimonial p { font-style: italic; color: #444; margin-bottom: 14px; }
.testimonial .stars { color: #ffb400; margin-bottom: 8px; }
.testimonial .author { font-weight: 700; color: var(--primary); font-size: .95rem; }
.testimonial .city { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; }

/* ===== FAQ ===== */
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.03); overflow: hidden;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--primary);
  font-family: 'Montserrat', sans-serif; user-select: none;
}
.faq-q:hover { background: var(--light-bg); }
.faq-q i { transition: transform .3s; color: var(--accent); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
  padding: 0 22px; color: var(--text);
}
.faq-item.open .faq-a { max-height: 520px; padding: 0 22px 18px; }

/* ===== CIDADES ===== */
.cidades-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.cidade-link {
  background: #fff; padding: 14px; text-align: center; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  font-weight: 600; color: var(--primary);
}
.cidade-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--accent); }
.cidade-link i { color: var(--accent); margin-right: 6px; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--light-bg); padding: 12px 0; font-size: .85rem;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb li::after { content: '/'; margin-left: 6px; color: var(--muted); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--whatsapp-dark), var(--whatsapp));
  color: #fff; text-align: center; padding: 60px 20px; border-radius: var(--radius-lg);
  margin: 30px 0;
}
.cta-banner h2 { color: #fff; }
.cta-banner .btn { margin-top: 18px; background: #fff; color: var(--whatsapp-dark) !important; }
.cta-banner .btn:hover { background: var(--primary-dark); color: #fff !important; }

/* ===== FOOTER ===== */
footer.site-footer {
  background: var(--primary-dark); color: #cbd5e1; padding: 50px 0 20px;
}
footer h4 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.footer-grid {
  display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 30px;
}
.footer-grid a { color: #cbd5e1; transition: color .25s; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid ul li { padding: 5px 0; font-size: .9rem; }
.footer-grid i { margin-right: 7px; color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center;
  font-size: .85rem; color: #94a3b8;
}
.footer-bottom small { display: block; margin-top: 6px; opacity: .8; }

/* ===== WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 999;
  background: var(--whatsapp); color: #fff !important;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  animation: wapulse 2s infinite;
  transition: transform .25s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float::before {
  content: 'Fale agora!'; position: absolute; right: 72px; top: 50%; transform: translateY(-50%);
  background: var(--primary-dark); color: #fff; padding: 6px 12px; border-radius: 8px;
  font-size: .8rem; white-space: nowrap; opacity: 0; transition: opacity .25s; font-family: 'Open Sans', sans-serif; font-weight: 600;
}
.whatsapp-float:hover::before { opacity: 1; }
@keyframes wapulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
  70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== EXIT POPUP ===== */
.exit-popup {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.exit-popup.active { display: flex; }
.exit-popup-inner {
  background: #fff; border-radius: var(--radius-lg); padding: 40px 30px;
  max-width: 480px; width: 100%; text-align: center; position: relative;
  animation: popin .3s ease;
}
@keyframes popin { from {transform: scale(.85); opacity: 0;} to {transform: scale(1); opacity: 1;} }
.exit-popup h3 { color: var(--primary); font-size: 1.6rem; margin-bottom: 10px; }
.exit-popup p { color: var(--text); margin-bottom: 20px; }
.exit-popup .close-pop {
  position: absolute; top: 10px; right: 14px; font-size: 1.6rem; cursor: pointer;
  color: var(--muted); background: none; border: none;
}
.exit-popup .promo-strong { font-size: 1.3rem; color: var(--whatsapp-dark); font-weight: 700; margin: 10px 0; }

/* ===== ARTIGOS / BLOG ===== */
.article-body {
  max-width: 760px; margin: 0 auto;
}
.article-body h2 { margin-top: 1.5em; }
.article-body h3 { margin-top: 1.2em; }
.article-body p, .article-body li { font-size: 1.05rem; }
.article-body ul, .article-body ol { margin: 1em 0 1em 1.4em; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body blockquote {
  border-left: 4px solid var(--accent); padding: 10px 18px; margin: 1.5em 0;
  background: var(--light-bg); font-style: italic; color: #444; border-radius: 6px;
}

.blog-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.blog-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card .blog-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2.4rem;
}
.blog-card-body { padding: 22px; }
.blog-card-body h3 { margin-bottom: 8px; font-size: 1.15rem; }
.blog-card-body p { color: var(--muted); font-size: .92rem; }
.blog-card-body a { color: var(--accent-dark); font-weight: 700; }

/* ===== RESPONSIVO ===== */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; right: 0; top: 0; height: 100vh; width: 78%;
    background: var(--primary-dark); flex-direction: column;
    padding: 100px 30px 30px; gap: 22px; align-items: flex-start;
    transform: translateX(100%); transition: transform .35s;
    box-shadow: -6px 0 24px rgba(0,0,0,.2);
  }
  .nav-links.active { transform: translateX(0); }
  .nav-links a { color: #fff; font-size: 1.1rem; }
  .nav-links .btn-nav-call { width: 100%; justify-content: center; }
  .burger { display: block; z-index: 1100; }
  .burger.active div { background: #fff; }
  .hero { padding: 50px 0 70px; }
  .hero-stats { gap: 16px; }
  .hero-stat strong { font-size: 1.5rem; }
  .plano-card.featured { transform: none; }
  section { padding: 50px 0; }
}

@media (max-width: 480px) {
  .promo-bar { font-size: .8rem; }
  .btn { padding: 12px 22px; font-size: .95rem; }
  .whatsapp-float { width: 54px; height: 54px; font-size: 1.5rem; bottom: 16px; right: 16px; }
}

/* ===== Helpers ===== */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== Simulador de velocidade ===== */
.simulador { max-width: 720px; margin: 26px auto 0; background: #fff; border-radius: 14px; padding: 26px; box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.sim-field { margin-bottom: 20px; }
.sim-field > label, .sim-legend { display: block; font-weight: 700; margin-bottom: 10px; color: #0e3a5a; font-family: Montserrat, sans-serif; }
.sim-field select { width: 100%; padding: 12px 14px; border: 2px solid #e3e8ef; border-radius: 10px; font-size: 1rem; background: #fff; }
.sim-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sim-options label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 2px solid #e3e8ef; border-radius: 10px; font-size: .92rem; cursor: pointer; font-weight: 600; color: #333; transition: border-color .15s, background .15s; }
.sim-options label:hover { border-color: #25d366; }
.sim-options input { width: 18px; height: 18px; accent-color: #25d366; }
.simulador > .btn { display: flex; width: 100%; justify-content: center; margin-top: 6px; }
.sim-rec .btn { margin-top: 2px; }
.sim-options label:has(input:checked) { border-color: #25d366; background: #f0fff6; }
.sim-result { margin-top: 22px; }
.sim-rec { display: flex; gap: 16px; align-items: flex-start; background: linear-gradient(135deg, #eafff1, #f3f9ff); border: 2px solid #25d366; border-radius: 12px; padding: 20px; }
.sim-rec > i { font-size: 2.2rem; color: #0e3a5a; margin-top: 4px; }
.sim-rec-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: #25d366; font-weight: 700; }
.sim-rec strong { display: block; font-size: 1.3rem; color: #0e3a5a; font-family: Montserrat, sans-serif; margin: 2px 0 8px; }
.sim-rec p { font-size: .92rem; margin: 0 0 14px; color: #444; }
@media (max-width: 560px) { .sim-options { grid-template-columns: 1fr; } .sim-rec { flex-direction: column; gap: 10px; } }
