/**
 * Layout Navigation Orchestrator CSS
 * CCT District 20 - Modern Modular Navigation Architecture
 * 
 * Modular Separation (Hướng 1):
 * - assets/css/nav-desktop.css (Pure Desktop Navigation)
 * - assets/css/nav-mobile.css  (Pure Mobile Full-Screen Navigation Layer)
 * 
 * Shared Header & Branding Styles:
 */

/* ==========================================================
   1. BRANDING & HEADER BAR
========================================================== */
.header {
  position: relative;
  background: var(--church-navy-primary, #1b2559);
  z-index: 997;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(11, 15, 38, 0.12);
}

.header .branding,
.branding {
  min-height: 84px;
  background: var(--church-navy-primary, #1b2559);
  border-bottom: 2px solid rgba(217, 119, 6, 0.25);
  position: relative;
}

.branding .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo gốc: đặt thuần ảnh, KHÔNG viền / KHÔNG glow (con dấu đã có vòng tròn
   và nền trắng trong suốt ra ngoài — mọi khung CSS thêm vào đều là thừa). */
.logo .site-logo {
  max-height: 56px;
  width: auto;
  transform: none;
  transition: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-touch-callout: none;
}

/* 1. Logo Link Container: Strictly NO box-shadow or border (transparent wrapper only) */
.logo,
.logo:hover,
.logo:focus,
.logo:active,
.logo:visited {
  border: none;
  box-shadow: none;
  outline: none;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-touch-callout: none;
  text-decoration: none;
}

/* 2. Logo Image: giữ nguyên trạng thái tĩnh ở mọi tương tác (không viền/glow) */
.logo:hover .site-logo,
.logo .site-logo:hover,
.logo:active .site-logo,
.logo .site-logo:active,
.logo:focus .site-logo,
.header .logo:hover img,
.header .logo img:hover,
.header .logo:active img,
.header .logo img:active {
  transform: none;
  transition: none;
  outline: none;
}

/* ==========================================================
   NAV GATE — ngưỡng chuyển đổi 1024px
   Desktop dùng nav ngang từ 1024px (iPad landscape, laptop Windows 125%).
   Dưới 1024px dùng drawer/panel (nav-mobile.css + layout-tablet.css).
   Không dùng .d-lg (992px quá sớm) / .d-xl (1200px quá muộn) của Bootstrap
   để tránh phải dùng !important.
========================================================== */
.navmenu-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .navmenu-desktop {
    display: flex;
  }

  /* Phải dùng .branding .mobile-nav-toggle (0,2,0) vì vendor
     phosphor.css có reset `i[class*="ph-"] { display: inline-flex }` (0,1,1)
     sẽ thắng selector đơn .mobile-nav-toggle (0,1,0). */
  .branding .mobile-nav-toggle {
    display: none;
  }
}
