/* =========================================================
   SITE HEADER – shared by every page.
   Markup lives in each page's <header id="cx-site-header">.
   Everything is scoped to #cx-site-header and reset first,
   so the page stylesheets can't change how the header looks.
   ========================================================= */

#cx-site-header,
#cx-site-header *:not(svg):not(svg *) {
  all: unset;
  box-sizing: border-box;
}

#cx-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: block;
  background: #0B1220;
  font-family: "Inter", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

#cx-site-header .cx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
}

#cx-site-header a[href],
#cx-site-header button[type] { cursor: pointer; }

#cx-site-header a:focus-visible,
#cx-site-header button:focus-visible {
  outline: 3px solid #F2790C;
  outline-offset: 2px;
}

/* Logo */
#cx-site-header .csh-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  white-space: nowrap;
}
#cx-site-header .csh-logo-1 {
  display: block;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 25px;
  color: #F2790C;
  letter-spacing: 0.01em;
}
#cx-site-header .csh-logo-2 {
  display: block;
  margin-top: 1px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: #FFFFFF;
  letter-spacing: 0.18em;
}

/* Desktop menu */
#cx-site-header .csh-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
#cx-site-header .csh-nav a {
  display: block;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
#cx-site-header .csh-nav a:hover,
#cx-site-header .csh-nav a.csh-active {
  color: #F2790C;
  border-bottom-color: #F2790C;
}

/* Call button, RACV badge, menu button */
#cx-site-header .csh-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
#cx-site-header .csh-call {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 9px 18px;
  border-radius: 8px;
  background: #F2790C;
  color: #FFFFFF;
  font-family: "Poppins", sans-serif;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(242,121,12,0.3);
  transition: background .15s;
}
#cx-site-header .csh-call:hover { background: #D9690A; }
#cx-site-header .csh-call svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
#cx-site-header .csh-call-text { display: block; }
#cx-site-header .csh-call-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.65;
}
#cx-site-header .csh-call-num {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}
#cx-site-header .csh-racv {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 5px 12px;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
#cx-site-header .csh-racv img {
  display: block;
  width: auto;
  height: 42px;
}
#cx-site-header .csh-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
  color: #FFFFFF;
  font-size: 24px;
  line-height: 1;
}

/* Mobile menu panel (opened by the page script adding .cx-open) */
#cx-site-header .csh-panel {
  display: none;
  flex-direction: column;
  max-height: calc(100vh - var(--cx-hdr-h, 68px));
  overflow-y: auto;
  background: #0B1220;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 24px rgba(16,42,67,0.08);
}
#cx-site-header .csh-panel.cx-open { display: flex; }
#cx-site-header .csh-panel a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 600;
}
#cx-site-header .csh-panel a:last-child { border-bottom: none; }
#cx-site-header .csh-panel a:hover,
#cx-site-header .csh-panel a.csh-active { color: #F2790C; }

@media (max-width: 1140px) {
  #cx-site-header .csh-nav { gap: 18px; }
  #cx-site-header .csh-nav a { font-size: 12px; }
  #cx-site-header .csh-right { gap: 12px; }
}

@media (max-width: 980px) {
  #cx-site-header .csh-nav { display: none; }
  #cx-site-header .csh-toggle { display: flex; }
}

@media (min-width: 981px) {
  #cx-site-header .csh-panel.cx-open { display: none; }
}

@media (max-width: 620px) {
  #cx-site-header .cx-header-inner { gap: 8px; padding: 12px 16px; }
  #cx-site-header .csh-right { gap: 8px; }
  #cx-site-header .csh-logo-1 { font-size: 20px; }
  #cx-site-header .csh-logo-2 { font-size: 9px; }
  #cx-site-header .csh-call { gap: 6px; padding: 6px 8px; min-height: 44px; }
  #cx-site-header .csh-call-label { display: none; }
  #cx-site-header .csh-call-num { font-size: 13px; }
  #cx-site-header .csh-racv { min-height: 44px; padding: 3px 6px; }
  #cx-site-header .csh-racv img { height: 30px; }
  #cx-site-header .csh-toggle { padding: 2px; }
}

@media (max-width: 380px) {
  #cx-site-header .cx-header-inner { padding: 10px; }
  #cx-site-header .csh-call svg { display: none; }
  #cx-site-header .csh-call-num { font-size: 12px; }
  #cx-site-header .csh-logo-1 { font-size: 18px; }
  #cx-site-header .csh-logo-2 { font-size: 8px; letter-spacing: 0.12em; }
}
