/* ============================================================
   Aptomix — Header Widget CSS
   Enqueued by: Aptomix_Header_Widget::get_style_depends()
   Google Fonts: enqueued separately via wp_enqueue_style()
   ============================================================ */

/* ── Scoped reset ────────────────────────────────────────── */
.aptomix-header *,
.aptomix-header *::before,
.aptomix-header *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Header bar ──────────────────────────────────────────── */
.aptomix-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #00B0F0;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.aptomix-header.aptomix-header--scrolled {
  box-shadow: 0 2px 24px rgba(0, 80, 140, 0.26);
  background-color: #009fd8; /* very slightly deeper on scroll for subtle depth */
}

/* ── Inner flex row ──────────────────────────────────────── */
.aptomix-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;             /* overridden by Elementor header_height control */
  max-width: 1320px;        /* wider max to give nav room to breathe */
  margin: 0 auto;
  padding: 0 40px;
  gap: 24px;
}

/* ── Logo ────────────────────────────────────────────────── */
.aptomix-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  outline-offset: 3px;
}

.aptomix-header__logo img {
  display: block;
  max-width: 152px;         /* overridden by Elementor logo_width control */
  max-height: 46px;         /* caps the image within the header bar height */
  width: auto;
  height: auto;
}

.aptomix-header__logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

/* ── Main navigation ─────────────────────────────────────── */
.aptomix-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.aptomix-header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;                 /* gap between <li> elements; visual spacing comes from link padding */
  padding: 0;
  margin: 0;
}

.aptomix-header__nav-link {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.15px;
  padding: 7px 14px;        /* wider horizontal padding for comfortable click targets */
  border-radius: 3px;
  white-space: nowrap;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.aptomix-header__nav-link:hover,
.aptomix-header__nav-link:focus-visible,
.aptomix-header__nav-link.is-active {
  background-color: rgba(255, 255, 255, 0.18);
  outline: none;
}

.aptomix-header__nav-link.is-active {
  font-weight: 600;
}

/* ── Right actions ───────────────────────────────────────── */
.aptomix-header__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Contact Us CTA button */
.aptomix-header__cta {
  display: inline-flex;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.75); /* more visible border */
  border-radius: 3px;
  padding: 8px 22px;        /* more horizontal breathing room */
  white-space: nowrap;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.aptomix-header__cta:hover {
  background-color: rgba(255, 255, 255, 0.20);
  border-color: #fff;
}

/* LinkedIn icon button */
.aptomix-header__linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.aptomix-header__linkedin:hover {
  background-color: rgba(255, 255, 255, 0.20);
}

/* ── Hamburger button (mobile) ───────────────────────────── */
.aptomix-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
  flex-shrink: 0;
}

.aptomix-header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.aptomix-header__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.aptomix-header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.aptomix-header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile dropdown nav ─────────────────────────────────── */
.aptomix-header__mobile-nav {
  background: #0094cc;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 0 20px;
}

.aptomix-header__mobile-nav[hidden] {
  display: none;
}

.aptomix-header__mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.aptomix-header__mobile-link {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  transition: background-color 0.2s ease;
}

.aptomix-header__mobile-link:hover,
.aptomix-header__mobile-link.is-active {
  background-color: rgba(255, 255, 255, 0.12);
}

.aptomix-header__mobile-cta-wrap {
  padding: 12px 28px 0;
}

.aptomix-header__mobile-cta {
  display: block;
  padding: 11px 20px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  text-align: center;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.aptomix-header__mobile-cta:hover {
  background-color: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.85);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .aptomix-header__inner {
    padding: 0 28px;
  }
  .aptomix-header__nav-link {
    font-size: 13px;
    padding: 7px 11px;
  }
}

@media (max-width: 900px) {
  .aptomix-header__nav {
    display: none;
  }
  .aptomix-header__actions {
    display: none;
  }
  .aptomix-header__hamburger {
    display: flex;
  }
}

@media (max-width: 480px) {
  .aptomix-header__inner {
    padding: 0 18px;
  }
}
