/*
Theme Name: Hajj Charity Campaign
Theme URI: https://example.com/hajj-charity
Author: Custom Theme
Description: قالب ووردبريس مخصص لحملات الحج الخيرية - تصميم احترافي باللغة العربية
Version: 1.0.0
License: GPL v2 or later
Text Domain: hajj-charity
Tags: rtl-language-support, custom-colors, custom-logo, custom-menu
*/

:root {
  --green-deep: #0F3D2E;
  --green-dark: #1B4D3E;
  --green-mid: #2D6A4F;
  --gold: #C9A961;
  --gold-light: #E0C789;
  --cream: #FAF6EE;
  --cream-dark: #F0E8D6;
  --charcoal: #1F1F1F;
  --gray: #6B6B6B;
  --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Tajawal', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Amiri', serif; font-weight: 700; line-height: 1.3; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.site-header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 100;
  background: rgba(250, 246, 238, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 169, 97, 0.2);
  transition: all 0.3s;
}
.nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { max-height: 60px; width: auto; }
.logo-icon {
  width: 48px; height: 48px; background: var(--green-deep);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 24px;
}
.logo-text { font-family: 'Amiri', serif; font-size: 22px; font-weight: 700; color: var(--green-deep); }
.logo-text small {
  display: block; font-size: 11px; color: var(--gold);
  letter-spacing: 2px; font-family: 'Tajawal', sans-serif; font-weight: 500;
}
.nav-menu { display: flex; gap: 36px; list-style: none; }
.nav-menu a {
  color: var(--charcoal); font-weight: 500; font-size: 15px;
  position: relative; transition: color 0.3s;
}
.nav-menu a:hover { color: var(--gold); }
.nav-menu a::after {
  content: ''; position: absolute; bottom: -4px; right: 0;
  width: 0; height: 2px; background: var(--gold); transition: width 0.3s;
}
.nav-menu a:hover::after { width: 100%; }

.btn {
  display: inline-block; padding: 12px 28px; background: var(--green-deep);
  color: var(--cream); border-radius: 4px; font-weight: 500; font-size: 15px;
  border: 2px solid var(--green-deep); cursor: pointer; transition: all 0.3s;
  font-family: 'Tajawal', sans-serif;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--green-deep); }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 8px;
}
.menu-toggle span { width: 26px; height: 2px; background: var(--green-deep); transition: all 0.3s; }

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-dark) 100%);
  position: relative; overflow: hidden; display: flex; align-items: center;
  padding: 120px 0 80px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201, 169, 97, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(201, 169, 97, 0.1) 0%, transparent 40%);
  pointer-events: none;
}
.pattern-bg {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0L93.3 25v50L50 100 6.7 75V25z' fill='none' stroke='%23C9A961' stroke-width='1'/%3E%3Cpath d='M50 15L80 32.5v35L50 85 20 67.5v-35z' fill='none' stroke='%23C9A961' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 120px;
}
.hero-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; text-align: center; color: var(--cream); }
.hero-badge {
  display: inline-block; padding: 8px 20px;
  background: rgba(201, 169, 97, 0.15); border: 1px solid var(--gold);
  border-radius: 50px; color: var(--gold-light);
  font-size: 13px; letter-spacing: 2px; margin-bottom: 32px;
  animation: fadeInDown 1s ease;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 24px;
  color: var(--cream); animation: fadeInUp 1s ease 0.2s both;
}
.hero h1 .accent { color: var(--gold); display: block; font-style: italic; }
.hero-verse {
  font-family: 'Amiri', serif; font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--gold-light); margin-bottom: 20px; font-style: italic;
  animation: fadeInUp 1s ease 0.4s both;
}
.hero-description {
  font-size: 17px; margin-bottom: 40px; color: rgba(250, 246, 238, 0.85);
  max-width: 620px; margin-right: auto; margin-left: auto;
  animation: fadeInUp 1s ease 0.6s both;
}
.hero-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.8s both;
}
.btn-gold {
  background: var(--gold); color: var(--green-deep); border-color: var(--gold);
  padding: 16px 36px; font-size: 16px; font-weight: 700;
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-white {
  background: transparent; color: var(--cream); border-color: var(--cream);
  padding: 16px 36px; font-size: 16px;
}
.btn-white:hover { background: var(--cream); color: var(--green-deep); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.stats { background: var(--cream); padding: 60px 0; border-bottom: 1px solid rgba(201, 169, 97, 0.15); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item { padding: 24px; border-left: 1px solid rgba(201, 169, 97, 0.3); }
.stat-item:last-child { border-left: none; }
.stat-number {
  font-family: 'Amiri', serif; font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--green-deep); font-weight: 700; line-height: 1; margin-bottom: 8px;
}
.stat-number span { color: var(--gold); }
.stat-label { color: var(--gray); font-size: 15px; font-weight: 500; }

.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-label {
  display: inline-block; color: var(--gold); font-size: 13px;
  letter-spacing: 3px; margin-bottom: 12px; text-transform: uppercase; font-weight: 600;
}
.section-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--green-deep); margin-bottom: 16px; }
.section-subtitle { color: var(--gray); font-size: 16px; }
.section-divider { width: 60px; height: 2px; background: var(--gold); margin: 20px auto; }

