/* Japston desktop header: light sage surfaces and the daylight hero's blue accents.
   The supplied logo stays untouched. Mobile refinement remains separate. */
@media (min-width: 1001px) {
  #site-header.brand-header {
    --header-sage: #dfebd6;
    --header-paper: #f7faef;
    --header-blue: #264d7b;
    --header-ink: #233e42;
    --header-muted: #51674e;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
  }
  #site-header.brand-header :is(a, button, input) { font-family: inherit; }

  #site-header.brand-header,
  #site-header.brand-header.is-sticky {
    width: calc(100% - 40px);
    max-width: 1580px;
    margin: 14px auto 22px;
    top: 14px;
    border: 1px solid #c8d9be;
    border-radius: 30px;
    color: var(--header-ink);
    background: linear-gradient(108deg, #f0f5e7 0%, #e7efdc 36%, var(--header-sage) 72%, #e7efdf 100%);
    box-shadow: 0 7px 24px #526b4215, inset 0 1px 0 #fffff3c7;
    isolation: isolate;
    overflow: visible;
    backdrop-filter: none;
  }

  #site-header.brand-header::before {
    content: '';
    position: absolute;
    pointer-events: none;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(ellipse at 8% 0%, #fffce44d, transparent 42%),
      radial-gradient(ellipse at 94% 100%, #c6dee829, transparent 40%);
  }

  #site-header.brand-header .header-inner,
  #site-header.brand-header.is-sticky .header-inner {
    width: 100%;
    max-width: none;
    height: 84px;
    padding: 0 14px 0 9px;
    gap: 20px;
  }

  #site-header.brand-header .brand,
  #site-header.brand-header.is-sticky .brand {
    width: 138px;
    height: 74px;
    padding: 2px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 138px;
    border-radius: 23px 17px 23px 23px;
    background: #fafbf1;
    border: 1px solid #fcfff6;
    box-shadow: 0 2px 10px #526b420a;
  }
  #site-header.brand-header .brand img,
  #site-header.brand-header.is-sticky .brand img {
    width: 110px;
    height: 68px;
    object-fit: contain;
    padding: 0;
    filter: none;
  }

  #site-header.brand-header .desktop-nav { gap: 2px; margin-inline: auto; }
  #site-header.brand-header .nav-toggle,
  #site-header.brand-header .desktop-nav > a.nav-direct {
    position: relative;
    min-height: 44px;
    padding: 10px 10px;
    gap: 7px;
    border-radius: 13px;
    color: var(--header-ink);
    font-size: 13px;
    font-weight: 600;
    transition: background .18s, color .18s;
  }
  #site-header.brand-header .nav-toggle > .icon { width: 13px; color: var(--header-muted); }
  #site-header.brand-header .nav-toggle:hover,
  #site-header.brand-header .nav-toggle[aria-expanded='true'],
  #site-header.brand-header .desktop-nav > a.nav-direct:hover,
  #site-header.brand-header .desktop-nav > a.nav-direct[aria-current='page'] {
    color: var(--header-ink);
    background: var(--header-paper);
  }
  #site-header.brand-header .nav-toggle:hover > .icon,
  #site-header.brand-header .nav-toggle[aria-expanded='true'] > .icon { color: #3e634b; }
  #site-header.brand-header .desktop-nav > a.nav-direct[aria-current='page']::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: #5f7d53;
  }

  /* Section names navigate; separate arrow buttons retain category shortcuts. */
  #site-header.brand-header .nav-split { display:flex; align-items:center; border-radius:13px; }
  #site-header.brand-header .nav-section-link { position:relative; display:flex; align-items:center; min-height:44px; padding:10px 1px 10px 10px; border-radius:13px 0 0 13px; color:var(--header-ink); font-size:13px; font-weight:600; }
  #site-header.brand-header .nav-section-toggle { width:26px; min-width:26px; padding:0; justify-content:center; border-radius:0 13px 13px 0; }
  #site-header.brand-header .nav-split:hover,
  #site-header.brand-header .nav-split:focus-within,
  #site-header.brand-header .nav-split:has(.nav-section-link[aria-current]) { background:var(--header-paper); }
  #site-header.brand-header .nav-section-link:hover { color:var(--header-ink); }
  #site-header.brand-header .nav-section-link[aria-current]::after { content:''; position:absolute; bottom:6px; left:10px; right:1px; height:2px; border-radius:2px; background:#5f7d53; }

  #site-header.brand-header .header-actions { gap: 8px; }
  #site-header.brand-header .icon-button { width: 44px; height: 44px; border-radius: 15px; color: #315149; transition: background .18s, color .18s; }
  #site-header.brand-header .header-search { color: var(--header-blue); background: var(--header-paper); border: 1px solid #bfd0b4; }
  #site-header.brand-header .header-search:hover,
  #site-header.brand-header .header-search[aria-expanded='true'] { background: #fdfdf4; color: #193c68; }
  #site-header.brand-header .header-advisor:hover,
  #site-header.brand-header .bag-button:hover { color: #234e3a; background: var(--header-paper); }
  #site-header.brand-header .header-phone { gap: 10px; margin: 0 8px; color: var(--header-ink); }
  #site-header.brand-header .header-phone > .icon { width: 23px; height: 23px; color: #52764b; }
  #site-header.brand-header .header-phone strong { color: var(--header-ink); font-size: 12px; }
  #site-header.brand-header .header-phone small { color: var(--header-muted); font-size: 10px; }
  #site-header.brand-header .header-phone:hover strong { color: #264d7b; }
  #site-header.brand-header #basket-count { top: -3px; right: -1px; border: 2px solid #e3edd9; background: #315c40; color: #f7faef; }

  #site-header.brand-header .header-quote {
    min-height: 48px;
    min-width: 162px;
    margin-left: 4px;
    padding: 7px 9px 7px 19px;
    gap: 15px;
    border: 1px solid #264d7b;
    border-radius: 99px;
    color: #fffdf3;
    background: var(--header-blue);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 3px 12px #264d7b17;
    transition: background .18s, box-shadow .18s;
  }
  #site-header.brand-header .header-quote > .icon { width: 32px; height: 32px; padding: 7px; border-radius: 50%; color: #264d7b; background: #e7efdc; }
  #site-header.brand-header .header-quote:hover { color: #fffdf3; background: #193c68; box-shadow: 0 4px 16px #264d7b26; transform: none; }
  #site-header.brand-header :focus-visible { outline: 3px solid #315e7b; outline-offset: 4px; }
  #site-header.brand-header .header-quote:focus-visible,
  #site-header.brand-header .brand:focus-visible { outline-color: #315e7b; }

  #site-header.brand-header .nav-dropdown,
  #site-header.brand-header .search-panel {
    background: #f9fbf2;
    color: var(--header-ink);
    border: 1px solid #c8d9be;
    border-radius: 20px;
    box-shadow: 0 16px 40px #344e3924;
  }
  #site-header.brand-header .nav-dropdown { border-top: 3px solid #7f9f6f; padding: 16px; }
  #site-header.brand-header .nav-dropdown .dropdown-label { color: var(--header-muted); }
  #site-header.brand-header .nav-dropdown a { color: var(--header-ink); border-radius: 10px; }
  #site-header.brand-header .nav-dropdown a:hover { background: #e6efdc; color: #234e3a; }
  #site-header.brand-header .nav-dropdown a:focus-visible,
  #site-header.brand-header .search-panel :focus-visible { outline-color: #28617d; outline-offset: 2px; }
  #site-header.brand-header .dropdown-all { border-color: #d2dec8; color: #264d7b; }
  #site-header.brand-header .search-panel { right: 16px; }
  #site-header.brand-header .search-panel label { color: var(--header-ink); }
  #site-header.brand-header .search-panel input { color: var(--header-ink); border-color: #becfb4; background: #fdfdf6; }
  #site-header.brand-header .search-panel .button { color: #fffdf3; background: #264d7b; border-color: #264d7b; }
}

