/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-fast);
  padding: 16px 0;
}

.site-header .header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header.transparent {
  background: transparent;
}

.site-header.scrolled {
  background: var( --primary-dark);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 5; /* Set slightly lower than hamburger */
  position: relative;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}



.logo-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white-color);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--white-color);
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-item > .nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
  position: relative;
  white-space: nowrap;
}
/* ============================================
   LOGO RESPONSIVENESS
   ============================================ */
.logo-text img {
  height: 60px;
  width: auto;
  transition: all 0.3s ease;
}

.site-header.scrolled .logo-text img {
  height: 50px; /* Smaller logo when scrolled */
}

@media (max-width: 768px) {
  .logo-text img {
    height: 45px;
  }
  
  .site-header.scrolled .logo-text img {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .logo-text img {
    height: 40px;
  }
  
  .site-header.scrolled .logo-text img {
    height: 35px;
  }
}

.nav-item > .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--secondary-color);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
  transform-origin: left;
}

.nav-item > .nav-link:hover {
  color: var(--white-color);
}

.nav-item > .nav-link:hover::after,
.nav-item.active > .nav-link::after {
  transform: scaleX(1);
}

/* Dropdown Toggle Arrow - Improved positioning */
.nav-item.has-dropdown {
  display: flex;
  align-items: center;
  padding-right: 8px;
}

.nav-item.has-dropdown > .nav-link {
  padding-right: 4px;
}

.dropdown-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 0;
  transition: transform var(--transition-fast);
  border-radius: 50%;
}

.dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all var(--transition-fast);
}

.dropdown-toggle:hover svg {
  stroke: var(--white-color);
}

.dropdown-toggle.open {
  transform: rotate(180deg);
}

/* Dropdown Menu - Improved styling */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: var(--white-color);
  border-radius: 8px;
  box-shadow: var(--shadow-heavy);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  padding: 8px 0;
  z-index: 100;
  border-top: 3px solid var(--secondary-color);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--secondary-color);
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--dark-color);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.dropdown-menu li a:hover {
  background: var(--light-color);
  color: var(--primary-color);
  padding-left: 24px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 20;
  position: relative; /* Ensure z-index works properly */
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white-color);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }
 .main-nav.open ~ .hamburger {
    z-index: 30; /* Even higher when menu is open */
  }

  /* Optional: Add a small background to make hamburger more visible */
  .hamburger.active {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
  }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 80px 0 40px;
    transition: right var(--transition-fast);
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-heavy);
  }

  .main-nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-item > .nav-link {
    padding: 14px 24px;
    width: 100%;
    justify-content: space-between;
  }

  .nav-item > .nav-link::after {
    display: none;
  }

  .nav-item.has-dropdown {
    flex-wrap: wrap;
    padding-right: 0;
  }

  .nav-item.has-dropdown > .nav-link {
    flex: 1;
  }

  .dropdown-toggle {
    width: 48px;
    height: 48px;
    margin: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
  }

  .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .dropdown-menu {
    position: static;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    border: none;
    border-radius: 0;
    border-top: none;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height var(--transition-fast);
    padding: 0;
    width: 100%;
  }

  .dropdown-menu::before {
    display: none;
  }

  .dropdown-menu.show {
    max-height: 500px;
    padding: 8px 0;
  }

  .dropdown-menu li a {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 40px;
    font-size: 0.85rem;
  }

  .dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white-color);
    padding-left: 44px;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    backdrop-filter: blur(4px);
  }

  .nav-overlay.show {
    display: block;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h3 {
  color:white;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary-color);
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: white;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-2px);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: white;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links li a::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gray-medium);
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.footer-links li a:hover {
  color: var(--white-color);
  padding-left: 4px;
}

.footer-links li a:hover::before {
  background: var(--secondary-color);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: white;
}

.footer-contact li .fc-icon {
  min-width: 18px;
  color: white;
  margin-top: 2px;
}

.footer-contact li a {
  color: white;
  transition: color var(--transition-fast);
}

.footer-contact li a:hover {
  color: var(--white-color);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: white;
  margin: 0;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer {
    padding-top: 50px;
  }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-fast);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 62, 126, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 62, 126, 0.4);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}