/* =====================================================
   HEADER.CSS — AMGR Auto Glass
   Scope: header only
===================================================== */

.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header.flat-header{
  background: rgba(0,0,0,0.78);
}

.site-header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0;
}

/* If you use a .container class globally, this will behave */
.site-header .container{
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* -----------------------------
   LOGO
------------------------------ */
.site-logo{
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: rgba(255,255,255,0.95);
  min-width: 220px;
}

.site-logo img{
  width: 74px;
  height: 74px;
  object-fit: contain;
  display: block;
}

.site-logo-text{
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.1;
  font-size: 1.1rem;
}

/* -----------------------------
   NAV
------------------------------ */
.main-nav{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  flex: 1;
}

.main-nav a{
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-weight: 650;
  font-size: .98rem;
  padding: .45rem .25rem;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}

.main-nav a:hover{
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.main-nav a.active{
  color: #fff;
  background: rgba(36,155,240,0.18);
  box-shadow: inset 0 0 0 1px rgba(36,155,240,0.30);
}

/* CTA area in nav */
.nav-cta{
  display: flex;
  align-items: center;
  margin-left: .5rem;
}

/* Make the call button look premium */
.header-call-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .2px;
  text-decoration: none;
  white-space: nowrap;
}

/* If your global btn-primary doesn't set hover, this helps */
.header-call-btn:hover{
  filter: brightness(1.05);
}

/* -----------------------------
   HAMBURGER (hidden on desktop)
------------------------------ */
.hamburger{
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
}

.hamburger span{
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.92);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}

.hamburger.open span:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2){
  opacity: 0;
}
.hamburger.open span:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

/* -----------------------------
   MOBILE NAV
------------------------------ */
@media (max-width: 980px){
  .site-logo{
    min-width: auto;
  }

  .hamburger{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav{
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: .75rem;
    background: rgba(0,0,0,0.92);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
  }

  .main-nav.open{
    display: flex;
  }

  .main-nav a{
    padding: .85rem .9rem;
    border-radius: 12px;
  }

  .nav-cta{
    margin-left: 0;
    padding-top: .25rem;
  }

  .header-call-btn{
    width: 100%;
  }
}
