/* ====================================
   HEADER STYLES
   ==================================== */

/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Hide loading screen */
#load,
.load-wrap,
.the7-spinner {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.header-topbar .container {
  padding: 0 20px;
}

/* Full width sections */
.site-header {
  width: 100% !important;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  background-color: #ffffff !important;
  will-change: transform;
  display: block !important;
}

/* Header Top Bar */
.header-topbar {
  background-color: #0066CC;
  color: #ffffff;
  padding: 8px 0;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.topbar-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.contact-info {
  display: flex;
  gap: 30px;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

.contact-item:hover {
  opacity: 0.8;
}

.contact-icon {
  width: 14px;
  height: 14px;
  color: #ffffff;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

.contact-text {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  white-space: nowrap;
}

/* Main Header */
.header-main {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  position: relative;
}

/* Logo */
.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  height: auto;
  max-height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Navigation */
.header-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
  align-items: center;
}

.menu-item {
  margin: 0;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0066CC;
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0066CC;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* CTA Button */
.header-cta {
  display: flex;
  align-items: center;
}

.btn-primary {
  background-color: #0066CC;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #0052A3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.active {
  max-height: 500px;
}

.mobile-nav {
  padding: 20px;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-nav-link {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 0;
  display: block;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #0066CC;
}

.mobile-nav-link.btn-primary {
  text-align: center;
  margin-top: 10px;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .nav-menu {
    gap: 20px;
  }
  
  .nav-link {
    font-size: 15px;
  }
}

@media screen and (max-width: 768px) {
  .header-topbar {
    padding: 6px 0;
    font-size: 12px;
  }
  
  .header-topbar .container {
    padding: 0 15px;
  }
  
  .topbar-content {
    justify-content: center;
  }
  
  .contact-info {
    gap: 15px;
    flex-wrap: nowrap;
  }
  
  .contact-item {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .contact-text {
    font-size: 12px;
  }
  
  .contact-icon {
    width: 16px;
    height: 16px;
  }
  
  .header-inner {
    padding: 12px 0;
  }
  
  .header-logo {
    flex: 0 0 auto;
    max-width: 60%;
  }
  
  .header-logo img {
    max-height: 50px;
    width: auto;
    height: auto;
    max-width: 100%;
  }
  
  .header-nav,
  .header-cta {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .header-nav {
    flex-direction: column;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .header-topbar {
    padding: 5px 0;
  }
  
  .header-topbar .container {
    padding: 0 15px;
  }
  
  .topbar-content {
    justify-content: flex-start;
    width: 100%;
  }
  
  .contact-info {
    gap: 15px;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
  }
  
  .contact-item {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .contact-text {
    font-size: 12px;
  }
  
  .contact-icon {
    width: 13px;
    height: 13px;
  }
  
  .header-logo {
    max-width: 65%;
  }
  
  .header-logo img {
    max-height: 45px;
    width: auto;
    height: auto;
    max-width: 100%;
  }
  
  .header-inner {
    gap: 10px;
  }
}
