/* ── Custom styles that complement Tailwind ── */

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: rgba(232, 93, 74, 0.3);
  color: #fff;
}

/* ── Navbar scroll state ── */
#navbar.scrolled {
  background: rgba(17, 17, 24, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ── Mobile menu line animation ── */
#menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}

/* ── Service card geometric accent on hover ── */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #E85D4A, #FF9A88);
  border-radius: 16px 16px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover::before {
  transform: scaleX(1);
}

/* ── Testimonial quote icon positioning ── */
#testimonials blockquote {
  position: relative;
}

/* ── Form select custom arrow ── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

/* ── Reduce motion for accessibility ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .service-card {
    transition: none !important;
  }
  .service-card:hover {
    transform: none !important;
  }
  #mobile-menu {
    transition: none !important;
  }
}

/* ── Tablet and up adjustments ── */
@media (min-width: 768px) {
  .hero-overlay {
    background: linear-gradient(135deg, rgba(17,17,24,.85) 0%, rgba(44,44,51,.7) 40%, rgba(232,93,74,.2) 100%);
  }
}

/* ── Focus visible for keyboard navigation ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #E85D4A;
  outline-offset: 2px;
}

/* ── Image loading placeholder ── */
img {
  background: linear-gradient(135deg, #1C1C24 0%, #2C2C33 100%);
  min-height: 200px;
}
