/* Dugsun shared header + footer. Edit here once; every page picks it up. */
:root{--dgx-orange:#f36b32;--dgx-orange-dark:#d94e20;--dgx-ink:#242321;--dgx-muted:#69645e;--dgx-line:#eadfd5;--dgx-bg:#fffdf9;--dgx-max:1160px}
html{scroll-padding-top:96px}
.dgx-wrap{width:min(var(--dgx-max),calc(100% - 40px));margin-inline:auto}

/* ---------- Header ---------- */
header.dgx-header{position:sticky;top:0;z-index:1000;background:rgba(255,253,249,.97);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--dgx-line);padding:0;height:auto;color:var(--dgx-ink)}
.dgx-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;min-height:78px;padding-block:10px}
.dgx-brand{display:flex;align-items:center;flex:0 0 auto;min-width:0}
.dgx-brand img{display:block;width:132px;height:auto;max-height:50px;object-fit:contain;object-position:left center}
.dgx-links{display:flex;align-items:center;justify-content:flex-end;gap:clamp(14px,2vw,28px)}
.dgx-links a{position:relative;font-family:inherit;font-size:14px;font-weight:650;line-height:1.2;color:#393632;text-decoration:none;padding:8px 0;white-space:nowrap}
.dgx-links a:hover{color:var(--dgx-orange-dark)}
.dgx-links a.active{color:var(--dgx-orange-dark);font-weight:800}
.dgx-links a.active::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;border-radius:2px;background:var(--dgx-orange)}
.dgx-links a.dgx-cta{display:inline-flex;align-items:center;justify-content:center;background:var(--dgx-orange);color:#fff;border-radius:999px;padding:11px 20px;font-weight:750;transition:background .2s ease}
.dgx-links a.dgx-cta:hover{background:var(--dgx-orange-dark);color:#fff}
.dgx-links a.dgx-cta.active{background:var(--dgx-orange-dark);color:#fff}
.dgx-links a.dgx-cta.active::after{display:none}
.dgx-links a:focus-visible,.dgx-toggle:focus-visible,.dgx-brand:focus-visible,.dgx-foot-links a:focus-visible{outline:2px solid var(--dgx-orange);outline-offset:3px;border-radius:6px}
.dgx-toggle{display:none;width:46px;height:46px;padding:0;border:1px solid var(--dgx-line);border-radius:12px;background:#fff;cursor:pointer;align-items:center;justify-content:center;flex-direction:column;gap:5px}
.dgx-toggle span{display:block;width:20px;height:2px;border-radius:2px;background:var(--dgx-ink);transition:transform .2s ease,opacity .2s ease}
.dgx-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.dgx-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.dgx-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

@media (max-width:980px){
  .dgx-bar{min-height:68px;flex-wrap:wrap}
  .dgx-brand img{width:118px}
  .dgx-toggle{display:flex}
  .dgx-links{display:none;order:3;flex:1 0 100%;flex-direction:column;align-items:stretch;gap:0;padding:4px 0 14px;border-top:1px solid var(--dgx-line)}
  .dgx-links.open{display:flex}
  .dgx-links a{font-size:16px;padding:14px 4px;min-height:48px;display:flex;align-items:center;border-bottom:1px solid #f3ebe3}
  .dgx-links a.active::after{display:none}
  .dgx-links a.active{background:#fff3ea;border-radius:8px;padding-left:12px}
  .dgx-links a.dgx-cta{margin-top:12px;border-bottom:0;justify-content:center;padding:14px 20px}
}
@media (max-width:520px){.dgx-wrap{width:min(var(--dgx-max),calc(100% - 28px))}}

/* ---------- Footer ---------- */
footer.dgx-footer{background:var(--dgx-bg);color:var(--dgx-muted);border-top:1px solid var(--dgx-line);padding:44px 0 26px;font-family:inherit}
.dgx-foot-top{display:flex;justify-content:space-between;align-items:flex-start;gap:32px 48px;flex-wrap:wrap;padding-bottom:30px}
.dgx-foot-brand{max-width:380px}
.dgx-foot-brand .dgx-brand img{width:128px}
.dgx-foot-blurb{margin:14px 0 0;font-size:13px;line-height:1.65;color:var(--dgx-muted)}
.dgx-foot-links{display:grid;grid-template-columns:repeat(2,auto);gap:10px 44px}
.dgx-foot-links a{font-size:14px;font-weight:600;color:#393632;text-decoration:none;padding:3px 0}
.dgx-foot-links a:hover{color:var(--dgx-orange-dark)}
.dgx-foot-links a.active{color:var(--dgx-orange-dark)}
.dgx-foot-bottom{display:flex;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;border-top:1px solid var(--dgx-line);padding-top:20px;font-size:12px;color:#8a837b}
@media (max-width:600px){footer.dgx-footer{padding:34px 0 22px}.dgx-foot-top{flex-direction:column;gap:26px}.dgx-foot-links{grid-template-columns:1fr 1fr;gap:6px 20px;width:100%}.dgx-foot-links a{padding:9px 0}}

/* ---------- Forms: spam trap + mobile-friendly inputs ---------- */
.dgx-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
form input,form select,form textarea{font-size:16px}  /* 16px stops iOS zoom-on-focus */
form button[type="submit"]{min-height:48px}

/* ---------- Page-wide mobile safety net ---------- */
body{max-width:100%;overflow-x:clip}  /* clip (not hidden) keeps the sticky header working */
img,video,svg{max-width:100%}
