/* The bhpbitumen.com header, shared by the minerals page (Ali, 2026-11-01: "use the same header on both
   mineral and bitumen website and make sure header texts are in line").
   A copy of the main site's header rules (site/assets/css/style.css: .header, .nav__drop, .lang-toggle),
   with the main site's variables scoped to .header so the minerals tokens are untouched.
   Differences from the main page, both forced by layout: position sticky (the minerals page has no film
   underneath, so the header keeps its own row), and the open phone menu keys off #main-nav.is-open,
   which app.js toggles. */
@font-face { font-family: "Vazirmatn"; src: url("/assets/fonts/Vazirmatn-Regular.subset.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/assets/fonts/Vazirmatn-Medium.subset.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/assets/fonts/Vazirmatn-SemiBold.subset.woff2") format("woff2"); font-weight: 600; font-display: swap; }

html { scroll-padding-block-start: 72px; }
/* the main site's slim glass scrollbar and stable gutter (style.css), on the page itself only (body resets
   the inherited colour for inner scrollers): the page is then exactly as wide as bhpbitumen.com, so the
   header lands on the same pixels on both sites instead of 2.5px off */
html { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; scrollbar-gutter: stable; }
body { scrollbar-color: auto; }
html::-webkit-scrollbar { width: 6px; height: 6px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 999px; border: 1px solid rgba(255,255,255,.10); background-clip: padding-box; }
html::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.38); }
html::-webkit-scrollbar-corner { background: transparent; }

.header {
  --green: #00926F; --green-strong: #006A51; --card: #FFFFFF; --ink: #1D1D1F; --text: #F5F5F7;
  --shadow-xl: 0 20px 60px rgba(16,18,17,.16); --ease: cubic-bezier(.25, .1, .25, 1);
  position: sticky; inset-inline: 0; top: 0; z-index: var(--bhp-z-header, 100);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
  padding-block: 10px;
  font-family: "Vazirmatn", "IRANSans", Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.8;
  color: var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.header *, .header *::before, .header *::after { box-sizing: border-box; }
.header a { text-decoration: none; transition: color .25s var(--ease); }
.header.scrolled { background: rgba(18,18,20,.86); }
.header .container { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.header__inner { display: flex; align-items: center; gap: 30px; }
.header__logo img { display: block; height: 36px; width: auto; max-width: none; }
.header__nav { display: flex; gap: 26px; margin-inline-start: 10px; }
.header__nav a { color: var(--text); font-size: .86rem; font-weight: 500; opacity: .96; text-shadow: 0 1px 10px rgba(0,0,0,.65); }
.header__nav a:hover { opacity: 1; color: #fff; }
.header__cta {
  margin-inline-start: auto;
  background: var(--green); color: #fff !important; font-weight: 600;
  padding: 7px 20px; border-radius: 980px; font-size: .86rem;
  transition: background .25s;
}
.header__cta:hover { background: var(--green-strong); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; margin-inline-start: auto; }
.nav-toggle svg { display: block; }

.nav__drop { position: relative; display: inline-block; }
.nav__menu {
  position: absolute; top: 100%; inset-inline-start: 50%;
  transform: translateX(50%) translateY(6px);
  display: flex; flex-direction: column; min-width: 190px;
  background: var(--card); border-radius: 16px; padding: 10px;
  box-shadow: var(--shadow-xl);
  opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 60;
}
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translateX(50%) translateY(0); }
.header .nav__menu a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--ink); font-size: .9rem; opacity: 1; text-shadow: none; }
.header .nav__menu a:hover { background: rgba(27,116,71,.08); color: var(--green-strong); }

.lang-toggle {
  margin-inline-start: 12px; padding: 6px 14px; border-radius: 980px; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .02em; line-height: 1.8;
  color: #fff; background: rgba(0,106,81,.55); border: 1px solid rgba(182,228,213,.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .25s var(--ease);
}
.lang-toggle:hover { background: var(--green); }

/* header texts on one line: the same fix as the main site (links no longer stretch to the dropdown's strut) */
@media (min-width: 901px) {
  .header__nav { align-items: center; }
  .nav__drop { display: inline-flex; align-items: center; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header__cta { margin-inline-start: 0; }
  .header { background: rgba(18,18,20,.9); }
  .header__nav { display: none; }
  .header__nav.is-open {
    display: flex; position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; gap: 2px; margin: 0;
    background: rgba(18,18,20,.97);
    padding: 14px 24px 22px; border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .header__nav.is-open a { padding: 10px 0; font-size: 1.05rem; }
  .lang-toggle { margin-inline-start: 0; }
}
/* phones held upright: the main site covers this width with its rotate-your-phone screen, the minerals page
   does not, so the row is tightened to fit 360px (portal button kept on one line, smaller gaps and padding) */
@media (max-width: 480px) {
  .header .container { padding-inline: 14px; }
  .header__inner { gap: 10px; }
  .header__cta { white-space: nowrap; padding: 7px 14px; }
  .lang-toggle { padding: 6px 10px; }
  .header__nav.is-open { padding-inline: 14px; }
}
@media (max-width: 340px) {
  .header__inner { gap: 6px; }
  .header__logo img { height: 30px; }
}

/* the inquiry button left the header with the shared design: it floats in once a product is selected */
.inquiry-pill { position: fixed; inset-block-end: 20px; inset-inline-start: 20px; z-index: var(--bhp-z-header, 100); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.inquiry-pill .selection-count { margin-inline-start: 8px; }
/* one header row down to the phone breakpoint (Ali, 2026-11-01): between ~905 and 935px the row was
   ~20px too wide and the portal button broke onto two lines */
@media (min-width: 901px) and (max-width: 960px) { .header__nav { gap: 20px; } }
