/* =============================================
   navbar.css � Friendly Giants Foundation
   Matches the dark navbar in the reference image
   ============================================= */

/* ---- Header Shell ---- */

.mob-toggle-btn{
    display:none;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.38);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s;
  overflow: visible;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.38);
  box-shadow: 0 3px 20px rgba(0,0,0,0.3);
}

/* ---- Nav Container ---- */
.nav-container {
  max-width: 1400px;
  width: 100%;
  padding: 0 16px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  gap: 32px;
  box-sizing: border-box;
  overflow: visible;
}

/* =============================================
   LOGO — Image
   ============================================= */
.fg-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Actual logo image — taller than navbar, visually overflows */
.logo-img {
  height: 109px;
  width: auto;
  display: block;
  object-fit: contain;
  position: relative;
  z-index: 10;
}

/* Keep old icon styles hidden (not used anymore) */
.fg-logo-icon {
  display: none;
}

.fg-logo-icon .icon-top {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.fg-logo-icon .icon-bottom {
  font-size: 18px;
  font-weight: 700;
  color: #f58220;
  font-family: 'Poppins', sans-serif;
}

.fg-logo-icon.sm { width: 38px; height: 38px; }
.fg-logo-icon.sm .icon-top,
.fg-logo-icon.sm .icon-bottom { font-size: 15px; }

.fg-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-friendly {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.logo-giants {
  font-size: 22px;
  font-weight: 700;
  color: #f58220;
  font-family: 'Poppins', sans-serif;
  line-height: 1;
}

.logo-foundation {
  font-size: 11px;
  color: #cccccc;
  font-family: 'Dancing Script', cursive;
  letter-spacing: 0.5px;
}

.footer-logo .logo-giants { font-size: 18px; }

/* =============================================
   NAV LINKS
   ============================================= */
.navbar {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: center;
}

.nav-link {
  color: #e0e0e0;
  font-size: 13.5px;
  font-weight: 400;
  padding: 10px 11px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.25s, background 0.25s;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: #f58220;
  background: rgba(245,130,32,0.1);
}


/* =============================================
   DROPDOWN MENUS
   ============================================= */
.nav-item {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: rgba(20, 20, 20, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-width: 190px;
  border-radius: 8px;
  padding: 6px 0;
  list-style: none;
  margin: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.07);
  z-index: 2000;
}
 
@keyframes dropFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown li a {
  display: block;
  padding: 9px 18px;
  color: #cccccc;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
  white-space: nowrap;
}

.dropdown li a:hover {
  color: #f58220;
  background: rgba(245,130,32,0.08);
  padding-left: 24px;
}

/* =============================================
   RIGHT SIDE
   ============================================= */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-search-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f58220;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.nav-search-btn:hover { background: #d96d14; }

.hamburger {
  background: none;
  border: none;
  color: #f58220;
  font-size: 20px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  transition: color 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger:hover { color: #f58220; }

/* =============================================
   SEARCH BAR DROPDOWN
   ============================================= */
/* =============================================
   SEARCH DROPDOWN POPUP
   ============================================= */
.nav-search-wrap {
  position: relative;
}

.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  z-index: 9999;
  overflow: hidden;
}

.search-dropdown.open {
  display: block;
  animation: searchFadeIn 0.2s ease;
}

@keyframes searchFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.search-dropdown-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.search-dropdown-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  padding: 10px 14px;
}

.search-dropdown-form input::placeholder { color: #666; }

.search-dropdown-form button {
  background: #f58220;
  border: none;
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}

.search-dropdown-form button:hover { background: #d96d14; }

.search-suggestions {
  padding: 10px 14px 12px;
}

.search-suggest-label {
  display: block;
  font-size: 10px;
  font-family: 'Poppins', sans-serif;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.search-suggest-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.search-suggest-links a {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #ccc;
  background: #2a2a2a;
  border-radius: 20px;
  padding: 4px 10px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.search-suggest-links a i {
  margin-right: 4px;
  font-size: 10px;
  color: #f58220;
}

.search-suggest-links a:hover {
  background: #f58220;
  color: #fff;
}

.search-suggest-links a:hover i { color: #fff; }

/* Hide mobile-only elements on desktop */
.mob-arrow      { display: none; }
.mob-toggle-btn { display: none; }

/* nav-link-row: on desktop just passes through — the <a> fills the space */
.nav-link-row {
  display: contents;
}

/* Desktop hover dropdown — ONLY on large screens */
@media (min-width: 961px) {
  .nav-item:hover .dropdown {
    display: block;
    animation: dropFade 0.2s ease;
  }
}

/* =============================================
   MOBILE NAV — ≤ 960px
   ============================================= */
@media (max-width: 960px) {

  /* Slide-down full-width panel */
  .navbar {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    background: #111;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0 0 20px;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  .navbar.open { display: flex; }

  /* Every nav item is full-width */
  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  /* nav-link-row: flex row → link + toggle button side-by-side */
  .nav-link-row {
    display: flex;
    align-items: stretch;
    width: 100%;
  }

  /* The main link text */
  .nav-link {
    flex: 1;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #ddd;
    border-radius: 0;
    border-bottom: none;
    box-sizing: border-box;
    text-decoration: none;
  }

  /* Items WITHOUT a dropdown still get correct padding */
  .nav-item > .nav-link {
    display: block;
    width: 100%;
    padding: 14px 20px;
  }

  /* Arrow toggle button — only visible on mobile */
  .mob-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.04);
    border: none;
    border-left: 1px solid rgba(255,255,255,0.07);
    color: #f58220;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.25s;
  }

  .mob-toggle-btn:hover {
    background: rgba(245,130,32,0.12);
  }

  /* Rotate arrow when open */
  .nav-item.mob-open .mob-toggle-btn {
    transform: rotate(180deg);
    background: rgba(245,130,32,0.1);
  }

  /* Dropdown hidden by default on mobile */
  .dropdown {
    display: none !important;
    padding: 0;
    margin: 0;
    position: static !important;
    top: auto !important;
    left: auto !important;
    background: rgba(255,255,255,0.03);
    box-shadow: none;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    min-width: auto;
    animation: none !important;
    border-top: 1px solid rgba(255,255,255,0.05);
  }

  /* Show dropdown when parent has mob-open */
  .nav-item.mob-open .dropdown {
    display: block !important;
  }

  /* Dropdown links */
  .dropdown li a {
    display: block;
    padding: 11px 20px 11px 32px;
    font-size: 13px;
    color: #aaa;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
    white-space: normal;
  }

  .dropdown li:last-child a {
    border-bottom: none;
  }

  .dropdown li a:hover {
    color: #f58220;
    background: rgba(245,130,32,0.06);
    padding-left: 38px;
  }

  /* Active state for hovered link label */
  .nav-link:hover,
  .nav-link.active {
    color: #f58220;
    background: rgba(245,130,32,0.06);
  }
}
@media (max-width: 480px) {
  .nav-search-btn { padding: 8px 12px; }
  .logo-giants { font-size: 18px; }
}

/* =============================================
   NAVBAR DONATE BUTTON
   ============================================= */
.nav-donate-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f58220;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
  white-space: nowrap;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.nav-donate-btn:hover {
  background: #d96d14;
  transform: translateY(-1px);
}
.nav-donate-btn i {
  font-size: 12px;
}
