/* CWMC Telecom — one-page nova (2026)
   Tokens: ver .vetra-ui/system.md · Fontes: Poppins (headings) + DM Sans (body) */

/* ---------- Fontes (self-host, latin) ---------- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/poppins-800.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/dmsans-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/dmsans-500.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/dmsans-700.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --fg: #16283c;
  --secondary: #51637a;
  --muted: #607186;
  --accent: #0e4b81;
  --accent-hover: #0b3d68;
  --accent-soft: #e3edf8;
  --wa: #12813f;
  --wa-hover: #0f6b34;
  --badge-bg: #fdf3e0;
  --badge-fg: #8a580a;
  --bg: #ffffff;
  --wash: #f2f6fb;
  --surface: #ffffff;
  --line: #dbe5f0;
  --line-strong: #b9cbe2;
  --shadow-1: 0 1px 2px rgba(22, 40, 60, 0.05);
  --shadow-2: 0 4px 12px rgba(22, 40, 60, 0.06);
  --shadow-3: 0 16px 40px rgba(22, 40, 60, 0.07);
  --radius-s: 10px;
  --radius-m: 14px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --font-head: 'Poppins', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 { font-family: var(--font-head); color: var(--fg); text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
p { text-wrap: pretty; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius-s) 0;
  font-weight: 500;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

/* ---------- Layout ---------- */
.container { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 96px; scroll-margin-top: 84px; }
.section-wash { background: var(--wash); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin-top: 12px; color: var(--secondary); font-size: 1.0625rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius-s);
  font-family: var(--font-body); font-size: 1rem; font-weight: 500; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-outline { background: var(--surface); color: var(--accent); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-light { background: #fff; color: var(--accent); font-weight: 700; }
.btn-light:hover { background: var(--accent-soft); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; border-radius: 8px; }
.btn-sm svg { width: 17px; height: 17px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand img { width: 62px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--secondary); font-weight: 500; font-size: 0.9375rem; }
.nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--fg); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-menu { display: block; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-menu { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 64px; align-items: center; padding-bottom: 72px; }
.eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.eyebrow span {
  font-size: 0.8125rem; font-weight: 500; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 6px 14px;
}
.lead { margin-top: 20px; color: var(--secondary); font-size: 1.125rem; max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--accent); border-radius: var(--radius-m);
  box-shadow: var(--shadow-1), var(--shadow-2), var(--shadow-3);
  padding: 32px 28px;
}
.plan-tag {
  align-self: flex-start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--badge-fg); background: var(--badge-bg);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 16px;
}
.plan-speed { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-speed small { font-size: 1.125rem; font-weight: 700; color: var(--secondary); margin-left: 6px; }
.plan-price { margin-top: 8px; font-variant-numeric: tabular-nums; }
.plan-price strong { font-family: var(--font-head); font-weight: 800; font-size: 1.75rem; letter-spacing: -0.01em; }
.plan-price span { color: var(--muted); font-size: 0.9375rem; margin-left: 4px; }
.plan-feats { margin: 20px 0 24px; display: grid; gap: 10px; }
.plan-feats li { display: flex; align-items: flex-start; gap: 10px; color: var(--secondary); font-size: 0.9375rem; }
.plan-feats svg { width: 18px; height: 18px; color: var(--wa); flex: none; margin-top: 3px; }

.hero-strip { background: var(--accent); overflow: hidden; }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 18px; position: relative; }
.hero-strip p { display: flex; align-items: center; gap: 10px; color: #dce9f6; font-size: 0.875rem; font-weight: 500; }
.hero-strip svg { width: 18px; height: 18px; color: #9fc4e6; flex: none; }
/* assinatura: fio de fibra — pulso de luz atravessando a faixa */
.hero-strip::after {
  content: ''; position: absolute; top: 50%; left: -15%; width: 12%; height: 2px;
  background: rgba(255, 255, 255, 0.45); border-radius: 999px;
  transform: translateY(-50%);
  animation: fiber 7s linear infinite;
}
@keyframes fiber { from { transform: translate(0, -50%); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } to { transform: translate(980%, -50%); opacity: 0; } }

/* ---------- Planos ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan-grid-3 { grid-template-columns: repeat(3, 1fr); }
.plan-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-1), var(--shadow-2); padding: 28px 24px;
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.plan-card:hover { box-shadow: var(--shadow-1), var(--shadow-2), var(--shadow-3); transform: translateY(-2px); }
.plan-card .btn { margin-top: auto; }
.plan-featured { border-top: 3px solid var(--accent); }

.combo-block { margin-top: 48px; background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 32px; }
.combo-block h3 { font-size: 1.25rem; }
.combo-sub { color: var(--secondary); margin-top: 6px; font-size: 0.9375rem; }
.combo-table { margin: 20px 0 24px; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--surface); }
.combo-row { display: grid; grid-template-columns: 1fr 1.3fr 1.5fr; }
.combo-row > span { padding: 12px 16px; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.combo-row + .combo-row { border-top: 1px solid var(--line); }
.combo-head { background: var(--wash); }
.combo-head span { font-weight: 700; font-size: 0.8125rem; color: var(--secondary); }
.combo-row span:first-child { font-weight: 500; }
.fineprint { margin-top: 24px; color: var(--muted); font-size: 0.8125rem; }

/* ---------- Telefonia ---------- */
.tel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.tel-col > h3 { font-size: 1.25rem; margin-bottom: 8px; }
.tel-note { color: var(--secondary); font-size: 0.9375rem; margin-bottom: 20px; }
.tel-list { display: grid; gap: 12px; margin-bottom: 24px; }
.tel-list li {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 16px 20px; box-shadow: var(--shadow-1);
}
.tel-list strong { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.tel-list span { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); }
.tel-list em { grid-column: 1 / -1; font-style: normal; color: var(--muted); font-size: 0.8125rem; }
.chip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 12px 14px; box-shadow: var(--shadow-1);
  display: grid; gap: 2px; font-variant-numeric: tabular-nums;
}
.chip strong { font-family: var(--font-head); font-weight: 700; font-size: 0.9375rem; }
.chip span { color: var(--accent); font-weight: 700; font-size: 0.875rem; }

/* ---------- Cobertura ---------- */
.city-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.city {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 20px; font-weight: 500; font-size: 0.9375rem; box-shadow: var(--shadow-1);
}
.city-tag { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--badge-fg); background: var(--badge-bg); border-radius: 999px; padding: 3px 10px; }
.city-note { margin-top: 20px; color: var(--muted); font-size: 0.875rem; }
.store-card {
  margin-top: 32px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-1), var(--shadow-2); padding: 28px;
}
.store-card h3 { margin-bottom: 10px; }
.store-card p { display: flex; align-items: flex-start; gap: 10px; color: var(--secondary); font-size: 0.9375rem; }
.store-card svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.store-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.about-lead { font-size: 1.0625rem; color: var(--secondary); }
.about-cards { display: grid; gap: 16px; }
.about-cards article { background: var(--wash); border-radius: var(--radius-s); padding: 20px 24px; }
.about-cards h3 { margin-bottom: 6px; }
.about-cards p { color: var(--secondary); font-size: 0.9375rem; }
.peering { margin-top: 40px; text-align: center; color: var(--muted); font-size: 0.9375rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 800px; }
.faq-wrap .contract-link { display: inline-flex; margin-top: 24px; font-weight: 700; }
.faq-wrap .contract-link:hover { text-decoration: underline; }
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: var(--shadow-1); overflow: hidden;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--fg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--muted); flex: none; transform: rotate(90deg); transition: transform 200ms var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details > p { padding: 16px 20px 20px; color: var(--secondary); font-size: 0.9375rem; }
.faq details > p a { font-weight: 500; text-decoration: underline; }

