/* ============ آرامستان معتمدی - استایل اصلی ============ */
:root{
  --green:#0d5c46; --green-dark:#08382b; --green-light:#e7f2ee;
  --gold:#c9a227; --gold-light:#f0e3b2;
  --cream:#f7f3e9; --ink:#2b2b2b; --muted:#6b7a75;
  --radius:14px;
  --shadow:0 6px 24px rgba(8,56,43,.10);
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:Vazirmatn,Tahoma,sans-serif;background:var(--cream);color:var(--ink);line-height:1.9}
a{color:var(--green);text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:1140px;margin:0 auto;padding:0 1.2rem}
.narrow{max-width:820px}
.center{text-align:center;margin-top:1.6rem}
svg{width:1.15em;height:1.15em;vertical-align:-3px}
h1,h2,h3{line-height:1.6}

/* ---------- هدر ---------- */
.site-header{background:var(--green-dark);position:sticky;top:0;z-index:50;box-shadow:0 2px 12px rgba(0,0,0,.25)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:.7rem 1.2rem;gap:1rem}
.brand{display:flex;align-items:center;gap:.7rem;color:var(--cream)}
.brand-icon svg{width:2.4rem;height:2.4rem;color:var(--gold)}
.brand strong{font-size:1.1rem;display:block}
.brand small{font-size:.75rem;color:var(--gold-light);opacity:.85}
.main-nav{display:flex;gap:.4rem}
.main-nav a{color:var(--cream);padding:.45rem .9rem;border-radius:8px;font-size:.95rem;transition:.2s}
.main-nav a:hover{background:rgba(255,255,255,.12);color:var(--gold-light)}
.nav-toggle{display:none;background:none;border:0;color:var(--cream);font-size:1.5rem;cursor:pointer}

