/* ==========================================================================\n   TrueHarbor V754 — Global cinematic header + premium footer shell\n   Approved homepage visual language, now shared by every public page.\n   ========================================================================== */

:root{
  --th-shell-black:#02070d;
  --th-shell-navy:#061421;
  --th-shell-blue:#0b78ff;
  --th-shell-cyan:#55dcff;
  --th-shell-line:rgba(103,199,255,.18);
  --th-shell-text:#f5fbff;
  --th-shell-muted:#91a8bb;
}

/* ---------- Global header ---------- */
.site-header{
  position:sticky!important;
  top:0;
  z-index:10000!important;
  padding:12px 0!important;
  background:
    radial-gradient(700px 170px at 82% -70%,rgba(10,116,255,.30),transparent 64%),
    linear-gradient(180deg,rgba(2,10,17,.985),rgba(3,12,20,.965))!important;
  border:0!important;
  box-shadow:0 12px 34px rgba(0,0,0,.24)!important;
  isolation:isolate;
}
.site-header:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    linear-gradient(90deg,transparent 0 9%,rgba(44,151,255,.10) 9.1%,transparent 9.3% 73%,rgba(61,210,255,.075) 73.1%,transparent 73.4%),
    repeating-linear-gradient(90deg,rgba(92,177,255,.028) 0 1px,transparent 1px 88px);
  mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);
}
.site-header:after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:1px;
  background:linear-gradient(90deg,transparent 2%,rgba(77,220,255,.16) 16%,rgba(23,123,255,.68) 50%,rgba(77,220,255,.16) 84%,transparent 98%);
  box-shadow:0 0 22px rgba(26,137,255,.22);
  pointer-events:none;
}
.site-header__bar{display:none!important}
.site-header__inner{
  width:min(calc(100% - 44px),1540px)!important;
  max-width:1540px!important;
  min-height:90px!important;
  margin-inline:auto!important;
  padding:0 22px!important;
  display:grid!important;
  grid-template-columns:minmax(220px,270px) minmax(0,1fr) max-content!important;
  align-items:center!important;
  gap:clamp(20px,2vw,34px)!important;
  border:1px solid var(--th-shell-line)!important;
  border-radius:19px!important;
  background:
    radial-gradient(240px 110px at 100% 0,rgba(12,119,255,.15),transparent 72%),
    linear-gradient(180deg,rgba(8,24,38,.90),rgba(3,13,23,.84))!important;
  box-shadow:0 18px 48px rgba(0,0,0,.26),inset 0 1px rgba(255,255,255,.045)!important;
  backdrop-filter:blur(18px) saturate(125%);
  overflow:visible;
  position:relative;
}
.site-header__inner:before{
  content:"";
  position:absolute;
  left:26px;right:26px;top:-1px;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(88,225,255,.75),transparent);
  box-shadow:0 0 24px rgba(72,207,255,.28);
  pointer-events:none;
}
.site-branding{min-width:0!important;position:relative;z-index:2}
.custom-logo-link{
  display:inline-flex!important;
  align-items:center!important;
  width:min(248px,100%)!important;
  max-width:248px!important;
  min-height:68px;
  filter:brightness(0) invert(1);
  opacity:.99;
}
.custom-logo{width:auto!important;max-width:100%!important;max-height:70px!important;object-fit:contain!important}
.brand-wordmark{color:#fff!important}
.brand-copy strong{color:#fff!important;font-size:22px!important}
.brand-copy small{color:#78cfff!important}
.brand-mark{background:linear-gradient(145deg,#0e88ff,#0754bc)!important;box-shadow:0 0 28px rgba(14,136,255,.25)!important}
.primary-nav{min-width:0!important;justify-self:center!important}
.primary-menu{
  gap:clamp(16px,1.4vw,28px)!important;
  flex-wrap:nowrap!important;
}
.primary-menu>li>a{
  position:relative;
  min-height:58px!important;
  padding:0 2px!important;
  color:#eef8ff!important;
  font-size:clamp(15px,.88vw,16.5px)!important;
  font-weight:700!important;
  line-height:1.15!important;
  letter-spacing:0!important;
  text-shadow:0 1px 12px rgba(0,0,0,.34);
}
.primary-menu>li>a:before{
  content:"";
  position:absolute;
  left:10%;right:10%;bottom:6px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,transparent,#44d9ff 45%,#0b78ff 70%,transparent);
  box-shadow:0 0 14px rgba(50,201,255,.62);
  transform:scaleX(0);
  opacity:0;
  transition:transform .25s ease,opacity .25s ease;
}
.primary-menu>li>a:hover,.primary-menu>.current-menu-item>a,.primary-menu>.current-menu-ancestor>a{color:#fff!important}
.primary-menu>li>a:hover:before,.primary-menu>.current-menu-item>a:before,.primary-menu>.current-menu-ancestor>a:before{transform:scaleX(1);opacity:1}
.primary-menu .menu-item-has-children>a::after{border-color:#93cfff!important}
.primary-menu .sub-menu{
  top:calc(100% + 8px)!important;
  min-width:272px!important;
  padding:10px!important;
  color:#eaf7ff!important;
  background:rgba(3,15,25,.985)!important;
  border:1px solid rgba(104,198,255,.18)!important;
  border-radius:15px!important;
  box-shadow:0 24px 54px rgba(0,0,0,.42),inset 0 1px rgba(255,255,255,.04)!important;
  backdrop-filter:blur(18px);
}
.primary-menu .sub-menu a{color:#cfe2f1!important;font-size:15px!important;padding:11px 12px!important}
.primary-menu .sub-menu a:hover{color:#fff!important;background:rgba(15,116,223,.18)!important}
.site-header__actions{display:flex!important;align-items:center!important;gap:12px!important;position:relative;z-index:2;margin-inline-start:12px!important;flex-shrink:0!important}
.th-language-switcher>summary,.th-v704-header-search{
  min-height:48px!important;
  color:#f2fbff!important;
  background:rgba(6,20,32,.78)!important;
  border:1px solid rgba(109,203,255,.20)!important;
  border-radius:12px!important;
  box-shadow:inset 0 1px rgba(255,255,255,.035)!important;
  backdrop-filter:blur(12px);
}
.th-v704-header-search{width:auto!important;padding:0 13px!important;font-size:14px!important;font-weight:760!important}
.site-header__actions .header-cta{
  min-height:50px!important;
  padding:0 19px!important;
  color:#fff!important;
  background:linear-gradient(135deg,#0a82ff,#075cdb)!important;
  border:1px solid rgba(99,194,255,.30)!important;
  border-radius:12px!important;
  font-size:15px!important;
  font-weight:800!important;
  box-shadow:0 12px 32px rgba(0,116,255,.27),inset 0 1px rgba(255,255,255,.18)!important;
}
.site-header__actions .header-cta:hover{transform:translateY(-2px);background:linear-gradient(135deg,#1993ff,#0a67e8)!important;box-shadow:0 16px 36px rgba(0,123,255,.34)!important}
.nav-toggle{
  color:#fff!important;
  background:rgba(7,24,38,.88)!important;
  border:1px solid rgba(102,198,255,.22)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.04)!important;
}

/* ---------- Global premium footer ---------- */
.site-footer.th-global-footer{
  display:block!important;
  position:relative;
  overflow:hidden;
  margin-top:0!important;
  padding:0!important;
  color:#d5e4ef!important;
  background:
    radial-gradient(900px 340px at 18% 0,rgba(0,111,255,.12),transparent 64%),
    radial-gradient(680px 280px at 92% 12%,rgba(43,211,255,.065),transparent 64%),
    linear-gradient(180deg,#030b13 0%,#020810 100%)!important;
  border-top:1px solid rgba(74,194,255,.26)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.02)!important;
}
.th-global-footer__glow{
  position:absolute;
  left:0;right:0;top:0;height:1px;
  background:linear-gradient(90deg,transparent,#1b7cff 30%,#57e1ff 50%,#1b7cff 70%,transparent);
  box-shadow:0 0 28px rgba(37,152,255,.48);
  pointer-events:none;
}
.site-footer.th-global-footer:before{
  content:"";
  position:absolute;inset:0;
  opacity:.32;
  pointer-events:none;
  background:
    linear-gradient(90deg,transparent 0 10%,rgba(68,176,255,.07) 10.1%,transparent 10.25% 68%,rgba(68,176,255,.055) 68.1%,transparent 68.3%),
    repeating-linear-gradient(90deg,rgba(99,188,255,.018) 0 1px,transparent 1px 96px);
  mask-image:linear-gradient(180deg,#000,transparent 78%);
}
.th-global-footer__top{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(280px,.9fr) minmax(0,2.1fr);
  gap:clamp(46px,5vw,84px);
  padding-top:clamp(52px,6vw,84px);
  padding-bottom:clamp(44px,5vw,68px);
}
.th-global-footer__brand{max-width:440px}
.th-global-footer__logo{min-height:72px;display:flex;align-items:center;margin-bottom:22px}
.th-global-footer__logo-link{display:inline-flex;align-items:center;max-width:286px!important;background:transparent!important;padding:0!important}
.th-global-footer__logo-image{display:block!important;width:auto!important;height:auto!important;max-width:276px!important;max-height:80px!important;object-fit:contain!important;filter:brightness(0) invert(1)!important}
.th-global-footer__wordmark{color:#fff!important;font-size:36px;font-weight:800;letter-spacing:.14em;line-height:1}
.th-global-footer__brand>p{max-width:420px;color:#9db2c3!important;font-size:15.5px!important;line-height:1.85!important}
.th-global-footer__contact-quick{display:flex;flex-wrap:wrap;gap:10px 16px;margin-top:24px}
.th-global-footer__contact-quick a{display:inline-flex;align-items:center;gap:8px;color:#dceaf5!important;font-size:14.5px!important;font-weight:650}
.th-global-footer__contact-quick .icon{color:#4bd5ff;width:17px;height:17px}
.th-global-footer__nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(24px,3vw,46px)}
.th-global-footer__col{min-width:0}
.th-global-footer__col h2,.th-global-footer__col .th-global-footer__heading{margin:0 0 18px!important;color:#fff!important;font-size:14px!important;font-weight:800!important;letter-spacing:.12em!important;text-transform:uppercase!important}
.th-global-footer__col>a{display:block;width:max-content;max-width:100%;margin:0 0 10px;color:#9fb5c7!important;font-size:14.5px!important;line-height:1.55!important;transition:color .2s ease,transform .2s ease}
.th-global-footer__col>a:hover{color:#fff!important;transform:translateX(3px)}
.th-global-footer__detail{display:grid;grid-template-columns:20px 1fr;gap:10px;align-items:start;margin-bottom:16px;color:#93aabd}
.th-global-footer__detail>.icon{width:18px;height:18px;margin-top:2px;color:#4bd5ff}
.th-global-footer__detail span{display:grid;gap:3px;min-width:0}
.th-global-footer__detail b{color:#fff;font-size:12px;font-weight:780;letter-spacing:.08em;text-transform:uppercase}
.th-global-footer__detail a,.th-global-footer__detail small{color:#a8bdcc!important;font-size:13.5px!important;line-height:1.55;overflow-wrap:anywhere}
.th-global-footer__bottom{
  position:relative;z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:24px;
  min-height:72px;
  padding-top:18px;padding-bottom:18px;
  color:#71899d!important;
  border-top:1px solid rgba(112,190,243,.10);
  font-size:13px!important;
}
.th-global-footer__bottom p{margin:0;color:#71899d!important;font-size:13px!important}
.th-global-footer__bottom-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 20px}
.th-global-footer__bottom-links a{color:#8298aa!important;font-size:13px!important}
.th-global-footer__bottom-links a:hover{color:#fff!important}
.th-global-footer__language .th-language-switcher>summary{min-height:42px!important;background:rgba(255,255,255,.04)!important}

/* Keep the approved homepage visually seamless with the global shell. */
body.th-concept-home .site-header{background:linear-gradient(180deg,rgba(1,7,12,.99),rgba(2,10,17,.97))!important}
body.th-concept-home .site-footer{display:block!important}

/* RTL shell alignment, while part numbers/contact values remain readable. */
.th-dir-rtl .th-global-footer__brand,.th-dir-rtl .th-global-footer__col{text-align:right}
.th-dir-rtl .th-global-footer__col>a{margin-left:auto;margin-right:0}
.th-dir-rtl .th-global-footer__detail{grid-template-columns:1fr 20px}
.th-dir-rtl .th-global-footer__detail>.icon{grid-column:2;grid-row:1}
.th-dir-rtl .th-global-footer__detail span{grid-column:1;grid-row:1}
.th-dir-rtl .th-global-footer__col>a:hover{transform:translateX(-3px)}
.th-dir-rtl .th-global-footer__contact-quick{direction:ltr;justify-content:flex-end}

@media(max-width:1320px){
  .site-header__inner{grid-template-columns:minmax(200px,228px) minmax(0,1fr) max-content!important;gap:18px!important}
  .custom-logo-link{max-width:220px!important}
  .primary-menu{gap:13px!important}
  .primary-menu>li>a{font-size:14.5px!important}
  .th-v704-header-search span{display:none!important}
  .th-v704-header-search{width:48px!important;padding:0!important;justify-content:center!important}
  .site-header__actions .header-cta{padding-inline:15px!important;font-size:14px!important}
}

@media(max-width:1120px){
  .site-header{padding:9px 0!important}
  .site-header__inner{
    width:min(calc(100% - 28px),1540px)!important;
    min-height:78px!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    gap:10px!important;
    padding:0 14px!important;
  }
  .custom-logo-link{max-width:210px!important;min-height:58px}
  .custom-logo{max-height:62px!important}
  .nav-toggle{display:inline-flex!important;justify-self:end!important;width:48px!important;height:48px!important;grid-column:3!important;grid-row:1!important}
  .site-header__actions{grid-column:2!important;grid-row:1!important}
  .site-header__actions .header-cta{display:none!important}
  .primary-nav{
    position:fixed!important;
    top:106px!important;
    left:14px!important;right:14px!important;
    width:auto!important;
    max-height:calc(100vh - 126px)!important;
    overflow-y:auto!important;
    padding:14px!important;
    opacity:0!important;visibility:hidden!important;transform:translateY(-8px)!important;
    background:rgba(3,15,25,.985)!important;
    border:1px solid rgba(104,198,255,.18)!important;
    border-radius:18px!important;
    box-shadow:0 26px 58px rgba(0,0,0,.46)!important;
    backdrop-filter:blur(20px);
  }
  .primary-nav.is-open{opacity:1!important;visibility:visible!important;transform:none!important}
  .primary-menu{display:grid!important;gap:2px!important;align-items:stretch!important}
  .primary-menu>li>a{min-height:52px!important;padding:0 12px!important;font-size:16px!important}
  .primary-menu>li>a:before{left:12px;right:auto;width:54px;bottom:5px}
  .primary-menu .sub-menu{position:static!important;min-width:0!important;margin:0 0 6px 12px!important;padding:4px!important;opacity:1!important;visibility:visible!important;transform:none!important;box-shadow:none!important;background:rgba(255,255,255,.025)!important;border-color:rgba(255,255,255,.06)!important}
  .th-global-footer__top{grid-template-columns:1fr;gap:42px}
  .th-global-footer__brand{max-width:640px}
}

@media(max-width:820px){
  .th-global-footer__nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 28px}
  .th-global-footer__bottom{grid-template-columns:1fr;align-items:start;gap:14px}
  .th-global-footer__bottom-links{justify-content:flex-start}
}

@media(max-width:600px){
  .site-header__inner{width:calc(100% - 18px)!important;min-height:72px!important;border-radius:15px!important;padding:0 10px!important}
  .custom-logo-link{max-width:176px!important;min-height:52px}
  .custom-logo{max-height:54px!important}
  .site-header__actions .th-language-switcher{display:none!important}
  .site-header__actions .th-v704-header-search{width:44px!important;height:44px!important;min-height:44px!important}
  .nav-toggle{width:44px!important;height:44px!important}
  .primary-nav{top:94px!important;left:9px!important;right:9px!important;max-height:calc(100vh - 106px)!important}
  .th-global-footer__top{padding-top:46px;padding-bottom:38px}
  .th-global-footer__nav{grid-template-columns:1fr;gap:28px}
  .th-global-footer__logo-image{max-width:238px!important;max-height:68px!important}
  .th-global-footer__wordmark{font-size:31px}
  .th-global-footer__brand>p{font-size:15px!important}
  .th-global-footer__bottom-links{display:grid;gap:8px}
}
