/* ==========================================================================
   GNASTECH — Design System (Manual de Identidade Visual)
   Azul Principal #002286 · Turquesa #009d99 · Azul Digital #006b85
   Tipografia: Tektur (títulos) / IBM Plex Sans (corpo)
   ========================================================================== */

:root {
  --primary: #002286;
  --primary-dark: #001450;
  --accent: #009d99;
  --accent-light: #00c9c3;
  --accent-text: #00706c; /* variação escura do turquesa p/ texto pequeno — WCAG AA (5.5:1+) */
  --secondary: #006b85;

  --bg-main: #F4F7F6;
  --bg-card: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #4B5A72;
  --border-light: #E2E8F0;
  --header-bg: rgba(0, 20, 80, 0.92);

  --font-title: 'Tektur', -apple-system, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;

  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s var(--ease); }
ul { list-style: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-title); text-transform: uppercase;
  font-size: 0.8rem; letter-spacing: 3px; color: var(--accent-text);
  margin-bottom: 16px; font-weight: 600;
}
.section-label::before {
  content: ''; width: 28px; height: 2px; background: var(--accent);
}

section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; margin-bottom: 18px; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 34px; border-radius: 50px; font-weight: 600;
  font-family: var(--font-body); font-size: 0.98rem;
  border: none; cursor: pointer; white-space: nowrap;
  transition: all 0.35s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 157, 153, 0.28);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0, 157, 153, 0.4); }
.btn-secondary {
  background: transparent; color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: #FFFFFF; }
.btn-light { background: var(--accent); color: var(--primary); }
.btn-light:hover { background: var(--accent-light); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 157, 153, 0.3); }

/* ---------- Header ---------- */
header {
  position: fixed; top: 0; width: 100%;
  background: var(--header-bg); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10000; padding: 0.7rem 0;
}
.nav { display: flex; justify-content: space-between; align-items: center; }

/* ---------- Logo (símbolo + wordmark com efeitos) ---------- */
.logo { display: flex; align-items: center; gap: 14px; }
.logo-icon { position: relative; display: flex; align-items: center; justify-content: center; }
.logo-icon::before {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 201, 195, 0.4), transparent 72%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.logo-icon img {
  height: 46px; width: auto; position: relative; z-index: 1;
  filter: drop-shadow(0 0 8px rgba(0, 201, 195, 0.45));
  animation: logoPulse 4s ease-in-out infinite;
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}
.logo:hover .logo-icon::before { opacity: 1; }
.logo:hover .logo-icon img {
  transform: scale(1.08) rotate(-5deg);
  filter: drop-shadow(0 0 16px rgba(0, 201, 195, 0.8));
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 201, 195, 0.45)); }
  50% { filter: drop-shadow(0 0 14px rgba(0, 201, 195, 0.7)); }
}

.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-title {
  font-family: var(--font-title); font-size: 1.35rem; font-weight: 800; letter-spacing: 2.5px;
  background: linear-gradient(90deg, #FFFFFF 30%, var(--accent-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-sub {
  font-family: var(--font-body); font-size: 0.56rem; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55); margin-top: 4px; font-weight: 500;
}

.nav-links { display: flex; align-items: center; list-style: none; }
.nav-links a {
  color: rgba(255, 255, 255, 0.78); margin-left: 28px; font-size: 0.92rem; font-weight: 500;
  position: relative; padding: 5px 0;
}
.nav-links a::after {
  content: ''; position: absolute; width: 0; height: 2px; bottom: -2px; left: 0;
  background-color: var(--accent); transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: #FFFFFF; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-links a.nav-cta {
  margin-left: 22px; padding: 11px 20px; border-radius: 50px; font-size: 0.78rem;
  background: var(--accent); color: var(--primary); font-weight: 600; white-space: nowrap;
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
}
.nav-links a.nav-cta:hover { background: var(--accent-light); color: var(--primary); }

