/* =========================================================
   Altarahm — site.css (Clean + Modern + Mobile First)
   Accent: Gold #c9a227
========================================================= */

/* =========================
   Root Variables
========================= */
:root{
  --bg:#0b0c10;
  --card:#10131b;
  --text:#e9edf7;
  --muted:#aab2c5;
  --line:rgba(255,255,255,.10);

  --accent:#c9a227;                  /* Gold */
  --accent-rgb:201,162,39;           /* For rgba() */

  /* Typography */
  --font-ar:"Tajawal","Segoe UI","Tahoma",system-ui,Arial,sans-serif;
  --font-en:"Poppins","Segoe UI",system-ui,Arial,sans-serif;

  /* Layout */
  --container:1100px;
  --radius:18px;

  /* Spacing / responsive */
  --pad: clamp(14px, 3vw, 18px);
  --section: clamp(18px, 4vw, 34px);

  /* Shadows / gradients */
  --shadow: 0 14px 32px rgba(0,0,0,.28);
  --shadow-soft: 0 10px 22px rgba(0,0,0,.20);
  --grad-card: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  --grad-card-2: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

/* =========================
   Reset + Base
========================= */
*{ box-sizing:border-box; }

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
}

html,body{
  margin:0;
  padding:0;
  height:100%;
}

body{
  font-family: var(--font-ar);
  background:var(--bg);
  color:var(--text);
  line-height:1.85;
  font-size: clamp(14.5px, 1.35vw, 16px);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  max-width:100%;
  height:auto;
}

.container{
  width: min(var(--container), 92vw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* Better headings for mobile */
h1{
  margin: 10px 0 8px;
  font-size: clamp(22px, 4.6vw, 38px);
  line-height: 1.25;
  font-weight: 900;
}
h2{
  margin: 0 0 10px;
  font-size: clamp(18px, 3.6vw, 24px);
  line-height: 1.35;
  font-weight: 900;
}
h3{
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 900;
}

/* Tap friendly */
a, button{ -webkit-tap-highlight-color: transparent; }

/* =========================
   Header / Navigation (Public)
   (If you use .header .nav .brand .menu)
========================= */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(10,12,18,.55);
  border-bottom: 1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
}

.brand b{
  font-size: 18px;
}

.menu{
  display:flex;
  gap: 16px;
  flex-wrap:wrap;
}

.menu a{
  text-decoration:none;
  color: var(--muted);
  transition: .25s ease;
}

.menu a:hover{
  color: var(--text);
}

/* =========================
   Public Pages — Hero
   .page-hero + .wrap + .kicker + .lead + .page-meta + .badge
========================= */
.page-hero{
  padding: calc(64px + 28px) 0 18px;
}

.page-hero .wrap{
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(201,162,39,.10), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow-soft);
  padding: clamp(16px, 3vw, 22px);
  position: relative;
  overflow: hidden;
}

.page-hero .wrap:after{
  content:"";
  position:absolute;
  inset:-60%;
  background:
    radial-gradient(circle at 30% 30%, rgba(var(--accent-rgb), .12), transparent 55%),
    radial-gradient(circle at 70% 40%, rgba(43,124,255,.16), transparent 58%);
  pointer-events:none;
}

.page-hero .kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:900;
  font-size:12.5px;
  color: var(--accent);
  letter-spacing:.4px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  position:relative;
  z-index:1;
}

.page-hero h1,
.page-hero .lead,
.page-hero .page-meta{
  position:relative;
  z-index:1;
}

.page-hero h1{
  margin: 12px 0 8px;
  font-size: clamp(26px, 4.2vw, 40px);
}

.page-hero .lead{
  margin:0;
  color: rgba(233,237,247,.82);
  line-height:1.95;
  font-size: clamp(14.5px, 2.3vw, 16.5px);
}

.page-meta{
  margin-top: 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color: rgba(233,237,247,.78);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

/* =========================
   Sections
========================= */
.section{
  padding: 22px 0 34px;
}

/* =========================
   Grid Layouts
========================= */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin: 18px 0 36px;
}

.grid2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

@media (max-width: 900px){
  .grid, .grid2, .grid3{ grid-template-columns: 1fr; }
}

/* =========================
   Cards
========================= */
.card,
.pcard{
  border-radius: var(--radius);
  padding: clamp(14px, 3.2vw, 18px);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow-soft);
  background: var(--grad-card);
  transition: .22s ease;
}

.card:hover,
.pcard:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: var(--grad-card-2);
}

.card p,
.pcard .muted{
  margin: 0;
  color: rgba(233,237,247,.75);
  line-height: 1.9;
  font-size: 14px;
}

@media (max-width: 640px){
  .card, .pcard{ border-radius: 16px; }
}

/* =========================
   Prose blocks
========================= */
.prose{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: clamp(14px, 3.2vw, 18px);
}

.prose p{
  margin: 0 0 12px;
  color: rgba(233,237,247,.80);
  line-height: 1.95;
}

.prose p:last-child{ margin-bottom:0; }

