/* ==========================================================================
   Header & Hero Section Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header / Navbar
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Header / Navbar
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  padding: 14px 0 !important;
  background: rgba(11, 14, 17, 0.94) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(243, 168, 5, 0.25) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5) !important;
  transition: background-color 0.3s ease, padding 0.3s ease, top 0.3s ease !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* WordPress Admin Bar & Customizer Support */
body.admin-bar .site-header,
html.wp-customizer .site-header {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header,
  html.wp-customizer .site-header {
    top: 46px !important;
  }
}

.site-header.is-scrolled {
  padding: 10px 0 !important;
  background-color: rgba(11, 14, 17, 0.98) !important;
}

.nav-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

/* Brand Logo */
.site-logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  z-index: 100001 !important;
  text-decoration: none !important;
}

.site-logo img {
  height: 46px !important;
  max-height: 52px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

@media (min-width: 768px) {
  .site-logo img {
    height: 52px !important;
  }
}

/* Desktop Navigation Menu (Visible from 768px screen width) */
.desktop-nav {
  display: none !important;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
  }

  .nav-link {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    padding: 8px 4px !important;
    position: relative !important;
    text-decoration: none !important;
    transition: color 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    white-space: nowrap !important;
  }

  .nav-link:hover,
  .nav-link.active {
    color: #F3A805 !important;
  }

  .nav-link::after {
    content: '' !important;
    position: absolute !important;
    bottom: -3px !important;
    left: 50% !important;
    right: 50% !important;
    height: 3px !important;
    background-color: #F3A805 !important;
    border-radius: 9999px !important;
    opacity: 0 !important;
    transition: left 0.3s cubic-bezier(0.25, 1, 0.5, 1), right 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease !important;
    pointer-events: none !important;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    left: 0 !important;
    right: 0 !important;
    opacity: 1 !important;
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    gap: 32px !important;
  }

  .nav-link {
    font-size: 1.05rem !important;
  }
}

/* Header Actions (CTA) */
.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.header-call-btn {
  background-color: #F3A805 !important;
  color: #0B0E11 !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  padding: 9px 22px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 15px rgba(243, 168, 5, 0.35) !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.header-call-btn:hover {
  background-color: #E29600 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(243, 168, 5, 0.45) !important;
}

.header-call-btn svg {
  width: 17px !important;
  height: 17px !important;
  fill: currentColor !important;
}

/* Hamburger Toggle for Mobile */
.mobile-toggle {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 28px !important;
  height: 20px !important;
  cursor: pointer !important;
  z-index: 100001 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none !important;
  }
}

.mobile-toggle span {
  display: block !important;
  height: 2.5px !important;
  width: 100% !important;
  background-color: #FFFFFF !important;
  border-radius: 2px !important;
  transition: transform 0.3s ease, opacity 0.3s ease !important;
}

.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 340px;
  height: 100vh;
  background-color: #0E1217;
  padding: 100px 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 1000;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
  border-left: 1px solid rgba(243, 168, 5, 0.2);
}

.mobile-drawer.is-open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-white);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: var(--color-primary-dark);
  background-image: linear-gradient(to bottom, rgba(11, 14, 17, 0.2) 0%, rgba(11, 14, 17, 0.4) 50%, rgba(11, 14, 17, 0.85) 100%),
                    url('../assets/images/main.png');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  text-align: center;
  padding-top: 140px;
  padding-bottom: 120px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 160px;
    padding-bottom: 130px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* Saudi Emblem Badge (عزنا.png) */
.saudi-badge-wrapper {
  margin-bottom: 24px;
  display: inline-block;
  animation: floatSubtle 4s ease-in-out infinite;
}

.saudi-badge-img {
  height: 110px;
  max-width: 90vw;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.65));
}

@media (min-width: 768px) {
  .saudi-badge-img {
    height: 130px;
  }
}

/* Hero Main Typography - Guaranteed 2-Lines */
.hero-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--color-text-white);
  line-height: 1.35;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  max-width: 950px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
    line-height: 1.3;
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 4.1rem;
    line-height: 1.25;
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: #E2E8F0;
  max-width: 720px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  margin-bottom: 25px;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.45rem;
  }
}

/* Bottom Wave Divider transitioning to Sand background */
.hero-wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  z-index: 3;
}

.hero-wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
  fill: var(--color-sand-bg);
}

@media (min-width: 768px) {
  .hero-wave-divider svg {
    height: 90px;
  }
}

/* Mobile Hero Centering & Professional Typography */
@media (max-width: 767px) {
  .hero-section {
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-position: center 30%;
    background-size: cover;
    padding-top: 75px;
    padding-bottom: 60px;
    position: relative;
  }

  .hero-content {
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    z-index: 2;
  }

  .saudi-badge-wrapper {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .saudi-badge-img {
    height: 76px;
    max-width: 220px;
    width: auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.8));
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.4;
    letter-spacing: -0.3px;
    margin-bottom: 14px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9);
  }

  .hero-subtitle {
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
    max-width: 340px;
    color: #F1F5F9;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  }

  .hero-wave-divider svg {
    height: 48px;
  }
}

@keyframes floatSubtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
