/* ==========================================================================
   ARDEN GROUP - ULTRA-MODERN HEADER & NAVIGATION (REF-INSPIRED)
   ========================================================================== */

/* Top Utility Bar */
.ag-topbar {
  background-color: #FFFFFF;
  border-bottom: 1px solid #EAEFF2;
  font-size: 0.84rem;
  color: #5A646E;
  position: relative;
  z-index: 1002;
  transition: all 0.3s ease;
}

body.admin-bar .ag-topbar {
  position: relative;
}

.ag-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--ag-topbar-height);
}

.ag-topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ag-topbar-pill {
  background: rgba(201, 162, 58, 0.14);
  color: var(--ag-dark-gold);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--ag-radius-pill);
}

.ag-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4A5560;
  font-weight: 600;
  font-size: 0.84rem;
  transition: color 0.2s ease;
}

.ag-topbar-link:hover {
  color: var(--ag-primary-gold);
}

.ag-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ag-topbar-hubs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ag-deep-navy);
  font-weight: 600;
  font-size: 0.82rem;
}

.ag-topbar-hubs span.hub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #27AE60;
  box-shadow: 0 0 8px #27AE60;
  display: inline-block;
  animation: ag-pulse 2s infinite;
}

@keyframes ag-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(39, 174, 96, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

.ag-topbar-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ag-topbar-social-btn {
  color: #8C96A0;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ag-topbar-social-btn:hover {
  color: var(--ag-primary-gold);
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .ag-topbar {
    display: none !important;
  }
}

/* ==========================================================================
   MAIN SITE HEADER BAR (STICKY, CRISP, NEVER OVERLAPPING HERO AWKWARDLY)
   ========================================================================== */
.ag-site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
}

body.admin-bar .ag-site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .ag-site-header {
    top: 46px;
  }
}

.ag-site-header.is-scrolled,
.ag-site-header.is-sticky {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid var(--ag-primary-gold);
}

.ag-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

/* Brand Container */
.ag-brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  flex-shrink: 0;
}

.ag-header-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ag-header-logo-img {
  height: 48px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.ag-header-logo-link:hover .ag-header-logo-img {
  transform: scale(1.02);
}

.ag-brand-subtitle-badge {
  background: rgba(201, 162, 58, 0.12);
  border: 1px solid rgba(201, 162, 58, 0.35);
  color: var(--ag-dark-gold);
  font-family: var(--ag-font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

@media (max-width: 1240px) {
  .ag-brand-subtitle-badge {
    display: none;
  }
}

/* Primary Navigation Menu */
.ag-primary-navigation {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.ag-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}

.ag-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.ag-nav-link {
  font-family: var(--ag-font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ag-deep-navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 28px 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s ease;
}

.ag-nav-link::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--ag-gold-gradient);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ag-nav-link:hover,
.ag-nav-item.current-menu-item > .ag-nav-link,
.ag-nav-item.current_page_item > .ag-nav-link {
  color: var(--ag-primary-gold);
}

.ag-nav-link:hover::after,
.ag-nav-item.current-menu-item > .ag-nav-link::after,
.ag-nav-item.current_page_item > .ag-nav-link::after {
  width: 100%;
}

/* Header Actions: 9-Dot Quick Menu & Gold CTA */
.ag-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 32px;
  flex-shrink: 0;
}

.ag-grid-trigger-btn {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ag-deep-navy);
  border-radius: 6px;
  transition: all 0.25s ease;
}

.ag-grid-trigger-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ag-grid-trigger-btn:hover {
  background: #F0F4F7;
  color: var(--ag-primary-gold);
}

.ag-header-cta-btn {
  background-color: var(--ag-primary-gold);
  background-image: var(--ag-gold-gradient);
  color: #0E1A24;
  font-family: var(--ag-font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(201, 162, 58, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.ag-header-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 58, 0.45);
  color: #000;
}

/* Mobile Hamburger Toggle */
.ag-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1005;
}

.ag-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--ag-deep-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.ag-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.ag-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.ag-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.ag-mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 1004;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.ag-mobile-drawer.is-open {
  right: 0;
}

.ag-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(14, 26, 36, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1003;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ag-drawer-backdrop.is-active,
.ag-drawer-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.ag-mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ag-mobile-nav li {
  border-bottom: 1px solid #F0F4F7;
}

.ag-mobile-nav a {
  display: block;
  padding: 16px 0;
  font-family: var(--ag-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ag-deep-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ag-mobile-nav a:hover {
  color: var(--ag-primary-gold);
  padding-left: 6px;
}

/* Tablet & Mobile Breakpoints for Header */
@media (max-width: 991px) {
  .ag-primary-navigation,
  .ag-grid-trigger-btn {
    display: none !important;
  }

  .ag-menu-toggle {
    display: flex !important;
  }

  .ag-header-actions {
    margin-left: auto;
    gap: 12px;
  }

  .ag-header-cta-btn {
    padding: 9px 16px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .ag-header-cta-btn {
    display: none;
  }
}
