/* ═══════════════════════════════════════════════════════════
   Apto Campaigns – Polished Frontend Styles
   ═══════════════════════════════════════════════════════════ */
:root {
  --apto-ff: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ═══ COUNTDOWN ═══ */
.apto-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: var(--apto-ff);
}
.apto-countdown-units {
  display: flex;
  gap: 0.375rem;
}
.apto-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.75rem;
}
.apto-countdown-num {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.apto-countdown-label {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.65;
  margin-top: 0.1875rem;
  font-weight: 500;
}
.apto-countdown-msg-before,
.apto-countdown-msg-after {
  font-size: 0.8125rem;
  font-weight: 500;
}

/* glass style */
.apto-countdown-glass .apto-countdown-unit {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0.5rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* outlined style */
.apto-countdown-outlined .apto-countdown-unit {
  border: 1.5px solid currentColor;
  border-radius: 0.5rem;
  padding: 0.5rem 0.625rem;
  opacity: 0.85;
}

/* minimal style */
.apto-countdown-minimal .apto-countdown-unit {
  padding: 0.25rem;
}
.apto-countdown-minimal .apto-countdown-num {
  font-size: 1rem;
}

/* ═══ STICKY HEADER ═══ */
.apto-sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  padding: 0.625rem 1.25rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-family: var(--apto-ff);
}
.apto-sticky-header.is-hidden {
  transform: translateY(-100%);
}
.apto-sticky-inner {
  max-width: 75rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.apto-sticky-layout-centered {
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
}
.apto-sticky-layout-minimal {
  justify-content: center;
  gap: 1.5rem;
}
.apto-sticky-content {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.apto-sticky-eyebrow {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.apto-sticky-headline {
  font-size: 0.875rem;
  font-weight: 700;
}
.apto-sticky-sub {
  font-size: 0.75rem;
  opacity: 0.8;
}
.apto-sticky-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.apto-sticky-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.125rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.apto-sticky-cta:hover {
  opacity: 0.92;
  color: #fff;
  transform: translateY(-1px);
}
.apto-sticky-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  opacity: 0.5;
  transition: opacity 0.2s;
  line-height: 1;
  border-radius: 0.25rem;
}
.apto-sticky-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

/* push body down when sticky banner is visible */
body.apto-sticky-header-visible {
  padding-top: 3rem;
}

/* wp admin bar offset */
body.admin-bar .apto-sticky-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .apto-sticky-header {
    top: 46px;
  }
}
