/* ============================================================
   assets/css/site.css — الموقع العام لنادي العقيق
   ============================================================ */

/* ── الترويسة ────────────────────────────────────────────── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-head-in {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-block: var(--sp-3);
}
.logo { display: flex; align-items: center; gap: var(--sp-3); }
.logo .mark {
  width: 44px; height: 44px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--agate-600), var(--agate-900));
  color: var(--gold-400);
  font-weight: 800; font-size: 1.1rem;
}
.logo .txt .n { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.logo .txt .s { font-size: .74rem; color: var(--text-mute); }

.site-nav { display: flex; gap: var(--sp-2); margin-inline-start: auto; align-items: center; }
.site-nav a.nav-link {
  padding: 9px 15px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: .93rem;
  color: var(--text-soft);
  transition: background .15s, color .15s;
}
.site-nav a.nav-link:hover { background: var(--agate-50); color: var(--agate-700); }

.nav-burger { display: none; }

/* ── القسم البطل ─────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--sp-7), 9vw, 120px);
  background:
    radial-gradient(900px 560px at 82% 6%,  rgba(155,36,84,.14), transparent 62%),
    radial-gradient(760px 460px at 6% 100%, rgba(201,164,107,.18), transparent 62%),
    var(--bg);
}
.hero-in {
  display: grid;
  gap: clamp(var(--sp-6), 5vw, var(--sp-8));
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  align-items: center;
}
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 7px 16px;
  border-radius: var(--r-full);
  background: var(--agate-100);
  color: var(--agate-800);
  font-weight: 700;
  font-size: .84rem;
  margin-bottom: var(--sp-4);
}
.hero h1 {
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.7rem);
  line-height: 1.14;
  margin-bottom: var(--sp-4);
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--agate-600), var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(1.02rem, .95rem + .5vw, 1.22rem);
  color: var(--text-soft);
  max-width: 54ch;
  margin-bottom: var(--sp-5);
}
.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.hero-art {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--agate-700), var(--agate-950) 65%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-lg);
  display: grid;
  place-items: center;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset-block-start: -25%;
  inset-inline-end: -25%;
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,107,.4), transparent 68%);
}
.hero-art-in { position: relative; text-align: center; color: #fff; padding: var(--sp-5); }
.hero-art-in .big { font-size: 4.4rem; line-height: 1; margin-bottom: var(--sp-3); }
.hero-art-in .q {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.6;
  max-width: 22ch;
  margin-inline: auto;
}
.hero-art-in .by { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: var(--sp-3); }

/* ── شريط الأرقام ────────────────────────────────────────── */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  margin-top: calc(-1 * var(--sp-6));
  position: relative;
  z-index: 2;
}
.strip-item { text-align: center; }
.strip-item .v { font-size: 1.9rem; font-weight: 800; color: var(--agate-700); line-height: 1.1; }
.strip-item .k { font-size: .82rem; color: var(--text-mute); font-weight: 600; }

/* ── الأقسام ─────────────────────────────────────────────── */
.sec-head { text-align: center; max-width: 62ch; margin: 0 auto var(--sp-6); }
.sec-head .kicker {
  font-weight: 700;
  color: var(--agate-600);
  font-size: .88rem;
  letter-spacing: .04em;
  margin-bottom: var(--sp-2);
}

.feature {
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--agate-200); }
.feature .ic {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--agate-50);
  font-size: 1.5rem;
  margin-bottom: var(--sp-4);
}
.feature h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.feature p { color: var(--text-soft); font-size: .94rem; margin-bottom: 0; }

/* ── خطوات الاشتراك ──────────────────────────────────────── */
.steps-list { counter-reset: st; display: grid; gap: var(--sp-4); }
.step-item {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  align-items: flex-start;
}
.step-item::before {
  counter-increment: st;
  content: counter(st);
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--agate-700);
  color: #fff;
  font-weight: 800;
}

/* ── الأسئلة الشائعة ─────────────────────────────────────── */
.faq { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.faq + .faq { margin-top: var(--sp-3); }
.faq summary {
  padding: var(--sp-4);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--agate-600); font-size: 1.2rem; flex: none; }
.faq[open] summary::after { content: "－"; }
.faq .faq-body { padding: 0 var(--sp-4) var(--sp-4); color: var(--text-soft); font-size: .95rem; }

/* ── نداء الإجراء ────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(140deg, var(--agate-800), var(--agate-950));
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(var(--sp-6), 5vw, var(--sp-8));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset-block-end: -50%;
  inset-inline-start: -10%;
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201,164,107,.3), transparent 68%);
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p  { color: rgba(255,255,255,.78); position: relative; max-width: 56ch; margin-inline: auto; }

/* ── التذييل ─────────────────────────────────────────────── */
.site-foot {
  background: var(--agate-950);
  color: rgba(255,255,255,.68);
  padding-block: var(--sp-7) var(--sp-5);
  margin-top: var(--sp-8);
}
.site-foot a { color: rgba(255,255,255,.85); }
.site-foot a:hover { color: var(--gold-400); }
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.foot-grid h4 { color: #fff; font-size: .95rem; margin-bottom: var(--sp-3); }
.foot-grid a { display: block; padding: 4px 0; font-size: .9rem; }
.foot-bottom {
  padding-top: var(--sp-4);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  font-size: .82rem;
}

/* ── حساب العضوة ─────────────────────────────────────────── */
.member-shell { max-width: 1080px; margin-inline: auto; padding: var(--sp-5) var(--sp-4) var(--sp-8); }
.member-tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.member-tabs a {
  padding: 10px 18px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-soft);
}
.member-tabs a.is-active { background: var(--agate-700); border-color: transparent; color: #fff; }

.progress-ring { display: flex; align-items: center; gap: var(--sp-4); }
.progress-ring svg { width: 84px; height: 84px; transform: rotate(-90deg); flex: none; }
.progress-ring .t { fill: none; stroke: var(--ink-200); stroke-width: 9; }
.progress-ring .p { fill: none; stroke: var(--agate-600); stroke-width: 9; stroke-linecap: round; }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex;
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    flex-direction: column;
    background: var(--surface);
    padding: var(--sp-4);
    gap: var(--sp-2);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-md);
  }
  .site-nav a { width: 100%; text-align: center; }
  .nav-burger { display: inline-flex; margin-inline-start: auto; }
  .site-head-in { position: relative; }
}
