/* header.css — Figma "Header" (1920 × 100, overlaps hero; sticks on scroll) */

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 20;
  height: calc(100 * var(--s));
  margin-bottom: calc(-100 * var(--s));
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.siteHeader.is-scrolled {
  background-color: #fff;
  box-shadow: 0 calc(6 * var(--s)) calc(30 * var(--s)) rgba(0, 0, 0, 0.08);
}

.siteHeader__brand {
  position: absolute;
  left: calc(121 * var(--s));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: calc(40 * var(--s));
}

.siteHeader__logoBox {
  position: relative;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.siteHeader__logoBox img {
  position: absolute;
  max-width: none;
}

.siteHeader__logoBox--manipal {
  width: calc(193 * var(--s));
  height: calc(68 * var(--s));
}

.siteHeader__logoBox--manipal img {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  object-fit: contain;
  object-position: left center;
}

.siteHeader__logoBox--mahethon {
  width: calc(254 * var(--s));
  height: calc(63 * var(--s));
}

.siteHeader__logoBox--mahethon img {
  width: 100%;
  height: 152%;
  left: 0;
  top: -0.19%;
}

.siteHeader__nav {
  position: absolute;
  left: calc(769 * var(--s));
  top: calc(38 * var(--s));
  display: flex;
  align-items: center;
  gap: calc(28 * var(--s));
}

.siteHeader__link {
  font-size: calc(20 * var(--s));
  font-weight: 400;
  line-height: normal;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.siteHeader__link:hover,
.siteHeader__link:focus-visible {
  color: var(--orange);
}

.siteHeader__toggle {
  display: none;
}

@media (max-width: 1023px) {
  .siteHeader {
    height: 72px;
    margin-bottom: -72px;
    padding-inline: clamp(16px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .siteHeader__brand {
    position: static;
    transform: none;
    gap: 16px;
  }

  .siteHeader__logoBox--manipal {
    width: 121px;
    height: 43px;
  }

  .siteHeader__logoBox--mahethon {
    width: 159px;
    height: 40px;
  }

  .siteHeader__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px 9px;
    border-radius: 8px;
  }

  .siteHeader__bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .siteHeader.is-open .siteHeader__bar:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .siteHeader.is-open .siteHeader__bar:nth-child(3) {
    opacity: 0;
  }

  .siteHeader.is-open .siteHeader__bar:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .siteHeader__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px clamp(16px, 4vw, 40px) 20px;
    background: var(--white);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .siteHeader.is-open .siteHeader__nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .siteHeader__link {
    font-size: 17px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
}

@media (max-width: 768px) {
  .siteHeader {
    height: calc(60 * var(--m, 1px));
    margin-bottom: calc(-60 * var(--m, 1px));
    padding-inline: calc(14 * var(--m, 1px));
  }

  .siteHeader__brand {
    gap: calc(8 * var(--m, 1px));
  }

  .siteHeader__logoBox--manipal {
    width: calc(96 * var(--m, 1px));
    height: calc(34 * var(--m, 1px));
  }

  .siteHeader__logoBox--mahethon {
    width: calc(118 * var(--m, 1px));
    height: calc(30 * var(--m, 1px));
  }

  .siteHeader__toggle {
    width: calc(36 * var(--m, 1px));
    height: calc(36 * var(--m, 1px));
    padding: calc(8 * var(--m, 1px));
    gap: calc(4 * var(--m, 1px));
  }

  .siteHeader__nav {
    top: calc(60 * var(--m, 1px));
  }
}
