/* ==========================================================================
   Base Variables & Setup
   ========================================================================== */
:root {
  --primary: #001a33;
  --secondary: #b8860b;
  --background: #f7fafc;
  --surface-container-high: #e5e9eb;
  --surface-container-low: #f1f4f6;
  --on-surface-variant: #43474d;
  --outline-variant: #c4c6ce;
}

body {
  font-family: 'Work Sans', sans-serif;
  background-color: var(--background);
  color: #181c1e;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 172px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Hanken Grotesk', sans-serif;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.label-caps {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.bg-secondary-custom { background-color: var(--secondary) !important; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav-link {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  color: var(--primary) !important;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--secondary) !important;
}

.nav-link.active {
  border-bottom: 2px solid var(--secondary);
}

#site-header {
  transition: all 0.3s ease;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  background-color: #ffffff;
}

#header-container {
  transition: padding 0.3s ease;
}

#site-logo {
  transition: height 0.3s ease;
  height: 140px;
  width: auto;
  object-fit: contain;
}

#site-header.scrolled #header-container {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

#site-header.scrolled #site-logo {
  height: 60px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary-custom, 
.btn-secondary-custom {
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary-custom {
  background-color: var(--primary);
}

.btn-primary-custom:hover {
  background-color: #001122;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary-custom {
  background-color: var(--secondary);
}

.btn-secondary-custom:hover {
  background-color: #966b09;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(100vh - 172px);
  display: flex;
  align-items: center;
  background-color: var(--primary);
  border-bottom: 1px solid var(--outline-variant);
  overflow: hidden;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 26, 51, 0.95) 0%, rgba(0, 26, 51, 0.7) 50%, rgba(0, 26, 51, 0.3) 100%);
  z-index: 1;
}

/* ==========================================================================
   Cards & Layouts
   ========================================================================== */
.bento-card {
  background-color: #ffffff;
  border: 1px solid rgba(196, 198, 206, 0.5);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
  border-color: var(--secondary);
  transform: translateY(-8px);
}

.image-hover-wrapper video,
.bento-card .image-hover-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.bento-card:hover .image-hover-wrapper video {
  transform: scale(1.05);
}

.section-title-line {
  width: 6rem;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
  margin: 0 auto;
}

.feature-icon-box {
  width: 4.5rem;
  height: 4.5rem;
  background-color: var(--surface-container-low);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(196, 198, 206, 0.3);
  transition: all 0.3s ease;
}

.bento-card:hover .feature-icon-box {
  border-color: var(--secondary);
  background-color: white;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.footer-border {
  border-top: 6px solid var(--secondary);
}

/* ==========================================================================
   Specific Page Elements (Projects, Services, Contact)
   ========================================================================== */
.project-badge {
  background-color: rgba(0, 26, 51, 0.9);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.process-step {
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -50%;
  width: 100%;
  height: 2px;
  background-color: #e0e3e5;
  z-index: 0;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 0.25rem rgba(184, 134, 11, 0.25);
}

.iti {
  width: 100%;
  display: block;
}

.iti__country-list {
  border-radius: 0.5rem;
  border: 1px solid var(--outline-variant);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.map-container {
  height: 400px;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (min-width: 992px) {
  .map-container {
    height: 680px;
  }
}

@media (max-width: 991.98px) {
  .hero-section h1 {
    font-size: clamp(1.8rem, 5.5vw, 3rem) !important;
  }

  .hero-section .lead {
    font-size: 1.15rem !important;
  }
}

@media (max-width: 768px) {
  .process-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: clamp(1rem, 6vw, 2.2rem) !important;
  }

  .hero-section .lead {
    font-size: 1rem !important;
  }
}