/* ==========================================================================
   ESPAÇO NEXXO — Custom Styles
   Dark luxury aesthetic: black, gold (#9c8128), white
   Fonts: Great Vibes (cursive placeholder para Emitha), League Spartan, Open Sans
   ========================================================================== */

/* ---- NOTA: Substituir Great Vibes pela fonte Emitha quando disponível ---- */
/* @font-face {
  font-family: 'Emitha';
  src: url('../assets/fonts/Emitha.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
} */

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

::selection {
  background: rgba(156, 129, 40, 0.4);
  color: #fff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  background: #000;
  color: #fff;
}

/* ---------- GRAIN OVERLAY ---------- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: rgba(156, 129, 40, 0.3);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 129, 40, 0.5);
}

/* ---------- NAVBAR ---------- */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays via inline style animation-delay */
.reveal-up[style*="animation-delay"] {
  transition-delay: var(--delay, 0s);
}

/* ---------- SCROLL LINE ANIMATION ---------- */
.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

/* ---------- GLOBAL BORDER RADIUS ---------- */
.modalidade-card > div,
.masonry-item > div,
.faq-item,
#depoimentos .border,
#quem-somos .aspect-\[3\/4\],
#espaco .aspect-\[21\/9\],
#espaco .border,
#contato .aspect-\[4\/3\],
#contato .flex.items-start .w-12,
.carousel-prev,
.carousel-next {
  border-radius: 0.75rem;
}

/* Founders photo placeholders */
#quem-somos .w-full.aspect-\[3\/4\] {
  border-radius: 0.75rem;
}

/* Melhor idade card */
#modalidades .border.border-gold\/20 {
  border-radius: 1rem;
}

/* WhatsApp float button */
.fixed.bottom-8.right-8 {
  border-radius: 50%;
}

/* ---------- MODALIDADE CARDS ---------- */
.modalidade-card {
  cursor: pointer;
}

.modalidade-card:hover .text-6xl {
  transform: scale(1.1);
  transition: transform 0.5s ease;
}

/* ---------- CAROUSEL ---------- */
.carousel-track {
  will-change: transform;
}

.carousel-slide img,
.carousel-slide > div {
  user-select: none;
  -webkit-user-drag: none;
}

/* ---------- MASONRY ---------- */
.masonry-grid {
  column-gap: 1rem;
}

.masonry-item {
  margin-bottom: 1rem;
  break-inside: avoid;
}

.masonry-item:hover img,
.masonry-item:hover > div > div:first-child {
  transform: scale(1.03);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- FAQ ---------- */
.faq-item.active {
  border-color: rgba(156, 129, 40, 0.2);
  background: rgba(255, 255, 255, 0.01);
}

.faq-item.active .faq-vertical {
  transform: rotate(90deg) scaleY(0);
}

.faq-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-content {
  max-height: 200px;
}

/* ---------- GOLD SHIMMER EFFECT ---------- */
@keyframes goldShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.gold-shimmer {
  background: linear-gradient(
    90deg,
    #9c8128 0%,
    #c4a94d 25%,
    #f0e8c8 50%,
    #c4a94d 75%,
    #9c8128 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s linear infinite;
}

/* ---------- FLOATING WHATSAPP ---------- */
@keyframes floatPulse {
  0%, 100% {
    box-shadow: 0 4px 30px rgba(156, 129, 40, 0.4);
  }
  50% {
    box-shadow: 0 4px 40px rgba(156, 129, 40, 0.6);
  }
}

.fixed.bottom-8.right-8 {
  animation: floatPulse 3s ease-in-out infinite;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .masonry-grid {
    columns: 1;
  }

  section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .masonry-grid {
    columns: 2;
  }
}

/* ---------- FOCUS STYLES ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(156, 129, 40, 0.6);
  outline-offset: 2px;
}

/* ---------- SMOOTH IMAGE LOADING ---------- */
img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.loaded {
  opacity: 1;
}

/* ---------- HERO PHRASES ---------- */
.hero-phrase-top {
  font-size: 1.8rem !important;
  line-height: 2.4;
}

.hero-phrase-bottom {
  font-size: 1.9rem !important;
  line-height: 2.0;
}

.hero-dot {
  width: 4px;
  height: 4px;
  margin: 0 5px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

@media (min-width: 768px) {
  .hero-phrase-top {
    font-size: 2rem !important;
  }
  .hero-phrase-bottom {
    font-size: 3.5rem !important;
  }
  .hero-dot {
    width: 6px;
    height: 6px;
    margin: 0 10px;
  }
}

@media (min-width: 1024px) {
  .hero-phrase-top {
    font-size: 2.4rem !important;
  }
  .hero-phrase-bottom {
    font-size: 4.2rem !important;
  }
  .hero-dot {
    width: 7px;
    height: 7px;
    margin: 0 14px;
  }
}

/* ---------- HERO TYPOGRAPHY ---------- */
#hero .hero-headline:not(.hero-text-gradient) {
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.75);
}

#hero .hero-headline.hero-text-gradient {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.65);
  filter: none;
}

#hero .hero-lead {
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.65);
}

#hero .hero-modalities:not(.hero-text-gradient) {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

#hero .hero-modalities.hero-text-gradient {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  filter: none;
}

#hero p.hero-h2-gradient,
#hero p.hero-text-gradient {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  filter: none;
}

/* ---------- HERO LOGO ---------- */
.hero-logo {
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at center, black 40%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 70% at center, black 40%, transparent 72%);
}

/* ---------- GOLD-TO-BLACK GRADIENT ---------- */
/* Primary CTA buttons */
.gold-gradient-btn {
  background: linear-gradient(to bottom, #c4a94d 0%, #9c8128 30%, #3d3210 80%, #1a1408 100%);
  border: none;
}

.gold-gradient-btn:hover {
  background: linear-gradient(to bottom, #d4b85a 0%, #c4a94d 30%, #5c4c18 80%, #2a2010 100%);
}

/* Hero — texto 100% dourado (sem degradê) */
.hero-h2-gradient,
.hero-text-gradient {
  color: #c4a94d;
  -webkit-text-fill-color: #c4a94d;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

/* Secondary CTA (outline) */
.gold-gradient-border {
  border-image: linear-gradient(to bottom, #9c8128, #1a1408) 1;
}

/* Section gold divider lines */
.gold-divider {
  background: linear-gradient(to bottom, #9c8128, #1a1408);
}

/* Gold accent lines on cards */
.gold-line-fade {
  background: linear-gradient(to right, #c4a94d, #1a1408);
}

/* Section cursive labels */
.text-gold-fade {
  background: linear-gradient(to bottom, #c4a94d, #3d3210);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- PARALLAX HELPER ---------- */
.parallax-bg {
  will-change: transform;
  transition: transform 0.1s linear;
}
