/**
 * ============================================================
 * HBM — ARCHIVE PREMIUM CSS (FORCED)
 * File: assets/css/archive-premium.css
 * ============================================================
 * ✅ Forces FULL PAGE background (beats JNews / theme wrappers)
 * ✅ Works for BOTH:
 *    1) CPT archive:  /hbm_business/
 *    2) Page slug:    /restaurants/
 * ✅ Uses fixed ::before backdrop so no white flashes
 * ✅ All styles scoped to .hbm-archive markup
 * ============================================================
 */

/* ============================================================
 * 0) FORCE FULL PAGE BACKGROUND (NO WHITE EVER)
 * ============================================================ */

/* body base for BOTH contexts */
body.post-type-archive-hbm_business,
body.page-slug-restaurants{
  background: #070b0f !important;
}

/* theme wrappers -> transparent (so our forced backdrop shows) */
body.post-type-archive-hbm_business #page,
body.post-type-archive-hbm_business .site,
body.post-type-archive-hbm_business #content,
body.post-type-archive-hbm_business .site-content,
body.post-type-archive-hbm_business .content-area,
body.post-type-archive-hbm_business .content-inner,
body.post-type-archive-hbm_business .jeg_main,
body.post-type-archive-hbm_business .jeg_main_content,
body.post-type-archive-hbm_business .container,
body.post-type-archive-hbm_business .jeg_container,

body.page-slug-restaurants #page,
body.page-slug-restaurants .site,
body.page-slug-restaurants #content,
body.page-slug-restaurants .site-content,
body.page-slug-restaurants .content-area,
body.page-slug-restaurants .content-inner,
body.page-slug-restaurants .jeg_main,
body.page-slug-restaurants .jeg_main_content,
body.page-slug-restaurants .container,
body.page-slug-restaurants .jeg_container{
  background: transparent !important;
  box-shadow: none !important;
}

/* ✅ fixed backdrop (covers everything, all the time) */
body.post-type-archive-hbm_business .hbm-archive::before,
body.page-slug-restaurants .hbm-archive::before{
  content:"";
  position: fixed;
  inset: 0;
  background: #070b0f;
  z-index: -1;
}

/* keep archive section itself transparent (so backdrop is the page bg) */
body.post-type-archive-hbm_business .hbm-archive,
body.page-slug-restaurants .hbm-archive{
  background: transparent !important;
}

/* ============================================================
 * 1) ARCHIVE VARIABLES + LAYOUT (SCOPED)
 * ============================================================ */
.hbm-archive{
  --hbm-bg: #155562;
  --hbm-surface: #155562;
  --hbm-border: rgba(121, 99, 2, 0.65);
  --hbm-text: rgba(255,255,255,.94);
  --hbm-muted: rgba(255,255,255,.72);
  --hbm-gold: #d6ad61;
  --hbm-emerald: #002520ff;

  --hbm-radius: 18px;
  --hbm-shadow: 0 18px 60px rgba(0,0,0,.55);

  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px 70px;
  color: var(--hbm-text);
}

/* ============================================================
 * 1.5) TOP BAR (LOGO + HOME) — SMALL + CLEAN
 * ============================================================ */
.hbm-archive .hbm-topbar{
  position: sticky;
  top: 0;
  z-index: 50;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;

  padding: 8px 10px;
  margin: 0 0 12px;
  border-radius: 14px;

  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

/* brand container */
.hbm-archive .hbm-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: #fff;
  font-weight: 900;
  max-width: 260px; /* prevents huge logo */
}

/* IMPORTANT: force WP custom logo to be small */
.hbm-archive .hbm-topbar .custom-logo-link{
  display:inline-flex !important;
  align-items:center !important;
  line-height: 1 !important;
}

.hbm-archive .hbm-topbar .custom-logo{
  width: auto !important;
  height: 44px !important;    /* change 36–52px */
  max-height: 44px !important;
  max-width: 220px !important;
  object-fit: contain !important;
  display:block !important;
}

/* fallback for any img in topbar */
.hbm-archive .hbm-topbar img{
  max-height: 44px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Home button */
.hbm-archive .hbm-toplink{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding: 8px 10px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 900;
  font-size: 13px;

  border: 1px solid rgba(214,173,97,.32);
  background: rgba(214,173,97,.12);
  color: rgba(255,255,255,.96);
}
.hbm-archive .hbm-toplink:hover{
  background: rgba(214,173,97,.18);
  border-color: rgba(214,173,97,.45);
}

/* mobile: keep bar usable */
@media (max-width: 560px){
  .hbm-archive .hbm-topbar{
    border-radius: 12px;
    padding: 8px 8px;
  }
  .hbm-archive .hbm-topbar .custom-logo,
  .hbm-archive .hbm-topbar img{
    height: 38px !important;
    max-height: 38px !important;
    max-width: 180px !important;
  }
}

/* ============================================================
 * 2) HERO
 * ============================================================ */
.hbm-archive .hbm-hero{
  border-radius: 22px;
  padding: 28px 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(214,173,97,.14), transparent 45%),
    radial-gradient(circle at 86% 18%, rgba(10,106,91,.14), transparent 52%),
    linear-gradient(160deg, rgba(10,12,11,.96), rgba(7,11,15,.98));
  border: 1px solid var(--hbm-border);
  box-shadow: 0 22px 70px rgba(0,0,0,.65);
  margin-bottom: 18px;
}

