/* ============================================
   BASE / RESET
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #111013;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

img {
  vertical-align: middle;
  border-style: none;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  overflow: visible;
  text-transform: none;
  -webkit-appearance: button;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

/* ============================================
   PAGE CONTAINER
   ============================================ */

.page-container {
  width: 100%;
  padding-right: 4vh;
  padding-left: 4vh;
  margin-right: auto;
  margin-left: auto;
  max-width: 1400px;
}

/* ============================================
   BUTTONS
   ============================================ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  border-radius: 6px;
  background-color: #e63946;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  opacity: 1;
  background-color: #c1121f;
  color: #fff;
}

.button.-small {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

/* ============================================
   ICON BUTTON (HAMBURGER)
   ============================================ */

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: #f5f5f7;
  border: none;
  border-radius: 50%;
  color: #111013;
  cursor: pointer;
  transition: all 0.3s ease;
}

.icon-button:hover {
  background: #e8e8ec;
}

.icon-button .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.icon-button .icon svg {
  width: 100%;
  height: 100%;
}

/* Hamburger icon lines */
.hamburger .icon::before,
.hamburger .icon::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger .icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger .icon::before {
  position: static;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: '';
}

.hamburger .icon::after {
  position: static;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: '';
}

/* ============================================
   HEADER - MAIN STYLES
   ============================================ */

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid rgba(150, 144, 162, 0.15);
}

.header-cap {
  width: 100%;
  height: 12vh;
  min-height: 80px;
}

.header-wrap {
  position: relative;
  z-index: 1;
  height: 12vh;
  min-height: 80px;
}

.header-wrap-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================
   LEFT PART (Hamburger + Logo)
   ============================================ */

