/* ============================================
   OBVORA — Dynamic Layer
   Warm · Organic · Botanical · Premium
   ============================================ */

/* ===== PASSWORD GATE ===== */
.pg-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.pg-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pg-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 25% 60%, #0c2216 0%, #071209 60%, #030805 100%);
}

.pg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: pgOrbFloat 14s ease-in-out infinite;
}

.pg-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(61,107,74,0.35) 0%, transparent 70%);
  top: -150px; left: -100px;
}

.pg-orb-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(184,146,60,0.2) 0%, transparent 70%);
  bottom: -100px; right: -80px;
  animation-delay: -5s;
}

.pg-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(26,112,112,0.2) 0%, transparent 70%);
  top: 50%; left: 55%;
  animation-delay: -9s;
}

@keyframes pgOrbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%  { transform: translate(40px,-30px) scale(1.06); }
  66%  { transform: translate(-25px,35px) scale(0.94); }
}

.pg-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 56px 48px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.07);
  animation: pgCardIn 0.7s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

@keyframes pgCardIn {
  from { opacity: 0; transform: translateY(40px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pg-logo-mark {
  width: 66px; height: 66px;
  background: linear-gradient(135deg, #3D6B4A, #1A7070);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem; font-weight: 600;
  color: white;
  box-shadow: 0 8px 40px rgba(61,107,74,0.5);
}

.pg-gold-line {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, #B8923C, transparent);
  margin: 0 auto 20px;
}

.pg-card h2 {
  font-family: 'Cormorant Garamond', serif;
  color: white;
  font-size: 1.85rem;
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.pg-card p {
  color: rgba(255,255,255,0.38);
  font-size: 0.87rem;
  margin-bottom: 36px;
  line-height: 1.65;
}

.pg-input-wrap {
  position: relative;
  margin-bottom: 14px;
}

.pg-input-wrap input {
  width: 100%;
  padding: 15px 48px 15px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.93rem;
  outline: none;
  transition: all 0.3s ease;
  letter-spacing: 0.04em;
}

.pg-input-wrap input::placeholder { color: rgba(255,255,255,0.22); letter-spacing: 0; }

.pg-input-wrap input:focus {
  border-color: rgba(61,107,74,0.6);
  background: rgba(61,107,74,0.08);
  box-shadow: 0 0 0 3px rgba(61,107,74,0.15);
}

.pg-input-wrap.shake { animation: pgShake 0.45s ease; }

@keyframes pgShake {
  0%,100% { transform: translateX(0); }
  20%  { transform: translateX(-10px); }
  40%  { transform: translateX(10px); }
  60%  { transform: translateX(-7px); }
  80%  { transform: translateX(7px); }
}

.pg-toggle {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; font-size: 1rem;
  color: rgba(255,255,255,0.28);
  transition: color 0.2s;
  padding: 4px;
}
.pg-toggle:hover { color: rgba(255,255,255,0.65); }

.pg-btn {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3D6B4A, #1A7070);
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.93rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 32px rgba(61,107,74,0.45);
}

.pg-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(61,107,74,0.55); }
.pg-btn:active { transform: translateY(0); }

.pg-error {
  margin-top: 14px;
  color: #FF8A80;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}
.pg-error.show { opacity: 1; }

.pg-hint {
  margin-top: 22px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.16);
  letter-spacing: 0.06em;
}

/* ===== HERO ORGANIC BACKGROUND ===== */
/* Soft warm blobs on light background */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: blobDrift ease-in-out infinite;
}

.hero-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(61,107,74,0.12) 0%, transparent 70%);
  top: -100px; right: 0;
  animation-duration: 20s; animation-delay: 0s;
}

.hero-blob-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(184,146,60,0.1) 0%, transparent 70%);
  bottom: -80px; left: -60px;
  animation-duration: 26s; animation-delay: -10s;
}

.hero-blob-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(26,112,112,0.09) 0%, transparent 70%);
  top: 35%; left: 40%;
  animation-duration: 18s; animation-delay: -6s;
}

@keyframes blobDrift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%  { transform: translate(25px,-30px) scale(1.06); }
  66%  { transform: translate(-20px,22px) scale(0.96); }
}

@keyframes missionSheen {
  0%, 55% { transform: translateX(-120%); opacity: 0; }
  68% { opacity: 1; }
  88%, 100% { transform: translateX(120%); opacity: 0; }
}

@keyframes flowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,107,74,0.42); }
  50% { box-shadow: 0 0 0 9px rgba(61,107,74,0); }
}

