.hf {
  --hf-navy: #0a2552;
  --hf-blue: #1456a8;
  --hf-red-1: #ff4b5c;
  --hf-red-2: #b3122b;
  --hf-accent: #ff6b78; /* أحمر فاتح للنصوص والأيقونات على الخلفية الداكنة */
  --hf-grad: linear-gradient(135deg, var(--hf-red-1), var(--hf-red-2));
  --hf-text: #e8eefb;
  --hf-muted: #a9bbdb;
  font-family: 'Tajawal', system-ui, sans-serif;
  color: var(--hf-text);
  line-height: 1.7;
}
.hf *, .hf *::before, .hf *::after { box-sizing: border-box; }
.hf a { color: inherit; text-decoration: none; }
.hf ul { list-style: none; margin: 0; padding: 0; }
.hf svg { fill: currentColor; }

/* الخلفية */
.hf-top {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(60,130,230,.35), transparent 60%),
    linear-gradient(135deg, var(--hf-navy) 0%, #0f3a7c 55%, var(--hf-blue) 100%);
  padding: 72px max(24px, 5vw) 56px;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--hf-red-2), var(--hf-red-1), var(--hf-red-2)) 1;
}
/* نمط المعينات الخفيف */
.hf-top::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(460px, 60%);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='460' height='300' viewBox='0 0 460 300'><g fill='white'><rect x='-40' y='30' width='120' height='120' transform='rotate(45 20 90)' opacity='.06'/><rect x='80' y='-30' width='90' height='90' transform='rotate(45 125 15)' opacity='.05'/><rect x='120' y='130' width='110' height='110' transform='rotate(45 175 185)' opacity='.07'/><rect x='-20' y='210' width='90' height='90' transform='rotate(45 25 255)' opacity='.05'/><rect x='260' y='60' width='60' height='60' transform='rotate(45 290 90)' opacity='.04'/></g></svg>") left top / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, #000 30%, transparent);
          mask-image: linear-gradient(to right, #000 30%, transparent);
  pointer-events: none;
}

.hf-grid {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
}

/* العلامة */
.hf-logo { display: block; width: 100%; max-width: 220px; height: auto; margin-bottom: 16px; }
.hf-tagline { margin: 0 0 22px; font-size: 1.5rem; font-weight: 800; color: #fff; }

.hf-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--hf-grad);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(179,18,43,.35);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.hf-cta svg { width: 20px; height: 20px; }
.hf-cta:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 10px 24px rgba(179,18,43,.5); }

.hf-social { display: flex; gap: 12px; margin-top: 28px; }
.hf-social a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  transition: transform .2s, background .2s, border-color .2s;
}
.hf-social svg { width: 22px; height: 22px; }
.hf-social a:hover { transform: translateY(-3px); border-color: transparent; }
.hf-social .fb:hover { background: #1877f2; }
.hf-social .x:hover  { background: #000; }
.hf-social .ig:hover { background: linear-gradient(45deg,#f9a03f,#e1306c 55%,#833ab4); }
.hf-social .yt:hover { background: #ff0000; }

/* الأعمدة */
.hf-col h3 {
  margin: 0 0 22px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  position: relative;
  padding-bottom: 12px;
}
.hf-col h3::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 36px; height: 3px;
  border-radius: 3px;
  background: var(--hf-grad);
}

.hf-links { display: grid; gap: 4px; }
.hf-links a {
  display: inline-block;
  padding: 4px 0;
  color: var(--hf-text);
  transition: color .2s, transform .2s;
}
.hf-links a:hover { color: var(--hf-accent); transform: translateX(-4px); }

.hf-contact { display: grid; gap: 14px; }
.hf-contact li { display: flex; align-items: center; gap: 12px; }
.hf-contact .ico {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: var(--hf-accent);
}
.hf-contact .ico svg { width: 20px; height: 20px; }
.hf-contact a:hover { color: var(--hf-accent); }

/* الشريط السفلي */
.hf-bar {
  position: relative;
  background: #071a3a;
  padding: 20px max(24px, 5vw);
  text-align: center;
}
.hf-bar p { margin: 0; color: var(--hf-muted); font-size: .95rem; }
.hf-up {
  position: absolute;
  left: max(24px, 5vw);
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--hf-blue);
  color: #fff;
  transition: background .2s, transform .2s;
}
.hf-up svg { width: 24px; height: 24px; }
.hf-up:hover { background: var(--hf-grad); color: #fff; transform: translateY(-55%); }

/* تابلت وموبايل */
@media (max-width: 900px) {
  .hf-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hf-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hf-top { padding-block: 56px 40px; }
  .hf-grid { grid-template-columns: 1fr; }
  .hf-bar { padding-inline: 24px 80px; text-align: right; }
  .hf-bar p { font-size: .85rem; }
}


.hf-mail {
  position: absolute;
  left: calc(max(24px, 5vw) + 54px);
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  color: #fff;
  transition: background .2s, transform .2s;
}
.hf-mail svg { width: 22px; height: 22px; }
.hf-mail:hover { background: var(--hf-grad); transform: translateY(-55%); }

@media (max-width: 560px) {
  .hf-bar { padding-inline: 24px 140px; }
}





