/* ============================================================
   C&S AIR PRODUCTS — SITE HEADER FOR THE LIST APP
   Copied/adapted from /css/styles.css (top bar, header, nav,
   hamburger, mobile menu). Every selector is prefixed "sc-" and
   scoped under .sc-chrome so it cannot collide with Bootstrap or
   the Angular app's own styles.
   Mobile-first: <768px base, >=768px tablet, >=1200px desktop.
   ============================================================ */

.sc-chrome {
  --sc-navy: #0b5388;
  --sc-navy-dark: rgb(0,33,68);
  --sc-teal: #00baf2;
  --sc-white: #ffffff;
  --sc-light-gray: rgb(183,186,192);
  --sc-text: #1c2b4a;
  --sc-border: #dde2ec;
  --sc-font-display: 'Roboto Condensed','Helvetica Condensed', Helvetica, Arial, sans-serif;
  --sc-font-body: Helvetica, Roboto, Arial, sans-serif;
  --sc-topbar-h: 40px;
  --sc-header-h: 92px;
  --sc-pad: 16px;
  --sc-transition: 200ms ease;
  --sc-radius-sm: 4px;

  font-family: var(--sc-font-body);
  color: var(--sc-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Neutralise Bootstrap reboot inside the site chrome */
.sc-chrome *, .sc-chrome *::before, .sc-chrome *::after { box-sizing: border-box; }
.sc-chrome a { color: inherit; text-decoration: none; }
.sc-chrome ul { list-style: none; margin: 0; padding: 0; }
.sc-chrome img { display: block; max-width: 100%; height: auto; }
.sc-chrome button { font-family: inherit; }

.sc-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--sc-pad);
}

/* ---------- TOP BAR ---------- */
.sc-topbar {
  background: var(--sc-white);
  border-bottom: 1px solid var(--sc-border);
  height: var(--sc-topbar-h);
}
.sc-topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sc-topbar__end { display: flex; }
.sc-logo { display: none; flex-shrink: 0; padding: 6px 10px; }
.sc-logo--mobile { display: block; }
.sc-topbar__rep-login {
  display: flex;
  margin-left: 1em;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sc-text);
  white-space: nowrap;
  transition: color var(--sc-transition);
}
.sc-topbar__rep-login:hover { color: var(--sc-navy); }

/* ---------- HEADER ---------- */
.sc-header {
  background: var(--sc-navy);
  border-bottom: 1px solid var(--sc-border);
  height: var(--sc-header-h);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.sc-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.sc-nav { display: none; flex: 1; height: 100%; }
.sc-nav__list { display: flex; align-items: center; height: 100%; gap: 0; }
.sc-nav__item { height: 100%; }
.sc-nav__item a {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-light-gray);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--sc-transition), border-color var(--sc-transition);
}
.sc-nav__item a:hover,
.sc-nav__item--active a {
  color: var(--sc-white);
  border-color: var(--sc-white);
}

.sc-social { display: none; align-items: center; gap: 14px; flex-shrink: 0; }
.sc-social__find-us {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
}
.sc-social a { display: flex; align-items: center; }

/* ---------- HAMBURGER (mobile only) ---------- */
.sc-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  border-radius: var(--sc-radius-sm);
}
.sc-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--sc-white);
  border-radius: 2px;
  transition: transform var(--sc-transition), opacity var(--sc-transition);
}
.sc-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sc-hamburger.is-open span:nth-child(2) { opacity: 0; }
.sc-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- MOBILE OVERLAY ----------
   The site header is NOT sticky here (the LIST bar is), so the overlay's
   top offset is set by the inline script when the menu opens. */
.sc-mobile-overlay {
  display: block;
  position: fixed;
  inset: 0;
  top: var(--sc-overlay-top, 132px);
  background: var(--sc-white);
  z-index: 1040;
  padding: 24px var(--sc-pad);
  overflow-y: auto;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 280ms cubic-bezier(.4,0,.2,1), visibility 0s linear 280ms;
}
.sc-mobile-overlay.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 280ms cubic-bezier(.4,0,.2,1);
}
.sc-mobile-nav__list { display: flex; flex-direction: column; }
.sc-mobile-nav__list li a {
  display: block;
  padding: 16px 0;
  font-family: var(--sc-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--sc-text);
  border-bottom: 1px solid var(--sc-border);
  transition: color var(--sc-transition);
}
.sc-mobile-nav__list li a:hover,
.sc-mobile-nav__list li.sc-active a { color: var(--sc-navy); }
.sc-mobile-nav__divider { margin-top: 16px; }

/* ============================================================
   TABLET AND UP (>= 768px)
   ============================================================ */
@media (min-width: 768px) {
  .sc-chrome { --sc-pad: 32px; --sc-topbar-h: 96px; --sc-header-h: 60px; }
  .sc-logo { display: block; }
  .sc-logo--mobile { display: none; }
  .sc-nav { display: block; }
  .sc-social { display: flex; }
  .sc-social__find-us { display: none; }
  .sc-hamburger { display: none; }
  .sc-mobile-overlay { display: none; }
}

/* ============================================================
   DESKTOP (>= 1200px)
   ============================================================ */
@media (min-width: 1200px) {
  .sc-chrome { --sc-pad: clamp(16px, 4vw, 64px); }
  .sc-nav__list { gap: 6px; }
  .sc-nav__item a { padding: 0 16px; font-size: 16px; }
  .sc-social__find-us { display: inline; }
}
