:root {
  --bg-dark: #0B1623;
  --bg-navy: #112236;
  --accent-blue: #0284C7;
  --accent-cyan: #0EA5E9;
  --accent-orange: #EA580C;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0F172A;
  background-color: #F8FAFC;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Smooth glassmorphic header */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Hero gradient mesh */
.hero-bg {
  background: radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.28) 0%, transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(234, 88, 12, 0.16) 0%, transparent 40%),
              linear-gradient(135deg, #07111C 0%, #0D1E31 55%, #122942 100%);
}

/* Subtle engineering grid pattern */
.blueprint-grid {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Smooth scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Card hover lift */
.service-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -12px rgba(15, 23, 42, 0.12);
}

/* Pulse ring for live status */
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.5; }
}
.pulse-dot { animation: pulseDot 2s infinite; }

/* Bottom spacing on mobile for sticky bar */
@media (max-width: 767px) {
  body { padding-bottom: 72px; }
}

/* Desktop services dropdown */
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-dropdown.open,
.nav-dropdown-parent:hover .nav-dropdown,
.nav-dropdown-parent:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Gallery / lightbox */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #0B1623;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.05); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 17, 28, 0.94) 0%, rgba(7, 17, 28, 0.72) 26%, rgba(7, 17, 28, 0.1) 55%, transparent 72%);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0.85rem 1rem;
  color: #E2E8F0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
}
.gallery-zoom-hint {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0B1623;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery-item:hover .gallery-zoom-hint,
.gallery-item:focus-visible .gallery-zoom-hint { opacity: 1; transform: scale(1); }

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(7, 17, 28, 0.94);
  backdrop-filter: blur(6px);
  padding: 1.25rem;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 0.75rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  object-fit: contain;
}
body.lightbox-open { overflow: hidden; }

/* Hero image framing */
.hero-shot {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-shot img { width: 100%; height: 100%; object-fit: cover; }

/* Native video presentation */
.video-card {
  border-radius: 1rem;
  overflow: hidden;
  background: #0B1623;
  box-shadow: 0 16px 32px -18px rgba(15, 23, 42, 0.5);
}
.video-card video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Print-friendly */
@media print {
  header, footer, .no-print { display: none !important; }
}

/* Keep anchor targets clear of the sticky header */
section[id], div[id="quote-form"] { scroll-margin-top: 5.5rem; }
