/* EzyProcure Construction — production responsive fixes */
html,body{max-width:100%;overflow-x:hidden}img,svg,video{max-width:100%}input,select,textarea,button{max-width:100%}

/* Public website */
@media(max-width:980px){
  .site-header{min-height:72px;height:auto;padding:9px 18px;position:sticky;top:0;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
  .brand{min-width:0}.brand img{width:178px;height:52px;object-fit:contain}
  .menu-toggle{display:block!important;margin-left:auto;position:relative;z-index:80}
  .nav{display:none!important;position:absolute;left:0;right:0;top:100%;width:100%;padding:10px 16px 18px;background:#0b0c0e;border-top:1px solid rgba(255,255,255,.08);box-shadow:0 18px 36px rgba(0,0,0,.28);flex-direction:column!important;align-items:stretch!important;gap:4px!important;max-height:calc(100vh - 72px);overflow-y:auto}
  .nav.open{display:flex!important}.nav a{display:block;width:100%;padding:12px 10px;border-radius:7px;font-size:13px}.nav-login,.nav-cta{width:100%;text-align:center;margin-top:3px}
  .hero,.hero-content{min-height:auto!important}.hero-content{grid-template-columns:1fr!important;gap:28px!important;padding:48px 0!important}.hero-copy{max-width:760px}.quote-card.compact{max-height:none!important;overflow:visible!important}
  .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.package-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.package-card.featured{transform:none!important}
  .calculator-grid,.turnkey-grid,.why-grid,.split-heading{grid-template-columns:1fr!important;gap:34px!important}.project-grid{grid-template-columns:1fr 1fr!important}.project-grid .project-card:first-child{grid-column:1/-1}
  .process-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.insight-grid{grid-template-columns:1fr 1fr!important}.cta-inner{align-items:flex-start!important;flex-direction:column!important}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:650px){
  .container{width:calc(100% - 28px)!important;max-width:none!important}.site-header{padding:8px 14px;min-height:66px}.brand{max-width:calc(100% - 54px)}.brand img{width:158px;height:46px}.menu-toggle{font-size:25px}.nav{max-height:calc(100vh - 66px)}
  .hero-content{padding:38px 0!important;gap:24px!important}.hero h1{font-size:clamp(38px,11vw,50px)!important;line-height:1.02!important}.hero-lead{font-size:14px!important;line-height:1.65!important;margin:16px 0 20px!important}
  .hero-actions{display:grid!important;grid-template-columns:1fr!important}.hero-actions .btn{width:100%}.hero-stats{grid-template-columns:1fr!important;gap:10px!important;margin-top:24px!important}.hero-stats div{padding:9px 0 9px 12px}
  .quote-card{border-radius:13px!important;padding:20px 16px!important}.quote-title-wrap h2{font-size:24px!important}.quote-form-compact{grid-template-columns:1fr!important}.full-field{grid-column:auto!important}
  .trust-grid{grid-template-columns:1fr 1fr!important}.trust-grid div{padding:15px 10px!important;min-width:0}.trust-grid strong{font-size:10px!important}
  .section,.packages-section,.turnkey,.process-section,.why,.insights-section{padding:58px 0!important}.section-heading h2,.turnkey-copy h2,.why h2,.calculator-grid h2{font-size:34px!important}.split-heading{margin-bottom:28px!important}
  .service-grid,.package-grid,.project-grid,.process-grid,.insight-grid,.footer-grid{grid-template-columns:1fr!important}.project-grid .project-card:first-child{grid-column:auto}.service-card{min-height:330px!important}.project-card{min-height:340px!important}.package-card{padding:22px 18px!important}
  .calculator-section{padding:54px 0!important}.calculator-card{grid-template-columns:1fr!important;padding:18px!important}.calculator-card .btn,.calculator-card .calc-result,.calculator-card>small{grid-column:auto!important}
  .turnkey-image{min-height:340px!important}.floating-badge{right:12px!important;bottom:14px!important;max-width:calc(100% - 24px)}.why-items{grid-template-columns:1fr!important}
  .cta-section{padding:42px 0!important}.cta-inner h2{font-size:30px!important}.cta-actions{width:100%;display:grid!important;grid-template-columns:1fr!important}.cta-actions .btn{width:100%}
  .footer{padding-top:42px!important}.footer-bottom{flex-direction:column!important;align-items:flex-start!important;gap:8px!important}.package-table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
}

/* Admin dashboard cards/tabs */
.module-card{cursor:pointer;position:relative;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.module-card:hover,.module-card:focus-visible{transform:translateY(-2px);border-color:#c9982d;box-shadow:0 12px 28px rgba(0,0,0,.09);outline:none}.module-card:after{content:'Open →';display:block;margin-top:13px;color:#9a721f;font-size:10px;font-weight:800}
.super-nav button.active{background:#2b2e33!important;color:#e3bf68!important;box-shadow:inset 3px 0 0 #c9982d}

@media(max-width:1100px){
  .admin-shell{grid-template-columns:1fr!important}.super-nav{position:sticky!important;top:80px!important;height:auto!important;display:flex!important;align-items:center!important;gap:6px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:9px 12px!important;z-index:45;scrollbar-width:thin}.super-nav .label{display:none!important}.super-nav button,.super-nav a{width:auto!important;min-width:max-content!important;flex:0 0 auto!important;white-space:nowrap!important;padding:10px 12px!important}.super-nav button.active{box-shadow:inset 0 -3px 0 #c9982d}
  .cms-grid,.module-grid,.package-editor{grid-template-columns:repeat(2,minmax(0,1fr))!important}.legal-links{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px){
  .portal-top{min-height:68px!important;height:auto!important;padding:8px 12px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;flex-wrap:wrap!important}.portal-top .brand-wrap{min-width:0;gap:8px!important}.portal-top .portal-brand img{width:142px!important;height:44px!important}.portal-top .portal-name{display:none!important}.portal-top .admin-badge{font-size:8px!important;padding:6px 8px!important}.portal-top .top-actions{margin-left:auto!important;gap:7px!important}.portal-top .top-actions .link-btn{font-size:10px!important;padding:6px!important}
  .super-nav{top:68px!important;padding:8px 10px!important}.super-main{padding:16px 13px!important;min-width:0!important}.cms-grid,.module-grid,.package-editor,.legal-links,.two-col,.two-field,.three-field{grid-template-columns:1fr!important}.cms-card,.module-card,.panel{min-width:0!important}.page-title{display:block!important;margin-bottom:18px!important}.page-title h1{font-size:30px!important;line-height:1.12!important}.page-title p{font-size:11px!important;line-height:1.55!important}.row-actions{display:grid!important;grid-template-columns:1fr!important}.row-actions>*{width:100%!important}.form-grid input,.form-grid select,.form-grid textarea{font-size:16px!important}.table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch}.table-wrap table{min-width:680px}.cms-card strong{font-size:23px!important}
}
