/* =========================================================================
   RND HERO R2.1 · CANDIDATA B — CSS EXCLUSIVO DA HOME (PREVIEW)
   Não carrega fonte nova: usa a tríade já existente (Montserrat · Lato).
   Cores: tokens canônicos da base (--fundacao, --texto, --terracota).
   ATIVO TEMPORÁRIO DE PREVIEW (fotografia) — PROIBIDO EM PRODUÇÃO.
   ========================================================================= */

:root {
  --rnd-gutter: clamp(1.25rem, 5vw, 4.5rem);
  --rnd-ink: #111111;
}

/* A marca-d'água legada (.watermark-bg, right:-5%) de seção posterior, que não é tocada
   nesta rodada, já era cortada visualmente por body{overflow-x:hidden}; "clip" elimina também
   a largura de rolagem fantasma sem criar contêiner de rolagem (preserva o header sticky). */
html, body { overflow-x: clip; }

/* ─── CABEÇALHO ───────────────────────────────────────────────────────── */
.rnd-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem var(--rnd-gutter);
  background-color: var(--fundacao);
}
@media (min-width: 960px) {
  .rnd-header { padding-block: 1.5rem; }
}

.rnd-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  transition: opacity 0.3s ease;
}
.rnd-brand:hover { opacity: 0.7; }
.rnd-brand img {
  display: block;
  width: auto;
  height: 36px;
  aspect-ratio: 1 / 1;
}
@media (min-width: 960px) {
  .rnd-brand img { height: 54px; }
}

.rnd-header__right { display: flex; align-items: center; gap: 1.75rem; }

.rnd-nav { display: none; }
@media (min-width: 960px) {
  .rnd-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }
}
.rnd-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--f-heading);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.78);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.rnd-nav a:hover { color: var(--rnd-ink); }

.rnd-cta-outline {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.25rem;
  border: 1px solid var(--rnd-ink);
  background: transparent;
  color: var(--rnd-ink);
  font-family: var(--f-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.rnd-cta-outline:hover { background: var(--rnd-ink); color: var(--fundacao); }
@media (min-width: 960px) {
  .rnd-header .rnd-cta-outline { display: inline-flex; }
}

/* Botão de menu (somente mobile/tablet) */
.rnd-menu-toggle,
.rnd-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--rnd-ink);
}
@media (min-width: 960px) {
  .rnd-menu-toggle { display: none; }
}
.rnd-menu-toggle svg, .rnd-menu__close svg { width: 22px; height: 22px; }

/* ─── OVERLAY MOBILE ──────────────────────────────────────────────────── */
.rnd-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 1rem var(--rnd-gutter) 1.5rem;
  background: var(--fundacao);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.rnd-menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s ease, visibility 0s;
}
.rnd-menu__top { display: flex; align-items: center; justify-content: space-between; }
.rnd-menu__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}
.rnd-menu__nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--f-heading);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--rnd-ink);
}
.rnd-menu__foot .rnd-cta-outline { display: flex; width: 100%; min-height: 52px; }
@media (min-width: 960px) {
  .rnd-menu { display: none; }
}

/* ─── HERO ────────────────────────────────────────────────────────────── */
.rnd-hero-r21 { background: var(--fundacao); }

