/* =========================================================
   SECTIONS v3 — institucional sóbrio
   ========================================================= */

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: 80px;
  display: flex;
  align-items: center;
  background: rgba(10, 15, 28, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all var(--dur-base) var(--ease-out);
}
:root[data-theme="light"] .nav { background: rgba(255, 255, 255, 0.7); }
.nav.scrolled {
  height: 64px;
  border-bottom-color: var(--border);
  background: rgba(10, 15, 28, 0.85);
}
:root[data-theme="light"] .nav.scrolled { background: rgba(255, 255, 255, 0.92); }

.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.nav__logo-mark {
  width: 38px; height: 38px;
  background-image: url("../uploads/LEGALIZE_GROUP_LOGO_UNICA.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(3, 63, 136, 0.35));
}
:root[data-theme="light"] .nav__logo-mark {
  filter: none;
}
.nav__logo .group {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--neutral);
  margin-left: 4px;
  align-self: center;
}
.nav__links {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}
.nav__links a:hover { color: var(--text-primary); }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: 12px; }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__inner { grid-template-columns: auto auto; justify-content: space-between; }
}
@media (max-width: 560px) {
  .nav__cta { display: none; }
  .nav__inner { grid-template-columns: 1fr; justify-content: start; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  padding: 160px var(--container-pad) 96px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--mesh-hero);
  pointer-events: none;
  z-index: 0;
}
/* hero__three removed — ScrollScene is global */
.hero__inner {
  position: relative;
  z-index: var(--z-content);
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-top: 28px;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.hero__lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 580px;
  margin-top: 28px;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero__badges {
  display: flex;
  gap: 12px;
  margin-top: 56px;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 120px; }
}

/* ---------- Stats ---------- */
.stats {
  padding: 96px var(--container-pad);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.stats__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.stat {
  padding: 0 32px;
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: none; padding-left: 0; }

@media (max-width: 1080px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 48px 0; }
  .stat { border-left: none; padding-left: 0; padding-right: 16px; }
  .stat:nth-child(even) { border-left: 1px solid var(--border); padding-left: 32px; }
}

/* ---------- History timeline ---------- */
.history {
  padding: 160px var(--container-pad);
}
.history__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 96px;
  align-items: start;
}
.history__head { position: sticky; top: 120px; }
.history__quote {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.history__quote .text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.history__quote .attr {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--neutral);
}
.history__quote .attr::before { content: '— '; color: var(--accent); }

.timeline {
  position: relative;
  padding-left: 56px;
  list-style: none;
  margin: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 16px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border);
}
.timeline__item {
  position: relative;
  padding-bottom: 64px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -56px; top: 4px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
}
.timeline__item::after {
  content: '';
  position: absolute;
  left: -46px; top: 14px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline__year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.timeline__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.timeline__desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

@media (max-width: 1080px) {
  .history__inner { grid-template-columns: 1fr; gap: 48px; }
  .history__head { position: relative; top: 0; }
}

/* ---------- Mission (faixa institucional) ---------- */
.mission {
  padding: 120px var(--container-pad);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(3, 63, 136, 0.18), transparent 70%),
    var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mission__inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.mission__quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-wrap: balance;
  margin-top: 8px;
}
.mission__quote em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.mission__attr {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neutral);
}
.mission__statement {
  margin-top: 32px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 680px;
  text-wrap: pretty;
}
.mission__statement em {
  font-style: normal;
  color: var(--text-primary);
  font-weight: 500;
}

/* ---------- Pillars ---------- */
.pillars {
  padding: 160px var(--container-pad);
  background: var(--bg-secondary);
}
.pillars__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}
.pillars__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.pillar {
  position: relative;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--dur-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  min-height: 460px;
}
.pillar:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
.pillar__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--neutral);
}
.pillar__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  display: grid;
  place-items: center;
  margin: 32px 0 24px;
  color: var(--accent);
}
.pillar__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--text-primary);
}
.pillar__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.pillar__desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-top: 16px;
}
.pillar__features {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.pillar__features li {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--neutral);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pillar__features li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 1080px) {
  .pillars__head { grid-template-columns: 1fr; gap: 24px; }
  .pillars__grid { grid-template-columns: 1fr; }
}

