/* ============================================
   PRABHA RAJU, MD — Custom Styles
   Terracotta & Sand Editorial Theme
   ============================================ */

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
  background: #d9bc78;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b85c38;
}

/* --- Smooth Scrolling --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* --- Selection Color --- */
::selection {
  background: #e8b4a0;
  color: #3A2218;
}

/* --- Hero Animations --- */
.hero-eyebrow {
  animation: slideInLeft 0.8s ease-out 0.2s both;
}
.hero-headline {
  animation: fadeInUp 0.9s ease-out 0.4s both;
}
.hero-subhead {
  animation: fadeInUp 0.9s ease-out 0.6s both;
}
.hero-ctas {
  animation: fadeInUp 0.9s ease-out 0.8s both;
}
.hero-stats {
  animation: fadeInUp 0.9s ease-out 1s both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Nav Link Underline --- */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #B85C38;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* --- Section Eyebrow --- */
.section-eyebrow {
  margin-bottom: 1rem;
}

/* --- Service Card --- */
.service-card {
  opacity: 1;
}

/* --- Approach Step Hover --- */
.approach-step:hover .approach-step-number {
  transform: scale(1.1);
}

/* --- Value Item Hover --- */
.value-item:hover svg {
  transform: scale(1.1) rotate(5deg);
  transition: transform 0.3s ease;
}
.value-item svg {
  transition: transform 0.3s ease;
}

/* --- Mobile Menu Transitions --- */
#mobile-menu.menu-open {
  opacity: 1;
  pointer-events: all;
}
#mobile-menu.menu-closed {
  opacity: 0;
  pointer-events: none;
}

/* --- Mobile Nav Links --- */
.mobile-nav-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
#mobile-menu.menu-open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}
#mobile-menu.menu-open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.menu-open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.menu-open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.menu-open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.menu-open .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }

/* --- Menu Lines Animation --- */
.menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
.menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .menu-line:nth-child(3) {
  width: 1.25rem;
  transform: rotate(-45deg) translate(3px, -3px);
}

/* --- Scroll Reveal Base State (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-left,
  .reveal-right,
  .reveal-up,
  .reveal-quote,
  .reveal-header,
  .reveal-cta {
    opacity: 1;
    transform: none;
  }
}

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

/* --- Button Focus States --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #B85C38;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Form Select Arrow --- */
select option {
  color: #3A2218;
  padding: 0.5rem;
}

/* --- Print Styles --- */
@media print {
  header, footer, #back-to-top, #contact-form button {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
  .hero-headline, h2, h3, h4 {
    color: black !important;
  }
}
