/* Nawat Tech V6.0: unified footer, contrast, spacing */
.nw-footer-v60{box-sizing:border-box;width:100%;max-width:none;margin:0!important;padding:38px max(24px,calc((100vw - 1320px)/2)) 22px!important;border-top:1px solid var(--border,#303b60);background:#0a1025;color:#e8ecff;line-height:1.75}
.nw-footer-v60 *{box-sizing:border-box}.nw-footer-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:center;padding-bottom:25px}.nw-footer-contact{text-align:start;min-width:0}.nw-footer-company{text-align:end;min-width:0}.nw-footer-brand{text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}.nw-footer-brand img{display:block;width:clamp(165px,14vw,220px)!important;max-width:100%!important;height:auto!important;max-height:95px!important;object-fit:contain}.nw-footer-brand .nw-tagline{font-size:14px;color:#b6c3e2}.nw-footer-v60 a{color:inherit;text-decoration:none}.nw-footer-v60 a:hover{color:#a99aff}.nw-footer-company strong{display:block;font-weight:750}.nw-footer-company p,.nw-footer-contact p{margin:3px 0}.nw-footer-v60 .nw-license{font-size:13px;color:#b5c3df}.nw-footer-bottom{border-top:1px solid #34415c;padding-top:18px;display:flex;justify-content:space-between;align-items:center;gap:24px}.nw-footer-legal{display:flex;flex-wrap:wrap;gap:10px 24px;justify-content:flex-start}.nw-footer-legal a{font-size:14px}.nw-footer-copy{font-size:13px;white-space:nowrap;color:#b6c3de}.nw-footer-v60[dir=rtl] .nw-footer-legal{order:2;justify-content:flex-start}.nw-footer-v60[dir=rtl] .nw-footer-copy{order:1}.nw-footer-v60[dir=ltr] .nw-footer-legal{order:1}.nw-footer-v60[dir=ltr] .nw-footer-copy{order:2}
html[data-theme=light] .nw-footer-v60{background:#f3f6ff!important;color:#19294b!important;border-color:#cdd8ef!important}html[data-theme=light] .nw-footer-v60 .nw-footer-bottom{border-color:#cbd6e9}html[data-theme=light] .nw-footer-v60 .nw-tagline,html[data-theme=light] .nw-footer-v60 .nw-license,html[data-theme=light] .nw-footer-v60 .nw-footer-copy{color:#405477!important}html[data-theme=light] .nw-footer-v60 a{color:#244c9d!important}html[data-theme=light] .nw-footer-v60 a:hover{color:#6240d0!important}
/* Explicit text contrast for project galleries and filter controls. */
html[data-theme=light] .case-tabs button,html[data-theme=light] .case-filters button,html[data-theme=light] .case-gallery button:not(.case-arrow),html[data-theme=light] .ref-filters button:not(.active),html[data-theme=light] .project-filters button:not(.active){background:#edf2ff!important;border:1px solid #a7b9da!important;color:#1c315b!important;opacity:1!important;text-shadow:none!important}
html[data-theme=light] .case-tabs button.selected,html[data-theme=light] .case-tabs button.active,html[data-theme=light] .ref-filters button.active,html[data-theme=light] .project-filters button.active{background:#6650ec!important;color:#fff!important;border-color:#5942d8!important}
html[data-theme=light] .case-tabs button:hover,html[data-theme=light] .ref-filters button:not(.active):hover{background:#dce7ff!important;color:#14264e!important}
html[data-theme=light] .case-gallery-head p,html[data-theme=light] .case-gallery-head h2,html[data-theme=light] .case-gallery :is(h2,h3,p,small),html[data-theme=light] .case-feature :is(h2,h3,strong,b),html[data-theme=light] .case-stats :is(h2,h3,strong,b),html[data-theme=light] .case-info :is(h2,h3,strong,b){color:#192a4c!important}
html[data-theme=light] .case-feature :is(p,li,span,small),html[data-theme=light] .case-stats :is(p,li,span,small),html[data-theme=light] .case-info :is(p,li,span,small){color:#3c5278!important}
html[data-theme=light] .case-stats,html[data-theme=light] .case-feature,html[data-theme=light] .case-info{background:#f8faff!important;border-color:#d1dcf0!important}
html[data-theme=light] .case-stats [class*=label],html[data-theme=light] .case-feature [class*=label]{color:#405477!important}
/* Reduce empty transitions, especially between the home portfolio and request form. */
#portfolio.ref-portfolio{margin-bottom:clamp(20px,3vw,42px)!important}#request.section.wrap{padding-top:clamp(20px,3vw,44px)!important}#request .section-head{margin-top:0!important}.detail-intro.section.wrap{padding-top:clamp(20px,3vw,44px)!important}
@media(max-width:760px){.nw-footer-v60{padding:28px 20px 20px!important}.nw-footer-main{grid-template-columns:1fr;gap:22px;text-align:center}.nw-footer-company,.nw-footer-contact{text-align:center}.nw-footer-brand{grid-row:1}.nw-footer-brand img{width:180px!important}.nw-footer-bottom{flex-direction:column;gap:14px;text-align:center}.nw-footer-legal{justify-content:center!important;gap:8px 16px}.nw-footer-v60[dir=rtl] .nw-footer-legal,.nw-footer-v60[dir=ltr] .nw-footer-legal{order:1}.nw-footer-copy{order:2!important}.nw-footer-contact a{overflow-wrap:anywhere}}
/* V6.1: laptop logo scale and direction-correct footer legal row */
@media (min-width: 761px) {
  .site-header .brand img,
  .nw-unified-header .brand img,
  .nw-unified-header img[src*="logo"],
  .nw-site-header img[src*="logo"] {
    width: auto !important;
    height: clamp(58px, 4.6vw, 72px) !important;
    max-width: 270px !important;
    object-fit: contain !important;
  }
  .nw-footer-brand img { width: clamp(205px, 17vw, 265px) !important; max-height: 115px !important; }
}
.nw-footer-v60[dir="rtl"] .nw-footer-legal { order: 1 !important; justify-content: flex-start; }
.nw-footer-v60[dir="rtl"] .nw-footer-copy { order: 2 !important; }
.nw-footer-v60[dir="ltr"] .nw-footer-legal { order: 1 !important; }
.nw-footer-v60[dir="ltr"] .nw-footer-copy { order: 2 !important; }
@media (max-width: 760px) {
  .nw-footer-v60[dir="rtl"] .nw-footer-legal,
  .nw-footer-v60[dir="ltr"] .nw-footer-legal { order: 1 !important; justify-content: center !important; }
  .nw-footer-v60 .nw-footer-copy { order: 2 !important; }
}
