/* ===== BASE RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; }
p, li, figcaption { text-wrap: pretty; }

::selection {
  background: rgba(27, 58, 92, 0.2);
  color: #1A1A1A;
}

:focus-visible {
  outline: 2px solid #1B3A5C;
  outline-offset: 3px;
  border-radius: 0.375rem;
}

button { cursor: pointer; background: none; border: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] body {
  background-color: #111111;
  color: #e0e0e0;
}
[data-theme="dark"] .bg-white {
  background-color: #1A1A1A !important;
}
[data-theme="dark"] .bg-brand-gray {
  background-color: #222222 !important;
}
[data-theme="dark"] .text-brand-black {
  color: #e0e0e0 !important;
}
[data-theme="dark"] .text-brand-gray-dark\/80,
[data-theme="dark"] .text-brand-gray-dark\/70,
[data-theme="dark"] .text-brand-gray-dark\/60 {
  color: rgba(200, 200, 200, 0.7) !important;
}
[data-theme="dark"] header {
  background: rgba(26, 26, 26, 0.95) !important;
  border-bottom-color: rgba(255,255,255,0.05) !important;
}
[data-theme="dark"] #mobile-menu {
  background: #1A1A1A !important;
}
[data-theme="dark"] .service-card,
[data-theme="dark"] .industry-card {
  background: #2a2a2a !important;
  border-color: rgba(255,255,255,0.06) !important;
}
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .industry-card:hover {
  border-color: rgba(200, 168, 75, 0.3) !important;
}
[data-theme="dark"] .service-icon {
  background: rgba(27, 58, 92, 0.3) !important;
}
[data-theme="dark"] .form-input {
  background: #2a2a2a !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: #e0e0e0 !important;
}
[data-theme="dark"] .form-input:focus {
  border-color: #C8A84B !important;
}
[data-theme="dark"] footer {
  background: #0a0a0a !important;
}
[data-theme="dark"] .bg-brand-blue\/10 {
  background: rgba(27, 58, 92, 0.3) !important;
}
[data-theme="dark"] .border-black\/5 {
  border-color: rgba(255,255,255,0.05) !important;
}

/* ===== HERO BACKGROUNDS ===== */
.hero-bg {
  background:
    url('./assets/hero-bg.jpg') center center / cover no-repeat;
}

.areas-bg {
  background:
    linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  background-size: cover;
}

/* ===== NAV LINKS ===== */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333333;
  border-radius: 0.5rem;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover {
  color: #1B3A5C;
  background: rgba(27, 58, 92, 0.05);
}
[data-theme="dark"] .nav-link {
  color: #ccc;
}
[data-theme="dark"] .nav-link:hover {
  color: #D4BA6A;
  background: rgba(200, 168, 75, 0.1);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #333333;
  border-radius: 0.75rem;
  transition: all 180ms;
}
.mobile-nav-link:hover,
.mobile-nav-link:active {
  color: #1B3A5C;
  background: rgba(27, 58, 92, 0.05);
}
[data-theme="dark"] .mobile-nav-link {
  color: #ccc;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
  border-color: rgba(200, 168, 75, 0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.service-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(27, 58, 92, 0.08);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #1B3A5C;
  transition: all 250ms;
}
.service-card:hover .service-icon {
  background: #1B3A5C;
  color: white;
}

/* ===== INDUSTRY CARDS ===== */
.industry-card {
  background: #F5F5F5;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}
.industry-card:hover {
  border-color: rgba(200, 168, 75, 0.3);
  background: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.industry-icon {
  color: #1B3A5C;
  transition: transform 250ms;
}
.industry-card:hover .industry-icon {
  transform: scale(1.1);
}

/* ===== FORM INPUTS ===== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: white;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.form-input:focus {
  outline: none;
  border-color: #1B3A5C;
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.12);
}
.form-input::placeholder {
  color: rgba(0,0,0,0.3);
}
.form-input.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeUp {
  animation: fadeUp 0.8s ease-out forwards;
  opacity: 0;
}
.animation-delay-100 { animation-delay: 100ms; }
.animation-delay-200 { animation-delay: 200ms; }
.animation-delay-300 { animation-delay: 300ms; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.25);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-fadeUp {
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
