:root {
  --bg-1: #f2faf7;
  --bg-2: #e6f2ee;
  --bg-3: #e4f0f6;
  --glass: rgba(255, 255, 255, .55);
  --glass-strong: rgba(255, 255, 255, .72);
  --glass-border: rgba(255, 255, 255, .75);
  --teal: #2a9d8f;
  --teal-dark: #1f7a70;
  --teal-deep: #175f58;
  --night: #12333a;
  --amber: #e9c46a;
  --coral: #e88c53;
  --ink: #22333d;
  --muted: #000000;
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; }
html { scroll-behavior: smooth; }

body {
  font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  line-height: 1.9;
  direction: inherit;
  background:
    radial-gradient(1100px 550px at 88% -8%, rgba(42, 157, 143, .20), transparent),
    radial-gradient(900px 500px at -10% 32%, rgba(233, 196, 106, .22), transparent),
    linear-gradient(180deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  background-attachment: fixed;
}

img, svg { max-width: 100%; display: block; }
.container { width: min(1100px, 100%); margin-inline: auto; }

/* ---------- زجاج ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
@supports not (backdrop-filter: blur(1px)) {
  .glass { background: rgba(255, 255, 255, .82); }
}

/* ---------- حركات ---------- */
@keyframes floaty { from { transform: translateY(-12px); } to { transform: translateY(12px); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- الترويسة الزجاجية ---------- */
.site-header {
  position: sticky; top: 12px; z-index: 50;
  width: min(1100px, calc(100% - 32px)); margin-inline: auto;
  background: var(--glass-strong);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 22px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem; color: var(--teal-deep);
  text-decoration: none;
}
.logo-star { width: 34px; height: 34px; color: var(--teal-dark); animation: spin-slow 24s linear infinite; }
.main-nav { display: flex; gap: 24px; list-style: none; }
.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem;
  padding: 6px 2px; border-bottom: 3px solid transparent; transition: .25s;
}
.main-nav a:hover, .main-nav a.active { color: var(--teal-deep); border-color: var(--amber); }

.btn {
  position: relative; overflow: hidden;
  display: inline-block; padding: 12px 30px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: .3s;
  border: none; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%;
  inset-inline-start: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transition: inset-inline-start .55s ease;
}
.btn:hover::after { inset-inline-start: 120%; }
.btn-primary { background: linear-gradient(135deg, var(--teal-dark), var(--teal-deep)); color: #fff; }
.btn-primary:hover { transform: translateY(-3px); }
.btn-outline { background: linear-gradient(135deg, var(--teal-dark), var(--teal-deep)); color: #fff; border: 2px solid var(--teal-dark); }
.btn-outline:hover { background: var(--teal-dark); color: #fff; transform: translateY(-3px); }

/* ---------- الواجهة الترحيبية ---------- */
.hero { padding: 90px 48px 100px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(233, 196, 106, .35); border: 1px solid rgba(233, 196, 106, .6);
  color: var(--ink); border-radius: 999px; padding: 6px 18px;
  font-weight: 700; font-size: .9rem; margin-bottom: 18px;
  animation: floaty 5s ease-in-out infinite alternate;
}
.badge1 {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(233, 196, 106, .35); border: 1px solid rgba(233, 196, 106, .6);
  color: var(--ink); border-radius: 999px; padding: 6px 18px;
  font-weight: 700; font-size: .9rem; margin-bottom: 18px;  
  margin-top: 18px;
  width: fit-content;
}
.hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.55; animation: rise .8s ease both; }
.hero h1 span { color: var(--teal-dark); }
.hero p.lead { color: var(--muted); font-size: 1.15rem; margin: 22px 0 34px; max-width: 56ch; animation: rise .8s .15s ease both; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; animation: rise .8s .3s ease both; }

.hero-stage { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero-ornament { width: min(320px, 70vw); color: var(--teal-dark); animation: spin-slow 90s linear infinite; }
.crescent-float {
  position: absolute; top: 4%; inset-inline-end: 12%;
  width: 54px; color: var(--amber);
  animation: floaty 6s ease-in-out infinite alternate;
}
.star-float {
  position: absolute; bottom: 8%; inset-inline-start: 10%;
  width: 38px; color: var(--teal);
  animation: floaty 7s 1s ease-in-out infinite alternate-reverse;
}

/* ---------- الأقسام العامة ---------- */
section.block { padding: 80px 48px; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 50px; }

.ornament-divider {
  display: flex; align-items: center; gap: 16px;
  width: min(520px, 80%); margin: 0 auto; color: var(--teal-dark);
}
.ornament-divider::before, .ornament-divider::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, rgba(31,122,112,.45), transparent);
}
.ornament-divider svg { width: 26px; height: 26px; flex-shrink: 0; }

.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}

/* ---------- بطاقات الانقلاب ---------- */
.flip { perspective: 1200px; min-height: 260px; cursor: pointer; outline: none; }
.flip-inner {
  position: relative; width: 100%; height: 100%; min-height: inherit;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2, .7, .25, 1);
}
.flip:hover .flip-inner, .flip.flipped .flip-inner, .flip:focus-within .flip-inner {
  transform: rotateY(180deg);
}
.face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  text-align: center;
}
.face.front {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
}
.face.back {
  transform: rotateY(180deg);
  background: var(--teal-deep);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
}
.face-title { display: flex; align-items: center; justify-content: center; gap: 10px; }
.face-title svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--teal-dark); stroke-width: 2; }
.face-title h3 { font-size: 1.08rem; margin: 0; }
.face.front p.mini { color: var(--muted); font-size: .9rem; }
.hint { font-size: .8rem; color: var(--teal-dark); font-weight: 700; letter-spacing: .02em; }
.face.back p { font-size: .97rem; line-height: 1.9; }

