/* ============================================================
   منصة الجمعيات — association.govi.sa
   هوية: الأخضر السعودي + الذهبي · زخرفة النجمة الثمانية · نقش السدو
   لا إطار عمل — CSS يدوي، التحرير المباشر ثم رفع ?v=NN في landing.blade.php
   ============================================================ */
:root {
  --green:   #0B5B3B;
  --green-d: #07402A;
  --ink:     #06281B;
  --gold:    #C9A24B;
  --gold-l:  #E3C77E;
  --ivory:   #F9F6EE;
  --paper:   #FFFFFF;
  --txt:     #23372E;
  --muted:   #5C6F64;
  --radius:  14px;
  --kufi:    'Noto Kufi Arabic', 'Tajawal', sans-serif;
  --body:    'Tajawal', 'Noto Kufi Arabic', sans-serif;
  --amiri:   'Amiri', serif;
  /* شبكة النجمة الثمانية — نسختا الداكن والفاتح */
  --star-dark:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'%3E%3Crect x='28' y='28' width='40' height='40'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3Cpath d='M48 0v28M48 68v28M0 48h28M68 48h96'/%3E%3Ccircle cx='48' cy='48' r='6'/%3E%3Cpath d='M0 0l28 28M96 0L68 28M0 96l28-28M96 96L68 68'/%3E%3C/g%3E%3C/svg%3E");
  --star-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%230B5B3B' stroke-opacity='.055' stroke-width='1.2'%3E%3Crect x='28' y='28' width='40' height='40'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3Cpath d='M48 0v28M48 68v28M0 48h28M68 48h96'/%3E%3Ccircle cx='48' cy='48' r='6'/%3E%3Cpath d='M0 0l28 28M96 0L68 28M0 96l28-28M96 96L68 68'/%3E%3C/g%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--txt);
  background: var(--ivory);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 92%); margin-inline: auto; }
.container.narrow { width: min(760px, 92%); }

