/* ============================================
   Cube Square — Premium Dark Luxury Styles
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #FDFCF7;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050D09;
}
::-webkit-scrollbar-thumb {
  background: #166534;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #228B5A;
}

/* ── Nav ── */
#nav.scrolled {
  background: rgba(5, 13, 9, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(22, 101, 52, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C9A84C;
  transition: width 0.3s ease;
}

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

/* ── Mobile Menu ── */
.mobile-link {
  position: relative;
}

#mobileMenu.open {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: all !important;
}

#mobileMenu.closed {
  transform: translateY(-10px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.menu-line.active:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
.menu-line.active:nth-child(2) {
  opacity: 0;
}
.menu-line.active:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 20px;
}

/* ── Hero Orbs ── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #166534 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #228B5A 0%, transparent 70%);
  bottom: -5%;
  right: -5%;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.3) 0%, transparent 70%);
  top: 40%;
  right: 20%;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Default state visible (progressive enhancement) */
.reveal {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

/* ── Service Cards ── */
.service-card {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .service-card.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Listing Cards ── */
.listing-card {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .listing-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .listing-card.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Testimonial Cards ── */
.testimonial-card {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .testimonial-card.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Gold shimmer on hover ── */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── Custom select arrow ── */
select option {
  background: #0A2618;
  color: #FDFCF7;
}

/* ── Form focus states ── */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(201, 168, 76, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1) !important;
}

/* ── Print ── */
@media print {
  #nav, #mobileMenu, .reveal { display: none; }
  body { background: white; color: black; }
}