/* ---------- CTA final ---------- */
.cta-final { background: var(--accent); text-align: center; }
.cta-final h2 { color: #fff; }
.cta-sub { margin: 16px auto 32px; color: #cfe0f2; max-width: 34rem; font-size: 1.0625rem; }
.cta-final .btn-light svg { color: var(--wa); }
.contact-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contact-grid p { display: flex; align-items: center; justify-content: center; gap: 10px; color: #dce9f6; font-size: 0.9375rem; }
.contact-grid svg { width: 18px; height: 18px; color: #9fc4e6; flex: none; }

/* ---------- Footer ---------- */
.footer { background: var(--wash); border-top: 1px solid var(--line); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 2fr; gap: 48px; padding-bottom: 48px; }
.footer-brand img { width: 56px; margin-bottom: 16px; }
.footer-brand p { color: var(--secondary); font-size: 0.875rem; }
.footer-addr { margin-top: 12px; color: var(--muted) !important; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-nav h3 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 14px; }
.footer-nav a { display: flex; align-items: center; gap: 8px; color: var(--secondary); font-size: 0.9375rem; padding-block: 6px; }
.footer-nav a:hover { color: var(--accent); }
.footer-nav svg { width: 16px; height: 16px; }
.footer-bar { border-top: 1px solid var(--line); padding-block: 20px; }
.footer-bar p { color: var(--muted); font-size: 0.8125rem; text-align: center; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; border-radius: 999px;
  padding: 14px 22px; font-weight: 500; font-size: 0.9375rem;
  box-shadow: var(--shadow-2), var(--shadow-3);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease), background-color 160ms var(--ease);
}
.wa-float.shown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.wa-float:hover { background: var(--wa-hover); }
.wa-float svg { width: 22px; height: 22px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .strip-inner { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
  }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:last-child { border-bottom: none; }
  body.nav-open .nav { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-outline { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .tel-grid, .about-grid { grid-template-columns: 1fr; }
  .store-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding-block: 64px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .plan-grid, .plan-grid-3 { grid-template-columns: 1fr; }
  .chip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-inner { grid-template-columns: 1fr; }
  .header-actions .btn-wa { display: none; }
  .combo-row { grid-template-columns: 0.9fr 1fr 1.2fr; }
  .combo-row > span { padding: 10px 10px; font-size: 0.8125rem; }
  .combo-block { padding: 24px 18px; }
  .wa-float span { display: none; }
  .wa-float { padding: 16px; }
  .hero { padding-top: 40px; }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-strip::after { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