@media (min-width: 1001px) and (max-width: 1280px) {
  #site-header.brand-header .header-inner,
  #site-header.brand-header.is-sticky .header-inner { gap: 12px; padding-right: 12px; }
  #site-header.brand-header .brand,
  #site-header.brand-header.is-sticky .brand { flex-basis: 122px; width: 122px; padding-inline: 10px; }
  #site-header.brand-header .desktop-nav { gap: 1px; }
  #site-header.brand-header .nav-toggle,
  #site-header.brand-header .desktop-nav > a.nav-direct { padding-inline: 8px; font-size: 12px; }
  #site-header.brand-header .nav-section-link { padding-left:8px; font-size:12px; }
  #site-header.brand-header .nav-section-toggle { width:24px; min-width:24px; padding:0; }
  #site-header.brand-header .nav-section-link[aria-current]::after { left:8px; }
  #site-header.brand-header .header-actions { gap: 5px; }
  #site-header.brand-header .header-phone { gap: 8px; margin-inline: 4px; }
  #site-header.brand-header .header-phone strong { font-size: 11px; }
  #site-header.brand-header .header-phone small { font-size: 9px; }
  #site-header.brand-header .header-quote { min-width: 150px; padding-left: 16px; gap: 12px; font-size: 12px; }
}

@media (min-width: 1001px) and (max-width: 1160px) {
  #site-header.brand-header .header-phone { position: relative; min-width: 38px; min-height: 44px; justify-content: center; margin-inline: 0; }
  #site-header.brand-header .header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* One compact desktop size on every route, including the sticky state. */
@media (min-width: 1001px) and (max-height: 790px) {
  #site-header.brand-header,
  #site-header.brand-header.is-sticky { margin-block: 10px 12px; top: 10px; border-radius: 26px; }
  #site-header.brand-header .header-inner,
  #site-header.brand-header.is-sticky .header-inner { height: 74px; }
  #site-header.brand-header .brand,
  #site-header.brand-header.is-sticky .brand { height: 66px; padding-block: 1px; border-radius: 20px 15px 20px 20px; }
  #site-header.brand-header .brand img,
  #site-header.brand-header.is-sticky .brand img { height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  #site-header.brand-header *, #site-header.brand-header *::before, #site-header.brand-header *::after { transition: none; }
}
