/* =========================================================
   DrAyaAtef — الهوية البصرية (باستيل/وردي ناعم)
   ========================================================= */
:root {
  --rose-50:  #fff6f8;
  --rose-100: #ffe9f0;
  --rose-200: #f9c6d6;
  --rose-300: #f2a0bc;
  --rose-400: #e5789e;
  --rose-500: #d45685;
  --rose-600: #b93a6b;
  --rose-700: #992b57;
  --lavender: #e4e0f0;
  --lavend-600: #7b6cb0;
  --gold:     #e8b84b;
  --ink:      #4a2d3a;
  --muted:    #8a6a78;
  --bg-soft:  #fffbfd;
  --white:    #ffffff;
  --radius-lg: 1.35rem;
  --shadow-sm: 0 6px 18px rgba(185, 58, 107, .08);
  --shadow-md: 0 14px 38px rgba(185, 58, 107, .14);
  --shadow-lg: 0 24px 60px rgba(185, 58, 107, .18);
}

html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }

body {
  font-family: "Tajawal", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg-soft);
  overflow-x: hidden;
  max-width: 100%;
}

h1, h2, h3, h4, h5, .font-head {
  font-family: "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 800;
}

a { text-decoration: none; }

.text-rose { color: var(--rose-600) !important; }
.text-muted2 { color: var(--muted) !important; }
.text-fuchsia { color: var(--rose-500) !important; }

.btn-rose {
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  color: #fff;
  border: 0;
  border-radius: 50rem;
  font-weight: 700;
  padding: .72rem 1.65rem;
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
}
.btn-rose:hover, .btn-rose:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-rose {
  border: 2px solid var(--rose-300);
  color: var(--rose-600);
  border-radius: 50rem;
  font-weight: 700;
  padding: .65rem 1.55rem;
  background: rgba(255,255,255,.6);
  transition: all .25s ease;
}
.btn-outline-rose:hover {
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  border-color: transparent;
  color: #fff;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-radius: 50rem;
  font-weight: 700;
  padding: .72rem 1.65rem;
  border: 0;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .3);
  transition: all .25s ease;
}
.btn-whatsapp:hover { color: #fff; transform: translateY(-2px); }

section { padding: 4.5rem 0; }
.section-tag {
  display: inline-block;
  background: var(--rose-100);
  color: var(--rose-600);
  font-weight: 700;
  padding: .35rem 1.1rem;
  border-radius: 50rem;
  font-size: .85rem;
  margin-bottom: .8rem;
}
.section-title { font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-sub { color: var(--muted); line-height: 1.9; }

/* ---------- Top bar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--rose-600), var(--rose-400));
  color: #fff;
  font-size: .85rem;
  padding: .45rem 0;
}
.topbar a { color: #fff; }
.topbar i { opacity: .9; margin-inline-end: .3rem; }
.topbar .topbar-wa { color: #fff; white-space: nowrap; }
.topbar .d-flex { flex-wrap: wrap; gap: 0.75rem; }
.topbar .container-fluid { padding-right: 2rem; }
.navbar .container-fluid { padding-right: 1.5rem; }

/* ---------- Navbar ---------- */
.site-nav {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(185, 58, 107, .06);
  padding: .8rem 0;
  transition: all .3s ease;
}
.site-nav.scrolled { padding: .45rem 0; box-shadow: var(--shadow-sm); }
.brand-logo {
  display: flex; flex-direction: column; align-items: flex-start; gap: .25rem;
  color: var(--rose-700); font-family: "Cairo", sans-serif; font-weight: 900;
  flex-shrink: 0;
}
.brand-logo .logo-img {
  height: 40px; width: auto;
}
.brand-logo .logo-text {
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
}
.navbar-nav { gap: .15rem; }
.nav-link-custom {
  color: var(--ink) !important;
  font-weight: 700;
  padding: .35rem .55rem !important;
  font-size: .9rem;
  position: relative;
  transition: color .2s;
}
.nav-link-custom:hover { color: var(--rose-600) !important; }
.nav-link-custom::after {
  content: "";
  position: absolute; right: .55rem; left: .55rem; bottom: .1rem;
  height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--rose-400), var(--rose-600));
  transform: scaleX(0); transform-origin: center;
  transition: transform .25s ease;
}
.nav-link-custom:hover::after { transform: scaleX(1); }

