/* Header and footer layout */
/* SDS */

body .header-left .logo {
  height: 60px;
  min-height: 40px;
  max-height: 90px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* DESKTOP NAVIGATION - Default state */
body .header-nav {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
  flex: 1;
  justify-content: right;
  margin-right: 30px;
  margin-left: auto;
}

body .nav-link {
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  transition: all var(--transition-smooth);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-accent);
  transition: width var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-accent);
  transform: translateY(-1px);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-accent);
}

.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu Button Styles - Hidden by default */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 4px;
  z-index: 1001;
  position: relative;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Enhanced header styling */
.site-header {
  position: relative;
  overflow: hidden;
}

/* Animated moving line for header */
.site-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 10%,
    #e74c3c 15%,
    #e74c3c 35%,
    #27ae60 50%,
    #3498db 65%,
    #3498db 85%,
    transparent 90%,
    transparent 100%
  );
  animation: headerSmoothFlow 3s linear infinite;
  z-index: 2;
  border-radius: 0 0 3px 3px;
  box-shadow: 
    0 0 25px rgba(52, 152, 219, 0.7),
    0 0 25px rgba(39, 174, 96, 0.7),
    0 0 25px rgba(231, 76, 60, 0.7),
    0 3px 10px rgba(0, 0, 0, 0.4);
  will-change: transform;
  transform: translateZ(0);
}

/* Static background for header line - ONLY ONE INSTANCE */
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    #ff362098 0%,
    #4e955096 33.33%, #27ae5f81 66.66%,
    #3498db7c 66.66%, #3498db71 100%
  );
  z-index: 1;
  border-radius: 0 0 3px 3px;
  box-shadow: 
    0 0 10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Animation keyframes */
@keyframes headerSmoothFlow {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Enhanced hover effects */
.site-header:hover::before {
  animation-duration: 2s;
  box-shadow: 
    0 0 30px rgba(52, 152, 219, 0.8),
    0 0 30px rgba(39, 174, 96, 0.8),
    0 0 30px rgba(231, 76, 60, 0.8),
    0 2px 15px rgba(0, 0, 0, 0.4);
}

/* Footer Styles */
body .site-footer {
  width: 100%;
  background: var(--container-bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(180%);
  color: #fff;
  border-top-left-radius: var(--container-border-radius);
  border-top-right-radius: var(--container-border-radius);
  box-shadow: var(--shadow-container);
  margin-top: var(--menu-to-footer-margin);
  flex-shrink: 0;
  flex-grow: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  padding-top: var(--spacing-md); /* Add space between divider and content */
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1px;
  right: 1px;
  height: 3px;
  background: var(--shimmer-gradient);
  opacity: 0.8;
}

/* Main Footer Content */
body .footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-lg); /* Updated padding */
  box-sizing: border-box;
}

/* Social Icons */
body .header-right .social-icon {
  height: 18px;
  min-height: 10px;
  max-height: 24px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.header-right .social-icon:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease-out;
}

/* Company Column */
body .footer-company {
  gap: var(--spacing-lg);
  text-align: left;
}

body .footer-logo-final {
  height: 50px;
  width: auto;
  margin-bottom: var(--spacing-sm);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
  transition: transform 0.2s ease-out;
  align-self: flex-start;
}

.footer-logo-final:hover {
  transform: scale(1.05);
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin: 0;
  max-width: 280px;
  text-align: left;
}

/* Column Titles */
.footer-column-title {
  color: #fff;
  font-size: var(--font-size-base);
  font-weight: 600;
  margin: 0 0 var(--spacing-sm) 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer Links Lists */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-links-list li {
  margin: 0;
}

body .footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 400;
  transition: all 0.3s ease;
  display: inline-block;
  padding: var(--spacing-xs) 0;
  cursor: pointer;
}

.footer-link:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-link:focus {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-link:active {
  transform: translateX(2px);
}

/* Footer Bottom Section */
body .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-lg) 0;
  margin-top: 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

/* Legal Links */
.footer-legal-links {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: var(--font-size-xs);
  font-weight: 500;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-legal-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Footer Social Icons */
.footer-social-icons {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-social-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(1);
}

/* Copyright */
.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--font-size-xs);
  font-weight: 400;
}

body .header-spacer {
  height: var(--layout-top-offset);
  width: 100%;
  display: block;
  flex-shrink: 0;
}

/* JavaScript Enhanced Styles */
.js .nav-link.active {
  color: var(--text-accent) !important;
  transform: none !important;
}

.js .nav-link {
  transition: transform 0.2s ease;
}

.js .nav-link:hover {
  transform: translateY(-2px);
}

.js .footer-link {
  transition: color 0.3s ease, transform 0.3s ease;
}

.js .footer-link:hover {
  color: #fff;
  transform: translateX(4px);
}

.js .footer-link:active {
  transform: translateX(2px);
}

/* ===========================================
   CONSOLIDATED RESPONSIVE DESIGN
   =========================================== */

/* Small Phones - 360px and below */
@media (max-width: 360px) {
  body .nav-link {
    font-size: clamp(0.4rem, 1.2vw, 0.5rem);
    padding: 0.05rem 0.1rem;
    letter-spacing: -0.04em;
  }
  
  body .logo {
    height: clamp(24px, 5vw, 32px);
    max-width: clamp(90px, 20vw, 120px);
  }
  
  body .site-header {
    min-height: clamp(28px, 5.5vw, 38px) !important;
  }
  
  body .footer-link {
    font-size: clamp(0.4rem, 1.2vw, 0.5rem);
    padding: 0.05rem 0.1rem;
    letter-spacing: -0.04em;
  }
  
  body .footer-logo-final {
    height: clamp(20px, 4vw, 28px);
    max-width: clamp(80px, 18vw, 110px);
  }
}

