/* ===============================
   ATMS Home Base
================================ */

html,
body {
  margin: 0;
  padding: 0;
}

.atms-home,
.atms-home * {
  box-sizing: border-box;
}

.atms-home {
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
  color: #ffffff;
  font-family: "Geist", Arial, sans-serif;
}

/* ===============================
   Header
================================ */

.atms-site-header {
  width: 100%;
  height: 118px;
  background: #056fbf;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 50;
}

.atms-header-inner {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.atms-header-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.atms-header-logo img {
  display: block;
  width: 210px;
  height: auto;
}

/* ===============================
   Desktop Navigation
================================ */

.atms-header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.atms-header-nav a {
  position: relative;
  color: #ffffff;
  font-family: "Geist", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.atms-header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.atms-header-nav a:hover,
.atms-header-nav a:focus,
.atms-header-nav a.is-active {
  color: #ffffff;
}

.atms-header-nav a:hover::after,
.atms-header-nav a:focus::after,
.atms-header-nav a.is-active::after {
  transform: scaleX(1);
}

/* ===============================
   Header Button
================================ */

.atms-header-button {
  margin-left: 28px;
  min-width: 148px;
  height: 56px;
  padding: 0 24px;
  border-radius: 10px;
  background: #4293d2;
  color: #ffffff;
  font-family: "Geist", Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.atms-header-button:hover,
.atms-header-button:focus {
  background: #ffe331;
  color: #111111;
}

/* Hide mobile elements on desktop */
button.atms-mobile-toggle,
.atms-mobile-menu {
  display: none !important;
}

/* ===============================
   Tablet
================================ */

@media (max-width: 1100px) {
  .atms-header-inner {
    max-width: 100%;
    padding: 0 32px;
  }

  .atms-header-logo img {
    width: 190px;
  }

  .atms-header-nav {
    gap: 22px;
  }

  .atms-header-nav a {
    font-size: 14px;
  }

  .atms-header-button {
    margin-left: 22px;
    min-width: 135px;
    height: 52px;
    font-size: 14px;
  }
}

/* ===============================
   Desktop Safety Fix
================================ */

@media (min-width: 992px) {
  button.atms-mobile-toggle,
  .atms-mobile-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .atms-header-nav {
    display: flex !important;
  }

  .atms-header-button {
    display: inline-flex !important;
  }
}

/* ===============================
   Mobile Header
================================ */

@media (max-width: 991px) {
  .atms-site-header {
    height: 86px;
  }

  .atms-header-inner {
    height: 86px;
    padding: 0 18px;
    justify-content: space-between;
  }

  .atms-header-nav,
  .atms-header-button {
    display: none !important;
  }

  .atms-header-logo img {
    width: 180px;
    height: auto;
  }

  button.atms-mobile-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;

    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    margin: 0;

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    background: transparent !important;
    box-shadow: none !important;
    outline: none;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }

  button.atms-mobile-toggle:hover,
  button.atms-mobile-toggle:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.65);
  }

  button.atms-mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff !important;
    border-radius: 20px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  button.atms-mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  button.atms-mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  button.atms-mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .atms-mobile-menu {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    z-index: 999;

    display: none !important;
    background: #056fbf;
    padding: 10px 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.18);
  }

  .atms-mobile-menu.is-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .atms-mobile-menu a {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 16px 0 14px;

    color: #ffffff;
    font-family: "Geist", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;

    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .atms-mobile-menu a span {
    position: relative;
    display: inline-block;
  }

  .atms-mobile-menu a span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
  }

  .atms-mobile-menu a:hover,
  .atms-mobile-menu a:focus,
  .atms-mobile-menu a.is-active {
    color: #ffffff;
  }

  .atms-mobile-menu a:hover span::after,
  .atms-mobile-menu a:focus span::after,
  .atms-mobile-menu a.is-active span::after {
    transform: scaleX(1);
  }

  .atms-mobile-menu-button {
    display: flex !important;
    width: 100% !important;
    min-height: 52px !important;
    margin-top: 16px;
    padding: 0 !important;

    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #ffe331;

    color: #111111 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    border-bottom: 0 !important;
  }

  .atms-mobile-menu-button span::after {
    display: none !important;
  }

  .atms-mobile-menu-button:hover,
  .atms-mobile-menu-button:focus {
    background: #ffd900;
    color: #111111 !important;
  }
}

/* ===============================
   Small Mobile
================================ */

@media (max-width: 480px) {
  .atms-site-header {
    height: 78px;
  }

  .atms-header-inner {
    height: 78px;
    padding: 0 16px;
  }

  .atms-header-logo img {
    width: 160px;
  }

  button.atms-mobile-toggle {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  button.atms-mobile-toggle span {
    width: 19px;
  }

  .atms-mobile-menu {
    top: 78px;
    padding: 10px 16px 22px;
  }

  .atms-mobile-menu a {
    min-height: 46px;
    font-size: 14px;
  }

  .atms-mobile-menu-button {
    min-height: 50px !important;
  }
}

