/* ============================================
   RAHMAH PARENTING — Main Stylesheet
   رحمة للتربية
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --cream:       #F9F5EE;
  --cream-dark:  #EFE8D8;
  --sage:        #7A9B80;
  --sage-dark:   #527A5A;
  --sage-light:  #EAF2EC;
  --rose:        #C48B7F;
  --rose-light:  #F5E8E5;
  --gold:        #C9A96E;
  --gold-light:  #F0DFC0;
  --brown-dark:  #3A2A1E;
  --brown-mid:   #7A6355;
  --brown-light: #B0A090;
  --white:       #FFFFFF;

  --font-ar-body:    'Cairo', sans-serif;
  --font-ar-heading: 'Amiri', serif;
  --font-en-body:    'Lato', sans-serif;
  --font-en-heading: 'Cormorant Garamond', serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --shadow-sm: 0 2px 10px rgba(58,42,30,0.07);
  --shadow-md: 0 5px 24px rgba(58,42,30,0.11);
  --shadow-lg: 0 10px 44px rgba(58,42,30,0.14);

  --transition: 0.3s ease;
  --container: 1100px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
img, svg { display: block; }
a { text-decoration: none; color: inherit; }

/* ---- Base ---- */
body {
  background: var(--cream);
  color: var(--brown-dark);
  font-family: var(--font-ar-body);
  font-size: 16px;
  line-height: 1.75;
  direction: rtl;
  overflow-x: hidden;
}
body.lang-en {
  font-family: var(--font-en-body);
  direction: ltr;
}

h1,h2,h3,h4 {
  font-family: var(--font-ar-heading);
  line-height: 1.25;
  color: var(--brown-dark);
}
body.lang-en h1,
body.lang-en h2,
body.lang-en h3,
body.lang-en h4 {
  font-family: var(--font-en-heading);
}

/* ---- Fade-in animation ---- */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(249,245,238,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,169,110,0.18);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo { flex-shrink: 0; }
.logo-svg { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brown-mid);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--sage-dark);
  background: var(--sage-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-toggle {
  background: var(--sage-light);
  border: 1.5px solid rgba(122,155,128,0.35);
  color: var(--sage-dark);
  padding: 6px 18px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}
.lang-toggle:hover {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown-mid);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 74px;
  background: linear-gradient(140deg, #F9F5EE 0%, #EAF2EC 45%, #F5E8E5 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 55%, rgba(122,155,128,0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 18%, rgba(201,169,110,0.09) 0%, transparent 40%),
    radial-gradient(circle at 55% 85%, rgba(196,139,127,0.07) 0%, transparent 40%);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 28px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.hero-content { max-width: 600px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid rgba(122,155,128,0.28);
  color: var(--sage-dark);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--sage-dark);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--brown-mid);
  line-height: 1.85;
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Decorative ornament */
.hero-ornament-wrap {
  flex-shrink: 0;
  width: 360px;
  height: 360px;
  opacity: 0.45;
}
.hero-ornament-wrap svg { width: 100%; height: 100%; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2.2s infinite;
}
.scroll-cue-arrow {
  width: 22px; height: 22px;
  border-right: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  transform: rotate(45deg);
  opacity: 0.5;
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(9px); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 32px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--sage);
  box-shadow: 0 4px 16px rgba(122,155,128,0.28);
  transition: all var(--transition);
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  box-shadow: 0 6px 24px rgba(82,122,90,0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--brown-dark);
  padding: 14px 30px;
  border-radius: 32px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid rgba(58,42,30,0.18);
  transition: all var(--transition);
  cursor: pointer;
  font-family: inherit;
}
.btn-secondary:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
  background: var(--sage-light);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--sage-dark);
  padding: 11px 24px;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--sage);
  transition: all var(--transition);
  cursor: pointer;
  font-family: inherit;
}
.btn-outline:hover {
  background: var(--sage);
  color: var(--white);
}

