/* ==========================================================================
   Drawer V2 — Homepage off-canvas navigation only
   Scoped under .drawer-v2 — overrides legacy offcanvas styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Overlay
   -------------------------------------------------------------------------- */

.drawer-v2__overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  background-color: rgba(17, 24, 39, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.drawer-v2__overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   Drawer panel
   -------------------------------------------------------------------------- */

.drawer-v2.offcanvas__area {
  width: 100%;
  max-width: 420px;
  right: 0;
  padding: 0;
  background: #ffffff;
  box-shadow: -4px 0 24px rgba(17, 24, 39, 0.08);
  opacity: 1;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 300ms ease, visibility 300ms ease;
  overflow: hidden;
}

.drawer-v2.offcanvas__area.showed {
  visibility: visible;
  transform: translateX(0);
}

@media (min-width: 768px) {
  .drawer-v2.offcanvas__area {
    width: 400px;
  }
}

.drawer-v2__inner {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100dvh;
  padding: 32px 24px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* --------------------------------------------------------------------------
   Top — logo, tagline, close
   -------------------------------------------------------------------------- */

.drawer-v2__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.drawer-v2__brand {
  min-width: 0;
}

.drawer-v2__logo {
  display: block;
  line-height: 0;
  margin-bottom: 6px;
}

.drawer-v2__logo img {
  display: block;
  width: 140px;
  height: auto;
  max-width: 100%;
}

.drawer-v2__logo:focus-visible {
  outline: 2px solid #174B71;
  outline-offset: 4px;
  border-radius: 4px;
}

.drawer-v2__tagline {
  margin: 0;
  font-size: var(--text-overline);
  font-weight: 500;
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: #9CA3AF;
}

.drawer-v2__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background-color: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  color: #616161;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}

.drawer-v2__close svg {
  display: block;
  width: 16px;
  height: 16px;
}

.drawer-v2__close:hover {
  border-color: #174B71;
  color: #F37F0C;
}

.drawer-v2__close:focus-visible {
  outline: 2px solid #174B71;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Dividers
   -------------------------------------------------------------------------- */

.drawer-v2__divider {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0 0 24px;
  padding: 0;
  border: none;
  background-color: #ECECEC;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.drawer-v2 .offcanvas__menu {
  display: block !important;
  padding-bottom: 0;
  margin-bottom: 24px;
  height: auto;
  overflow: visible;
  flex-shrink: 0;
}

.drawer-v2 .mean-container .mean-nav {
  width: 100%;
  float: none;
  margin-top: 0;
  background: transparent;
}

.drawer-v2 .mean-container .mean-nav ul li {
  float: none;
  width: 100%;
  position: relative;
}

.drawer-v2 .offcanvas-menu > ul,
.drawer-v2 .mean-container .mean-nav > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.drawer-v2 .offcanvas-menu > ul > li,
.drawer-v2 .mean-container .mean-nav > ul > li {
  margin: 0;
  padding: 0;
}

.drawer-v2 .offcanvas-menu li a,
.drawer-v2 .mean-container .mean-nav ul li a {
  display: flex;
  align-items: center;
  float: none;
  width: 100%;
  min-height: 56px;
  padding: 0 4px;
  text-align: left;
  font-size: var(--text-body-l);
  font-weight: 500;
  line-height: var(--lh-caption);
  color: #252525;
  text-transform: none;
  text-decoration: none;
  background: transparent !important;
  border: none !important;
  border-top: none !important;
  border-bottom: 2px solid transparent !important;
  transition: color 200ms ease, border-color 200ms ease;
}

.drawer-v2 .mean-container .mean-nav ul li:has(a.mean-expand) > a:not(.mean-expand) {
  padding-right: 48px;
}

.drawer-v2 .offcanvas-menu li a:hover,
.drawer-v2 .mean-container .mean-nav ul li a:hover {
  color: #174B71;
  background: transparent !important;
}

.drawer-v2 .offcanvas-menu li a:focus-visible,
.drawer-v2 .mean-container .mean-nav ul li a:focus-visible {
  outline: 2px solid #174B71;
  outline-offset: 2px;
  border-radius: 2px;
}

.drawer-v2 .offcanvas-menu li.is-active > a,
.drawer-v2 .mean-container .mean-nav > ul > li.is-active > a {
  border-bottom-color: #F37F0C !important;
  color: #252525;
}

/* Products dropdown — nested items */
.drawer-v2 .offcanvas-menu .main-dropdown,
.drawer-v2 .offcanvas-menu .sub-dropdown,
.drawer-v2 .mean-container .mean-nav ul ul {
  margin: 0;
  padding: 0 0 0 16px;
  list-style: none;
}

.drawer-v2 .offcanvas-menu .main-dropdown a,
.drawer-v2 .offcanvas-menu .sub-dropdown a,
.drawer-v2 .mean-container .mean-nav ul li li a {
  min-height: 44px;
  font-size: var(--text-body-m);
  font-weight: 400;
  color: #616161;
  opacity: 1;
}

.drawer-v2 .offcanvas-menu .main-dropdown a:hover,
.drawer-v2 .offcanvas-menu .sub-dropdown a:hover,
.drawer-v2 .mean-container .mean-nav ul li li a:hover {
  color: #174B71;
}

.drawer-v2 .mean-container .mean-nav ul li a.mean-expand {
  position: absolute;
  top: 8px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 40px;
  margin-top: 0;
  padding: 0;
  font-size: var(--text-body-s);
  line-height: 1;
  color: #616161 !important;
  background: transparent !important;
  border: 1px solid #ECECEC !important;
  border-radius: 6px;
}

.drawer-v2 .mean-container .mean-nav ul li a.mean-expand:hover {
  color: #174B71 !important;
  border-color: #174B71 !important;
  background: transparent !important;
}

.drawer-v2 .mean-container .mean-bar {
  padding: 0;
  background: none;
}

.drawer-v2 .mean-container a.meanmenu-reveal {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Primary CTA
   -------------------------------------------------------------------------- */

.drawer-v2__cta-wrap {
  margin-bottom: 24px;
  flex-shrink: 0;
}

.drawer-v2__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--btn-min-height-mobile);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: var(--btn-lh);
  letter-spacing: var(--btn-ls);
  text-decoration: none;
  border-radius: var(--btn-radius);
  border: 1px solid #174B71;
  background-color: #174B71;
  color: #ffffff;
  box-shadow: 0 1px 6px rgba(23, 75, 113, 0.18);
  transition: var(--btn-transition);
}

.drawer-v2__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(23, 75, 113, 0.22);
  color: #ffffff;
}

.drawer-v2__cta:focus-visible {
  outline: 2px solid #174B71;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Quick contact
   -------------------------------------------------------------------------- */

.drawer-v2__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.drawer-v2__contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
  text-decoration: none;
  transition: color 200ms ease;
}

.drawer-v2__contact-label {
  font-size: var(--text-overline);
  font-weight: 600;
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: #9CA3AF;
}

.drawer-v2__contact-value {
  font-size: var(--text-body-m);
  font-weight: 500;
  line-height: 1.5;
  color: #252525;
}

.drawer-v2__contact-item:hover .drawer-v2__contact-value {
  color: #174B71;
}

.drawer-v2__contact-item:focus-visible {
  outline: 2px solid #174B71;
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Social icons
   -------------------------------------------------------------------------- */

.drawer-v2__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-shrink: 0;
}

.drawer-v2__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #174B71;
  transition: color 200ms ease;
}

.drawer-v2__social a:hover {
  color: #F37F0C;
}

.drawer-v2__social a:focus-visible {
  outline: 2px solid #174B71;
  outline-offset: 3px;
  border-radius: 2px;
}

.drawer-v2__social svg {
  display: block;
  width: 20px;
  height: 20px;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Body scroll lock
   -------------------------------------------------------------------------- */

body.drawer-v2-open {
  overflow: hidden;
}
