/* ═══════════════════════════════════════════════════════════
   St. Luke's Lab Services — Custom Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: #aedcc0;
  color: #166534;
}

/* ── Navigation ── */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #166534;
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 60%;
}

/* ── Hero Geometric Shapes ── */
.hero-geo {
  animation: float 8s ease-in-out infinite;
}

.hero-geo-1 { animation-delay: 0s; }
.hero-geo-2 { animation-delay: -2s; }
.hero-geo-3 { animation-delay: -4s; }
.hero-geo-4 { animation-delay: -6s; }
.hero-geo-5 { animation-delay: -1s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
  50% { transform: translateY(-20px) rotate(var(--rotation, 0deg)); }
}

.hero-geo-3 { --rotation: 12deg; }
.hero-geo-4 { --rotation: -6deg; }

/* ── Floating Cards ── */
.floating-card {
  animation: floatCard 6s ease-in-out infinite;
}

.floating-card:nth-child(2) { animation-delay: -1.5s; }
.floating-card:nth-child(3) { animation-delay: -3s; }
.floating-card:nth-child(4) { animation-delay: -4.5s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ── Service Cards ── */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #166534, #4eaf82);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* ── Process Steps ── */
.process-step {
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -2rem;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, #aedcc0, transparent);
  display: none;
}

@media (min-width: 1024px) {
  .process-step:not(:last-child)::after {
    display: block;
  }
}

/* ── Testimonial Cards ── */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  font-weight: 700;
  color: #d5ead5;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.testimonial-card > * {
  position: relative;
  z-index: 1;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .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; }
}

/* ── Back to Top ── */
#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:not(.visible) {
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
}

/* ── Mobile Menu Transition ── */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* ── Form Focus States ── */
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
}

/* ── Print Styles ── */
@media print {
  header, #back-to-top, .hero-geo, .floating-card {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
}
