/* ========================================
   85 Hope Clinic — Custom Styles
   ======================================== */

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

body {
  overflow-x: hidden;
}

/* ========================================
   Geometric Decorative Shapes
   ======================================== */
.deco-shape {
  position: absolute;
  opacity: 0.12;
  pointer-events: none;
}

.shape-circle-1 {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.5);
  top: 10%;
  left: -5%;
  animation: float-slow 12s ease-in-out infinite;
}

.shape-circle-2 {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: 25%;
  right: 5%;
  animation: float-medium 9s ease-in-out infinite;
}

.shape-circle-3 {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  bottom: 20%;
  left: 10%;
  animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-square-1 {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  bottom: 15%;
  right: 12%;
  transform: rotate(45deg);
  animation: float-medium 11s ease-in-out infinite;
}

.shape-square-2 {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  top: 40%;
  left: 5%;
  transform: rotate(20deg);
  animation: float-slow 14s ease-in-out infinite reverse;
}

.shape-triangle-1 {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(255, 255, 255, 0.07);
  top: 60%;
  right: 20%;
  animation: float-medium 10s ease-in-out infinite;
}

.shape-ring-1 {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid rgba(165, 243, 165, 0.3);
  top: 55%;
  left: 20%;
  animation: float-slow 13s ease-in-out infinite reverse;
}

/* ========================================
   Animations
   ======================================== */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-24px) rotate(3deg); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(-2deg); }
}

@keyframes float-fast {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

/* ========================================
   Scroll Reveal Animations
   Progressive enhancement: content is visible
   by default; JS adds the animated state.
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

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

  .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; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Ensure content is visible even without JS */
.no-js .reveal,
.js .reveal {
  /* Default: visible if JS doesn't run */
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(253, 252, 250, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-serif {
  color: #1a3a1a;
}

/* ========================================
   Mobile Menu
   ======================================== */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

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

/* ========================================
   Button & Link Hover Effects
   ======================================== */
a {
  transition: color 0.2s ease;
}

/* ========================================
   Form Focus States
   ======================================== */
input:focus,
textarea:focus {
  outline: none;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 640px) {
  .shape-circle-1 {
    width: 200px;
    height: 200px;
  }

  .shape-circle-2 {
    width: 120px;
    height: 120px;
  }

  .shape-square-1 {
    width: 80px;
    height: 80px;
  }

  .shape-triangle-1 {
    border-left-width: 40px;
    border-right-width: 40px;
    border-bottom-width: 69px;
  }
}