/* Mobile Phones - 480px and below */
@media (max-width: 480px) {
  body .header-nav {
    gap: clamp(0.05rem, 0.3vw, 0.15rem);
  }
  
  body .nav-link {
    font-size: clamp(0.45rem, 1.5vw, 0.55rem);
    padding: clamp(0.05rem, 0.3vw, 0.15rem) clamp(0.1rem, 0.5vw, 0.2rem);
    text-transform: none !important;
    font-weight: 600;
  }
  
  body .logo {
    height: clamp(28px, 5.5vw, 36px);
    max-width: clamp(100px, 22vw, 130px);
  }
  
  body .site-header {
    padding: clamp(0.15rem, 0.5vw, 0.3rem) clamp(0.3rem, 1vw, 0.6rem);
    min-height: clamp(30px, 6vw, 42px) !important;
  }
  
  body .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-md);
  }
  
  .footer-description {
    max-width: 100%;
  }
  
  .footer-legal-links {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  body .footer-logo-final {
    height: 40px;
  }
}

/* Large Mobile Phones - 640px and below */
@media (max-width: 640px) {
  body .header-nav {
    display: flex;
    flex-direction: row;
    gap: clamp(0.1rem, 0.5vw, 0.3rem);
    flex-wrap: nowrap !important;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
  }
  
  body .nav-link {
    font-size: clamp(0.5rem, 1.8vw, 0.65rem);
    padding: clamp(0.1rem, 0.5vw, 0.2rem) clamp(0.15rem, 0.8vw, 0.25rem);
    text-align: center !important;
    line-height: 1.0;
    white-space: nowrap !important;
    text-transform: none !important;
    letter-spacing: -0.03em;
    margin: 0;
    flex-shrink: 1 !important;
    font-weight: 500;
  }
  
  body .logo {
    height: clamp(32px, 6vw, 40px);
    max-width: clamp(120px, 25vw, 160px);
    flex-shrink: 0 !important;
  }
  
  body .site-header {
    padding: clamp(0.2rem, 0.8vw, 0.4rem) clamp(0.4rem, 1.5vw, 0.8rem);
    height: auto;
    min-height: clamp(35px, 7vw, 50px) !important;
    overflow: visible !important;
  }
}

/* CONSOLIDATED MOBILE - 768px and below */
@media (max-width: 768px) {
  /* Header element ordering - CORRECTED ORDER */
  body .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1001 !important;
    width: 100% !important;
    padding: var(--space-xs, 0.5rem) var(--space-sm, 0.75rem);
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: var(--container-bg-transparent) !important;
    backdrop-filter: blur(30px) saturate(200%) !important;
    gap: var(--spacing-sm);
    min-height: auto !important;
    height: var(--header-height, 60px) !important;
    padding-top:30px;
    padding-bottom: 30px;
  }
  
  /* Logo Positioning - LEFT SIDE */
  .header-left {
    order: 1;
    width:80%;
  }
  .header-left .logo{
    padding: 8px;
  }

  /* Mobile menu toggle positioning - RIGHT SIDE (last) */
  .mobile-menu-toggle {
    display: flex !important;
    order: 3;
    margin-left: 0;
    margin-right: 0;
    z-index: 1002 !important;
    padding-top:12px;
  }
  
  /* Hide Desktop Navigation */
  body .header-nav {
    display: none !important;
  }
  
  /* Mobile Dropdown Menu */
  .header-nav.mobile-open {
    display: flex !important;
    position: fixed !important;
    top: 60px;
    left: 0;
    right: 0;
    width: 100vw;
    margin: 0;
    padding: var(--spacing-lg, 1.5rem) var(--spacing-md, 1rem);
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-direction: column;
    gap: var(--spacing-md, 1rem);
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 9999 !important;
    max-height: 80vh;
    overflow-y: auto;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
 
    
  }
  
  /* Mobile Navigation Links */
  .header-nav.mobile-open .nav-link {
    display: block !important;
    padding: var(--spacing-sm, 0.75rem) var(--spacing-md, 1rem) !important;
    text-align: center !important;
    border-radius: 8px !important;
    background: #00000062 !important;
    transition: all 0.3s ease !important;
    font-size: 1rem !important;
    border: 1px solid #025d9b !important;
    width: 100% !important;
    box-sizing: border-box !important;
    color: #fff !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    margin: 0 !important;
  }
  
  .header-nav.mobile-open .nav-link:hover,
  .header-nav.mobile-open .nav-link:focus {
    background: #003152 !important;
    transform: translateY(-2px) !important;
    border-color: #003152 !important;
    color: #fff !important;
  }
  
  .header-nav.mobile-open .nav-link.active {
    box-shadow: inset 0px 0px 30px #005086 !important;
    color: white !important;
  }
  
  /* Body Scroll Lock */
  body.mobile-menu-open {
    overflow: hidden !important;
  }
  
  /* Gallery and slider elements - ensure they're below menu */
  .gallery-section,
  .gallery-container,
  .swiper,
  .gallery-swiper,
  .claim-container,
  .claim-title {
    z-index: 1 !important;
    position: relative;
  }
  
  .gallery-nav-btn {
    z-index: 2 !important;
    position: relative;
  }
  
  .swiper-pagination {
    z-index: 3 !important;
    position: relative;
  }
  
  /* Footer Responsive */
  body .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-md);
  }
  
  .footer-legal-links {
    order: 2;
  }
  
  .footer-social-icons {
    order: 1;
  }
  
  .footer-copyright {
    order: 3;
  }
}