/* ---------- هیرو ---------- */
.hero{background:linear-gradient(160deg,var(--green-dark),var(--green) 55%,#12705a);color:var(--cream);position:relative;overflow:hidden}
.hero-pattern{position:absolute;inset:0;opacity:.12;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c9a227' stroke-width='1'%3E%3Cpath d='M40 8c5 7 5 13 0 20-5-7-5-13 0-20Z'/%3E%3Cpath d='M40 52c5 7 5 13 0 20-5-7-5-13 0-20Z'/%3E%3Cpath d='M8 40c7-5 13-5 20 0-7 5-13 5-20 0Z'/%3E%3Cpath d='M52 40c7-5 13-5 20 0-7 5-13 5-20 0Z'/%3E%3Ccircle cx='40' cy='40' r='4'/%3E%3C/g%3E%3C/svg%3E");}
.hero-inner{position:relative;display:grid;grid-template-columns:1.4fr .8fr;gap:2rem;align-items:center;padding:4rem 1.2rem 4.5rem}
.hero-badge{display:inline-flex;align-items:center;gap:.4rem;background:rgba(201,162,39,.18);border:1px solid rgba(201,162,39,.5);color:var(--gold-light);padding:.25rem 1rem;border-radius:999px;font-size:.85rem;margin-bottom:1rem}
.hero h1{font-size:2.3rem;margin-bottom:.8rem}
.hero p{opacity:.9;max-width:34rem;margin-bottom:1.4rem}
.hero-search{position:relative;display:flex;background:#fff;border-radius:12px;padding:.35rem;max-width:34rem;box-shadow:0 8px 30px rgba(0,0,0,.25)}
.hero-search input{flex:1;border:0;outline:0;padding:.8rem 1rem;font-family:inherit;font-size:1rem;color:var(--ink);background:transparent;min-width:0}
.hero-search button{border:0;background:var(--gold);color:var(--green-dark);font-family:inherit;font-weight:700;padding:.8rem 1.6rem;border-radius:9px;cursor:pointer;display:flex;align-items:center;gap:.4rem;white-space:nowrap}
.suggest-box{position:absolute;top:calc(100% + 6px);right:0;left:0;background:#fff;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.2);display:none;z-index:20;overflow:hidden}
.suggest-item{padding:.7rem 1rem;color:var(--ink);border-bottom:1px solid #eee;font-size:.95rem;display:flex;justify-content:space-between;cursor:pointer}
.suggest-item:hover{background:var(--green-light)}
.suggest-item small{color:var(--muted)}
.adv-link{display:inline-block;margin-top:.9rem;color:var(--gold-light);font-size:.9rem;opacity:.9}
/* طاق اسلامی */
.hero-arch{display:flex;justify-content:center}
.arch-frame{width:230px;height:300px;border:2px solid var(--gold);border-radius:999px 999px 18px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;background:rgba(0,0,0,.15);padding:1.4rem;text-align:center;box-shadow:inset 0 0 40px rgba(201,162,39,.15)}
.arch-icon svg{width:3.4rem;height:3.4rem;color:var(--gold)}
.arch-dua{font-size:.95rem;color:var(--gold-light);line-height:2}

/* ---------- نوار آمار ---------- */
.stats-strip{margin-top:-2.2rem;position:relative;z-index:5}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:1.4rem 2rem}
.stat{text-align:center}
.stat strong{display:block;font-size:1.35rem;color:var(--green)}
.stat span{font-size:.85rem;color:var(--muted)}

/* ---------- سکشن‌ها ---------- */
.section{padding:3.5rem 0}
.section-head{text-align:center;margin-bottom:2.2rem}
.section-head h2{color:var(--green-dark);display:flex;align-items:center;justify-content:center;gap:1rem}
.title-deco{display:inline-block;width:44px;height:2px;background:var(--gold)}
.section-head p{color:var(--muted);font-size:.95rem}
.section-green{background:var(--green);color:var(--cream)}
.light-title{margin-bottom:1rem}
.two-col{display:grid;grid-template-columns:1.3fr 1fr;gap:2.5rem;align-items:center}
.guide-list{list-style:none}
.guide-list li{padding:.5rem 0;border-bottom:1px dashed rgba(255,255,255,.25)}
.guide-list li::before{content:'◆';color:var(--gold);margin-left:.6rem;font-size:.7rem}
.quote-box{border:1px solid var(--gold);border-radius:999px 999px 18px 18px;padding:2.6rem 1.6rem;text-align:center;background:rgba(0,0,0,.12)}
.quote-box p{font-size:1.3rem;color:var(--gold-light);margin-bottom:.5rem}
.quote-box span{opacity:.8;font-size:.9rem}

/* ---------- اخبار ---------- */
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
.news-card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:.25s;display:flex;flex-direction:column}
.news-card:hover{transform:translateY(-5px)}
.news-img{height:180px;overflow:hidden}
.news-img img{width:100%;height:100%;object-fit:cover}
.news-img-fallback{height:100%;display:flex;align-items:center;justify-content:center;background:var(--green-light);color:var(--green)}
.news-img-fallback svg{width:3.5rem;height:3.5rem}
.news-body{padding:1.1rem 1.2rem 1.4rem;display:flex;flex-direction:column;gap:.5rem;flex:1}
.news-date{font-size:.8rem;color:var(--muted)}
.news-body h3{font-size:1.05rem}
.news-body h3 a{color:var(--green-dark)}
.news-body p{font-size:.9rem;color:var(--muted)}
.btn-outline{display:inline-block;border:1.5px solid var(--green);color:var(--green);padding:.6rem 2rem;border-radius:10px;transition:.2s}
.btn-outline:hover{background:var(--green);color:#fff}

/* ---------- هیرو صفحات داخلی ---------- */
.page-hero{background:linear-gradient(160deg,var(--green-dark),var(--green));color:var(--cream);padding:2.8rem 0;text-align:center}
.page-hero h1{font-size:1.9rem;margin-bottom:.3rem}
.page-hero p{opacity:.85}

/* ---------- کارت‌ها و فرم‌ها ---------- */
.card-box{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:1.8rem}
.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1.4rem}
label{display:flex;flex-direction:column;gap:.35rem;font-size:.9rem;color:var(--muted)}
input,textarea,select{font-family:inherit;font-size:.95rem;padding:.65rem .9rem;border:1.5px solid #d8d2c0;border-radius:9px;background:#fdfcf8;color:var(--ink);outline:0}
input:focus,textarea:focus{border-color:var(--green)}
.btn-gold{border:0;background:var(--gold);color:var(--green-dark);font-family:inherit;font-weight:700;padding:.75rem 2.4rem;border-radius:10px;cursor:pointer;font-size:1rem;display:inline-flex;align-items:center;gap:.4rem}
.result-count{margin:1.6rem 0 1rem;color:var(--muted)}
.empty-msg{text-align:center;color:var(--muted);padding:2rem 0}
.alert-ok{background:#e6f4ec;border:1px solid #9ccfae;color:#0d5c46;padding:.7rem 1rem;border-radius:9px;margin-bottom:1rem}

/* ---------- نتایج متوفیان ---------- */
.deceased-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.3rem}
.deceased-card{background:#fff;border-radius:999px 999px var(--radius) var(--radius);box-shadow:var(--shadow);padding:2.6rem 1.4rem 1.5rem;text-align:center;transition:.25s;display:flex;flex-direction:column;gap:.35rem;border-top:3px solid var(--gold)}
.deceased-card:hover{transform:translateY(-5px);box-shadow:0 14px 34px rgba(8,56,43,.18)}
.dc-arch{width:56px;height:56px;margin:0 auto .4rem;border:1.5px solid var(--gold);border-radius:999px 999px 12px 12px;display:flex;align-items:center;justify-content:center;color:var(--green)}
.dc-arch svg{width:1.6rem;height:1.6rem}
.deceased-card h3{font-size:1.15rem;color:var(--green-dark)}
.dc-father{font-size:.88rem;color:var(--muted)}
.dc-meta{display:flex;flex-direction:column;gap:.2rem;font-size:.85rem;color:var(--muted);margin:.4rem 0}
.dc-plot{color:var(--green);font-weight:700}
.dc-more{font-size:.85rem;color:var(--gold);margin-top:auto;padding-top:.5rem}

/* ---------- کارت یادبود ---------- */
.memorial-card{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;border-top:4px solid var(--green)}
.memorial-top{display:flex;gap:1.6rem;align-items:center;padding:2rem 2rem 1.4rem;background:linear-gradient(135deg,var(--green-light),#fff)}
.memorial-arch{flex-shrink:0;width:96px;height:120px;border:2px solid var(--gold);border-radius:999px 999px 16px 16px;display:flex;align-items:center;justify-content:center;color:var(--green);background:#fff}
.memorial-arch svg{width:2.4rem;height:2.4rem}
.memorial-label{color:var(--muted);font-size:.85rem}
.memorial-top h1{color:var(--green-dark);font-size:1.6rem}
.memorial-father{color:var(--muted)}
.memorial-dua{color:var(--gold);font-size:.82rem;margin-top:.4rem}
.memorial-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#eee}
.m-item{background:#fff;padding:1rem 1.4rem;display:flex;flex-direction:column}
.m-item span{font-size:.8rem;color:var(--muted)}
.m-item strong{font-size:1rem;color:var(--green-dark)}
.m-plot{grid-column:span 3;background:var(--green);text-align:center}
.m-plot span{color:var(--gold-light)}
.m-plot strong{color:#fff;font-size:1.3rem}
.memorial-note{padding:1rem;text-align:center;font-size:.85rem;color:var(--muted);background:var(--cream)}

/* ---------- صفحه خبر کامل ---------- */
.news-full h1{color:var(--green-dark);margin-bottom:.4rem}
.news-meta{color:var(--muted);font-size:.85rem;margin-bottom:1.2rem}
.news-full-img{border-radius:12px;margin-bottom:1.4rem}
.news-content{line-height:2.1}
.soft{border:0;border-top:1px solid #eee;margin:1.4rem 0}
.contact-line{display:flex;align-items:center;gap:.5rem;margin:.5rem 0;color:var(--muted)}
.contact-form{display:flex;flex-direction:column;gap:1rem;max-width:34rem}

/* ---------- صفحه‌بندی ---------- */
.pagination{display:flex;justify-content:center;gap:.4rem;margin-top:2rem}
.pagination a{padding:.45rem .95rem;border:1.5px solid #d8d2c0;border-radius:8px;color:var(--green);background:#fff}
.pagination a.active{background:var(--green);color:#fff;border-color:var(--green)}

/* ---------- فوتر ---------- */
.site-footer{background:var(--green-dark);color:var(--cream);margin-top:3rem;position:relative}
.footer-pattern{height:8px;background:repeating-linear-gradient(90deg,var(--gold) 0 12px,transparent 12px 24px);opacity:.6}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2rem;padding:2.6rem 1.2rem}
.footer-grid h4{color:var(--gold-light);margin-bottom:.8rem}
.footer-grid p{font-size:.9rem;opacity:.85}
.footer-grid a{display:block;color:var(--cream);opacity:.85;padding:.2rem 0;font-size:.9rem}
.footer-grid a:hover{color:var(--gold-light)}
.copy{text-align:center;padding:1rem;font-size:.82rem;border-top:1px solid rgba(255,255,255,.12);opacity:.7}
.copy span{color:var(--gold-light)}

/* ---------- ریسپانسیو ---------- */
@media(max-width:900px){
  .hero-inner{grid-template-columns:1fr;padding:3rem 1.2rem}
  .hero-arch{display:none}
  .news-grid,.deceased-grid{grid-template-columns:repeat(2,1fr)}
  .form-grid{grid-template-columns:repeat(2,1fr)}
  .two-col{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .main-nav{display:none;position:absolute;top:100%;right:0;left:0;background:var(--green-dark);flex-direction:column;padding:.8rem}
  .main-nav.open{display:flex}
  .nav-toggle{display:block}
  .news-grid,.deceased-grid{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:1fr;gap:.6rem}
  .memorial-grid{grid-template-columns:1fr 1fr}
  .m-plot{grid-column:span 2}
  .hero h1{font-size:1.7rem}
}

/* کپچا */
.captcha-q{display:inline-block;background:var(--green-light);color:var(--green-dark);padding:.15rem .9rem;border-radius:8px;font-size:1.05rem;letter-spacing:2px;margin-bottom:.3rem}
.alert-err{background:#fdecea;border:1px solid #f5b3ae;color:#b3261e;padding:.7rem 1rem;border-radius:9px;margin-bottom:1rem}

/* لوگو */
.brand-logo{width:46px;height:46px;object-fit:contain;filter:drop-shadow(0 1px 3px rgba(0,0,0,.3))}
