/* =============================================
   GLOBAL HEADER — The Flame Group
   ============================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
  width: 100%;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}


/* ── LOGO ── */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  overflow: hidden;
  max-width: 220px;
}

.header-logo img {
  height: auto;
  width: 220px;
  max-width: 220px;
  display: block;
  object-fit: contain;
}



/* ── NAV ── */
.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 9px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  color: #0a1628;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: 4px;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-list > li:hover > a {
  color: #F4B22D;
  background: rgba(244, 178, 45, 0.07);
}

.nav-list > li.active > a {
  color: #F4B22D;
  position: relative;
}

.nav-list > li.active > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #F4B22D;
  border-radius: 2px;
}

/* Dropdown caret */
.nav-caret {
  font-size: 0.55rem;
  opacity: 0.65;
  transition: transform 0.2s;
}

.nav-list > li:hover .nav-caret {
  transform: rotate(180deg);
}

/* ── DROPDOWN MENU ── */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(13, 31, 69, 0.16);
  border: 1px solid rgba(13, 31, 69, 0.08);
  /* top padding creates visual gap without breaking hover */
  padding: 14px 0 8px;
  z-index: 99999;
  animation: dropFade 0.15s ease;
}

/* Invisible bridge above dropdown — fills gap so mouse stays inside li */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}

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

.nav-list > li:hover .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 10px 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  color: #0a1628;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown a:hover {
  background: rgba(244, 178, 45, 0.08);
  color: #F4B22D;
}

.nav-dropdown .dropdown-divider {
  height: 1px;
  background: rgba(13, 31, 69, 0.07);
  margin: 4px 12px;
}

/* ── PHONE CTA BUTTON ── */
.header-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  background: #F4B22D;
  border-radius: 7px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  color: #0a1628;
  letter-spacing: 0.4px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(244, 178, 45, 0.35);
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
}

.header-phone:hover {
  background: #e0a01e;
  box-shadow: 0 5px 18px rgba(244, 178, 45, 0.45);
  transform: translateY(-1px);
}

.header-phone i {
  font-size: 0.9rem;
}

/* ── MOBILE HAMBURGER ── */
.header-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  outline: none;
}

.header-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0a1628;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.header-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.header-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE MENU ── */
.mobile-nav {
  display: none;
  background: #ffffff;
  border-top: 2px solid #F4B22D;
  padding: 16px 24px 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

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

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

.mobile-nav-list li a {
  display: block;
  padding: 11px 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: #0a1628;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 31, 69, 0.07);
  transition: color 0.15s;
}

.mobile-nav-list li a:hover {
  color: #F4B22D;
}

.mobile-nav-list li:last-child a {
  border-bottom: none;
}

.mobile-nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 18px;
  background: #F4B22D;
  border-radius: 7px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #0a1628;
  justify-content: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .header-nav { display: none; }
  .header-phone { display: none; }
  .header-hamburger { display: flex; }
  .header-logo img { width: 180px; max-width: 180px; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 20px; height: 68px; }
  .header-logo img { width: 160px; max-width: 160px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 16px; height: 60px; }
  .header-logo img { width: 130px; max-width: 130px; height: auto; }
}