.menu-icon { display: none; flex-direction: column; cursor: pointer; gap: 5px; z-index: 10001; border: none; background: transparent; padding: 0; }
.menu-icon span { display: block; width: 26px; height: 2px; background: #FFFFFF; border-radius: 2px; transition: 0.3s; }

/* ---------- Circuit / mesh backgrounds ---------- */
.mesh-bg, .mesh-bg-alt {
  position: relative; background-color: var(--primary); overflow: hidden;
}
.mesh-bg::before, .mesh-bg-alt::before {
  content: ''; position: absolute; inset: -12%; z-index: 0;
  background-repeat: no-repeat;
  background-position: center 30%;
  background-size: 145%;
  opacity: 0.32;
  filter: brightness(1.7) saturate(1.15);
  mix-blend-mode: screen;
  pointer-events: none;
}
.mesh-bg::after, .mesh-bg-alt::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, var(--primary) 0%, rgba(0, 34, 134, 0.88) 28%, rgba(0, 34, 134, 0.3) 58%, transparent 85%),
    linear-gradient(180deg, transparent 65%, var(--bg-main) 100%);
}
.mesh-bg::before { background-image: url('../assets/img/padrao-grafico-6-blue.png'); }
.mesh-bg-alt::before { background-image: url('../assets/img/padrao-grafico-5-blue.png'); background-position: center 60%; }

/* Quando .animate-waves está presente, o pseudo-elemento estático dá lugar ao canvas animado */
.animate-waves::before { display: none; }

.wave-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block;
}

.circuit-tree {
  position: absolute; pointer-events: none; opacity: 0.16;
  stroke: var(--accent); fill: var(--accent);
}

/* ---------- Selo "Desenvolvido por" (flutuante) ---------- */
.group-credit-float {
  position: fixed; bottom: 26px; left: 26px; z-index: 900;
  display: flex; align-items: center; gap: 10px;
  background: rgba(0, 20, 80, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 9px 18px 9px 12px; border-radius: 100px;
  box-shadow: 0 10px 26px rgba(0, 10, 50, 0.3);
  animation: creditPulse 2.8s infinite;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.group-credit-float:hover { transform: translateY(-3px); background: rgba(0, 20, 80, 0.95); }
.group-credit-float img { height: 24px; width: auto; display: block; }
.group-credit-float span {
  font-size: 0.68rem; line-height: 1.25; color: rgba(255, 255, 255, 0.75);
  font-weight: 500; white-space: nowrap; font-family: var(--font-body); text-transform: none;
}
.group-credit-float span strong { color: #FFFFFF; font-weight: 700; }

@keyframes creditPulse {
  0% { box-shadow: 0 10px 26px rgba(0, 10, 50, 0.3), 0 0 0 0 rgba(0, 201, 195, 0.5); }
  70% { box-shadow: 0 10px 26px rgba(0, 10, 50, 0.3), 0 0 0 12px rgba(0, 201, 195, 0); }
  100% { box-shadow: 0 10px 26px rgba(0, 10, 50, 0.3), 0 0 0 0 rgba(0, 201, 195, 0); }
}

@media (max-width: 900px) {
  .group-credit-float { bottom: 18px; left: 18px; padding: 8px; gap: 0; border-radius: 50%; width: 52px; height: 52px; justify-content: center; }
  .group-credit-float span { display: none; }
  .group-credit-float img { height: 26px; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 150px 0 90px; position: relative; overflow: hidden;
}
.hero .circuit-tree { top: -10%; right: -8%; width: 620px; height: auto; z-index: 1; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-content { min-width: 0; width: 100%; max-width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent-light); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 3px; margin-bottom: 22px; text-transform: uppercase;
  font-family: var(--font-title);
}
.eyebrow::before { content: ''; width: 34px; height: 2px; background: var(--accent-light); }

.hero h1 {
  font-size: clamp(1.85rem, 1.05rem + 2.3vw, 2.75rem); line-height: 1.22; font-weight: 700;
  color: #FFFFFF; margin-bottom: 26px;
  max-width: 100%; width: 100%; display: block;
}
.hero h1 .accent { color: var(--accent-light); }

/* ---------- Títulos animados: quebra de linha controlada ----------
   O script main.js fatia o H1 em <span class="word"> / <span class="char">.
   Sem display:inline-block o navegador perde os pontos de quebra e o título
   renderiza em UMA linha só, estourando a largura (mobile e notebook).
   .title-line define quebras gramaticais explícitas feitas no HTML.       */
h1 .title-line, h2 .title-line { display: block; }

h1 .word, h2 .word { display: inline-block; }
h1 .char, h2 .char { display: inline-block; will-change: opacity, transform; }

h1, h2 { overflow-wrap: break-word; text-wrap: balance; }

@media (prefers-reduced-motion: no-preference) {
  h1 .char, h2 .char { animation: charReveal 0.5s var(--ease) both; }
}
@keyframes charReveal {
  from { opacity: 0; transform: translateY(0.35em); }
  to   { opacity: 1; transform: none; }
}

.hero p {
  color: rgba(255, 255, 255, 0.82); font-size: 1.15rem; max-width: 560px;
  margin-bottom: 40px; font-weight: 400;
}
.cta-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats div strong {
  display: block; font-family: var(--font-title); font-size: 1.7rem; color: #FFFFFF; font-weight: 700;
}
.hero-stats div span { color: rgba(255, 255, 255, 0.65); font-size: 0.85rem; }

.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
}
.hero-visual-frame {
  position: relative; padding: 8px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 201, 195, 0.28);
  box-shadow: 0 20px 60px rgba(0, 10, 50, 0.5);
  width: 100%;
}
.hero-visual video { width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 16px; display: block; }

/* ---------- Page Hero (páginas internas) ---------- */
.page-hero {
  min-height: 48vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 160px 0 80px; position: relative; overflow: hidden;
}
.page-hero .circuit-tree { top: -15%; right: -6%; width: 480px; height: auto; z-index: 1; }
.page-hero-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: #FFFFFF; margin-bottom: 20px; line-height: 1.2; }
.page-hero p { color: rgba(255, 255, 255, 0.85); font-size: 1.15rem; font-weight: 400; }
.page-hero .eyebrow { justify-content: center; }

/* ---------- Service list cards (página Serviços) ---------- */
.service-list { display: flex; flex-direction: column; gap: 26px; }
.service-card {
  background: var(--bg-card); padding: 40px; border-radius: var(--radius);
  border: 1px solid var(--border-light); position: relative; overflow: hidden;
  transition: all 0.4s var(--ease);
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--secondary));
  transform: scaleY(0); transform-origin: top; transition: transform 0.4s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 15px 35px rgba(0, 34, 134, 0.08); }
