﻿:root {
  /* Cores principais: ajuste aqui para trocar identidade visual */
  --color-text: #001f77;
  --color-muted: #001f77;
  --color-highlight: #c8a85a;
  --color-overlay-start: rgba(6, 12, 9, 0.86);
  --color-overlay-mid: rgba(9, 18, 14, 0.68);
  --color-overlay-end: rgba(10, 14, 13, 0.35);

  /* 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);
  --logo-width: clamp(170px, 24vw, 340px);
  --photo-width: min(56vw, 920px);
  --photo-offset-x: 28%;
  --photo-offset-y: 2.2%;

  /* Tipografia */
  --font-title: "Cormorant Garamond", serif;
  --font-body: "Manrope", sans-serif;

  /* Acabamento visual */
  --shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.34);
  --blur-glass: 6px;
}

* {
  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,
.page-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

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

.page-overlay {
  z-index: 1;
  display: none;
}

.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(340px, 40%);
  align-items: end;
  gap: clamp(0.8rem, 2vw, 2.2rem);
}

.hero__content {
  align-self: center;
  width: min(100%, var(--content-max-width));
  padding: clamp(1rem, 2.3vw, 1.8rem) clamp(1rem, 2vw, 1.5rem);
  border-left: 2px solid rgba(200, 168, 90, 0.72);
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.14));
  border-radius: 0 14px 14px 0;
  backdrop-filter: blur(var(--blur-glass));
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 2;
}

.hero__logo {
  width: var(--logo-width);
  height: auto;
  display: block;
  margin-bottom: clamp(1rem, 2.2vh, 1.5rem);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.42));
}

.hero__text-wrap {
  max-width: 58ch; /* Largura controlada de leitura */
  display: grid;
  gap: clamp(0.8rem, 1.8vh, 1.2rem);
}

.hero__text {
  font-size: clamp(0.86rem, 1vw, 0.96rem);
  color: var(--color-muted);
  text-wrap: pretty;
}

.hero__text--lead {
  color: var(--color-text);
  font-size: clamp(0.92rem, 1.08vw, 1.02rem);
}

.hero__text strong {
  color: inherit;
  font-weight: 700;
}

.hero__image-wrap {
  position: absolute;
  right: var(--gutter-x);
  bottom: 0;
  width: var(--photo-width);
  max-height: 100vh;
  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: 100vh;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.45));
}

.hero__flag {
  position: absolute;
  left: -22%;
  bottom: -6%;
  width: clamp(920px, 190%, 1700px);
  max-width: none;
  height: auto;
  z-index: 4;
  pointer-events: none;
  opacity: 0.98;
  mix-blend-mode: normal;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.4));
  transform: translateY(13%);
}

.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: #001f77;
}

.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--logo {
  transform: translateY(-12px);
}

.reveal--text {
  transform: translateY(16px);
}

.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: 22%;
    --photo-offset-y: 1.6%;
    width: min(42vw, 520px);
    max-height: 86vh;
  }

  .hero__image {
    max-height: 86vh;
  }

  .hero__flag {
    left: -28%;
    bottom: -6%;
    width: clamp(760px, 220%, 1500px);
    opacity: 0.97;
  }
}

/* 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%;
    border-left-width: 2px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 0.25rem;
  }

  .hero__logo {
    width: clamp(145px, 46vw, 240px);
  }

  .hero__text {
    font-size: clamp(0.84rem, 3vw, 0.93rem);
  }

  .hero__text--lead {
    font-size: clamp(0.9rem, 3.35vw, 0.98rem);
  }

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

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

  .hero__image {
    max-height: 58vh;
    object-position: bottom center;
  }

  .hero__flag {
    left: -24%;
    width: min(210%, 1100px);
    bottom: -8%;
    opacity: 0.95;
  }

  .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__content {
    padding: 0.95rem 1rem;
  }

  .hero__text-wrap {
    gap: 0.65rem;
  }

  .hero__text {
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
  }

  .hero__image-wrap,
  .hero__image {
    max-height: 94vh;
  }
}

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

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

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