/**
 * Ship Around Header Enhancements - Homepage Header Styles
 * Homepage-specific overrides for header styling
 */

/* ===== HERO SECTION ===== */
.home .intro {
  background: radial-gradient(circle at 75% center, #1e40af 0%, #020617 70%);
  color: white;
  padding-top: calc(var(--wp--preset--spacing--60) + 72px) !important;
}

/* ===== SENTINEL ELEMENT ===== */
.sticky-header-sentinel {
  position: absolute;
  top: 128px;
  height: 1px;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
}

/* ===== BASE HEADER STYLES ===== */
.home header {
  position: sticky;
  top: 0;
  z-index: 999;
}

.home header * {
  transition: 0.5s all ease;
}

.home header .wp-block-columns {
  justify-content: center;
  gap: var(--wp--preset--spacing--60);
  max-width: max-content !important;
  padding: 2px 28px;
  transition: padding 1s ease !important;
}

.home header .wp-block-column {
	max-width: max-content;
	display: flex;
	align-items: center;
}

/* ===== LOGO STYLES ===== */
.home header .wp-block-column:first-child img {
  height: 46px;
  width: auto;
  padding-left: 4px;
}

/* ===== NAVIGATION STYLES ===== */
.home header nav {
  height: 100%;
}

.home header nav a {
  padding: 8px 16px;
}

.home header ul li:last-child {
  font-weight: 600;
}

.home header a.active {
  background-color: #7897fd;
  border-radius: 9999px;
}

/* ===== BUTTON STYLES ===== */
.home header a.wp-block-button__link {
  background-color: white;
  border-radius: 9999px;
  color: #021a4f !important;
  margin-right: 2px;
  padding: 10px 22px;
  font-weight: 500;
}

/* ===== SCROLLED STATE ===== */
.home header.scrolled .wp-block-columns {
  background-color: #021a4fe8;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border: 1px solid #7897fd;
  border-radius: 999px;
  padding: 4px 2px;
}

/* ===== SUBMENU STYLES ===== */
.home header .wp-block-navigation__submenu-container {
  padding-top: 12px;
  background-color: transparent !important;
  border-radius: 8px;
  min-width: max-content !important;
  gap: 0;
}

.home header .wp-block-navigation__submenu-container li {
  margin: 0 !important;
}

.home header .wp-block-navigation__submenu-container li a {
  color: white !important;
  padding: 8px 24px;
  border-left: 1px solid #7897fd;
  border-right: 1px solid #7897fd;
  background-color: transparent;
}

.home header.scrolled .wp-block-navigation__submenu-container li a {
  background-color: #021a4f;
}

.home header .wp-block-navigation__submenu-container li:first-child a {
  border-top-right-radius: 8px;
  border-top-left-radius: 8px;
  border-top: 1px solid #7897fd;
}

.home header .wp-block-navigation__submenu-container li:last-child a {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border-bottom: 1px solid #7897fd;
}

/* ===== MOBILE STYLES (max-width: 599px) ===== */
@media all and (max-width: 599px) {
  .home header > div {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .home header.scrolled > div {
    padding-top: 0 !important;
  }

  .home header .wp-block-columns {
    padding: 4px 10px 8px;
    flex-wrap: wrap !important;
    row-gap: 14px;
    justify-content: space-around;
  }

  .home header.scrolled .wp-block-columns {
    border: none;
    border-radius: 0;
    justify-content: space-around;
  }

  .home header .wp-block-column:not(:nth-child(2)) {
    order: 0;
    flex-basis: 50%;
  }

  .home header .wp-block-column:nth-child(2) {
    order: 1;
    flex-basis: 100%;
    width: 100%;
    border: 1px solid #7897fd;
    padding: 4px !important;
  }

  .home header .wp-block-column:first-child img {
    height: 40px;
    width: auto;
  }

  .home header ul {
    gap: 24px;
  }

  .home header ul a {
    padding: 4px 8px;
    font-size: 14px;
  }

  .home header .wp-block-button a {
    padding: 8px 12px;
    font-size: 14px;
	border-radius: 0!important;
	 font-weight: 600;
  }

  .home .entry-content {
    margin-top: -152px !important;
  }

  .home .intro {
    padding-top: calc(var(--wp--preset--spacing--60) + 164px) !important;
  }
}

/* ===== TABLET STYLES (600px - 759px) ===== */
@media all and (min-width: 600px) and (max-width: 759px) {
  .home header .wp-block-columns {
    gap: 10px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .home header .wp-block-column:nth-child(2) {
    border: 1px solid #7897fd;
    border-radius: 999px;
  }

  .home header.scrolled .wp-block-column:nth-child(2) {
    border: none;
    border-radius: 0;
  }

  .home header .wp-block-column:first-child img {
    height: 36px;
    width: auto;
    padding-left: 8px;
  }

  .home header ul {
    gap: 4px;
  }

  .home header nav a {
    padding: 4px 8px;
  }

  .home header a.wp-block-button__link {
    padding: 8px 16px;
  }

  .home .entry-content {
    margin-top: -91px !important;
  }

  .home .intro {
    padding-top: calc(var(--wp--preset--spacing--60) + 164px) !important;
  }
}

/* ===== MEDIUM DESKTOP STYLES (760px - 959px) ===== */
@media all and (min-width: 760px) and (max-width: 959px) {
  .home header .wp-block-column:first-child img {
    padding-left: 18px;
    padding-right: 18px;
  }

  .home header .wp-block-columns {
    padding-left: 8px;
    padding-right: 8px;
  }

  .home header ul {
    gap: 4px;
  }

  .home header nav a {
    padding: 4px 8px;
  }

  .home .intro {
    padding-top: calc(var(--wp--preset--spacing--60) + 164px) !important;
  }
}

/* ===== LARGE DESKTOP STYLES (760px+) ===== */
@media all and (min-width: 760px) {
  .home header .wp-block-column:first-child img {
    padding-left: 18px;
  }

  .home header .wp-block-column:nth-child(2) {
    border: 1px solid #7897fd;
    border-radius: 999px;
  }

  .home header.scrolled > div {
    transform: scale(0.9);
  }

  .home header.scrolled .wp-block-columns {
    border: 1px solid #7897fd;
    border-radius: 999px;
    gap: var(--wp--preset--spacing--40);
  }

  .home header.scrolled .wp-block-column:nth-child(2) {
    border: none;
    border-radius: 0;
  }

  .home header.scrolled .wp-block-column:first-child img {
    height: 40px;
    width: auto;
  }

  .home .entry-content {
    margin-top: -91px !important;
  }
}
