/* Royal Bee header: top bar + main bar + mega menu + mobile drawer */
.wp-block-template-part:has(> .rbh), .rbh-spacer { margin-block: 0 !important; }
.rbh {
  --rbh-y: #FFCD00; --rbh-k: #111; --rbh-k2: #1C1C1C; --rbh-line: #2A2A2A;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform .35s ease, opacity .35s ease, box-shadow .3s ease;
  will-change: transform, opacity;
}
.admin-bar .rbh { top: 32px; }
@media (max-width: 782px) { .admin-bar .rbh { top: 46px; } }
@media (max-width: 600px) { .admin-bar .rbh { top: 0; } }

/* States toggled by header.js */
.rbh.is-hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.rbh.is-scrolled { box-shadow: 0 12px 30px -18px rgba(0,0,0,.6); }
.rbh.is-scrolled .rbh-main-in { min-height: 66px; }
.rbh.is-scrolled .rbh-brand img { width: 42px; height: 42px; }

.rbh-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--wp--preset--spacing--50, 1.5rem); box-sizing: border-box; }
.rbh a { text-decoration: none; color: inherit; }
.rbh svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.rbh ul { list-style: none; margin: 0; padding: 0; }

/* Top bar */
.rbh-top { background: var(--rbh-y); color: var(--rbh-k); font-size: .82rem; font-weight: 600; }
.rbh-top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.rbh-contact { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; }
.rbh-contact li, .rbh-contact a { display: inline-flex; align-items: center; gap: .45rem; }
.rbh-contact a:hover { text-decoration: underline; }
.rbh-social { display: flex; align-items: center; gap: .45rem; }
.rbh-social span { margin-right: .3rem; }
.rbh-social a { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--rbh-k); color: var(--rbh-y); transition: transform .2s, background .2s, color .2s; }
.rbh-social a:hover { background: #fff; color: var(--rbh-k); transform: translateY(-2px); }
.rbh-social svg { width: 15px; height: 15px; }

/* Main bar */
.rbh-main { background: var(--rbh-k); color: #fff; border-bottom: 1px solid var(--rbh-line); position: relative; }
.rbh-main-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 80px; transition: min-height .3s ease; }
.rbh-brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.rbh-brand img { width: 52px; height: 52px; object-fit: contain; transition: width .3s, height .3s; }
.rbh-brand span { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 1.15rem; white-space: nowrap; }
.rbh-brand:hover span { color: var(--rbh-y); }

.rbh-nav > ul { display: flex; align-items: center; gap: .3rem; }
.rbh-nav > ul > li > a { display: flex; align-items: center; gap: .3rem; padding: 1.75rem .85rem; font-weight: 600; font-size: .98rem; position: relative; transition: color .2s; }
.rbh-nav > ul > li > a::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 1.2rem; height: 2px; background: var(--rbh-y); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.rbh-nav > ul > li > a:hover, .rbh-nav > ul > li > a[aria-current], .rbh-has-mega.is-open > a { color: var(--rbh-y); }
.rbh-nav > ul > li > a:hover::after, .rbh-nav > ul > li > a[aria-current]::after, .rbh-has-mega.is-open > a::after { transform: scaleX(1); }
.rbh-has-mega > a svg { transition: transform .25s; }
.rbh-has-mega.is-open > a svg { transform: rotate(180deg); }

.rbh-actions { display: flex; align-items: center; gap: 1rem; flex: none; }
.rbh-call { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .95rem; }
.rbh-call > svg { width: 38px; height: 38px; padding: 9px; box-sizing: border-box; border-radius: 50%; background: var(--rbh-k2); border: 1px solid var(--rbh-line); color: var(--rbh-y); }
.rbh-call small { display: block; font-size: .7rem; font-weight: 600; color: #9a9a9a; text-transform: uppercase; letter-spacing: .06em; }
.rbh-call:hover { color: var(--rbh-y); }
.rbh-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--rbh-y); color: var(--rbh-k) !important; font-weight: 700; padding: .75rem 1.3rem; border-radius: 10px; transition: background .2s, color .2s; white-space: nowrap; }
.rbh-btn:hover { background: #fff; }

/* Mega menu */
.rbh-mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; color: var(--rbh-k); border-top: 3px solid var(--rbh-y);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.rbh-has-mega.is-open .rbh-mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.rbh-mega-in { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; padding-top: 2rem; padding-bottom: 2rem; }
.rbh-mega-eyebrow { margin: 0 0 1rem; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #5B5B5B; }
.rbh-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem 1.2rem; }
.rbh-card { display: flex; align-items: center; gap: .9rem; padding: .55rem; border-radius: 12px; transition: background .2s; }
.rbh-card:hover { background: #FFF6D1; }
.rbh-card-img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; flex: none; background: #F7F5EF; }
.rbh-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.rbh-card:hover .rbh-card-img img { transform: scale(1.08); }
.rbh-card-txt { display: flex; flex-direction: column; gap: .15rem; line-height: 1.3; }
.rbh-card-txt strong { font-size: .98rem; font-weight: 700; }
.rbh-card-txt small { font-size: .82rem; color: #5B5B5B; }
.rbh-mega-all { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem; font-weight: 700; border-bottom: 2px solid var(--rbh-y); padding-bottom: 2px; }
.rbh-mega-all:hover svg { transform: translateX(3px); }
.rbh-mega-all svg { transition: transform .2s; }

.rbh-promo { position: relative; border-radius: 16px; overflow: hidden; background-size: cover; background-position: center; min-height: 340px; display: flex; color: #fff; }
.rbh-promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,17,.15) 0%, rgba(17,17,17,.92) 70%); }
.rbh-promo-in { position: relative; margin-top: auto; padding: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.rbh-badge { background: var(--rbh-y); color: var(--rbh-k); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 6px; }
.rbh-promo-title { margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.rbh-promo-sub { margin: 0 0 .4rem; font-size: .88rem; color: #ddd; line-height: 1.5; }
.rbh-promo-tel { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; margin-top: .2rem; }
.rbh-promo-tel:hover { color: var(--rbh-y); }

/* Burger + drawer */
.rbh-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--rbh-line); background: var(--rbh-k2); border-radius: 10px; cursor: pointer; padding: 0 11px; flex-direction: column; justify-content: center; gap: 5px; }
.rbh-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.rbh-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rbh-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rbh-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.rbh-drawer { background: var(--rbh-k); color: #fff; padding: .5rem var(--wp--preset--spacing--50, 1.5rem) 1.5rem; max-height: calc(100vh - 110px); overflow-y: auto; border-bottom: 3px solid var(--rbh-y); }
.rbh-drawer[hidden] { display: none; }
.rbh-drawer nav > ul > li { border-bottom: 1px solid var(--rbh-line); }
.rbh-drawer nav > ul > li > a, .rbh-d-sub > button { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 1rem 0; font: inherit; font-weight: 700; font-size: 1.05rem; color: inherit; background: none; border: 0; cursor: pointer; }
.rbh-d-sub > button svg { transition: transform .25s; width: 1.3em; height: 1.3em; }
.rbh-d-sub > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.rbh-d-cards { display: none; padding-bottom: 1rem !important; }
.rbh-d-sub > button[aria-expanded="true"] + .rbh-d-cards { display: grid; gap: .3rem; }
.rbh-drawer .rbh-card:hover { background: var(--rbh-k2); }
.rbh-drawer .rbh-card-img { width: 52px; height: 52px; }
.rbh-drawer .rbh-card-txt small { color: #9a9a9a; }
.rbh-drawer .rbh-mega-all { margin-top: .6rem; }
.rbh-drawer > .rbh-btn { width: 100%; box-sizing: border-box; margin-top: 1.2rem; padding: .95rem; }
.rbh-d-tel { display: flex; justify-content: center; align-items: center; gap: .5rem; margin: 1rem 0; font-weight: 700; }
.rbh-drawer .rbh-social { justify-content: center; }

/* Responsive */
@media (max-width: 1180px) { .rbh-call { display: none; } }
@media (max-width: 1100px) { .rbh-hide-md { display: none !important; } }
@media (max-width: 1000px) {
  .rbh-nav, .rbh-cta { display: none; }
  .rbh-burger { display: flex; }
  .rbh-main-in { min-height: 70px; }
}
@media (min-width: 1001px) { .rbh-drawer { display: none !important; } }
@media (max-width: 700px) {
  .rbh-hide-sm { display: none !important; }
  .rbh-contact li:nth-child(2) { display: none; }
  .rbh-top-in { min-height: 36px; }
  .rbh-brand span { font-size: 1rem; }
  .rbh-brand img { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .rbh, .rbh * { transition: none !important; }
}

/* WhatsApp button in mega menu + drawer */
.rbh-wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: #25D366; color: #fff !important; font-weight: 700; padding: .7rem 1.2rem; border-radius: 10px; transition: background .2s; }
.rbh-wa-btn:hover { background: #1ebe5a; }
.rbh-wa-btn svg { width: 18px; height: 18px; }
.rbh-drawer > .rbh-wa-btn { width: 100%; box-sizing: border-box; margin-top: .7rem; padding: .95rem; }