/* ---------- بطاقات زجاجية عادية ---------- */
.card1 {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: transform .3s ease, border-color .3s ease;
}
.card {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(42,157,143,.55); }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-head svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--teal-dark); stroke-width: 2; }
.card-head h3 { font-size: 1.08rem; margin: 0; }
.card p { color: var(--muted); font-size: .97rem; }

/* الخطوات */
.steps { counter-reset: step; }
.step {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; inset-inline-start: -6px;
  font-size: 4.5rem; font-weight: 900; color: rgba(31, 122, 112, .12);
}
.step h3 { color: var(--teal-deep); margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .96rem; }

/* آراء أولياء الأمور */
.quote-card blockquote { font-style: italic; margin-bottom: 14px; font-size: .99rem; }
.quote-card .who { font-weight: 700; color: var(--teal-deep); font-size: .92rem; }

/* ---------- الأسعار ---------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px; align-items: stretch;
}
.price-card {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 38px 30px;
  display: flex; flex-direction: column;
  transition: transform .3s ease, border-color .3s ease;
}
.price-card:hover { transform: translateY(-8px); }
.price-card.featured {
  border: 2px solid var(--teal-dark);
  background: var(--glass-strong);
}
.price-card .tag {
  position: absolute; top: -16px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--amber); color: var(--ink); font-weight: 800;
  padding: 4px 22px; border-radius: 999px; font-size: .85rem; white-space: nowrap;
}
.price-card { position: relative; }
.price-card h3 { color: var(--teal-deep); }
.price { font-size: 2.2rem; font-weight: 900; margin: 14px 0; }
.price small { font-size: .95rem; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; margin: 0 0 28px; flex-grow: 1; }
.price-card li { padding: 8px 0; color: var(--muted); }
.price-card li::before { content: "✔ "; color: var(--teal-dark); font-weight: 700; }
.note-line { text-align: center; color: var(--muted); margin-top: 36px; }

/* ---------- من نحن ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-grid h2 { font-size: 1.9rem; color: var(--teal-deep); margin-bottom: 16px; line-height: 1.6; }
.about-grid > div > p { color: var(--muted); margin-bottom: 14px; }
.stats { display: flex; gap: 34px; margin-top: 26px; flex-wrap: wrap; }
.stat b { font-size: 1.9rem; color: var(--teal-deep); display: block; }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- نموذج التواصل ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; }
.form-card, .info-card { padding: 36px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid rgba(31,122,112,.35);
  border-radius: 12px; font-family: inherit; font-size: 1rem;
  background: rgba(255, 255, 255, .65); color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-dark);
  box-shadow: 0 0 0 4px rgba(42, 157, 143, .15);
}
.info-list { list-style: none; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.info-list svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--teal-dark); stroke-width: 2; margin-top: 4px; }
.info-list strong { color: var(--ink); }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a,
.socials .social-placeholder {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .65);
  border: 1px solid var(--glass-border);
  display: grid; place-items: center; transition: .3s;
}
.socials svg { width: 20px; height: 20px; color: var(--teal-deep); stroke-width: 2; transition: .3s; }
.socials a:hover { background: var(--teal-dark); transform: translateY(-4px) rotate(-6deg); }
.socials a:hover svg { color: #fff; }

/* ---------- شريط الدعوة الأخيرة ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--teal-deep), var(--night));
  border-radius: 26px; color: #fff; text-align: center;
  padding: 60px 30px; position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(233,196,106,.25), transparent 70%);
  border-radius: 50%;
}
.cta-band::before { top: -80px; inset-inline-start: -60px; }
.cta-band::after { bottom: -90px; inset-inline-end: -50px; }
.cta-band h2 { font-size: 1.8rem; margin-bottom: 12px; }
.cta-band p { opacity: .92; margin-bottom: 26px; }
.cta-band .btn { background: var(--amber); color: var(--ink); }
.cta-band .btn:hover { transform: translateY(-3px); }

/* ---------- التذييل ---------- */
.site-footer {
  background: var(--night); color: #cfe3ea; margin-top: 80px;
  padding: 56px 48px 24px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; }
