/*
  AirGo Tel — shared site header
  Custom element: <airgo-header></airgo-header>
  See airgo-header.js for behavior/markup and usage notes.
*/

airgo-header {
  display: block;
  font-family: "Manrope", system-ui, sans-serif;
}

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

@keyframes ag-hdr-drawer-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Announcement bar ---------- */

.ag-hdr-announcement {
  background: linear-gradient(90deg, #0b2038, #124a63);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 44px;
  position: relative;
  text-align: center;
  flex-wrap: wrap;
}

.ag-hdr-announcement__msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ag-hdr-announcement__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5c39;
  box-shadow: 0 0 0 4px rgba(255, 92, 57, 0.25);
  flex-shrink: 0;
}

.ag-hdr-announcement__link {
  color: #7ee0ee;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.ag-hdr-announcement__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  font-family: inherit;
}

.ag-hdr-announcement__close:hover,
.ag-hdr-announcement__close:focus-visible {
  background: rgba(255, 255, 255, 0.28);
}

/* ---------- Sticky header bar ---------- */

.ag-hdr-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e4eaf0;
}

.ag-hdr-bar__inner {
  /* 1440px per AirGo Header.dc.html — 1240px clipped the Create Account button. */
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.ag-hdr-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  text-decoration: none;
}

.ag-hdr-logo__mark {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, #12b5c9, #0b2038);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ag-hdr-logo__mark-dot {
  width: 15px;
  height: 15px;
  border: 2.5px solid #fff;
  border-radius: 50%;
  position: relative;
}

.ag-hdr-logo__mark-ring {
  position: absolute;
  width: 26px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transform: rotate(-30deg);
}

.ag-hdr-logo__text {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #0b2038;
  letter-spacing: -0.03em;
}

.ag-hdr-logo__text-accent {
  color: #12b5c9;
}

/* Desktop nav */

.ag-hdr-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
}

.ag-hdr-nav__link {
  font-size: 14.5px;
  font-weight: 600;
  color: #33475b;
  padding: 9px 11px;
  border-radius: 9px;
  white-space: nowrap;
  text-decoration: none;
  background: transparent;
}

.ag-hdr-nav__link:hover,
.ag-hdr-nav__link:focus-visible {
  background: #f0f5f9;
  color: #0b2038;
}

.ag-hdr-nav__link[aria-current="page"] {
  font-weight: 800;
  color: #0b2038;
  background: #f0f5f9;
}

/* Desktop actions */

.ag-hdr-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ag-hdr-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  font-size: 14.5px;
  font-weight: 700;
  color: #0b2038;
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none;
  width: 96px;
}

.ag-hdr-signin:hover,
.ag-hdr-signin:focus-visible {
  background: #f0f5f9;
}

.ag-hdr-create-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  background: #ff5c39;
  padding: 0 18px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(255, 92, 57, 0.32);
  text-decoration: none;
  width: 147px;
}

.ag-hdr-create-account:hover,
.ag-hdr-create-account:focus-visible {
  background: #f0492a;
}

/* Mobile hamburger */

.ag-hdr-menu-btn {
  margin-left: auto;
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.ag-hdr-menu-btn__bar {
  width: 22px;
  height: 2.5px;
  background: #0b2038;
  border-radius: 2px;
}

/* ---------- Mobile drawer ---------- */

.ag-hdr-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11, 32, 56, 0.45);
  backdrop-filter: blur(2px);
}

.ag-hdr-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 86vw);
  background: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  animation: ag-hdr-drawer-in 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .ag-hdr-drawer {
    animation: none;
  }
}

.ag-hdr-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ag-hdr-drawer__title {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #0b2038;
}

.ag-hdr-drawer__close {
  background: #f0f5f9;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  color: #0b2038;
  font-family: inherit;
}

.ag-hdr-drawer__link {
  font-size: 16px;
  font-weight: 700;
  color: #0b2038;
  padding: 13px 12px;
  border-radius: 11px;
  border: 1px solid #eef3f7;
  text-decoration: none;
}

.ag-hdr-drawer__link:hover,
.ag-hdr-drawer__link:focus-visible {
  background: #f0f5f9;
}

.ag-hdr-drawer__link[aria-current="page"] {
  background: #f0f5f9;
}

.ag-hdr-drawer__locale-row {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}

.ag-hdr-drawer__country {
  flex: 1;
  border: 1px solid #e4eaf0;
  border-radius: 11px;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #33475b;
}

.ag-hdr-drawer__currency {
  display: block;
  flex-shrink: 0;
}

.ag-hdr-drawer__currency-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #e4eaf0;
  border-radius: 11px;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #33475b;
  background: #fff;
  cursor: pointer;
}

.ag-hdr-drawer__create-account {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: #ff5c39;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(255, 92, 57, 0.3);
  text-decoration: none;
}

.ag-hdr-drawer__create-account:hover,
.ag-hdr-drawer__create-account:focus-visible {
  background: #f0492a;
}

.ag-hdr-drawer__signin {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #0b2038;
  background: #f0f5f9;
  padding: 15px;
  border-radius: 12px;
  text-decoration: none;
}

/* ---------- Breakpoint ----------
   RESPONSIVE.md and COMPONENT-STATES.md put this at ~1200px, with the rule that
   the nav must collapse before Create Account can clip. With the currency
   picker moved into the drawer the desktop bar needs 1216px, so the nav stays
   collapsed at or below that and only goes full-width above it.
   (Was 960px, which left the full nav clipping from 961px upward.) */

@media (max-width: 1216px) {
  .ag-hdr-nav,
  .ag-hdr-actions {
    display: none !important;
  }
  .ag-hdr-menu-btn {
    display: flex !important;
  }
}
