/* ═══════════════════════════════════════════════════════════════════════
   Maatam Landing Page — Styles
   Colors: Primary #1A1A2E | Accent #C5A572 | Surface #FAFAFA
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --primary: #1A1A2E;
  --primary-light: #2A2A4E;
  --accent: #C5A572;
  --accent-dark: #A8894F;
  --surface: #FAFAFA;
  --surface-alt: #F0EDE8;
  --text: #1A1A2E;
  --text-secondary: #555;
  --text-light: #888;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.7;
  overflow-x: hidden;
}

/* When English mode is active */
body.en { direction: ltr; font-family: 'Inter', 'Noto Kufi Arabic', sans-serif; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.text-center { text-align: center; }

/* ═══════════════════════════════════════════════════════ */
/* Buttons                                                 */
/* ═══════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 165, 114, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

/* ═══════════════════════════════════════════════════════ */
/* Navigation                                              */
/* ═══════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 64px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}
.lang-toggle:hover { background: rgba(255,255,255,0.2); }

/* ═══════════════════════════════════════════════════════ */
/* Hero                                                    */
/* ═══════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary) url('/images/background/maatam.info.png') center/cover no-repeat;
  padding: 120px 24px 80px;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 46, 0.85) 0%,
    rgba(26, 26, 46, 0.7) 50%,
    rgba(26, 26, 46, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-logo {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.hero-title {
  color: var(--white);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ═══════════════════════════════════════════════════════ */
/* Sections                                                */
/* ═══════════════════════════════════════════════════════ */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.section-title.light { color: var(--white); }

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.section-subtitle.light { color: rgba(255,255,255,0.8); }

/* ═══════════════════════════════════════════════════════ */
/* Vision Cards                                            */
/* ═══════════════════════════════════════════════════════ */

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.vision-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.vision-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.vision-icon { font-size: 2.5rem; margin-bottom: 16px; }
.vision-card h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--primary); }
.vision-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ═══════════════════════════════════════════════════════ */
/* Features Grid                                           */
/* ═══════════════════════════════════════════════════════ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-right: 4px solid transparent;
}
body.en .feature-card { border-right: none; border-left: 4px solid transparent; }

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary); }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════ */
/* Events Preview Cards                                    */
/* ═══════════════════════════════════════════════════════ */

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

a.event-card, .event-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  color: inherit;
  text-decoration: none;
}
a.event-card:hover, .event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.event-image {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
}
body.en .event-status { right: auto; left: 12px; }

.status-upcoming { background: #F59E0B; }
.status-live { background: #EF4444; animation: pulse 2s infinite; }
.status-completed { background: #6B7280; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.event-body { padding: 20px; }
.event-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.event-meta { color: var(--text-light); font-size: 0.85rem; }

/* ═══════════════════════════════════════════════════════ */
/* CTA Section                                             */
/* ═══════════════════════════════════════════════════════ */

.section-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0;
}

.cta-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.cta-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}
.cta-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }

.cta-icon { font-size: 2.5rem; margin-bottom: 16px; }
.cta-card h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 10px; }
.cta-card p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════════ */
/* Social Grid                                             */
/* ═══════════════════════════════════════════════════════ */

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}
.social-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--accent);
}

.social-icon { width: 28px; height: 28px; flex-shrink: 0; }
.social-card span { font-weight: 500; font-size: 0.95rem; }

.social-live { border: 2px solid #EF4444; }
.live-badge {
  background: #EF4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-inline-start: auto;
  animation: pulse 2s infinite;
}

/* ═══════════════════════════════════════════════════════ */
/* Footer                                                  */
/* ═══════════════════════════════════════════════════════ */

.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo { width: 40px; height: 40px; border-radius: 8px; }
.footer-name { color: var(--white); font-size: 1.1rem; font-weight: 700; }
.footer-tagline { font-size: 0.85rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}
.footer-links a { transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }

.footer-copy { font-size: 0.8rem; text-align: center; }

/* ═══════════════════════════════════════════════════════ */
/* Responsive                                              */
/* ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .nav-logo { height: 48px; }
  .hero { padding: 100px 16px 60px; min-height: auto; }
  .hero-logo { width: 72px; height: 72px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; }
  .section { padding: 56px 0; }
  .section-subtitle { margin-bottom: 32px; }
  .nav-links .btn { display: none; }
  .cta-cards { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .nav-logo { height: 40px; }
  .social-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
}
