/* blogs.karibucamps.com — header replica
   Matches karibucamps.com (Salient "Centered Bottom Bar" layout). */

:root {
  --bg-header: rgb(29, 29, 27);
  --bg-submenu: rgb(31, 31, 31);
  --fg: #ffffff;
  --container-max: 1425px;
  --container-pad: 90px;
  --header-top-h: 116px;
  --header-bottom-h: 48px;
  --underline-ease: cubic-bezier(0.52, 0.01, 0.16, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #222;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 25px;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }

/* ----- Header shell ----- */
#site-header {
  background: var(--bg-header);
  color: var(--fg);
  width: 100%;
  position: relative;
  z-index: 1000;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
}

/* ----- Top section: socials | logo | contact ----- */
.header-top { height: var(--header-top-h); }

.header-top .container {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-social ul {
  display: flex;
  align-items: center;
  justify-self: start;
}

.header-social li { display: block; }

.header-social a {
  display: block;
  width: 36px;
  height: 23px;
  color: var(--fg);
  text-align: center;
}

.header-social i {
  font-size: 18px;
  line-height: 24px;
  color: var(--fg);
  transition: opacity 0.2s ease;
}

.header-social a:hover i { opacity: 0.7; }

.header-logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  margin: 28px 0;
}

.header-logo img {
  width: 111px;
  height: 60px;
  object-fit: contain;
}

.header-contact ul {
  display: flex;
  justify-content: flex-end;
  justify-self: end;
}

.header-contact a {
  position: relative;
  color: var(--fg);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
  margin: 0 30px;
  display: inline-block;
}

.header-contact .menu-title-text { position: relative; display: inline-block; }

/* ----- Bottom bar: primary nav ----- */
.header-bottom {
  height: var(--header-bottom-h);
}

.header-bottom .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.primary-nav > ul {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
}

.primary-nav > ul > li { position: relative; }

.primary-nav > ul > li > a {
  display: inline-block;
  color: var(--fg);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
  line-height: 20px;
  margin: 0 30px 28px;
  padding: 0;
}

/* Animated underline indicator (Salient pattern) */
.menu-title-text {
  position: relative;
  display: inline-block;
}

.menu-title-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 0;
  border-top: 2px solid currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--underline-ease);
  pointer-events: none;
}

.primary-nav a:hover .menu-title-text::after,
.primary-nav li.is-active > a .menu-title-text::after,
.primary-nav li.has-submenu:hover > a .menu-title-text::after,
.header-contact a:hover .menu-title-text::after {
  transform: scaleX(1);
}

/* ----- Submenu (Our Collection) ----- */
.has-submenu { position: relative; }

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: var(--bg-submenu);
  padding: 20px;
  border-top: 1px solid #eeeeee;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 20;
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu,
.has-submenu.open > .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.submenu li { display: block; }

.submenu a {
  display: block;
  color: var(--fg);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 13px;
  text-transform: uppercase;
  padding: 6px;
  margin: 0;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.submenu a:hover,
.submenu a:focus { background-color: #c49a6c; color: #ffffff; }

.submenu a .menu-title-text { display: inline-block; }
.submenu a:hover .menu-title-text::after,
.submenu a:focus .menu-title-text::after { transform: scaleX(0); }

/* ----- Mobile toggle ----- */
.nav-toggle {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ----- Responsive ----- */
@media (max-width: 1200px) {
  :root { --container-pad: 40px; }
  .primary-nav > ul > li > a { margin: 0 18px; }
}

@media (max-width: 900px) {
  :root {
    --header-top-h: 88px;
    --container-pad: 20px;
  }

  .header-top .container { grid-template-columns: auto 1fr auto; }
  .header-social { display: none; }
  .header-logo { justify-self: start; margin: 14px 0; }
  .header-logo img { width: 88px; height: 48px; }
  .header-contact { display: none; }

  .header-bottom { height: auto; }
  .header-bottom .container { padding: 0; justify-content: flex-end; height: 0; }

  .nav-toggle {
    display: inline-flex;
    position: fixed;
    top: 22px;
    right: 18px;
    z-index: 1100;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    background: var(--bg-header);
    padding: 96px 28px 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1050;
  }

  .primary-nav.is-open { transform: translateX(0); }

  .primary-nav > ul {
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }

  .primary-nav > ul > li {
    height: auto;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .primary-nav > ul > li > a {
    margin: 0;
    padding: 18px 0;
    font-size: 15px;
  }

  .submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    padding: 0 0 16px 12px;
    min-width: 0;
    box-shadow: none;
    display: none;
  }

  .has-submenu.open > .submenu { display: block; }
}
