/* ============================================================
   LOGITECNO SOLUTIONS — SITE INSTITUCIONAL
   Tema: dark tech · Fontes: Space Grotesk + Inter
   ============================================================ */

:root {
  --bg: #070b14;
  --bg-alt: #0a101f;
  --surface: #0d1526;
  --surface-2: #111a2e;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e6edf7;
  --muted: #94a3b8;
  --accent-1: #38bdf8;
  --accent-2: #818cf8;
  --accent-3: #c084fc;
  --grad: linear-gradient(120deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1200px, 92%); margin: 0 auto; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(129, 140, 248, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-1);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; max-height: 50px; }

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.logo-text strong { color: var(--accent-1); font-weight: 700; }

.nav-menu { display: flex; align-items: center; gap: 28px; }

.nav-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--grad);
  transition: width 0.3s ease;
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-cta { padding: 10px 20px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 170px 0 110px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 20% 10%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(600px 300px at 80% 20%, rgba(192, 132, 252, 0.13), transparent 60%),
    radial-gradient(700px 400px at 50% 110%, rgba(129, 140, 248, 0.12), transparent 60%);
  pointer-events: none;
}

.hero-content { position: relative; }

.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(129, 140, 248, 0.08);
  color: var(--accent-1);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 26px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  max-width: 900px;
  margin: 0 auto 22px;
  letter-spacing: -0.02em;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 640px;
  margin: 0 auto 38px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(13, 21, 38, 0.55);
  backdrop-filter: blur(8px);
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Seções genéricas ---------- */
.services, .faq { background: var(--bg); }
.process, .cta { background: var(--bg-alt); }

section { padding: 96px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }

.eyebrow {
  display: inline-block;
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.section-head h2, .about-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-head p { color: var(--muted); }

/* ---------- Serviços ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: var(--shadow);
}

.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 1.8rem;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.card p { color: var(--muted); font-size: 0.93rem; }

.edu-banner {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 36px;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(56, 189, 248, 0.08), rgba(192, 132, 252, 0.08)),
    var(--surface);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.edu-banner h3 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 8px; }
.edu-banner p { color: var(--muted); max-width: 600px; }

/* ---------- Processo ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}

.step-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.85;
  display: block;
  margin-bottom: 14px;
}

.step h3 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-visual { position: relative; }

.avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(circle at 30% 25%, rgba(56, 189, 248, 0.35), transparent 55%),
    radial-gradient(circle at 70% 75%, rgba(192, 132, 252, 0.3), transparent 55%),
    var(--surface-2);
  border: 1px solid var(--border);
}

.about-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px 22px;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.about-card h3 { font-family: var(--font-head); font-size: 1.05rem; }
.about-card p { color: var(--muted); font-size: 0.85rem; }

.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-text strong { color: var(--text); }

.about-list { margin: 22px 0 30px; display: grid; gap: 12px; }
.about-list li { color: var(--muted); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 22px;
  transition: border-color 0.3s ease;
}

.faq-item[open] { border-color: rgba(129, 140, 248, 0.4); }

.faq-item summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent-1);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  color: var(--muted);
  font-size: 0.93rem;
  padding: 0 0 22px;
}

/* ---------- CTA / Contato ---------- */
.cta-box {
  text-align: center;
  padding: 60px 48px;
  border-radius: 24px;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(56, 189, 248, 0.12), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
}

.cta-box h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.cta-box > p { color: var(--muted); max-width: 560px; margin: 0 auto 34px; }

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  text-align: left;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-2);
}

.contact-form select { appearance: none; }

.form-note {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p { color: var(--muted); font-size: 0.9rem; margin: 18px 0 20px; max-width: 300px; }

.socials { display: flex; gap: 18px; flex-wrap: wrap; }
.socials a { color: var(--muted); font-size: 0.88rem; transition: color 0.25s ease; }
.socials a:hover { color: var(--accent-1); }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 8px; }
.footer-col a { color: var(--muted); font-size: 0.9rem; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--accent-1); }

.footer-note { color: var(--muted); font-size: 0.82rem; line-height: 1.6; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease;
  animation: pulse 2.4s infinite;
}

.whatsapp-float:hover { transform: scale(1.08); }

@keyframes pulse {
  0% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.35); }
  70% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Animação reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsividade ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 22px;
    padding: 34px 24px 40px;
    background: rgba(7, 11, 20, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
  }

  .nav-menu.open { transform: translateY(0); }

  .hero { padding: 130px 0 80px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { max-width: 420px; margin: 0 auto; }

  .cta-box { padding: 44px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .edu-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  section { padding: 72px 0; }
  .services-grid, .process-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}