/* =========================================================
   TotalSuccessHub — site.css
   الهيدر والفوتر الموحدان + متغيرات الهوية
   كل القواعد مسبوقة بـ tsh- حتى لا تتعارض مع تنسيقات الصفحات القديمة
   ========================================================= */
:root{
  --tsh-navy:#12385f;
  --tsh-navy-2:#0d2a48;
  --tsh-green:#21865b;
  --tsh-green-soft:#e6f3ec;
  --tsh-gold:#c4932f;
  --tsh-ink:#16222e;
  --tsh-muted:#5b6b7a;
  --tsh-line:#dfe6ec;
  --tsh-bg:#f6f8fa;
  --tsh-surface:#ffffff;
  --tsh-header-bg:rgba(255,255,255,.96);
  --tsh-header-h:68px;
  --tsh-font:"IBM Plex Sans Arabic","Cairo",Tahoma,Arial,sans-serif;
  --tsh-radius:14px;
}
html.tsh-dark{
  --tsh-navy:#cfe0f2;
  --tsh-navy-2:#0b1724;
  --tsh-green:#4cc28d;
  --tsh-green-soft:#173628;
  --tsh-gold:#e0b45a;
  --tsh-ink:#e7eef5;
  --tsh-muted:#a2b2c2;
  --tsh-line:#26384a;
  --tsh-bg:#0f1923;
  --tsh-surface:#152230;
  --tsh-header-bg:rgba(16,27,38,.96);
  color-scheme:dark;
}

