/* header_styles.css */
@import url('https://fonts.googleapis.com/css2?family=Martian+Mono:wght@100..800&display=swap');

:root{ --sticky-real: 120px; }

.ati-header-scope{
  --header-height: 5rem;

  --black-color: #829dbb;
  --black-color-light: #6e8aaa;
  --topbar-color: #86a4c6;
  --white-color: #fff;

  --body-font: "Martian Mono", serif;

  --nav-breakpoint: 1250px;

  --z-sticky: 12000;
  --z-dropdown: 13000;
  --z-menu: 15000;

  font-family: var(--body-font);
}

.ati-header-scope *,
.ati-header-scope *::before,
.ati-header-scope *::after{ box-sizing:border-box; }

.ati-header-scope ul{ list-style:none; padding:0; margin:0; }
.ati-header-scope a{ text-decoration:none; }
.ati-header-scope button{ font-family:inherit; }

.header_container{
  max-width:1200px;
  margin-inline:auto;
  padding-inline:1.5rem;
}

/* sticky wrapper */
.ati-sticky-wrap{
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

/* ===== TOP INFO BAR (Shipping pickups - clean ticker style) ===== */
.top-info-bar{
  background-color: var(--topbar-color);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.topbar-inner{
  padding: 8px 0;
}

.topbar-pickups{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap: wrap;
  gap: 6px 14px;

  font-size: .72rem;
  line-height: 1.2;
  letter-spacing: .1px;
}

.topbar-label{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  font-weight: 900;
  white-space: nowrap;
  opacity: .98;
}

.pickup-item{
  display:inline-flex;
  align-items:baseline;
  gap: 10px;
  white-space: nowrap;
  opacity: .96;
}

.pickup-item strong{ font-weight: 900; }
.pickup-time{ opacity: .9; margin-left: 2px; }

/* separators (not a button look) */
.pickup-item::before{
  content: "|";
  margin-right: 12px;
  opacity: .45;
}
.pickup-item:first-of-type::before{ content:""; margin:0; }

/* ===== HEADER ===== */
.header{
  width: 100%;
  background-color: var(--black-color);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
  overflow: visible;
}

/* 3-column grid: logo | menu | toggle */
.nav{
  height: var(--header-height);
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  column-gap: 18px;

  position: relative; /* ✅ IMPORTANT: anchors mobile menu under the header */
}

/* logo */
.brand{
  display:flex;
  align-items:center;
  justify-self:start;
  min-width: 110px;
}

.ati-img{
  width: 86px;
  height: 58px;
  object-fit: contain;
  background-color: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 16px rgba(0,0,0,.12);
}

/* toggle */
.nav__toggle{
  display:none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  cursor:pointer;

  align-items:center;
  justify-content:center;
  padding: 0;
  justify-self:end;
}

.nav__burger,
.nav__close{
  font-size: 1.55rem;
  color: var(--white-color);
  display:block;
  line-height: 1;
}

.nav__close{ display:none; }
.show-icon .nav__burger{ display:none; }
.show-icon .nav__close{ display:block; }

/* Desktop menu */
.nav__menu{
  height: 100%;
  min-width: 0;
  display:flex;
  justify-content:flex-end;
  justify-self:end;
}

.nav__list{
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 18px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

/* ===== Header links ===== */
.nav__link{
  color: var(--white-color);
  font-weight: 800;
  font-size: .92rem;

  padding: 8px 10px;
  border-radius: 10px;

  display:inline-flex;
  align-items:center;
  gap: 8px;

  background: transparent;
  border: 1px solid transparent;

  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.nav__link:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.12);
}

/* keep the selected page look */
.nav__link.is-active{
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.26);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}

/* ===== WEB DESIGN CTA ===== */
.nav__cta-link{
  border-radius: 999px;
  padding: 9px 14px;
  gap: 10px;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);

  position: relative;
  overflow: hidden;
  white-space: nowrap;

  animation: ctaPulse 4s ease-in-out infinite;
}

.nav__cta-link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
}

.cta-badge{
  margin-left: 2px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
  font-size: .72rem;
  font-weight: 900;
}

@keyframes ctaPulse{
  0%, 60%, 100% { box-shadow: 0 10px 24px rgba(0,0,0,.14); }
  70% { box-shadow: 0 10px 24px rgba(0,0,0,.14), 0 0 0 6px rgba(255,255,255,.08); }
  80% { box-shadow: 0 10px 24px rgba(0,0,0,.14); }
}