.header-wrap .left-part {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.desktop-hamburger {
  display: block;
}

.desktop-hamburger .hamburger {
  display: inline-flex;
}

.mobile-hamburger {
  display: none;
}

/* ============================================
   BRANDING / LOGO
   ============================================ */

.branding {
  position: relative;
  display: flex;
  align-items: center;
}

.branding-title {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.4em;
}

.branding .logo,
.branding .logo-mobile,
.branding .logo-sticky,
.branding .logo-sticky-mobile,
.branding .logo-dynamic {
  display: flex;
  align-items: center;
}

.branding .logo img,
.branding .logo-mobile img,
.branding .logo-sticky img,
.branding .logo-sticky-mobile img,
.branding .logo-dynamic img {
  min-height: 42px;
  max-height: 66px;
  height: auto;
  width: auto;
  display: block;
}

/* Hide mobile/sticky logos by default */
.branding .logo-mobile,
.branding .logo-sticky,
.branding .logo-sticky-mobile,
.branding .logo-dynamic {
  display: none !important;
}

.branding .logo {
  display: flex !important;
}

/* ============================================
   RIGHT PART (Nav + Menu Optional)
   ============================================ */

.header-wrap .right-part {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

/* ============================================
   NAVIGATION - DESKTOP
   ============================================ */

.nav {
  display: flex;
  align-items: center;
}

/* Hide mobile overlay on desktop */
.mobile-overlay {
  display: none;
}

/* Main menu */
.menu {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0;
}

.mega-menu-item {
  position: relative;
}

.menu-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111013;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.menu-link:hover {
  opacity: 0.7;
}

.menu-link span {
  position: relative;
}

/* Underline dash effect */
.-undash span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.-undash:hover span::after {
  width: 100%;
}

/* Careers red color */
.has-submenu > .menu-link {
  color: #e63946;
}

/* Submenu icon */
.has-submenu-icon {
  margin-left: 0.35rem;
  display: inline-flex;
  align-items: center;
}

.menu-plus svg {
  width: 12px;
  height: 12px;
}

/* Submenu dropdown */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  min-width: 220px;
  padding: 0.75rem 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  z-index: 100;
  list-style: none;
  border-radius: 8px;
}

.mega-menu-item:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-nav-item .menu-link {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  color: #111013;
}

.sub-nav-item .menu-link:hover {
  color: #e63946;
  opacity: 1;
}

/* ============================================
   MENU OPTIONAL (Consulting button)
   ============================================ */

.menu-optional {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-optional > li {
  list-style: none;
}

.icon-button-holder {
  display: none;
}

/* ============================================
   SOCIAL BAR & COPYRIGHT (hidden on desktop)
   ============================================ */

.social-bar,
.copyright {
  display: none;
}

/* ============================================
   STICKY HEADER
   ============================================ */

.header.-sticky {
  background: #fff;
  position: fixed;
  top: 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header.-sticky:not(.-fixed) {
  transform: translate3d(0, -100%, 0);
  opacity: 0;
  visibility: hidden;
}

.header.-sticky:not(.-fixed) .header-wrap {
  height: 9vh;
  min-height: 70px;
}

.header.-sticky.showed {
  opacity: 1;
  visibility: visible;
  transform: none;
  z-index: 1000;
  transition-delay: 0.2s;
  transition: 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0.35s;
}

.header.-sticky .branding img {
  min-height: 38px;
  max-height: 4.5vh;
}

/* Show sticky logo, hide regular */
.header.-sticky .logo {
  display: none !important;
}

.header.-sticky .logo-sticky {
  display: flex !important;
}

/* ============================================
   MOBILE STYLES (max-width: 1180px)
   ============================================ */

@media (max-width: 1180px) {
  .desktop-hamburger {
    display: none;
  }

  .mobile-hamburger {
    display: block;
  }

  .mobile-hamburger .hamburger {
    display: inline-flex;
  }

  .header-wrap .right-part {
    gap: 0.5rem;
  }

  /* Mobile overlay menu */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
  }

  .mobile-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
  }

  .mobile-overlay.visible {
    transform: translateX(0);
  }

  .mobile-overlay .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
  }

  .close-bar {
    display: flex;
    justify-content: flex-end;
    padding: 1.25rem;
    position: relative;
    z-index: 3;
  }

  .mobile-overlay .holder {
    position: relative;
    z-index: 2;
    background: #fff;
    width: 85%;
    max-width: 380px;
    height: 100%;
    padding: 0 2rem 2rem;
    overflow-y: auto;
    float: left;
  }

  .mobile-overlay .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .mobile-overlay .mega-menu-item {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .mobile-overlay .menu-link {
    padding: 1.1rem 0;
    font-size: 1.15rem;
    font-weight: 500;
    width: 100%;
    color: #111013;
  }

  .mobile-overlay .has-submenu > .menu-link {
    justify-content: space-between;
  }

  .mobile-overlay .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0.5rem 1rem;
    display: none;
    background: transparent;
    min-width: auto;
  }

  .mobile-overlay .mega-menu-item.active > .sub-menu {
    display: block;
  }

  .mobile-overlay .sub-nav-item {
    border: none;
  }

  .mobile-overlay .sub-nav-item .menu-link {
    padding: 0.7rem 0;
    font-size: 1rem;
    color: #635d6f;
  }

  /* Social bar in mobile menu */
  .mobile-overlay .social-bar {
    display: flex;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
  }

  .social-bar-holder {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #635d6f;
  }

  .social-bar-holder li {
    list-style: none;
  }

  .social-bar-holder a {
    color: #635d6f;
    transition: color 0.3s;
    font-size: 1.1rem;
  }

  .social-bar-holder a:hover {
    color: #111013;
  }

  /* Copyright in mobile menu */
  .mobile-overlay .copyright {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #999;
    line-height: 1.7;
  }

  .copyright a {
    color: inherit;
    text-decoration: underline;
  }

  .copyright a:hover {
    color: #111013;
  }
}

/* ============================================
   SMALL MOBILE (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
  .header-wrap {
    height: 70px;
    min-height: 70px;
  }

  .header-cap {
    height: 70px;
    min-height: 70px;
  }

  .branding .logo img {
    min-height: 32px;
    max-height: 48px;
  }

  .btn-optional {
    display: none;
  }

  .page-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ============================================
   UTILITY
   ============================================ */

.hidden {
  display: none !important;
}