/* الصفحة الرئيسية — شموع ودهب */
:root { --night: #43302e; --night-2: #574040; --glow: rgba(255, 205, 130, .7); --glass: rgba(255, 236, 222, .09); }
body {
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(70, 50, 48, .42), rgba(64, 46, 44, .6)),
    url(/img/ahlna-bokeh.webp) center / cover fixed no-repeat,
    #4a3432;
}
body::after { /* بقع نور دافية زي البوكيه */
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(circle at 8% 22%, rgba(255, 190, 110, .55) 0 1.4%, transparent 2.8%),
    radial-gradient(circle at 92% 14%, rgba(255, 205, 140, .5) 0 1%, transparent 2.2%),
    radial-gradient(circle at 85% 62%, rgba(255, 180, 120, .45) 0 1.8%, transparent 3.4%),
    radial-gradient(circle at 4% 78%, rgba(255, 200, 130, .4) 0 2.2%, transparent 4%),
    radial-gradient(circle at 50% 96%, rgba(255, 190, 120, .35) 0 2.6%, transparent 5%),
    radial-gradient(circle at 70% 40%, rgba(255, 215, 160, .22) 0 .9%, transparent 1.8%),
    radial-gradient(circle at 25% 55%, rgba(255, 215, 160, .2) 0 1.1%, transparent 2.1%),
    radial-gradient(60% 40% at 100% 0%, rgba(255, 170, 100, .22), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(255, 150, 110, .2), transparent 70%);
  filter: blur(6px);
}
.top, .hero, .groups, .linen, .foot { position: relative; z-index: 1; }
body::before { /* حبيبات خفيفة */
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ===== الهيدر ===== */
.top {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(180deg, rgba(60, 42, 40, .78), rgba(60, 42, 40, .55));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 214, 150, .35);
  box-shadow: 0 1px 0 rgba(255, 214, 150, .15), 0 10px 30px -20px var(--glow);
}
.top-in { max-width: 1240px; margin: 0 auto; padding: .4rem 1.25rem; display: flex; align-items: center; gap: 2rem; }
.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.logo-name { font-family: var(--script); font-weight: 700; font-size: 2.2rem; line-height: 1.35; }
.logo-tag { font-family: var(--script); font-size: .95rem; color: var(--gold-2); margin-top: -.25rem; }
.nav { display: flex; gap: .3rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: .15rem; min-width: 76px;
  color: rgba(251, 246, 238, .72); text-decoration: none; white-space: nowrap; font-size: .95rem;
  padding: .45rem .7rem; border-radius: 14px; transition: color .2s, background .2s;
}
.nav a svg { width: 22px; height: 22px; }
.nav a:hover { color: var(--paper); }
.nav a.on { color: var(--gold-1); background: linear-gradient(180deg, rgba(243, 223, 166, .16), rgba(243, 223, 166, .04)); box-shadow: inset 0 0 0 1px rgba(243, 223, 166, .35); }
@media (max-width: 860px) { .order { display: none; } .top-in { gap: .8rem; } .nav a { min-width: 64px; font-size: .85rem; } }

