/* =============================================================
   header.css — extracted from header.php inline <style> 2026-04-22
   Base layout for header + desktop nav + mobile slide-out menu.
   Final visual state (transparent over hero, scroll state) is
   overridden by style.css which depends on this file.
   ============================================================= */

/* Reset */
html, body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

/* ============== HEADER ============== */
header.main-header {
  background: linear-gradient(90deg, #076e6a 0%, #0a905a 100%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.header-container {
  /* Force LTR so items appear left-center-right in RTL docs */
  direction: ltr;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

/* Left: Logo with white filter */
.header-left img {
  filter: brightness(0) invert(1);
  max-height: 50px;
  height: auto;
}

/* Center: Desktop Nav */
.header-nav {
  flex: 1;
  text-align: center;
}
.desktop-nav {
  list-style: none;
  display: inline-flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.desktop-nav li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: color 0.2s;
}
.desktop-nav li a:hover {
  color: #ddd;
}

/* Right: Icons row */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}
.icon-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
}
.icon-link:hover {
  color: #ddd;
}

/* Mobile hamburger — hidden on desktop */
.mobile-hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
  background: none;
  border: none;
}

/* ============== MEDIA QUERIES ============== */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-hamburger { display: block; }
  .header-icons .social-icon { display: none; }
}

/* ============== MOBILE MENU — slide-out ============== */
.mobile-menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(90deg, #076e6a, #0a905a);
  z-index: 999;
  padding: 20px;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
  transition: right 0.3s ease;
  text-align: right;
  direction: rtl;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-menu.active {
  right: 0;
}

.close-menu {
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  text-align: right;
}

.mobile-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.mobile-links li a {
  text-decoration: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}
.mobile-links li a:hover {
  color: #ddd;
}

/* Social icons inside mobile menu */
.mobile-social {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}
.mobile-social a i {
  font-size: 1.4rem;
  color: #fff;
  transition: transform 0.2s;
}
.mobile-social a i:hover {
  transform: scale(1.1);
}
