/*
Theme Name: ToolZippy Premium Child
Theme URI: https://toolzippy.com/
Description: Premium responsive ToolZippy header and footer, based on Astra.
Author: ToolZippy
Template: astra
Version: 2.0.0
Text Domain: toolzippy-child
*/
:root{--tz-blue:#2563eb;--tz-navy:#10243c;--tz-line:#e4ebf4}
#tz-header,#tz-footer{box-sizing:border-box;font-family:inherit}#tz-header *,#tz-footer *{box-sizing:border-box}
#tz-header{background:#fff;border-bottom:1px solid var(--tz-line);box-shadow:0 6px 24px rgba(18,43,76,.045);position:relative;z-index:999}
.tz-shell{width:min(100% - 48px,1600px);margin-inline:auto}
.tz-head-row{min-height:76px;display:flex;align-items:center;gap:32px}
.tz-brand{flex:0 0 auto;display:flex;align-items:center;text-decoration:none!important;color:#0f2741;font-size:24px;font-weight:800;line-height:1}.tz-brand img{width:auto;max-width:215px;max-height:54px;object-fit:contain}
.tz-navigation{flex:1;min-width:0;display:flex;justify-content:flex-end;align-items:center}
.tz-navigation ul{list-style:none;padding:0;margin:0}.tz-menu{display:flex;align-items:center;gap:3px}.tz-menu>li{position:relative}.tz-menu a{display:flex;align-items:center;color:#17324d;text-decoration:none!important;font-weight:650;font-size:14px;line-height:1.35;padding:13px 13px;border-radius:10px;white-space:nowrap;transition:background .18s,color .18s}.tz-menu a:hover,.tz-menu a:focus-visible,.tz-menu .current-menu-item>a{background:#edf5ff;color:#1557ce}.tz-menu .sub-menu{display:none;position:absolute;top:calc(100% + 8px);left:0;min-width:245px;max-width:320px;padding:9px;background:#fff;border:1px solid #e1e9f4;border-radius:16px;box-shadow:0 20px 55px rgba(18,42,70,.16);z-index:1001}.tz-menu .sub-menu:before{content:"";position:absolute;left:0;right:0;height:12px;top:-12px}.tz-menu .sub-menu a{white-space:normal;padding:11px 13px;font-weight:550;font-size:13px}.tz-menu>li:hover>.sub-menu,.tz-menu>li:focus-within>.sub-menu,.tz-menu>li.tz-open>.sub-menu{display:block}.tz-menu .sub-menu .sub-menu{top:0;left:100%}.tz-menu .sub-menu li{position:relative}.tz-menu .sub-menu li:hover>.sub-menu,.tz-menu .sub-menu li:focus-within>.sub-menu{display:block}
.tz-actions{display:flex;align-items:center;gap:8px;margin-left:8px}.tz-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;background:#f0f6ff;color:#1752c3;border:1px solid #e0ebff;border-radius:12px;cursor:pointer}.tz-icon-btn:hover,.tz-icon-btn:focus-visible{background:#e2edff}.tz-icon-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.tz-mobile-toggle{display:none}
.tz-search-panel{display:none;border-top:1px solid var(--tz-line);background:#f8fbff;padding:14px 0}.tz-search-panel.tz-open{display:block}.tz-search-form{display:flex;max-width:850px;margin:auto;gap:10px}.tz-search-form input{flex:1;min-width:0;border:1px solid #d4e1f0;border-radius:12px;padding:13px 16px;background:#fff;color:#18334e;font-size:15px}.tz-search-form button{background:#2563eb;color:#fff;border:0;border-radius:12px;padding:12px 22px;font-weight:700;cursor:pointer}
#tz-footer{background:#10243c;color:#c9d7e6;margin-top:50px}#tz-footer a{color:#c9d7e6;text-decoration:none}#tz-footer a:hover,#tz-footer a:focus-visible{color:#fff;text-decoration:underline}.tz-footer-top{display:grid;grid-template-columns:minmax(230px,1.5fr) repeat(3,minmax(150px,1fr));gap:38px;padding:58px 0 42px}.tz-footer-brand{font-size:25px;font-weight:800;color:#fff!important;display:inline-block;margin-bottom:12px}.tz-footer-brand img{width:auto;max-width:190px;max-height:52px;object-fit:contain}.tz-footer-about{font-size:14px;line-height:1.85;max-width:320px;margin:0}.tz-footer-col h2{font-size:15px;font-weight:750;color:#fff;margin:0 0 17px}.tz-footer-col ul{list-style:none;margin:0;padding:0}.tz-footer-col li{margin:0 0 11px}.tz-footer-col a{font-size:14px}.tz-footer-bottom{border-top:1px solid rgba(255,255,255,.13);padding:21px 0;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:13px}.tz-footer-legal{display:flex;gap:18px;flex-wrap:wrap}
#tz-header a:focus-visible,#tz-footer a:focus-visible{outline:2px solid #60a5fa;outline-offset:3px}
@media(max-width:1200px){.tz-head-row{gap:15px}.tz-menu a{padding:12px 8px;font-size:13px}.tz-brand img{max-width:185px}}
@media(max-width:1020px){.tz-shell{width:min(100% - 32px,1600px)}.tz-head-row{min-height:68px;justify-content:space-between}.tz-brand img{max-height:45px;max-width:185px}.tz-mobile-toggle{display:inline-flex}.tz-navigation{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid #dfe8f2;box-shadow:0 15px 30px rgba(18,42,70,.1);max-height:75vh;overflow-y:auto;padding:10px 16px 18px}.tz-navigation.tz-open{display:block}.tz-menu{display:block}.tz-menu a{padding:13px 14px;font-size:15px}.tz-menu .sub-menu{position:static;display:block;min-width:0;max-width:none;box-shadow:none;border:0;border-radius:0;padding:0 0 0 14px;background:#f7faff}.tz-menu .sub-menu:before{display:none}.tz-menu .sub-menu a{font-size:14px}.tz-menu .sub-menu .sub-menu{position:static}.tz-actions{margin-left:auto}.tz-footer-top{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}}
@media(max-width:600px){.tz-shell{width:min(100% - 28px,1600px)}.tz-brand img{max-width:157px;max-height:40px}.tz-icon-btn{width:39px;height:39px}.tz-head-row{gap:8px}.tz-search-form{flex-direction:column}.tz-footer-top{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 17px;padding:40px 0 25px}.tz-footer-top>div:first-child{grid-column:1/-1}.tz-footer-col h2{font-size:14px}.tz-footer-col a{font-size:13px}.tz-footer-bottom{flex-direction:column;gap:10px}}
@media(prefers-reduced-motion:reduce){#tz-header *{transition:none!important}}


/* Header-only V1.3: compact, single-row premium navigation */
#tz-header .tz-head-row{min-height:74px;gap:24px;flex-wrap:nowrap}
#tz-header .tz-brand{flex-shrink:0}
#tz-header .tz-navigation{flex:1;min-width:0;justify-content:flex-end}
#tz-header .tz-menu{display:flex;align-items:center;flex-wrap:nowrap;gap:3px}
#tz-header .tz-menu>li{position:relative;display:flex;align-items:center}
#tz-header .tz-menu>li>a{font-weight:650;font-size:14px;padding:12px 13px;white-space:nowrap}
#tz-header .tz-sub-toggle{display:none}
#tz-header .tz-icon-btn{appearance:none;min-width:42px;min-height:42px;padding:0;line-height:1}
#tz-header .tz-icon-btn svg{display:block;width:21px;height:21px;stroke:#1752c3;fill:none;stroke-width:2.2}
@media(min-width:1021px){
 #tz-header .tz-menu>li>.sub-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:500px;min-width:0;max-width:min(500px,calc(100vw - 32px));top:calc(100% + 9px);left:0;right:auto;gap:4px;padding:12px;border-radius:18px;border:1px solid #dfe8f5;box-shadow:0 20px 55px rgba(15,40,70,.15);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(6px);transition:opacity .16s,transform .16s,visibility .16s}
 #tz-header .tz-menu>li:hover>.sub-menu,#tz-header .tz-menu>li:focus-within>.sub-menu,#tz-header .tz-menu>li.tz-open>.sub-menu{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
 #tz-header .tz-menu>li>.sub-menu:before{content:'';position:absolute;top:-14px;left:0;right:0;height:16px}
 #tz-header .tz-menu>li:nth-child(n+3)>.sub-menu{left:auto;right:0}
 #tz-header .tz-menu>li>.sub-menu>li>a{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:4px;position:relative;min-height:69px;padding:11px 10px 11px 53px;border-radius:12px;font-size:13px;font-weight:700;white-space:normal;line-height:1.3}
 #tz-header .tz-menu>li>.sub-menu>li>a:before{content:'↗';position:absolute;left:9px;top:50%;transform:translateY(-50%);width:34px;height:34px;display:grid;place-items:center;background:#eaf3ff;border-radius:10px;color:#2563eb;font-size:17px}
 #tz-header .tz-menu .tz-item-description{display:block;color:#71849a;font-size:11px;font-weight:450;line-height:1.3}
 #tz-header .tz-menu .sub-menu .sub-menu{display:none}
}
@media(min-width:1021px) and (max-width:1200px){#tz-header .tz-head-row{gap:12px}#tz-header .tz-menu>li>a{padding:10px 8px;font-size:13px}}
@media(max-width:1020px){
 #tz-header .tz-head-row{min-height:66px}
 #tz-header .tz-navigation{display:none;position:absolute;top:100%;left:0;right:0;max-height:75vh;overflow-y:auto;padding:12px 16px 18px;background:#fff;box-shadow:0 16px 32px rgba(18,42,70,.1)}
 #tz-header .tz-navigation.tz-open{display:block}
 #tz-header .tz-menu{display:block}
 #tz-header .tz-menu>li{display:block;position:relative}
 #tz-header .tz-menu>li>a{display:block;padding:13px 55px 13px 14px;font-size:15px}
 #tz-header .tz-mobile-toggle{display:inline-flex}
 #tz-header .tz-sub-toggle{display:inline-flex;position:absolute;top:7px;right:7px;width:40px;height:40px;align-items:center;justify-content:center;background:#eef5ff;color:#1d56b8;border:0;border-radius:10px;font-size:22px;cursor:pointer}
 #tz-header .tz-menu .sub-menu{display:none;position:static;width:auto;min-width:0;max-width:none;padding:6px;margin:2px 0 8px 10px;background:#f6f9fe;border:0;border-radius:12px;box-shadow:none}
 #tz-header .tz-menu li.tz-open>.sub-menu{display:block}
 #tz-header .tz-menu .sub-menu a{display:block;padding:12px;font-size:14px}
 #tz-header .tz-menu .tz-item-description{display:none}
 #tz-header .tz-menu li.tz-open>.tz-sub-toggle{transform:rotate(180deg)}
}
/* Preserve the already-approved V1.2 footer without further changes. */
#tz-footer .tz-footer-brand{background:#fff!important;border-radius:13px!important;padding:9px 13px!important;display:inline-flex;align-items:center;min-height:62px}
#tz-footer .tz-footer-brand img{max-height:42px;max-width:205px}
#tz-footer .tz-footer-bottom{padding-right:55px}
#tz-footer .tz-footer-top{padding-top:45px;padding-bottom:35px}
@media(max-width:600px){#tz-footer .tz-footer-bottom{padding-right:0}#tz-footer .tz-footer-brand img{max-width:185px}}

/* V2: cleaner sticky header and shared search dropdown */
#tz-header{position:sticky;top:0;z-index:9999;backdrop-filter:blur(14px)}.tz-head-row{min-height:70px}.tz-menu>li>a{font-weight:700}.tz-search-panel{background:#f5f8ff}.tz-search-form{position:relative;max-width:950px}.tz-search-form:focus-within{outline:2px solid #a7c4ff;outline-offset:2px}.tz-search-form .tzh-results{z-index:10000}.tz-search-form .tzh-result{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border-radius:10px;text-decoration:none!important;color:#14243d!important;font-weight:700}.tz-search-form .tzh-result small{font-weight:500;color:#64748b}.tz-search-form .tzh-result:hover,.tz-search-form .tzh-result.is-active{background:#edf4ff}.tz-search-form .tzh-no-results{padding:14px;color:#65738a}.tz-search-form .tzh-results{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid #d9e4f4;border-radius:14px;box-shadow:0 20px 40px #19396022;padding:8px;max-height:350px;overflow:auto}.tz-search-form .tzh-results[hidden]{display:none!important}#tz-footer{background:linear-gradient(130deg,#0c203c,#173764)}@media(max-width:782px){#tz-header{top:0}}
