/* ============================================================
   PeloNICHE Group — Header & Navigation Styles
   ============================================================ */

/* ---------- Header Shell ---------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 5rem;
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

#site-header.transparent {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: white;
}

#site-header.scrolled {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  backdrop-filter: blur(12px);
}

#site-header.solid {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

/* ---------- Header Inner ---------- */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

/* ---------- Logo ---------- */
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
}

.header-logo img {
  height: 2.75rem;
  width: auto;
  object-fit: contain;
}

/* ---------- Desktop Nav ---------- */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
}

.nav-link {
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 200ms;
  position: relative;
}

.nav-link:hover { opacity: 1; }

.nav-link.active {
  opacity: 1;
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
}

/* ---------- Divisions Dropdown ---------- */
.divisions-wrapper {
  position: relative;
  display: inline-block;
}

.divisions-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 200ms;
  color: inherit;
  background: none;
  border: none;
  font-family: var(--font-sans);
  padding: 0.5rem 0;
}

.divisions-trigger:hover { opacity: 1; }

.divisions-dropdown {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  min-width: 14rem;
  background: #1A1914;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  padding: 0.5rem;
  color: white;
  display: none;
  z-index: 200;
  margin-top: 0.25rem;
}

/* Hover bridge padding so mouse never loses focus when moving to dropdown */
.divisions-dropdown::before {
  content: "";
  position: absolute;
  top: -0.75rem;
  left: 0; right: 0;
  height: 0.75rem;
}

.divisions-wrapper:hover .divisions-dropdown,
.divisions-dropdown.open {
  display: block;
}

.divisions-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 150ms ease;
  color: rgba(255,255,255,0.9);
}

.divisions-dropdown a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--gold);
}

/* ---------- CTA Button (header) ---------- */
.header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .header-cta { display: inline-flex; }
}

/* ---------- Mobile Menu Button ---------- */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background 150ms;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn:hover { background: rgba(0,0,0,0.05); }

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

/* ---------- Mobile Drawer ---------- */
#mobile-nav {
  position: fixed;
  top: 5rem;
  left: 0; right: 0;
  z-index: 99;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0 1.5rem;
  display: none;
}

#mobile-nav.open { display: block; }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-links a {
  display: block;
  padding: 0.875rem 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  transition: color 150ms;
}

.mobile-nav-links a:hover { color: var(--gold-deep); }

.mobile-nav-cta {
  margin-top: 1rem;
  display: block;
  text-align: center;
}

/* ---------- Footer ---------- */
#site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  padding: 4rem 0;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-logo-area img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.footer-logo-area .footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.footer-logo-area p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 18rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: white;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul li {
  font-size: 0.875rem;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 150ms;
}

.footer-col a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

.footer-contact-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
