/* Badraghe Typography System v60
   Font files are not bundled here. Host Estedad in production and keep this stack stable. */
:root{
  --font-family-main:"Estedad","Vazirmatn","IRANSans","Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif;

  --fs-page-title:25px;
  --fs-detail-title:24px;
  --fs-section-title:18px;
  --fs-card-title:16px;
  --fs-body:13.5px;
  --fs-label:11.5px;
  --fs-caption:12px;

  --fs-number-important:24px;
  --fs-number-hero:28px;
  --fs-number-timer:32px;
  --fs-number-card:13px;

  --fw-regular:400;
  --fw-medium:500;
  --fw-label:600;
  --fw-card-title:750;
  --fw-section-title:800;
  --fw-page-title:850;
  --fw-number:750;

  --lh-title:1.42;
  --lh-body:1.95;
  --lh-compact:1.55;
}

html,
body,
button,
input,
select,
textarea{
  font-family:var(--font-family-main)!important;
}

body{
  font-size:var(--fs-body);
  font-weight:var(--fw-regular);
}

/* Main page titles */
h1,
.page h1,
.hero-title,
.page-title,
.main-title,
.mosque-intro h1,
.content-hero h1,
.landing-hero h1{
  font-size:var(--fs-page-title)!important;
  line-height:var(--lh-title)!important;
  font-weight:var(--fw-page-title)!important;
  letter-spacing:-.035em!important;
}

/* Detail title: deceased name / mosque name / hall name */
.grave-state-page .hero .name,
.grave-state-page .name,
.detail-heading h1,
.mosque-detail-page .detail-heading h1,
.hall-detail-page .detail-heading h1{
  font-size:var(--fs-detail-title)!important;
  line-height:var(--lh-title)!important;
  font-weight:var(--fw-page-title)!important;
  letter-spacing:-.035em!important;
}

/* Section titles */
h2,
.section h2,
.section-head,
.result-title,
.similar-section h2,
.contact-section h2,
.detail-services h2,
.selection-guide h2,
.card-section-title{
  font-size:var(--fs-section-title)!important;
  line-height:var(--lh-compact)!important;
  font-weight:var(--fw-section-title)!important;
  letter-spacing:-.025em!important;
}

/* Card titles */
h3,
.card-title,
.result-card .name,
.mosque-card h3,
.similar-card strong,
.article-card strong,
.service-card span,
.quick-title{
  font-size:var(--fs-card-title)!important;
  line-height:var(--lh-compact)!important;
  font-weight:var(--fw-card-title)!important;
  letter-spacing:-.02em!important;
}

/* Body copy */
p,
li,
.section p,
.detail-heading p,
.mosque-detail-summary,
.ann-desc p,
.empty-result-box p,
.catering-strip p,
.detail-catering p,
.contact-section p,
.add-mosque-inner p,
.guide-compact p,
.service-important{
  font-size:var(--fs-body)!important;
  line-height:var(--lh-body)!important;
  font-weight:var(--fw-regular)!important;
}

/* Labels and meta */
label,
.caption,
.eyebrow,
.hero .father,
.grave-state-page .father,
.result-card .father,
.mosque-area,
.metric-card span,
.status-copy b,
.detail-key-grid article span,
.count-label,
.sort-label,
.badge,
.tag,
.control-fields label{
  font-size:var(--fs-label)!important;
  line-height:var(--lh-compact)!important;
  font-weight:var(--fw-label)!important;
}

/* Buttons */
button,
.btn,
.submit-btn,
.primary-action,
.secondary-action,
.details-button,
.ann-primary,
.ann-secondary,
.pay-btn,
.route-main,
.route-outline,
.service-card,
.quick-card{
  font-weight:var(--fw-section-title)!important;
}

/* Important numbers */
.count-num{
  font-size:var(--fs-number-timer)!important;
  line-height:1.15!important;
  font-weight:var(--fw-number)!important;
  letter-spacing:-.025em!important;
}

.count-sep{
  font-size:27px!important;
  line-height:1!important;
  font-weight:var(--fw-number)!important;
}

.metric-card strong,
.detail-key-grid article strong,
.status-copy strong,
.price,
.cost,
.result-card .date,
.phone-list a{
  font-size:var(--fs-number-card)!important;
  line-height:var(--lh-compact)!important;
  font-weight:var(--fw-number)!important;
}

.pay-btn,
.ann-primary,
.primary-action,
.submit-btn{
  font-size:16px!important;
  line-height:1.45!important;
}