.nav__cta-link::before{
  content:"";
  position:absolute;
  top:-30%;
  left:-60%;
  width: 42%;
  height: 160%;
  background: linear-gradient(120deg, rgba(255,255,255,0), rgba(255,255,255,.38), rgba(255,255,255,0));
  transform: skewX(-18deg);
  opacity: 0;
  animation: ctaShine 4s infinite;
  pointer-events:none;
}

@keyframes ctaShine{
  0%{ transform: translateX(0) skewX(-18deg); opacity:0; }
  10%{ opacity:.9; }
  30%{ transform: translateX(320%) skewX(-18deg); opacity:0; }
  100%{ transform: translateX(320%) skewX(-18deg); opacity:0; }
}

/* ===== Dropdowns ===== */
.dropdown__item{ position:relative; height:100%; display:flex; align-items:center; }
.dropdown__trigger{ border:0; background:transparent; height:100%; cursor:pointer; }
.dropdown__arrow{ font-size:1.1rem; transition: transform .2s ease; }

.dropdown__menu{
  position:absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  padding: 10px;

  background: rgba(255,255,255,.98);
  box-shadow: 0 14px 26px rgba(0,0,0,.18);

  border-radius: 0 0 14px 14px;
  border: 1px solid rgba(0,0,0,.06);
  border-top: 0;

  display:none;
  z-index: var(--z-dropdown);
}

.dropdown__link{
  display:flex;
  padding: 10px 12px;

  border-radius: 6px;
  color: #1a2a35;
  font-weight: 800;
  font-size: .88rem;

  transition: background .12s ease;
}

.dropdown__link:hover{
  background: rgba(0,0,0,.06);
}

@media (min-width: 1251px){
  .dropdown__item:hover .dropdown__menu,
  .dropdown__item:focus-within .dropdown__menu{ display:block; }

  .dropdown__item:hover .dropdown__arrow,
  .dropdown__item:focus-within .dropdown__arrow{ transform: rotate(180deg); }
}

/* ================= MOBILE ================= */
@media (max-width: 1250px){
  .nav__toggle{ display:flex; }

  /* stop flex behavior that pushes items to bottom-right
     and open the menu directly under the header */
  .nav__menu{
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;

    display: block;
    justify-content: initial;
    align-items: initial;

    height: auto;
    max-height: calc(100vh - var(--sticky-real));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    background: var(--black-color);
    border-top: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 18px 35px rgba(0,0,0,.20);

    z-index: var(--z-menu);

    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;

    padding: 16px 0 18px;
  }

  .show-menu{
    opacity: 1;
    pointer-events: initial;
    transform: translateY(0);
  }

  .nav__list{
    height:auto;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    padding: 0 1rem;
    margin: 0;
    white-space: normal;
  }

  /* ✅ all tabs same width (not stretched across the whole menu) */
  .nav__link{
    width: clamp(260px, 86vw, 520px);   /* same width for all items */
    justify-content: space-between;      /* keeps arrow/badge aligned nicely */
    text-align: left;

    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);

    padding: 12px 16px;
    border-radius: 14px;
  }

  /* CTA can still look nice at same width */
  .nav__cta-link{
    width: clamp(260px, 86vw, 520px);
    border-radius: 16px;
  }

  /* dropdown item container stays aligned */
  .dropdown__item{
    flex-direction: column;
    align-items: center;
    height: auto;
  }

  /* dropdown menu matches the same width too */
  .dropdown__menu{
    position: static;
    width: clamp(260px, 86vw, 520px);
    display:none;
    margin-top: 8px;
    border-radius: 14px;
  }

  .dropdown-open .dropdown__menu{ display:block; }
  .dropdown-open .dropdown__arrow{ transform: rotate(180deg); }
}

@media (max-width: 490px){
  .header_container{ padding-inline: 12px; }
  .ati-img{ width: 70px; height: 50px; padding: 5px; }
  .nav{ column-gap: 10px; }
  .nav__toggle{ width: 42px; height: 42px; border-radius: 12px; }
}

/* Topbar tighter when it wraps */
@media (max-width: 520px){
  .topbar-pickups{ gap: 6px 12px; font-size: .70rem; }
  .pickup-item::before{ margin-right: 10px; }
}
