﻿:root {
  /* Cores principais: ajuste aqui para trocar identidade visual */
  --color-text: #001f77;
  --color-muted: #001f77;
  /* Espaçamentos e dimensões globais */
  --container-max: 1280px;
  --content-max-width: 620px;
  --gutter-x: clamp(1.2rem, 3vw, 3.2rem);
  --gutter-y: clamp(1.2rem, 2.8vh, 2.8rem);
  --photo-width: min(52vw, 780px);
  --photo-offset-x: 0%;
  --photo-offset-y: 0%;

  /* Tipografia */
  --font-title: "Google Sans", Arial, sans-serif;
  --font-body: "Google Sans", Arial, sans-serif;
}

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

html,
body {
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden; /* Desktop sem scroll */
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.55;
  background: #0a0f0c;
}

a {
  color: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.01);
}

.hero {
  position: relative;
  z-index: 2;
  height: 100vh;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--gutter-y) var(--gutter-x) 0;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(300px, 42%);
  align-items: end;
  gap: clamp(0.8rem, 2vw, 2.2rem);
}

.hero__content {
  align-self: center;
  width: min(100%, var(--content-max-width));
  padding: 0;
  position: relative;
  z-index: 2;
}

.hero__title {
  display: grid;
  gap: clamp(0.15rem, 0.6vw, 0.35rem);
  font-family: var(--font-title);
  text-wrap: balance;
  filter: drop-shadow(0 8px 18px rgba(255, 255, 255, 0.28));
}

.hero__title-kicker,
.hero__title-name,
.hero__title-subtitle {
  display: block;
  line-height: 0.95;
}

.hero__title-kicker {
  color: #0da3e8;
  font-size: clamp(2.1rem, 4.3vw, 4.15rem);
  font-weight: 600;
}

.hero__title-name {
  color: #7127aa;
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 700;
}

.hero__title-subtitle {
  color: #7127aa;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.75vw, 1.55rem);
  font-weight: 700;
  line-height: 1.12;
  margin-top: clamp(0.25rem, 0.8vw, 0.55rem);
}

.hero__image-wrap {
  position: fixed;
  right: clamp(2rem, 10vw, 8rem);
  bottom: 0;
  width: var(--photo-width);
  max-height: 108vh;
  margin: 0;
  isolation: isolate;
  overflow: visible;
  transform: translate(var(--photo-offset-x), var(--photo-offset-y));
}

.hero__image-wrap::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -10px;
  height: 28px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0) 72%);
  filter: blur(5px);
  z-index: -1;
}

.hero__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 108vh;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.45));
}

.site-footer {
  position: fixed;
  left: var(--gutter-x);
  bottom: 0.9rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: min(56vw, 700px);
  color: rgba(0, 31, 119, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.privacy-popup {
  position: fixed;
  right: var(--gutter-x);
  bottom: 1rem;
  z-index: 20;
  width: min(420px, calc(100vw - 2.4rem));
}

.privacy-popup[hidden] {
  display: none;
}

.privacy-popup__content {
  padding: 1rem;
  color: #001f77;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 31, 119, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.privacy-popup__content p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.5;
}

.privacy-popup__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.privacy-popup__actions a {
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.privacy-popup__actions button {
  min-height: 2.35rem;
  padding: 0 1rem;
  color: #fff;
  font: 700 0.82rem/1 var(--font-body);
  background: #001f77;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.privacy-page {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f6f3ea;
}

.privacy-page body,
body.privacy-page {
  overflow-y: auto;
  background: #f6f3ea;
}

.privacy-document {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 0;
  color: #111;
}

.privacy-document__back {
  display: inline-flex;
  margin-bottom: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.privacy-document article {
  padding: clamp(1.2rem, 4vw, 2.4rem);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 31, 119, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.privacy-document h1,
.privacy-document h2 {
  font-family: var(--font-title);
  line-height: 1.08;
}

.privacy-document h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(2rem, 7vw, 3.4rem);
}

.privacy-document h2 {
  margin: 1.8rem 0 0.55rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.privacy-document p,
.privacy-document li {
  font-size: 0.98rem;
}

.privacy-document p + p,
.privacy-document ul + p {
  margin-top: 0.8rem;
}

.privacy-document ul {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
}

.privacy-document__updated {
  margin-bottom: 1.5rem;
  font-weight: 700;
  opacity: 0.78;
}

/* Estado inicial para animação */
.reveal {
  opacity: 0;
  will-change: transform, opacity;
}

.reveal--title {
  transform: translateY(-12px);
}

.reveal--photo {
  transform: translate(calc(var(--photo-offset-x) + 24px), var(--photo-offset-y));
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal--photo.is-visible {
  transform: translate(var(--photo-offset-x), var(--photo-offset-y));
}

/* Tablet */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr minmax(260px, 37%);
    align-items: center;
  }

  .hero__content {
    margin-bottom: clamp(1.5rem, 5vh, 2.8rem);
  }

  .hero__image-wrap {
    --photo-offset-x: 0%;
    --photo-offset-y: 0%;
    width: min(50vw, 680px);
    max-height: 96vh;
  }

  .hero__image {
    max-height: 96vh;
  }
}

/* Mobile */
@media (max-width: 820px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  body:not(.privacy-page) {
    padding-bottom: 5rem;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    position: relative;
    overflow: hidden;
    grid-template-columns: 1fr;
    align-items: start;
    padding: clamp(1rem, 4vh, 2rem) var(--gutter-x) min(58vh, 470px);
    gap: 1rem;
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.25rem;
  }

  .hero__title-kicker {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .hero__title-name {
    font-size: clamp(3.8rem, 19vw, 5.4rem);
  }

  .hero__title-subtitle {
    font-size: clamp(0.95rem, 4.4vw, 1.25rem);
  }

  .hero__image-wrap {
    --photo-offset-x: 0%;
    --photo-offset-y: 0%;
    position: absolute;
    right: 50%;
    bottom: 0;
    width: min(104vw, 560px);
    max-height: 64vh;
    transform: translateX(50%);
  }

  .reveal--photo,
  .reveal--photo.is-visible {
    transform: translateX(50%);
  }

  .hero__image {
    max-height: 64vh;
    object-position: bottom center;
  }
  .site-footer {
    position: relative;
    left: auto;
    bottom: auto;
    z-index: 6;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    max-width: none;
    margin: 0 var(--gutter-x) 1rem;
    color: rgba(0, 31, 119, 0.9);
  }

  .privacy-popup {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    width: auto;
  }

  .privacy-popup__actions {
    justify-content: space-between;
  }
}

/* Telas muito baixas (notebooks menores) */
@media (max-height: 720px) and (min-width: 821px) {
  .hero__image-wrap,
  .hero__image {
    max-height: 94vh;
  }
}

/* Acessibilidade: reduz animações quando preferido pelo usuário */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--title,
  .reveal--photo {
    opacity: 1;
    transform: none;
  }

  .reveal.is-visible {
    transition: none;
  }

  .reveal--photo {
    transform: translate(var(--photo-offset-x), var(--photo-offset-y));
  }
}
