/* ==========================================================================
   Noor — Official Website Stylesheet
   Palette: Emerald Green (#0B3B2C) & Warm Gold (#C9A227)
   Mobile-first, clean, modern, accessible design.
   ========================================================================== */

:root {
  --primary: #0B3B2C;
  --primary-dark: #07261C;
  --primary-light: #16533F;
  --primary-surface: #F0F6F3;
  --accent: #C9A227;
  --accent-hover: #B58F1F;
  --accent-soft: rgba(201, 162, 39, 0.12);
  --accent-border: rgba(201, 162, 39, 0.35);
  --bg: #FAFAF8;
  --card-bg: #FFFFFF;
  --text-main: #13241F;
  --text-secondary: #52635D;
  --text-light: #80918B;
  --border: #E3E9E5;
  --border-light: #EEF2F0;
  --shadow-sm: 0 2px 8px rgba(11, 59, 44, 0.05);
  --shadow-md: 0 8px 24px rgba(11, 59, 44, 0.08);
  --shadow-lg: 0 16px 40px rgba(11, 59, 44, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-arabic: "Amiri", "Traditional Arabic", serif;
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation (Shared across all pages)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(11, 59, 44, 0.2);
  transition: all 0.2s ease;
}

.btn-header-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  padding: 8px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 64px 0 72px;
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-surface);
  border: 1px solid rgba(11, 59, 44, 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 18px;
  font-weight: 700;
}

.hero-title span {
  color: var(--accent);
}

.hero-arabic {
  font-family: var(--font-arabic);
  font-size: 1.7rem;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-play-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000000;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
  border: 1px solid #222;
}

.btn-play-store:hover {
  background: #1A1A1A;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-play-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.btn-play-text {
  text-align: left;
  line-height: 1.2;
}

.btn-play-small {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
  display: block;
}

.btn-play-large {
  font-size: 1rem;
  font-weight: 600;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--card-bg);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--primary-surface);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-mockup {
  width: 100%;
  max-width: 360px;
  border-radius: 36px;
  box-shadow: 0 25px 60px -10px rgba(11, 59, 44, 0.35);
  border: 8px solid #FFFFFF;
  background: #FFFFFF;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.hero-mockup:hover {
  transform: scale(1.02);
}

/* ==========================================================================
   Trust / Key Value Props Bar
   ========================================================================== */
.trust-bar {
  background: var(--primary);
  color: #FFFFFF;
  padding: 32px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.trust-text h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.trust-text p {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.3;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 54px;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(11, 59, 44, 0.3);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.how-it-works-section {
  background: #F4F7F5;
  padding: 80px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 20px;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.step-card h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Screenshots Showcase
   ========================================================================== */
.showcase-section {
  background: #FFFFFF;
  padding: 80px 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.screenshot-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.screenshot-img-wrapper {
  background: #143529;
  padding: 12px;
  display: flex;
  justify-content: center;
}

.screenshot-img-wrapper img {
  border-radius: 12px;
  width: 100%;
  max-height: 480px;
  object-fit: contain;
}

.screenshot-caption {
  padding: 20px 24px;
}

.screenshot-caption h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.screenshot-caption p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Privacy Commitment Banner
   ========================================================================== */
.privacy-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #07261C 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  margin: 40px 0;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.privacy-banner-content h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.privacy-banner-content p {
  font-size: 1.05rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 24px;
}

.privacy-banner-content ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.privacy-banner-content li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.privacy-banner-content li svg {
  color: var(--accent);
  flex-shrink: 0;
}

.privacy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--primary-dark) !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.4);
  transition: all 0.2s ease;
}

.privacy-btn:hover {
  background: #DFBA40;
  transform: translateY(-2px);
}

.privacy-feature-graphic {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   FAQ Section (Accordion)
   ========================================================================== */
.faq-section {
  padding: 80px 0;
  background: var(--bg);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(11, 59, 44, 0.3);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  gap: 16px;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--accent);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ==========================================================================
   Content & Legal Pages (Privacy, Terms, Data Deletion, Contact)
   ========================================================================== */
.legal-page {
  padding: 60px 0 100px;
}

.legal-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.legal-meta {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.legal-meta a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-section ul {
  margin: 12px 0 18px 24px;
  color: var(--text-secondary);
}

.legal-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}

.data-table th {
  background: var(--primary-surface);
  color: var(--primary);
  font-weight: 600;
}

.alert-box {
  background: var(--primary-surface);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
  color: var(--primary-dark);
}

.alert-box-gold {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  color: #634E0F;
}

.step-box {
  background: #F8FAF9;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.step-box h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-tag {
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-card h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   Footer (Shared across all pages)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--primary-dark);
  color: #FFFFFF;
  padding: 64px 0 32px;
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-dev-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 0.85rem;
  color: #FFFFFF;
  margin-top: 8px;
}

.footer-dev-badge a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.7;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto 32px;
  }
  .hero-actions {
    justify-content: center;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .privacy-banner {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    text-align: center;
  }
  .privacy-banner-content ul {
    justify-items: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .legal-content {
    padding: 28px 20px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .nav-links a {
    display: block;
    width: 100%;
  }
  .btn-header-cta {
    width: 100%;
    justify-content: center;
  }
}