/* ===== الهيرو ===== */
.hero { position: relative; z-index: 1; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--night); }
.hero-bg::before { /* الصورة مقلوبة عشان الفانوس والورد ييجوا ناحية الموبايل والكلام يفضل على خلفية هادية */
  content: ''; position: absolute; inset: 0; transform: scaleX(-1);
  background: url(/img/ahlna-hero.webp) center / cover no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(270deg, rgba(58, 38, 36, .9) 0%, rgba(58, 38, 36, .78) 30%, rgba(58, 38, 36, .35) 52%, transparent 72%),
    linear-gradient(0deg, rgba(58, 40, 38, .85) 0%, transparent 25%);
}
.hero-in { max-width: 1240px; margin: 0 auto; padding: 5rem 1.25rem 5.5rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { font-family: var(--script); font-weight: 700; line-height: 1.55; margin: 0 0 1.4rem; }
.hero h1 span { display: block; }
.hero h1 span:first-child { font-size: clamp(2rem, 4.6vw, 3.4rem); color: var(--paper); }
.hero h1 .foil { font-size: clamp(2.6rem, 6.4vw, 4.8rem); filter: drop-shadow(0 0 18px rgba(255, 205, 130, .55)); }
.hero h1 span:first-child { text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.lead { font-size: 1.25rem; line-height: 2; color: #fff6ec; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); max-width: 42ch; margin: 0 0 2.2rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn-line { background: rgba(255, 236, 222, .12); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(243, 223, 166, .5); backdrop-filter: blur(4px); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--gold-1); }

.hero-demo { position: relative; justify-self: center; }
.phone {
  position: relative; width: 290px; height: 600px; border-radius: 46px; padding: 12px;
  background: linear-gradient(145deg, #2b2b2b, #0d0d0d);
  box-shadow: 0 0 0 1.5px rgba(243, 223, 166, .4), 0 0 60px -10px var(--glow), 0 60px 90px -40px rgba(0, 0, 0, .9);
}
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 35px; background: #2e0912; display: block; }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 20px; background: #000; z-index: 2; }
.note {
  position: absolute; z-index: 3; display: flex; flex-direction: column; min-width: 170px;
  background: rgba(251, 246, 238, .96); color: var(--ink); border-radius: 14px; padding: .5rem 1rem; line-height: 1.5;
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(207, 169, 104, .5);
}
.note b { font-size: 1rem; }
.note span { font-size: .85rem; color: var(--muted); }
.note .foil { font-family: var(--script); font-size: 1.35rem; line-height: 1.3; }
.n1 { top: 70px; right: -140px; } .n2 { top: 290px; left: -120px; } .n3 { bottom: 110px; right: -150px; max-width: 220px; }
.themes-pick { display: flex; justify-content: center; gap: .6rem; margin-top: 1.1rem; }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.sw.on { border-color: var(--gold-1); box-shadow: 0 0 0 3px rgba(243, 223, 166, .2); }
.sw-rose { background: radial-gradient(circle at 35% 30%, #8a2a42, #2e0912); }
.sw-night { background: radial-gradient(circle at 35% 30%, #2a3f70, #070e1e); }
.sw-classic { background: radial-gradient(circle at 35% 30%, #4d5e50, #121a15); }
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; padding-top: 3.5rem; }
  .hero-bg::after { background: linear-gradient(0deg, rgba(58, 40, 38, .9) 8%, rgba(58, 38, 36, .6) 55%, rgba(58, 38, 36, .35)); }
  .lead { margin-inline: auto; } .hero-cta { justify-content: center; } .note { display: none; }
}

/* ===== المجموعات ===== */
.groups { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 1rem 1.25rem 4rem; display: grid; gap: 4.5rem; }
.group {
  position: relative; padding: 3.2rem 1.4rem 1.6rem; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 236, 222, .13), rgba(255, 236, 222, .05));
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 150, .5), inset 0 1px 0 rgba(255, 240, 210, .6), 0 0 60px -18px var(--glow), 0 30px 60px -40px rgba(0, 0, 0, .6);
}
.group-title {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: .6rem; white-space: nowrap;
  font-size: clamp(1.3rem, 3.4vw, 1.7rem); margin: 0; padding: .45rem 1.6rem;
  background: linear-gradient(180deg, #5a3f3c, #3e2b29); border-radius: 999px; color: #fff3e2;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 150, .75), 0 0 34px -4px var(--glow);
}
.group-title svg { width: 34px; height: 34px; color: var(--gold-1); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .cards, .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards, .cards-3 { grid-template-columns: 1fr; } }

.card-x {
  position: relative; display: flex; flex-direction: column; text-align: center;
  border-radius: 18px; padding: 1rem 1rem 1.4rem; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 236, 222, .16), rgba(255, 236, 222, .06));
  box-shadow: inset 0 0 0 1px rgba(255, 214, 150, .38), inset 0 1px 0 rgba(255, 240, 210, .45), 0 20px 40px -28px rgba(0, 0, 0, .7);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card-x:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255, 214, 150, .75), 0 0 46px -10px var(--glow), 0 30px 50px -30px rgba(0, 0, 0, .7); }
.card-x h3 { font-size: 1.45rem; margin: 0; color: #fff3e2; text-shadow: 0 0 18px rgba(255, 205, 130, .35); }
.card-x p { margin: .1rem 0 .9rem; color: rgba(255, 243, 226, .82); font-size: .98rem; }
.art {
  aspect-ratio: 16 / 10; border-radius: 12px; margin-top: auto;
  position: relative; overflow: hidden; background: #5a4040;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 150, .3), 0 10px 24px -14px rgba(0, 0, 0, .6);
}
.art::before { content: ''; position: absolute; inset: 0; background: var(--img) center / cover no-repeat; filter: brightness(1.04) saturate(1.05); transition: transform .6s ease; }
.art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(58, 40, 38, .45), transparent 40%); }
.card-x:hover .art::before { transform: scale(1.05); }
.pill {
  position: relative; align-self: center; margin-top: -1.3rem;
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem 1.2rem; border-radius: 999px;
  background: rgba(62, 43, 41, .85); color: #fff3e2; font-weight: 700; font-size: .95rem; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 150, .6), 0 6px 16px -8px rgba(0, 0, 0, .6); backdrop-filter: blur(6px); z-index: 1;
}
.pill-gold { background: var(--gold); color: #3a2608; box-shadow: 0 0 24px -4px var(--glow); font-size: 1.05rem; }
.card-x.live { box-shadow: inset 0 0 0 1.5px rgba(255, 214, 150, .85), 0 0 56px -8px var(--glow); }
.pill-gold { background: linear-gradient(180deg, #e94e77, #c2255c); color: #fff; box-shadow: 0 0 26px -2px rgba(233, 78, 119, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }

/* ===== الذكرى ===== */
.memory {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border-radius: 26px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 150, .35), 0 0 50px -24px var(--glow);
  background: linear-gradient(90deg, rgba(40, 30, 28, .78), rgba(55, 42, 40, .7)); backdrop-filter: blur(12px);
}
.memory-art { min-height: 260px; background: linear-gradient(270deg, rgba(55, 42, 40, .85), transparent 35%), var(--img) center / cover no-repeat, #2a2220; }
.memory-copy { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.memory h2 { font-family: var(--script); font-size: 2.4rem; margin: 0 0 .4rem; color: #efe6d6; line-height: 1.5; }
.memory p { margin: 0 0 1.2rem; color: rgba(239, 230, 214, .7); font-size: 1.12rem; line-height: 2; max-width: 38ch; }
.memory .pill { margin: 0; align-self: flex-start; }
@media (max-width: 760px) { .memory { grid-template-columns: 1fr; } .memory-copy { padding: 1.8rem; } }

/* ===== الجزء الفاتح ===== */
.linen {
  position: relative; z-index: 1; color: var(--ink); padding: 5.5rem 1.25rem;
  background: linear-gradient(180deg, rgba(250, 243, 233, .9), rgba(250, 243, 233, .82)), url(/img/ahlna-linen.webp) center / cover no-repeat, #f6eee2;
}
.linen-in { max-width: 1040px; margin: 0 auto; }
.sec-title { font-family: var(--script); font-size: clamp(2rem, 5vw, 2.8rem); text-align: center; margin: 0 0 3rem; color: var(--accent); line-height: 1.5; }
.steps { padding: 0; margin: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.steps li {
  counter-increment: s; text-align: center; padding: 2rem 1.4rem 1.6rem; border-radius: 18px;
  background: rgba(255, 252, 247, .78); box-shadow: 0 0 0 1px rgba(207, 169, 104, .35), 0 25px 40px -30px rgba(90, 50, 30, .5);
  backdrop-filter: blur(4px);
}
.steps li::before {
  content: counter(s, arabic-indic); display: grid; place-items: center; margin: 0 auto 1rem;
  width: 58px; height: 58px; border-radius: 50%; font-family: var(--script); font-size: 1.7rem; color: #5a3a12;
  background: radial-gradient(circle at 34% 28%, #f3dfa6, #d9b673 30%, #b08442 72%, #7d5a26);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .2), inset 0 2px 3px rgba(255, 255, 255, .45);
}
.steps h3 { font-size: 1.45rem; margin: 0 0 .3rem; color: var(--accent); }
.steps p { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.9; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ===== الفوتر ===== */
.foot { position: relative; z-index: 1; text-align: center; padding: 4.5rem 1.25rem 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.foot-quote { font-family: var(--script); font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.7; max-width: 26ch; margin: 0; color: var(--paper); }
.foot-brand { display: flex; flex-direction: column; align-items: center; margin-top: 1.5rem; line-height: 1.3; }
.foot-brand .foil { font-family: var(--script); font-size: 2.6rem; }
.foot-brand small { font-family: var(--script); color: var(--gold-2); font-size: 1rem; }
.copy { color: rgba(251, 246, 238, .4); }

.foot::before {
  content: ''; position: absolute; left: 5%; right: 5%; top: 1.5rem; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 150, .9), #fff1cf, rgba(255, 214, 150, .9), transparent);
  box-shadow: 0 0 18px 2px var(--glow); border-radius: 2px;
}
.foot-quote { text-shadow: 0 0 24px rgba(255, 205, 130, .45); }
.copy { color: rgba(255, 243, 226, .55); }
