/* ==========================================================================
   IBH CHILD — HEADER.CSS  v4 (White Glassmorphism)
   Redesigned to match the attached mockup image exactly:
   • Header: pure white/glass card — logo left, [Search][Menu] right
   • Buttons: white background + blue border + blue icon (NOT glass-on-blue)
   • Drawer: gradient blue header strip, white/light body (unchanged)
   • Search bar: white/light when expanded
   All layout fixes from v3 are preserved:
   • justify-content:space-between on .ibh-header-inner (logo left, btns right)
   • flex-shrink:1 + min-width:0 on .ibh-hdr-logo (large logo never clips btns)
   • .header-image class matches GP's native logo-width customizer target
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MAIN HEADER — sticky, WHITE GLASSMORPHISM
   Crisp white card with subtle blue shadow — clearly distinct from Hero's
   deep blue gradient below it, matching the mockup exactly.
   -------------------------------------------------------------------------- */
.ibh-header {
background: rgba(255,255,255,.97);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
position: sticky;
top: 0;
overflow: hidden;
box-shadow:0 1px 0 rgba(37,99,235,.10),
0 4px 24px rgba(37,99,235,.12);
border-bottom: 1.5px solid rgba(37,99,235,.12);
width: 100%;
z-index: 1000;
padding-top: 5px !important;
padding-bottom: 4px !important;
font-family: var(--ibh-font) !important;
}

/* Subtle decorative orbs — very soft on white background */
.ibh-header::before {
content: '';
position: absolute;
top: -80px; right: -80px;
width: 260px; height: 260px;
border-radius: 50%;
background: radial-gradient(circle, rgba(37,99,235,.06) 0%, transparent 70%);
pointer-events: none;
z-index: 0;
}
.ibh-header::after {
content: '';
position: absolute;
bottom: -80px; left: -60px;
width: 240px; height: 240px;
border-radius: 50%;
background: radial-gradient(circle, rgba(59,130,246,.05) 0%, transparent 70%);
pointer-events: none;
z-index: 0;
}