.service-card:hover::before { transform: scaleY(1); }
.service-card .icon-wrapper { margin-bottom: 20px; }
.service-card h3 { font-size: 1.5rem; color: var(--primary); margin-bottom: 14px; text-transform: none; letter-spacing: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.service-card > p { color: var(--text-muted); margin-bottom: 18px; font-weight: 500; }
.service-card ul { display: flex; flex-direction: column; gap: 10px; }
.service-card ul li { color: var(--text-muted); padding-left: 26px; position: relative; }
.service-card ul li::before { content: '→'; color: var(--accent); position: absolute; left: 0; font-weight: bold; }

/* ---------- Calculadora (modal) ---------- */
.calc-trigger { cursor: pointer; color: var(--accent); transition: transform 0.3s ease; vertical-align: middle; animation: pulseTurq 2s infinite; }
.calc-trigger:hover { transform: scale(1.15); color: var(--secondary); }
.calc-container { display: inline-flex; flex-direction: column; align-items: center; margin-left: 6px; vertical-align: middle; position: relative; }
.calc-badge {
  background: var(--accent); color: #FFFFFF; font-size: 10px; padding: 4px 8px;
  border-radius: 4px; white-space: nowrap; font-weight: 700; margin-bottom: 8px;
  font-family: var(--font-body); animation: bounceSmall 2s infinite;
}
#modalCalculadora {
  display: none; position: fixed; z-index: 10050; left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0, 20, 80, 0.85); backdrop-filter: blur(8px); overflow-y: auto;
}
.modal-content {
  background: var(--bg-card); border: 1px solid var(--border-light);
  margin: 6% auto; padding: 36px; border-radius: var(--radius); width: 90%; max-width: 550px;
  color: var(--text-main); box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.modal-content h2 { color: var(--primary); margin-bottom: 10px; font-size: 1.6rem; }
.modal-content label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary); font-size: 0.92rem; text-transform: none; }
.calc-select, .calc-input {
  width: 100%; padding: 14px; border-radius: 8px; background: var(--bg-main);
  border: 1px solid var(--border-light); color: var(--text-main); margin-bottom: 18px;
  font-family: var(--font-body); font-size: 1rem; transition: 0.3s;
}
.calc-select:focus, .calc-input:focus { border-color: var(--accent); outline: none; background: #FFFFFF; box-shadow: 0 0 0 4px rgba(0, 157, 153, 0.15); }
.calc-extra { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 8px; font-weight: normal; }
.result-box { background: rgba(0, 157, 153, 0.06); padding: 24px; border-radius: 10px; text-align: center; margin: 20px 0; border: 1px dashed var(--accent); }
.blur-value { filter: blur(6px); user-select: none; }
.btn-calc-close { background: transparent; color: var(--text-muted); border: none; cursor: pointer; padding: 10px; font-weight: 600; }
.btn-calc-close:hover { color: #dc2626; }
.btn-reveal { background: var(--accent); color: #FFFFFF; padding: 14px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; width: 100%; transition: 0.3s; }
.btn-reveal:hover { transform: translateY(-2px); box-shadow: 0 8px 15px rgba(0, 157, 153, 0.35); background: var(--accent-light); }
.btn-whatsapp-calc { background: #25D366; color: #fff; padding: 14px 20px; border-radius: 8px; font-weight: bold; text-align: center; flex: 2; display: none; transition: 0.3s; }
.btn-whatsapp-calc:hover { background: #20BA56; transform: translateY(-2px); }
@keyframes pulseTurq { 0% { filter: drop-shadow(0 0 0px var(--accent)); } 50% { transform: scale(1.15); filter: drop-shadow(0 0 8px var(--accent)); } 100% { filter: drop-shadow(0 0 0px var(--accent)); } }
@keyframes bounceSmall { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-bottom: 60px; }
.contact-info-card {
  background: var(--bg-card); padding: 34px; border-radius: var(--radius);
  border: 1px solid var(--border-light); transition: all 0.4s var(--ease);
}
.contact-info-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 12px 24px rgba(0, 34, 134, 0.08); }
.contact-info-card h4 { font-size: 1.15rem; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; text-transform: none; letter-spacing: 0; }
.contact-info-card p { color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.contact-info-card a { color: var(--secondary); display: block; margin-top: 4px; font-weight: 600; }
.contact-info-card a:hover { color: var(--accent); }

.contact-form-section {
  max-width: 700px; margin: 0 auto; padding: 44px;
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 34, 134, 0.05);
}
.contact-form-section h3 { text-align: center; font-size: 1.7rem; margin-bottom: 36px; }

.form-group { margin-bottom: 22px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 16px; font-family: var(--font-body);
  background: var(--bg-main); border: 1px solid var(--border-light);
  border-radius: 8px; color: var(--text-main); font-size: 1rem; transition: all 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(0, 157, 153, 0.15); background: #FFFFFF;
}
#formFeedback { display: none; padding: 14px; margin-bottom: 20px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; text-align: center; }

/* ---------- Suporte ---------- */
.support-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 160px 20px 90px; min-height: 100vh; }
.support-card {
  background: var(--bg-card); padding: 48px; border-radius: var(--radius);
  border: 1px solid var(--border-light); text-align: center; max-width: 600px; width: 100%;
  box-shadow: 0 20px 50px rgba(0, 34, 134, 0.12); transition: transform 0.3s var(--ease); position: relative; z-index: 2;
}
.support-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 25px 50px rgba(0, 34, 134, 0.18); }
.support-card .icon-wrapper { margin: 0 auto 22px; width: 74px; height: 74px; }
.support-card .icon-wrapper svg { width: 36px; height: 36px; }
.support-card h1 { color: var(--primary); margin-bottom: 18px; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.support-card h2 { color: var(--primary); font-size: 1.4rem; margin-bottom: 14px; }
.support-card > p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.05rem; font-weight: 500; }

.btn-download {
  display: inline-block; padding: 18px 34px; border-radius: 50px; font-weight: 600;
  font-family: var(--font-body); font-size: 1rem;
  background: var(--accent); color: #FFFFFF; box-shadow: 0 4px 10px rgba(0, 157, 153, 0.25);
}
.btn-download:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 157, 153, 0.4); background: var(--accent-light); }

