/* =========================================================
   header-update.css  —  load AFTER header1.css
   Adds: Services dropdown, mobile full-screen menu, fixes.
   Desktop nav shows at >=1200px (same breakpoint as header1.css);
   below that the hamburger opens the mobile menu.
   ========================================================= */

/* ---- Fixes to header1.css ---- */
.header_header { left: 0; width: 100%; }              /* was left:10 / 100vw (causes sideways scroll) */
.header_header > .container { width: 100%; margin-inline: auto; padding-inline: 1.5rem; }

/* ---- Logo wordmark (colour follows the header state) ---- */
.header_logo a {
  color: var(--header-primary);
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap;
  transition: color .3s ease;
}
/* Using an image logo instead? Use: .logo_brand_logo img { filter: var(--logo-color); } */

/* ---- Desktop nav ---- */
/* header1.css never hides the nav below 1200px, so hide it here: mobile/tablet use the hamburger menu */
@media (max-width: 1199.98px) { .menuLinks_menu { display: none; } }
.menuLinks_menu ul { align-items: center; }
.menuLinks_menu_list > button { font-family: inherit; }
@media (max-width: 1299.98px) { .menuLinks_menu_list > button { font-size: var(--font-size); } }
.menuLinks_menu_list.has-dropdown > button { align-items: center; gap: .4rem; }
.menuLinks_menu_list.has-dropdown > button svg {width: 1rem;height: 1rem;transition: transform .2s ease;}
.menuLinks_menu_list.has-dropdown.is-open > button svg { transform: rotate(180deg); }
.menuLinks_menu_list a:focus-visible, .menuLinks_menu_list button:focus-visible,
.contactButton_btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* CTA: visible outline on the transparent header */
.header_header .contactButton_btn { border-color: rgba(255,255,255,.65); font-weight: 600; }
.header_header.header_active .contactButton_btn { border-color: var(--dark); }
.header_header .contactButton_btn:hover { border-color: var(--header-btn-hover-bg); }

/* ---- Services dropdown ---- */
.menuLinks_dropdown {
  position: absolute; top: 100%; left: 50%;
  width: 620px; padding-top: 10px;                 /* bridges the hover gap */
  transform: translate(-50%, 8px);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 5;
}
.menuLinks_menu_list.is-open > .menuLinks_dropdown,
.menuLinks_menu_list.has-dropdown:focus-within > .menuLinks_dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) {
  .menuLinks_menu_list.has-dropdown:hover > .menuLinks_dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .menuLinks_menu_list.has-dropdown:hover > button svg { transform: rotate(180deg); }
}
.menuLinks_dropdown_inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px;
  padding: 24px 28px 20px;
  background: var(--light); color: var(--dark);
  border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.16);
  font-weight: 400; letter-spacing: 0;
}
.menuLinks_dropdown_inner .dd-title {
  margin: 0 0 8px; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #6b6b75;
}
.menuLinks_dropdown_inner ul { display: block; list-style: none; margin: 0; padding: 0; }
.menuLinks_dropdown_inner li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; margin: 0 -12px;
  font-size: .9rem; color: var(--dark); border-radius: 8px;
      text-decoration: none;
    letter-spacing: -0.014em;
}
.menuLinks_dropdown_inner li a svg { width: 15px; height: 15px; opacity: 0; transform: translate(-4px,4px); transition: .2s; }
.menuLinks_dropdown_inner li a:hover, .menuLinks_dropdown_inner li a:focus-visible { background: #f2f2f6; }
.menuLinks_dropdown_inner li a:hover svg, .menuLinks_dropdown_inner li a:focus-visible svg { opacity: 1; transform: none; }
.menuLinks_dropdown_inner .dd-all {
  grid-column: 1 / -1; margin-top: 8px; padding-top: 14px; border-top: 1px solid #e8e8ee;
  display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: #6b6b75;
}
.menuLinks_dropdown_inner .dd-all a { font-weight: 700; color: var(--dark); text-decoration: none; }
.menuLinks_dropdown_inner .dd-all a:hover { text-decoration: underline; }

/* ---- Hamburger ---- */
.headerOffcanvas_btn { cursor: pointer; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.headerOffcanvas_btn:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (min-width: 1200px) { .header_menu_icon { display: none; } }

/* ---- Mobile full-screen menu (< 1200px) ---- */
.gp-menu {
  position: fixed; inset: 0; z-index: 1100;
  display: none; flex-direction: column;
  padding: 28px 28px 24px; overflow-y: auto;
  background: #232325; color: #fff;
  visibility: hidden; opacity: 0; transform: translateY(-12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
@media (max-width: 1199.98px) { .gp-menu { display: flex; } }
.gp-menu.is-open { visibility: visible; opacity: 1; transform: none; }
.gp-menu a { color: inherit; text-decoration: none; }
.gp-menu a:hover, .gp-menu summary:hover, .gp-close:hover { color: #c9c9ff; }
.gp-menu a:focus-visible, .gp-menu summary:focus-visible, .gp-close:focus-visible { outline: 2px solid #c9c9ff; outline-offset: 2px; }
.gp-menu__top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.gp-menu__brand { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.gp-close { width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.gp-nav { margin-top: 28px; }
.gp-nav__item, .gp-nav summary {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 56px; font-size: 20px; font-weight: 300; list-style: none; cursor: pointer;
}
.gp-nav summary::-webkit-details-marker { display: none; }
.gp-icon { width: 18px; height: 18px; transition: transform .25s ease; }
.gp-nav details > summary .gp-icon { transform: rotate(-90deg); }
.gp-nav details[open] > summary .gp-icon { transform: none; }
.gp-sub { padding-bottom: 8px; }
.gp-sub__heading { display: flex; align-items: center; height: 48px; font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.gp-sub__link { display: flex; align-items: center; justify-content: space-between; height: 44px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.gp-sub__link svg { width: 12px; height: 12px; }
.gp-menu__footer { margin-top: auto; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; height: 68px; font-size: 14px; font-weight: 300; color: #a8a8ae; }
body.gp-lock { overflow: hidden; }
