/* Eco-Sanctuary Living — shared custom styles */

/* Custom organic waves using SVG clip-paths or masks */
.hero-mask {
  clip-path: ellipse(150% 100% at 50% 0%);
}
.wave-top {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23000' fill-opacity='1' d='M0,192L80,181.3C160,171,320,149,480,165.3C640,181,800,235,960,245.3C1120,256,1280,224,1360,208L1440,192L1440,0L1360,0C1280,0,1120,0,960,0C800,0,640,0,480,0C320,0,160,0,80,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
}
.card-highlight {
  box-shadow: 0 10px 40px -10px rgba(147, 84, 54, 0.4);
}

/* Soften transitions between colored sections */
.section-transition-up {
  margin-top: -100px;
  position: relative;
  z-index: 10;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
}

/* Scroll-reveal: hidden until JS adds .is-visible */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.36s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.48s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.60s; }

/* Hero parallax — image moves slower than scroll */
.hero-parallax { transform: translate3d(0, var(--parallax-y, 0), 0); }

/* Hide scrollbar on horizontal carousel */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Mobile menu drawer */
.mobile-menu {
  transform: translateY(-110%);
  transition: transform 0.35s ease;
}
.mobile-menu.open { transform: translateY(0); }

/* Skip-to-content link — hidden until keyboard-focused */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: #1a2e1d;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  z-index: 100;
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus { top: 1rem; outline: 2px solid #c18a5e; outline-offset: 2px; }

/* Stronger focus-visible ring (keyboard users) */
:focus-visible {
  outline: 2px solid #c18a5e;
  outline-offset: 3px;
  border-radius: 4px;
}
/* Restore native button/input outline behavior on mouse click */
:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .hero-parallax { transform: none !important; }
}
