/* Header and footer brand bar for 24 Hour Redding Locksmith.
   Dark charcoal bar, gold edges, one call button, room for the van-style lockup.
   Loaded after styles.css, dropdown-fix.css and call-float.css so these rules win. */

.site-header{
  height:auto;
  min-height:88px;
  display:flex;
  align-items:center;
  gap:22px;
  padding:10px 28px;
  background:#161410;
  color:#f4ede0;
  border-bottom:1px solid #d1a43a;
  position:sticky;
  top:0;
  z-index:40;
  flex-wrap:nowrap;
}

.site-header a,
.site-header button{
  color:#f4ede0;
}

.site-header .brand{
  display:flex;
  align-items:center;
  gap:0;
  min-width:0;
  flex:0 1 auto;
  text-decoration:none;
  color:inherit;
}

/* Real-size lockup: wide enough to read, short enough that nav does not collide. */
.site-header .brand img{
  width:auto;
  height:58px;
  max-width:min(320px, 34vw);
  display:block;
}

/* Hide the old text wordmark if a leftover span is ever left in place. */
.site-header .brand span,
.site-header .brand strong,
.site-header .brand small{
  display:none;
}

.site-header nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:22px;
  margin-left:auto;
  flex:1 1 auto;
  min-width:0;
}

.site-header nav>a,
.site-header .nav-group>button{
  border:0;
  background:none;
  color:#f4ede0;
  font:700 13px/1 Arial,Helvetica,sans-serif;
  letter-spacing:.06em;
  text-transform:uppercase;
  text-decoration:none;
  padding:28px 0;
  cursor:pointer;
  white-space:nowrap;
}

.site-header nav>a:hover,
.site-header nav>a:focus,
.site-header .nav-group>button:hover,
.site-header .nav-group>button:focus{
  color:#d1a43a;
}

/* Dropdown panel on the dark bar. */
.site-header .dropdown{
  background:#1c1916;
  border:1px solid #d1a43a55;
  box-shadow:0 18px 40px #00000080;
  top:72px;
}

.site-header .dropdown a,
.site-header .dropdown b{
  color:#f4ede0;
}

.site-header .dropdown a:hover{
  background:#2a241c;
  color:#d1a43a;
}

/* One strong call button. Replaces the old dispatch box plus the green chip. */
.site-header .call-head{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-left:8px;
  flex:0 0 auto;
  background:#d1a43a;
  color:#161410;
  font:800 14px/1 Arial,Helvetica,sans-serif;
  letter-spacing:.04em;
  text-transform:uppercase;
  text-decoration:none;
  padding:12px 16px;
  border-radius:2px;
  box-shadow:none;
  white-space:nowrap;
}

.site-header .call-head:hover,
.site-header .call-head:focus{
  background:#e0b84a;
  color:#161410;
}

.site-header .call-head svg{
  width:16px;
  height:16px;
  fill:#161410;
}

/* Hamburger sits at the far right on small screens. */
.site-header .menu{
  display:none;
  margin-left:0;
  border:0;
  background:none;
  padding:8px;
  cursor:pointer;
}

.site-header .menu span{
  display:block;
  width:22px;
  height:2px;
  background:#d1a43a;
  margin:5px 0;
}

/* Hide the leftover dispatch box if an older header snippet remains. */
.site-header .header-call,
.site-header .dispatch{
  display:none !important;
}

/* One call button policy: no floating green phone on top of the header button. */
.call-float{
  display:none !important;
}

/* Footer lockup on the existing dark footer. */
footer{
  background:#10100e;
  border-top:1px solid #d1a43a55;
  align-items:center;
}

footer .brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  color:#f4ede0;
}

footer .brand img{
  height:52px;
  width:auto;
  max-width:280px;
  display:block;
}

footer .brand span,
footer .brand strong,
footer .brand small{
  display:none;
}

footer a{
  color:#e0c07a;
}

/* Narrow desktop: keep a single row, tighten nav before wrapping to a phone menu. */
@media(max-width:1180px){
  .site-header{
    gap:16px;
    padding:10px 18px;
  }
  .site-header .brand img{
    height:52px;
  }
  .site-header nav{
    gap:14px;
  }
  .site-header nav>a,
  .site-header .nav-group>button{
    font-size:12px;
    padding:24px 0;
  }
  .site-header .call-head{
    padding:11px 12px;
    font-size:13px;
  }
}

/* Phone and small tablet: logo, call, menu. Full screen menu panel. */
@media(max-width:860px){
  .site-header{
    min-height:70px;
    padding:8px 12px;
    gap:10px;
  }
  .site-header .menu{
    display:block;
    margin-left:auto;
    order:3;
  }
  .site-header .brand{
    order:1;
  }
  .site-header .brand img{
    height:42px;
    max-width:52vw;
  }
  .site-header .call-head{
    order:2;
    margin-left:auto;
    padding:10px 10px;
    font-size:11px;
  }
  .site-header nav{
    display:none;
    order:4;
    position:absolute;
    left:0;
    right:0;
    top:70px;
    margin:0;
    background:#161410;
    border-top:1px solid #d1a43a55;
    padding:8px 16px 24px;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    max-height:calc(100vh - 70px);
    overflow:auto;
  }
  .site-header nav.is-open{
    display:flex;
  }
  .site-header nav>a,
  .site-header .nav-group>button{
    display:block;
    width:100%;
    text-align:left;
    padding:14px 0;
    border-bottom:1px solid #d1a43a33;
    font-size:13px;
  }
  .site-header .dropdown,
  .site-header .dropdown.areas{
    position:static;
    box-shadow:none;
    background:#1c1916;
    min-width:0;
    border-radius:0;
    border:0;
    top:auto;
  }
}

@media(max-width:420px){
  /* Keep the number, just a tighter button so the logo still has room. */
  .site-header .call-head{
    padding:10px 8px;
    letter-spacing:0;
  }
}
