@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #C41E3A;
  --primary-soft: #E63946;
  --gold: #D4AF37;
  --gold-soft: #F5E6C8;
  --cream: #FFFBF7;
  --blush: #FFF0F3;
  --text: #2C1810;
  --text-muted: #6B5344;
  --white: #FFFFFF;
  --shadow: 0 10px 40px rgba(196, 30, 58, 0.08);
  --shadow-hover: 0 20px 50px rgba(196, 30, 58, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
  background: #FEFCFB;
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
  background-image: none;
}

/* Header */
header {
  background: rgba(255, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.8rem;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.2);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
  transition: all 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transition: width 0.35s ease;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  background: #25D366;
  color: white;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
  z-index: 999;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}

/* Hero */
.hero {
  padding: 5.5rem 0 4rem;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, rgba(255,240,243,0.6) 0%, rgba(255,251,247,0.9) 100%);
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.6rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.hero h1 {
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1.2rem;
  color: var(--text);
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.2rem;
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #A31621 100%);
  color: white;
  padding: 0.95rem 2.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.3);
  border: none;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(196, 30, 58, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
  margin-right: 0.8rem;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

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

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

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

.card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '♥';
  position: absolute;
  top: -15px;
  left: -10px;
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.06;
  font-weight: 300;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(196, 30, 58, 0.2);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Content pages */
.content-page {
  padding: 3.5rem 0 5rem;
}

.content-page h1 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.content-page h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 2px;
}

.content-page h2 {
  color: var(--primary);
  margin: 2.2rem 0 1rem;
  font-size: 1.55rem;
  font-weight: 700;
}

.content-page ul {
  margin: 1rem 0 1.5rem 1.8rem;
}

.content-page li {
  margin-bottom: 0.65rem;
  position: relative;
}

.content-page li::marker {
  color: var(--primary);
}

.breadcrumb {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

/* Verse section */
.verse-section {
  background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%);
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.verse-section h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.verse-section .quran {
  font-size: 1.35rem;
  color: var(--primary);
  margin: 1.8rem 0;
  font-weight: 600;
  line-height: 2.1;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.verse-section .hadith {
  background: white;
  padding: 1.8rem 2rem;
  border-radius: 16px;
  margin: 2rem auto;
  max-width: 760px;
  box-shadow: var(--shadow);
  border-right: 5px solid var(--gold);
  text-align: right;
}

.poem {
  font-style: italic;
  color: var(--text-muted);
  margin-top: 1.8rem;
  line-height: 2.3;
  font-size: 1.08rem;
}

/* Footer */
footer {
  background: #1A1210;
  color: #F5E6C8;
  padding: 3.5rem 0 1.8rem;
  margin-top: 2rem;
}

footer a {
  color: var(--gold-soft);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: white;
}

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

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #A89B8C;
  position: relative;
}

.designer-credit {
  position: absolute;
  bottom: 8px;
  left: 12px;
  font-size: 0.72rem;
  opacity: 0.55;
  color: #8A7A6A;
}

.designer-credit a {
  color: #8A7A6A;
  text-decoration: none;
}

.designer-credit a:hover {
  opacity: 1;
  color: var(--gold-soft);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 1.95rem;
  }
  .whatsapp-float {
    left: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }
  .hero {
    padding: 3.5rem 0 2.5rem;
  }
}

.watermarked {
  position: relative;
  display: inline-block;
}

.watermarked::after {
  content: 'صیغه نامه';
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(196, 30, 58, 0.88);
  color: white;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
