/* ==============================================================================
 * FILE: nav-header.css
 * CATEGORY: MarlonWalksLA Website - Global Navigation Header
 * ============================================================================== */

/* Header Base */
.custom-header {
  background-color: #222222;
  color: #ffffff;
  padding: 0.75rem 0;
  width: 100%;
  position: relative;
  z-index: 9999;
}

.container {
  max-width: 1136px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid-3-col {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: nowrap;
  gap: 16px;
}

/* Column 1: Logo */
.grid-3-col > .grid-item-manual:first-child {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-start;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  gap: 12px;
  white-space: nowrap;
}

.nav-logo-icon .logo-img {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logo-link:hover .logo-img {
  transform: scale(1.05);
}

.paragraph-xlarge {
  font-size: 1.45rem !important;
  font-weight: 900 !important;
  letter-spacing: 1.2px;
  line-height: 1;
  color: #ffffff;
}

/* Nav Area */
.nav-collapse-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  width: 100%;
}

/* Column 2: Navigation Links */
.nav-links-container {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.button-group {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 22px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

/* Distinct Underlined Navigation Link */
.header-link {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
  text-decoration-thickness: 1.5px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.header-link:hover {
  color: #3898ec !important;
  text-decoration-color: #3898ec !important;
}

/* Paired Items */
.nav-pair-item {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

/* Category Label (Plain - Not Clickable) */
.nav-pair-label {
  color: #cbd5e1 !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
  white-space: nowrap !important;
}

.lang-links-group {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
}

/* Distinct Underlined Language Link */
.lang-link {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 1.5px !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  padding: 1px 2px !important;
  transition: color 0.2s ease, text-decoration-color 0.2s ease !important;
  line-height: 1.2 !important;
}

.lang-link:hover {
  color: #3898ec !important;
  text-decoration-color: #3898ec !important;
}

.lang-divider {
  color: #64748b !important;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  user-select: none;
}

/* Column 3: Social Icons */
.social-icons-container {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
}

.header-icon-group {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 16px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.header-icon-link {
  color: #ffffff !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.header-icon-link:hover {
  opacity: 0.7;
}

.header-icon-link svg {
  width: 20px;
  height: 20px;
}

/* =========================================================
   MOBILE COMPACT 2-ROW HEADER (CENTERED NAVIGATION)
   ========================================================= */
@media (max-width: 820px) {
  .custom-header {
    padding: 0.4rem 0 0.35rem 0 !important;
    position: relative !important;
    z-index: 99999 !important;
  }

  .container {
    padding: 0 12px !important;
    position: relative !important;
  }

  .grid-3-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 6px !important;
  }

  /* Row 1 (Left): Brand */
  .grid-3-col > .grid-item-manual:first-child {
    align-self: flex-start !important;
    display: flex !important;
    align-items: center !important;
    height: 24px !important;
  }

  .nav-logo-icon .logo-img {
    width: 24px !important;
    height: 24px !important;
  }

  .paragraph-xlarge {
    font-size: 0.9rem !important;
    line-height: 24px !important;
  }

  /* Row 1 (Right): Socials */
  .social-icons-container {
    position: absolute !important;
    top: 5px !important;
    right: 0 !important;
    height: 24px !important;
    margin: 0 !important;
    z-index: 100000 !important;
  }

  .header-icon-group {
    gap: 10px !important;
  }

  .header-icon-link svg {
    width: 17px !important;
    height: 17px !important;
  }

  /* Row 2 (Full Width): Centered Links Row */
  .nav-collapse-area {
    display: flex !important;
    position: static !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 2px auto 0 auto !important;
    text-align: center !important;
  }

  .nav-links-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }

  .button-group {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    gap: 14px !important;
    margin: 0 auto !important;
  }

  .header-link,
  .nav-pair-label {
    font-size: 0.78rem !important;
  }

  .lang-link {
    font-size: 0.76rem !important;
  }
}