.pay-btn strong,
.price-main,
.total-price,
.hero-price{
  font-size:var(--fs-number-important)!important;
  font-weight:var(--fw-number)!important;
}

/* Grave near pages: closer to reference */
.grave-state-page .hero{
  text-align:center!important;
}

.grave-state-page .hero .name{
  margin-top:8px!important;
  color:#111!important;
}

.grave-state-page .hero .father{
  margin-top:12px!important;
  color:#777!important;
}

.grave-state-page .hero .date{
  font-size:13px!important;
  line-height:1.8!important;
  font-weight:var(--fw-medium)!important;
}

.grave-state-page .hero .place,
.grave-state-page .hero .city-cemetery,
.grave-state-page .hero .grave,
.grave-state-page .hero .county-burial{
  font-size:16px!important;
  line-height:1.8!important;
  font-weight:var(--fw-section-title)!important;
  color:#444!important;
}

.grave-state-page .anniversary-block h2,
.grave-state-page .ann-title{
  font-size:21px!important;
  font-weight:var(--fw-page-title)!important;
  color:#111!important;
}

/* Small mobile tuning */
@media (max-width:380px){
  :root{
    --fs-page-title:24px;
    --fs-detail-title:23px;
    --fs-section-title:17px;
    --fs-card-title:15.5px;
    --fs-body:13px;
    --fs-label:11px;
    --fs-number-timer:30px;
  }
}


/* v61 typography corrections after QA */
/* Home quick cards: keep the earlier compact mobile feel. */
.quick-grid{
  align-items:stretch!important;
}
.quick-card{
  min-height:82px!important;
  height:100%!important;
}
.quick-title{
  font-size:12.2px!important;
  line-height:1.55!important;
  font-weight:650!important;
  letter-spacing:-.01em!important;
}
.quick-copy{
  align-self:center!important;
}

/* Related services: do not inherit card-title size/weight. */
.services-grid{
  align-items:stretch!important;
}
.service-card{
  min-height:82px!important;
  height:82px!important;
  gap:7px!important;
  padding:8px 6px!important;
}
.service-card span{
  font-size:12px!important;
  line-height:1.45!important;
  font-weight:650!important;
  letter-spacing:-.01em!important;
}
.service-card img{
  width:34px!important;
  height:34px!important;
}

/* FAQ: questions must be stronger than answers. */
.faq-item summary,
.faq-item summary span:last-child{
  font-size:13px!important;
  line-height:1.65!important;
  font-weight:750!important;
  color:#071641!important;
}
.faq-answer{
  font-size:12.5px!important;
  line-height:1.95!important;
  font-weight:400!important;
  color:#65748A!important;
}

/* Avoid quick-card and service-card being treated as generic card titles. */
.quick-title,
.service-card span{
  text-wrap:pretty;
}

/* Standard topbar direction: menu left, back right on all detail/deceased pages. */
.site-topbar{
  direction:ltr!important;
  position:relative!important;
}
.site-topbar .site-menu{
  position:absolute!important;
  left:14px!important;
  right:auto!important;
}
.site-topbar .site-back{
  position:absolute!important;
  right:14px!important;
  left:auto!important;
}
.site-topbar > span[aria-hidden="true"]{
  visibility:hidden!important;
}

/* Anniversary today list: search-result-like cards. */
.anniversary-today-page .content-hero{
  padding:10px 18px 14px!important;
  text-align:right!important;
}
.anniversary-today-page .anniv-list-section{
  padding:0 14px 18px!important;
}
.anniversary-today-page .anniv-result-list{
  display:grid!important;
  gap:10px!important;
}
.anniversary-today-page .result-card-like{
  min-height:92px!important;
  display:grid!important;
  grid-template-columns:92px minmax(0,1fr)!important;
  border:1px solid #E6EFEC!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 8px 18px rgba(7,22,65,.055)!important;
  overflow:hidden!important;
  color:inherit!important;
  text-decoration:none!important;
}
.anniversary-today-page .result-card-like .side{
  border-left:1px solid #EEF3F1!important;
  background:#F9FFFD!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  padding:10px 8px!important;
}
.anniversary-today-page .result-card-like .date{
  font-size:11.8px!important;
  line-height:1.4!important;
  font-weight:800!important;
  color:#071641!important;
  white-space:nowrap!important;
}
.anniversary-today-page .result-card-like .view{
  min-height:30px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  background:#1EBEA5!important;
  color:#fff!important;
  padding:0 12px!important;
  font-size:12px!important;
  font-weight:850!important;
}
.anniversary-today-page .result-card-like .person{
  padding:13px 13px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  text-align:right!important;
}
.anniversary-today-page .result-card-like .name{
  color:#071641!important;
  font-size:16px!important;
  line-height:1.6!important;
  font-weight:850!important;
}
.anniversary-today-page .result-card-like .father{
  color:#68758A!important;
  font-size:12.7px!important;
  line-height:1.8!important;
  font-weight:600!important;
}
.anniversary-today-page .result-card-like .loc{
  color:#15917F!important;
  font-size:12.5px!important;
  line-height:1.8!important;
  font-weight:700!important;
}
@media (max-width:340px){
  .quick-grid{grid-template-columns:1fr!important}
  .quick-card{min-height:70px!important}
  .service-card{height:78px!important;min-height:78px!important}
}


