/* SWD Header — logo left, menu centre, About + CTA right; hides on scroll down, compact (icon only) on scroll up. */
.swd.swd-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px var(--gut); transition: background .3s, box-shadow .3s, transform .35s ease, padding .3s; }
body.admin-bar .swd.swd-header { top: var(--wp-admin--admin-bar--height, 32px); }
.swd.swd-header.is-hidden { transform: translateY(-110%); }
body.admin-bar .swd.swd-header.is-hidden { transform: translateY(calc(-110% - var(--wp-admin--admin-bar--height, 32px))); }
.swd.swd-header.is-solid { background: rgba(20, 26, 44, .97); box-shadow: 0 1px 0 var(--edge); padding-top: 8px; padding-bottom: 8px; }
.swd-header .hdr__bar { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.swd-header .brand { justify-self: start; display: grid; align-items: center; height: 47px; text-decoration: none; transition: height .3s; }
.swd-header .brand > * { grid-area: 1 / 1; transition: opacity .3s, transform .3s; }
.swd-header .brand__full { width: 146px; height: auto; }
.swd-header .brand__icon { height: 34px; opacity: 0; transform: scale(.8); }
.swd.swd-header.is-solid .brand { height: 40px; }
.swd-header.is-solid:not(.hdr--noicon) .brand__full { opacity: 0; transform: scale(.9); }
.swd-header.is-solid .brand__icon { opacity: 1; transform: none; }
.swd-header.is-solid .nav a, .swd-header.is-solid .pill__link { padding-top: 9px; padding-bottom: 9px; font-size: 16px; }
.swd-header.is-solid .btn--sm { height: 40px; }
.swd-header .btn--sm, .swd-header .nav a, .swd-header .pill__link { transition: height .3s, padding .3s, font-size .3s, background .2s; }
.swd-header .nav { display: flex; gap: 4px; }
.swd-header .hdr__r { justify-self: end; display: flex; align-items: center; gap: 6px; }
.swd-header .nav a, .swd-header .pill__link { padding: 12px 18px; border-radius: 12px; font-size: 17px; font-weight: 500; letter-spacing: -.02em; color: #fff; text-decoration: none; }
.swd-header .nav a:hover, .swd-header .pill__link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.swd-header .burger, .swd-header .drawer { display: none; }

/* status light */
.swd-header .hdr__status { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; margin-right: 6px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--edge); font-size: 14px; font-weight: 500; color: #C9D1E3; text-decoration: none; white-space: nowrap; transition: background .2s; }
.swd-header .hdr__status:hover { background: rgba(255, 255, 255, .06); }
.swd-header .hdr__status .live { width: 7px; height: 7px; }
.swd-header.is-solid .hdr__status-t { display: none; }
.swd-header.is-solid .hdr__status { padding: 0 12px; margin-right: 2px; }

/* floating call to action */
.swd.swd-float { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 30px; border-radius: 16px; background: var(--acc); color: var(--ink); font-family: var(--f); font-size: 20px; font-weight: 500; line-height: 1; letter-spacing: -.02em; text-decoration: none; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); transition: transform .25s, opacity .25s, background .2s; }
.swd-float svg { width: 16px; height: 16px; }
.swd-float:hover { background: #fff; color: var(--ink); }
.swd.swd-float.is-off { opacity: 0; transform: translateY(20px); pointer-events: none; }

@media (max-width: 1180px) {
	.swd-header .hdr__status-t { display: none; }
	.swd-header .hdr__status { padding: 0 12px; }
	.swd-header .nav a { padding: 12px 13px; font-size: 16px; }
}
@media (max-width: 980px) {
	.swd.swd-header { padding: 10px var(--gut); background: rgba(20, 26, 44, .97); }
	.swd-header .hdr__bar { grid-template-columns: 1fr auto; }
	.swd-header .brand img { width: 118px; }
	.swd-header .nav, .swd-header .pill__link { display: none; }
	.swd-header .burger { display: grid; place-content: center; gap: 6px; width: 46px; height: 50px; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0; padding: 0; cursor: pointer; }
	.swd-header .burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s; }
	.swd-header .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
	.swd-header .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
	.swd-header .drawer:not([hidden]) { display: grid; position: fixed; top: 76px; left: 12px; right: 12px; padding: 12px 22px 24px; border-radius: 22px; background: #1A2138; box-shadow: inset 0 0 0 1px var(--edge), 0 30px 60px -20px rgba(0, 0, 0, .6); color: #fff; max-height: calc(100vh - 90px); overflow-y: auto; }
	body.admin-bar .swd-header .drawer:not([hidden]) { top: calc(76px + var(--wp-admin--admin-bar--height, 46px)); }
	.swd-header .drawer a:not(.btn) { font-size: 24px; font-weight: 500; letter-spacing: -.03em; color: #fff; text-decoration: none; padding: 13px 0; border-bottom: 1px solid var(--edge); }
	.swd-header .drawer .btn { margin-top: 20px; }
	.swd-header .drawer a.drawer__tel:not(.btn) { border: 0; text-align: center; font-size: 17px; padding: 16px 0 0; color: var(--muted); }
	.swd.swd-float { display: none; }
}
/* client login link (1.4.0) */
.swd-header .hdr__login { display: inline-flex; align-items: center; gap: 7px; }
.swd-header .hdr__login svg { width: 17px; height: 17px; flex: none; }
.swd-header .drawer a.drawer__login:not(.btn) { display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; padding: 18px 0 0; font-size: 17px; }
.swd-header .drawer__login svg { width: 18px; height: 18px; }
@media (max-width: 1100px) { .swd-header .hdr__login span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.swd-header .hdr__login { white-space: nowrap; }

/* ---------- mega menu (1.4.0, desktop only) ---------- */
.swd-header .hdr__bar { position: relative; }
.swd-header .nav__item { display: flex; }
.swd-header .nav__item > a { display: inline-flex; align-items: center; gap: 6px; }
.swd-header .nav__chev { width: 12px; height: 12px; opacity: .7; transition: transform .2s; }
.swd-header .mega { position: absolute; top: 100%; left: 50%; z-index: 30; width: min(1080px, calc(100vw - 2 * var(--gut))); padding-top: 14px; transform: translate(-50%, 6px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.swd-header .nav__item:hover .mega, .swd-header .nav__item:focus-within .mega, .swd-header .nav__item.is-open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: .06s, .06s, 0s; }
.swd-header .nav__item:hover > a .nav__chev, .swd-header .nav__item:focus-within > a .nav__chev { transform: rotate(180deg); }
.swd-header .nav__item:hover > a, .swd-header .nav__item:focus-within > a { background: rgba(255, 255, 255, .08); }
.swd-header .nav__item.is-closed .mega { opacity: 0; visibility: hidden; pointer-events: none; }
.swd-header .mega__in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 10px; padding: 12px; border-radius: 24px; background: rgba(24, 31, 52, .97); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -30px rgba(0, 0, 0, .75); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.swd-header .mega__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; margin: 0; padding: 0; list-style: none; }
.swd-header .mega__grid--1 { grid-template-columns: minmax(0, 1fr); }
.swd-header .nav .mega__link { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; color: #fff; font-size: 16px; text-decoration: none; transition: background .15s; }
.swd-header .nav .mega__link:hover, .swd-header .nav .mega__link:focus-visible { background: rgba(255, 255, 255, .06); }
.swd-header .mega__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(92, 200, 255, .12); color: var(--acc); }
.swd-header .mega__ic .lic { width: 21px; height: 21px; }
.swd-header .mega__link b { display: block; font-size: 16px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.swd-header .mega__link small { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 400; line-height: 1.35; letter-spacing: 0; color: var(--muted); }
.swd-header .mega__feat { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; border-radius: 18px; background: radial-gradient(300px 220px at 100% 0%, color-mix(in srgb, var(--a, var(--acc)) 26%, transparent), transparent 70%), rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.swd-header .mega__feat b { font-size: 20px; font-weight: 500; letter-spacing: -.03em; color: #fff; }
.swd-header .mega__feat p { margin: 0 0 auto; padding-bottom: 14px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.swd-header .nav .mega__btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--a, var(--acc)); color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.swd-header .nav .mega__btn:hover { background: #fff; color: var(--ink); }
.swd-header .mega__btn svg { width: 13px; height: 13px; }
.swd-header .mega__feat[data-accent="donate"] .mega__btn { background: #F2B83F; }
@media (max-width: 1180px) { .swd-header .mega__in { grid-template-columns: minmax(0, 1fr) 250px; } }
@media (hover: none) { .swd-header .nav__item:hover .mega { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .swd-header .mega { transition: none; } }
.swd-header .mega__feat[data-accent="web"] { --a: var(--l-web); }
.swd-header .mega__feat[data-accent="plugin"] { --a: var(--l-plugin); }
.swd-header .mega__feat[data-accent="host"] { --a: var(--l-host); }
.swd-header .mega__feat[data-accent="grad"] { --a: #B58CFF; }
.swd-header .mega__feat[data-accent="donate"] { --a: #F2B83F; }
.swd-header .mega__feat[data-accent="grad"] .mega__btn { background: var(--acc); }
body.woocommerce-cart .swd-float, body.woocommerce-checkout .swd-float, body.woocommerce-account .swd-float { display: none !important; }
