/* ============================================
   ElMoslim Landing Page — Style
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0B0B28;
  --navy-light: #151540;
  --green: #1B5E20;
  --green-light: #2E7D32;
  --green-dark: #003300;
  --orange: #FF8057;
  --orange-light: #FFA07A;
  --cream: #FFF8F0;
  --cream-dark: #F5EDE3;
  --sand: #FDFAF5;
  --text: #2D2D2D;
  --text-light: #6B6B6B;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(11, 11, 40, 0.08);
  --shadow-lg: 0 12px 48px rgba(11, 11, 40, 0.12);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .section-title, .privacy-card h2, .cta-section h2 {
  font-family: 'Yeseva One', serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

img, svg {
  max-width: 100%;
  height: auto;
}

/* --- Container --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}

.nav-logo svg {
  height: 20px;
  width: auto;
}

.nav-logo-symbol {
  height: 24px;
  width: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  padding: 3px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
  line-height: 1.4;
}

.lang-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.lang-btn.active {
  background: var(--white);
  color: var(--green);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(27, 94, 32, 0.2);
  color: var(--green);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: rgba(27, 94, 32, 0.18);
  transform: translateY(-1px);
  color: var(--green);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 140px 0 80px;
  background: linear-gradient(160deg, var(--cream) 0%, var(--white) 50%, var(--sand) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/bg-2.png') center/cover no-repeat;
  opacity: 0.75;
  transform: scaleX(-1);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,248,240,0.85) 0%, rgba(255,248,240,0.6) 45%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(27, 94, 32, 0.08);
  color: var(--green);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge span {
  font-size: 1rem;
}

.hero h1 {
  font-family: 'Yeseva One', serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero h1 .highlight {
  color: var(--green);
}

.hero h1 .hero-title-small {
  font-size: 2rem;
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-download-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.download-app-icon {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.download-app-icon img {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.store-btn--dark {
  background: var(--navy);
  color: var(--white);
}

.store-btn--dark:hover {
  color: var(--white);
}

.store-btn--outline {
  background: var(--white);
  color: var(--navy);
  border: 2px solid rgba(11, 11, 40, 0.12);
}

.store-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-btn-text small {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.7;
}

.hero-visual {
  display: none;
}

.hero-phone {
  position: relative;
  width: 280px;
  height: 560px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(11, 11, 40, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.hero-phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1a1a3e 0%, #0B0B28 100%);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  overflow: hidden;
  position: relative;
}

.hero-phone-screen .phone-logo {
  width: 80px;
  height: 80px;
  opacity: 0.9;
}

.hero-phone-screen .phone-title {
  font-family: 'Yeseva One', serif;
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 400;
  opacity: 0.95;
}

.hero-phone-screen .phone-arabic {
  color: var(--orange);
  font-size: 2.2rem;
  font-family: 'Noto Naskh Arabic', serif;
  opacity: 0.9;
}

.phone-lines {
  position: absolute;
  bottom: 40px;
  left: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-line {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.phone-line:nth-child(1) { width: 100%; }
.phone-line:nth-child(2) { width: 85%; }
.phone-line:nth-child(3) { width: 70%; }

/* --- Trust Bar --- */
.trust-bar {
  padding: 40px 0;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
}

.trust-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 94, 32, 0.08);
  border-radius: 10px;
  color: var(--green);
  flex-shrink: 0;
}

.trust-icon svg {
  width: 20px;
  height: 20px;
}

/* --- Features --- */
.features {
  padding: 100px 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 128, 87, 0.1);
  color: var(--orange);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Yeseva One', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--sand);
  overflow: hidden;
}

.feature-card-img img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.feature-card-body {
  padding: 28px 32px 32px;
  flex: 1;
}

.feature-card h3 {
  font-family: 'Yeseva One', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Privacy Section --- */
.privacy-section {
  padding: 100px 0;
  background: var(--sand);
}

.privacy-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.privacy-shield {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  background: rgba(27, 94, 32, 0.08);
  border-radius: 50%;
  color: var(--green);
}

.privacy-shield svg {
  width: 36px;
  height: 36px;
}

.privacy-card h2 {
  font-family: 'Krona One', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.privacy-subtitle {
  font-family: 'Krona One', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--green-dark);
  margin-bottom: 16px !important;
}

.privacy-card p {
  /* color: var(--text-light); */
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.privacy-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--sand);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.privacy-badge svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}

/* --- CTA Section --- */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 128, 87, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-family: 'Yeseva One', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn--white {
  background: var(--white);
  color: var(--navy);
}

.cta-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-btn--ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand svg {
  height: 16px;
  width: auto;
}

.footer-brand small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* --- Legal Pages --- */
.legal-page {
  padding: 120px 0 80px;
  background: var(--sand);
  min-height: 100vh;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-content h1 {
  font-family: 'Yeseva One', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
}

.legal-content .legal-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-content p {
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.75;
}

.legal-content ul {
  margin-bottom: 14px;
  padding-left: 24px;
}

.legal-content li {
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.65;
}

.legal-content strong {
  color: var(--navy);
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 20px;
  margin-bottom: 10px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    flex: none;
    width: 100%;
    max-width: 280px;
  }

  .hero-phone {
    width: 240px;
    height: 480px;
  }

  .trust-items {
    gap: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 0;
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero-inner {
    height: auto;
    gap: 0;
  }

  .hero-visual {
    display: none;
  }

  .hero::before {
    opacity: 0.85;
    transform: translateY(-200px);
  }

  .hero::after {
    background: linear-gradient(180deg, transparent 0%, transparent 25%, var(--cream) 48%, var(--cream) 100%);
  }

  .hero-content {
    padding: 58svh 0 40px;
    padding-top: 58dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-badge {
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 24px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
  }

  .hero-download-label {
    text-align: center;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .store-btn {
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.85rem;
  }

  .trust-items {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .features {
    padding: 60px 0;
  }

  .privacy-section {
    padding: 60px 0;
  }

  .privacy-card {
    padding: 40px 24px;
  }

  .privacy-badges {
    flex-direction: column;
    align-items: center;
  }

  .cta-section {
    padding: 60px 0;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .store-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .legal-content {
    padding: 32px 20px;
  }

  .nav-logo-symbol {
    display: block;
  }

  .nav-logo-wordmark {
    display: none;
  }

  .nav-cta svg {
    display: none;
  }

  .lang-switcher {
    gap: 2px;
    padding: 2px;
  }

  .lang-btn {
    padding: 3px 8px;
    font-size: 0.7rem;
  }
}

/* --- RTL (Arabic) --- */
[dir="rtl"] {
  font-family: 'Noto Naskh Arabic', 'Inter', sans-serif;
}

[dir="rtl"] .hero::after {
  background: linear-gradient(270deg, rgba(255,248,240,0.85) 0%, rgba(255,248,240,0.6) 45%, transparent 75%);
}

[dir="rtl"] .legal-content ul {
  padding-left: 0;
  padding-right: 24px;
}
