/* Be Healthy with Leman — custom effects layer (Tailwind handles layout/utility classes) */

::selection {
  background: #748067;
  color: #FFFFFF;
}

html {
  scrollbar-color: #C9C3B0 #F6F5F0;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #F6F5F0; }
::-webkit-scrollbar-thumb {
  background: #A8AE99;
  border-radius: 999px;
}

/* ---------- Nav underline ---------- */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%;
  height: 1px;
  background: #748067;
  transition: width 250ms ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: #748067;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(.22,1,.36,1), transform 700ms cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }
.reveal-delay-4 { transition-delay: 360ms; }
.reveal-delay-5 { transition-delay: 450ms; }

/* ---------- Hover-lift cards ---------- */
.lift-card {
  transition: transform 300ms cubic-bezier(.22,1,.36,1), box-shadow 300ms ease, border-color 300ms ease;
}
.lift-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(35,35,29,0.18);
}

/* ---------- Arch image frame (echoes the studio's arch motif) ---------- */
.arch-frame {
  border-radius: 999px 999px 12px 12px;
  overflow: hidden;
}

/* ---------- Placeholder media (used until real photos are supplied) ----------
   Positioning (absolute/inset) is applied via Tailwind utility classes in the
   HTML, not here, so this class can sit under a real <img> as a fallback layer. */
.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #EDEAE0, #DCD9CC);
  color: #8B8A7D;
}
.media-placeholder::after {
  content: 'Photo coming soon';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8B8A7D;
  background: rgba(255,255,255,0.7);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ==================================================================
 * Nav / mobile menu — core show/hide/position logic in plain CSS.
 * Deliberately NOT left to Tailwind's `hidden md:flex` utilities:
 * if the Tailwind CDN script is blocked or slow (ad blockers, strict
 * corporate networks, offline testing) those utility classes never
 * get generated and the whole nav breaks. This block guarantees the
 * header stays fixed and the mobile menu starts off-screen and closed
 * even if Tailwind never loads at all. Cosmetic classes (color,
 * spacing, font) still come from Tailwind in the HTML.
 * ================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.desktop-nav,
.desktop-cta {
  display: none;
}

#menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
}
#menu-backdrop:not(.hidden) {
  display: block;
}

#mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  height: 100%;
  width: 288px;
  max-width: 80vw;
  transform: translateX(100%);
  transition: transform 350ms cubic-bezier(.22,1,.36,1);
}
#mobile-menu.open {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .desktop-nav,
  .desktop-cta {
    display: flex;
  }
  #menu-toggle,
  #menu-backdrop,
  #mobile-menu {
    display: none !important;
  }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: #748067;
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

/* ---------- WhatsApp floating button ---------- */
#whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(37,211,102,0.55);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
#whatsapp-float:hover {
  transform: scale(1.07);
  box-shadow: 0 14px 36px -6px rgba(37,211,102,0.65);
}
#whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #25D366;
  animation: whatsapp-pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- Back to top ---------- */
#back-to-top {
  transition: opacity 250ms ease, transform 250ms ease;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