.steps { text-align: left; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border-light); }
.steps h4 { color: var(--primary); margin-bottom: 15px; font-size: 1.05rem; text-transform: none; letter-spacing: 0; }
.steps ol { color: var(--text-muted); padding-left: 20px; font-weight: 500; }
.steps li { margin-bottom: 12px; }
.steps li b { color: var(--text-main); font-weight: 600; }

.file-transfer-form { text-align: left; }
#ftFeedback { display: none; padding: 12px; margin-bottom: 16px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; text-align: center; }

.btn-outline {
  display: inline-block; width: 100%; padding: 16px 30px; border-radius: 50px; font-weight: 600;
  font-family: var(--font-body); font-size: 0.98rem;
  background: transparent; color: var(--primary); border: 2px solid var(--primary); cursor: pointer;
}
.btn-outline:hover { background: var(--primary); color: #FFFFFF; transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0, 34, 134, 0.2); }
.btn-outline:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* ---------- Portal ---------- */
.portal-content { max-width: 1000px; margin: 0 auto; }
.portal-category {
  background: var(--bg-card); padding: 40px; border-radius: var(--radius);
  border: 1px solid var(--border-light); margin-bottom: 36px; box-shadow: 0 10px 30px rgba(0, 34, 134, 0.05);
}
.portal-category h3 { font-size: 1.3rem; text-align: center; margin-bottom: 28px; }
.portal-category.utilities h3 { color: var(--accent); }
.portal-category.restricted h3 { color: #dc2626; }

.portal-item {
  display: flex; align-items: center; gap: 20px; padding: 20px 24px; margin-bottom: 14px;
  background: var(--bg-main); border-radius: 12px; border: 1px solid var(--border-light);
  transition: all 0.3s var(--ease);
}
.portal-item:hover { transform: translateX(8px); border-color: var(--accent); background: #FFFFFF; box-shadow: 0 5px 15px rgba(0, 157, 153, 0.1); }
.portal-item .icon-mini { width: 48px; height: 48px; border-radius: 12px; }
.portal-item .icon-mini svg { width: 22px; height: 22px; }
.portal-item p { font-size: 1.05rem; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.portal-item span { font-size: 0.92rem; color: var(--text-muted); }

.action-btn {
  padding: 10px 20px; border-radius: 50px; background: var(--accent); color: #FFFFFF;
  font-size: 0.85rem; font-weight: 700; margin-left: auto; white-space: nowrap; transition: 0.3s;
}
.portal-item:hover .action-btn { background: var(--primary); }
.portal-category.restricted .action-btn { background: #fee2e2; color: #dc2626; }
.portal-category.restricted .portal-item:hover .action-btn { background: #dc2626; color: #FFFFFF; }

.auth-overlay { position: fixed; inset: 0; background: rgba(0, 20, 80, 0.85); z-index: 10998; backdrop-filter: blur(8px); }
.auth-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--bg-card); padding: 44px; border-radius: var(--radius); z-index: 10999;
  max-width: 420px; width: 90%; text-align: center; border: 1px solid var(--border-light);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.auth-modal h2 { font-size: 1.5rem; margin-bottom: 10px; }
.auth-modal input {
  width: 100%; padding: 14px; background: var(--bg-main); border: 1px solid var(--border-light);
  border-radius: 8px; color: var(--text-main); margin: 22px 0; text-align: center;
  font-family: var(--font-body); font-size: 1rem; transition: 0.3s;
}
.auth-modal input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(0, 157, 153, 0.15); background: #FFFFFF; }
.btn-enter { width: 100%; padding: 14px; background: var(--accent); color: #FFFFFF; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s; font-family: var(--font-body); font-size: 1rem; }
.btn-enter:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 15px rgba(0, 157, 153, 0.35); }
.hidden { display: none !important; }

/* ---------- Portfólio ---------- */
.section-subtitle { text-align: center; color: var(--text-muted); max-width: 700px; margin: 0 auto 55px; font-size: 1.05rem; font-weight: 500; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.portfolio-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-light); box-shadow: 0 10px 30px rgba(0,34,134,0.05);
  transition: all 0.4s var(--ease); display: flex; flex-direction: column;
}
.portfolio-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,34,134,0.1); border-color: var(--accent); }

.card-img-wrapper { height: 210px; overflow: hidden; position: relative; background: var(--bg-main); }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s ease; display: block; }
.card-img-wrapper.img-center img { object-position: center; }
.portfolio-card:hover .card-img-wrapper img { transform: scale(1.06); }

.card-thumb { height: 210px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.card-thumb::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.card-thumb i, .card-thumb svg { width: 56px; height: 56px; color: #FFFFFF; opacity: 0.95; position: relative; z-index: 1; }
.card-thumb img.brand-logo { max-width: 55%; max-height: 65%; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25)); }

.thumb-barbearia { background: linear-gradient(135deg, #1a1a1a, #3a3a3a); }
.thumb-eletrica   { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.thumb-solar      { background: linear-gradient(135deg, #b45309, #f59e0b); }
.thumb-restaurante{ background: linear-gradient(135deg, #7c2d12, #c2410c); }
.thumb-roupas     { background: linear-gradient(135deg, #831843, #be185d); }

/* Thumbs claros — usados quando exibimos a logo original do cliente */
.thumb-hospedagem { background: linear-gradient(135deg, #E8F1E6, #C6DDC3); }
.thumb-artesanal  { background: linear-gradient(135deg, #EAF3E2, #C9E0BA); }
.thumb-jtauto     { background: linear-gradient(135deg, #0B0B0B, #2B2B2B); }
.card-thumb.thumb-light::before {
  background-image: radial-gradient(rgba(0, 34, 134, 0.10) 1.5px, transparent 1.5px);
}
.card-thumb.thumb-light img.brand-logo { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12)); max-width: 76%; }
.card-thumb.thumb-jtauto img.brand-logo { max-width: 78%; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5)); }

/* Selo de status do projeto (canto superior esquerdo do thumb) */
.badge-live {
  --dot: var(--accent);
  --dot-glow: rgba(0, 157, 153, 0.6);
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.94); color: var(--primary);
  font-family: var(--font-title); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; box-shadow: 0 3px 10px rgba(0, 34, 134, 0.14);
}
.badge-live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--dot); box-shadow: 0 0 0 0 var(--dot-glow);
}
/* Em negociação — projeto aprovado/aguardando publicação */
.badge-live.is-negotiating { --dot: #D97706; --dot-glow: rgba(217, 119, 6, 0.55); }
/* Modelo demonstrativo — layout aberto para navegação */
.badge-live.is-demo { --dot: #64748B; --dot-glow: rgba(100, 116, 139, 0); }

@media (prefers-reduced-motion: no-preference) {
  .badge-live::before { animation: livePulse 2s ease-out infinite; }
  .badge-live.is-demo::before { animation: none; }
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 var(--dot-glow); }
  70%  { box-shadow: 0 0 0 7px rgba(0, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.card-content { padding: 26px 28px 28px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.card-content h3 { font-size: 1.2rem; margin-bottom: 10px; text-transform: none; letter-spacing: 0; }
.card-content p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; flex: 1; }

.btn-whatsapp { background: #128C7E; color: #fff; width: 100%; padding: 13px 26px; border-radius: 8px; font-weight: 600; }
.btn-whatsapp:hover { background: #0f7a6d; transform: translateY(-2px); box-shadow: 0 8px 15px rgba(18,140,126,0.3); }

.badge-secure {
  position: absolute; top: 14px; right: 14px; background: var(--accent); color: #FFFFFF;
  font-size: 0.7rem; font-family: var(--font-title); padding: 5px 12px; border-radius: 20px; font-weight: bold;
  z-index: 2; letter-spacing: 0.3px; text-transform: uppercase;
}

/* ---------- Confirmação (Obrigado) ---------- */
.confirmation-main { flex: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 130px 20px 60px; }
.confirmation-box {
  background: var(--bg-card); padding: 60px 44px; border-radius: var(--radius);
  border: 1px solid var(--border-light); max-width: 600px; width: 100%; text-align: center;
  box-shadow: 0 10px 40px rgba(0, 34, 134, 0.08);
}
.confirmation-box .icon-wrapper { width: 76px; height: 76px; margin: 0 auto 24px; background: rgba(0, 157, 153, 0.12); }
.confirmation-box .icon-wrapper svg { width: 38px; height: 38px; }
.confirmation-box h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 18px; }
.confirmation-box p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 34px; font-weight: 500; }
.btn-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* ---------- Trust ticker ---------- */
.trust-ticker {
  background: var(--primary-dark); padding: 16px 0; overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative; z-index: 2;
}
.ticker-track { display: flex; gap: 60px; white-space: nowrap; animation: scrollTicker 28s linear infinite; width: max-content; }
.ticker-track span { color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; letter-spacing: 1.5px; font-weight: 500; }
.ticker-track strong { color: var(--accent-light); font-weight: 600; }
@keyframes scrollTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 28px; }

.card {
  background: var(--bg-card); padding: 40px 32px; border-radius: var(--radius);
  border: 1px solid var(--border-light); position: relative; overflow: hidden;
  transition: all 0.4s var(--ease);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.card:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 18px 40px rgba(0, 34, 134, 0.1); }
.card:hover::before { transform: scaleX(1); }

.icon-wrapper {
  width: 58px; height: 58px; margin-bottom: 22px; border-radius: 14px;
  background: rgba(0, 157, 153, 0.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.4s var(--ease);
}
.icon-wrapper svg { width: 28px; height: 28px; }
.card:hover .icon-wrapper { background: var(--accent); color: #FFFFFF; transform: rotate(-6deg) scale(1.05); }

.card h3 { font-size: 1.2rem; margin-bottom: 12px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.card p { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Conteúdo institucional (página Sobre) ---------- */
.content-stack { display: flex; flex-direction: column; gap: 26px; max-width: 860px; margin: 0 auto; }
.content-card {
  background: var(--bg-card); padding: 38px 40px; border-radius: var(--radius);
  border: 1px solid var(--border-light); transition: all 0.4s var(--ease); position: relative; overflow: hidden;
}
.content-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.content-card:hover { border-color: var(--accent); box-shadow: 0 15px 35px rgba(0, 34, 134, 0.08); }
.content-card:hover::before { transform: scaleX(1); }
.content-card h3 { font-size: 1.4rem; margin-bottom: 14px; text-transform: none; letter-spacing: 0; }
.content-card p { color: var(--text-muted); margin-bottom: 12px; }
.content-card p:last-child { margin-bottom: 0; }

.check-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  background: var(--bg-card); padding: 20px 24px; border-radius: 10px;
  border: 1px solid var(--border-light); display: flex; align-items: flex-start; gap: 14px;
  transition: all 0.3s var(--ease); font-weight: 500;
}
.check-list li:hover { transform: translateX(8px); border-color: var(--accent); box-shadow: 0 6px 18px rgba(0, 157, 153, 0.1); }
.check-list li .icon-mini { margin-top: 2px; }

/* ---------- Cases de Sucesso ---------- */
.cases-section { background: var(--bg-card); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; }

.case-card {
  background: var(--bg-main); border: 1px solid var(--border-light); border-radius: var(--radius);
  overflow: hidden; transition: all 0.4s var(--ease); display: flex; flex-direction: column;
}
.case-card:hover { box-shadow: 0 18px 40px rgba(0, 34, 134, 0.1); transform: translateY(-6px); border-color: var(--accent); }

.case-logo-bar {
  padding: 24px 30px; background: var(--primary); display: flex; align-items: center; gap: 14px;
}
.case-logo-bar img { height: 34px; width: auto; background: #fff; border-radius: 6px; padding: 4px 8px; object-fit: contain; }
.case-logo-bar h3 { color: #FFFFFF; font-family: var(--font-title); font-size: 0.95rem; letter-spacing: 1px; font-weight: 400; margin: 0; }

.case-body { padding: 30px; display: flex; flex-direction: column; gap: 22px; flex: 1; }
.case-block { display: flex; gap: 14px; }
.icon-mini {
  width: 34px; height: 34px; min-width: 34px; border-radius: 9px;
  background: rgba(0, 157, 153, 0.12); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.icon-mini svg { width: 17px; height: 17px; }
.case-block h4 { font-size: 0.78rem; letter-spacing: 1.5px; color: var(--secondary); margin-bottom: 6px; font-weight: 700; }
.case-block p { font-size: 0.95rem; color: var(--text-muted); }

/* ---------- Prova social / marquee ---------- */
.brands-section { background: #FFFFFF; }
.brands-group { margin-bottom: 56px; }
.brands-group:last-child { margin-bottom: 0; }
.brands-group h3 {
  text-align: center; color: var(--secondary); text-transform: uppercase;
  letter-spacing: 2.5px; font-size: 0.85rem; font-weight: 600; margin-bottom: 32px;
}

.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 26px; width: max-content; animation: marqueeScroll 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.brand-card {
  background: var(--bg-main); padding: 15px; border-radius: 12px;
  width: 170px; height: 95px; display: flex; justify-content: center; align-items: center;
  transition: all 0.3s ease; box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}
.brand-card:hover { background: #FFFFFF; box-shadow: 0 8px 25px rgba(0, 34, 134, 0.1); }
.brand-card img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center; padding: 110px 0; position: relative; overflow: hidden;
}
.cta-final .circuit-tree { bottom: -20%; left: -6%; width: 460px; transform: rotate(180deg); z-index: 1; }
.cta-final .container { position: relative; z-index: 2; }
.cta-final h2 { color: #FFFFFF; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.cta-final p { color: rgba(255, 255, 255, 0.82); font-size: 1.1rem; max-width: 600px; margin: 0 auto 40px; }
.cta-final .cta-buttons { justify-content: center; margin-bottom: 0; }

/* ---------- Footer ---------- */
footer { background: #FFFFFF; border-top: 3px solid var(--accent); padding: 56px 0 40px; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.footer-brand img { height: 34px; }
.footer-brand span { font-family: var(--font-title); font-weight: 700; letter-spacing: 2px; color: var(--primary); }
footer p { font-size: 0.92rem; color: var(--text-muted); }
.footer-cnpj { font-weight: 700; color: var(--primary); margin: 10px 0; display: block; letter-spacing: 1px; font-family: var(--font-title); font-size: 0.85rem; }
.footer-contacts { margin-top: 18px; }
.footer-contacts span.label { display: block; margin-bottom: 10px; font-weight: 600; color: var(--text-muted); font-size: 0.9rem; }
.footer-contacts a {
  color: var(--primary); font-weight: 600; margin: 0 10px; display: inline-flex; align-items: center; gap: 6px;
}
.footer-contacts a:hover { color: var(--accent); }
.footer-contacts a svg { width: 16px; height: 16px; }
.footer-legal { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--border-light); font-size: 0.8rem; color: #94A3B8; }

/* ---------- Responsividade ---------- */
@media (max-width: 1180px) and (min-width: 901px) {
  .nav-links a { margin-left: 18px; font-size: 0.86rem; }
  .nav-links a.nav-cta { margin-left: 16px; padding: 10px 16px; font-size: 0.74rem; }
  .logo-title { font-size: 1.15rem; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .cta-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 20px; }
  .eyebrow { margin-left: auto; margin-right: auto; }
}

@media (max-width: 900px) {
  section { padding: 80px 0; }
  .menu-icon { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 78%;
    background: var(--primary); flex-direction: column; justify-content: center;
    transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1); box-shadow: -10px 0 30px rgba(0,0,0,0.2);
  }
  .nav-links.active { right: 0; }
  .nav-links a { margin: 16px 0; font-size: 1.15rem; margin-left: 0; }
  .nav-links a.nav-cta { margin: 20px 0 0; }
  .menu-icon.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
  .menu-icon.open span:nth-child(2) { opacity: 0; }
  .menu-icon.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
  .cta-buttons .btn { width: 100%; max-width: 340px; }
  .brand-card { width: 140px; height: 80px; padding: 10px; }
  .case-logo-bar img { height: 26px; }
  .footer-contacts a { display: flex; justify-content: center; margin: 10px auto; width: max-content; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .logo-sub { display: none; }
  .logo-title { font-size: 1.05rem; letter-spacing: 1.5px; }
  .logo-icon img { height: 38px; }
  .hero { padding-top: 130px; }
  .hero-stats { gap: 22px 32px; }
  .hero-stats div strong { font-size: 1.4rem; }
  .section-head h2, .cta-final h2 { font-size: 1.6rem; }
  .card, .case-body, .case-logo-bar { padding-left: 22px; padding-right: 22px; }
}
