/* Marriage Office - Modern Elegant RTL Design */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0d4f3c;
  --primary-dark: #082e24;
  --gold: #d4af37;
  --gold-light: #f0d878;
  --text: #1a1a1a;
  --text-light: #555;
  --bg: #fafafa;
  --white: #ffffff;
  --card: #ffffff;
  --shadow: 0 10px 40px rgba(0,0,0,0.08);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(13, 79, 60, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

nav a:hover, nav a.active {
  color: var(--gold-light);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(135deg, rgba(13,79,60,0.85), rgba(8,46,36,0.9)), url('../images/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  margin-top: 72px;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--primary-dark);
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(212,175,55,0.4);
  margin: 0.5rem;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212,175,55,0.5);
  background: var(--gold-light);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: white;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--primary-dark);
}

/* Sections */
section {
  padding: 5rem 1.5rem;
}

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

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

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

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(212,175,55,0.1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

/* Features list */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
}

/* Documents section */
.docs-section {
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.doc-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.doc-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contact CTA */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.phone {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  margin: 1rem 0;
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: #ccc;
  padding: 3rem 1.5rem 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: var(--transition);
}

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

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

.footer-bottom a {
  color: var(--gold);
  text-decoration: none;
}

/* Article styles */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-content h1 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.article-content h2 {
  color: var(--primary);
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}

.article-content p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Forms / Lists */
.doc-list {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.doc-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Photo guide */
.photo-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.photo-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.photo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.photo-card.good {
  border: 3px solid #22c55e;
}

.photo-card.bad {
  border: 3px solid #ef4444;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }

  nav ul.active {
    display: flex;
  }

  nav a {
    padding: 1rem;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

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

  .hero {
    height: auto;
    padding: 6rem 1rem 4rem;
    margin-top: 70px;
  }

  .article-content {
    padding: 1.5rem;
  }

  section {
    padding: 3rem 1rem;
  }
}

/* WhatsApp float button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* SEO helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
