/* QI Corretora — Design System MVP (Identidade G2) */
:root {
  --primaria: #0f172a;
  --secundaria: #475569;
  --platina: #e2e8f0;
  --azul-escuro: #0f172a;
  --azul-medio: #1e293b;
  --azul-destaque: #334155;
  --grafite: #334155;
  --grafite-claro: #475569;
  --cinza: #64748b;
  --cinza-borda: #e2e8f0;
  --cinza-fundo: #e2e8f0;
  --branco: #ffffff;
  --off-white: #f8fafc;
  --texto: #0f172a;
  --max: 1120px;
  --header-h: 72px;
  --fonte: "Open Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--azul-medio);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--azul-escuro);
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--azul-escuro);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--azul-escuro);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--branco);
}

.brand:hover {
  color: var(--branco);
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--branco);
  padding: 0.45rem 0.75rem;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--branco);
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.hero {
  position: relative;
  min-height: calc(88vh - var(--header-h));
  display: flex;
  align-items: center;
  background-color: var(--primaria);
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 41, 59, 0.88) 55%, rgba(15, 23, 42, 0.92) 100%),
    url("../assets/img/hero-corporate.svg");
  background-size: cover;
  background-position: center;
  color: var(--branco);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.6) 0%, transparent 65%);
  pointer-events: none;
  animation: hero-veil 8s ease-in-out infinite alternate;
}

@keyframes hero-veil {
  from { opacity: 0.85; }
  to { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  padding: 4.5rem 0;
  animation: fade-up 0.9s ease-out both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  color: var(--branco);
  margin-bottom: 1rem;
}

.hero h2 {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.hero-disclaimer {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(226, 232, 240, 0.28);
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.88);
  font-weight: 400;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--branco);
  color: var(--azul-escuro);
}

.btn-primary:hover {
  background: var(--cinza-fundo);
  color: var(--azul-escuro);
}

.btn-secondary {
  background: transparent;
  color: var(--branco);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--branco);
}

.btn-outline {
  background: transparent;
  color: var(--azul-medio);
  border-color: var(--azul-medio);
}

.btn-outline:hover {
  background: var(--azul-medio);
  color: var(--branco);
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--branco);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.25rem;
}

.section-head p {
  color: var(--grafite-claro);
}

.page-banner {
  background: linear-gradient(120deg, var(--azul-escuro) 0%, var(--azul-medio) 100%);
  color: var(--branco);
  padding: 3rem 0 2.75rem;
}

.page-banner h1 {
  color: var(--branco);
}

.page-banner h2,
.page-banner .banner-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  font-weight: 500;
  max-width: 42rem;
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.visual-panel {
  min-height: 280px;
  background: linear-gradient(160deg, var(--azul-medio) 0%, var(--azul-escuro) 100%);
  position: relative;
  overflow: hidden;
}

.visual-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/pattern-tech.svg") center / cover no-repeat;
  opacity: 0.35;
  animation: drift 18s linear infinite;
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--cinza-borda);
}

.service-item {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--cinza-borda);
}

.service-item h3 {
  margin: 0;
  font-size: 1.05rem;
}

.service-item p:last-child {
  margin-bottom: 0;
}

/* Grid das 3 pilastras (Home) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--platina);
  border-bottom: 1px solid var(--platina);
}

.pillar {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--platina);
  animation: fade-up 0.7s ease-out both;
}

.pillar:last-child {
  border-right: none;
}

.pillar:nth-child(2) {
  animation-delay: 0.08s;
}

.pillar:nth-child(3) {
  animation-delay: 0.16s;
}

.pillar-index {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secundaria);
  margin-bottom: 0.85rem;
}

.pillar h3 {
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
}

.pillar p {
  margin: 0;
  color: var(--secundaria);
  font-size: 0.95rem;
}

.pillar a {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--primaria);
  border-bottom: 1px solid var(--platina);
  padding-bottom: 0.15rem;
}

.pillar a:hover {
  border-bottom-color: var(--primaria);
}

.about-section {
  background: var(--branco);
}

.about-section .section-head {
  margin-bottom: 1.25rem;
}

.g2-disclaimer {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--platina);
  border-left: 3px solid var(--primaria);
  font-size: 0.92rem;
  color: var(--secundaria);
}

.policy-block {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--cinza-borda);
}

.policy-block:last-child {
  border-bottom: none;
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.download-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--azul-medio);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--cinza-borda);
}

.download-list a:hover {
  color: var(--azul-escuro);
}

.download-list .file-meta {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--cinza);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-block h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grafite-claro);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.contact-block .value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--azul-escuro);
  margin-bottom: 0.35rem;
}

.contact-block a.value {
  text-decoration: none;
}

.hours-box {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--cinza-fundo);
  border-left: 3px solid var(--azul-medio);
}

.hours-box p {
  margin: 0 0 0.5rem;
  font-weight: 500;
  color: var(--grafite);
}

.hours-box p:last-child {
  margin-bottom: 0;
}

.legal-content {
  background: var(--branco);
  padding: 2.5rem 0 4rem;
}

.legal-content h2 {
  margin-top: 2rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.note {
  font-size: 0.9rem;
  color: var(--grafite-claro);
}

.disclaimer {
  font-size: 0.88rem;
  color: var(--grafite-claro);
  border-top: 1px solid var(--cinza-borda);
  padding-top: 1.25rem;
  margin-top: 2rem;
}

.site-footer {
  background: var(--primaria);
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 0 1.75rem;
  font-size: 0.88rem;
  line-height: 1.6;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
  color: var(--branco);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--branco);
  margin-bottom: 0.75rem;
}

.footer-cadastral p {
  margin-bottom: 0.55rem;
}

.footer-cadastral strong {
  color: var(--branco);
  font-weight: 600;
}

.footer-nav h4,
.footer-legal h4 {
  color: var(--branco);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.footer-nav ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav a,
.footer-legal a {
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-nav a:hover,
.footer-legal a:hover {
  text-decoration: underline;
}

.seals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.seal-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.45rem 0.55rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.seal-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.seal-link img {
  height: 48px;
  width: auto;
}

.footer-bottom {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom p {
  margin-bottom: 0.4rem;
}

@media (max-width: 900px) {
  .split,
  .footer-grid,
  .contact-grid,
  .service-item,
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .pillar {
    border-right: none;
    border-bottom: 1px solid var(--platina);
  }

  .pillar:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--azul-escuro);
    padding: 0.75rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header-inner {
    position: relative;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 3.25rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