.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image {
  position: relative; height: 500px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  border-radius: 4px; overflow: hidden; box-shadow: 0 20px 60px rgba(15, 61, 46, 0.2);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-image .placeholder-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); font-size: 140px; opacity: 0.35;
}
.about-image::after {
  content: ''; position: absolute; inset: 20px;
  border: 1px solid rgba(201, 169, 97, 0.4); pointer-events: none;
}
.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gold); color: var(--green-deep);
  padding: 24px 32px; border-radius: 4px;
  box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3); z-index: 2;
}
.about-badge strong { display: block; font-family: 'Amiri', serif; font-size: 40px; line-height: 1; }
.about-badge span { font-size: 13px; font-weight: 500; }
.about-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--green-deep); margin-bottom: 24px; }
.about-content p { color: var(--gray); margin-bottom: 20px; font-size: 16px; }
.about-features { list-style: none; margin: 28px 0; }
.about-features li { padding: 10px 0; padding-right: 28px; position: relative; color: var(--charcoal); }
.about-features li::before { content: '✦'; position: absolute; right: 0; color: var(--gold); font-size: 18px; }

.services { background: var(--cream-dark); position: relative; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--white); padding: 40px 32px; border-radius: 4px;
  text-align: center; transition: all 0.4s; border: 1px solid transparent;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 100%; height: 3px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s;
}
.service-card:hover {
  transform: translateY(-8px); box-shadow: 0 20px 40px rgba(15, 61, 46, 0.1);
  border-color: rgba(201, 169, 97, 0.3);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 80px; height: 80px; margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: var(--gold); position: relative;
}
.service-icon::after {
  content: ''; position: absolute; inset: -6px;
  border: 1px solid var(--gold); border-radius: 50%; opacity: 0.3;
}
.service-card h3 { color: var(--green-deep); font-size: 22px; margin-bottom: 12px; }
.service-card p { color: var(--gray); font-size: 15px; }

.conditions { background: var(--white); }
.conditions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.conditions-list { list-style: none; }
.conditions-list li {
  display: flex; gap: 20px; padding: 24px; background: var(--cream);
  border-radius: 4px; margin-bottom: 16px; border-right: 3px solid var(--gold);
  transition: all 0.3s;
}
.conditions-list li:hover { transform: translateX(-8px); box-shadow: 0 10px 30px rgba(15, 61, 46, 0.08); }
.condition-num {
  width: 46px; height: 46px; background: var(--green-deep); color: var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Amiri', serif; font-size: 22px; font-weight: 700; flex-shrink: 0;
}
.condition-content h4 { color: var(--green-deep); margin-bottom: 6px; font-family: 'Tajawal', sans-serif; font-size: 18px; }
.condition-content p { color: var(--gray); font-size: 14px; margin: 0; }
.documents-box {
  background: linear-gradient(135deg, var(--green-deep), var(--green-dark));
  color: var(--cream); padding: 40px; border-radius: 4px;
  position: relative; overflow: hidden;
}
.documents-box::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0L93.3 25v50L50 100 6.7 75V25z' fill='none' stroke='%23C9A961' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px; opacity: 0.08;
}
.documents-box h3 { color: var(--gold); font-size: 24px; margin-bottom: 20px; position: relative; }
.documents-box ul { list-style: none; position: relative; }
.documents-box ul li {
  padding: 12px 0; padding-right: 28px;
  border-bottom: 1px solid rgba(201, 169, 97, 0.2);
  position: relative; font-size: 15px;
}
.documents-box ul li:last-child { border-bottom: none; }
.documents-box ul li::before { content: '📋'; position: absolute; right: 0; top: 12px; }

.application {
  background: linear-gradient(135deg, var(--green-deep), var(--green-dark));
  color: var(--cream); position: relative; overflow: hidden;
}
.application::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0L93.3 25v50L50 100 6.7 75V25z' fill='none' stroke='%23C9A961' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 150px; opacity: 0.05;
}
.application .section-title { color: var(--cream); }
.application .section-subtitle { color: rgba(250, 246, 238, 0.7); }
.application-wrapper { max-width: 820px; margin: 0 auto; position: relative; z-index: 2; }
.application-form {
  background: var(--white); padding: 48px; border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2); color: var(--charcoal);
}
.form-notice {
  background: rgba(201, 169, 97, 0.12); border: 1px solid var(--gold);
  padding: 16px 20px; border-radius: 4px; margin-bottom: 32px;
  color: var(--green-deep); font-size: 14px;
  display: flex; gap: 12px; align-items: flex-start;
}
.form-notice-icon { color: var(--gold); font-size: 20px; flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; margin-bottom: 8px; color: var(--green-deep);
  font-weight: 500; font-size: 14px;
}
.form-group label .required { color: #c0392b; margin-right: 2px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px;
  border: 1px solid rgba(201, 169, 97, 0.4); border-radius: 4px;
  background: var(--cream); font-family: 'Tajawal', sans-serif;
  font-size: 15px; color: var(--charcoal); transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--gold); background: var(--white);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { text-align: center; margin-top: 32px; }
