/*
 * HELEOS B2B/B2G portal theme.
 * Shared corporate layer loaded after legacy style.css and before page styles.
 * Keeps the public site informational: manufacturer, documents, service and partnership.
 */
:root {
  --shell: min(1280px, calc(100% - 64px));
  --portal-blue: #2b3787;
  --portal-blue-deep: #10244f;
  --portal-blue-ink: #172653;
  --portal-orange: #ef7d00;
  --portal-line: #e1e6ef;
  --portal-soft: #f6f8fc;
  --portal-muted: #667087;
}

/* Shared scale */
body { font-size: 16px; }
.breadcrumbs { padding-top: 34px; font-size: 13px; }
.page-hero { padding: 24px 0 56px; }
.page-hero h1 { max-width: 1040px; font-size: clamp(48px, 4.5vw, 68px); line-height: 1.01; font-weight: 720; }
.page-hero p:not(.eyebrow) { max-width: 850px; margin-top: 20px; font-size: 18px; line-height: 1.58; }
.eyebrow { font-size: 12px; letter-spacing: .09em; }
.section { padding: 84px 0; }
.section-head { margin-bottom: 40px; }
.section-head h1, .section-head h2 { font-size: clamp(40px, 3.8vw, 54px); line-height: 1.04; font-weight: 700; }
.section-head p { font-size: 16px; line-height: 1.62; }
.content-grid { gap: 20px; }
.content-card { min-height: 248px; padding: 30px; border-radius: 14px; }
.content-card h2, .content-card h3 { font-size: 23px; line-height: 1.18; font-weight: 700; }
.content-card p { font-size: 15px; line-height: 1.58; }
.content-card .number { margin-bottom: 30px; font-size: 12px; }
.feature-split { gap: 48px; }
.form-card { padding: 34px; }
.document-row { padding: 24px 26px; }
.document-row h3 { font-size: 21px; }
.document-row p { font-size: 14px; line-height: 1.55; }

/* Header */
.portal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0 0;
  background: rgba(246,248,252,.97);
  color: var(--portal-blue-ink);
  box-shadow: 0 10px 24px rgba(16,36,79,.04);
  backdrop-filter: blur(12px);
}
.portal-header-card {
  overflow: hidden;
  border: 1px solid #e1e6ef;
  border-radius: 18px 18px 12px 12px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(18,33,78,.10);
}
.portal-header-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 82px;
  padding: 0 22px;
  border-bottom: 1px solid #e8ebf2;
}
.portal-brand-block {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 22px;
}
.portal-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.portal-brand .brand-logo { width: 190px; height: auto; }
.portal-header-context {
  position: relative;
  max-width: 250px;
  padding-left: 22px;
  color: #34415f;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
  white-space: nowrap;
}
.portal-header-context::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 34px;
  background: #d9deea;
  transform: translateY(-50%);
}
.portal-header-top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}
.portal-header-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 4px;
}
.portal-header-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--portal-blue-ink);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  transition: color .16s ease;
}
.portal-header-contacts a:hover,
.portal-header-contacts a:focus-visible { color: var(--portal-blue); }
.portal-header-contacts svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-search-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d9deea;
  border-radius: 9px;
  background: #fff;
  color: var(--portal-blue-ink);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.portal-search-toggle:hover,
