/**
 * ACIN — Camada "Premium"
 * ------------------------------------------------------------------
 * Sistema de design que fica por cima do template Bootstrap existente
 * (style.css) para dar uma sensação mais cinematográfica/futurista,
 * mantendo a paleta: branco #f3f4f5, verde #2eb872, preto #282f34.
 *
 * Nada aqui remove estrutura — só refina superfícies, tipografia,
 * hovers e prepara ganchos (classes/atributos) que o
 * js/premium-motion.js usa para orquestrar o GSAP ScrollTrigger.
 */

:root {
  --ink: #282f34;
  --ink-soft: #3a444c;
  --paper: #f3f4f5;
  --paper-dim: #e3e5e7;
  --signal: #2eb872;
  --signal-dim: #22935c;
  --signal-glow: rgba(46, 184, 114, 0.35);
  --line-on-light: rgba(40, 47, 52, 0.12);
  --line-on-dark: rgba(243, 244, 245, 0.14);
  --radius-sm: 2px;
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   0. Base / tipografia
   ========================================================================== */

body {
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
.display-5,
.display-6,
.display-7 {
  letter-spacing: -0.01em;
}

.display-5 .text-primary,
.display-6 .text-primary,
.display-7 .text-primary {
  position: relative;
}

/* Mask usado pelo premium-motion.js para revelar palavras do texto
   (overflow escondido por palavra, cada uma sobe de baixo pra cima).
   Tem que ser inline-block — "block" quebraria linha a cada palavra. */
.reveal-lines {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: inherit;
}

.reveal-lines__line {
  display: inline-block;
  will-change: transform;
}

/* ==========================================================================
   1. Atmosfera — noise, grid guides, glow
   ========================================================================== */

.atmosphere-noise {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.grid-guides {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid-guides span {
  border-left: 1px solid rgba(243, 244, 245, 0.07);
  height: 100%;
}

.grid-guides span:last-child {
  border-right: 1px solid rgba(243, 244, 245, 0.07);
}

.grid-guides--dark span {
  border-color: rgba(40, 47, 52, 0.06);
}

.atmosphere-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}

.atmosphere-glow--signal {
  background: radial-gradient(circle, var(--signal-glow), transparent 70%);
}

.atmosphere-glow--ink {
  background: radial-gradient(
    circle,
    rgba(40, 47, 52, 0.5),
    transparent 70%
  );
}

/* ==========================================================================
   2. Cursor customizado + interações magnéticas
   ========================================================================== */

html.has-premium-cursor,
html.has-premium-cursor body {
  cursor: none;
}

html.has-premium-cursor a,
html.has-premium-cursor button,
html.has-premium-cursor .magnetic {
  cursor: none;
}

.premium-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483001;
  pointer-events: none;
  will-change: transform;
}

.premium-cursor__dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--signal);
  pointer-events: none;
  z-index: 2147483002;
  will-change: transform;
}

.premium-cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1px solid rgba(46, 184, 114, 0.55);
  pointer-events: none;
  z-index: 2147483002;
  will-change: transform, width, height;
  transition:
    width 0.25s var(--ease-premium),
    height 0.25s var(--ease-premium),
    margin 0.25s var(--ease-premium),
    border-color 0.25s var(--ease-premium),
    background 0.25s var(--ease-premium);
}

.premium-cursor__ring.is-active {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-color: var(--signal);
  background: rgba(46, 184, 114, 0.08);
}

@media (pointer: coarse), (max-width: 991.98px) {
  .premium-cursor__dot,
  .premium-cursor__ring {
    display: none !important;
  }
}

/* ==========================================================================
   3. Navbar — vidro
   ========================================================================== */

.navbar.sticky-top {
  background: rgba(243, 244, 245, 0.78) !important;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-on-light);
}

.navbar .navbar-nav .nav-link {
  position: relative;
}

.navbar .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 0;
  height: 1px;
  background: var(--signal);
  transition: width 0.35s var(--ease-premium);
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
  width: 100%;
}

/* ==========================================================================
   4. Botões — metal + corte angular (sem cantos redondos genéricos)
   ========================================================================== */

.btn {
  border-radius: var(--radius-sm);
}

.btn.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(155deg, #39d38c 0%, var(--signal) 45%, #1f8a55 100%);
  border: none;
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
  transition:
    transform 0.4s var(--ease-premium),
    box-shadow 0.4s var(--ease-premium);
}

.btn.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 70%
  );
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease-premium);
  z-index: 1;
  pointer-events: none;
}

.btn.btn-primary:hover::before {
  transform: translateX(130%);
}