/* v62 pre-P0 requested refinements */
/* Home FAQ: lighter questions, smaller answers */
.page .faq-item summary,
.page .faq-item summary span:last-child{
  font-size:12.6px!important;
  line-height:1.7!important;
  font-weight:500!important;
  color:#071641!important;
}
.page .faq-answer,
.page .faq-item p{
  font-size:11.8px!important;
  line-height:1.9!important;
  font-weight:400!important;
  color:#68778C!important;
}

/* Standard header placement everywhere: menu left, back right */
.site-topbar,
.topbar{
  direction:ltr!important;
  position:relative!important;
}
.site-topbar .site-menu,
.topbar .site-menu{
  position:absolute!important;
  left:14px!important;
  right:auto!important;
}
.site-topbar .site-back,
.topbar .site-back{
  position:absolute!important;
  right:14px!important;
  left:auto!important;
}

/* Error report link requested color/weight */
.report,
button.report,
a.report{
  color:#E54D4C!important;
  font-weight:400!important;
  text-decoration:none!important;
}

/* Grave plots cleaner content blocks */
.definition-list{
  display:grid;
  gap:10px;
}
.definition-item{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:10px;
  align-items:start;
  padding:13px 12px;
  border:1px solid #DDE7E3;
  background:#fff;
  border-radius:15px;
  box-shadow:0 8px 20px rgba(7,22,65,.045);
}
.definition-index{
  width:42px;
  height:42px;
  border-radius:14px;
  background:#F2FBF9;
  color:#15917F;
  display:grid;
  place-items:center;
  font-size:18px;
  font-weight:800;
}
.definition-item strong{
  display:block;
  color:#071641;
  font-size:15px;
  font-weight:800;
  line-height:1.6;
  margin-bottom:3px;
}
.definition-item p{
  margin:0!important;
  color:#52627A!important;
  font-size:12.6px!important;
  line-height:2!important;
}
.inline-recommendation{
  border:1px solid rgba(30,190,165,.24);
  background:linear-gradient(180deg,#F8FFFD,#F0FBF8);
  border-radius:16px;
  padding:14px 13px;
  margin-top:12px;
}
.inline-recommendation p{
  margin:0 0 11px!important;
  color:#32425D!important;
  font-size:12.7px!important;
  line-height:1.95!important;
}
.inline-recommendation a{
  min-height:42px;
  border-radius:13px;
  background:#1EBEA5;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:14px;
  font-weight:800;
  text-decoration:none;
}
.grave-plots-page img,
.grave-plots img,
#plot-map-preview img{
  display:none!important;
}

/* Free grave day-burial image and warning */
.day-burial-photo{
  margin:12px 0;
  border-radius:16px;
  overflow:hidden;
  border:1px solid #DDE7E3;
  background:#F6F8FA;
}
.day-burial-photo img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}
.note-card{
  border:1px solid rgba(229,77,76,.22);
  background:#FFF7F6;
  border-radius:15px;
  padding:12px 13px;
  color:#333;
}
.note-card strong{
  color:#E54D4C;
  font-weight:800;
}
.note-card p{
  margin:0!important;
  font-size:12.6px!important;
  line-height:2!important;
}


/* v63 post-v62 UI and typography fixes */
/* Two button standards:
   Full-width mobile CTA and half-width paired CTA. */
:root{
  --btn-full-font-size:16px;
  --btn-half-font-size:15px;
  --btn-font-weight:800;
  --btn-half-font-weight:750;
  --btn-height-full:52px;
  --btn-height-half:46px;
}

.primary-action,
.submit-btn,
.final-button,
.pay-btn,
.ann-primary,
.route-main,
.full-width-cta{
  min-height:var(--btn-height-full)!important;
  font-size:var(--btn-full-font-size)!important;
  font-weight:var(--btn-font-weight)!important;
  line-height:1.45!important;
  border-radius:13px!important;
}

