/* Shared site navigation. Checkout, accounts and the catalogue retain their own logic. */
body > header.infinity-site-header[data-site-header] {
  position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: minmax(115px,1fr) auto minmax(max-content,1fr);
  align-items: center; gap: clamp(16px,3vw,40px); min-height: 74px; height: auto;
  padding: 10px clamp(20px,5vw,80px); background: #fff; border-bottom: 1px solid #e3ece4; backdrop-filter: none;
}
body > header.infinity-site-header .brand { display: flex; align-items: center; min-width: 0; min-height: 44px; }
body > header.infinity-site-header .brand img { width: min(100%,145px); height: auto; max-width: none; }
body > header.infinity-site-header[data-site-header] .site-navigation {
  position: static; display: flex; grid-area: auto; align-items: center; justify-content: center;
  flex-flow: row nowrap; gap: clamp(11px,2.1vw,32px); padding: 0; border: 0; background: none; box-shadow: none;
}
body > header.infinity-site-header .site-navigation > a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 4px 7px; white-space: nowrap;
  color: #284a3b; font-size: 14px; font-weight: 650; line-height: 1.25;
}
body > header.infinity-site-header .site-navigation a::after { bottom: 7px; left: 7px; width: calc(100% - 14px); }
body > header.infinity-site-header .site-navigation a[aria-current="page"] { color: #007844; }
body > header.infinity-site-header .site-navigation a[aria-current="page"]::after { transform: scaleX(1); }
body > header.infinity-site-header[data-site-header] .site-header-actions {
  display: flex; justify-self: end; justify-content: end; align-items: center; gap: clamp(4px,1vw,14px);
}
body > header.infinity-site-header[data-site-header] .site-header-actions .site-contact {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; line-height: 1;
  min-height: 44px; padding: 0 14px; border: 1px solid #b0d7b9; border-radius: 10px;
  background: #e9f5eb; color: #155735; font-size: 13px; font-weight: 750;
}
body > header.infinity-site-header[data-site-header] .site-header-actions .site-contact:is(:hover,[aria-current="page"]) { background: #d7eddb; border-color: #91c99e; }
body > header.infinity-site-header .site-tool-icon { display: none; }
body > header.infinity-site-header .basket-button .site-tool-label {
  display: inline; width: auto; height: auto; color: inherit; background: none; font: inherit;
}
body > header.infinity-site-header[data-site-header] .site-header-actions .site-menu-toggle { display: none; }
body > header.infinity-site-header :is(a,button):focus-visible { outline: 2px solid #007844; outline-offset: 1px; }

@media (max-width:850px) {
  body > header.infinity-site-header[data-site-header] {
    grid-template-columns: minmax(64px,1fr) auto; column-gap: 6px; row-gap: 4px; min-height: 62px;
    padding: 8px clamp(10px,4vw,32px);
  }
  body > header.infinity-site-header .brand img { width: min(100%,116px); }
  body > header.infinity-site-header[data-site-header] .site-navigation {
    grid-column: 1/-1; grid-row: 2; justify-content: center; gap: clamp(12px,4vw,28px); border-top: 1px solid #e5eee6;
  }
  body > header.infinity-site-header[data-site-header].site-nav-enhanced .site-navigation { display: none; }
  body > header.infinity-site-header[data-site-header].site-nav-enhanced.site-menu-open .site-navigation {
    position: absolute; display: grid; align-items: stretch; justify-content: stretch; gap: 2px;
    inset: calc(100% + 2px) clamp(10px,4vw,32px) auto; padding: 5px 9px;
    background: white; border: 1px solid #dce8dd; border-radius: 13px; box-shadow: 0 12px 30px #163d2a1b;
  }
  body > header.infinity-site-header.site-menu-open .site-navigation > a { padding-inline: 9px; border-radius: 7px; }
  body > header.infinity-site-header.site-menu-open .site-navigation > a + a { border-top: 1px solid #edf1ed; }
  body > header.infinity-site-header.site-menu-open .site-navigation a[aria-current="page"] { background: #eaf5eb; }
  body > header.infinity-site-header.site-menu-open .site-navigation > a::after { display: none; }
  body > header.infinity-site-header[data-site-header] .site-header-actions { gap: 3px; }
  body > header.infinity-site-header[data-site-header] .site-header-actions .site-contact { padding: 0 clamp(8px,2.1vw,13px); font-size: 12px; }
  body > header.infinity-site-header[data-site-header].site-nav-enhanced .site-header-actions .site-menu-toggle:not([hidden]) {
    position: relative; display: inline-grid; place-items: center; min-width: 44px; min-height: 44px;
    padding: 0; color: #174d33; background: transparent; border-radius: 9px;
  }
  body > header.infinity-site-header[data-site-header].site-nav-enhanced .site-menu-toggle[aria-expanded="true"] { background: #e9f5eb; }
  body > header.infinity-site-header .site-menu-toggle svg { width: 22px; height: 22px; }
  body > header.infinity-site-header[data-site-header] .site-header-actions > :is(.basket-button,.account-button) {
    position: relative; display: inline-grid; place-items: center; min-width: 44px; min-height: 44px;
    padding: 0; border: 0; color: #174d33; background: transparent; box-shadow: none;
  }
  body > header.infinity-site-header .site-header-actions :is(.site-tool-icon,.account-button svg) { display: block; width: 21px; height: 21px; }
  body > header.infinity-site-header .site-header-actions :is(.site-tool-label,.account-button > span:not(.account-update-badge)) {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  body > header.infinity-site-header .site-header-actions :is(#cart-count,.account-update-badge) {
    position: absolute; top: 2px; right: 1px; width: auto; min-width: 16px; height: 16px; padding-inline: 2px;
    font-size: 9px; line-height: 16px; background: #174d33; box-shadow: 0 0 0 2px white;
  }
}
@media (max-width:600px) {
  .company-page > .announcement { display: none; }
}

/* Dedicated company pages: one shell, distinct page content and the existing Infinity palette. */
.company-page { --company-ink: #153629; --company-muted: #456456; --company-border: #dbe7db; --company-wash: #f2f7f1; }
.company-shell { width: min(90%,1180px); margin-inline: auto; }
.company-main { color: var(--company-ink); }
.company-crumb { display: flex; gap: 9px; align-items: center; min-height: 44px; padding-top: 9px; color: var(--company-muted); font-size: 13px; }
.company-crumb a { color: #176141; text-decoration: underline; text-underline-offset: 3px; }
.company-main h1 { max-width: 13ch; margin: 14px 0 15px; font-size: clamp(39px,6.4vw,82px); letter-spacing: -.065em; line-height: 1.05; animation: none; }
.company-main h1 em { color: #007c42; }
.company-main h2 { max-width: 24ch; margin: 8px 0 18px; font-size: clamp(31px,4vw,53px); }
.company-main .eyebrow { color: #256344; }
.company-hero { padding-block: clamp(27px,6vw,82px) clamp(43px,6vw,85px); }
.company-hero--split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.04fr); align-items: center; gap: clamp(22px,5vw,70px); }
.company-hero p:not(.eyebrow),.company-cta p:not(.eyebrow) { max-width: 56ch; color: var(--company-muted); font-size: clamp(15px,2vw,18px); }
.company-hero .button { margin-top: 23px; }
.company-figure { margin: 0; }
.company-figure img { width: 100%; height: auto; }
.company-band { background: var(--company-wash); padding-block: clamp(34px,6vw,80px); }
.company-section { padding-block: clamp(34px,6vw,80px); }
.company-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px,1.8vw,24px); }
.company-card { min-width: 0; padding: clamp(16px,2.5vw,30px); border: 1px solid var(--company-border); border-radius: 14px; background: #fff; }
.company-card h3 { margin-block: 5px 7px; font-size: clamp(18px,2.1vw,25px); line-height: 1.24; letter-spacing: -.039em; }
.company-card p { color: var(--company-muted); font-size: 14px; }
.company-card a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: #155b38; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.company-number { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 7px; border-radius: 8px; background: #e6f2e6; color: #256344; font-size: 12px; font-weight: 750; }
.company-card--sector { overflow: hidden; padding: 0; }
.company-card--sector img { width: 100%; height: auto; aspect-ratio: 3/2; }
.company-card--sector > div { padding: clamp(16px,2.2vw,25px); }
.company-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 26px; }
.company-cta .button { flex-shrink: 0; }
.company-note { max-width: 62ch; margin-top: 24px; padding: 14px 17px; border: 1px solid #c9ddcc; border-radius: 10px; background: var(--company-wash); }
.company-main .company-note p { margin-top: 4px; font-size: 14px; }
.company-main .company-note .company-note-label { margin: 0 0 4px; color: #256344; font-size: 11px; letter-spacing: .09em; font-weight: 750; }
.company-footer { padding: 0; }
.company-footer-inner { display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; row-gap: 8px; width: min(90%,1180px); padding-block: 24px; margin: auto; border-top: 1px solid var(--company-border); color: var(--company-muted); font-size: 14px; }
.company-footer nav { display: flex; flex-wrap: wrap; gap: 5px 13px; }
.company-footer nav a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.company-footer small { flex-basis: 100%; }
@media(max-width:760px) {
  .company-hero--split,.company-grid { grid-template-columns: minmax(0,1fr); }
  .company-figure { max-width: 560px; }
  .company-cta { flex-direction: column; align-items: flex-start; }
}

/* The redesigned header is for touch phones only; desktop keeps its own controls. */
body > header:not(.mobile-nav-v2) .mobile-nav-only { display: none !important; }
@media (max-width:767px) and (hover:none) {
  body.storefront-home > footer .home-refill-shortcut { display: none !important; }
  .storefront-home .faq .mobile-faq-break { display: none; }
  .storefront-home .faq summary { padding-block: 8px; line-height: 1.35; }
  .company-crumb { flex-wrap: wrap; row-gap: 2px; }
  .company-main h1 { font-size: clamp(36px,9.2vw,62px); overflow-wrap: break-word; }
  .company-main .company-card :is(p, a) { overflow-wrap: anywhere; }

  body > header.mobile-nav-v2 {
    position: sticky; top: 0; z-index: 20;
    min-height: 62px; height: auto; display: grid;
    grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px;
    padding: 8px clamp(12px,4vw,28px); background: #fff;
  }
  body > header.mobile-nav-v2 > .brand { min-height: 44px; display: flex; align-items: center; min-width: 0; }
  body > header.mobile-nav-v2 > .brand img { width: min(100%,112px); max-width: 112px; height: auto; }
  body > header.mobile-nav-v2[data-mobile-refill-header] .store-navigation,
  body > header.mobile-nav-v2 .header-actions > :is(#cart-open,#account-open,.site-contact,.legacy-refill-toggle) {
    display: none !important;
  }
  body > header.mobile-nav-v2 .header-actions { display: flex; align-items: center; gap: 7px; }
  body > header.mobile-nav-v2 .header-actions > .mobile-hub-toggle {
    min-height: 44px; min-width: 79px; padding: 0 8px;
    position: relative; display: inline-flex; gap: 5px; align-items: center; justify-content: center;
    border: 1px solid #cfdfd1; border-radius: 11px; background: #f1f7ef; color: #164d33;
  }
  body > header.mobile-nav-v2 .mobile-hub-toggle[aria-expanded="true"] { background: #e4f2e5; border-color: #83be90; }
  body > header.mobile-nav-v2 .mobile-hub-toggle > span:not(.mobile-hub-count) { display: inline-flex; position: relative; }
  body > header.mobile-nav-v2 .mobile-hub-toggle svg { width: 18px; height: 18px; }
  body > header.mobile-nav-v2 .mobile-hub-toggle .mobile-hub-divider { width: 1px; height: 16px; background: #c7decb; }
  body > header.mobile-nav-v2 .mobile-hub-toggle .mobile-hub-count:not([hidden]) {
    display: grid; place-items: center; position: absolute; top: 2px; right: 2px; min-width: 16px; padding-inline: 3px; height: 16px;
    border-radius: 10px; background: #145f3a; color: #fff; box-shadow: 0 0 0 2px #f1f7ef; font-size: 9px; font-weight: 750; line-height: 1;
  }
  body > header.mobile-nav-v2 .mobile-hub-has-updates .mobile-hub-account-icon::after { content: ''; position: absolute; top: -1px; right: -2px; width: 6px; height: 6px; border-radius: 50%; background: #007844; border: 1px solid #fff; }
  body > header.mobile-nav-v2.site-nav-enhanced .header-actions > .site-menu-toggle:not([hidden]) {
    display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0;
    border: 1px solid #deeadc; border-radius: 11px; background: #fff; color: #174d33;
  }
  body > header.mobile-nav-v2 .site-menu-toggle > svg,
  body > header.mobile-nav-v2 .site-menu-toggle .mobile-menu-close-icon svg { width: 22px; height: 22px; }
  body > header.mobile-nav-v2 .site-menu-toggle .mobile-menu-close-icon { display: none; }
  body > header.mobile-nav-v2 .site-menu-toggle[aria-expanded="true"] > svg { display: none; }
  body > header.mobile-nav-v2 .site-menu-toggle[aria-expanded="true"] .mobile-menu-close-icon { display: grid; }

  body > header.mobile-nav-v2.site-nav-enhanced .site-navigation { display: none; }
  body > header.mobile-nav-v2.site-menu-open .site-navigation,
  body > header.mobile-nav-v2 .mobile-hub-panel:not([hidden]) {
    position: absolute; display: grid; grid-auto-flow: row; align-items: stretch;
    justify-content: stretch; inset: calc(100% + 5px) clamp(10px,4vw,29px) auto;
    gap: 5px; padding: 11px; border: 1px solid #d9e8d9; border-radius: 14px;
    background: #fafff9; box-shadow: 0 16px 34px #173b271f;
    max-height: 76vh; max-height: 76dvh; overflow: auto; overscroll-behavior: contain;
  }
  /* Higher specificity intentionally matches the desktop and legacy nav rules above. */
  body > header.mobile-nav-v2[data-site-header].site-nav-enhanced.site-menu-open .site-navigation {
    position: absolute; display: grid; align-items: stretch; justify-content: stretch;
    inset: calc(100% + 5px) clamp(10px,4vw,29px) auto; padding: 11px; gap: 5px;
    border-radius: 14px; background: #fafff9; box-shadow: 0 16px 34px #173b271f;
  }
  body > header.mobile-nav-v2 .site-navigation .mobile-menu-title,
  body > header.mobile-nav-v2 .mobile-panel-head { padding: 4px 6px 8px; color: #164a31; }
  body > header.mobile-nav-v2 .mobile-menu-title p,
  body > header.mobile-nav-v2 .mobile-panel-head p { color: #446c56; font-size: 10px; font-weight: 750; letter-spacing: .09em; }
  body > header.mobile-nav-v2 .mobile-menu-title strong,
  body > header.mobile-nav-v2 .mobile-panel-head strong { font-size: 19px; line-height: 1.35; }
  body > header.mobile-nav-v2.site-menu-open .site-navigation > a {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    min-height: 46px; padding: 6px 10px; border-radius: 8px; border: 1px solid #e4ede4;
    background: #fff; color: #214e39; font-size: 14px; font-weight: 650; line-height: 1.25;
  }
  body > header.mobile-nav-v2.site-menu-open .site-navigation > a[aria-current="page"] { background: #eef6ed; }
  body > header.mobile-nav-v2.site-menu-open .site-navigation > a:not(.mobile-menu-contact)::before,
  body > header.mobile-nav-v2.site-menu-open .site-navigation > a.mobile-menu-contact::after { display: none; }
  body > header.mobile-nav-v2.site-menu-open .site-navigation > a:not(.mobile-menu-contact)::after {
    position: static; display: block; transform: none; border: solid #4b795c; border-width: 1.5px 1.5px 0 0;
    width: 6px; height: 6px; background: none; rotate: 45deg; margin-inline-end: 4px;
  }
  body > header.mobile-nav-v2.site-menu-open .site-navigation > a.mobile-menu-contact {
    order: 5; display: grid; grid-template-columns: 18px minmax(0,1fr) 15px;
    border-color: #bbd9be; background: #e9f5e9; color: #135233;
  }
  body > header.mobile-nav-v2 .mobile-menu-contact svg { width: 17px; height: 17px; }
  body > header.mobile-nav-v2 .mobile-panel-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
  body > header.mobile-nav-v2 .mobile-panel-head button {
    min-width: 44px; min-height: 44px; display: grid; place-items: center; background: #eff6ec; border-radius: 9px;
  }
  body > header.mobile-nav-v2 .mobile-panel-head button svg { width: 18px; height: 18px; }
  body > header.mobile-nav-v2 .mobile-panel-choice {
    display: grid; grid-template-columns: 24px minmax(0,1fr) 18px; align-items: center; gap: 10px;
    text-align: left; min-height: 58px; padding: 7px 10px; border: 1px solid #e0ebe0; border-radius: 9px; background: #fff; color: #214e39;
  }
  body > header.mobile-nav-v2 .mobile-panel-choice strong { display: block; font-size: 14px; line-height: 1.25; }
  body > header.mobile-nav-v2 .mobile-panel-choice small { display: block; color: #4a6b54; font-size: 12px; line-height: 1.35; }
  body > header.mobile-nav-v2 .mobile-panel-choice svg { width: 18px; height: 18px; }
}
