
/* =========================================
   ALTAMIQ HEADER
========================================= */

.altamiq-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #0F172A14
   font-family: "IBM Plex Sans", sans-serif;
}

.altamiq-header,
.altamiq-header * {
  box-sizing: border-box;
}

.altamiq-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 16px 20px;
}

/* LOGO */

.altamiq-header__logo {
  flex: 0 0 auto;
  display: flex;
}

.altamiq-header__logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.altamiq-header__logo img {
  display: block;
  width: auto;
  max-width: 148px;
  max-height: 32px;
  object-fit: contain;
}

.altamiq-header__text-logo {
  color: #11182b;
  font-size: 28px;
  font-weight: 700;
}

/* DESKTOP NAVIGATION */

.altamiq-header__nav {
  flex: 1 1 auto;
  min-width: 0;
}

.altamiq-header__nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.altamiq-header__nav li {
  margin: 0;
  padding: 0;
}
.altamiq-header__nav a {
  color: #334155;
  font-size: 15px;
  font-weight: 500;
  line-height: 120%;
  text-decoration: none;
  white-space: nowrap;
}

.altamiq-header__nav a:hover {
  color: #F5E309;
}

/* DESKTOP ACTIONS */

.altamiq-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 15px;
}

.altamiq-header__signin {
  color: #334155 !important;
  font-size: 15px;
  line-height: 120%;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}
.altamiq-header__signin {
  color: #F5E309;
}

.altamiq-header__demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  background: #F5E309;
  color: #0F172A !important;
  font-size: 15px;
  line-height: 120%;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.altamiq-header__demo:hover {
  background-color: #FFF02E;
  box-shadow: 0px 8px 16px -4px #0F172A40;
}

.altamiq-header__demo-arrow {
  font-size: 0px;
}

/* MOBILE TOGGLE */
.altamiq-header__toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  border: 1px solid #0F172A1F;
  background: transparent;
  cursor: pointer;
}

.altamiq-header__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #0F172A;
  transition: transform .2s ease, opacity .2s ease;
}

/* =========================================
   FULL-SCREEN MOBILE OVERLAY
========================================= */

.altamiq-header__mobile {
  display: none;
}

/* Overlay open state */

.altamiq-header.is-open .altamiq-header__mobile {
    background: #F7F6F2;
    border: 0;
    display: block;
    height: 100vh;
    height: 100dvh;
    inset: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 100px 20px 100px;
    position: fixed;
    width: 100%;
    z-index: 1;
}

/* Keep logo and close button visible above overlay */

.altamiq-header.is-open .altamiq-header__inner {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 10001;
  transform: translateX(-50%);
  width: 100%;
  max-width: none;
  padding: 20px 20px;
  background: #F7F6F2;
}

.altamiq-header.is-open .altamiq-header__logo {
    position: relative;
    z-index: 2;
    display: flex;
}

/* Close button */

.altamiq-header.is-open .altamiq-header__toggle {
  position: relative;
  z-index: 2;
  display: flex;
  width: 44px;
  height: 44px;
  border: 2px solid #deddd9;
  border-radius: 10px;
  background: transparent;
}

.altamiq-header.is-open .altamiq-header__toggle span {
  width: 14px;
  height: 1.75px;
}

.altamiq-header.is-open
.altamiq-header__toggle span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.altamiq-header.is-open
.altamiq-header__toggle span:nth-child(2) {
  opacity: 0;
}

.altamiq-header.is-open
.altamiq-header__toggle span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* Mobile links */

.altamiq-header__mobile-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.altamiq-header__mobile-nav li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #0F172A1A
}
.altamiq-header__mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  color: #0F172A;
  font-size: 24px;
  font-weight: 600;
  line-height: 140%;
  text-decoration: none;
}
.altamiq-header__mobile-actions {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 32px;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 12px 0 0;
  background: #f7f6f2;
}

.altamiq-header__mobile-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 20px;
  background: #0F172A;
  color: #fff !important;
  font-size: 15px;
  line-height: 120%;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}

.altamiq-header__mobile-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #334155 !important;
  font-size: 16px;
  line-height: 140%;
  font-weight: 500;
  text-decoration: none;
}



@media (prefers-reduced-motion: reduce) {
  .altamiq-header__toggle span {
    transition: none;
  }
}

@media (min-width: 901px) and (max-width: 1199px) {
  .altamiq-header__logo img {
    max-height: 25px;
}
   .altamiq-header__nav ul {
    gap: 15px;
}
.altamiq-header__nav a {
    font-size: 14px;
}
.altamiq-header__demo {
    padding: 14px 15px;
    font-size: 14px;
}
.altamiq-header__signin {
    font-size: 14px;
}
}
/* Desktop: navigation visible, hamburger hidden */
@media (min-width: 901px) {
  .altamiq-header__inner {
    display: flex;
    align-items: center;
  }

  .altamiq-header__logo {
    flex: 0 0 auto;
  }

  .altamiq-header__nav {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
  }

  .altamiq-header__nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .altamiq-header__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
  }

  .altamiq-header__toggle {
    display: none !important;
  }

  .altamiq-header__mobile {
    display: none !important;
  }
}

/* Mobile/tablet: hamburger visible, desktop navigation hidden */
@media (max-width: 900px) {
  .altamiq-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .altamiq-header__nav,
  .altamiq-header__actions {
    display: none !important;
  }

  .altamiq-header__toggle {
    display: flex;
    flex: 0 0 auto;
    margin-left: auto;
  }

  /* Closed state */
  .altamiq-header:not(.is-open) .altamiq-header__mobile {
    display: none !important;
  }

  /* Open state: preserve your existing overlay styling */
  .altamiq-header.is-open .altamiq-header__mobile {
    display: block;
  }

  .altamiq-header.is-open .altamiq-header__inner {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    width: 100%;
    background: #F7F6F2;
  }

  .altamiq-header.is-open .altamiq-header__toggle {
    display: flex;
    position: relative;
    z-index: 10002;
  }

  /* Hamburger transforms into close icon */
  .altamiq-header.is-open
  .altamiq-header__toggle span:nth-child(1) {
    transform: translateY(6.75px) rotate(45deg);
  }

  .altamiq-header.is-open
  .altamiq-header__toggle span:nth-child(2) {
    opacity: 0;
  }

  .altamiq-header.is-open
  .altamiq-header__toggle span:nth-child(3) {
    transform: translateY(-6.75px) rotate(-45deg);
  }
}
