/* ============================================================
   Al-Imtiaz Al-Awal — custom CSS layer on top of Tailwind CDN
   ============================================================ */

/* --- Base ----------------------------------------------------- */
html { scroll-behavior: smooth; }
html[lang="ar"] body { font-family: 'Tajawal', system-ui, sans-serif; }
html[lang="en"] body { font-family: 'Inter',   system-ui, sans-serif; }
body { -webkit-font-smoothing: antialiased; }

/* Selection colour */
::selection { background: #7AB648; color: #fff; }

/* --- Header --------------------------------------------------- */
#site-header {
  backdrop-filter: blur(0);
  background: transparent;
}
#site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 6px 24px -16px rgba(31, 41, 55, 0.18);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-link {
  position: relative;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  color: #1F2937;
  transition: color .2s ease, background-color .2s ease;
}
.nav-link:hover { color: #1A6F6A; background: rgba(43, 162, 155, 0.08); }

.mobile-link {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: #1F2937;
}
.mobile-link:hover { background: rgba(43, 162, 155, 0.08); color: #1A6F6A; }

/* --- Buttons -------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  background: linear-gradient(135deg, #7AB648 0%, #2BA29B 100%);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(43, 162, 155, 0.55);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 18px 36px -12px rgba(43, 162, 155, 0.65); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  background: #fff;
  color: #1A6F6A;
  border: 1.5px solid rgba(43, 162, 155, 0.25);
  transition: all .2s ease;
}
.btn-secondary:hover { border-color: #2BA29B; color: #2BA29B; transform: translateY(-1px); }

/* --- Hero blobs (decorative) ---------------------------------- */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.hero-blob-1 {
  width: 28rem; height: 28rem;
  background: radial-gradient(circle, rgba(122, 182, 72, 0.35), transparent 60%);
  top: -6rem;
  inset-inline-start: -8rem;
}
.hero-blob-2 {
  width: 32rem; height: 32rem;
  background: radial-gradient(circle, rgba(43, 162, 155, 0.30), transparent 60%);
  bottom: -10rem;
  inset-inline-end: -10rem;
}

/* --- Section headings ----------------------------------------- */
.section-label {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: #2BA29B;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px -10px rgba(43, 162, 155, 0.65);
}
.section-title {
  margin-top: 1rem;
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #1F2937;
}
.section-body {
  color: #4B5563;
  font-size: 1rem;
  line-height: 1.9;
  margin-top: 1.25rem;
}

/* --- About image card ---------------------------------------- */
.about-image-card {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: 0 30px 60px -30px rgba(31, 41, 55, 0.35);
  background: #fff;
}
.about-image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(122, 182, 72, 0.18), transparent 60%),
    radial-gradient(120% 60% at 100% 100%, rgba(43, 162, 155, 0.18), transparent 60%);
  z-index: 2;
  pointer-events: none;
}
.about-image-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
  pointer-events: none;
}

/* --- Stat icon ----------------------------------------------- */
.stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, rgba(122,182,72,0.15), rgba(43,162,155,0.15));
  color: #1A6F6A;
  flex-shrink: 0;
}

/* --- Card (Goals) -------------------------------------------- */
.card-goal {
  position: relative;
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px -18px rgba(31, 41, 55, 0.18);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.card-goal::before {
  content: "";
  position: absolute;
  top: -3rem;
  inset-inline-end: -3rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,182,72,0.18), transparent 60%);
  pointer-events: none;
  transition: opacity .25s ease;
  opacity: 0.6;
}
.card-goal:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -22px rgba(31, 41, 55, 0.25);
}
.card-goal:hover::before { opacity: 1; }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #7AB648, #2BA29B);
  color: #fff;
  box-shadow: 0 14px 24px -14px rgba(43, 162, 155, 0.55);
}
.card-title {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.4;
}
.card-body {
  margin-top: 0.75rem;
  color: #6B7280;
  line-height: 1.85;
  font-size: 0.95rem;
}

/* --- Card (Values) ------------------------------------------- */
.card-value {
  position: relative;
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px -18px rgba(31, 41, 55, 0.12);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-value:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -22px rgba(31, 41, 55, 0.18);
  border-color: rgba(122, 182, 72, 0.3);
}
.check-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(122, 182, 72, 0.15);
  color: #5E9637;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Contact ------------------------------------------------- */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.25rem;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 8px 24px -18px rgba(31, 41, 55, 0.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -18px rgba(31, 41, 55, 0.22);
}
.contact-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #7AB648, #2BA29B);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B7280;
}
.contact-value {
  display: block;
  margin-top: 0.25rem;
  color: #1F2937;
  font-weight: 600;
  font-size: 0.975rem;
}
a.contact-value:hover { color: #2BA29B; }

/* --- Form ---------------------------------------------------- */
.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}
.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #F8FAF9;
  border: 1.5px solid rgba(0,0,0,0.06);
  border-radius: 0.875rem;
  font-size: 0.95rem;
  color: #1F2937;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.form-input::placeholder { color: #9CA3AF; }
.form-input:focus {
  border-color: #2BA29B;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(43, 162, 155, 0.12);
}
.form-input:invalid:not(:placeholder-shown) {
  border-color: #EF4444;
}

/* --- Footer -------------------------------------------------- */
.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}
.footer-link {
  color: rgba(255,255,255,0.78);
  transition: color .2s ease;
}
.footer-link:hover { color: #fff; }

/* --- Reveal-on-scroll animation ------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- Toast --------------------------------------------------- */
#toast.is-visible {
  display: block;
  animation: toast-in .35s ease, toast-out .35s ease 2.6s forwards;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translate(-50%, 20px); }
}

/* --- RTL fine-tuning ----------------------------------------- */
html[dir="rtl"] .ltr-fix { direction: ltr; unicode-bidi: embed; }

/* --- Mobile spacing tweaks ----------------------------------- */
@media (max-width: 640px) {
  .section-title { font-size: 1.75rem; }
  .btn-primary, .btn-secondary { padding: 0.75rem 1.25rem; font-size: 0.95rem; }
}
