/* Instituto GRP — tema dark "Farol". Navy-black + feixe âmbar + teal noturno. */

:root {
  --bg: #0A0F1A;
  --bg-soft: #101A2C;
  --bg-card: #1B2C4D;
  --amber: #FF9D3D;
  --amber-soft: #FFC98A;
  --teal: #2FB8C4;
  --ink: #F4F7FB;
  --ink-soft: #AEB9CC;
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --footer-bg: #060A12;
  --footer-text: #9AA6BC;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Rajdhani", "Inter", sans-serif; font-weight: 700; letter-spacing: 0.01em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.icon { width: 46px; height: 46px; color: var(--amber); }
.icon svg { width: 100%; height: 100%; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  header.site-header {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 1.25rem; }
.brand-logo { border-radius: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
.nav-toggle-icon { width: 22px; height: 22px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--amber); }
.main-nav a.btn-primary, .main-nav a.btn-primary:hover { color: #1A1002; }
.btn-nav { padding: 10px 20px !important; }

/* ---------- Botões ---------- */
.btn-primary, .btn-secondary {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--amber); color: #1A1002; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--amber) 35%, transparent); }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

/* farolete piscando — mecanismo de hover inédito nesta linha de projetos */
.btn-primary::before, .btn-secondary::before {
  content: "";
  position: absolute;
  left: -6px; top: 50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--amber);
  transform: translateY(-50%) scale(0);
  opacity: 0;
  transition: transform .2s, opacity .2s;
}
.btn-primary:hover::before, .btn-secondary:hover::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  animation: beaconBlink 0.85s ease-in-out infinite;
}
@keyframes beaconBlink {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 55%, transparent); }
  50% { box-shadow: 0 0 12px 6px color-mix(in srgb, var(--amber) 40%, transparent); }
}

/* ---------- Hero ---------- */
.hero { padding: 80px 0 60px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 760px; }
.hero .lead { max-width: 620px; font-size: 1.1rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 760px; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent);
  font-size: 0.85rem; color: var(--ink-soft);
}
.trust-chip svg { width: 15px; height: 15px; color: var(--teal); }

/* Decoração do farol no hero */
.farol-deco-wrap { width: min(420px, 92vw); margin: 0 auto; }
.farol-deco { width: 100%; height: auto; overflow: visible; }
.farol-sky circle { fill: color-mix(in srgb, var(--ink) 55%, transparent); }
.farol-beam-group { transform-origin: 124px 92px; animation: beamSweep 7s ease-in-out infinite; }
.farol-beam { fill: color-mix(in srgb, var(--amber) 30%, transparent); }
.farol-beam-soft { fill: color-mix(in srgb, var(--amber) 16%, transparent); }
@keyframes beamSweep { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(11deg); } }
.farol-tower { fill: color-mix(in srgb, var(--ink) 85%, transparent); opacity: .92; }
.farol-band { fill: var(--teal); }
.farol-lantern { fill: var(--bg-soft); stroke: var(--amber); stroke-width: 2; }
.farol-roof { fill: var(--amber); }
.farol-waves path { fill: none; stroke: var(--teal); stroke-width: 1.4; stroke-dasharray: 4 6; opacity: .55; }

/* ---------- Painel "sinal certo" + lista staggered ---------- */
.painel-farol { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.farol-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.farol-list li {
  display: flex; align-items: flex-start; gap: 12px;
  opacity: 0; transform: translateX(-14px);
  animation: feixeIn .6s ease forwards;
}
.farol-list li:nth-child(1) { animation-delay: .05s; }
.farol-list li:nth-child(2) { animation-delay: .2s; }
.farol-list li:nth-child(3) { animation-delay: .35s; }
.farol-list li:nth-child(4) { animation-delay: .5s; }
.farol-list li:nth-child(5) { animation-delay: .65s; }
@keyframes feixeIn { to { opacity: 1; transform: translateX(0); } }
.farol-list .icon { width: 28px; height: 28px; flex-shrink: 0; }

/* ---------- Cards "corte de feixe" — mask-image linear-gradient (inédito) ---------- */
.farol-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  -webkit-mask-image: linear-gradient(135deg, black 86%, transparent 93%);
  mask-image: linear-gradient(135deg, black 86%, transparent 93%);
}
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-grid .farol-card .icon { margin-bottom: 14px; }
.why-grid .farol-card h3 { font-size: 1.1rem; }
.why-grid .farol-card p { margin: 0; font-size: 0.95rem; }

/* ---------- Planos ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan-card {
  position: relative; overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex; flex-direction: column;
  -webkit-mask-image: linear-gradient(140deg, black 90%, transparent 96%);
  mask-image: linear-gradient(140deg, black 90%, transparent 96%);
}
.plan-card.featured { border-color: var(--amber); }
.plan-card.featured:hover { transform: translateY(-6px); transition: transform .25s; }
.plan-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan-price { font-size: 2.1rem; font-weight: 700; font-family: "Rajdhani", sans-serif; color: var(--amber); }
.plan-price span { font-size: 0.95rem; color: var(--ink-soft); font-weight: 500; }
.plan-note { font-size: 0.82rem; color: var(--teal); margin: -6px 0 14px; }
.plan-bullets { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; flex-grow: 1; }
.plan-bullets li { display: flex; gap: 8px; font-size: 0.92rem; color: var(--ink-soft); }
.plan-bullets .icon { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.plan-badge {
  position: absolute; top: 18px; right: -34px;
  align-self: flex-start;
  background: var(--amber); color: #1A1002;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 5px 40px;
  transform: rotate(38deg);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--amber) 35%, transparent);
}

/* ---------- Blocos genéricos ---------- */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.faq-item { border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; background: var(--bg-soft); }
.faq-item summary { cursor: pointer; font-weight: 600; font-family: "Rajdhani", sans-serif; font-size: 1.05rem; }
.faq-item p { margin-top: 12px; }
.device-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .device-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .device-grid { grid-template-columns: repeat(2, 1fr); } }
.device-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); text-align: center; font-size: 0.88rem; }
.device-icon { width: 30px; height: 30px; color: var(--teal); }
.page-icon-badge { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--amber) 14%, transparent); color: var(--amber); margin-bottom: 14px; }
.page-icon-badge svg { width: 22px; height: 22px; }

/* ---------- Mobile nav — position:absolute, nunca fixed ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    z-index: 65;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 18px;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 16px; }
  .btn-nav { align-self: flex-start; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); padding: 60px 0 24px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 12px; }
.site-footer h3 { font-size: 0.95rem; color: var(--footer-text); margin-bottom: 14px; }
.site-footer p, .site-footer a { color: var(--footer-text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.9rem; }
.site-footer a:hover { color: var(--amber); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.82rem; }
.footer-bottom p { color: var(--footer-text); margin: 0; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal); color: #06181A;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.whatsapp-icon { width: 26px; height: 26px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 760px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { border-radius: var(--radius); overflow: hidden; background: var(--bg-card); border: 1px solid var(--line); }
.blog-card img { aspect-ratio: 16/9; object-fit: cover; }
.blog-card-body { padding: 22px; }
.post-body { max-width: 720px; margin: 0 auto; }
.post-body h2 { margin-top: 1.6em; }
.post-cover { border-radius: var(--radius); margin-bottom: 30px; aspect-ratio: 16/9; object-fit: cover; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 0; }
.notfound h1 { font-size: clamp(3rem, 8vw, 5.5rem); color: var(--amber); }