.secondary-action,
.outline-btn,
.ann-secondary,
.dual .btn,
.half-width-cta{
  min-height:var(--btn-height-half)!important;
  font-size:var(--btn-half-font-size)!important;
  font-weight:var(--btn-half-font-weight)!important;
  line-height:1.45!important;
  border-radius:12px!important;
}

/* Same-level section titles must stay equal, including FAQ and article blocks. */
.section-head,
.section h2,
.faq h2,
.article-list h2,
.related-card h2,
.result-title{
  font-size:18px!important;
  line-height:1.55!important;
  font-weight:800!important;
  letter-spacing:-.025em!important;
}

/* Home FAQ is not visually more important than articles; answers stay smaller. */
.page .faq-item summary,
.page .faq-item summary span:last-child{
  font-size:12.6px!important;
  line-height:1.7!important;
  font-weight:500!important;
}
.page .faq-answer,
.page .faq-item p{
  font-size:11.8px!important;
  line-height:1.9!important;
  font-weight:400!important;
  color:#68778C!important;
}

/* Report text: clearer wording and underline everywhere. */
.report,
button.report,
a.report{
  color:#E54D4C!important;
  font-weight:400!important;
  text-decoration:underline!important;
  text-underline-offset:4px!important;
  text-decoration-thickness:1px!important;
}

/* Gift stats card: avoid clipping plus buttons on all deceased pages. */
.stats{
  height:auto!important;
  min-height:150px!important;
  overflow:visible!important;
  align-items:start!important;
  padding:18px 12px 22px!important;
  row-gap:8px!important;
}
.stat{
  display:grid!important;
  grid-template-rows:auto auto 46px!important;
  align-items:start!important;
  justify-items:center!important;
  min-height:110px!important;
}
.stat-title{
  min-height:34px!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:normal!important;
}
.stat-num{
  min-height:22px!important;
  margin-bottom:10px!important;
}
.plus-btn{
  width:44px!important;
  height:44px!important;
  border-radius:11px!important;
  align-self:end!important;
}

/* Clean content/article pages: mobile-first, no overlap, consistent typography. */
.articles-guide-page,
.content-clean-page{
  overflow:visible!important;
  padding-bottom:32px!important;
}
.articles-guide-page .hero,
.content-clean-page .hero,
.content-clean-page .intro{
  min-height:auto!important;
  height:auto!important;
  overflow:visible!important;
  margin-bottom:16px!important;
}
.articles-guide-page .hero h1,
.content-clean-page .hero h1,
.content-clean-page .intro h1{
  font-size:25px!important;
  line-height:1.45!important;
  font-weight:850!important;
  margin:0 0 8px!important;
}
.articles-guide-page .hero p,
.content-clean-page .hero p,
.content-clean-page .intro p{
  font-size:13.5px!important;
  line-height:1.95!important;
  font-weight:400!important;
  max-width:100%!important;
}
.articles-guide-page .search-box{
  height:50px!important;
  margin:12px 0!important;
  border-radius:14px!important;
}
.articles-guide-page .search-box input{
  font-size:13.5px!important;
}
.articles-guide-page .tabs{
  display:flex!important;
  gap:8px!important;
  overflow-x:auto!important;
  padding-bottom:4px!important;
  margin:0 0 14px!important;
}
.articles-guide-page .tab{
  flex:0 0 auto!important;
  min-width:76px!important;
  height:34px!important;
  font-size:12px!important;
}
.articles-guide-page .featured,
.articles-guide-page .article-card,
.content-clean-page .card,
.content-clean-page .guide-step,
.content-clean-page .feature-card,
.content-clean-page .related-card,
.content-clean-page .tips-card,
.content-clean-page .search-card,
.content-clean-page .map-card{
  position:relative!important;
  height:auto!important;
  min-height:auto!important;
  overflow:hidden!important;
  display:block!important;
  margin-bottom:10px!important;
  border-radius:15px!important;
}
.articles-guide-page .featured{
  padding:14px!important;
}
.articles-guide-page .feature-ill{
  position:static!important;
  width:100%!important;
  height:128px!important;
  object-fit:cover!important;
  border-radius:13px!important;
  margin-bottom:10px!important;
}
.articles-guide-page .feature-content{
  position:static!important;
  width:100%!important;
  padding:0!important;
}
.articles-guide-page .article-list{
  display:grid!important;
  gap:10px!important;
  margin-top:14px!important;
}
.articles-guide-page .article-card{
  display:grid!important;
  grid-template-columns:86px 1fr!important;
  gap:10px!important;
  padding:10px!important;
  align-items:center!important;
}
.articles-guide-page .article-card .thumb{
  width:86px!important;
  height:74px!important;
  border-radius:12px!important;
  overflow:hidden!important;
}
.articles-guide-page .article-card .thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.articles-guide-page .article-card .text{
  position:static!important;
  padding:0!important;
}
.articles-guide-page .article-card h2,
.articles-guide-page .article-card strong,
.content-clean-page .card-title,
.content-clean-page .mini-title,
.content-clean-page .guide-step strong{
  font-size:15.5px!important;
  line-height:1.6!important;
  font-weight:750!important;
}
.articles-guide-page .article-card p,
.articles-guide-page .featured p,
.content-clean-page p,
.content-clean-page li{
  font-size:13px!important;
  line-height:1.9!important;
  font-weight:400!important;
}

