/* ============================================
   All is Well Healing Arts — Custom Styles
   ============================================ */

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

/* ============================================
   Geometric shapes (hero & section decoration)
   ============================================ */
.geo-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
}

.circle-1 {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: #4ecdc6;
  top: -200px;
  left: -200px;
  opacity: 0.06;
}

.circle-2 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #4ecdc6;
  bottom: 10%;
  right: 5%;
  opacity: 0.1;
}

.circle-3 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #4ecdc6;
  top: 40%;
  left: 45%;
  opacity: 0.08;
}

.triangle-1 {
  width: 0;
  height: 0;
  border-left: 120px solid transparent;
  border-right: 120px solid transparent;
  border-bottom: 208px solid #4ecdc6;
  top: 20%;
  right: 15%;
  opacity: 0.05;
  transform: rotate(15deg);
}

.rect-1 {
  width: 200px;
  height: 200px;
  background: #4ecdc6;
  bottom: -50px;
  left: 30%;
  opacity: 0.04;
  transform: rotate(45deg);
  border-radius: 20px;
}

.circle-4 {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: #4ecdc6;
  top: 10%;
  right: -150px;
  opacity: 0.04;
}

.triangle-2 {
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 139px solid #4ecdc6;
  bottom: 15%;
  left: 10%;
  opacity: 0.05;
  transform: rotate(-20deg);
}

.circle-5 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #4ecdc6;
  bottom: -100px;
  right: -100px;
  opacity: 0.06;
}

.rect-2 {
  width: 160px;
  height: 160px;
  background: #4ecdc6;
  top: 10%;
  left: 5%;
  opacity: 0.05;
  transform: rotate(30deg);
  border-radius: 16px;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(13, 27, 42, 0.08);
}

#navbar.scrolled .nav-link {
  color: #0d1b2a;
}

#navbar.scrolled #nav-logo-text {
  color: #0d1b2a;
}

#navbar.scrolled #menu-icon {
  stroke: #0d1b2a;
}

/* ============================================
   Service cards
   ============================================ */
.service-card {
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ============================================
   Mobile menu
   ============================================ */
#mobile-menu {
  box-shadow: none;
}

#mobile-menu.open {
  box-shadow: -10px 0 40px rgba(13, 27, 42, 0.1);
}

.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ============================================
   Scroll animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  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; }

/* ============================================
   Form select arrow
   ============================================ */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d1b2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ============================================
   Selection color
   ============================================ */
::selection {
  background: rgba(78, 205, 198, 0.3);
  color: #0d1b2a;
}

/* ============================================
   Custom scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f0e8;
}

::-webkit-scrollbar-thumb {
  background: #4ecdc6;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3db5ae;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }

  .geo-shape {
    display: none;
  }
}
