/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #E8625A;
  color: #fff;
}

a {
  text-decoration: none;
}

/* ── Navbar Scroll State ── */
.nav-link-text {
  color: #1B1D24;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-link-text {
  color: #1B1D24;
}

#navbar.scrolled .nav-link {
  color: #5A5D66;
}

/* ── Floating Card Animations ── */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

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

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

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

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

/* ── Service Card Hover ── */
.service-card {
  will-change: transform;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* ── Form Focus Styles ── */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* ── Responsive Adjustments ── */
@media (max-width: 767px) {
  .font-serif {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .service-card {
    padding: 1.75rem;
  }
}

/* ── Print Styles ── */
@media print {
  nav, #contactForm, #formSuccess, .animate-float-slow, .animate-float-medium, .animate-float-fast {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