.portal-search-toggle:focus-visible,
.portal-header.is-searching .portal-search-toggle {
  border-color: #b9c2dc;
  background: #f5f7fc;
  color: var(--portal-blue);
}
.portal-search-toggle:active { transform: scale(.96); }
.portal-search-toggle svg,
.portal-login svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-request {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 9px;
  background: var(--portal-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 7px 16px rgba(239,125,0,.18);
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.portal-request::after { content: "→"; font-size: 17px; line-height: 1; font-weight: 500; }
.portal-request:hover,
.portal-request:focus-visible { background: #db7200; color: #fff; box-shadow: 0 9px 20px rgba(239,125,0,.22); }
.portal-request:active { transform: translateY(1px); }
.portal-header-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 58px;
  padding: 0 22px;
}
.portal-header-center {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 42px;
}
.portal-primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  gap: clamp(28px, 3.2vw, 52px);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.portal-primary-nav a {
  position: relative;
  color: var(--portal-blue-ink);
  font-size: 13px;
  line-height: 1;
  font-weight: 760;
  white-space: nowrap;
}
.portal-primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 2px;
  border-radius: 2px;
  background: var(--portal-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}
.portal-primary-nav a:hover,
.portal-primary-nav a.is-active { color: var(--portal-blue); }
.portal-primary-nav a:hover::after,
.portal-primary-nav a.is-active::after { transform: scaleX(1); }
.portal-header-search {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  width: 100%;
  height: 42px;
  overflow: hidden;
  border: 1px solid #cfd6e6;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(18,33,78,.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.portal-header-search:focus-within { border-color: #aab6d4; box-shadow: 0 7px 20px rgba(18,33,78,.11); }
.portal-header-search input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 15px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--portal-blue-ink);
  font-size: 13px;
}
.portal-header-search input::placeholder { color: #8790a6; }
.portal-header-search .portal-header-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  margin: 4px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--portal-blue);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.portal-header-search .portal-header-search-submit:hover,
.portal-header-search .portal-header-search-submit:focus-visible { background: #202d78; }
.portal-header-search .portal-header-search-submit:active { transform: translateY(1px); }
.portal-header.is-searching .portal-primary-nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
}
.portal-header.is-searching .portal-header-search {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.portal-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 172px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #aeb9d7;
  border-radius: 8px;
  background: #fff;
  color: var(--portal-blue);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.portal-login:hover,
.portal-login:focus-visible { border-color: var(--portal-blue); background: #f5f7fc; color: #202d78; }
.portal-login:active { transform: translateY(1px); }
.portal-menu-trigger { display: none; }

/* Mobile drawer belongs to the blue portal header, not the old white store drawer. */
.mobile-nav-panel { background: var(--portal-blue); color: #fff; }
.mobile-nav-head { border-bottom: 1px solid rgba(255,255,255,.14); }
.mobile-nav-head img { width: 166px; }
.mobile-nav-head button { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.08); color: #fff; }
.mobile-search input { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.09); color: #fff; }
.mobile-search input::placeholder { color: rgba(255,255,255,.67); }
.mobile-search input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.1); }
.mobile-nav nav a { min-height: 54px; border-top-color: rgba(255,255,255,.14); color: #fff; font-size: 16px; }
.mobile-nav nav a span { color: rgba(255,255,255,.72); }
.mobile-contact a { color: #fff; }

/* Footer */
.portal-footer { padding: 70px 0 28px; background: var(--portal-blue); }
.portal-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 44px; }
.portal-footer-grid > div:not(.portal-footer-brand) { display: grid; align-content: start; gap: 11px; }
.portal-footer-brand img { width: 174px; }
.portal-footer-brand p { max-width: 390px; margin: 22px 0 18px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.62; }
.portal-footer-login { color: #fff; font-size: 13px; font-weight: 800; }
.portal-footer-grid h3 { margin: 0 0 11px; color: #fff; font-size: 14px; font-weight: 800; }
.portal-footer-grid a,
.portal-footer-grid span { color: rgba(255,255,255,.73); font-size: 13px; line-height: 1.45; }
.portal-footer-grid a:hover { color: #fff; }
.portal-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.56); font-size: 11px; }
.portal-footer-bottom a { color: rgba(255,255,255,.68); }

/* Partner information strip */
.partner-access-card { padding: 30px 34px; }
.partner-access-card h2 { font-size: clamp(28px, 2.2vw, 38px); }
.partner-access-card p { font-size: 15px; line-height: 1.55; }

@media (max-width: 1360px) {
  :root { --shell: min(1280px, calc(100% - 48px)); }
  .portal-header-top { gap: 20px; padding-inline: 18px; }
  .portal-brand .brand-logo { width: 172px; }
  .portal-header-context { max-width: 220px; padding-left: 18px; font-size: 11px; }
  .portal-header-contacts { gap: 14px; }
  .portal-header-contacts a { font-size: 11px; }
  .portal-header-lower { padding-inline: 18px; }
  .portal-primary-nav { gap: clamp(22px, 2.5vw, 38px); }
  .portal-footer-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
  .portal-footer-grid > div:last-child { grid-column: 2 / 5; display: flex; flex-wrap: wrap; gap: 10px 22px; }
  .portal-footer-grid > div:last-child h3 { width: 100%; }
}

@media (max-width: 1220px) {
  :root { --shell: min(100% - 48px, 1120px); }
}

@media (max-width: 1080px) {
  :root { --shell: min(100% - 48px, 1120px); }
  .portal-header { padding-top: 8px; }
  .portal-header-card { border-radius: 14px; }
  .portal-header-top {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 72px;
    padding-inline: 14px;
    border-bottom: 0;
  }
  .portal-menu-trigger {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #d7ddea;
    border-radius: 8px;
    background: #fff;
    color: var(--portal-blue);
  }
  .portal-menu-trigger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
  .portal-brand-block { gap: 0; }
  .portal-brand .brand-logo { width: 158px; }
  .portal-header-context,
  .portal-header-contacts,
  .portal-search-toggle,
  .portal-header-lower { display: none; }
  .portal-header-top-right { gap: 0; }
  .portal-request { min-height: 40px; padding-inline: 14px; }
  .portal-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-footer-brand { grid-column: 1 / -1; }
  .portal-footer-grid > div:last-child { grid-column: auto; display: grid; }
  .page-hero h1 { font-size: clamp(44px, 6vw, 58px); }
}

@media (max-width: 980px) {
  :root { --shell: min(100% - 40px, 900px); }
}

@media (max-width: 700px) {
  :root { --shell: calc(100% - 24px); }
  .portal-header { padding-top: 6px; }
  .portal-header-card { border-radius: 12px; }
  .portal-header-top { min-height: 66px; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 9px; padding-inline: 10px; }
  .portal-menu-trigger { width: 40px; height: 40px; }
  .portal-brand .brand-logo { width: 132px; }
  .portal-request { min-height: 38px; padding: 0 10px; border-radius: 8px; font-size: 10px; gap: 7px; }
  .portal-request::after { font-size: 14px; }
  .portal-footer { padding: 52px 0 88px; }
  .portal-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .portal-footer-brand { grid-column: auto; }
  .portal-footer-bottom { align-items: flex-start; flex-direction: column; margin-top: 36px; }
  .portal-footer-brand p { font-size: 13px; }
  .portal-footer-grid a, .portal-footer-grid span { font-size: 13px; }
  .page-hero { padding-bottom: 42px; }
  .page-hero h1 { font-size: clamp(38px, 11vw, 50px); }
  .page-hero p:not(.eyebrow) { font-size: 16px; }
  .section { padding: 62px 0; }
  .content-grid { grid-template-columns: 1fr; }
  .content-card { min-height: 0; padding: 24px; }
  .feature-split { gap: 28px; }
  .mobile-bottom-nav { grid-template-columns: repeat(3, 1fr) !important; background: #fff; }
}

/* v15: floating header over full-bleed first-screen backgrounds. */
.portal-header {
  padding-top: 24px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.portal-header-card {
  border-color: rgba(225,230,239,.92);
  box-shadow: 0 22px 58px rgba(15,34,75,.16), 0 4px 14px rgba(15,34,75,.08);
}

@media (max-width: 1080px) {
  .portal-header { padding-top: 12px; }
}

@media (max-width: 700px) {
  .portal-header { padding-top: 8px; }
}

/* v16: product dropdown, icon-only cabinet and compact expandable search. */
.portal-header-card { overflow: visible; }
.portal-header-lower {
  display: block;
  min-height: 58px;
  padding: 0 22px;
}
.portal-header-center {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 58px;
  height: auto;
}
.portal-primary-nav {
  gap: clamp(18px, 1.75vw, 30px);
}
.portal-primary-nav > a,
.portal-products-menu > summary {
  font-size: 12px;
  font-weight: 760;
}
.portal-login-icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-color: #d9deea;
  border-radius: 9px;
  color: var(--portal-blue-ink);
}
.portal-login-icon:hover,
.portal-login-icon:focus-visible {
  border-color: #b9c2dc;
  background: #f5f7fc;
  color: var(--portal-blue);
}
.portal-products-menu {
  position: relative;
  flex: 0 0 auto;
  color: var(--portal-blue-ink);
}
.portal-products-menu > summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  color: inherit;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  user-select: none;
}
.portal-products-menu > summary::-webkit-details-marker { display: none; }
.portal-products-menu > summary::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--portal-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}
.portal-products-menu > summary svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}
.portal-products-menu:hover > summary,
.portal-products-menu:focus-within > summary,
.portal-products-menu.is-active > summary,
.portal-products-menu[open] > summary { color: var(--portal-blue); }
.portal-products-menu:hover > summary::after,
.portal-products-menu:focus-within > summary::after,
.portal-products-menu.is-active > summary::after,
.portal-products-menu[open] > summary::after { transform: scaleX(1); }
.portal-products-menu[open] > summary svg { transform: rotate(180deg); }
.portal-products-dropdown {
  position: absolute;
  z-index: 140;
  top: calc(100% + 9px);
  left: -14px;
  display: grid;
  min-width: 275px;
  padding: 10px;
  border: 1px solid #e1e6ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15,34,75,.18), 0 5px 14px rgba(15,34,75,.08);
}
.portal-products-dropdown a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--portal-blue-ink);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 650;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.portal-products-dropdown a::after { display: none; }
.portal-products-dropdown a:hover,
.portal-products-dropdown a:focus-visible {
  background: #f3f6fb;
  color: var(--portal-blue);
  transform: translateX(2px);
}
.portal-header-search.portal-header-search-compact {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  width: 168px;
  height: 40px;
  overflow: hidden;
  border: 1px solid #d6ddea;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: width .2s ease, border-color .16s ease, box-shadow .16s ease;
}
.portal-header-search.portal-header-search-compact:focus-within {
  width: 310px;
  border-color: #aab6d4;
  box-shadow: 0 7px 20px rgba(18,33,78,.11);
}
.portal-header-search.portal-header-search-compact input {
  padding: 0 8px 0 13px;
  font-size: 12px;
}
.portal-header-search.portal-header-search-compact .portal-header-search-submit {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  align-self: center;
  justify-self: end;
  margin: 0 3px 0 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--portal-blue-ink);
}
.portal-header-search.portal-header-search-compact .portal-header-search-submit:hover,
.portal-header-search.portal-header-search-compact .portal-header-search-submit:focus-visible {
  background: #f3f6fb;
  color: var(--portal-blue);
}
.portal-header-search-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1360px) {
  .portal-header-lower { padding-inline: 18px; }
  .portal-primary-nav { gap: clamp(14px, 1.45vw, 23px); }
  .portal-primary-nav > a,
  .portal-products-menu > summary { font-size: 11px; }
  .portal-header-search.portal-header-search-compact { width: 148px; }
  .portal-header-search.portal-header-search-compact:focus-within { width: 255px; }
}

@media (max-width: 1080px) {
  .portal-login-icon { display: none; }
}

@media (max-width: 1080px) {
  .portal-header-lower { display: none; }
}

/* v17: the utility row scrolls away; only the lower navigation row is sticky. */
.portal-header {
  position: relative;
  top: auto;
  z-index: 100;
}
.portal-header-card-top {
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 14px 34px rgba(15,34,75,.13), 0 3px 10px rgba(15,34,75,.06);
}
.portal-header-nav-sticky {
  position: sticky;
  top: 0;
  z-index: 120;
  min-height: 58px;
  pointer-events: none;
}
.portal-header-card-nav {
  pointer-events: auto;
  border-top: 1px solid #e8ebf2;
  border-radius: 0 0 12px 12px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 34px rgba(15,34,75,.12), 0 3px 10px rgba(15,34,75,.06);
  backdrop-filter: blur(14px);
}
.portal-header-card-nav .portal-header-lower { background: transparent; }

@media (max-width: 1080px) {
  .portal-header-card-top {
    border-bottom: 1px solid rgba(225,230,239,.92);
    border-radius: 14px;
  }
  .portal-header-nav-sticky { display: none; }
}

@media (max-width: 700px) {
  .portal-header-card-top { border-radius: 12px; }
}
