/* =========================================================
   AMD Mobile Tweaks (mobile only, <= 55em)
   1. Price Estimator bar in fixed mobile header
   2. Smaller homepage banner
   3. Slider text animates in with the slide (no delay)
   4. Slider text + We're Hiring badge always clear the header
      (--amd-slider-offset / --amd-qn-bottom are measured in scripts.js)
   ========================================================= */

.mobile-estimator-bar { display: none; }

@media screen and (max-width: 55em) {

  /* 1. Price Estimator bar */
  .mobile-estimator-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    height: 40px;
    width: 100%;
    background: #ffe014;
    color: #1a265e !important;
    font-family: 'American-Captain', sans-serif;
    font-size: 1.55rem;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    border-top: 2px solid #1a265e;
    border-bottom: 2px solid #1a265e;
    position: relative;
    z-index: 4;
    animation: amdEstPulse 2.4s ease-in-out infinite;
  }
  .mobile-estimator-bar span[class^="icon-"] { font-size: .9em; }
  .mobile-estimator-bar .est-arrow {
    background: #d91c24;
    color: #fff;
    border-radius: 50%;
    width: 1.25em;
    height: 1.25em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75em;
    margin-left: .2em;
  }
  .mobile-estimator-bar:hover,
  .mobile-estimator-bar:focus { background: #d91c24; color: #fff !important; }

  @keyframes amdEstPulse {
    0%, 100% { box-shadow: inset 0 0 0 0 rgba(217, 28, 36, 0); }
    50%      { box-shadow: inset 0 0 0 3px rgba(217, 28, 36, .85); }
  }

  /* push quick nav down by the bar height */
  .quick-nav.adjust { top: calc(5.5em + 40px); }

  /* 2 + 4. Banner: text starts 22px below the header, small bottom padding */
  #carouselExampleIndicators3 .carousel-item > .row {
    padding-top: calc(var(--amd-slider-offset, 110px) + 22px) !important;
    padding-bottom: 1.5em !important;
  }

  /* 4. We're Hiring badge sits just below the header */
  .sliderfull .hiring-floating-button {
    top: calc(var(--amd-qn-bottom, 180px) + 8px) !important;
  }

  /* 3. Slider text shows with the slide, no delay */
  #carouselExampleIndicators3 .animate__animated {
    animation-delay: 0s !important;
    animation-duration: .6s !important;
  }
}

@media screen and (max-width: 35em) {
  .quick-nav.adjust { top: calc(5.9em + 40px); }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-estimator-bar { animation: none; }
}
