:root{
  --container-header:1120px;
  --pad-d:16px;
}

/* RESET */
html,body{
  margin:0;
  padding:0;
  box-sizing:border-box;
  overflow-x:hidden;
}
*,*:before,*:after{
  box-sizing:inherit;
}
img{
  max-width:100%;
  height:auto;
  display:block;
}

/* SKIP LINK */
.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  position:fixed;
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:8px 12px;
  z-index:9999;
  background:#002b5c;
  color:#fff;
  border-radius:4px;
}

/* ===========================
   HEADER (CLS SAFE)
   =========================== */

.site-header{
  width:100%;
  background:#111;
  color:#fff;
  /* CLS: header space reserve */
  min-height:140px;          /* desktop approx height */
  display:block;
}
@media(max-width:768px){
  .site-header{
    min-height:120px;        /* mobile/tablet */
  }
}

/* MAIN HEADER CONTAINER */
.header-inner{
  max-width:var(--container-header);
  width:100%;
  margin:0 auto;
  padding:12px var(--pad-d);

  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:inherit;        /* follow header reserved height */
}

/* Row 1: LOGO CENTER */
.header-inner .site-brand{
  display:flex;
  justify-content:center;
  align-items:center;
}
.header-inner .site-brand .custom-logo{
  height:60px;
  width:auto;
  object-fit:contain;
}
@media(max-width:480px){
  .header-inner .site-brand .custom-logo{height:48px;}
}

/* Row 2: LEFT MENU + RIGHT SEARCH */
.header-inner .header-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* LEFT: hamburger + menu */
.header-inner .header-left{
  display:flex;
  align-items:center;
  gap:20px;
}

/* hamburger (mobile only) */
.header-inner .hamburger{
  background:none;
  border:none;
  color:#fff;
  font-size:22px;
  padding:6px;
  cursor:pointer;
}
@media(min-width:1024px){
  .header-inner .hamburger{display:none;}
}

/* desktop nav */
.header-inner .desktop-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:18px;
}
.header-inner .desktop-nav a{
  color:#fff;
  text-decoration:none;
  padding:6px 0;
  opacity:.9;
}
.header-inner .desktop-nav a:hover{
  opacity:1;
}
@media(max-width:1023px){
  .header-inner .desktop-nav{display:none;}
}

/* RIGHT: search icon */
.header-inner .search-btn{
  background:none;
  border:none;
  color:#fff;
  font-size:22px;
  padding:6px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ===========================
   MOBILE SIDEBAR MENU
   =========================== */

.sidebar{
  position:fixed;
  top:0;
  left:0;
  height:100vh;
  width:300px;
  max-width:85vw;
  background:#111;
  color:#fff;
  padding:14px 16px 20px;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;

  transform:translateX(-100%);
  opacity:0;
  pointer-events:none;

  transition:
    transform .35s cubic-bezier(.4,0,.2,1),
    opacity .25s ease;
  z-index:1100;
}
.sidebar.open{
  transform:translateX(0);
  opacity:1;
  pointer-events:auto;
  box-shadow:3px 0 20px rgba(0,0,0,.35);
}

.sidebar-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-bottom:12px;
  margin-bottom:14px;
  border-bottom:1px solid #222;
}
.sidebar-title{
  font-size:17px;
  font-weight:700;
  margin:0;
}
.sidebar .close-btn{
  background:none;
  border:0;
  color:#fff;
  font-size:22px;
  padding:4px;
  cursor:pointer;
  line-height:1;
}
.sidebar-nav ul{
  list-style:none;
  margin:0;
  padding:6px 0 0;
}
.sidebar-nav li{
  border-bottom:1px solid #1c1c1c;
}
.sidebar-nav a{
  display:block;
  padding:12px 4px;
  color:#fff;
  text-decoration:none;
  font-size:15px;
  opacity:.9;
}
.sidebar-nav a:hover{
  opacity:1;
  background:#1a1a1a;
}

/* lock body when menu open */
body.menu-open{
  overflow:hidden;
}

/* ===========================
   SEARCH OVERLAY
   =========================== */

.search-lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:none;
  opacity:0;
  pointer-events:none;
  z-index:1100;
  justify-content:center;
  align-items:center;
  transition:.25s ease;
}
.search-lightbox.show,
body.search-open .search-lightbox{
  display:flex;
  opacity:1;
  pointer-events:auto;
}
.search-shell{
  width:min(680px,92vw);
  background:#fff;
  color:#111;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.search-bar{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:10px;
  padding:14px;
  border-bottom:1px solid #eee;
}
.search-bar .close-btn{
  background:none;
  border:none;
  font-size:22px;
  cursor:pointer;
}
.search-form input[type=search]{
  width:100%;
  padding:10px 12px;
  border:1px solid #ddd;
  border-radius:6px;
  font-size:16px;
}