@media (max-width: 1199px) {
  .brand-logo .logo-text { max-width: 140px; font-size: .95rem; }
  .nav-link-custom { padding: .3rem .4rem !important; font-size: .85rem; }
}
@media (max-width: 991px) {
  .brand-logo .logo-text { display: none; }
  .brand-logo .logo-img { height: 36px; }
}
.nav-link-sm {
  font-size: .75rem !important;
  padding: .3rem .4rem !important;
}
.btn-xs {
  padding: .25rem .5rem !important;
  font-size: .75rem !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(242,160,188,.35), transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(228,224,240,.6), transparent 45%),
    linear-gradient(160deg, #fff6f8 0%, #ffeef4 55%, #fff 100%);
  padding: 4.5rem 0 6rem;
  overflow: hidden;
}
.hero .blob {
  position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5;
}
.hero .blob-1 { width: 320px; height: 320px; top: -90px; right: -80px; background: #f9c6d6; }
.hero .blob-2 { width: 240px; height: 240px; bottom: -90px; left: -60px; background: #e4e0f0; }
.hero .blob-3 { width: 120px; height: 120px; top: 40%; left: 42%; background: #f2a0bc; opacity: .25; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--rose-200);
  color: var(--rose-700); font-weight: 700;
  padding: .45rem 1.1rem; border-radius: 50rem;
  font-size: .9rem; margin-bottom: 1.1rem;
}
.hero-title {
  font-size: clamp(1.2rem, 2.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--rose-500);
}
.hero-title .hl { color: var(--rose-600); position: relative; }
.hero-sub { color: var(--muted); font-size: 1.06rem; line-height: 2; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.8rem; }

.hero-card {
  position: relative;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--rose-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.4rem;
  backdrop-filter: blur(6px);
}
.hero-card .hc-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.hero-card .hc-icon {
  width: 58px; height: 58px; border-radius: 18px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; font-size: 1.4rem;
  background: linear-gradient(135deg, var(--rose-400), var(--rose-600));
  box-shadow: var(--shadow-sm);
}
.hero-card .hc-list { display: flex; flex-direction: column; gap: .65rem; }
.hero-card .hc-item {
  display: flex; align-items: center; gap: .65rem;
  background: var(--rose-50); border: 1px solid var(--rose-100);
  border-radius: 14px; padding: .6rem .9rem; font-weight: 700; font-size: .95rem;
}
.hero-card .hc-item i { color: var(--rose-500); }

.hero .floating-chip {
  position: absolute;
  background: #fff; border-radius: 50rem;
  box-shadow: var(--shadow-md);
  padding: .55rem 1.1rem; font-weight: 700; font-size: .85rem;
  animation: float 5s ease-in-out infinite;
}

/* ---------- Hero visual (صور) ---------- */
.hero-visual { position: relative; padding-bottom: 3rem; }
.hero-img-frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255,255,255,.85);
  background: linear-gradient(135deg, var(--rose-100), var(--lavender));
}
.hero-img-frame img { width: 100%; height: auto; display: block; object-fit: cover; }
.hero-check-card {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--rose-100);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 1.1rem 1.2rem;
  margin-top: -2.2rem;
  margin-inline: 1.1rem;
  backdrop-filter: blur(6px);
}
.hero-check-card .hc-item {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: .9rem; color: var(--ink);
  padding: .45rem 0;
}
.hero-check-card .hc-item i { color: var(--rose-500); }
.hero-mini-img {
  position: absolute;
  top: -1.6rem;
  inset-inline-end: -0.9rem;
  width: 118px; height: 118px;
  border-radius: 22px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
@media (max-width:991px) { .hero-mini-img { display: none; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats {
  background: linear-gradient(135deg, var(--rose-600), var(--rose-500));
  border-radius: 24px;
  padding: 2.2rem 1.5rem;
  margin-top: -3rem;
  position: relative; z-index: 2;
  box-shadow: var(--shadow-lg);
}
.stat-num { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; color: #fff; }
.stat-label { color: rgba(255,255,255,.85); font-weight: 600; }

/* ---------- Service cards ---------- */
.service-card {
  background: #fff; border: 1px solid var(--rose-100);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
  display: flex; flex-direction: column;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--rose-200);
}
.service-icon {
  width: 64px; height: 64px; border-radius: 20px;
  display: grid; place-items: center; font-size: 1.5rem; color: #fff;
  background: linear-gradient(135deg, var(--rose-400), var(--rose-600));
  margin-bottom: 1.1rem;
}
.service-img {
  margin: -1.8rem -1.5rem 1.1rem; border-radius: calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) 0 0;
  overflow: hidden; height: 190px;
}
.service-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card h3 { font-size: 1.15rem; font-weight: 800; }
.service-card p { color: var(--muted); font-size: .95rem; line-height: 1.9; flex-grow: 1; }
.service-meta { display: flex; gap: 1rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.service-meta i { color: var(--rose-500); }
.service-price { color: var(--rose-600); font-weight: 900; font-size: 1.05rem; }

/* ---------- About ---------- */
.about-wrap { background: #fff; border-radius: 24px; box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--rose-100); }
.about-photo {
  min-height: 360px;
  background:
    radial-gradient(circle at 30% 30%, rgba(242,160,188,.4), transparent 60%),
    linear-gradient(160deg, var(--rose-100), var(--lavender));
  position: relative;
  display: grid; place-items: center;
}
.about-photo .photo-frame {
  width: 190px; height: 190px; border-radius: 50%;
  border: 8px solid #fff;
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--rose-400), var(--lavend-600));
  display: grid; place-items: center; color: #fff; font-size: 4.5rem;
}
.about-photo .exp-chip {
  position: absolute; bottom: 2rem; right: 2rem;
  background: #fff; border-radius: 18px; padding: .8rem 1.1rem;
  box-shadow: var(--shadow-md);
}
.about-photo .exp-chip b { color: var(--rose-600); font-size: 1.4rem; display: block; }
.about-photo .doct-img {
  width: min(240px, 60%);
  aspect-ratio: 3 / 3.7;
  object-fit: cover;
  border-radius: 26px;
  border: 8px solid #fff;
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--rose-200), var(--lavender));
}
.about-list li { margin-bottom: .7rem; color: var(--muted); font-weight: 600; }
.about-list i { color: var(--rose-500); margin-inline-end: .4rem; }

