/* NoorAsk - Mosque-Driven Muslim Life Guidance Platform */
/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-green: #0D5C3B;
  --dark-green: #094228;
  --light-green: #E8F5E9;
  --accent-gold: #C9A84C;
  --accent-gold-hover: #B3943D;
  --text-dark: #1A1A1A;
  --text-medium: #4A4A4A;
  --text-light: #6B6B6B;
  --bg-white: #FFFFFF;
  --bg-cream: #FAFAF7;
  --border-light: #E0E0E0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-green);
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-gold);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-green);
  color: var(--bg-white);
  border-color: var(--primary-green);
}

.btn-primary:hover {
  background-color: var(--dark-green);
  border-color: var(--dark-green);
  color: var(--bg-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-outline:hover {
  background-color: var(--primary-green);
  color: var(--bg-white);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: var(--bg-white);
  border-color: var(--accent-gold);
}

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

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* Section Styles */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.bg-cream {
  background-color: var(--bg-cream);
}

.bg-green {
  background-color: var(--primary-green);
  color: var(--bg-white);
}

.bg-green h1,
.bg-green h2,
.bg-green h3,
.bg-green h4 {
  color: var(--bg-white);
}

.bg-green .section-subtitle {
  color: rgba(255,255,255,0.85);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-white);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-light);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  color: var(--accent-gold);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
  border-radius: var(--radius-sm);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-green);
  background-color: var(--light-green);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary-green);
  font-size: 1.25rem;
}

/* Mobile Navigation */
@media (max-width: 991px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-menu a {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
  }

  .nav-menu li:last-child a {
    border-bottom: none;
  }
}

/* Hero Section */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: var(--bg-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 3rem;
  color: var(--bg-white);
  margin-bottom: 0.75rem;
}

.hero .tagline {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--bg-white);
}

.hero .btn-primary:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
}

.hero .btn-outline {
  color: var(--bg-white);
  border-color: rgba(255,255,255,0.5);
}

.hero .btn-outline:hover {
  background-color: var(--bg-white);
  color: var(--primary-green);
  border-color: var(--bg-white);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background-color: var(--light-green);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary-green);
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

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

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-family: Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-item .stat-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
}

/* Placeholder Boxes */
.typeform-placeholder,
.dropboxsign-placeholder {
  background-color: var(--light-green);
  border: 2px dashed var(--primary-green);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--primary-green);
  font-family: Georgia, serif;
  margin: 1.5rem 0;
}

.typeform-placeholder i,
.dropboxsign-placeholder i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.7;
}

/* Team Cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.team-avatar {
  width: 96px;
  height: 96px;
  background-color: var(--light-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--primary-green);
  font-size: 2rem;
}

.team-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: block;
}

.team-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Process Steps */
.process-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  min-width: 200px;
}

.step-number {
  width: 36px;
  height: 36px;
  background-color: var(--primary-green);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text {
  font-weight: 500;
  font-size: 0.95rem;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

thead {
  background-color: var(--primary-green);
  color: var(--bg-white);
}

th, td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

th {
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: 0.95rem;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background-color: var(--light-green);
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--accent-gold);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* FAQ Accordion */
.faq-category {
  margin-bottom: 2.5rem;
}

.faq-category-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-green);
}

.faq-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--light-green);
}

.faq-question i {
  transition: var(--transition);
  color: var(--primary-green);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.contact-card i {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.contact-card a {
  color: var(--primary-green);
  font-weight: 500;
}

.contact-card a:hover {
  color: var(--accent-gold);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--light-green);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-green);
  color: var(--bg-white);
  transform: translateY(-3px);
}

/* Footer */
.footer {
  background-color: var(--dark-green);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 0.75rem;
}

.footer-section h4 {
  color: var(--bg-white);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

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

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--accent-gold);
  color: var(--bg-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.arabic-text {
  font-family: "Traditional Arabic", "Arial", sans-serif;
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-top: 0.5rem;
}

/* Content Blocks */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block p {
  margin-bottom: 1.25rem;
  color: var(--text-medium);
  line-height: 1.8;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
}

.feature-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-medium);
  border-bottom: 1px solid var(--border-light);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 7rem 0 4rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero .tagline {
    font-size: 1.05rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    flex-direction: column;
    align-items: stretch;
  }

  .step {
    min-width: auto;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (min-width: 992px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .section {
    padding: 5rem 0;
  }

  .section-title {
    font-size: 2.25rem;
  }
}

/* RTL Support */
[dir="rtl"] .feature-list li {
  padding-left: 0;
  padding-right: 2rem;
}

[dir="rtl"] .feature-list li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .step {
  flex-direction: row-reverse;
}

[dir="rtl"] .faq-question {
  flex-direction: row-reverse;
  text-align: right;
}
