/* ==========================================================================
   Global CSS Architecture Rules Reset & Typography Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lato', sans-serif;
  color: #334155;
  background-color: #f8fafc;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ==========================================================================
   Site Header & Premium Midnight Navy Navigation Layout
   ========================================================================== */
.site-navigation {
  background-color: #011231; /* Matched precisely to the dark mockup theme screenshot */
  height: 90px;
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 100%;
}

.nav-inner {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* LOGO IMAGE & TEXT HORIZONTAL SYSTEM */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none !important;
  transition: transform 0.2s ease;
  height: 100%;
}
.nav-logo:hover {
  transform: translateY(-0.5px);
}

.nav-logo-img {
  height: 72px; /* Larger logo height for stronger navbar presence */
  width: auto;
  object-fit: contain;
  max-width: 300px;
  display: block;
  margin: auto 0;
}

.nav-logo-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.nav-logo-text .brand {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-logo-text .sub {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  color: #cbd5e1;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Link Actions Matrix - Desktop Displays */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none !important;
  color: #94a3b8; /* Muted slate gray matching mockup */
  transition: color 0.2s ease-in-out;
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover,
.nav-links li:hover > a {
  color: #ffffff;
}

.dropdown-caret {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

/* Active Page Underline Indicator System */
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #3b82f6;
  transform: scaleX(0);
  transition: transform 0.2s ease-in-out;
}
.nav-links > li:hover > a::after,
.nav-links > li > a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: #ffffff;
}

/* ==========================================================================
   Desktop Dropdown Context Flyout Framework 
   ========================================================================== */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: #011231; /* Inherited midnight navy theme color profile */
  min-width: 220px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
}

.nav-links li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  width: 100%;
  padding: 10px 20px;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.dropdown-menu a::after {
  display: none !important;
}

/* ==========================================================================
   Hamburger Mobile Toggle Actions System
   ========================================================================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.menu-toggle.open .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}
.menu-toggle.open .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Global Layout Footer Section
   ========================================================================== */
footer {
  background-color: #011231; /* Aligned global theme matching navigation header */
  padding: 70px 0 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  width: 100%;
  box-sizing: border-box;
}

.footer-main {
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 240px 1fr 420px;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h4.footer-heading {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  color: #94a3b8;
  text-decoration: none !important;
  transition: color 0.2s ease;
}
.footer-links li a:hover {
  color: #ffffff;
}

.about-brand-text {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-contact-info p {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 6px;
  line-height: 1.5;
}
.footer-contact-info p strong {
  color: #cbd5e1;
}

.footer-social-links-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.footer-social-links-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.04);
  color: #ffffff !important;
  border-radius: 50%;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.footer-social-links-row a:hover {
  background-color: #2563eb;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.address-paragraph {
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 14px;
}

.meta-contact-lines p {
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  color: #94a3b8;
  margin-bottom: 8px;
}
.meta-contact-lines p strong {
  color: #cbd5e1;
  display: inline-block;
  width: 55px;
}

.meta-contact-lines p a {
  color: #3b82f6 !important;
  text-decoration: none !important;
  font-weight: 700;
}
.meta-contact-lines p a:hover {
  text-decoration: underline !important;
  color: #60a5fa !important;
}

.map-viewport-wrapper.footer-map {
  width: 100%;
  height: 190px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.map-viewport-wrapper.footer-map iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

.footer-bottom {
  padding: 30px 0 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-copy,
.developer-credit-line {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: #94a3b8;
  margin: 0;
}

.footer-copy {
  font-weight: 400;
}

.developer-credit-line {
  font-weight: 600;
}

.developer-credit-line a {
  color: #ffffff !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.developer-credit-line a:hover {
  color: #60a5fa !important;
  border-color: rgba(96, 165, 250, 0.8);
}

@media (max-width: 768px) {
  .footer-bottom-inner {
    flex-direction: column;
  }
}


/* ==========================================================================
   Responsive Mobile Media Query System Adaptive Layers
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .map-viewport-wrapper.footer-map {
    grid-column: span 2;
    height: 240px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: #011231;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 80px 40px 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    overflow-y: auto;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.2rem;
    letter-spacing: 2px;
    padding: 6px 0;
  }
  
  .nav-links a::after {
    display: none !important;
  }

  .dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    transform: none !important;
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    border: none;
    border-radius: 4px;
    width: 100%;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    text-align: center;
  }

  .has-dropdown.dropdown-open .dropdown-menu {
    max-height: 300px;
    padding: 6px 0;
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
  }

  .has-dropdown.dropdown-open .dropdown-caret {
    transform: rotate(180deg);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }
  .nav-logo-text .brand {
    font-size: 1.15rem;
  }
  .map-viewport-wrapper.footer-map {
    grid-column: span 1;
    height: 180px;
  }
  .footer-social-links-row {
    justify-content: flex-start;
  }
}