/* ---------- Courses ---------- */
.courses-section { background: linear-gradient(180deg, #fff, var(--rose-50)); }
.course-card {
  background: #fff; border: 1px solid var(--rose-100); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: all .3s ease; height: 100%;
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.course-cover {
  height: 180px; position: relative;
  background: linear-gradient(135deg, var(--rose-200), var(--lavender));
  display: grid; place-items: center; font-size: 3rem; color: #fff;
}
.course-cover .free-badge, .course-cover .price-badge {
  position: absolute; top: 1rem; inset-inline-end: 1rem;
  background: rgba(255,255,255,.92); color: var(--rose-600);
  font-weight: 800; border-radius: 50rem; padding: .3rem .85rem; font-size: .85rem;
}
.course-cover .price-badge { top: 3.4rem; background: linear-gradient(135deg, #fff, var(--rose-100)); }
.course-body { padding: 1.4rem; display: flex; flex-direction: column; flex-grow: 1; }
.course-body h3 { font-size: 1.1rem; font-weight: 800; }
.course-body p { color: var(--muted); font-size: .93rem; line-height: 1.85; flex-grow: 1; }
.course-foot { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .85rem; font-weight: 600; }
.course-foot i { color: var(--rose-500); }
.course-old-price { text-decoration: line-through; color: var(--muted); font-size: .85rem; }
.course-new-price { color: var(--rose-600); font-weight: 900; }

/* ---------- Steps ---------- */
.step-card {
  text-align: center; padding: 1.7rem 1.2rem;
  background: #fff; border: 1px solid var(--rose-100); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: all .3s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.3rem;
  background: linear-gradient(135deg, var(--rose-400), var(--rose-600));
  box-shadow: var(--shadow-sm);
}
.step-card h4 { font-weight: 800; font-size: 1.05rem; }
.step-card p { color: var(--muted); font-size: .92rem; line-height: 1.85; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff; border: 1px solid var(--rose-100); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm); height: 100%;
}
.testimonial-card .stars { color: var(--gold); margin-bottom: .8rem; }
.testimonial-card p { color: var(--muted); line-height: 1.95; }
.testimonial-card .who { margin-top: 1rem; display: flex; align-items: center; gap: .8rem; }
.testimonial-card .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-200), var(--lavender));
  display: grid; place-items: center; color: var(--rose-700); font-weight: 900;
}
.testimonial-card .who b { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-wrap { background: #fff; border-radius: 24px; border: 1px solid var(--rose-100); box-shadow: var(--shadow-md); overflow: hidden; }
.contact-info {
  background: linear-gradient(160deg, var(--rose-600), var(--rose-500));
  color: #fff; padding: 2.2rem 1.8rem; height: 100%;
}
.contact-info h4 { font-weight: 900; }
.contact-info p { opacity: .92; line-height: 1.9; }
.contact-item { display: flex; gap: .9rem; align-items: center; margin-bottom: 1.15rem; }
.contact-item .ci-icon {
  width: 44px; height: 44px; border-radius: 14px; flex: 0 0 auto;
  background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 1.1rem;
}
.contact-item small { display: block; opacity: .8; }
.contact-item b { font-weight: 800; }
.form-control-custom, .form-select-custom {
  border: 1.5px solid var(--rose-200); border-radius: 14px;
  padding: .72rem 1rem; background: var(--rose-50); color: var(--ink);
}
.form-control-custom:focus, .form-select-custom:focus {
  border-color: var(--rose-500); box-shadow: 0 0 0 .22rem rgba(212,86,133,.15); background: #fff;
}
.form-label-custom { font-weight: 700; font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: #3f2431; color: rgba(255,255,255,.85); padding: 3.2rem 0 1.6rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--rose-300); }
.site-footer h5 { color: #fff; font-weight: 800; font-size: 1rem; margin-bottom: 1rem; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center;
  background: rgba(255,255,255,.1); margin-inline-end: .45rem; transition: all .25s;
}
.footer-social a:hover { background: var(--rose-500); color: #fff; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; margin-top: 2rem; font-size: .85rem; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 1.4rem; inset-inline-start: 1.4rem; z-index: 1050;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.9rem;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.4);
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.1); color: #fff; }

/* ---------- Flash messages ---------- */
.flash-wrap { position: fixed; top: 1.1rem; right: 1.1rem; z-index: 1080; max-width: 360px; width: calc(100% - 2.2rem); }
.alert-custom { border-radius: 16px; box-shadow: var(--shadow-md); border: 0; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  section { padding: 3.2rem 0; }
  .hero { padding: 3rem 0 5rem; }
  .hero-visual { margin-top: 1.6rem; }
  .stats { margin-top: -2rem; }
  .about-photo { min-height: 300px; }
}

/* ---------- Auth pages ---------- */
.auth-page {
  position: relative;
  min-height: calc(100vh - 190px);
  display: flex; align-items: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(242,160,188,.3), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(228,224,240,.55), transparent 45%),
    linear-gradient(160deg, #fff6f8 0%, #ffeef4 55%, #fff 100%);
  padding: 3.5rem 0;
}
.auth-card {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--rose-100);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
  padding: 2.4rem 2rem;
  max-width: 460px;
  margin: 0 auto;
}
.auth-card .auth-logo {
  width: 60px; height: 60px; margin: 0 auto 1rem;
  border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--rose-400), var(--rose-600));
  color: #fff; font-size: 1.5rem; box-shadow: var(--shadow-sm);
}
.auth-card h4 { font-weight: 900; }
.auth-card .form-text2 { color: var(--muted); font-size: .9rem; }
.input-icon-wrap { position: relative; }
.input-icon-wrap > i {
  position: absolute; top: 50%; transform: translateY(-50%);
  inset-inline-start: 1rem; color: var(--rose-400); pointer-events: none;
}
.input-icon-wrap .form-control-custom { padding-inline-start: 2.6rem; }
.password-toggle {
  position: absolute; top: 50%; transform: translateY(-50%);
  inset-inline-end: 1rem; border: 0; background: none; color: var(--muted); cursor: pointer;
}
/* ============ CERTIFICATES (شهاداتي) ============ */
.certificates-section { padding: 5rem 0; }
.cert-card {
  background:#fff; border:1px solid var(--rose-100);
  border-radius:var(--radius-lg); overflow:hidden;
  box-shadow:var(--shadow-sm); transition:transform .3s ease, box-shadow .3s ease;
}
.cert-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); }
.cert-img { display:block; aspect-ratio:3/2; overflow:hidden; background:#fdf2f5; }
.cert-img img { width:100%; height:100%; object-fit:cover; transition:transform .45s ease; }
.cert-card:hover .cert-img img { transform:scale(1.06); }
.cert-img-placeholder {
  display:grid; place-items:center; color:var(--rose-300);
  background:linear-gradient(135deg,#fff5f7,#ffe9ef);
}
.cert-img-placeholder i { font-size:3rem; }

@media (max-width:991.98px){ .certificates-section { padding:4rem 0; } }
