/* ===== مساعد معلم — نظام التصميم المشترك ===== */

:root {
  --teal: #0F6E56;
  --teal-dark: #0A4F3D;
  --teal-light: #E1F5EE;
  --coral: #993C1D;
  --coral-light: #FAECE7;
  --amber: #854F0B;
  --amber-light: #FAEEDA;
  --purple: #534AB7;
  --purple-light: #EEEDFE;
  --green: #3B6D11;
  --green-light: #EAF3DE;
  --ivory: #F4F3EF;
  --charcoal: #2C2C2A;
  --text-secondary: #6B6659;
  --text-muted: #8A8577;
  --border: #E3E0D8;
  --white: #FFFFFF;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  color: var(--charcoal);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, .display-font {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
}

.text-muted-soft { color: var(--text-muted); }
.text-secondary-soft { color: var(--text-secondary); }
.bg-ivory { background-color: var(--ivory); }
.bg-teal { background-color: var(--teal); }
.text-teal { color: var(--teal); }
.border-soft { border-color: var(--border) !important; }

/* ===== Navbar ===== */
.navbar-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.92) !important;
}

.nav-link-custom {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-link-custom:hover { color: var(--teal); }

.btn-teal {
  background-color: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.65rem 1.6rem;
}
.btn-teal:hover {
  background-color: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
}

.btn-outline-teal {
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-weight: 700;
  border-radius: 10px;
  padding: 0.6rem 1.5rem;
  background: transparent;
}
.btn-outline-teal:hover {
  background-color: var(--teal);
  color: #fff;
}

/* ===== Hero ===== */
.hero-section {
  background: linear-gradient(180deg, var(--ivory) 0%, #ffffff 100%);
  padding-top: 7rem;
  padding-bottom: 3rem;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-light);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.25;
}

.hero-title .accent {
  color: var(--teal);
  position: relative;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 540px;
}

/* ===== Phone mockup (signature element) ===== */
.phone-frame {
  width: 300px;
  margin-inline: auto;
  background: var(--charcoal);
  border-radius: 38px;
  padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(44, 44, 42, 0.35);
  transform: rotate(-2deg);
}

.phone-screen {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  padding: 18px 16px 20px;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.phone-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
}

.phone-icon-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 0.75rem;
}

.phone-greeting {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin: 8px 0 12px;
}

.phone-cards-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.phone-service-card {
  flex: 1;
  border-radius: 12px;
  padding: 10px;
  font-size: 0.62rem;
  font-weight: 700;
}

.phone-service-card.c1 { background: var(--teal-light); color: var(--teal); }
.phone-service-card.c2 { background: var(--coral-light); color: var(--coral); }

.phone-service-card i { font-size: 1rem; display: block; margin-bottom: 14px; }

.phone-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.phone-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.phone-tile {
  background: var(--ivory);
  border-radius: 10px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  color: var(--charcoal);
}

.phone-tile .dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  flex-shrink: 0;
}

.floating-badge {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 12px 30px -10px rgba(44,44,42,0.2);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
}

.floating-badge-1 { top: 8%; right: -2%; animation: float1 5s ease-in-out infinite; }
.floating-badge-2 { bottom: 10%; left: -4%; animation: float2 6s ease-in-out infinite; }

@keyframes float1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@media (prefers-reduced-motion: reduce) {
  .floating-badge-1, .floating-badge-2 { animation: none; }
}

/* ===== Section headings ===== */
.section-eyebrow {
  color: var(--teal);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-top: 0.4rem;
}

/* ===== Feature cards ===== */
.feature-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 1.8rem 1.5rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #fff;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(44, 44, 42, 0.18);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}

.icon-teal { background: var(--teal-light); color: var(--teal); }
.icon-coral { background: var(--coral-light); color: var(--coral); }
.icon-amber { background: var(--amber-light); color: var(--amber); }
.icon-purple { background: var(--purple-light); color: var(--purple); }
.icon-green { background: var(--green-light); color: var(--green); }

/* ===== Tool cards (compact) ===== */
.tool-card {
  border-radius: 16px;
  padding: 1.4rem;
  border: 1px solid var(--border);
  background: var(--ivory);
  height: 100%;
}

.tool-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: var(--amber-light);
  color: var(--amber);
  margin-right: 6px;
}

/* ===== Value props ===== */
.value-number {
  font-family: 'Cairo', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal-light);
  -webkit-text-stroke: 1.5px var(--teal);
  line-height: 1;
}

/* ===== CTA band ===== */
.cta-band {
  background: var(--charcoal);
  border-radius: 28px;
  padding: 3.2rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: #C8C4BA; }

/* ===== Footer ===== */
footer {
  background: var(--ivory);
  border-top: 1px solid var(--border);
}

.footer-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}
.footer-link:hover { color: var(--teal); }

.footer-legal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal);
}
.footer-legal-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ===== Legal pages (privacy / terms) ===== */
.legal-hero {
  background: var(--ivory);
  padding: 6.5rem 0 3rem;
}

.legal-toc {
  position: sticky;
  top: 100px;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.2rem;
}

.legal-toc a {
  display: block;
  padding: 0.45rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  border-right: 2px solid transparent;
  padding-right: 0.8rem;
}
.legal-toc a:hover { color: var(--teal); border-right-color: var(--teal); }

.legal-section h2 {
  font-size: 1.35rem;
  margin-top: 2.4rem;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-section h2::before {
  content: "";
  width: 6px;
  height: 22px;
  background: var(--teal);
  border-radius: 4px;
  display: inline-block;
}

.legal-section p, .legal-section li {
  color: var(--text-secondary);
  line-height: 2;
  font-size: 0.98rem;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 991px) {
  .legal-toc { position: static; margin-bottom: 2rem; }
}
.navbar-logo {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 11px;
}
