/* ========================================
   Cascade Lounge — Custom Styles
   Classic & Elegant · Emerald + Cream
======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: #064e3b;
  color: #FDF8F0;
}

/* ---------- Navbar ---------- */
#navbar {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08), 0 4px 24px rgba(6, 78, 59, 0.06);
}

.nav-link {
  position: relative;
}

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

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

/* ---------- Mobile menu ---------- */
.mobile-link {
  position: relative;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(6, 78, 59, 0.08);
  transition: padding-left 0.3s ease, color 0.3s ease;
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:hover {
  padding-left: 0.75rem;
  color: #059669;
}

/* ---------- Hero ---------- */
.hero-eyebrow {
  opacity: 0;
  animation: fadeDown 0.8s 0.3s ease forwards;
}

.hero-title {
  opacity: 0;
  animation: fadeUp 1s 0.5s ease forwards;
}

.hero-sub {
  opacity: 0;
  animation: fadeUp 1s 0.7s ease forwards;
}

.hero-ctas {
  opacity: 0;
  animation: fadeUp 1s 0.9s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Floating orbs ---------- */
.hero-orb, .cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #34d399, transparent 70%);
  top: -10%;
  right: -8%;
  animation: float-orb 14s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #6ee7b7, transparent 70%);
  bottom: -5%;
  left: -5%;
  animation: float-orb 18s ease-in-out infinite reverse;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #a7f3d0, transparent 70%);
  top: 40%;
  left: 30%;
  animation: float-orb 12s ease-in-out infinite 3s;
}

.cta-orb.orb-1 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #34d399, transparent 70%);
  top: -15%;
  left: 10%;
  animation: float-orb 16s ease-in-out infinite;
}

.cta-orb.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #6ee7b7, transparent 70%);
  bottom: -10%;
  right: 5%;
  animation: float-orb 20s ease-in-out infinite reverse;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(30px, -40px) scale(1.05); }
  50%       { transform: translate(-20px, 20px) scale(0.95); }
  75%       { transform: translate(15px, 35px) scale(1.02); }
}

/* ---------- Scroll reveal ---------- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(32px);
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
  }

  .reveal-up.visible,
  .reveal-left.visible,
  .reveal-right.visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
  background: #047857;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #064e3b;
}

/* ---------- Focus ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Mobile ---------- */
@media (max-width: 639px) {
  .hero-title {
    font-size: 2.5rem !important;
  }
  .hero-title span {
    font-size: 2.5rem !important;
  }
}