.btn.btn-primary:hover {
  box-shadow: 0 12px 28px -10px var(--signal-glow);
}

.btn-primary-index.btn-read-index {
  border-radius: var(--radius-sm);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}

.btn-outline-light {
  border-radius: var(--radius-sm);
}

.btn.btn-lg-square.back-to-top {
  border-radius: var(--radius-sm);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}

/* ==========================================================================
   5. Cards — Sympla / Soluções: vidro + metal, cantos discretos
   ========================================================================== */

.sympla-event-card {
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  border: 1px solid var(--line-on-light);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  transition:
    transform 0.5s var(--ease-premium),
    box-shadow 0.5s var(--ease-premium),
    border-color 0.5s var(--ease-premium);
}

.sympla-event-card:hover {
  transform: translateY(-6px);
  border-color: var(--signal);
  box-shadow:
    0 20px 40px -20px rgba(40, 47, 52, 0.35),
    0 0 0 1px var(--signal-glow);
}

.sympla-event-card__date {
  background: linear-gradient(155deg, #39d38c 0%, var(--signal) 60%, #1f8a55 100%);
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.animal-item {
  overflow: hidden;
}

.animal-item .animal-text {
  background: linear-gradient(
    180deg,
    rgba(40, 47, 52, 0) 0%,
    rgba(40, 47, 52, 0.55) 55%,
    rgba(40, 47, 52, 0.92) 100%
  );
}

/* A escala/posição de .animal-item img e .sympla-event-card__image img
   passa a ser controlada 100% pelo premium-motion.js (GSAP) — parallax
   de scroll + hover compostos na mesma transform. Nada de transition
   CSS aqui, senão ela briga com o rAF do GSAP. */

/* ==========================================================================
   5b. Molduras de canto — hover sofisticado, sem cantos redondos
   ========================================================================== */

.corner-frame {
  position: relative;
}

.corner-frame::before,
.corner-frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease-premium),
    transform 0.45s var(--ease-premium);
}

.corner-frame::before {
  top: 10px;
  left: 10px;
  border-top: 2px solid var(--signal);
  border-left: 2px solid var(--signal);
  transform: translate(-6px, -6px);
}

.corner-frame::after {
  bottom: 10px;
  right: 10px;
  border-bottom: 2px solid var(--signal);
  border-right: 2px solid var(--signal);
  transform: translate(6px, 6px);
}

.corner-frame:hover::before,
.corner-frame:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* ==========================================================================
   5c. Vidro + metal — painel com borda em gradiente (mask trick)
   ========================================================================== */

.glass-panel {
  position: relative;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.03)
  );
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: var(--radius-sm);
  isolation: isolate;
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.55),
    rgba(46, 184, 114, 0.45) 45%,
    rgba(255, 255, 255, 0.06)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   6. Seções escuras — vinheta atmosférica + grid
   ========================================================================== */

.container-news,
.fachada-esticada,
.visiting-hours,
.footer {
  position: relative;
  z-index: 0;
  overflow: hidden;
}


.container-news::after,
.fachada-esticada::after,
.visiting-hours::after,
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(46, 184, 114, 0.16),
      transparent 55%
    ),
    radial-gradient(
      circle at 88% 92%,
      rgba(46, 184, 114, 0.12),
      transparent 55%
    );
}

/* Seções claras também entram no sistema de grid/atmosfera —
   nada fica "parado"/genérico, mesmo fora dos blocos escuros. */
.hero-section {
  position: relative;
  z-index: 0;
}

/* ==========================================================================
   7. Divisores de seção — linha "metal" fina, no lugar de espaço vazio
   ========================================================================== */

.section-divider {
  position: relative;
  height: 1px;
  margin: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--line-on-light) 20%,
    var(--signal-glow) 50%,
    var(--line-on-light) 80%,
    transparent 100%
  );
}

/* ==========================================================================
   8. Scroll reveal (GSAP) — estado inicial
   ========================================================================== */

[data-reveal] {
  will-change: transform, opacity;
}

/* Enquanto o premium-motion.js não roda (JS desabilitado, erro de rede),
   o conteúdo continua visível — só aplicamos opacidade via JS mesmo. */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   9. Hero — bloco de abertura (pitch institucional + banners dinâmicos)
   ========================================================================== */

.hero-pitch__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(243, 244, 245, 0.75);
}