/* Inner flex row — logo LEFT, [search][menu] RIGHT */
.ibh-header-inner {
position: relative;
z-index: 1;
max-width: 1200px;
margin: 0 auto;
padding: 0 16px;
height: 68px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
/* No ::after pseudo-line on white bg (was a white glow on a blue bg — irrelevant now) */
.ibh-header-inner::after { display: none; }

/* ── Logo — LEFT, shrinks to protect the action buttons on small screens ── */
.ibh-hdr-logo {
display: inline-flex;
align-items: center;
text-decoration: none;
flex-shrink: 1;    /* MUST stay 1 — see "large logo clips buttons" fix history */
min-width: 0;
overflow: hidden;
}

/* .header-image class matches GP's native logo-width Customizer target:
   GP injects CSS like ".site-header .header-image { width: Npx }" — by
   sharing this class name the admin's Customizer control actually works.
   Width-based sizing (not height-lock) so the GP control can scale it. */
.ibh-logo-img,
.header-image {
width: 255px;
max-width: 100%;
height: auto;
max-height: 51px;
object-fit: contain;
object-position: left center;
display: block;
}

/* Text fallback when no custom logo is uploaded */
.ibh-hdr-logo-text {
display: flex;
flex-direction: column;
line-height: 1.25;
}
.ibh-hdr-logo-text strong {
font-size: 18px;
font-weight: 800;
color: #0f172a;               /* dark on white — readable */
font-family: var(--ibh-font) !important;
letter-spacing: -.01em;
}
.ibh-hdr-logo-text span {
font-size: 11px;
color: #64748b;               /* muted slate on white */
font-family: var(--ibh-font) !important;
}

/* ── Desktop nav (visible ≥ 769px only) ── */
.ibh-hdr-nav {
flex: 1;
display: flex;
align-items: center;
justify-content: flex-end;
}
.ibh-hdr-nav ul {
list-style: none; margin: 0; padding: 0;
display: flex; align-items: center; gap: 4px;
}
.ibh-hdr-nav ul li a {
display: block;
padding: 8px 16px;
font-size: 13.5px; font-weight: 600;
color: #1e40af;               /* dark blue on white header */
text-decoration: none;
border-radius: 50px;
font-family: var(--ibh-font) !important;
border: 1px solid transparent;
transition: background .15s, color .15s, border-color .15s;
}
.ibh-hdr-nav ul li a:hover,
.ibh-hdr-nav ul li.current-menu-item > a {
background: rgba(37,99,235,.08);
color: #1d4ed8;
border-color: rgba(37,99,235,.18);
}
/* ==================================   Desktop dropdown — white card on white header ================================== */
.ibh-hdr-nav ul li { position: relative; }
.ibh-hdr-nav ul li ul {
display: none;
position: absolute; top: calc(100% + 8px); left: 0;
min-width: 200px;
background: #fff;
border: 1px solid rgba(37,99,235,.14);
border-radius: 16px;
box-shadow: 0 16px 44px rgba(8,40,110,.16);
padding: 8px;
z-index: 999;
flex-direction: column; gap: 0;
}
.ibh-hdr-nav ul li:hover > ul { display: flex; }
.ibh-hdr-nav ul li ul li a {
color: #1e40af;
border-radius: 10px;
padding: 10px 14px; font-size: 13px;
background: transparent; border-color: transparent;
}
.ibh-hdr-nav ul li ul li a:hover { background: rgba(37,99,235,.07); color: #1d4ed8; }

/* ===================================== Action buttons (Search + Menu) ── RIGHT side
   From the mockup: white background, blue border ====================================*/
.ibh-hdr-actions {
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
}
.ibh-glass-btn {
width: 39px;
height: 39px;
min-width: 39px;
display: inline-flex;
align-items: center;
justify-content: center;
background: #fff;
border: 2px solid rgba(37,99,235,.28);
border-radius: 14px;
color: #1d4ed8;
cursor: pointer;
box-shadow: 0 2px 8px rgba(37,99,235,.10);
transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
padding: 0;
line-height: 1;
}
.ibh-glass-btn:hover {
background: rgba(37,99,235,.06);
border-color: rgba(37,99,235,.55);
transform: scale(1.05);
box-shadow: 0 4px 14px rgba(37,99,235,.20);
}
.ibh-glass-btn svg {
width: 19px;
height: 19px;
display: block;
}

/* ================================      Hamburger hidden on desktop ================================== */
.ibh-glass-btn--menu { display: none; }

/* ==== Mobile breakpoint 768px === */
@media (max-width: 768px) {
.ibh-glass-btn--menu { display: inline-flex; }
.ibh-hdr-nav { display: none; }
.ibh-header-inner { padding: 0 12px; gap: 10px; height: 60px; }
/* Logo: sensible default size on narrow screens */
.ibh-logo-img,
.header-image { width: 256px; max-height: 51px; }
/* Buttons: slightly smaller on mobile */
.ibh-glass-btn { width: 39px; height: 39px; min-width: 39px; border-radius: 12px; border-width: 1.5px; }
.ibh-glass-btn svg { width: 19px; height: 19px; }
/* Text fallback sizing */
.ibh-hdr-logo-text strong { font-size: 15px; }
.ibh-hdr-logo-text span { font-size: 9.5px; }
}

/* --------------------------------------------------------------------------
   2. SLIDE-DOWN SEARCH BAR — white/light when expanded (matches white header)
   -------------------------------------------------------------------------- */
.ibh-search-bar {
position: relative;
z-index: 1;
max-height: 0;
overflow: hidden;
transition: max-height .30s ease, padding .30s ease;
background: rgba(248,250,255,.98);
border-top: 0;
}
.ibh-search-bar.is-open {
max-height: 76px;
padding: 10px 16px;
border-top: 1px solid rgba(37,99,235,.10);
box-shadow: 0 4px 16px rgba(37,99,235,.08);
}
/* Search form inside the bar */
.ibh-search-bar .ibh-search-form,
.ibh-search-bar #searchform {
max-width: 600px;
margin: 0 auto;
background: #fff;
border: 1.5px solid rgba(37,99,235,.25);
border-radius: 50px;
padding: 5px 5px 5px 18px;
display: flex;
align-items: center;
box-shadow: 0 2px 10px rgba(37,99,235,.10);
}
.ibh-search-bar .ibh-search-form .search-field,
.ibh-search-bar #searchform input[type="search"],
.ibh-search-bar #searchform input[type="text"] {
flex: 1;
background: transparent !important;
border: none !important;
outline: none !important;
color: #0f172a !important;         /* dark text on white */
font-size: 14px !important;
font-family: var(--ibh-font) !important;
box-shadow: none !important;
}
.ibh-search-bar .ibh-search-form .search-field::placeholder,
.ibh-search-bar #searchform input::placeholder { color: #94a3b8 !important; }
.ibh-search-bar .ibh-search-form .search-submit,
.ibh-search-bar #searchform input[type="submit"],
.ibh-search-bar button[type="submit"] {
background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
border: none !important;
border-radius: 50px !important;
color: #fff !important;
font-weight: 700 !important;
padding: 8px 20px !important;
cursor: pointer !important;
font-family: var(--ibh-font) !important;
font-size: 13px !important;
-webkit-appearance: none !important;
box-shadow: 0 3px 10px rgba(37,99,235,.35) !important;
}
.ibh-search-bar .ibh-search-form .search-submit:hover {
opacity: .9 !important;
}

