/* ============================================
   HealthWays Rmcl — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
}

/* Selection */
::selection {
  background: #0d9488;
  color: #f0fdfa;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0fdfa;
}
::-webkit-scrollbar-thumb {
  background: #99f6e4;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0d9488;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 1px 20px rgba(13, 148, 136, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0d9488;
  transition: width 0.25s ease;
}

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

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu.hidden {
  display: none;
}

.mobile-nav-link {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #ccfbf1;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* ============================================
   Form Focus States
   ============================================ */
input:focus,
textarea:focus {
  outline: none;
}

/* ============================================
   Responsive Typography
   ============================================ */
@media (max-width: 640px) {
  .font-serif {
    line-height: 1.15;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .nav,
  .back-to-top,
  .mobile-menu {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
}
