/* Ramacar REV26 — mobile navigation and responsive polish */
@media (max-width: 980px){
  html.ramacar-menu-open,
  html.ramacar-menu-open body{overflow:hidden!important}

  .ramacar-home>header{z-index:100020!important}
  .ramacar-home .hamb{
    position:relative;display:grid!important;place-items:center;width:48px;height:48px;
    color:#07152b!important;background:#fff!important;border:1px solid #dfe7f1!important;
    border-radius:16px!important;box-shadow:0 10px 28px rgba(7,21,43,.10);font-size:0!important;
  }
  .ramacar-home .hamb:before,
  .ramacar-home .hamb:after,
  .ramacar-home .hamb span{
    content:"";position:absolute;left:50%;margin-left:0;width:23px;height:2.5px;background:#07152b;border-radius:9px;
    transform:translateX(-50%);transform-origin:center center!important;
    transition:transform .25s ease,opacity .2s ease,top .25s ease;
  }
  .ramacar-home .hamb:before{top:15px}
  .ramacar-home .hamb span{top:22px}
  .ramacar-home .hamb:after{top:29px}
  .ramacar-home .hamb[aria-expanded="true"]:before{top:22px;transform:translateX(-50%) rotate(45deg)}
  .ramacar-home .hamb[aria-expanded="true"] span{opacity:0}
  .ramacar-home .hamb[aria-expanded="true"]:after{top:22px;transform:translateX(-50%) rotate(-45deg)}

  .ramacar-home .mobile-panel{
    position:fixed!important;top:96px!important;left:12px!important;right:12px!important;
    width:auto!important;max-height:calc(100dvh - 108px);overflow:auto;overscroll-behavior:contain;
    padding:12px!important;border:1px solid rgba(130,191,255,.25)!important;border-radius:24px!important;
    color:#fff!important;background:linear-gradient(145deg,#0c2747 0%,#061426 72%)!important;
    box-shadow:0 28px 80px rgba(0,7,18,.46)!important;z-index:100030!important;
  }
  .ramacar-home .mobile-panel.open{display:grid!important;gap:4px}
  .ramacar-home .mobile-panel a{
    display:flex!important;align-items:center;min-height:49px;padding:12px 15px!important;
    color:#f7fbff!important;text-shadow:none!important;text-decoration:none;border-radius:14px!important;
    font-size:16px!important;font-weight:800!important;line-height:1.25;
  }
  .ramacar-home .mobile-panel a:hover,
  .ramacar-home .mobile-panel a:focus-visible,
  .ramacar-home .mobile-panel a:active{background:#ffffff13!important;color:#7fc6ff!important}
  .ramacar-home .mobile-panel .mobile-contact-links{
    display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:7px;padding-top:11px;
    border-top:1px solid #ffffff1c;
  }
  .ramacar-home .mobile-panel .mobile-contact-links a{justify-content:center;font-size:14px!important}
  .ramacar-home .mobile-panel .mobile-contact-links a:last-child{background:#087245;color:#fff!important}

  .site-header-shell{z-index:100020!important}
  .site-header-shell .mobile-toggle{position:relative;z-index:100032!important;flex:0 0 46px!important;width:46px;height:46px;border-radius:15px!important}
  .site-header-shell .mobile-toggle:before,
  .site-header-shell .mobile-toggle:after{
    content:"";position:absolute;top:50%;left:50%;width:23px;height:2px;border-radius:8px;
    background:currentColor;opacity:0;transform:translate(-50%,-50%);transition:transform .22s ease,opacity .18s ease;
  }
  .site-header-shell .mobile-toggle[aria-expanded="true"] svg{opacity:0}
  .site-header-shell .mobile-toggle[aria-expanded="true"]:before{opacity:1;transform:translate(-50%,-50%) rotate(45deg)}
  .site-header-shell .mobile-toggle[aria-expanded="true"]:after{opacity:1;transform:translate(-50%,-50%) rotate(-45deg)}
  .site-header-shell.ramacar-header .nav-links.open{
    position:fixed!important;top:var(--ramacar-mobile-menu-top,86px)!important;left:12px!important;right:12px!important;
    display:grid!important;align-items:stretch!important;gap:3px!important;width:auto!important;
    max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain;
    padding:13px!important;border:1px solid rgba(130,191,255,.25)!important;border-radius:24px!important;
    color:#fff!important;background:linear-gradient(145deg,#0c2747 0%,#061426 72%)!important;
    box-shadow:0 28px 80px rgba(0,7,18,.46)!important;z-index:100030!important;
  }
  .site-header-shell.ramacar-header .nav-links.open>a,
  .site-header-shell.ramacar-header .nav-links.open .ramacar-mobile-brands>a{
    display:flex!important;align-items:center;min-height:48px;padding:12px 15px!important;
    color:#f7fbff!important;text-decoration:none!important;text-shadow:none!important;
    border-radius:14px!important;font-size:15px!important;font-weight:800!important;line-height:1.25;
  }
  .site-header-shell.ramacar-header .nav-links.open>a:hover,
  .site-header-shell.ramacar-header .nav-links.open>a:focus-visible,
  .site-header-shell.ramacar-header .nav-links.open .ramacar-mobile-brands>a:hover,
  .site-header-shell.ramacar-header .nav-links.open .ramacar-mobile-brands>a:focus-visible{background:#ffffff13!important;color:#7fc6ff!important}
  .site-header-shell.ramacar-header .nav-links.open>a[data-mobile-newcars-label]{
    min-height:42px;padding-bottom:5px!important;color:#7fc6ff!important;pointer-events:none;
    font-size:12px!important;letter-spacing:.12em!important;text-transform:uppercase;
  }
  .ramacar-mobile-brands{display:grid!important;grid-template-columns:repeat(3,1fr);gap:7px;margin:0 0 7px}
  .site-header-shell.ramacar-header .nav-links.open .ramacar-mobile-brands>a{
    justify-content:center;min-height:43px!important;padding:9px!important;background:#ffffff0d;border:1px solid #ffffff17;
  }
  .portable-brand-menu{z-index:100040!important}
}

@media (max-width: 620px){
  .ramacar-home .mobile-panel{top:92px!important}
  .site-header-shell.ramacar-header .nav-links.open{top:var(--ramacar-mobile-menu-top,78px)!important}

  /* The supplied 3:2 finance artwork becomes a large, readable mobile crop. */
  .ramacar-home .finance-image-banner{
    width:calc(100vw - 20px)!important;margin-left:calc(50% - 50vw + 10px)!important;
    min-height:540px;border-radius:26px!important;background:#07111f!important;
  }
  .ramacar-home .finance-image-banner img{
    width:100%!important;height:540px!important;min-height:540px!important;max-width:none!important;
    object-fit:cover!important;object-position:left center!important;
  }
  .ramacar-home .finance-image-banner:after{
    content:"";position:absolute;inset:0;pointer-events:none;
    background:linear-gradient(90deg,transparent 66%,rgba(7,17,31,.94) 100%);
  }

  .ramacar-home .journey-bottom>div.mobile-icon-live:before,
  .ramacar-home .journey-step.mobile-icon-live .journey-icon,
  .loadcars-page .lc-stripe-item.mobile-icon-live svg,
  .loadcars-page .lc-about>div.mobile-icon-live svg,
  .rc-contact-page .rc-topic.mobile-icon-live .rc-icon,
  .rc-contact-page .rc-address.mobile-icon-live .rc-icon,
  .service-row.mobile-icon-live .ramacar-3d-icon{
    animation:ramacar-mobile-icon-pop 1.05s cubic-bezier(.2,.8,.2,1) both;
  }
  .ramacar-home .journey-bottom>div:active:before,
  .ramacar-home .journey-step:active .journey-icon,
  .loadcars-page .lc-stripe-item:active svg,
  .rc-contact-page .rc-topic:active .rc-icon,
  .service-row:active .ramacar-3d-icon{transform:scale(.9)!important;transition:transform .16s ease}
}

@keyframes ramacar-mobile-icon-pop{
  0%{opacity:.35;transform:translateY(14px) scale(.76) rotate(-5deg)}
  55%{opacity:1;transform:translateY(-5px) scale(1.09) rotate(2deg)}
  100%{opacity:1;transform:translateY(0) scale(1) rotate(0)}
}

@media (prefers-reduced-motion:reduce){
  .ramacar-home .journey-bottom>div:before,.journey-icon,.ramacar-3d-icon,
  .loadcars-page .lc-stripe-item svg,.rc-contact-page .rc-icon{animation:none!important;transition:none!important}
}