.tsh-skip{position:absolute;right:-9999px;top:8px;z-index:2000;background:#fff;color:#12385f;padding:8px 14px;border-radius:8px;font-family:var(--tsh-font)}
.tsh-skip:focus{right:12px}

/* ---------- Header ---------- */
header.tsh-header{
  position:fixed;top:0;left:0;right:0;width:100%;z-index:1000;
  height:var(--tsh-header-h);padding:0 !important;margin:0;
  display:block;box-sizing:border-box;
  background:var(--tsh-header-bg);color:var(--tsh-ink);
  border-bottom:1px solid var(--tsh-line);
  box-shadow:none;text-shadow:none;text-align:right;
  font-family:var(--tsh-font);font-size:16px;font-weight:400;line-height:1.5;
  -webkit-backdrop-filter:saturate(1.4) blur(8px);backdrop-filter:saturate(1.4) blur(8px);
  transition:box-shadow .2s ease;
}
header.tsh-header.is-scrolled{box-shadow:0 6px 20px rgba(13,42,72,.08)}
header.tsh-header *, footer.tsh-footer *{box-sizing:border-box}
.tsh-header__inner{
  max-width:1200px;height:100%;margin:0 auto;padding:0 20px;
  display:flex;align-items:center;gap:20px;
}

.tsh-brand{display:flex;align-items:center;gap:10px;text-decoration:none !important;color:inherit;flex:0 0 auto}
.tsh-brand__icon{width:44px;height:44px;display:block}
.tsh-brand__text{display:flex;flex-direction:column;line-height:1.15}
.tsh-brand__name{direction:ltr;font-family:var(--tsh-font);font-weight:700;font-size:1.12rem;color:var(--tsh-navy);letter-spacing:-.01em}
.tsh-brand__name b{color:var(--tsh-green);font-weight:700}
.tsh-brand__tag{font-size:.76rem;color:var(--tsh-muted);font-weight:500}

.tsh-nav{flex:1 1 auto;display:flex;justify-content:center}
.tsh-nav ul{list-style:none !important;margin:0 !important;padding:0 !important;display:flex !important;flex-direction:row !important;gap:2px !important;align-items:center}
.tsh-nav li{width:auto !important;margin:0;padding:0}
.tsh-nav a{
  display:block;padding:8px 12px;border-radius:9px;
  color:var(--tsh-ink) !important;text-decoration:none !important;
  font-size:.95rem;font-weight:500;white-space:nowrap;text-shadow:none;
  transition:background .15s ease,color .15s ease;
}
.tsh-nav a::after{display:none !important;content:none !important}
.tsh-nav a:hover{background:var(--tsh-bg);color:var(--tsh-navy) !important}
.tsh-nav a.is-active{color:var(--tsh-green) !important;background:var(--tsh-green-soft);font-weight:700}

.tsh-header__tools{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.tsh-cta{
  display:inline-flex;align-items:center;justify-content:center;
  padding:9px 16px;border-radius:10px;white-space:nowrap;
  background:var(--tsh-green);color:#fff !important;text-decoration:none !important;
  font-family:var(--tsh-font);font-weight:700;font-size:.9rem;
  transition:transform .15s ease,filter .15s ease;
}
html.tsh-dark .tsh-cta{color:#0b1a14 !important}
.tsh-cta:hover{filter:brightness(1.07);transform:translateY(-1px)}
.tsh-nav .tsh-cta--menu{display:none}

header.tsh-header button.tsh-iconbtn{
  width:40px !important;height:40px;padding:0 !important;margin:0;
  display:inline-grid;place-items:center;flex:0 0 auto;
  border:1px solid var(--tsh-line);border-radius:10px;background:var(--tsh-surface);
  color:var(--tsh-navy);cursor:pointer;font-size:0;
}
.tsh-iconbtn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tsh-i-moon{fill:currentColor !important;stroke:none !important}
.tsh-i-sun{display:none}
html.tsh-dark .tsh-i-moon{display:none}
html.tsh-dark .tsh-i-sun{display:block}
header.tsh-header button.tsh-menubtn{display:none}

.tsh-header a:focus-visible,.tsh-header button:focus-visible,.tsh-footer a:focus-visible{outline:3px solid var(--tsh-gold);outline-offset:2px}

@media (max-width:1100px){
  .tsh-header__tools .tsh-cta{display:none}
}
@media (max-width:980px){
  header.tsh-header button.tsh-menubtn{display:inline-grid}
  .tsh-nav{
    position:absolute;top:var(--tsh-header-h);left:0;right:0;
    display:none;flex-direction:column;gap:10px;
    padding:12px 16px 18px;background:var(--tsh-surface);
    border-bottom:1px solid var(--tsh-line);box-shadow:0 14px 28px rgba(13,42,72,.12);
    max-height:calc(100vh - var(--tsh-header-h));overflow-y:auto;
  }
  .tsh-nav.is-open{display:flex}
  .tsh-nav ul{flex-direction:column !important;align-items:stretch;gap:2px !important}
  .tsh-nav a{padding:12px 14px;font-size:1rem}
  .tsh-nav .tsh-cta--menu{display:flex;padding:12px}
  .tsh-header__tools{margin-inline-start:auto}
}
@media (max-width:420px){
  :root{--tsh-header-h:62px}
  .tsh-brand__icon{width:36px;height:36px}
  .tsh-brand__name{font-size:1rem}
  .tsh-brand__tag{font-size:.7rem}
  .tsh-header__inner{padding:0 14px;gap:10px}
}

/* ---------- Footer ---------- */
footer.tsh-footer{
  display:block;margin:56px 0 0;padding:0;border:0;
  background:var(--tsh-navy-2);color:#cbd6e2;
  font-family:var(--tsh-font);font-size:.95rem;line-height:1.8;text-align:right;
}
html:not(.tsh-dark) footer.tsh-footer{background:#0f2f50}
.tsh-footer__inner{
  max-width:1200px;margin:0 auto;padding:48px 20px 32px;
  display:grid;grid-template-columns:1.6fr 1fr 1fr 1.2fr;gap:32px;
}
.tsh-footer .tsh-brand__name{color:#fff}
.tsh-footer .tsh-brand__name b{color:#5fd39b}
.tsh-footer .tsh-brand__tag{color:#9fb3c8}
.tsh-footer__about p{margin:14px 0 16px;color:#b7c5d4;max-width:42ch}
.tsh-footer h3{margin:4px 0 12px !important;font-size:1rem !important;font-weight:700;color:#fff !important;font-family:var(--tsh-font)}
.tsh-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.tsh-footer li{color:#b7c5d4}
.tsh-footer a{color:#dbe6f1 !important;text-decoration:none !important}
.tsh-footer a:hover{color:#fff !important;text-decoration:underline !important}
.tsh-footer__wa{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:10px;background:rgba(255,255,255,.08);font-weight:600}
.tsh-footer__wa svg{width:20px;height:20px;fill:#5fd39b}
.tsh-footer__social{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.tsh-footer__bottom{
  max-width:1200px;margin:0 auto;padding:16px 20px 22px;
  border-top:1px solid rgba(255,255,255,.1);
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;
  font-size:.85rem;color:#93a6ba;
}
.tsh-footer__bottom p{margin:0}
@media (max-width:860px){
  .tsh-footer__inner{grid-template-columns:1fr 1fr}
  .tsh-footer__about{grid-column:1/-1}
}
@media (max-width:480px){
  .tsh-footer__inner{grid-template-columns:1fr;gap:24px;padding-top:36px}
}

/* ---------- WhatsApp floating button ---------- */
.tsh-wa-float{
  position:fixed;bottom:20px;left:20px;z-index:900;
  width:54px;height:54px;border-radius:50%;
  display:grid;place-items:center;background:#25d366;
  box-shadow:0 8px 22px rgba(0,0,0,.18);
}
.tsh-wa-float svg{width:28px;height:28px;fill:#fff}
@media print{header.tsh-header,.tsh-wa-float{display:none}}
@media (prefers-reduced-motion:reduce){header.tsh-header,.tsh-cta,.tsh-nav a{transition:none}}

/* fixes */
.tsh-nav a.tsh-cta{color:#fff !important;background:var(--tsh-green)}
html.tsh-dark .tsh-nav a.tsh-cta{color:#0b1a14 !important}
.tsh-footer .tsh-brand__icon{box-shadow:none}
body.tsh-home footer.tsh-footer{margin-top:0}
header.tsh-header button.tsh-iconbtn{box-shadow:none !important;background:var(--tsh-surface) !important;border:1px solid var(--tsh-line) !important;color:var(--tsh-navy) !important;border-radius:10px !important;transform:none !important;min-height:0 !important}
[hidden]{display:none !important}