/* Catering temporarily works as phone lead, not online checkout. */
.catering-contact-mode .order-controls,
.catering-contact-mode .finalize-sheet,
.catering-contact-mode .payment-link{
  display:none!important;
}
.catering-contact-mode .final-button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-decoration:none!important;
  width:100%!important;
}


/* v64 typography standard enforcement */
/* Home page: FAQ question rows, article rows and notice-like rows are equal-value text. */
.article-link,
.notice-link,
.announcement-link,
.page .faq-item summary,
.page .faq-item summary span:last-child{
  font-size:11.8px!important;
  line-height:1.7!important;
  font-weight:400!important;
  color:#071641!important;
  letter-spacing:-.01em!important;
}
.page .faq-answer,
.page .faq-item p{
  font-size:11.6px!important;
  line-height:1.9!important;
  font-weight:400!important;
  color:#68778C!important;
}
/* Same-value section heads: articles and FAQ */
#articles-title,
#faq-title,
.section-head{
  font-size:15.2px!important;
  line-height:1.55!important;
  font-weight:780!important;
}

/* Phonebook additions */
.phonebook-contact-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
}
.phonebook-contact-card{
  border:1px solid #DDE7E3;
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 18px rgba(7,22,65,.055);
  padding:11px 12px;
}
.phonebook-contact-card strong{
  display:block;
  color:#071641;
  font-size:14px;
  font-weight:750;
  line-height:1.6;
  margin-bottom:4px;
}
.phonebook-contact-card a,
.phonebook-contact-card span.phone-number{
  display:inline-flex;
  direction:ltr;
  color:#15917F;
  font-size:15px;
  font-weight:800;
  line-height:1.5;
  text-decoration:none;
}
.phonebook-contact-card small{
  display:block;
  margin-top:3px;
  color:#68778C;
  font-size:11.6px;
  line-height:1.75;
}
.feedback-box{
  border:1px solid rgba(30,190,165,.24);
  background:linear-gradient(180deg,#fff,#F6FFFC);
  border-radius:17px;
  padding:14px 13px;
  box-shadow:0 10px 24px rgba(7,22,65,.055);
}
.feedback-box p{
  margin:0 0 10px!important;
  font-size:12.8px!important;
  line-height:1.9!important;
  color:#52627A!important;
}
.feedback-form{
  display:grid;
  gap:8px;
}
.feedback-form input,
.feedback-form select,
.feedback-form textarea{
  width:100%;
  border:1px solid #DDE7E3;
  border-radius:12px;
  background:#fff;
  min-height:42px;
  padding:9px 11px;
  color:#071641;
  font:inherit;
  font-size:12.8px;
  outline:none;
}
.feedback-form textarea{
  min-height:96px;
  resize:vertical;
}
.feedback-form button{
  min-height:48px;
  border:0;
  border-radius:13px;
  background:linear-gradient(180deg,#1EBEA5,#15917F);
  color:#fff;
  font-size:15px;
  font-weight:800;
}
.feedback-success{
  display:none;
  margin-top:8px;
  color:#15917F;
  font-size:12.5px;
  line-height:1.8;
}
.feedback-box.is-submitted .feedback-success{
  display:block;
}

/* v65 phonebook feedback revisions */
#official-phone-numbers .phonebook-contact-grid{
  margin-top:8px;
}
#feedback-box h2{
  font-size:18px!important;
  line-height:1.55!important;
  font-weight:800!important;
}
.feedback-box p{
  font-size:13px!important;
  line-height:2!important;
  color:#42526B!important;
}
.feedback-form select{
  appearance:none;
}
.feedback-form button{
  cursor:pointer;
}