.form-submit .btn { padding: 16px 48px; font-size: 16px; }
.form-message {
  margin-top: 20px; padding: 16px; border-radius: 4px;
  text-align: center; display: none;
}
.form-message.success { display: block; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.error { display: block; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.gallery { background: var(--cream); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px; gap: 16px;
}
.gallery-item {
  background: linear-gradient(135deg, var(--green-mid), var(--green-deep));
  border-radius: 4px; overflow: hidden; position: relative;
  cursor: pointer; transition: all 0.4s;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; opacity: 0.9;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; font-size: 90px; }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 61, 46, 0.7), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover { transform: scale(1.02); opacity: 1; }
.gallery-item:hover::after { opacity: 1; }

.testimonials { background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.testimonial-card {
  background: var(--cream); padding: 40px; border-radius: 4px;
  position: relative; border-right: 3px solid var(--gold);
}
.testimonial-card::before {
  content: '"'; position: absolute; top: 10px; left: 30px;
  font-family: 'Amiri', serif; font-size: 100px; color: var(--gold);
  opacity: 0.3; line-height: 1;
}
.testimonial-text {
  font-family: 'Amiri', serif; font-style: italic; font-size: 17px;
  color: var(--charcoal); margin-bottom: 24px; line-height: 1.8;
}
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.author-avatar {
  width: 54px; height: 54px; background: var(--green-deep);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 22px; font-weight: 700; font-family: 'Amiri', serif;
}
.author-info strong { display: block; color: var(--green-deep); font-size: 16px; }
.author-info span { color: var(--gray); font-size: 13px; }

.contact { background: var(--cream-dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h3 { color: var(--green-deep); margin-bottom: 24px; font-size: 26px; }
.contact-info > p { color: var(--gray); margin-bottom: 24px; }
.contact-item {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid rgba(201, 169, 97, 0.2); align-items: center;
}
.contact-icon {
  width: 46px; height: 46px; background: var(--green-deep);
  color: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-item strong { display: block; color: var(--green-deep); margin-bottom: 2px; }
.contact-item span { color: var(--gray); font-size: 14px; }
.contact-form-box {
  background: var(--white); padding: 40px; border-radius: 4px;
  box-shadow: 0 10px 40px rgba(15, 61, 46, 0.08);
}
.contact-form-box h3 { color: var(--green-deep); margin-bottom: 24px; font-size: 22px; }

.site-footer { background: var(--green-deep); color: var(--cream); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-col h4 {
  color: var(--gold); margin-bottom: 20px; font-size: 18px;
  font-family: 'Tajawal', sans-serif; font-weight: 700;
}
.footer-col p { color: rgba(250, 246, 238, 0.7); font-size: 14px; margin-bottom: 16px; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 6px 0; }
.footer-col ul a { color: rgba(250, 246, 238, 0.7); font-size: 14px; transition: color 0.3s; }
.footer-col ul a:hover { color: var(--gold); }
.social-icons { display: flex; gap: 12px; margin-top: 16px; }
.social-icons a {
  width: 40px; height: 40px; background: rgba(250, 246, 238, 0.08);
  border: 1px solid rgba(201, 169, 97, 0.3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); transition: all 0.3s; font-size: 15px;
}
.social-icons a:hover { background: var(--gold); color: var(--green-deep); border-color: var(--gold); }
.footer-bottom {
  padding: 24px 0; border-top: 1px solid rgba(201, 169, 97, 0.15);
  text-align: center; color: rgba(250, 246, 238, 0.5); font-size: 13px;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-item:nth-child(2) { border-left: none; }
}
@media (max-width: 768px) {
  .nav-menu {
    position: fixed; top: 80px; right: -100%; flex-direction: column;
    background: var(--cream); width: 280px; height: calc(100vh - 80px);
    padding: 40px 32px; gap: 20px; transition: right 0.4s;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }
  .nav-menu.active { right: 0; }
  .menu-toggle { display: flex; }
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
  .nav .btn { display: none; }
  .section { padding: 70px 0; }
  .about-grid, .contact-grid, .conditions-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { height: 350px; }
  .services-grid, .testimonials-grid, .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-row .form-group { margin-bottom: 20px; }
  .application-form { padding: 28px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; height: 220px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-item { border-left: none !important; padding: 16px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-box, .documents-box { padding: 28px; }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .logo-text { font-size: 18px; }
  .logo-icon { width: 40px; height: 40px; font-size: 20px; }
}