.rnd-hero-r21__inner {
  max-width: none;
  margin: 0;
  padding: clamp(2rem, 5vh, 3.5rem) var(--rnd-gutter) clamp(2rem, 6vh, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rnd-hero__title {
  font-family: var(--f-heading);
  font-size: clamp(2.2rem, 1.2rem + 3.2vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--rnd-ink);
  max-width: 11.2em;
  margin: 0;
}
.rnd-hero__accent { color: var(--terracota); font-weight: inherit; font-style: normal; }

.rnd-hero__lead {
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(17, 17, 17, 0.78);
  max-width: 31rem;
  margin: 1.5rem 0 0;
}
@media (min-width: 768px) {
  .rnd-hero__lead { font-size: 1.125rem; margin-top: 2rem; }
}

.rnd-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 1.75rem;
  padding: 0 1.9rem;
  background: var(--rnd-ink);
  color: var(--fundacao);
  border: 1px solid var(--rnd-ink);
  font-family: var(--f-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.rnd-hero__cta:hover { background: var(--terracota); border-color: var(--terracota); }
@media (max-width: 767.98px) {
  .rnd-hero__cta { width: 100%; }
}
@media (min-width: 768px) {
  .rnd-hero__cta { margin-top: 2.5rem; }
}

/* ─── FAIXA FOTOGRÁFICA — ATIVO TEMPORÁRIO DE PREVIEW ─────────────────── */
.rnd-photo {
  margin: 0;
  width: 100%;
  height: 36vh;
  min-height: 240px;
  overflow: hidden;
  background: var(--fundacao);
}
@media (min-width: 768px) {
  .rnd-photo { height: 58vh; min-height: 0; }
}
.rnd-photo__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 50%;
  border: 0;
  border-radius: 0;
}
@media (min-width: 768px) {
  .rnd-photo__img { object-position: 60% 50%; }
}

/* ─── CONSENTIMENTO ───────────────────────────────────────────────────── */
html.rnd-consent-set .rnd-consent { display: none; }

.rnd-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem var(--rnd-gutter);
  background: var(--fundacao);
  border-top: 1px solid var(--linha);
  font-family: var(--f-body);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.85);
}
.rnd-consent__text { margin: 0; }
.rnd-consent__more { text-decoration: underline; text-underline-offset: 2px; }
.rnd-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
@media (min-width: 768px) {
  .rnd-consent { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
  .rnd-consent__actions { flex-wrap: nowrap; justify-content: flex-end; gap: 1rem; flex-shrink: 0; }
}

.rnd-consent__prefs {
  min-height: 44px;
  padding: 0 0.25rem;
  font-family: var(--f-heading);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: rgba(17, 17, 17, 0.85);
}
.rnd-consent__prefs:hover { color: var(--rnd-ink); }
@media (max-width: 767.98px) {
  .rnd-consent__prefs { width: 100%; justify-content: flex-start; text-align: left; }
}

.rnd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.25rem;
  border: 1px solid var(--rnd-ink);
  background: transparent;
  color: var(--rnd-ink);
  font-family: var(--f-heading);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.rnd-btn:hover { background: var(--rnd-ink); color: var(--fundacao); }
@media (max-width: 767.98px) {
  .rnd-consent__actions .rnd-btn { flex: 1 1 calc(50% - 0.375rem); padding: 0 0.5rem; }
}

/* Painel de preferências */
.rnd-consent-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(17, 17, 17, 0.45);
}
.rnd-consent-panel.is-open { display: flex; }
.rnd-consent-panel__card {
  width: 100%;
  max-width: 32rem;
  max-height: 100%;
  overflow: auto;
  padding: 1.75rem;
  background: var(--fundacao);
  border: 1px solid var(--linha);
  font-family: var(--f-body);
  color: var(--rnd-ink);
}
.rnd-consent-panel__title {
  font-family: var(--f-heading);
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}
.rnd-consent-panel__intro { margin: 0 0 1.25rem; font-size: 0.875rem; line-height: 1.55; color: rgba(17, 17, 17, 0.78); }
.rnd-consent-opt {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 0.875rem 0;
  border-top: 1px solid var(--linha);
}
.rnd-consent-opt input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--rnd-ink); }
.rnd-consent-opt label { display: block; cursor: pointer; font-size: 0.875rem; line-height: 1.5; }
.rnd-consent-opt strong { display: block; font-family: var(--f-heading); font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.15rem; }
.rnd-consent-opt span { color: rgba(17, 17, 17, 0.75); }
.rnd-consent-panel__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.rnd-consent-panel__actions .rnd-btn { flex: 1 1 10rem; }

/* ─── MOVIMENTO REDUZIDO ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rnd-menu, .rnd-menu.is-open,
  .rnd-brand, .rnd-nav a, .rnd-cta-outline, .rnd-hero__cta, .rnd-btn {
    transition: none !important;
    animation: none !important;
  }
}
