/* Topovant — estilos complementares ao Tailwind */

:root {
  --brand-700: #1a2b6d;
  --brand-500: #4a5cb5;
  --accent-cyan: #7dd3f7;
  --ink: #12141f;
  --header-fg: #ffffff;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #fff;
  color: var(--ink);
  border-radius: 0.5rem;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

/* ——— Header claro ——— */
.site-header {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26, 43, 109, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px -18px rgba(26, 43, 109, 0.35);
}
.site-header .nav-link {
  color: rgba(18, 20, 31, 0.72);
}
.site-header .nav-link:hover,
.site-header .nav-link.is-active {
  color: var(--brand-700);
  background: rgba(74, 92, 181, 0.08);
}
.site-header [data-menu-toggle] {
  border: 1px solid rgba(26, 43, 109, 0.14);
  background: #fff;
  color: var(--ink);
  border-radius: 0.75rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.mobile-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 43, 109, 0.08);
}
.mobile-menu a {
  color: rgba(18, 20, 31, 0.85) !important;
}
.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
  background: rgba(74, 92, 181, 0.08) !important;
  color: var(--brand-700) !important;
}
.mobile-menu[hidden] {
  display: none !important;
}

/* Logo: aura só onde o fundo do ambiente é escuro (ex.: hero) */
.logo-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  z-index: 1;
}
.site-header .logo-link::before,
.site-footer .logo-link::before {
  display: none;
}
.logo-link::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 160%;
  height: 180%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(244, 246, 251, 0.85) 32%,
    rgba(232, 236, 245, 0.35) 58%,
    transparent 72%
  );
  filter: blur(4px);
  pointer-events: none;
  animation: logoAura 6s ease-in-out infinite;
}
.logo-link img {
  position: relative;
  display: block;
  height: 2.65rem;
  width: auto;
}
@media (min-width: 640px) {
  .logo-link img {
    height: 2.9rem;
  }
}
.logo-link--lg img {
  height: 3.35rem;
}
.logo-link--hero {
  pointer-events: none;
}
.logo-link--hero::before {
  width: 210%;
  height: 230%;
  filter: blur(10px);
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(244, 246, 251, 0.9) 28%,
    rgba(232, 236, 245, 0.45) 52%,
    transparent 70%
  );
}
.logo-link--hero img {
  height: auto;
  width: min(240px, 38vw);
}

@keyframes logoAura {
  0%, 100% { opacity: 0.88; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

/* ——— Footer claro ——— */
.site-footer {
  position: relative;
  overflow: hidden;
  background: #f4f6fb;
  color: var(--ink);
  border-top: 1px solid rgba(26, 43, 109, 0.08);
}
.site-footer .topo-grid {
  opacity: 0.35;
}
.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 43, 109, 0.18);
  color: var(--brand-700);
  font-size: 0.875rem;
  background: #fff;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost-dark:hover {
  background: #eef1f9;
  border-color: rgba(26, 43, 109, 0.3);
}

/* ——— Botões ——— */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a5cb5 0%, #1a2b6d 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 12px 30px -12px rgba(26, 43, 109, 0.65);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 16px 36px -12px rgba(26, 43, 109, 0.75);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}
.btn-secondary-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 43, 109, 0.2);
  color: var(--brand-700);
  font-weight: 600;
  font-size: 0.95rem;
  background: #fff;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-secondary-dark:hover {
  background: #eef1f9;
  border-color: rgba(26, 43, 109, 0.35);
  transform: translateY(-1px);
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: #1f9d56;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  transition: filter 0.2s, transform 0.2s;
}
.btn-whatsapp:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  transition: background 0.2s, color 0.2s;
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.fab-whatsapp {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  background: #1f9d56;
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(31, 157, 86, 0.65);
  transition: transform 0.2s;
}
.fab-whatsapp:hover {
  transform: scale(1.06);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0b0d17;
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    /* Aura clara onde a logo aparece (direita) */
    radial-gradient(ellipse 52% 62% at 88% 26%, rgba(255, 255, 255, 0.88) 0%, rgba(244, 246, 251, 0.55) 38%, transparent 68%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(74, 92, 181, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(125, 211, 247, 0.12), transparent 50%),
    linear-gradient(160deg, #0b0d17 0%, #121a36 45%, #1a2b6d 100%);
}
.hero-logo-field {
  position: absolute;
  right: 2%;
  top: 12%;
  width: min(420px, 42vw);
  height: min(420px, 48vw);
  pointer-events: none;
  display: none;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .hero-logo-field {
    display: flex;
  }
}
.hero-logo-field::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(238, 241, 249, 0.4) 42%,
    transparent 70%
  );
  filter: blur(18px);
  animation: logoAura 7s ease-in-out infinite;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, transparent 0%, transparent 28%, rgba(11, 13, 23, 0.35) 55%, rgba(11, 13, 23, 0.55) 100%),
    linear-gradient(to top, rgba(11, 13, 23, 0.92) 0%, rgba(11, 13, 23, 0.4) 42%, rgba(11, 13, 23, 0.12) 100%);
  pointer-events: none;
}
.topo-grid {
  background-image:
    linear-gradient(rgba(125, 211, 247, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 247, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.topo-lines {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 7.5rem 0 4.5rem;
}
@media (min-width: 768px) {
  .hero-content {
    padding: 8.5rem 0 5.5rem;
  }
}

.brand-mark {
  font-family: Sora, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  font-size: clamp(2.75rem, 9vw, 5.75rem);
  color: #8a9ed4;
  text-shadow: 0 8px 40px rgba(26, 43, 109, 0.45);
}
.brand-mark span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.28em;
  letter-spacing: 0.35em;
  font-weight: 500;
  color: #8a99af;
  text-align: right;
  padding-right: 0.15em;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ——— Página interna hero curto ——— */
.page-hero {
  position: relative;
  overflow: hidden;
  background: #0b0d17;
  color: #fff;
  padding: 8rem 0 3.5rem;
}
.page-hero .hero-media {
  opacity: 0.95;
}

/* ——— Pilares / links de unidade ——— */
.pillar-link {
  display: block;
  position: relative;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(18, 20, 31, 0.1);
  transition: padding 0.25s ease;
}
.pillar-link:last-child {
  border-bottom: 1px solid rgba(18, 20, 31, 0.1);
}
.pillar-link:hover {
  padding-left: 0.5rem;
}
.pillar-link .arrow {
  transition: transform 0.25s ease;
}
.pillar-link:hover .arrow {
  transform: translateX(6px);
}

.pillar-fundiaria .pillar-accent { color: #1a2b6d; }
.pillar-ambiental .pillar-accent { color: #2f6b4f; }
.pillar-engenharia .pillar-accent { color: #3b4a9a; }
.pillar-profissionais .pillar-accent { color: #4a5cb5; }

/* ——— Formulário ——— */
.form-field {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(26, 43, 109, 0.15);
  background: #fff;
  padding: 0.9rem 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field:focus {
  border-color: #4a5cb5;
  box-shadow: 0 0 0 4px rgba(74, 92, 181, 0.15);
}
.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

/* ——— Checklist de serviços ——— */
.service-list li {
  position: relative;
  padding-left: 1.6rem;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--brand-500);
  transform: rotate(45deg);
}

/* Compass float animation */
@keyframes floatSoft {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-12px) rotate(-4deg); }
}
.compass-float {
  animation: floatSoft 7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .compass-float, .btn-primary, .pillar-link, .logo-link::before, .hero-logo-field::before {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
