/* Abrish Construction v51 — fixed, accessible, mobile navigation.
   A small additive CSS layer; no change to the original WordPress-style desktop layout. */
@media screen and (max-width:1000px) {
  html { --abr51-header-h:calc(68px + env(safe-area-inset-top, 0px));scroll-padding-top:calc(var(--abr51-header-h) + 12px); }
  html body#abr-premium { padding-top:var(--abr51-header-h) !important; }
  html body #ccwHeader.abr37-header,
  html body #ccwHeader.abr37-header.is-scrolled,
  html body #ccwHeader.abr37-header.menu-open {
    position:fixed !important;top:0 !important;left:0 !important;right:0 !important;
    height:var(--abr51-header-h) !important;min-height:var(--abr51-header-h) !important;
    padding-top:env(safe-area-inset-top, 0px) !important;
    background:#071f33 !important;box-shadow:0 5px 21px rgba(0,18,34,.17) !important;
    z-index:2000 !important;
  }
  html body #ccwHeader.abr37-header.menu-open {background:#061a2c !important;}
  html body #ccwHeader.abr37-header .ccw-nav-wrap.abr37-container {
    height:68px !important;min-height:68px !important;
    padding:0 max(15px, env(safe-area-inset-right, 0px)) 0 max(15px, env(safe-area-inset-left, 0px)) !important;
    gap:8px !important;
  }
  html body #ccwHeader.abr37-header .ccw-brand.abr37-brand {gap:9px !important;max-width:calc(100% - 112px) !important;overflow:hidden;}
  html body #ccwHeader.abr37-header .abr37-brand-text {min-width:0 !important;}
  html body #ccwHeader.abr37-header .abr37-brand-text strong {font-size:18px !important;line-height:1 !important;}
  html body #ccwHeader.abr37-header .abr37-brand-text small {font-size:7.8px !important;line-height:1.16 !important;}
  html body #ccwHeader.abr37-header .ccw-logo-img.abr37-logo {height:43px !important;width:43px !important;max-height:43px !important;max-width:43px !important;min-width:43px !important;}
  html body #ccwHeader.abr37-header .abrp-search-trigger {flex:0 0 42px !important;width:42px !important;height:44px !important;margin:0 3px 0 auto !important;border-radius:10px;}
  html body #ccwHeader.abr37-header .ccw-menu-toggle.abr37-hamburger {
    flex:0 0 44px !important;width:44px !important;height:44px !important;border-radius:10px !important;
    margin:0 !important;gap:5px !important;touch-action:manipulation;
    border-color:rgba(255,255,255,.32) !important;background:#14354a !important;
  }
  html body #ccwHeader.abr37-header .abr37-hamburger span {width:21px !important;}
  html body #ccwHeader.abr37-header.menu-open .abr37-hamburger span:nth-child(1) {transform:translateY(7px) rotate(45deg) !important;}
  html body #ccwHeader.abr37-header.menu-open .abr37-hamburger span:nth-child(3) {transform:translateY(-7px) rotate(-45deg) !important;}
  html body #ccwHeader.abr37-header .abr37-overlay {
    inset:var(--abr51-header-h) 0 0 0 !important;
    background:rgba(0,14,27,.67) !important;
    -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
    touch-action:none;
  }
  html body #ccwHeader.abr37-header .ccw-mobile-panel.abr37-mobile-panel {
    top:var(--abr51-header-h) !important;bottom:0 !important;right:0 !important;left:auto !important;
    width:min(420px,100vw) !important;height:calc(100vh - var(--abr51-header-h)) !important;
    height:calc(100dvh - var(--abr51-header-h)) !important;
    background:#071f33 !important;border-left:1px solid #345168 !important;
    box-shadow:-20px 15px 50px rgba(0,17,30,.32) !important;
    overscroll-behavior:contain;
    will-change:transform;
  }
  html body #ccwHeader.abr37-header .abr37-mobile-scroll {
    display:flex !important;flex-direction:column !important;
    width:100% !important;height:100% !important;min-height:0 !important;
    padding:0 !important;overflow:hidden !important;
  }
  html body #ccwHeader.abr37-header .abr51-mobile-head {
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:17px 19px 15px;border-bottom:1px solid rgba(229,244,255,.12);
    background:linear-gradient(100deg,#0c314c,#09273e);
    flex:0 0 auto;
  }
  html body #ccwHeader.abr37-header .abr51-mobile-head-copy{min-width:0;display:flex;flex-direction:column;gap:4px;}
  html body #ccwHeader.abr37-header .abr51-mobile-kicker{font-size:9px;font-weight:800;letter-spacing:.16em;color:#ff8e4f;line-height:1.2;}
  html body #ccwHeader.abr37-header .abr51-mobile-head-copy strong{font-size:17px;font-weight:850;letter-spacing:-.02em;line-height:1.25;color:#fff;}
  html body #ccwHeader.abr37-header .abr51-mobile-close{
    display:grid !important;place-items:center !important;flex:0 0 40px;
    width:40px;height:40px;padding:0;background:rgba(255,255,255,.08) !important;
    border:1px solid rgba(255,255,255,.23) !important;border-radius:10px;color:#fff !important;
  }
  html body #ccwHeader.abr37-header .abr51-mobile-close svg{width:19px;height:19px;}
  html body #ccwHeader.abr37-header .abr51-mobile-body {
    flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;
    padding:17px 17px 20px;
    -webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:pan-y;
    scrollbar-color:#386079 transparent;scrollbar-width:thin;
  }
  html body #ccwHeader.abr37-header .abrp-mobile-search {
    display:flex !important;align-items:center !important;gap:12px !important;
    width:100% !important;min-height:49px !important;padding:0 15px !important;
    margin:0 0 20px !important;border-radius:10px !important;
    background:#153c57 !important;border:1px solid #315d78 !important;
    font-size:12px !important;font-weight:700 !important;letter-spacing:normal !important;
    color:#e9f2fa !important;text-align:left !important;
  }
  html body #ccwHeader.abr37-header .abrp-mobile-search svg {height:18px;width:18px;flex:none;color:#ff8a40;}
  html body #ccwHeader.abr37-header .abrp-mobile-search span:nth-child(2){min-width:0;flex:1;}
  html body #ccwHeader.abr37-header .abr51-search-chevron {color:#ff8a40 !important;font-size:18px;font-weight:500;}
  html body #ccwHeader.abr37-header .abr37-mobile-label {
    padding:0 8px 10px !important;color:#8fb1c8 !important;
    font-size:9px !important;font-weight:850 !important;letter-spacing:.18em !important;
  }
  html body #ccwHeader.abr37-header .ccw-mobile-links.abr37-mobile-links {gap:4px !important;}
  html body #ccwHeader.abr37-header .ccw-mobile-links.abr37-mobile-links > a.abr51-mobile-link,
  html body #ccwHeader.abr37-header .abr37-mobile-row > a.abr51-mobile-link {
    position:relative !important;display:flex !important;align-items:center !important;gap:13px !important;
    border:1px solid transparent !important;border-bottom-color:rgba(226,242,252,.075) !important;
    padding:9px 11px !important;margin:0 !important;min-height:53px !important;
    width:100% !important;border-radius:9px !important;
    font-size:12px !important;font-weight:800 !important;letter-spacing:.045em !important;
    color:#e6f0fa !important;background:transparent !important;
    text-decoration:none !important;touch-action:manipulation;
  }
  html body #ccwHeader.abr37-header .ccw-mobile-links.abr37-mobile-links > a.abr51-mobile-link:is(:hover,:focus-visible),
  html body #ccwHeader.abr37-header .abr37-mobile-row > a.abr51-mobile-link:is(:hover,:focus-visible) {background:rgba(255,255,255,.06) !important;}
  html body #ccwHeader.abr37-header .abr37-mobile-icon {
    display:grid !important;place-items:center !important;
    background:rgba(255,255,255,.055) !important;border:1px solid rgba(255,255,255,.07) !important;
    width:34px !important;height:34px !important;flex:0 0 34px !important;
    border-radius:8px !important;color:#a8d1e8 !important;
  }
  html body #ccwHeader.abr37-header .abr51-svg{display:block;width:18px;height:18px;}
  html body #ccwHeader.abr37-header .abr51-mobile-text{flex:1;min-width:0;}
  html body #ccwHeader.abr37-header .abr51-mobile-arrow{font-size:16px !important;line-height:1;color:#789aaf !important;}
  html body #ccwHeader.abr37-header .ccw-mobile-links.abr37-mobile-links a.abr37-active {
    background:rgba(255,105,25,.12) !important;border-color:rgba(255,111,33,.22) !important;
    color:#ffad79 !important;
  }
  html body #ccwHeader.abr37-header .abr37-mobile-links a.abr37-active .abr37-mobile-icon {
    background:rgba(255,103,23,.2) !important;border-color:rgba(255,103,23,.19) !important;color:#ff9a5e !important;
  }
  html body #ccwHeader.abr37-header .abr37-mobile-category {border:0 !important;}
  html body #ccwHeader.abr37-header .abr37-mobile-row{gap:6px !important;}
  html body #ccwHeader.abr37-header .abr37-mobile-row > a {flex:1 1 auto !important;min-width:0 !important;}
  html body #ccwHeader.abr37-header .abr37-mobile-expand {
    width:45px !important;height:49px !important;flex:0 0 45px !important;
    border:1px solid rgba(255,255,255,.1) !important;border-radius:9px !important;
    display:grid !important;place-items:center !important;background:#14344d !important;
    transform:none !important;color:#e5effa !important;touch-action:manipulation;
  }
  html body #ccwHeader.abr37-header .abr37-mobile-expand svg {width:20px;height:20px;transition:transform .2s ease;}
  html body #ccwHeader.abr37-header .abr37-mobile-category.expanded .abr37-mobile-expand {transform:none !important;}
  html body #ccwHeader.abr37-header .abr37-mobile-category.expanded .abr37-mobile-expand svg {transform:rotate(180deg);}
  html body #ccwHeader.abr37-header .abr37-mobile-submenu {
    margin:3px 0 5px 46px !important;padding:5px 8px !important;
    background:#0d2c43 !important;border-left:2px solid #ff6717 !important;border-radius:0 8px 8px 0 !important;
  }
  html body #ccwHeader.abr37-header .abr37-mobile-submenu a {min-height:43px;padding:11px 10px !important;line-height:1.4 !important;font-size:12px !important;font-weight:600 !important;}
  html body #ccwHeader.abr37-header .abr51-mobile-bottom {
    flex:0 0 auto !important;padding:13px 17px calc(12px + env(safe-area-inset-bottom,0px)) !important;
    border-top:1px solid rgba(255,255,255,.13) !important;background:#071c2e !important;
    box-shadow:0 -9px 26px rgba(0,11,21,.18);
  }
  html body #ccwHeader.abr37-header a.abr37-mobile-quote {
    display:flex !important;align-items:center !important;justify-content:space-between !important;
    min-height:49px !important;width:100% !important;gap:16px !important;margin:0 !important;
    padding:0 18px !important;border-radius:9px !important;background:#ff6717 !important;
    text-decoration:none !important;font-size:11px !important;font-weight:900 !important;
    letter-spacing:.075em !important;color:#fff !important;
  }
  html body #ccwHeader.abr37-header a.abr37-mobile-quote span:last-child{font-size:19px;}
  html body #ccwHeader.abr37-header .abr51-mobile-quick{display:flex;justify-content:space-between;gap:8px;padding:10px 1px 0;}
  html body #ccwHeader.abr37-header .abr51-mobile-quick a {
    display:flex;align-items:center;justify-content:center;flex:1 1 0;min-height:38px;
    text-align:center;color:#d5e8f4 !important;border:1px solid rgba(255,255,255,.17);
    border-radius:8px;background:rgba(255,255,255,.045);font-size:10px;font-weight:850;
    letter-spacing:.08em;text-decoration:none !important;
  }
  html body #ccwHeader.abr37-header .abr37-mobile-footnote {font-size:9px !important;margin:10px 0 0 !important;line-height:1.4 !important;}
  html.abr51-menu-open, html body.ccw-menu-lock {
    overflow:hidden !important;overscroll-behavior:none !important;
  }
  html body.ccw-menu-lock {touch-action:auto !important;}
  html body #ccwHeader.abr37-header .ccw-mobile-panel.abr37-mobile-panel:not([aria-hidden="false"]) {pointer-events:none !important;}
}
@media screen and (max-width:680px){
  html body #ccwHeader.abr37-header .ccw-mobile-panel.abr37-mobile-panel {width:100vw !important;}
}
@media screen and (max-width:360px){
  html body #ccwHeader.abr37-header .ccw-nav-wrap.abr37-container {padding-inline:10px !important;gap:4px !important;}
  html body #ccwHeader.abr37-header .ccw-logo-img.abr37-logo {height:40px !important;width:40px !important;max-width:40px !important;min-width:40px !important;max-height:40px !important;}
  html body #ccwHeader.abr37-header .abr37-brand-text strong{font-size:16px !important;}
  html body #ccwHeader.abr37-header .abr37-brand-text small{font-size:7px !important;}
  html body #ccwHeader.abr37-header .abrp-search-trigger {width:39px !important;flex-basis:39px !important;margin:0 !important;}
  html body #ccwHeader.abr37-header .ccw-menu-toggle.abr37-hamburger{width:42px !important;flex-basis:42px !important;}
  html body #ccwHeader.abr37-header .abr51-mobile-body{padding:14px 12px;}
}
@media screen and (max-width:1000px) and (max-height:520px){
  html body #ccwHeader.abr37-header .abr51-mobile-head{padding:8px 16px;}
  html body #ccwHeader.abr37-header .abr51-mobile-bottom{padding-top:8px !important;}
  html body #ccwHeader.abr37-header .abr37-mobile-footnote{display:none;}
}
@media(prefers-reduced-motion:reduce){
  html body #ccwHeader.abr37-header .abr37-mobile-expand svg {transition:none !important;}
  html body #ccwHeader.abr37-header .ccw-mobile-panel.abr37-mobile-panel {transition:none !important;}
}
