:root{
  --header-bg:#fff;
  --header-text:#000;
  --header-border:rgba(0,0,0,.08);
  --header-muted:rgba(0,0,0,.65);
  --shadow:0 15px 35px rgba(0,0,0,.08);
}

html,body{
  overflow-x:hidden;
  max-width:100%;
}

.site-header__utility,
.site-header,
.site-header *{
  box-sizing:border-box;
}

/* utility bar — scrolls away with page */
.site-header__utility{
  background:#fff;
  border-bottom:1px solid var(--header-border);
  font-family:Segoe UI,Arial,sans-serif;
}

/* main header — sticky */
.site-header{
  position:sticky;
  top:0;
  z-index:9999;
  background:#fff;
  border-bottom:1px solid var(--header-border);
  box-shadow:0 2px 8px rgba(0,0,0,.06);
  font-family:Segoe UI,Arial,sans-serif;
}

.site-header__container{
  width:min(1240px,calc(100% - 40px));
  margin:auto;
}

/* utility */
.site-header__utility-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  min-height:42px;
  flex-wrap:wrap;
}

.site-header__utility-text{
  margin:0;
  font-size:13px;
  color:var(--header-muted);
}

/* main */
.site-header__main-inner{
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

/* logo */
.site-header__brand{
  display:flex;
  align-items:center;
  flex-shrink:0;
}

.site-header__brand img{
  width:56px;
  height:56px;
  object-fit:contain;
}

/* navigation */
.site-header__nav{
  flex:1;
  display:flex;
  justify-content:center;
}

.site-header__menu{
  display:flex;
  align-items:center;
  list-style:none;
  padding:0;
  margin:0;
  gap:4px;
}

.site-header__menu > li{
  position:relative;
}

.site-header__menu a{
  color:#000;
  text-decoration:none;
  padding:14px 16px;
  font-size:15px;
  font-weight:600;
  display:flex;
  align-items:center;
  transition:.3s;
}

.site-header__menu a:hover{
  background:#f5f5f5;
  border-radius:8px;
}

.site-header__menu-linkgroup{
  display:flex;
  align-items:center;
}

/* dropdown toggle — chevron */
.site-header__dropdown-toggle{
  border:0;
  background:none;
  width:26px;
  height:26px;
  cursor:pointer;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0;
  flex-shrink:0;
}

.site-header__dropdown-toggle::after{
  content:'';
  display:block;
  width:7px;
  height:7px;
  border-right:2px solid #555;
  border-bottom:2px solid #555;
  transform:rotate(45deg) translate(-1px,-1px);
  transition:transform .25s;
}

.has-dropdown.is-open .site-header__dropdown-toggle::after{
  transform:rotate(-135deg) translate(-1px,-1px);
}

/* dropdown — click only */
.dropdown{
  position:absolute;
  left:0;
  top:100%;
  width:320px;
  background:#fff;
  border:1px solid var(--header-border);
  box-shadow:var(--shadow);
  padding:10px;
  display:none;
  list-style:none;
  border-radius:14px;
}

.dropdown li{
  margin:0;
}

.dropdown a{
  padding:12px;
  display:block;
  border-radius:8px;
  color:#000;
}

.dropdown a:hover{
  background:#f7f7f7;
}

.has-dropdown.is-open .dropdown{
  display:block;
}

/* actions */
.site-header__actions{
  display:flex;
  gap:10px;
  flex-shrink:0;
}

.site-header__phone,
.site-header__cta{
  min-height:48px;
  padding:0 20px;
  text-decoration:none;
  border-radius:10px;
  font-size:14px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
}

.site-header__phone{
  border:1px solid #000;
  color:#000;
}

.site-header__cta{
  display:none !important;
}

/* hamburger */
.site-header__toggle{
  width:48px;
  height:48px;
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:6px;
  background:none;
  border:1px solid #000;
  border-radius:8px;
  cursor:pointer;
  flex-shrink:0;
}

.site-header__toggle span{
  width:22px;
  height:2px;
  background:#000;
  margin:auto;
  display:block;
}

/* close button inside mobile nav panel */
.site-header__close{
  display:none;
  position:absolute;
  top:16px;
  right:16px;
  width:40px;
  height:40px;
  background:#fff;
  border:1px solid #ddd;
  border-radius:8px;
  cursor:pointer;
  font-size:22px;
  line-height:1;
  color:#000;
  align-items:center;
  justify-content:center;
}

/* tablet */
@media(max-width:1023px){

.site-header__main-inner{
flex-wrap:wrap;
min-height:auto;
padding:18px 0;
}

.site-header__toggle{
display:flex;
}

.site-header__nav{
position:fixed;
top:0;
right:0;
width:320px;
height:100vh;
background:#fff;
padding:80px 20px 30px;
box-shadow:-10px 0 30px rgba(0,0,0,.08);
transform:translateX(100%);
transition:transform .4s;
overflow-y:auto;
justify-content:flex-start;
z-index:10000;
}

.site-header.is-open .site-header__nav{
transform:translateX(0);
}

.site-header__close{
display:flex;
}

.site-header__menu{
display:flex;
flex-direction:column;
align-items:stretch;
width:100%;
gap:8px;
}

.site-header__menu a{
padding:15px;
border:1px solid #eee;
border-radius:10px;
}

.dropdown{
position:static;
width:100%;
box-shadow:none;
border:none;
padding:10px 0 0;
}

/* hide phone from sticky header on tablet — it lives in the nav panel */
.site-header__actions{
display:none;
}

}

/* mobile */
@media(max-width:767px){

.site-header__utility{
display:none;
}

.site-header__container{
width:calc(100% - 24px);
}

.site-header__main-inner{
min-height:auto;
padding:14px 0;
}

.site-header__brand img{
width:46px;
height:46px;
}

.site-header__nav{
width:100%;
}

}

/* phone button inside the slide-out nav panel */
.site-header__nav-phone{
display:none;
margin-top:24px;
padding-top:20px;
border-top:1px solid var(--header-border);
}

.site-header__nav-phone a{
display:flex;
align-items:center;
justify-content:center;
min-height:52px;
background:#000;
color:#fff;
border-radius:10px;
font-size:15px;
font-weight:700;
text-decoration:none;
}

@media(max-width:1023px){
.site-header__nav-phone{
display:block;
}
}