/* ============================================
   SHARED SECTION STYLES
   ============================================ */
.section-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 90px 28px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 14px;
}
[dir="rtl"] .section-label {
  letter-spacing: 0.5px;
  text-transform: none;
  font-size: 13px;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--brown-dark);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--brown-mid);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: center;
}
[dir="ltr"] .about-grid {
  grid-template-columns: 1.6fr 1fr;
}
[dir="ltr"] .about-img-col { order: 2; }
[dir="ltr"] .about-text-col { order: 1; }

.about-img-col { position: relative; }

.about-img-frame {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3/4;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--sage-light) 0%, var(--gold-light) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
[dir="rtl"] .about-img-frame { margin-left: auto; }
[dir="ltr"] .about-img-frame { margin-right: auto; }

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.placeholder-silhouette { width: 110px; height: 110px; opacity: 0.55; }

.photo-coming-text {
  font-size: 13px;
  color: var(--brown-mid);
  font-weight: 500;
}

.certified-pill {
  position: absolute;
  bottom: -14px;
  background: var(--sage);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
[dir="rtl"] .certified-pill { right: 20px; }
[dir="ltr"] .certified-pill { left: 20px; }

.about-text-col { padding-top: 16px; }

.about-name {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.about-role {
  font-size: 1rem;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 24px;
}

.about-bio {
  color: var(--brown-mid);
  line-height: 1.9;
  margin-bottom: 14px;
}

.about-placeholder {
  color: var(--brown-light);
  font-style: italic;
  font-size: 0.88rem;
}

.about-credentials {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cred-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.93rem;
  color: var(--brown-mid);
}
.cred-icon {
  width: 20px; height: 20px;
  color: var(--sage);
  flex-shrink: 0;
}

/* ============================================
   SERVICES
   ============================================ */
.services { background: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,169,110,0.14);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sage), var(--gold));
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.service-card.featured { border-color: rgba(196,139,127,0.3); }
.service-card.featured::before {
  background: linear-gradient(90deg, var(--rose), var(--gold));
}

.popular-badge {
  position: absolute;
  top: 20px;
  background: var(--rose);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
}
[dir="rtl"] .popular-badge { left: 20px; }
[dir="ltr"] .popular-badge { right: 20px; }

.svc-icon-wrap {
  width: 72px; height: 72px;
  border-radius: var(--radius-md);
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-card.featured .svc-icon-wrap { background: var(--rose-light); }
.svc-icon { width: 44px; height: 44px; }

.svc-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--sage-dark);
  background: var(--sage-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.svc-tag.rose { color: var(--rose); background: var(--rose-light); }

.svc-title {
  font-size: 1.45rem;
  margin-bottom: 14px;
}
.svc-desc {
  font-size: 0.95rem;
  color: var(--brown-mid);
  line-height: 1.85;
  margin-bottom: 24px;
}
.svc-features {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--brown-mid);
}
.svc-features li::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
}
.service-card.featured .svc-features li::before { background: var(--rose); }

.svc-cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 26px;
  background: var(--sage);
  color: var(--white);
  border-radius: 26px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}