.prose ul{
  margin: 10px 0 0;
  padding: 0 18px 0 0;
  display:grid;
  gap:8px;
}

.prose li{
  color: rgba(233,237,247,.78);
  line-height: 1.9;
}

.prose a{
  color: var(--accent);
  border-bottom: 1px dashed rgba(var(--accent-rgb), .35);
}

.prose a:hover{
  border-bottom-color: rgba(var(--accent-rgb), .75);
}

.note{
  font-size: 12.5px;
  color: rgba(233,237,247,.60);
  margin-top: 10px;
}

/* =========================
   Divider
========================= */
.hr{
  height:1px;
  background: rgba(255,255,255,.08);
  border:0;
  margin: 16px 0;
}

/* =========================
   Buttons
========================= */
.actions-row,
.btns{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 11px 16px;
  border-radius: 14px;
  font-weight: 900;
  border: 1px solid var(--line);
  transition: .25s ease;
  cursor: pointer;
  user-select: none;
}

.btn.primary{
  background: var(--accent);
  color: #0b0c10;
  border-color: transparent;
}

.btn.primary:hover{ opacity: .92; }

.btn.ghost{
  background: transparent;
  color: var(--text);
}

.btn.ghost:hover{
  background: rgba(255,255,255,.05);
}

/* =========================
   Forms
========================= */
.form{ display:grid; gap: 12px; }

.field label{
  display:block;
  font-weight: 900;
  font-size: 13px;
  color: rgba(233,237,247,.86);
  margin-bottom: 6px;
}

.input, .textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: .2s ease;
}

.input:focus, .textarea:focus{
  border-color: rgba(var(--accent-rgb), .45);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12);
}

.textarea{
  min-height: 130px;
  resize: vertical;
}

/* =========================
   Footer
========================= */
#site-footer{
  margin-top: 60px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

#site-footer .f-wrap{
  width: min(var(--container), 92vw);
  margin: auto;
  display:grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding-inline: var(--pad);
  padding-bottom: 30px;
}

#site-footer .f-col h3{
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--accent);
  font-weight: 900;
}

#site-footer .f-text{
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
  margin: 10px 0 0;
}

#site-footer .f-brand-head{
  display:flex;
  align-items:center;
  gap: 12px;
}

#site-footer .footer-logo{
  max-width: 180px;
  height:auto;
  display:block;
}

#site-footer .f-links,
#site-footer .f-contacts{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap: 9px;
}

#site-footer .f-links a,
#site-footer .f-contacts a{
  color: var(--muted);
  font-size: 14px;
  transition: .25s ease;
}

#site-footer .f-links a:hover,
#site-footer .f-contacts a:hover{
  color: var(--text);
  padding-right: 4px;
}

#site-footer .f-social{
  display:flex;
  gap: 10px;
  margin-top: 12px;
}

#site-footer .f-social a{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  transition: .25s ease;
}

#site-footer .f-social a:hover{
  color: #0b0c10;
  background: var(--accent);
  border-color: transparent;
}

#site-footer .license-mini{
  margin-top: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

#site-footer .license-mini img{
  width: 42px;
  height:auto;
}

/* Footer bottom */
#site-footer .f-bottom{
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

#site-footer .f-bottom-inner{
  width: min(var(--container), 92vw);
  margin: auto;
  padding-inline: var(--pad);

  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  gap: 14px;

  font-size: 13px;
  color: var(--muted);
}

#site-footer .f-bottom-left{
  justify-self: start;
  direction: rtl;
  text-align: right;
}

#site-footer .f-bottom-mid{
  justify-self: start;
  direction: ltr;
  text-align: left;
}

#site-footer .f-bottom-right{
  justify-self: end;
  direction: ltr;
  text-align: left;
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

#site-footer .version-badge{
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  font-size: 12px;
  white-space: nowrap;
}

#site-footer .dev-text strong{
  color: var(--accent);
}

/* Responsive footer */
@media (max-width: 980px){
  #site-footer .f-wrap{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px){
  #site-footer .f-wrap{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #site-footer .f-bottom-inner{
    grid-template-columns: 1fr;
    text-align:center;
    justify-items:center;
  }

  #site-footer .f-bottom-left,
  #site-footer .f-bottom-mid,
  #site-footer .f-bottom-right{
    justify-self:center;
    text-align:center;
    direction: rtl;
    white-space: normal;
  }

  #site-footer .f-bottom-mid{ direction:ltr; }
  #site-footer .f-bottom-right{ direction:ltr; justify-content:center; }
}

/* =========================
   Utility
========================= */
.small{
  font-size: 12px;
  color: var(--muted);
}
/* ===== الهيدر ثابت داكن في جميع الثيمات ===== */
header,
.site-header,
.navbar{
  background: linear-gradient(to bottom,#081425,#07111f) !important;
  color:#ffffff !important;
  border-bottom:1px solid rgba(255,255,255,.08);
}

/* الروابط داخل الهيدر */
header a,
.site-header a,
.navbar a{
  color:#e2e8f0 !important;
}

header a:hover,
.site-header a:hover,
.navbar a:hover{
  color:#ffffff !important;
}