.site-footer h3 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.site-footer h3 svg { width: 20px; height: 20px; color: var(--amber); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfe3ea; text-decoration: none; transition: .2s; }
.site-footer a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px;
  padding-top: 20px; text-align: center; font-size: .88rem; color: #aecbd4;
}

/* ---------- استجابة ---------- */
@media (max-width: 860px) {
  .hero-grid, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .hero { padding: 60px 24px; }
  .hero-stage { min-height: 260px; order: -1; }
}
@media (max-width: 640px) {
  section.block { padding: 56px 20px; }
  .site-header { top: 8px; }
  .nav { padding: 8px 16px; }
}

/* ============================================================
   إضافات: وضع ليلي + واتساب عائم + أكورديون + سلايدر + أسعار
   ============================================================ */

/* أزرار الترويسة */
.nav-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--glass-border); color: var(--ink);
  cursor: pointer; display: grid; place-items: center;
  font-family: inherit; font-weight: 800; font-size: .85rem;
  transition: .3s;
}
.icon-btn:hover { transform: translateY(-3px); border-color: var(--teal-dark); }
.icon-btn svg { width: 20px; height: 20px; }
html[data-theme="dark"] .icon-btn .icon-sun { display: none; }
html:not([data-theme="dark"]) .icon-btn .icon-moon { display: none; }