@keyframes flowFloat {
  0%, 100% { transform: translate3d(0,0,0); }
  35% { transform: translate3d(10px,-12px,0); }
  70% { transform: translate3d(-8px,8px,0); }
}

@keyframes ribbonSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes activeLetterBeat {
  0%, 100% { box-shadow: 0 20px 54px rgba(0,0,0,0.22), 0 0 0 5px rgba(184,146,60,0.18); }
  50% { box-shadow: 0 24px 64px rgba(0,0,0,0.26), 0 0 0 10px rgba(184,146,60,0.08); }
}

@keyframes slideCardSwap {
  0% { opacity: 0; transform: translateX(28px) scale(0.97); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* Botanical leaf SVG decorations */
.botanical {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
  animation: botanicalSway ease-in-out infinite;
}

@keyframes botanicalSway {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50%       { transform: rotate(4deg) scale(1.02); }
}

.botanical-tl {
  top: 10%; left: -40px;
  width: 220px;
  animation-duration: 12s;
}

.botanical-br {
  bottom: 5%; right: -30px;
  width: 200px;
  animation-duration: 16s;
  animation-delay: -6s;
  transform: scaleX(-1) rotate(20deg);
}

.botanical-tr {
  top: 20%; right: 5%;
  width: 130px;
  animation-duration: 14s;
  animation-delay: -3s;
  opacity: 0.06;
}

/* ===== FLOATING PARTICLES ===== */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particleRise linear infinite;
}

@keyframes particleRise {
  0%   { transform: translateY(0) scale(0); opacity: 0; }
  10%  { opacity: 1; transform: scale(1); }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-80px) scale(0.6); opacity: 0; }
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #3D6B4A, #B8923C, #1A7070);
  z-index: 9998;
  transition: width 0.08s linear;
  border-radius: 0 2px 2px 0;
}

/* ===== CURSOR GLOW ===== */
.cursor-glow { display: none; }

@media (pointer: fine) {
  .cursor-glow {
    display: block;
    position: fixed;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61,107,74,0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 0.15s ease, top 0.15s ease;
    filter: blur(6px);
  }
}

/* ===== WAVE DIVIDERS ===== */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -2px;
  position: relative;
  z-index: 2;
}
.wave-divider svg { display: block; width: 100%; }

/* ===== SCROLL ANIMATIONS ===== */
.fade-left {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34,1.2,0.64,1);
}

.fade-right {
  opacity: 0;
  transform: translateX(44px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34,1.2,0.64,1);
}

.fade-up {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.34,1.3,0.64,1);
}

.fade-left.visible,
.fade-right.visible,
.fade-up.visible {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

/* ===== STAGGER DELAY HELPERS ===== */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }

/* ===== HERO WORD REVEAL ===== */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  animation: wordIn 0.55s cubic-bezier(0.34,1.4,0.64,1) forwards;
}

@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SERVICE CARD TILT ===== */
.service-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ===== INTRO CARD SLIDE ===== */
.intro-card {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s, border-color 0.3s;
}

.intro-card.visible { opacity: 1; transform: translateX(0); }

/* ===== TESTIMONIAL SECTION BACKGROUND ===== */
.testimonials {
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61,107,74,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,107,74,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

.testimonials .container { position: relative; z-index: 1; }

/* ===== CTA SECTION GLOW ===== */
.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,112,112,0.2) 0%, transparent 65%);
  filter: blur(60px);
  animation: ctaGlow 10s ease-in-out infinite;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,146,60,0.15) 0%, transparent 65%);
  filter: blur(60px);
  animation: ctaGlow 13s ease-in-out infinite reverse;
}

@keyframes ctaGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%       { transform: scale(1.25); opacity: 1; }
}

/* ===== LETTER SPACING LUXURY (The Practice style) ===== */
.hero-title { letter-spacing: -0.025em; }

.luxury-text {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ===== STAT BADGE PULSE ===== */
.hero-stat-badge {
  animation: badgePulse 4s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(61,107,74,0.35); }
  50%       { box-shadow: 0 8px 48px rgba(61,107,74,0.55); }
}

/* ===== STEP NUM ===== */
.step-num {
  box-shadow: 0 4px 14px rgba(61,107,74,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.appt-step:hover .step-num {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(61,107,74,0.45);
}

/* ===== ACTIVE NAV DOT ===== */
.nav-links a.active::after {
  content: '';
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--moss);
  margin: 2px auto 0;
  animation: navDot 0.3s ease;
}

@keyframes navDot {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .pg-card { padding: 40px 28px; margin: 16px; }
  .botanical { opacity: 0.04; }
  .hero-blob { opacity: 0.6; }
}
