:root {
  --blue: #0758a0;
  --ink: #071b35;
  --line: #dce3ea;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
}
a {
  text-decoration: none;
  color: inherit;
}
.site-header {
  height: 132px;
  display: flex;
  align-items: center;
  padding: 0 clamp(32px, 6vw, 110px);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
  background: #fff;
}
.brand {
  display: flex;
  align-items: center;
  line-height: 0.72;
  color: #0758a0;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -1px;
}
.brand b {
  letter-spacing: 1px;
}
.brand-mark {
  font-size: 71px;
  font-weight: 600;
  font-style: italic;
  line-height: 0.55;
  margin-right: -7px;
}
.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
.main-nav > a,
.products-link {
  padding: 18px 0;
}
.products-nav {
  height: 100%;
  display: flex;
  align-items: center;
}
.products-link span {
  font-size: 17px;
  margin-left: 4px;
}
.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0;
  overflow: hidden;
  opacity: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: height 0.25s ease, opacity 0.18s ease;
  box-shadow: 0 14px 25px #001b3b14;
}
.products-nav:hover .mega-menu,
.products-nav:focus-within .mega-menu {
  height: 448px;
  opacity: 1;
}
.mega-heading {
  height: 55px;
  padding: 18px clamp(32px, 6vw, 110px) 0;
  display: flex;
  justify-content: space-between;
  text-transform: none;
  font-size: 13px;
}
.mega-heading a {
  color: var(--blue);
  font-weight: 700;
}
.category-grid {
  margin: 0;
  padding: 0 clamp(32px, 6vw, 110px);
  height: 202px;
  display: grid;
  grid-template-columns: repeat(12, minmax(70px, 1fr));
  list-style: none;
  border-bottom: 1px solid #bfd1e0;
  position: relative;
}
.category {
  position: static;
  text-transform: none;
  text-align: center;
}
.category > a {
  height: 101px;
  padding: 10px 4px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.category:hover > a,
.category.is-open > a {
  background: #f0f7fc;
  color: var(--blue);
}
.category-icon {
  font-size: 31px;
  line-height: 37px;
  height: 37px;
  color: #15283a;
  filter: grayscale(1);
}
.subcategory-panel {
  display: none;
  position: absolute;
  top: 202px;
  left: 0;
  width: 100%;
  height: 190px;
  padding: 18px clamp(32px, 6vw, 110px);
  background: #fff;
  text-align: left;
  z-index: 2;
}
/*.category:hover .subcategory-panel,*/
.category.is-open .subcategory-panel {
  display: block;
}
.subcategory-panel h2 {
  font-size: 14px;
  margin: 0 0 12px;
  text-transform: none;
}
.subcategory-grid {
  display: flex;
  gap: 20px;
}
.subcategory-grid a {
  width: 115px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  text-align: center;
}
.subcategory-grid img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 4px;
}
.hero {
  min-height: 600px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(120deg, #064c89, #0b2947);
}
.menu-toggle,
.mobile-drawer {
  display: none;
}
@media (max-width: 900px) {
  .site-header {
    height: 64px;
    padding: 0 20px;
  }
  .brand {
    font-size: 16px;
  }
  .brand-mark {
    font-size: 49px;
  }
  .main-nav {
    display: none;
  }
  .menu-toggle {
    margin-left: auto;
    display: grid;
    gap: 4px;
    border: 0;
    background: transparent;
    padding: 8px;
  }
  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--blue);
  }
  .mobile-drawer {
    display: block;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(360px, 88vw);
    background: #fff;
    z-index: 20;
    overflow-y: auto;
    box-shadow: 3px 0 20px #001b3b45;
  }
  .drawer-top {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
  }
  .close {
    margin-left: auto;
    border: 0;
    background: #0758a0;
    color: white;
    font-size: 38px;
    font-weight: 200;
    height: 64px;
    width: 55px;
    line-height: 1;
  }
  .drawer-title,
  .drawer-row,
  details summary {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    border-bottom: 1px solid #d6dce1;
    font-size: 15px;
  }
  .drawer-title {
    font-size: 13px;
    margin-top: 11px;
  }
  .drawer-title span,
  .drawer-row b,
  details summary b {
    margin-left: auto;
    font-size: 20px;
    font-weight: 400;
  }
  .drawer-row span,
  details summary span {
    width: 29px;
    font-size: 18px;
    filter: grayscale(1);
  }
  details {
    border-bottom: 1px solid #d6dce1;
  }
  details summary {
    list-style: none;
    cursor: pointer;
  }
  details summary::-webkit-details-marker {
    display: none;
  }
  details > a {
    display: block;
    margin-left: 30px;
    padding: 11px 16px;
    border-bottom: 1px solid #d6dce1;
    font-size: 15px;
  }
  .hero {
    min-height: 700px;
  }
}

/* Mobile product-category accordion (desktop menu is unaffected). */
#mobile-category-list details { 
    border-bottom: 1px solid #d6dce1; 
}
#mobile-category-list summary {
    min-height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    color: #071b35;
}
#mobile-category-list summary::-webkit-details-marker { 
    display: none;
}
#mobile-category-list summary img,
#mobile-category-list summary .category-icon { 
    width: 28px; 
    height: 28px; 
    object-fit: contain; 
}
#mobile-category-list .mobile-category-name { 
    flex: 1;
}
#mobile-category-list summary b { 
    font-size: 16px; 
    font-weight: 400;
}
#mobile-category-list details[open] summary b {
    transform: rotate(45deg);
}
#mobile-category-list .mobile-subcategory-link {
    display: block;
    margin-left: 42px;
    padding: 11px 16px;
    border-top: 1px solid #d6dce1;
    color: #071b35;
    font-size: 14px;
}
.mobile-page-links { 
    border-bottom: 8px solid #f3f5f7;
}
.mobile-page-links a {
    display: block;
    padding: 13px 16px;
    border-bottom: 1px solid #d6dce1;
    color: #071b35;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}
#mobile-category-list .mobile-all-products { 
    font-weight: 700;
}
@media (max-width: 900px) {
    .mobile-drawer { 
        transform: translateX(-105%); 
        transition: transform .25s ease;
    }
    .mobile-drawer.is-open { 
        transform: translateX(0);
    }
}