/* ============================================
   Ondrey Water-Well Drilling — Custom Styles
   ============================================ */

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

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

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: rgba(224, 96, 80, 0.15);
  color: #1e1e1e;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f7f7f7;
}
::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E06050;
}

/* ============================================
   Animations
   ============================================ */

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

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

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

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-float-up {
  animation: floatUp 0.8s ease forwards;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Staggered service card animations */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Service Label
   ============================================ */
.service-label {
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  color: #E06050;
}

/* ============================================
   Header
   ============================================ */
#header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

#header.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
  position: relative;
}

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

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

/* Mobile menu */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  transition: opacity 0.3s ease;
}

.menu-line {
  transition: all 0.3s ease;
}

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

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

/* ============================================
   Form Styles
   ============================================ */
select option {
  color: #1e1e1e;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #E06050 !important;
  box-shadow: 0 0 0 3px rgba(224, 96, 80, 0.1);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
  .font-serif {
    font-size: 2rem;
    line-height: 1.15;
  }

  #services .service-card {
    padding: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .font-serif {
    font-size: 2.5rem;
  }
}

/* ============================================
   Print
   ============================================ */
@media print {
  #header, #mobile-menu, button {
    display: none !important;
  }

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

  section {
    page-break-inside: avoid;
  }
}