/* --------------------------------------------------------------------------
   3. OVERLAY — behind mobile drawer (unchanged)
   -------------------------------------------------------------------------- */
.ibh-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,.52);
z-index: 9000;
backdrop-filter: blur(2px);
-webkit-backdrop-filter: blur(2px);
opacity: 0;
transition: opacity .28s ease;
}
.ibh-overlay.is-visible {
display: block;
opacity: 1;
}

/* --------------------------------------------------------------------------
   4. MOBILE DRAWER NAV
   Header strip: brand gradient blue (stays — drawer is its own context)
   Body: light/white (unchanged from v3)
   -------------------------------------------------------------------------- */
.ibh-mobile-nav {
position: fixed;
top: 0; left: 0;
width: min(85vw, 360px);
height: 100vh;
z-index: 9999;
display: flex;
flex-direction: column;
transform: translateX(-100%);
transition: transform .30s cubic-bezier(.4,0,.2,1);
overflow: hidden;
box-shadow: 4px 0 32px rgba(8,61,138,.35);
}
.ibh-mobile-nav.is-open { transform: translateX(0); }

/* Drawer header strip (gradient blue — same as before) */
.ibh-mnav-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 18px;
background: linear-gradient(135deg, #1e6fd9 0%, #083d8a 100%);
flex-shrink: 0;
}
.ibh-mnav-title {
font-size: 16px; font-weight: 800;
color: #fff; font-family: 'Open Sans', sans-serif;
}
/* Close button — white circle, high contrast */
.ibh-mnav-close {
width: 38px; height: 38px;
display: flex; align-items: center; justify-content: center;
background: #fff;
border: none; border-radius: 50%;
color: #0a4fa8;
cursor: pointer; flex-shrink: 0;
box-shadow: 0 3px 10px rgba(0,0,0,.25);
transition: background .15s, transform .15s;
font-size: 25px;
font-weight: 700;
line-height: 1;
position: relative;
right: -8px;
z-index: 10;
}
.ibh-mnav-close:hover { background: #eaf1ff; transform: scale(1.08); }

/* Drawer body — light white */
.ibh-mnav-body {
flex: 0 1 auto;
background: #f0f4fd;
overflow-y: auto; overflow-x: hidden;
}
.ibh-mnav-body ul { list-style: none; margin: 0; padding: 0; }
.ibh-mnav-body ul li { border-bottom: 1px solid rgba(0,0,0,.06); }
.ibh-mnav-body ul li:last-child { border-bottom: none; }.ibh-mnav-body ul li a {
display: flex; align-items: center; gap: 8px !important;
padding: 12px 20px !important;
font-size: 15px; font-weight: 600;
color: #1e293b; text-decoration: none;
font-family: var(--ibh-font) !important;
transition: background .15s, color .15s, padding-left .15s;
}
.ibh-mnav-body ul li a::before {
content: '';
display: inline-block;
width: 6px; height: 6px;
border-radius: 50%;
background: #0a4fa8; flex-shrink: 0;
transition: transform .15s;
}
.ibh-mnav-body ul li a:hover { background: #e8effc; color: #0a4fa8; padding-left: 26px; }
.ibh-mnav-body ul li a:hover::before { transform: scale(1.5); }
.ibh-mnav-body ul li.current-menu-item > a { color: #0a4fa8; background: #e8effc; }
/* Sub-menu */
.ibh-mnav-body ul ul { background: #fff; border-top: 1px solid rgba(0,0,0,.06); }
.ibh-mnav-body ul ul li a { padding-left: 36px; font-size: 14px; font-weight: 500; }
.ibh-mnav-body ul ul li a::before { background: #93c5fd; width: 5px; height: 5px; }

/* Drawer footer (social icons) */
.ibh-mnav-foot {
background: #fff;
border-top: 1px solid rgba(0,0,0,.08);
padding: 6px 16px 40px 16px; flex-shrink: 0;
}
.ibh-mnav-foot-label {
font-size: 11px; font-weight: 700; text-transform: uppercase;
letter-spacing: .08em; color: #64748b; margin: 0 0 10px 0;
}
.ibh-mnav-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.ibh-mnav-socials a {
display: inline-flex; align-items: center; justify-content: center;
width: 34px; height: 34px; border-radius: 9px;
background: #f0f4fd;
border: 1px solid rgba(10,79,168,.15);
color: #0a4fa8; text-decoration: none;
transition: background .15s, color .15s, transform .15s;
}
.ibh-mnav-socials a:hover { background: #0a4fa8; color: #fff; transform: translateY(-2px); }
.ibh-mnav-socials svg { width: 14px; height: 14px; fill: currentColor; display: block; }

/* --------------------------------------------------------------------------
   5. BODY SCROLL LOCK while drawer is open
   -------------------------------------------------------------------------- */
body.ibh-drawer-open { overflow: hidden; }
