@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Deep Navy Blues - dominant base */
  --navy-darkest: #0A1628;
  --navy-dark: #0F172A;
  --navy-mid: #1E293B;
  --navy-light: #334155;
  
  /* Warm Greys - contrast and readability */
  --grey-lightest: #F9FAFB;
  --grey-light: #E5E7EB;
  --grey-mid: #D1D5DB;
  --grey-dark: #9CA3AF;
  
  /* Orange Accents - interactivity and safety */
  --orange-primary: #F97316;
  --orange-dark: #EA580C;
  --orange-glow: rgba(249, 115, 22, 0.2);
  
  /* Legacy variables for compatibility */
  --bg: var(--navy-darkest);
  --fg: var(--grey-lightest);
  --muted: var(--grey-mid);
  --brand: var(--orange-primary);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--navy-mid);
  z-index: 100;
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.brand {
  font-weight: 700;
  font-size: 20px;
  color: var(--fg);
}

.brand::before {
  content: none !important;
  display: none !important;
}

.brand img,
.brand svg {
  display: none !important;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.8;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  margin-left: 16px;
  color: var(--fg);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 24px;
  border: 2px solid var(--grey-mid);
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
  color: #fff !important;
  border-color: var(--orange-primary);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.4);
  transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
  background: rgba(249, 115, 22, 0.1);
  color: var(--orange-primary) !important;
  border-color: var(--orange-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(249, 115, 22, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
}

.hero {
  padding: 140px 0 160px 0;
  background: var(--navy-darkest);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, var(--orange-glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.6; }
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 100px, rgba(249, 115, 22, 0.03) 100px, rgba(249, 115, 22, 0.03) 101px),
    repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(249, 115, 22, 0.03) 100px, rgba(249, 115, 22, 0.03) 101px),
    radial-gradient(circle at 15% 25%, rgba(249, 115, 22, 0.05) 2px, transparent 2px),
    radial-gradient(circle at 85% 75%, rgba(249, 115, 22, 0.05) 2px, transparent 2px),
    radial-gradient(circle at 45% 85%, rgba(249, 115, 22, 0.05) 2px, transparent 2px),
    radial-gradient(circle at 65% 35%, rgba(249, 115, 22, 0.05) 2px, transparent 2px);
  background-size: 100px 100px, 100px 100px, 300px 300px, 300px 300px, 300px 300px, 300px 300px;
  pointer-events: none;
  opacity: 0.6;
}

.hero-with-image {
  padding: 140px 0 160px 0;
  background: var(--navy-darkest);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.hero-with-video {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--navy-darkest);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.65), rgba(15, 23, 42, 0.55));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 160px 0;
}

.hero-with-video h1,
.hero-with-video p {
  color: #fff;
}

.hero-with-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(10, 22, 40, 0.95), rgba(15, 23, 42, 0.9)),
    radial-gradient(circle at 30% 50%, var(--orange-glow) 0%, transparent 60%);
  z-index: 1;
  animation: heroGlow 8s ease-in-out infinite;
}

.hero-with-image .container {
  position: relative;
  z-index: 2;
}

.hero-with-image h1,
.hero-with-image p {
  color: #fff;
}

.hero h1 {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--grey-lightest) 0%, var(--grey-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
}

.hero p {
  font-size: 22px;
  color: var(--grey-mid);
  margin: 0 0 32px 0;
  max-width: 700px;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.hero-with-image p {
  color: var(--grey-light);
  font-size: 20px;
}

.tiles, .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.card {
  background: var(--navy-mid);
  border: 1px solid var(--navy-light);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.15);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.card p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--muted);
}

.card .link {
  color: var(--brand);
  font-weight: 500;
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--navy-mid);
  margin-top: 48px;
  padding: 24px 0;
  background: var(--navy-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.footer-grid a {
  display: inline-block;
  margin: 4px 0;
}

.small.print {
  color: var(--muted);
  padding-top: 8px;
  font-size: 14px;
}

section {
  padding: 48px 0;
}

section h2 {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 24px 0;
  letter-spacing: -0.01em;
}

section p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.section-alt {
  background: linear-gradient(180deg, var(--navy-darkest), var(--navy-dark));
  position: relative;
}

.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, transparent 0%, var(--orange-glow) 50%, transparent 100%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(249, 115, 22, 0.03) 2px, rgba(249, 115, 22, 0.03) 4px);
  pointer-events: none;
  opacity: 0.3;
}