/* الوضع الليلي */
html[data-theme="dark"] {
  --glass: rgba(255, 255, 255, .06);
  --glass-strong: rgba(16, 38, 44, .8);
  --glass-border: rgba(255, 255, 255, .14);
  --ink: #e6f2ef;
  --muted: #9fbdb6;
}
html[data-theme="dark"] body {
  background-image:
    radial-gradient(1100px 550px at 88% -8%, rgba(42, 157, 143, .12), transparent),
    radial-gradient(900px 500px at -10% 32%, rgba(233, 196, 106, .07), transparent),
    linear-gradient(180deg, #0e2329, #0d2830 45%, #0b2026);
  background-size: cover, cover, cover;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, center, center;
  background-attachment: fixed, fixed, fixed;
}
html[data-theme="dark"] .logo,
html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .main-nav a.active,
html[data-theme="dark"] .hero-ornament,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .step h3,
html[data-theme="dark"] .price-card h3,
html[data-theme="dark"] .who,
html[data-theme="dark"] .stat b,
html[data-theme="dark"] .h-accent { color: #7fd6cb; }
html[data-theme="dark"] .face-title svg,
html[data-theme="dark"] .card-head svg,
html[data-theme="dark"] .info-list svg { color: #7fd6cb; }
html[data-theme="dark"] .btn-outline { color: #7fd6cb; border-color: #58c2b4; }
html[data-theme="dark"] .badge {
  background: rgba(233, 196, 106, .15); border-color: rgba(233, 196, 106, .35);
}
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea {
  background: rgba(255, 255, 255, .08); color: var(--ink);
  border-color: rgba(255, 255, 255, .2);
}
html[data-theme="dark"] .socials a,
html[data-theme="dark"] .socials .social-placeholder { background: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .ornament-divider { color: #58c2b4; }
html[data-theme="dark"] .ornament-divider::before,
html[data-theme="dark"] .ornament-divider::after {
  background: linear-gradient(90deg, transparent, rgba(88,194,180,.4), transparent);
}
html[data-theme="dark"] .step::before { color: rgba(233, 196, 106, .12); }
html[data-theme="dark"] .site-footer { border-top: 1px solid rgba(255, 255, 255, .08); }

/* خلفية الخطوط المتموجة (الوضع النهاري) */
body {
  background-image:
    radial-gradient(1100px 550px at 88% -8%, rgba(42, 157, 143, .20), transparent),
    radial-gradient(900px 500px at -10% 32%, rgba(233, 196, 106, .22), transparent),
    linear-gradient(180deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  background-size: cover, cover, cover;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, center, center;
  background-attachment: fixed, fixed, fixed;
}

/* لون عنوان مميز قابل للتغيير في الليلي */
.h-accent { color: var(--teal-deep); }
.hero-sub { color: var(--teal-dark); }
html[data-theme="dark"] .hero-sub { color: #7fd6cb; }

/* ترويسة الموبايل */
@media (max-width: 1020px) {
  .nav-actions .btn { display: none; }
}

/* بطاقات انقلاب أطول قليلًا لتجنّب القص */
.flip { min-height: 280px; }
.flip-inner { min-height: inherit; }

/* زر واتساب العائم */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  background: #0b5d54; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: .3s;
}
.wa-float svg { width: 28px; height: 28px; color: #fff; stroke-width: 2; }
.wa-float:hover { transform: translateY(-5px) scale(1.06); }

/* أكورديون الأسئلة الشائعة */
details.faq {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 18px 24px; margin-bottom: 14px;
}
details.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-weight: 700;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .chev { transition: transform .35s; flex-shrink: 0; color: var(--teal-dark); }
details.faq[open] summary .chev { transform: rotate(180deg); }
details.faq p { margin-top: 10px; color: var(--muted); }

/* سلايدر الآراء */
.t-slider { max-width: 720px; margin-inline: auto; text-align: center; }
.t-track { display: grid; }
.t-slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity .6s ease; padding: 10px 20px;
}
.t-slide.active { opacity: 1; visibility: visible; }
.t-slide blockquote { font-size: 1.25rem; font-style: italic; line-height: 2; }
.t-slide .who { margin-top: 14px; font-weight: 700; color: var(--teal-deep); }
.dots { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }
.dot {
  width: 11px; height: 11px; border-radius: 50%; border: none; padding: 0;
  background: rgba(31, 122, 112, .3); cursor: pointer; transition: .3s;
}
.dot.active { background: var(--teal-dark); transform: scale(1.3); }

/* تبديل الأسعار شهري / سنوي */
.billing-toggle {
  display: flex; gap: 6px; width: fit-content; margin: 0 auto 42px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 6px;
}
.billing-toggle button {
  border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: .95rem;
  padding: 9px 24px; border-radius: 999px; color: var(--muted);
  transition: .3s;
}
.billing-toggle button.active {
  background: var(--teal-dark); color: #fff;
}

@media (max-width: 640px) {
  .wa-float { bottom: 16px; inset-inline-end: 16px; width: 50px; height: 50px; }
}