.hbm-archive .hbm-hero h1{
  margin: 0;
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.08;
  font-weight: 900;
  color: rgba(255,255,255,.98);
}

.hbm-archive .hbm-hero p{
  margin: 8px 0 0;
  color: var(--hbm-muted);
  font-weight: 700;
}

/* ============================================================
 * 3) TOOLBAR (SEARCH + FILTERS)
 * ============================================================ */
.hbm-archive .hbm-toolbar{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin: 14px 0 16px;
}

.hbm-archive .hbm-form{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  flex:1;
}

.hbm-archive .hbm-input,
.hbm-archive .hbm-select{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0, 53, 53, 1);
  color: var(--hbm-text);
  outline: none;
}

.hbm-archive .hbm-input::placeholder{
  color: rgba(247, 245, 242, 1);
}

.hbm-archive .hbm-input{
  min-width: 220px;
  flex: 1;
}

.hbm-archive .hbm-select{
  min-width: 180px;
}

/* option styling is browser-limited */
.hbm-archive .hbm-btn{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(214,173,97,.32);
  background: rgba(214,173,97,.14);
  color: rgba(255,255,255,.96);
  font-weight: 900;
  cursor:pointer;
}
.hbm-archive .hbm-btn:hover{
  background: rgba(214,173,97,.18);
  border-color: rgba(214,173,97,.45);
}

.hbm-archive .hbm-meta{
  color: var(--hbm-muted);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

/* ============================================================
 * 4) GRID
 * ============================================================ */
.hbm-archive .hbm-grid{
  display:grid;
  gap:14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px){
  .hbm-archive .hbm-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .hbm-archive .hbm-grid{ grid-template-columns: 1fr; }
}

/* ============================================================
 * 5) CARD
 * ============================================================ */
.hbm-archive .hbm-card{
  border-radius: var(--hbm-radius);
  overflow:hidden;
  border:1px solid var(--hbm-border);
  background: var(--hbm-surface);
  box-shadow: var(--hbm-shadow);
  display:flex;
  flex-direction:column;
}

.hbm-archive .hbm-card-img{
  position:relative;
  aspect-ratio: 16/10;
  background: rgba(255,255,255,.03);
}

.hbm-archive .hbm-card-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.hbm-archive .hbm-card-placeholder{
  width:100%;
  height:100%;
  display:block;
  background:
    radial-gradient(circle at 22% 25%, rgba(214,173,97,.16), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

.hbm-archive .hbm-badge{
  position:absolute;
  left:12px;
  top:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(7,11,15,.62);
  border: 1px solid rgba(255,255,255,.12);
  font-weight:900;
  font-size:12px;
  color: rgba(255,255,255,.96);
}

.hbm-archive .hbm-body{
  padding:14px 14px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.hbm-archive .hbm-title{
  margin:0;
  font-weight:900;
  font-size:16px;
  line-height:1.2;
}

.hbm-archive .hbm-title a{
  color: rgba(255,255,255,.98);
  text-decoration:none;
}
.hbm-archive .hbm-title a:hover{ opacity:.92; }

.hbm-archive .hbm-meta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color: var(--hbm-muted);
  font-weight:700;
  font-size:13px;
}

.hbm-archive .hbm-more{
  margin-top:2px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color: rgba(214,173,97,.95);
  font-weight:900;
  text-decoration:none;
}
.hbm-archive .hbm-more:hover{ opacity:.9; }

.hbm-archive .hbm-empty{
  color: rgba(255,255,255,.78);
  font-weight:800;
  padding:14px 0;
}

/* ============================================================
 * 6) PAGINATION
 * ============================================================ */
.hbm-archive .hbm-pager{
  margin-top:18px;
  display:flex;
  justify-content:center;
}

.hbm-archive .hbm-pager .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  height:40px;
  padding:0 12px;
  margin:0 4px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.92);
  text-decoration:none;
  font-weight:900;
}

.hbm-archive .hbm-pager .page-numbers:hover{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.045);
}

.hbm-archive .hbm-pager .page-numbers.current{
  border-color: rgba(214,173,97,.30);
  background: rgba(214,173,97,.14);
  color: rgba(255,255,255,.96);
}

/* ============================================================
 * 7) RESPONSIVE
 * ============================================================ */
@media (max-width: 560px){
  .hbm-archive{ padding: 22px 14px 60px; }
  .hbm-archive .hbm-meta{ width: 100%; }
}
