/* Compact homepage header. Saved WordPress menu links are retained. */
.th-header{position:relative;z-index:20;background:linear-gradient(100deg,#fff 15%,#f6faff 65%,#fff);color:#293d59;font-family:'Segoe UI',system-ui,-apple-system,Arial,sans-serif}
.th-header-inner{display:flex;align-items:center;gap:clamp(24px,2.5vw,48px);max-width:1600px;margin:auto;padding:10px 48px;min-height:84px}
.th-brand{flex:0 0 clamp(180px,13vw,280px);display:block}
.th-logo{width:100%;height:auto}
.th-nav-row{min-width:0;flex:0 0 auto}
.th-navigation,.th-menu{display:flex;align-items:center;gap:clamp(22px,1.65vw,32px)}
.th-menu{list-style:none;padding:0;margin:0}
.th-menu li{position:relative;list-style:none}
.th-home-link,.th-menu>li>a{display:block;position:relative;padding:14px 0;font-size:clamp(14px,1vw,20px);font-weight:600;line-height:1.4;white-space:nowrap}
.th-home-link{color:#234b96!important}
.th-home-link:after{content:'';position:absolute;left:-8px;right:-8px;bottom:3px;height:2px;background:var(--th-red)}
.th-menu a:hover{color:var(--th-red)}
.th-menu>li.menu-item-has-children>a{padding-right:16px}
.th-menu>li.menu-item-has-children>a:after{content:'';position:absolute;right:1px;top:calc(50% - 4px);width:5px;height:5px;border-right:1.5px solid;border-bottom:1.5px solid;transform:rotate(45deg);opacity:.7}
.th-menu .sub-menu{display:none;position:absolute;top:100%;left:-16px;min-width:240px;max-width:330px;margin:0;padding:10px 0;list-style:none;background:#fff;border-top:2px solid var(--th-red);border-radius:0 0 4px 4px;box-shadow:0 8px 24px #0b203024;z-index:30}
.th-menu .sub-menu a{display:block;padding:10px 18px;font-size:14px;font-weight:600;line-height:1.4}
.th-menu .sub-menu .sub-menu{left:100%;top:0}
.th-menu li:hover>.sub-menu,.th-menu li:focus-within>.sub-menu,.th-menu li.th-submenu-open>.sub-menu{display:block}
.th-header-actions{display:flex;align-items:center;gap:clamp(18px,1.4vw,27px);flex:0 0 auto;margin-left:auto}
.th-search-toggle{display:grid;place-items:center;width:clamp(44px,2.6vw,54px);height:clamp(44px,2.6vw,54px);padding:0;border:0;border-radius:50%;background:#edf5fc;color:#285da5}
.th-search-toggle:hover{background:#e2ecfa}
.th-search-toggle .th-icon{width:clamp(20px,1.45vw,28px);height:clamp(20px,1.45vw,28px);stroke-width:1.9}
.th-phone{display:flex;align-items:center;justify-content:center;gap:10px;width:clamp(190px,12.5vw,260px);min-height:clamp(44px,2.6vw,54px);padding:9px 18px;border:1px solid var(--th-red);border-radius:2px;background:var(--th-red);transition:background .18s ease,border-color .18s ease;color:#fff!important;font-size:clamp(16px,1vw,21px);font-weight:600;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums}
.th-phone:hover{background:var(--th-red-dark);border-color:var(--th-red-dark)}
.th-phone .th-icon{width:clamp(18px,1.1vw,22px);height:clamp(18px,1.1vw,22px);fill:currentColor;stroke:none}
.th-search{display:flex;align-items:center;gap:20px;max-width:var(--th-width);margin:auto;padding:18px 48px;border-top:1px solid var(--th-line)}
.th-search label{font-weight:700;font-size:14px}
.th-search input{flex:1;min-width:0;border:1px solid #b8c2cb;padding:12px}
.th-menu-toggle,.th-submenu-toggle{display:none}
/* Keep the logo, navigation and contact controls together in a centred group. */
@media(min-width:1401px){
 .th-header-inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:28px;padding-inline:32px}
 .th-brand{width:clamp(180px,12vw,230px);justify-self:start}
 .th-nav-row{justify-self:center}
 .th-navigation,.th-menu{gap:clamp(18px,1.2vw,22px)}
 .th-home-link,.th-menu>li>a{font-size:clamp(14px,.9vw,16px)}
 .th-header-actions{justify-self:end;margin-left:0;gap:14px}
 .th-phone{width:210px;min-height:46px;font-size:17px}
 .th-search-toggle{width:46px;height:46px}
}
@media(max-width:1400px){
 .th-header-inner{gap:22px;padding-inline:24px}
 .th-brand{flex-basis:160px}.th-logo{width:160px}
 .th-navigation,.th-menu{gap:16px}
 .th-home-link,.th-menu>li>a{font-size:13px}
 .th-header-actions{gap:12px}.th-phone{width:190px;min-height:46px;font-size:17px;padding-inline:18px}
 .th-search-toggle{width:44px;height:44px}
}
@media(min-width:901px) and (max-width:1100px){
 .th-header-inner{gap:15px;padding-inline:20px;min-height:78px}
 .th-brand{flex-basis:135px}.th-logo{width:135px}
 .th-navigation,.th-menu{gap:12px}
 .th-home-link,.th-menu>li>a{font-size:11px}
 .th-header-actions{gap:10px}.th-phone{width:auto;font-size:14px;padding-inline:14px;gap:8px}
 .th-search-toggle{width:38px;height:38px}.th-phone .th-icon{width:18px;height:18px}
}
@media(min-width:901px) and (max-width:1000px){
 .th-header-inner{gap:12px;padding-inline:16px}
 .th-brand{flex-basis:125px}.th-logo{width:125px}
 .th-navigation,.th-menu{gap:10px}.th-home-link,.th-menu>li>a{font-size:10px}
 .th-header-actions{gap:8px}.th-phone{font-size:13px;padding-inline:12px}.th-search-toggle{width:36px;height:36px}
}
@media(max-width:900px){
 .th-header-inner{flex-wrap:wrap;gap:0;padding:14px 20px;min-height:0}
 .th-brand{flex-basis:155px}.th-logo{width:155px}
 .th-header-actions{gap:12px}.th-phone{width:auto;font-size:16px;min-height:44px;padding:10px 18px}
 .th-menu-toggle{order:3;display:flex;align-items:center;justify-content:space-between;width:100%;gap:14px;margin-top:13px;padding:12px 0 0;border:0;border-top:1px solid var(--th-line);background:transparent;color:inherit;font-size:14px;font-weight:700;letter-spacing:.05em}
 .th-menu-lines{position:relative;width:21px;height:14px;border-block:2px solid currentColor}
 .th-menu-lines:after{content:'';position:absolute;left:0;right:0;top:4px;border-top:2px solid currentColor}
 .th-nav-row{order:4;display:none;width:100%;padding-top:12px}.th-nav-row.th-is-open{display:block}
 .th-navigation,.th-menu{display:block;width:100%}
 .th-home-link,.th-menu>li>a{font-size:15px;padding:12px 0;border-bottom:1px solid var(--th-line);white-space:normal}
 .th-home-link{color:var(--th-red)!important}.th-home-link:after,.th-menu>li.menu-item-has-children>a:after{display:none}
 .th-menu .sub-menu{display:none!important;position:static;box-shadow:none;border-top:0;background:#f1f5fa;min-width:0;max-width:none;padding:4px 0 4px 10px}
 .th-menu li.th-submenu-open>.sub-menu{display:block!important}
 .th-submenu-toggle{display:block;position:absolute;right:0;top:3px;width:42px;height:40px;border:0;background:transparent;color:inherit}
 .th-submenu-toggle .th-icon{width:18px;height:18px}.th-submenu-toggle[aria-expanded=true] .th-icon{transform:rotate(180deg)}
 .th-search{padding:15px 20px;gap:10px;flex-wrap:wrap}.th-search label{width:100%}.th-search input{width:60%;font-size:14px}.th-search .th-button{min-height:47px;padding:12px}
}
@media(max-width:600px){
 .th-header-inner{padding:13px 16px}.th-brand{flex-basis:135px}.th-logo{width:135px}
 .th-header-actions{gap:8px}.th-search-toggle{width:36px;height:36px}.th-search-toggle .th-icon{width:19px;height:19px}
 .th-phone{min-height:38px;font-size:13px;padding:9px 12px;gap:6px}.th-phone .th-icon{width:16px;height:16px}
}
@media(max-width:360px){.th-brand{flex-basis:115px}.th-logo{width:115px}.th-phone{font-size:12px;padding-inline:10px}.th-header-actions{gap:6px}.th-search-toggle{width:32px;height:32px}}
@media print{.th-menu-toggle,.th-search-toggle{display:none}}
