﻿:root {
  /* Cores principais: ajuste aqui para trocar identidade visual */
  --color-text: #f2f3ef;
  --color-muted: #d7d8d2;
  --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(47vw, 720px);

  /* 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;
}

.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;
  background:
    radial-gradient(circle at 74% 44%, rgba(200, 168, 90, 0.12), transparent 40%),
    linear-gradient(94deg, var(--color-overlay-start) 18%, var(--color-overlay-mid) 56%, var(--color-overlay-end) 100%);
}

.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(320px, 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: 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);
}

.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.98rem, 1.24vw, 1.16rem);
  color: var(--color-muted);
  text-wrap: pretty;
}

.hero__text--lead {
  color: var(--color-text);
  font-size: clamp(1.06rem, 1.36vw, 1.22rem);
}

.hero__text strong {
  color: var(--color-highlight);
}

.hero__image-wrap {
  align-self: end;
  justify-self: end;
  width: var(--photo-width);
  max-height: 94vh;
  margin: 0;
  position: relative;
}

.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 {
  display: block;
  width: 100%;
  height: auto;
  max-height: 94vh;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.45));
}

/* 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: translateX(24px);
}

.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);
}

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

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

  .hero__image-wrap {
    width: min(42vw, 520px);
    max-height: 80vh;
  }

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

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

  .hero {
    min-height: 100vh;
    height: auto;
    grid-template-columns: 1fr;
    align-items: end;
    padding: clamp(1rem, 4vh, 2rem) var(--gutter-x) clamp(0.5rem, 2vh, 1rem);
    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.95rem, 3.45vw, 1.02rem);
  }

  .hero__text--lead {
    font-size: clamp(1rem, 3.9vw, 1.1rem);
  }

  .hero__image-wrap {
    width: min(88vw, 470px);
    justify-self: center;
    max-height: 58vh;
  }

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

/* 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.9rem, 1.07vw, 1rem);
  }

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

/* 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;
  }
}
