/* Aurum Residence — estilos específicos (complemento ao Tailwind) */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; font-family: 'Montserrat', sans-serif; }

/* Headlines no estilo Gotham — Montserrat com tracking ajustado */
.font-serif {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  letter-spacing: -0.01em;
}
h1.font-serif, h2.font-serif { font-weight: 200; letter-spacing: -0.02em; }
h3.font-serif { font-weight: 400; letter-spacing: -0.005em; }

/* ═══════ ANIMAÇÕES ═══════ */
@media (prefers-reduced-motion: no-preference) {
  /* Estado inicial: invisível e levemente abaixo */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }
  .reveal.from-left { transform: translateX(-40px); }
  .reveal.from-right { transform: translateX(40px); }
  .reveal.scale-in { transform: scale(0.92); }
  .reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  /* Stagger pra grids de cards */
  .reveal.delay-1 { transition-delay: 0.1s; }
  .reveal.delay-2 { transition-delay: 0.2s; }
  .reveal.delay-3 { transition-delay: 0.3s; }
  .reveal.delay-4 { transition-delay: 0.4s; }
  .reveal.delay-5 { transition-delay: 0.5s; }

  /* Hero parallax */
  #hero .hero-bg { will-change: transform; }

  /* Pulse sutil em CTAs primários */
  @keyframes subtle-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 166, 70, 0); }
    50% { box-shadow: 0 0 24px 4px rgba(201, 166, 70, 0.25); }
  }
  .glow-on-hover:hover { animation: subtle-glow 2s ease-in-out infinite; }

  /* Shimmer nos números grandes da campanha */
  @keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
  }
  .number-shimmer {
    background: linear-gradient(90deg, #C9A646 0%, #FFE89C 30%, #C9A646 60%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
  }

  /* Cards: lift sutil */
  .lift {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  }
  .lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  }

  /* Underline animado em links */
  .link-anim {
    position: relative;
  }
  .link-anim::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .link-anim:hover::after { width: 100%; }
}

/* Navbar transparente → sólida ao scroll */
#navbar.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
#navbar.scrolled .nav-text { color: #F5EFE0; }

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: #C9A646;
  color: #1A1A1A;
  font-weight: 600;
  letter-spacing: 0.15em;
  font-size: 13px;
  text-transform: uppercase;
  border: 1px solid #C9A646;
  transition: all 0.3s;
  cursor: pointer;
  border-radius: 2px;
}
.btn-primary:hover {
  background: transparent;
  color: #C9A646;
}

.btn-secondary {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: #E8D693;
  font-weight: 600;
  letter-spacing: 0.15em;
  font-size: 13px;
  text-transform: uppercase;
  border: 1px solid #C9A646;
  transition: all 0.3s;
  cursor: pointer;
  border-radius: 2px;
}
.btn-secondary:hover {
  background: #C9A646;
  color: #1A1A1A;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(245, 239, 224, 0.05);
  border: 1px solid rgba(201, 166, 70, 0.3);
  border-radius: 2px;
  color: #F5EFE0;
  font-size: 15px;
  transition: border-color 0.2s;
}
.form-input::placeholder { color: rgba(245, 239, 224, 0.5); }
.form-input:focus {
  outline: none;
  border-color: #C9A646;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A646' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
select.form-input option { color: #1A1A1A; background: #F5EFE0; }
