/* =========================================================
   THIQA360 — crisp, professional UI (EN + AR/RTL)
   Put this file at: /public_html/css/style.css
   ========================================================= */

/* Reset-ish */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid rgba(46, 226, 255, .85); outline-offset: 2px; }

/* Tokens */
:root{
  --bg: #070a12;
  --bg2:#0b1020;

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --subtle: rgba(255,255,255,.10);

  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --line: rgba(255,255,255,.12);

  --primary: #2fe2ff;
  --primary2:#39ffa7;

  --radius: 18px;
  --radius2: 14px;

  --shadow: 0 12px 44px rgba(0,0,0,.55);
}

/* Prevent weird horizontal whitespace */
html, body { width: 100%; overflow-x: hidden; }

/* Base */
body{
  color: var(--text);
  background:
    radial-gradient(1200px 900px at 12% 18%, rgba(47,226,255,.22), transparent 60%),
    radial-gradient(900px 700px at 78% 10%, rgba(57,255,167,.18), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;

  /* Crisp rendering */
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;

  /* Kill any accidental blur from older CSS */
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Arabic font when RTL */
html[dir="rtl"] body{
  font-family: "Noto Kufi Arabic", "Noto Sans Arabic", "Tahoma", Arial, sans-serif;
}

/* Layout helpers */
.container{
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.section{ padding: 56px 0; }
@media (max-width: 680px){
  .section{ padding: 36px 0; }
  .container{ width: calc(100% - 28px); }
}

/* Skip link */
.skip-link{
  position: absolute;
  left: -999px;
  top: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 999;
}
.skip-link:focus{ left: 12px; }

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,10,18,.82);
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    radial-gradient(18px 18px at 30% 30%, rgba(47,226,255,.75), rgba(47,226,255,.15)),
    radial-gradient(18px 18px at 75% 75%, rgba(57,255,167,.55), rgba(57,255,167,.10));
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
}

.brand__mark::after{
  content: "T";
  font-weight: 800;
  letter-spacing: .02em;
}

.brand__text{ min-width: 0; }
.brand__name{
  font-weight: 800;
  letter-spacing: .16em;
  font-size: 12px;
  text-transform: uppercase;
  opacity: .92;
}
.brand__tag{
  font-size: 12px;
  color: var(--muted);
  opacity: .92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}

.topbar__actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Pills / Buttons */
.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.pill:hover{ background: rgba(255,255,255,.09); }
.pill__label{ opacity: .95; }

.pill--primary{
  border-color: rgba(47,226,255,.35);
  background: linear-gradient(135deg, rgba(47,226,255,.22), rgba(57,255,167,.10));
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}
.btn:hover{ background: rgba(255,255,255,.09); }
.btn--primary{
  border-color: rgba(47,226,255,.35);
  background: linear-gradient(135deg, rgba(47,226,255,.30), rgba(57,255,167,.14));
}
.btn--secondary{
  border-color: rgba(255,255,255,.14);
}

/* Hero */
.hero{ padding: 34px 0 0; }
.hero__grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 920px){
  .hero__grid{ grid-template-columns: 1fr; }
}

.eyebrow{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero__title{
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

html[dir="rtl"] .hero__title{
  letter-spacing: 0;
  line-height: 1.15;
}

.hero__lead{
  margin: 0 0 18px;
  font-size: 15px;
  color: rgba(255,255,255,.78);
  max-width: 64ch;
}

.cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 20px;
}

/* Facts */
.facts{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
@media (max-width: 520px){
  .facts{ grid-template-columns: 1fr; }
}

.fact{
  padding: 14px 14px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.fact__k{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.fact__v{ font-weight: 700; }

/* Cards / Panels */
.card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card__pad{ padding: 18px 18px; }

.card__title{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin: 0 0 8px;
}
.card__name{
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}
.card__text{
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}

.divider{
  height: 1px;
  background: rgba(255,255,255,.10);
  margin: 14px 0;
}

/* Section titles */
.section__title{
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.section__lead{
  margin: 0 0 18px;
  color: rgba(255,255,255,.74);
}

/* Pillars grid */
.pillars{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
@media (max-width: 920px){
  .pillars{ grid-template-columns: 1fr; }
}

.pillar{
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.pillar__n{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 10px;
}
.pillar__t{ font-weight: 800; margin: 0 0 8px; }
.pillar__p{ margin: 0; color: rgba(255,255,255,.78); font-size: 14px; }

/* Investor block */
.panel{
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.panel + .panel{ margin-top: 12px; }
.panel__title{ margin: 0 0 8px; font-weight: 800; }
.panel__text{ margin: 0; color: rgba(255,255,255,.78); }

/* Callout/contact */
.callout{
  border-radius: var(--radius);
  border: 1px solid rgba(47,226,255,.25);
  background:
    radial-gradient(900px 420px at 20% 20%, rgba(47,226,255,.18), transparent 60%),
    rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.callout__title{
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.callout__text{ margin: 0; color: rgba(255,255,255,.78); }

/* Footer */
.footer{
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 30px;
}
.footer__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer__left{ color: rgba(255,255,255,.70); font-size: 13px; }
.footer__right a{ color: rgba(255,255,255,.70); font-size: 13px; }
.footer__right a:hover{ color: rgba(255,255,255,.92); }

.brand__mini{
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  margin-inline-end: 8px;
}

/* =========================================================
   LANGUAGE VISIBILITY (FINAL)
   We follow the HTML [hidden] attribute ONLY.
   This prevents “Arabic below English” and blank pages.
   ========================================================= */
[data-lang]{ display: block; }
[data-lang][hidden]{ display: none !important; }

/* RTL polishing */
html[dir="rtl"] .topbar__inner,
html[dir="rtl"] .hero__grid,
html[dir="rtl"] .footer__inner{
  direction: rtl;
}

html[dir="rtl"] .eyebrow{
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .fact__k{
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .cta{ justify-content: flex-start; }

/* Small screens */
@media (max-width: 420px){
  .brand__tag{ display: none; }
  .pill{ padding: 9px 12px; }
  .btn{ width: 100%; }
  .callout{ align-items: stretch; }
}