/* ─── CSS VARIABLES ──────────────────────────────────────────────────────── */
:root {
  --purple:       #4a0079;
  --purple-light: #6b1a9c;
  --purple-bg:    #f5f0fa;
  --orange:       #ff8d6a;
  --orange-light: #ffd5c8;
  --white:        #ffffff;
  --off-white:    #fafafa;
  --text-dark:    #1a1a2e;
  --text-muted:   #6b6b80;
  --border:       #e8e0f0;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(74,0,121,0.08);
  --shadow-hover: 0 12px 40px rgba(74,0,121,0.16);
  --font:         'Poppins', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--font); color: var(--text-dark); background: var(--white); }

/* ─── TAILWIND/BOOTSTRAP COLLISION FIX ──────────────────────────────────── */
.navbar-collapse { visibility: visible !important; }

/* ─── NAVBAR ─────────────────────────────────────────────────────────────── */
.navbar-dar55 {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: white;
  box-shadow: 0 2px 12px rgba(74,0,121,0.08);
  padding: 1rem 0;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.navbar-dar55.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 2px 16px rgba(74,0,121,0.14);
}
.nav-link-dar55 {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  transition: color 0.2s;
}
.nav-link-dar55:hover { color: var(--purple) !important; }
.nav-link-dar55.active {
  color: var(--purple) !important;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 0.2rem;
}
.nav-phone { color: var(--orange) !important; font-weight: 600; font-size: 0.9rem; }
.btn-nav-primary {
  background: transparent;
  border: 2px solid var(--purple);
  color: var(--purple);
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-nav-primary:hover { background: var(--purple); color: white; }
.btn-nav-accent {
  background: var(--orange);
  border: 2px solid var(--orange);
  color: white;
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-nav-accent:hover { background: #e87a5a; border-color: #e87a5a; }

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero-section {
  height: 60vh;
  max-height: 60vh;
  overflow: hidden;
  position: relative;
  margin-top: 72px;
  background: #3D1466;
}
.hero-left {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 56%;
  background: #3D1466;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  padding: 40px 100px 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}
.hero-right {
  position: absolute;
  top: 0; left: 40%; right: 0; bottom: 0;
  z-index: 2;
  background: transparent;
}

/* ─── SECTION ────────────────────────────────────────────────────────────── */
.section-pad { padding: 80px 0; }
.section-heading { margin-bottom: 2.5rem; }
.section-heading h2 { font-size: 2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.section-heading p  { font-size: 1rem; color: var(--text-muted); }

/* ─── WAVE ───────────────────────────────────────────────────────────────── */
.wave-divider { line-height: 0; }
.wave-divider svg { display: block; width: 100%; }

/* ─── HOW IT WORKS ───────────────────────────────────────────────────────── */
.how-tabs .nav-link {
  color: var(--text-muted);
  font-weight: 600;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 12px 24px;
  background: none;
}
.how-tabs .nav-link.active {
  color: var(--purple);
  border-bottom-color: var(--orange);
  background: none;
}
.how-step { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 2rem; }
.how-step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.how-step-content h5 { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.how-step-content p  { font-size: 0.9rem; color: var(--text-muted); }

/* ─── SERVICE CARDS ──────────────────────────────────────────────────────── */
.service-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--purple-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--purple);
  margin-bottom: 1rem;
}
.service-tag {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.service-card h5 { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; }
.service-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.service-link { color: var(--purple); font-weight: 600; font-size: 0.88rem; text-decoration: none; margin-top: 1rem; display: inline-block; }

/* ─── WHY DAR55 ──────────────────────────────────────────────────────────── */
.why-card { text-align: center; padding: 2rem 1.5rem; }
.why-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--purple-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--purple);
  margin: 0 auto 1rem;
}
.why-card h5 { font-weight: 700; margin-bottom: 0.4rem; }
.why-card p  { font-size: 0.88rem; color: var(--text-muted); }

/* ─── TESTIMONIALS ───────────────────────────────────────────────────────── */
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.8rem;
  height: 100%;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.testimonial-quote { font-size: 3rem; color: var(--purple-bg); line-height: 1; margin-bottom: 0.5rem; font-family: Georgia, serif; }
.testimonial-stars { color: var(--orange); font-size: 0.85rem; margin-bottom: 0.75rem; }
.testimonial-text  { font-size: 0.9rem; color: var(--text-dark); line-height: 1.6; margin-bottom: 1rem; font-style: italic; }
.testimonial-footer   { display: flex; align-items: center; gap: 12px; margin-top: 1rem; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; border: 2px solid var(--border);
}
.testimonial-avatar-placeholder {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--purple-bg); color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; border: 2px solid var(--border);
}
.testimonial-avatar-initial {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--purple); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.3rem;
  margin: 0 auto 0.6rem;
}
.testimonial-author   { font-size: 0.82rem; font-weight: 700; color: var(--purple); text-align: center; }
.testimonial-location { font-size: 0.78rem; color: var(--text-muted); text-align: center; margin-bottom: 1rem; }
.role-badge { position: absolute; top: 1.2rem; right: 1.2rem; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 50px; }
.role-badge.client { background: var(--purple-bg); color: var(--purple); }
.role-badge.aide   { background: var(--orange-light); color: var(--orange); }

/* ─── PRICING WIDGET ─────────────────────────────────────────────────────── */
.pw-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.5rem;
}
.pw-field { margin-bottom: 1.5rem; }
.pw-label-text { font-weight: 600; font-size: 0.88rem; color: var(--text-dark); display: block; margin-bottom: 8px; }
.pw-freq-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pw-freq-btn {
  border: 2px solid var(--border);
  background: white;
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.pw-freq-btn:hover  { border-color: var(--purple); color: var(--purple); }
.pw-freq-btn.active { border-color: var(--purple); background: var(--purple); color: white; }
.pw-services-group { display: flex; flex-direction: column; gap: 8px; }
.pw-service-option { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 8px 12px; border: 1.5px solid #e0d7f5; border-radius: var(--radius); font-size: 0.88rem; font-weight: 500; transition: border-color .2s, background .2s; }
.pw-service-option:hover { border-color: var(--purple); background: #f5f0ff; }
.pw-service-option input[type="checkbox"] { accent-color: var(--purple); width: 16px; height: 16px; flex-shrink: 0; }
.pw-service-option:has(input:checked) { border-color: var(--purple); background: #ede8ff; }
.pw-discount-badge { margin-top: 10px; display: inline-block; background: var(--purple); color: white; font-size: 0.78rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
.pw-slider { width: 100%; accent-color: var(--purple); margin-top: 4px; }
.pw-slider-ticks { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.pw-result { text-align: center; padding: 2rem; background: var(--purple-bg); border-radius: var(--radius-lg); }
.pw-result-label  { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; font-weight: 500; }
.pw-result-amount { font-size: 3.8rem; font-weight: 700; color: var(--purple); line-height: 1; }
.pw-result-sub    { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.4rem; }
.pw-disclaimer    { font-size: 0.74rem; color: var(--text-muted); margin-top: 1rem; margin-bottom: 0; }
@media (max-width: 768px) {
  .pw-card          { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.2rem; }
  .pw-result        { padding: 1.4rem 1rem; }
  .pw-result-amount { font-size: 2.6rem; }
  .pw-freq-btn      { padding: 6px 12px; font-size: 0.78rem; }
  #pw-cta           { display: block; width: 100%; text-align: center; }
}

/* ─── PRICING ────────────────────────────────────────────────────────────── */
.pricing-box { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 2.5rem; }
.pricing-service-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  gap: 12px;
}
.pricing-service-row:hover { border-color: var(--purple); background: var(--purple-bg); }
.pricing-service-row.selected { border-color: var(--purple); background: var(--purple-bg); border-left: 4px solid var(--purple); }
.pricing-service-row input[type="checkbox"] { display: none; }
.pricing-service-name  { font-weight: 600; font-size: 0.92rem; color: var(--text-dark); }
.pricing-service-price { font-weight: 700; font-size: 0.88rem; color: var(--purple); white-space: nowrap; }
.pricing-check {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  font-size: 0.75rem; color: white;
}
.pricing-service-row.selected .pricing-check { background: var(--purple); border-color: var(--purple); }
.size-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.size-card:hover { border-color: var(--purple); background: var(--purple-bg); }
.size-card.selected { border-color: var(--purple); background: var(--purple-bg); }
.size-card .size-m2    { font-size: 1rem; font-weight: 700; color: var(--purple); display: block; }
.size-card .size-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.pricing-result { background: var(--purple-bg); border-radius: var(--radius-lg); padding: 1.5rem 2rem; text-align: center; margin-top: 1.5rem; }
.pricing-amount     { font-size: 2.8rem; font-weight: 700; color: var(--purple); line-height: 1; }
.pricing-amount-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; margin-bottom: 1.2rem; }

/* ─── BLOG CARDS ─────────────────────────────────────────────────────────── */
.blog-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; height: 100%; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.blog-card-img { height: 180px; background: linear-gradient(135deg, var(--purple-bg), var(--border)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.4rem; }
.blog-card-date { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.blog-card h5 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.4; }
.blog-card p  { font-size: 0.85rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-link { color: var(--purple); font-size: 0.85rem; font-weight: 600; text-decoration: none; margin-top: 0.75rem; display: inline-block; }

/* ─── CTA BANNER ─────────────────────────────────────────────────────────── */
.cta-banner { background: var(--purple); padding: 80px 0; text-align: center; }
.cta-banner h2 { color: white; font-weight: 700; font-size: 2.2rem; margin-bottom: 0.75rem; }
.cta-banner p  { color: rgba(255,255,255,0.75); margin-bottom: 2rem; }
.btn-cta-white  { background: white; color: var(--purple); border: none; border-radius: 50px; padding: 14px 32px; font-weight: 700; font-size: 1rem; text-decoration: none; margin: 0 8px; transition: all 0.2s; display: inline-block; }
.btn-cta-white:hover  { background: var(--orange-light); }
.btn-cta-orange { background: var(--orange); color: white; border: none; border-radius: 50px; padding: 14px 32px; font-weight: 700; font-size: 1rem; text-decoration: none; margin: 0 8px; transition: all 0.2s; display: inline-block; }
.btn-cta-orange:hover { background: #e87a5a; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.footer-main { background: var(--purple); padding: 60px 0 0; }
.footer-heading  { color: white; font-weight: 700; font-size: 0.9rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-tagline  { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin-top: 0.5rem; }
.footer-link     { color: rgba(255,255,255,0.65); font-size: 0.88rem; text-decoration: none; display: block; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-link:hover { color: var(--orange); }
.footer-social   { display: flex; gap: 12px; margin-top: 0.5rem; }
.footer-social a { color: rgba(255,255,255,0.65); font-size: 1.2rem; transition: color 0.2s; }
.footer-social a:hover { color: var(--orange); }
.footer-bottom   { background: rgba(0,0,0,0.2); padding: 16px 0; margin-top: 40px; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.45); font-size: 0.8rem; margin: 0; }

/* ─── FLOATING BUTTONS ───────────────────────────────────────────────────── */
.whatsapp-btn {
  position: fixed; bottom: 28px; right: 28px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 999; transition: transform 0.2s;
}
.whatsapp-btn:hover { transform: scale(1.1); color: white; }
.back-top-btn {
  position: fixed; bottom: 28px; left: 28px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--purple); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; text-decoration: none;
  box-shadow: var(--shadow); z-index: 998;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
}
.back-top-btn.visible { opacity: 1; pointer-events: all; }
.back-top-btn:hover { transform: scale(1.1); color: white; }

/* ─── COOKIE BANNER ──────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--text-dark); color: white;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; z-index: 9999; flex-wrap: wrap;
}
.cookie-banner p   { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.85); }
.btn-cookie {
  background: var(--orange); color: white; border: none;
  border-radius: 50px; padding: 8px 20px;
  font-weight: 600; font-size: 0.85rem;
  cursor: pointer; white-space: nowrap;
}

/* ─── GENERAL BUTTONS ────────────────────────────────────────────────────── */
.btn-purple  { background: var(--purple); color: white; border-radius: 50px; padding: 14px 32px; font-weight: 700; font-size: 0.95rem; text-decoration: none; display: inline-block; transition: background 0.2s; }
.btn-purple:hover { background: var(--purple-light); color: white; }
.btn-orange  { background: var(--orange); color: white; border-radius: 50px; padding: 14px 32px; font-weight: 700; font-size: 0.95rem; text-decoration: none; display: inline-block; transition: background 0.2s; }
.btn-orange:hover { background: #e87a5a; color: white; }

/* ─── FORMS ──────────────────────────────────────────────────────────────── */
.form-page-bg { background: var(--purple-bg); min-height: 80vh; display: flex; align-items: center; padding: 60px 0; }
.form-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 2.5rem; max-width: 520px; width: 100%; margin: 0 auto; }
.form-card h1 { font-size: 1.6rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.25rem; }
.form-card .form-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--text-dark); margin-bottom: 4px; }
.form-card .btn-submit {
  background: var(--purple); color: white; border: none;
  border-radius: 50px; padding: 14px 32px;
  font-weight: 700; font-size: 1rem;
  width: 100%; cursor: pointer; transition: background 0.2s;
}
.form-card .btn-submit:hover { background: var(--purple-light); }
.price-preview { background: var(--purple-bg); border-radius: var(--radius); padding: 1rem 1.5rem; text-align: center; margin: 1rem 0; }
.price-preview .amount { font-size: 2rem; font-weight: 700; color: var(--purple); }
.price-preview .sub    { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* ─── FADE-IN ANIMATION ──────────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── LANGUAGE SWITCHER ──────────────────────────────────────────────────── */
.lang-switcher { display: flex; gap: 2px; background: rgba(74,0,121,0.08); border-radius: 50px; padding: 3px; }
.lang-btn {
  background: transparent; border: none; cursor: pointer;
  border-radius: 50px; padding: 4px 12px;
  font-size: 0.78rem; font-weight: 600; color: var(--purple);
  transition: background 0.18s, color 0.18s;
  line-height: 1.4;
}
.lang-btn:hover  { background: rgba(74,0,121,0.12); }
.lang-btn.active { background: var(--purple); color: white; }

/* ─── ARABIC (RTL) OVERRIDES ─────────────────────────────────────────────── */
[dir="rtl"] body { font-family: 'Tajawal', sans-serif; }
[dir="rtl"] .navbar-dar55 .d-flex { flex-direction: row-reverse; }
[dir="rtl"] .footer-link { text-align: right; }
[dir="rtl"] .bi { transform: scaleX(-1); }
[dir="rtl"] .bi-whatsapp,
[dir="rtl"] .bi-instagram,
[dir="rtl"] .bi-facebook,
[dir="rtl"] .bi-check-circle-fill,
[dir="rtl"] .bi-check-circle { transform: none; }

/* Hero RTL: images-left / text-right — mirror the LTR layout */
[dir="rtl"] .hero-left {
  left: auto;
  right: 0;
  padding: 40px 60px 40px 100px;  /* inner: right=outer-edge, left=diagonal-side */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%);
}
[dir="rtl"] .hero-right {
  left: 0;
  right: 40%;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section { height: auto; max-height: none; display: flex; flex-direction: column; overflow-x: hidden; position: relative; }
  .hero-left { width: 100%; position: relative; clip-path: none; padding: 48px 24px 40px; }
  /* right: auto resets the desktop absolute value; width: 100% prevents grid overflow */
  .hero-right { position: relative; top: auto; left: 0; right: auto; bottom: auto; width: 100%; height: 260px; }

  /* Re-state resets with [dir="rtl"] prefix to win the specificity race (0-1-1 > 0-1-0) */
  [dir="rtl"] .hero-left { left: 0; right: auto; clip-path: none; padding: 48px 24px 40px; }
  [dir="rtl"] .hero-right { left: 0; right: auto; }

  .section-pad { padding: 56px 0; }
}
