/* AACNC standard site header: top bar + menu + service strip. Markup comes from site_header.py;
   apply_site_header.py puts it on every public page and the blog template. */
.aah-bar{background:#0c1f3f;padding:9px 5%;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;font:500 12.5px/1.3 'Poppins',sans-serif;color:rgba(255,255,255,.72)}
.aah-bar i{color:#f59e0b;font-size:13px}
.aah-bar b{color:#fff;font-weight:600}
.aah-bar-l,.aah-bar-r{display:flex;align-items:center;gap:7px;white-space:nowrap}
.aah-bar-l{justify-self:start}.aah-bar-r{justify-self:end}
.aah-bar-call{justify-self:center;display:inline-flex;align-items:center;gap:8px;background:rgba(245,158,11,.18);border:2px solid #f59e0b;padding:7px 22px;border-radius:50px;text-decoration:none;white-space:nowrap;font-size:13.5px;animation:shPulse 2.4s ease-in-out infinite}
.aah-bar-call b{color:#f59e0b}
@keyframes shPulse{50%{box-shadow:0 0 0 5px rgba(245,158,11,.16)}}

.aah{position:sticky;top:0;z-index:1000;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 5%;background:rgba(255,255,255,.97);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid #e5e9f0;box-shadow:0 2px 14px rgba(0,0,0,.05);font-family:'Poppins',sans-serif;line-height:1.3;text-align:left}
.aah *{box-sizing:border-box}
.aah-logo{display:flex;align-items:center;gap:10px;text-decoration:none;flex-shrink:0}
.aah-logo-box{width:38px;height:38px;background:linear-gradient(135deg,#f59e0b,#d97706);border-radius:9px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:17px;flex-shrink:0}
.aah-logo-txt{display:flex;flex-direction:column;align-items:flex-start;text-align:left}
.aah-logo-name{font-size:17px;font-weight:900;color:#0c1f3f;letter-spacing:-.5px;line-height:1.1}
.aah-logo-name em{font-style:normal;color:#f59e0b}
.aah-logo-sub{font-size:9px;font-weight:500;color:#64748b;letter-spacing:1.2px;text-transform:uppercase;white-space:nowrap;margin-top:2px}
.aah-sub-short{display:none}
.aah-links{display:flex;align-items:center;gap:2px}
.aah-links a{color:#475569;text-decoration:none;font-size:14px;font-weight:500;padding:8px 12px;border-radius:8px;white-space:nowrap;transition:color .2s,background .2s}
.aah-links a:hover{color:#0c1f3f;background:#f4f7fc}
.aah-links a.on{color:#0c1f3f;font-weight:600;background:#fff7e6}
.aah-links .aah-extra{display:none}
.aah-links .aah-extra i{color:#f59e0b;width:20px}
.aah-r{display:flex;align-items:center;gap:10px;flex-shrink:0}
.aah-btn{display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 15px;border:1.5px solid #e2e8f0;border-radius:10px;background:#fff;color:#0c1f3f;font:600 13.5px 'Poppins',sans-serif;text-decoration:none;white-space:nowrap;cursor:pointer;position:relative;transition:border-color .2s}
.aah-btn:hover{border-color:#f59e0b}
.aah-wa{background:linear-gradient(135deg,#f59e0b,#d97706);border-color:transparent;color:#fff;box-shadow:0 3px 12px rgba(245,158,11,.3)}
.aah-wa:hover{border-color:transparent;filter:brightness(1.05)}
.aah .cart-badge{position:absolute;top:-7px;right:-7px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#f59e0b;color:#fff;font-size:11px;font-weight:700;display:none;align-items:center;justify-content:center}
.aah .cart-badge.show{display:flex}  /* cart.js adds .show when the cart has items */
.aah-menu{display:none;width:42px;padding:0;justify-content:center;font-size:17px}

/* Service strip under the menu: the one-second "we service machines, AMC available" message */
.aah-rib{background:#fff7e6;border-bottom:1px solid #fde3a7;padding:9px 5%;display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;font:500 13.5px/1.4 'Poppins',sans-serif;color:#0c1f3f;text-align:center}
.aah-rib b{font-weight:700}
.aah-rib i{color:#d97706;margin-right:6px}
.aah-rib em{font-style:normal;color:#d97706;margin:0 2px}
.aah-rib-long a{color:#0c1f3f;font-weight:600;text-decoration:underline;text-decoration-color:#f59e0b;text-underline-offset:3px}
.aah-rib-short,.aah-rib-m{display:none}
.aah-rib-btn{background:#0c1f3f;color:#fff;font-weight:700;font-size:12.5px;padding:6px 14px;border-radius:8px;text-decoration:none;white-space:nowrap}
.aah-rib-btn:hover{background:#1a3a6b}

/* Laptops and tablets: the links move into a drop-down menu instead of wrapping */
@media(max-width:1260px){
  .aah-menu{display:inline-flex}
  .aah-links{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;background:#fff;border-bottom:1px solid #e5e9f0;box-shadow:0 14px 28px rgba(12,31,63,.12);padding:6px 5% 14px}
  .aah.open .aah-links{display:flex}
  .aah-links a{padding:13px 8px;font-size:15px;border-radius:0;border-bottom:1px solid #f1f5f9}
  .aah-links a.on{background:none;color:#d97706}
  .aah-links .aah-extra{display:block}
  .aah-links .aah-extra.aah-phone{display:none}
}
@media(max-width:1100px){
  .aah-bar{display:flex;justify-content:center;padding:8px 4%}
  .aah-bar-l,.aah-bar-r{display:none}
}
@media(max-width:860px){
  .aah-rib-long{display:none}
  .aah-rib-short{display:inline}
}
/* Phones: buttons become icons so nothing is cut off */
@media(max-width:640px){
  .aah{padding:10px 4%;gap:10px}
  .aah-r{gap:7px}
  .aah-btn{padding:0 12px;height:40px}
  .aah-lbl{display:none}
  .aah-logo-name{font-size:16px}
  .aah-logo-sub{font-size:8.5px;letter-spacing:1px}
  .aah-sub-long{display:none}
  .aah-sub-short{display:inline}
  .aah-bar-call{padding:6px 14px;font-size:12px}
  .aah-rib{font-size:12.5px;gap:6px 10px;padding:8px 4%}
  .aah-rib-l{display:none}
  .aah-rib-m{display:inline}
  .aah-rib-btn{font-size:12px;padding:5px 11px}
}
/* Small phones: the account button moves into the menu ("Login / My Orders") */
@media(max-width:480px){
  .aah-r #navAccountBtn{display:none}
  .aah-links .aah-extra.aah-phone{display:block}
}
@media(max-width:370px){.aah-logo-sub{display:none}.aah-rib{font-size:11.5px}}
