/* ============================================
   THARP WOMACHKA DENTAL — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: #A8D5BA;
  color: #0D4A52;
}

/* --- Section Tags & Titles --- */
.section-tag {
  display: inline-block;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0D4A52;
  background: linear-gradient(135deg, #A8D5BA 0%, #7FB892 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #0D4A52;
  line-height: 1.2;
}

.section-desc {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 1rem;
  color: #6B6B6B;
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

/* --- Service Cards --- */
.service-card {
  position: relative;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #A8D5BA 0%, #7FB892 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

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

/* --- Navbar --- */
#navbar.scrolled {
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(13, 74, 82, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #A8D5BA, #7FB892);
  border-radius: 1px;
  transition: width 0.3s ease;
}

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

/* --- Mobile Menu --- */
.mobile-nav-link {
  position: relative;
}

/* --- Scroll Indicator --- */
.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-dot {
  width: 100%;
  height: 12px;
  background: #A8D5BA;
  position: absolute;
  top: -12px;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -12px; }
  100% { top: 40px; }
}

/* --- Hero Badge Animation --- */
.hero-badge {
  animation: fadeInDown 0.8s ease forwards;
  opacity: 0;
}

/* --- Fade In Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

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

/* --- Mobile Menu Transitions --- */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

/* --- Menu Button Animation --- */
.menu-line {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Subtle hover lift on cards --- */
.service-card {
  will-change: transform;
}

/* --- Focus styles --- */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
}

/* --- Print styles --- */
@media print {
  #navbar,
  .scroll-line,
  .btn-primary {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