.section-what-we-do {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section-what-we-do::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin: 32px 0;
}

.expertise-card {
  background: var(--navy-darkest);
  border: 2px solid var(--navy-light);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-primary), var(--orange-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.expertise-card:hover {
  box-shadow: 0 20px 60px rgba(249, 115, 22, 0.25);
  transform: translateY(-8px);
  border-color: var(--orange-primary);
}

.expertise-card:hover::before {
  transform: scaleX(1);
}

.expertise-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}

.expertise-card h3 {
  margin: 0 0 16px 0;
  font-size: 24px;
  color: var(--orange-primary);
  font-weight: 700;
}

.expertise-card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  text-align: left;
}

.project-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.project-icon-item {
  background: var(--navy-mid);
  border: 2px solid var(--navy-light);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project-icon-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-primary), var(--orange-dark));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-icon-item:hover {
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.2);
  transform: translateY(-4px);
  border-color: var(--orange-primary);
}

.project-icon-item:hover::after {
  transform: scaleX(1);
}

.project-icon {
  font-size: 36px;
  margin-bottom: 12px;
  line-height: 1;
}

.project-icon-item h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
}

.project-icon-item p {
  display: none;
}

.featured-map-box {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  border-radius: 24px;
  padding: 0;
  margin: 64px 0;
  overflow: hidden;
  border: 2px solid var(--orange-primary);
  box-shadow: 0 20px 60px rgba(249, 115, 22, 0.15);
  position: relative;
}

.featured-map-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

.featured-map-content {
  padding: 40px 48px;
  text-align: center;
}

.featured-map-content h3 {
  margin: 0 0 16px 0;
  font-size: 28px;
  color: #fff;
  font-weight: 700;
}

.featured-map-content p {
  margin: 0 auto 24px auto;
  max-width: 600px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
}

.featured-map-content .btn {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark)) !important;
  color: #fff !important;
  border-color: var(--orange-primary) !important;
  font-weight: 700;
  padding: 14px 32px;
  font-size: 16px;
  position: relative;
  z-index: 1;
}

.featured-map-content .btn:hover {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange-primary)) !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.4);
}

.cta-box {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  border: 2px solid var(--orange-primary);
  box-shadow: 0 20px 60px rgba(249, 115, 22, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  margin: 0 0 16px 0;
  color: #fff;
  font-size: 32px;
}

.cta-box p {
  margin: 0 auto 32px auto;
  max-width: 700px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
}

.cta-box .btn {
  background: var(--grey-lightest);
  color: var(--navy-darkest);
  border-color: var(--grey-lightest);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.cta-box .btn:hover {
  background: var(--grey-light);
  transform: translateY(-2px);
}

.cta-box .btn-primary {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
  color: #fff;
  border-color: var(--orange-primary);
}

.cta-box .btn-primary:hover {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange-primary));
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.4);
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
  }
  
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
  }
  
  .nav a {
    margin: 4px 8px;
    font-size: 14px;
  }
  
  .hero {
    padding: 80px 0 100px 0;
  }
  
  .hero-with-image {
    padding: 80px 0 100px 0;
  }
  
  .hero-with-video {
    height: 480px;
  }
  
  .hero-content {
    padding: 60px 0 80px 0;
  }
  
  .hero h1 {
    font-size: 40px;
  }
  
  .hero p {
    font-size: 17px;
  }
  
  section h2 {
    font-size: 32px;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .expertise-card {
    padding: 32px 24px;
  }
  
  .project-icons {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
  }
  
  .cta-box {
    padding: 40px 24px;
  }
  
  .cta-box h2 {
    font-size: 28px;
  }
  
  .featured-map-content {
    padding: 32px 24px;
  }
  
  .featured-map-content h3 {
    font-size: 24px;
  }
}
