/* Shared header/nav/footer overrides so nav.html + footer.html render consistently */

/* Base nav styling (so pages don't need to duplicate header/nav CSS) */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 40, 0, 0.05);
  border-bottom: 3px solid var(--secondary);
}

.sticky-header *,
.sticky-header *::before,
.sticky-header *::after {
  box-sizing: border-box;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-sm);
}

.nav-top {
  display: contents;
}

.nav-menus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.nav-left, .nav-right { flex: 1; position: relative; z-index: 1; }
.nav-left { display: flex; justify-content: flex-start; }
.nav-right { display: flex; justify-content: flex-end; }

.nav-left ul, .nav-right ul {
  display: flex;
  list-style: none;
  gap: 0.55rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-left ul { justify-content: flex-start; }
.nav-right ul { justify-content: flex-end; }

.nav-left a, .nav-right a {
  text-decoration: none;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.02rem;
  letter-spacing: 0.2px;
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-left a:hover, .nav-right a:hover {
  color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(220, 188, 103, 0.65);
  transform: translateY(-1px);
}

.nav-left a:active, .nav-right a:active {
  transform: translateY(0);
}

.nav-left a:focus-visible, .nav-right a:focus-visible {
  outline: 3px solid rgba(220, 188, 103, 0.45);
  outline-offset: 3px;
}

.nav-left a i, .nav-right a i {
  margin-right: 0.35rem;
  color: currentColor;
  opacity: 0.95;
}

.nav-left a:hover i, .nav-right a:hover i {
  opacity: 1;
}

.sticky-header {
  /* Override page-level header padding from earlier iterations */
  padding: 0.35rem 2rem 0.75rem !important;
  overflow: visible !important;
}

.nav-container {
  position: relative;
  overflow: visible !important;
  padding: 0.65rem 1rem;
  border-radius: 999px;
}

.nav-menus[hidden] {
  display: none !important;
}

.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-burger:hover {
  color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(220, 188, 103, 0.65);
  transform: translateY(-1px);
}

.nav-burger:active {
  transform: translateY(0);
}

.nav-burger:focus-visible {
  outline: 3px solid rgba(220, 188, 103, 0.45);
  outline-offset: 3px;
}

.nav-burger-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-burger-lines span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-container.is-open .nav-burger-lines span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-container.is-open .nav-burger-lines span:nth-child(2) {
  opacity: 0;
}

.nav-container.is-open .nav-burger-lines span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Remove the decorative bump from earlier design so the logo card isn't clipped */
.nav-container:after {
  display: none !important;
}

/* Center logo on a light card; top aligned to the nav bar */
.nav-logo {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none; /* allow menu clicks under the logo area */
}

.nav-logo .logo-card {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(220, 188, 103, 0.55);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  box-shadow: var(--shadow-sm);
}

.nav-logo .brand-text {
  display: none;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--primary-dark);
  line-height: 1;
}

.nav-logo img {
  width: 150px;
  max-width: 70vw;
  height: auto;
  display: block;
}

/* Ensure hero content isn't covered by the logo overlap */
.hero {
  padding-top: 5.35rem;
}

@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  .sticky-header {
    padding: 0.35rem 1rem 0.75rem !important;
  }

  .nav-container {
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: 28px;
  }

  .nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    position: relative;
    z-index: 60;
  }

  .nav-logo {
    position: static !important;
    transform: none !important;
    pointer-events: auto;
    margin: 0 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    order: initial;
    left: auto !important;
    top: auto !important;
  }

  .nav-logo .logo-card {
    padding: 0.28rem 0.25rem;
    max-width: 100%;
    justify-content: flex-start;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .nav-logo img {
    display: none;
  }

  .nav-logo .brand-text {
    display: block;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: var(--secondary);
    font-weight: 900;
  }

  .nav-burger {
    display: inline-flex;
    order: initial;
    margin-left: 0;
    flex: none;
  }

  .nav-menus {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.55rem);
    width: 100%;
    order: initial;
    padding: 0.9rem;
    border-radius: 22px;
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-sm);
    z-index: 50;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-container.is-open .nav-menus {
    display: block;
  }

  .nav-left,
  .nav-right {
    width: 100%;
    flex: none;
    justify-content: center;
  }

  .nav-right {
    margin-top: 0.5rem;
  }

  .nav-left ul,
  .nav-right ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .nav-left a,
  .nav-right a {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 0.78rem 1rem;
    white-space: normal;
  }

  .hero {
    padding-top: 4.45rem;
  }
}

@media (max-width: 520px) {
  .sticky-header {
    padding: 0.35rem 0.75rem 0.65rem !important;
  }

  .nav-container {
    padding: 0.6rem 0.65rem;
  }

  .nav-left a,
  .nav-right a {
    font-size: 0.92rem;
    padding: 0.44rem 0.65rem;
  }

  .nav-logo img {
    width: 108px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3rem 1rem;
  }

  .hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 2.25rem;
  }
}

/* Footer social links: show hashtag + icon (shared footer.html) */
.footer .social-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem !important;
  margin-right: 0 !important;
}

.footer .social-links a:hover {
  color: var(--secondary);
}

.footer .social-links a i {
  font-size: 1.35rem;
}

.footer .social-links .social-hash {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 1rem;
  opacity: 0.95;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.footer-bottom a:hover {
  color: var(--secondary);
}