.svc-cta:hover { background: var(--sage-dark); transform: translateY(-2px); }
.svc-cta.rose { background: var(--rose); }
.svc-cta.rose:hover { background: #b37870; }

/* ============================================
   BOOKING
   ============================================ */
.booking { background: var(--white); }

.calendly-box {
  max-width: 680px;
  margin: 0 auto;
}
.calendly-placeholder {
  background: var(--sage-light);
  border: 2px dashed rgba(122,155,128,0.4);
  border-radius: var(--radius-lg);
  padding: 70px 40px;
  text-align: center;
}
.cal-icon { width: 72px; height: 72px; margin: 0 auto 28px; }
.cal-main-text {
  font-size: 1.05rem;
  color: var(--brown-mid);
  margin-bottom: 8px;
}
.cal-sub-text {
  font-size: 0.9rem;
  color: var(--brown-light);
  margin-bottom: 28px;
}

/* ============================================
   PAYMENT
   ============================================ */
.payment {
  background: linear-gradient(145deg, #F9F5EE 0%, #EAF2EC 100%);
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 680px;
  margin: 0 auto 20px;
}

.pay-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,169,110,0.14);
  transition: all var(--transition);
}
.pay-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pay-logo-wrap {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.paypal-svg { height: 30px; width: auto; }
.zelle-wordmark {
  font-size: 26px;
  font-weight: 900;
  font-family: var(--font-en-body);
  background: linear-gradient(135deg, #6C1CD1, #9747FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pay-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.pay-desc {
  font-size: 0.9rem;
  color: var(--brown-mid);
  line-height: 1.75;
  margin-bottom: 18px;
}
.pay-note {
  font-size: 0.82rem;
  color: var(--brown-light);
  font-style: italic;
}
.zelle-number {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sage);
  letter-spacing: 0.04em;
  margin: 6px 0 0;
  font-family: var(--font-en-body);
  direction: ltr;
  unicode-bidi: embed;
}

.pay-more-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--brown-light);
  font-style: italic;
}

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 580px;
  margin: 0 auto;
}
.contact-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  border: 1px solid rgba(201,169,110,0.14);
  transition: all var(--transition);
}
.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.contact-icon-circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.contact-icon-circle.rose { background: var(--rose-light); }
.contact-icon { width: 24px; height: 24px; color: var(--sage-dark); }
.contact-icon-circle.rose .contact-icon { color: var(--rose); }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.contact-link {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--sage-dark);
  margin-bottom: 6px;
  transition: color var(--transition);
  word-break: break-all;
}
.contact-link:hover { color: var(--rose); }
.contact-note {
  font-size: 0.8rem;
  color: var(--brown-light);
  font-style: italic;
}

/* ============================================
   AI TEASER SECTION
   ============================================ */
.ai-teaser {
  background: linear-gradient(135deg, var(--brown-dark) 0%, #1E3425 100%);
  color: var(--white);
}
.ai-teaser .section-label {
  background: rgba(122,155,128,0.25);
  color: #8FC99A;
}
.ai-teaser .section-title { color: var(--white); }
.ai-teaser .section-desc { color: rgba(255,255,255,0.65); }

.ai-card {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
}
.ai-icon-wrap {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(122,155,128,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.ai-icon { width: 36px; height: 36px; color: #8FC99A; }
.ai-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.85;
}
.ai-coming-badge {
  display: inline-block;
  background: rgba(201,169,110,0.2);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-top: 24px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #261A11;
  color: rgba(255,255,255,0.75);
  text-align: center;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 28px 40px;
}
.footer-tagline {
  font-family: var(--font-ar-heading);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 32px;
}
body.lang-en .footer-tagline {
  font-family: var(--font-en-heading);
  font-style: italic;
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 36px;
}
.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.footer-nav a:hover {
  color: var(--gold);
  background: rgba(255,255,255,0.05);
}
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: fixed;
    top: 74px;
    left: 0; right: 0;
    background: var(--cream);
    padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(201,169,110,0.2);
    box-shadow: var(--shadow-md);
  }
  .nav-links.mobile-open a { padding: 12px 16px; font-size: 15px; }
  .mobile-menu-btn { display: flex; }

  .hero-ornament-wrap { display: none; }
  .hero-inner { padding: 60px 24px 80px; }
  .hero-btns { flex-direction: column; align-items: flex-start; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  [dir="ltr"] .about-img-col,
  [dir="ltr"] .about-text-col { order: unset; }
  .about-img-frame { max-width: 260px; }

  .services-grid,
  .payment-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-wrap { padding: 70px 24px; }
}

@media (max-width: 480px) {
  .service-card { padding: 32px 24px; }
  .calendly-placeholder { padding: 48px 24px; }
  .ai-card { padding: 36px 24px; }
}
