/* =========================================================
   InnBucks Shared Header & Footer
   ========================================================= */

/* ----- Reset for shared components ----- */
.ib-nav *,
.ib-footer * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.ib-nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: #27283c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.ib-nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

/* Logo */
.ib-nav__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.ib-nav__logo {
  height: 36px;
  width: auto;
  display: block;
}

/* Nav links */
.ib-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.ib-nav__links li a {
  display: block;
  padding: 8px 14px;
  color: #c8c8d8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.ib-nav__links li a:hover,
.ib-nav__links li a:focus {
  color: #f4a700;
  background-color: rgba(244, 167, 0, 0.08);
  outline: none;
}

/* Hamburger toggle */
.ib-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.ib-nav__toggle:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.ib-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #c8c8d8;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hamburger → X animation when open */
.ib-nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.ib-nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.ib-nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   FOOTER
   ========================================================= */
.ib-footer {
  background-color: #27283c;
  color: #c8c8d8;
  padding: 40px 24px 28px;
  margin-top: 48px;
}

.ib-footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Social links row */
.ib-footer__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.ib-footer__social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c8c8d8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.ib-footer__social-link:hover {
  color: #f4a700;
}

.ib-footer__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

/* Legal / copyright row */
.ib-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8888a0;
}

.ib-footer__legal a {
  color: #a0a0c0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ib-footer__legal a:hover {
  color: #f4a700;
}

.ib-footer__divider {
  color: #444460;
  user-select: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .ib-nav__toggle {
    display: flex;
  }

  .ib-nav__links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: #1e1f30;
    padding: 8px 0 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  .ib-nav__links--open {
    display: flex;
  }

  .ib-nav__links li a {
    padding: 12px 24px;
    border-radius: 0;
    font-size: 15px;
  }

  /* Ensure the nav is a positioning context for the dropdown */
  .ib-nav {
    position: sticky;
  }
}

/* =========================================================
   BODY OFFSET — prevent sticky nav from overlapping content
   (applies site-wide when shared.css is loaded)
   ========================================================= */
body {
  padding-top: 0 !important; /* reset any Bootstrap default; nav is sticky so no manual offset needed */
}
