/*
Theme Name:   Hiblow Child
Theme URI:    https://www.hiblow.com.au/
Description:  Hiblow Australia child theme for Hello Elementor. Adds the Hiblow header, footer, pages and spare parts shop.
Author:       Hiblow Australia Pty Ltd
Template:     hello-elementor
Version:      1.9.4
Text Domain:  hiblow-child
*/

/* ---------- Base ---------- */
.hb-site, .hb-site * { box-sizing: border-box; }
.hb-site { font-family: 'Figtree', system-ui, sans-serif; color: #1C2733; }
.hb-wrap { max-width: 1280px; margin: 0 auto; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }
.hb-site a:focus-visible, .hb-site button:focus-visible, .hb-site input:focus-visible { outline: 2px solid #0B6FDB; outline-offset: 2px; }
.hb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar ---------- */
.hb-topbar { background: #102D62; color: #FFFFFF; font-size: 14px; }
.hb-topbar .hb-wrap { padding-top: 9px; padding-bottom: 9px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 28px; }
.hb-topbar strong { font-weight: 600; }
.hb-topbar a { color: #FFFFFF; font-weight: 600; text-decoration: none; }
.hb-topbar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.hb-header { background: #FFFFFF; border-bottom: 1px solid #E3E7EC; position: sticky; top: 0; z-index: 50; }
.admin-bar .hb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hb-header { top: 0; position: relative; } }
.hb-header-main { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.hb-logo { display: flex; align-items: center; flex: none; }
.hb-logo img { height: 54px; width: auto; display: block; }

.hb-search { flex: 1 1 320px; min-width: 0; display: flex; margin: 0; }
.hb-search input[type=search] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1.5px solid #C7D0DA; border-right: 0; border-radius: 6px 0 0 6px; font: inherit; font-size: 15px; color: #1C2733; background: #FFFFFF; }
.hb-search input[type=search]::placeholder { color: #7A8591; }
.hb-search button { width: 54px; height: 48px; border: 1.5px solid #0B6FDB; background: #0B6FDB; color: #FFFFFF; border-radius: 0 6px 6px 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: background-color .15s ease, border-color .15s ease; }
.hb-search button:hover { background: #102D62; border-color: #102D62; }

.hb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; flex: none; }
.hb-call { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.hb-call-text { display: flex; flex-direction: column; line-height: 1.25; }
.hb-call-label { font-size: 12px; color: #55606C; }
.hb-call-phone { font-weight: 700; font-size: 16px; color: #163B7D !important; text-decoration: none; }
.hb-call-sms { font-size: 12px; color: #55606C !important; text-decoration: none; }
.hb-trade { display: inline-flex; align-items: center; min-height: 44px; color: #163B7D !important; text-decoration: none; font-weight: 700; font-size: 15px; }
.hb-trade:hover { text-decoration: underline; }
.hb-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 6px; font-weight: 700; font-size: 15px; text-decoration: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.hb-btn-solid { border: 1.5px solid #163B7D; background: #163B7D; color: #FFFFFF !important; }
.hb-btn-solid:hover { background: #102D62; border-color: #102D62; }
.hb-btn-ghost { border: 1.5px solid #C7D0DA; background: #FFFFFF; color: #163B7D !important; }
.hb-btn-ghost:hover { background: #F1F5FA; border-color: #163B7D; }
.hb-btn-line { border: 1.5px solid #163B7D; background: #FFFFFF; color: #163B7D !important; }
.hb-btn-line:hover { background: #F1F5FA; }
.hb-count.hb-count-solid { background: #163B7D; color: #FFFFFF; }
.hb-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #FFFFFF; color: #163B7D; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.hb-count[hidden] { display: none; }

/* ---------- Main nav ---------- */
.hb-nav { border-top: 1px solid #EEF1F4; }
.hb-nav .hb-wrap { padding-left: clamp(8px, 3vw, 28px); padding-right: clamp(8px, 3vw, 28px); }
.hb-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.hb-nav li { margin: 0; position: relative; }
.hb-nav a { display: inline-flex; align-items: center; min-height: 50px; padding: 0 14px; text-decoration: none; font-size: 15px; font-weight: 600; color: #1C2733; border-bottom: 3px solid transparent; }
.hb-nav a:hover { color: #3F7D3A; }
.hb-nav .current-menu-item > a, .hb-nav .current_page_item > a { color: #163B7D; border-bottom-color: #163B7D; }
.hb-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #FFFFFF; border: 1px solid #E3E7EC; border-radius: 6px; box-shadow: 0 8px 24px rgba(16, 45, 98, .12); padding: 6px 0; flex-direction: column; z-index: 60; }
.hb-nav li:hover > .sub-menu, .hb-nav li:focus-within > .sub-menu { display: flex; }
.hb-nav .sub-menu a { min-height: 40px; width: 100%; border-bottom: 0; }
@media (max-width: 760px) {
  .hb-nav ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hb-nav ul::-webkit-scrollbar { display: none; }
  .hb-nav a { white-space: nowrap; }
  .hb-logo img { height: 44px; }
  .hb-actions { width: 100%; justify-content: space-between; }
}

/* ---------- Footer ---------- */
.hb-footer { background: #102D62; color: #C8D5E5; }
.hb-footer .hb-wrap { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 36px; }
.hb-footer-cols { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.hb-footer-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 16px; }
.hb-footer-brand > img { height: 50px; width: auto; align-self: flex-start; }
.hb-footer p { margin: 0; font-size: 15px; }
.hb-footer a { color: #FFFFFF; text-decoration: none; }
.hb-footer a:hover { text-decoration: underline; }
.hb-footer-phone { font-weight: 700; }
.hb-follow { display: flex; align-items: center; gap: 14px; padding-top: 6px; }
.hb-badge { width: 64px; height: 64px; border-radius: 32px; display: block; box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.hb-follow-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #C8DAF2; margin-bottom: 8px; }
.hb-social { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-social a { width: 44px; height: 44px; border-radius: 22px; border: 1.5px solid #3A6FBF; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s ease; }
.hb-social a:hover { background: rgba(79,163,232,.18); text-decoration: none; }
.hb-footer-col { flex: 0 1 200px; display: flex; flex-direction: column; gap: 2px; }
.hb-footer-col p.hb-col-title { margin: 0 0 6px; font-weight: 800; color: #FFFFFF; font-size: 16px; }
.hb-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hb-footer-col li { margin: 0; }
.hb-footer-col a { color: #C8D5E5; min-height: 34px; display: flex; align-items: center; }
.hb-footer-col a:hover { color: #FFFFFF; }
.hb-footer-legal { border-top: 1px solid #3A6FBF; padding-top: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #DCE8F7; }
.hb-footer-legal p { font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .hb-btn, .hb-search button, .hb-social a { transition: none; }
}

/* ---------- Legal pages ---------- */
.hb-legal { font-size: 16px; line-height: 1.65; color: #3A4552; }
.hb-legal h2 { font-family: 'Figtree', system-ui, sans-serif !important; font-size: 22px !important; font-weight: 800 !important; color: #163B7D !important; margin: 32px 0 10px !important; line-height: 1.25 !important; }
.hb-legal > h2:first-child { margin-top: 0 !important; }
.hb-legal p { margin: 0 0 14px !important; }
.hb-legal ol, .hb-legal ul { margin: 0 0 16px !important; padding-left: 24px !important; }
.hb-legal li { margin: 0 0 8px; }
.hb-legal li ol { margin: 8px 0 0 !important; list-style: lower-alpha; }
.hb-legal table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.hb-legal th, .hb-legal td { border: 1px solid #E3E7EC; padding: 10px 12px; text-align: left; }
.hb-legal th { background: #F2F6FC; color: #163B7D; }
.hb-legal a { color: #0B6FDB; }
.hb-legal .hb-legal-links { margin-top: 40px !important; padding-top: 18px; border-top: 1px solid #E3E7EC; font-size: 14px; color: #55606C; }
.hb-footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.hb-footer-legal .hb-footer-links a { color: #FFFFFF; }

/* "For trade" link, right end of the menu row */
.hb-nav .hb-wrap { display: flex; align-items: center; gap: 12px; }
.hb-nav .hb-wrap > ul, .hb-nav .hb-wrap > div { flex: 1 1 auto; min-width: 0; }
.hb-nav a.hb-nav-trade { flex: none; gap: 8px; min-height: 36px; padding: 0 14px; border: 1.5px solid #C7D0DA; border-radius: 999px; color: #163B7D; font-size: 14px; font-weight: 700; }
.hb-nav a.hb-nav-trade:hover { border-color: #163B7D; background: #F1F5FA; color: #163B7D; }

/* Live chat launcher (Tawk.to's own bubble is hidden) */
.hb-chat-launch { position: fixed; right: 20px; bottom: 20px; z-index: 9990; display: none; flex-direction: column; align-items: center; gap: 6px; text-decoration: none !important; font-family: 'Figtree', system-ui, sans-serif; }
html.hb-chat-live .hb-chat-launch { display: flex; }
html:not(.hb-chat-live) .hb-chat-link { display: none !important; }
html.hb-chat-open .hb-chat-launch, body.hb-locked .hb-chat-launch { display: none; }
.hb-chat-bubble { position: relative; width: 60px; height: 60px; border-radius: 50%; background: #163B7D; color: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(16, 45, 98, .32); transition: transform .2s ease, background-color .2s ease; }
.hb-chat-launch:hover .hb-chat-bubble, .hb-chat-launch:focus-visible .hb-chat-bubble { transform: translateY(-2px); background: #102D62; }
.hb-chat-dot { position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: #9AA5B1; border: 2.5px solid #FFFFFF; }
html.hb-chat-online .hb-chat-dot { background: #3FB950; }
.hb-chat-label { display: flex; flex-direction: column; align-items: center; padding: 5px 12px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 4px 14px rgba(16, 45, 98, .16); line-height: 1.2; text-align: center; }
.hb-chat-label strong { font-size: 13px; font-weight: 800; color: #163B7D; }
.hb-chat-label span { font-size: 11px; color: #55606C; white-space: nowrap; }
@media (max-width: 600px) { .hb-chat-launch { right: 14px; bottom: 14px; } .hb-chat-bubble { width: 54px; height: 54px; } .hb-chat-label span { display: none; } }
@media (prefers-reduced-motion: reduce) { .hb-chat-bubble { transition: none; } }
.hb-call-chat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #3F7D3A !important; text-decoration: none; }
.hb-call-chat:hover { text-decoration: underline; }
.hb-call-chat-dot { width: 7px; height: 7px; border-radius: 50%; background: #9AA5B1; }
html.hb-chat-online .hb-call-chat-dot { background: #3FB950; }
.hb-trade-short { display: none; }


/* ---------- Phone layout ---------- */
.hb-mob { display: none !important; }
.hb-ico-close { display: none; }
@media (max-width: 760px) {
  .hb-tb-hide { display: none; }
  .hb-topbar { font-size: 13px; }
  .hb-topbar .hb-wrap { padding-top: 6px; padding-bottom: 6px; gap: 2px 16px; }
  .hb-header-main { padding-top: 10px; padding-bottom: 10px; gap: 10px; flex-wrap: nowrap; }
  .hb-logo img { height: 38px; }
  .hb-header-main > .hb-search { display: none; order: 3; flex: 1 1 100%; }
  html.hb-search-open .hb-header-main { flex-wrap: wrap; }
  html.hb-search-open .hb-header-main > .hb-search { display: flex; }
  .hb-actions { width: auto; margin-left: auto; flex-wrap: nowrap; gap: 8px; justify-content: flex-end; }
  .hb-call { display: none; }
  .hb-mob { display: inline-flex !important; }
  .hb-actions .hb-btn { width: 44px; height: 44px; padding: 0; justify-content: center; position: relative; gap: 0; }
  .hb-btn-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hb-actions .hb-count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; font-size: 12px; box-shadow: 0 0 0 2px #FFFFFF; }
  .hb-actions .hb-btn-solid .hb-count { background: #3F7D3A; color: #FFFFFF; }
  .hb-nav { display: none; border-top: 1px solid #E3E7EC; max-height: calc(100vh - 120px); overflow-y: auto; }
  html.hb-menu-open .hb-nav { display: block; }
  html.hb-menu-open .hb-ico-open { display: none; }
  html.hb-menu-open .hb-ico-close { display: block; }
  .hb-nav .hb-wrap { display: block !important; padding: 6px 16px 16px; }
  .hb-nav ul { flex-direction: column; flex-wrap: nowrap; overflow: visible; gap: 0; }
  .hb-nav li { border-bottom: 1px solid #EEF1F4; }
  .hb-nav a { display: flex; min-height: 52px; padding: 0 4px; font-size: 17px; border-bottom: 0; white-space: normal; }
  .hb-nav .current-menu-item > a, .hb-nav .current_page_item > a { border-bottom: 0; color: #163B7D; font-weight: 800; }
  .hb-nav .sub-menu { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; }
  .hb-nav a.hb-nav-trade { margin-top: 14px; width: 100%; justify-content: center; min-height: 48px; font-size: 16px; }
  .hb-trade-long { display: inline !important; }
  .hb-trade-short { display: none !important; }
}
