/* ============================================
   LERDS PHARMACY — Custom Styles
   ============================================ */

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #7B2D3B;
  color: #fff;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* ---- Hero Animations ---- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Navbar ---- */
#navbar.scrolled {
  background: rgba(58, 18, 25, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

#navbar.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

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

/* ---- Mobile Menu ---- */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

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

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

/* ---- Menu Button ---- */
#menu-btn.open .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
#menu-btn.open .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-btn.open .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 50%;
}

/* ---- Service Cards ---- */
.service-card {
  transition: background-color 0.5s ease;
}

.service-card:hover h3 {
  color: #7B2D3B;
}

.service-card h3 {
  transition: color 0.3s ease;
}

/* ---- Form Focus ---- */
input:focus,
textarea:focus {
  border-bottom-color: #7B2D3B !important;
}

/* ---- Smooth anchor offset ---- */
section[id] {
  scroll-margin-top: 80px;
}

/* ---- Subtle line separator ---- */
.service-eyebrow {
  position: relative;
  display: inline-block;
}

/* ---- Print ---- */
@media print {
  #navbar, #mobile-menu, .reveal[data-reveal] { display: none; }
  body { color: #000; background: #fff; }
}