.hero-pitch__lead {
  color: rgba(243, 244, 245, 0.82);
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero-pitch__note {
  color: rgba(243, 244, 245, 0.68);
  font-size: 0.92rem;
}

.hero-banners {
  position: relative;
  height: 100%;
  min-height: 420px;
}

.hero-banners .simple-slider {
  height: 100%;
  min-height: 420px;
}

/* css/bootstrap.min.css define .img-fluid-carrosel com max-height: 600px
   (pensado para um carrossel solto, de altura livre). Aqui a imagem
   precisa preencher 100% da coluna do hero (que iguala a altura da coluna
   de texto ao lado via align-items-stretch) — sem isso, sobra uma faixa
   preta (fundo de .simple-slider) abaixo da imagem sempre que a coluna
   fica mais alta que 600px. */
.hero-banners .simple-slide img.img-fluid-carrosel {
  max-height: none;
  min-height: 0;
}

.simple-slide__link {
  position: absolute;
  inset: 0;
  display: block;
}

.simple-slide__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 44px 24px 56px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(10, 12, 13, 0.82)
  );
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
}

.hero-banners__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  pointer-events: none;
}

.hero-banners__arrow {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(40, 47, 52, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s var(--ease-premium),
    border-color 0.3s var(--ease-premium),
    transform 0.3s var(--ease-premium);
}

.hero-banners__arrow:hover {
  background: var(--signal);
  border-color: var(--signal);
  transform: scale(1.06);
}

.hero-banners__dots {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-banners__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition:
    background 0.3s var(--ease-premium),
    transform 0.3s var(--ease-premium);
}

.hero-banners__dot.is-active {
  background: var(--signal);
  transform: scale(1.3);
}

@media (max-width: 991.98px) {
  .hero-banners,
  .hero-banners .simple-slider {
    min-height: 320px;
  }
}

/* ==========================================================================
   10. Palavra da Presidente — frase mensal vinda do CMS
   ========================================================================== */

.president-word {
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--signal);
}

.president-word__quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ==========================================================================
   11. Aluguel de Salas e Auditório
   ========================================================================== */

/* Cards (Auditório / Sala de Reunião) e o painel de reserva ficam com
   fundo escuro próprio — a seção em volta (.hero-section) é clara, mesmo
   padrão já usado pelos cards .animal-item da seção Soluções (cards
   escuros "flutuando" sobre um fundo de página claro). */
.salas-card {
  background: var(--ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 100%;
}

.salas-card__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.salas-card__gallery--single {
  grid-template-columns: 1fr;
}

.salas-card__main-photo {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.salas-card__thumb {
  aspect-ratio: 1 / 1;
}

.salas-card__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.salas-card__body {
  padding: 24px;
}

.salas-card__specs {
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(243, 244, 245, 0.78);
}

.salas-card__specs li {
  margin-bottom: 8px;
}

.salas-card__specs li:last-child {
  margin-bottom: 0;
}

/* Painel de reserva — reaproveita .glass-panel (borda em gradiente), mas
   com fundo sólido escuro em vez do vidro translúcido: aqui não há imagem
   atrás pra desfocar, então o vidro sozinho ficaria sem contraste com o
   texto branco. */
.salas-booking {
  background: var(--ink);
}

.salas-booking__intro {
  color: rgba(243, 244, 245, 0.68);
  max-width: 60ch;
}

.salas-booking__resource {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.salas-booking__resource-btn {
  border: 1px solid var(--line-on-dark);
  background: transparent;
  color: rgba(243, 244, 245, 0.78);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  transition:
    background 0.3s var(--ease-premium),
    border-color 0.3s var(--ease-premium),
    color 0.3s var(--ease-premium);
}

.salas-booking__resource-btn:hover {
  border-color: var(--signal);
}

.salas-booking__resource-btn.is-active {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}

.salas-booking__state {
  padding: 24px 0;
  text-align: center;
  color: rgba(243, 244, 245, 0.78);
}

.salas-booking__label {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(243, 244, 245, 0.6);
}

.salas-booking__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.salas-booking__chip {
  border: 1px solid var(--line-on-dark);
  background: transparent;
  color: rgba(243, 244, 245, 0.78);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  transition:
    background 0.3s var(--ease-premium),
    border-color 0.3s var(--ease-premium),
    color 0.3s var(--ease-premium);
}

.salas-booking__chip:hover {
  border-color: var(--signal);
}

.salas-booking__chip.is-active {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}

.salas-booking .form-control {
  border-radius: var(--radius-sm);
}

.salas-booking__feedback {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.salas-booking__feedback--success {
  background: rgba(46, 184, 114, 0.14);
  border: 1px solid var(--signal);
  color: #fff;
}

.salas-booking__feedback--error {
  background: rgba(220, 53, 69, 0.14);
  border: 1px solid #dc3545;
  color: #fff;
}
