/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* ── Utility ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  border: 1.5px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-secondary:hover {
  border-color: rgba(249, 115, 22, 0.5);
  color: #f97316;
  background: rgba(249, 115, 22, 0.05);
}

.input-field {
  background: rgba(30, 35, 40, 0.8);
  border: 1.5px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}
.input-field::placeholder { color: #64748b; }
.input-field:focus {
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* ── Navbar ── */
.nav {
  background: rgba(20, 23, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.nav.scrolled {
  background: rgba(20, 23, 26, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f97316;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

.mobile-nav-link { display: block; }

/* ── Mobile Menu ── */
#mobileMenu {
  max-height: 0;
}
#mobileMenu.open {
  max-height: 400px;
}

/* ── Hero Floating Cards ── */
.floating-card {
  animation: float 6s ease-in-out infinite;
}
.floating-card:nth-child(2) {
  animation-delay: -3s;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ── Service Cards ── */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #fb923c);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover::before { opacity: 1; }

/* ── Gallery ── */
.gallery-item { cursor: pointer; }

/* ── FAQ ── */
.faq-item { transition: border-color 0.25s ease; }
.faq-item.active { border-color: rgba(249, 115, 22, 0.3); }
.faq-icon { transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-content {
  max-height: 300px;
}

/* ── Back to Top ── */
.back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:not(.visible) {
  transform: translateY(10px);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .floating-card { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Focus visible ── */
*:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}