/* ---------- الشريط العلوي ---------- */
.topbar {
  position: absolute; inset-inline: 0; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  width: min(1120px, 92%); margin-inline: auto; padding-block: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-name { font-family: var(--kufi); font-size: 1.15rem; color: #F4EBD7; letter-spacing: .5px; }
.brand-name b { color: var(--gold-l); font-weight: 700; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-block; font-family: var(--kufi); font-weight: 600;
  border-radius: 999px; padding: 13px 32px; font-size: 1rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: 1.6px solid transparent; cursor: pointer;
}
.btn-sm { padding: 9px 22px; font-size: .9rem; }
.btn-gold {
  background: linear-gradient(135deg, #D9B25F, var(--gold) 55%, #A9843B);
  color: #2C2008; box-shadow: 0 6px 18px rgba(201, 162, 75, .35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201, 162, 75, .45); }
.btn-ghost { color: #F4EBD7; border-color: rgba(244, 235, 215, .45); }
.btn-ghost:hover { border-color: var(--gold-l); color: var(--gold-l); }
.btn-block { width: 100%; }

/* ---------- الهيرو ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(201,162,75,.16), transparent 60%),
    radial-gradient(700px 480px at 8% 110%, rgba(20,120,80,.35), transparent 60%),
    linear-gradient(160deg, var(--green-d) 0%, var(--green) 55%, #0D6843 100%);
  color: #F4EBD7;
  min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 140px 5% 90px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--star-dark); background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 78%);
}
.hero-inner { position: relative; max-width: 780px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--kufi); font-size: .92rem; letter-spacing: .5px;
  color: var(--gold-l); border: 1px solid rgba(201, 162, 75, .5);
  background: rgba(201, 162, 75, .1); border-radius: 999px;
  padding: 8px 20px; margin-bottom: 28px;
}
.badge-star { font-size: 1.15rem; line-height: 1; }
.hero h1 {
  font-family: var(--kufi); font-weight: 800;
  font-size: clamp(2.3rem, 5.6vw, 4rem); line-height: 1.45; margin-bottom: 20px;
}
.dot-gold { color: var(--gold); }
.grad-gold {
  background: linear-gradient(120deg, var(--gold-l), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem); font-weight: 300;
  color: rgba(244, 235, 215, .88); max-width: 640px; margin: 0 auto 38px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- شريط السدو ---------- */
.sadu {
  height: 14px;
  background-color: var(--ivory);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 14L7 0l7 14z' fill='%23C9A24B'/%3E%3Cpath d='M14 14L21 0l7 14z' fill='%230B5B3B'/%3E%3C/svg%3E");
  background-size: 28px 14px; background-repeat: repeat-x;
}
.sadu-flip { transform: scaleY(-1); }

/* ---------- ترويسة الأقسام ---------- */
.sec-head { text-align: center; margin-bottom: 56px; }
.kicker {
  display: inline-block; font-family: var(--kufi); font-size: .88rem;
  color: var(--gold); letter-spacing: 1px; margin-bottom: 12px; font-weight: 600;
}
.sec-head h2 {
  font-family: var(--kufi); font-weight: 700; color: var(--green-d);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.5;
}
.sec-head.light h2 { color: #F4EBD7; }
.sec-head.light .sub { color: rgba(244, 235, 215, .8); margin-top: 10px; font-weight: 300; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.orn-line {
  width: 70px; height: 1px;
  background: linear-gradient(to var(--orn-dir, left), var(--gold), transparent);
}
.orn-line:first-child { --orn-dir: right; }
.orn-star { color: var(--gold); font-size: 1rem; }

/* ---------- بطاقات المزايا ---------- */
.features {
  padding: 96px 0;
  background-color: var(--ivory);
  background-image: var(--star-light); background-size: 96px 96px;
}
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px;
}
.card {
  background: var(--paper); border-radius: var(--radius);
  padding: 34px 28px 30px; position: relative; overflow: hidden;
  border: 1px solid #ECE5D4;
  box-shadow: 0 2px 10px rgba(7, 64, 42, .05);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  opacity: 0; transition: opacity .22s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--gold-l); box-shadow: 0 16px 34px rgba(7, 64, 42, .12); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 62px; height: 62px; margin-bottom: 20px;
  display: grid; place-items: center; color: var(--green);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23C9A24B' stroke-opacity='.55' stroke-width='1.6'%3E%3Crect x='17' y='17' width='30' height='30'/%3E%3Crect x='17' y='17' width='30' height='30' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-icon .fill-star { fill: var(--gold); stroke: var(--gold); stroke-width: 1; }
.card h3 { font-family: var(--kufi); font-weight: 700; color: var(--green-d); font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }

/* ---------- الآية ---------- */
.verse {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(201,162,75,.12), transparent 70%),
    linear-gradient(160deg, var(--ink), var(--green-d));
  color: #F4EBD7; text-align: center; padding: 84px 0;
  position: relative; overflow: hidden;
}
.verse::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--star-dark); background-size: 96px 96px; opacity: .6;
}
.verse .container { position: relative; max-width: 820px; }
.verse-orn { color: var(--gold); font-size: 2.2rem; margin-bottom: 18px; }
.verse-text {
  font-family: var(--amiri); font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  line-height: 2.1; color: #F8F2E2;
}
.verse-ref {
  display: inline-block; margin-top: 22px; font-family: var(--kufi);
  color: var(--gold-l); font-size: .95rem; letter-spacing: 1px;
}

/* ---------- نموذج الاهتمام ---------- */
.interest {
  background-color: var(--green);
  background-image:
    radial-gradient(800px 400px at 90% 10%, rgba(201,162,75,.14), transparent 60%),
    var(--star-dark);
  background-size: auto, 96px 96px;
  padding: 96px 0;
}
.flash-ok, .flash-err {
  border-radius: 12px; padding: 15px 22px; margin-bottom: 22px;
  font-family: var(--kufi); font-size: .98rem;
}
.flash-ok  { background: #EAF6EE; color: #14532D; border: 1px solid #A7D9B9; }
.flash-err { background: #FBEFEA; color: #7C2D12; border: 1px solid #ECC3B2; }
.form-card {
  background: var(--paper); border-radius: 18px; padding: 40px 36px;
  box-shadow: 0 24px 60px rgba(4, 30, 20, .35);
  border-top: 4px solid var(--gold);
}
.hp { position: absolute; right: -9999px; opacity: 0; height: 0; width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--kufi); font-weight: 600;
  font-size: .92rem; color: var(--green-d); margin-bottom: 8px;
}
.field label i { color: #B4532A; font-style: normal; }
.field .opt { color: var(--muted); font-weight: 400; font-size: .8rem; }
.field input {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--txt);
  background: #FBFAF6; border: 1.5px solid #E3DCCA; border-radius: 11px;
  padding: 13px 16px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #A8B2AA; }
.field input:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3.5px rgba(11, 91, 59, .12); background: #fff;
}
.form-card .btn-block { margin-top: 8px; }
.privacy { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 16px; }

/* ---------- التذييل ---------- */
.footer {
  background: var(--ink); color: rgba(244, 235, 215, .75);
  text-align: center; padding: 56px 0 40px;
  border-top: 3px solid var(--gold);
}
.foot-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer .brand-mark { width: 40px; height: 40px; }
.foot-line { font-size: .95rem; }
.foot-line a { color: var(--gold-l); border-bottom: 1px dotted rgba(227, 199, 126, .5); }
.foot-line a:hover { color: #fff; }
.foot-copy { font-size: .84rem; color: rgba(244, 235, 215, .45); }

/* ---------- الجوال ---------- */
@media (max-width: 640px) {
  .topbar { padding-block: 16px; }
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 38px; height: 38px; }
  .hero { min-height: auto; padding: 130px 6% 70px; }
  .features, .interest { padding: 70px 0; }
  .verse { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 30px 22px; }
}