/* ---------- Blog ---------- */
.blog {
  padding: 160px var(--container-pad);
}
.blog__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}
.blog__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
.blog__cta {
  display: flex;
  justify-content: flex-end;
  align-items: end;
}
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.post {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--dur-slow) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.post:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: var(--shadow-lg);
}
.post__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elevated);
}
.post__cover-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform var(--dur-slower) var(--ease-smooth);
}
.post:hover .post__cover-art { transform: scale(1.06); }
.post__cover-art svg { width: 70%; height: 70%; opacity: 0.9; }
.post__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,15,28,0.6) 100%);
  pointer-events: none;
}
.post__category {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: rgba(10, 15, 28, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.post__body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
}
.post__meta {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-tertiary);
}
.post__meta span { display: inline-flex; align-items: center; gap: 6px; }
.post__title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--text-primary);
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post__cta {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
.post__cta svg { transition: transform var(--dur-base) var(--ease-out); }
.post:hover .post__cta svg { transform: translate(3px, -3px); }

@media (max-width: 1080px) {
  .blog__head { grid-template-columns: 1fr; gap: 24px; }
  .blog__cta { justify-content: flex-start; }
  .blog__grid { grid-template-columns: 1fr; }
}

/* ---------- CTA Final ---------- */
.cta-final {
  padding: 160px var(--container-pad);
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--bg-secondary);
}
.cta-final__inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.cta-final__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.cta-final__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.cta-final__sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
}
.cta-final__buttons {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Footer (azul institucional) ---------- */
.footer {
  background: var(--blue-500);
  color: #FFF;
  padding: 96px var(--container-pad) 32px;
}
.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 64px;
}
.footer__brand .nav__logo { color: #FFF; margin-bottom: 20px; }
.footer__brand .nav__logo-mark {
  filter: brightness(0) invert(1) drop-shadow(0 0 0 transparent);
  opacity: 0.95;
}
.footer__brand .nav__logo .group { color: rgba(255,255,255,0.6); }
.footer__brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  max-width: 320px;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col a {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.footer__col a:hover { color: #FFF; }
.footer__contact .line {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}
.footer__contact .line strong { color: #FFF; font-weight: 500; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__bottom .credentials {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.6);
}
.footer__bottom .credentials span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer__bottom .credentials span::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}
.footer__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 1080px) {
  .footer__top { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@media (max-width: 640px) {
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   MOBILE — refinos para telas ≤768px e ≤480px
   ========================================================= */
@media (max-width: 768px) {
  /* Container */
  :root { --container-pad: 20px; }

  /* Nav */
  .nav { height: 64px; }
  .nav.scrolled { height: 56px; }
  .nav__logo { font-size: 18px; }
  .nav__logo-mark { width: 32px; height: 32px; }
  .nav__cta .btn { padding: 9px 16px; font-size: 13px; }

  /* Hero */
  .hero { padding: 110px 20px 64px; min-height: auto; }
  .hero__inner { gap: 40px; }
  .hero__title { font-size: clamp(36px, 9vw, 52px); margin-top: 20px; line-height: 1.05; }
  .hero__lede { font-size: 16px; margin-top: 22px; }
  .hero__ctas { margin-top: 32px; gap: 10px; }
  .hero__ctas .btn { flex: 1 1 auto; min-width: 140px; }
  .hero__badges { margin-top: 36px; gap: 8px; }
  .badge { padding: 7px 12px; font-size: 11px; }

  /* Stats */
  .stats { padding: 56px 20px; }
  .stats__inner { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .stat { padding: 0 16px; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--border); padding-left: 20px; }
  .stat-number { font-size: clamp(32px, 7vw, 44px); }
  .stat-label { font-size: 13px; max-width: none; }

  /* History / Timeline */
  .history { padding: 80px 20px; }
  .history__inner { gap: 40px; }
  .history__head { position: static; }
  .history__quote { margin-top: 32px; padding-top: 24px; }
  .timeline { padding-left: 36px; }
  .timeline__item { padding-bottom: 40px; }
  .timeline__item::before { left: -36px; width: 22px; height: 22px; }
  .timeline__item::after { left: -30px; top: 9px; width: 10px; height: 10px; }
  .timeline__year { font-size: 11px; }
  .timeline__title { font-size: 18px; }
  .timeline__desc { font-size: 14px; }

  /* Mission */
  .mission { padding: 64px 20px; }
  .mission__quote { font-size: clamp(22px, 6vw, 30px); }
  .mission__statement { font-size: 16px; margin-top: 24px; }

  /* Pillars */
  .pillars { padding: 80px 20px; }
  .pillars__head { gap: 16px; margin-bottom: 40px; }
  .pillar { padding: 28px 24px; min-height: auto; }
  .pillar__title { font-size: 22px; }
  .pillar__desc { font-size: 14px; }

  /* Blog */
  .blog { padding: 80px 20px; }
  .blog__head { gap: 16px; margin-bottom: 32px; }
  .blog__cta .btn { width: 100%; justify-content: center; }
  .post__body { padding: 22px 22px 26px; }
  .post__title { font-size: 18px; }

  /* CTA Final */
  .cta-final { padding: 80px 20px; }
  .cta-final__title { font-size: clamp(28px, 7vw, 38px); }
  .cta-final__sub { font-size: 15px; }
  .cta-final__buttons { width: 100%; flex-direction: column; }
  .cta-final__buttons .btn { width: 100%; }

  /* Footer */
  .footer { padding: 56px 20px 24px; }
  .footer__top { padding-bottom: 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__bottom .credentials { gap: 12px 16px; }

  /* Section title genérico */
  .section-title { font-size: clamp(28px, 7vw, 40px); }
  .section-lede { font-size: 15px; }

  /* Cursor signature: já some em (hover: none) — reforço */
  .cursor-glow, .cursor-blue { display: none; }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(30px, 9.5vw, 40px); line-height: 1.08; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }

  .stat-number { font-size: 28px; }
  .stat-label { font-size: 12px; }

  .post__cover { aspect-ratio: 16 / 9; }

  .footer__bottom .credentials { font-size: 10px; gap: 10px 14px; }

  /* Eyebrow: caber em uma linha mesmo em telas estreitas */
  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.10em;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
  }
  .eyebrow::before { width: 16px; flex-shrink: 0; }

  .badge { font-size: 10px; letter-spacing: 0.10em; padding: 6px 10px; }
}
