/* RFardi public frontend design system — warm, calm, minimal. */
:root{
  --rf-bg:#fbfaf7;
  --rf-surface:#ffffff;
  --rf-surface-soft:#f4f1eb;
  --rf-ink:#1f2c29;
  --rf-muted:#6c7773;
  --rf-green:#35594d;
  --rf-green-mid:#5f786e;
  --rf-green-deep:#29473e;
  --rf-accent:#a87865;
  --rf-border:#e7e2d9;
  --rf-shadow:0 10px 30px rgba(45,62,56,.06);
  --rf-radius:18px;
}
html{scroll-behavior:smooth}
body:not(.wp-admin){
  background:var(--rf-bg);
  color:var(--rf-ink);
  font-family:"Vazirmatn","IRANSansX",Tahoma,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body:not(.wp-admin) p,body:not(.wp-admin) li{line-height:1.95}
body:not(.wp-admin) a{transition:color .18s ease,background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}

/* Header */
body:not(.wp-admin) .ast-primary-header-bar{
  background:#fff;
  border-bottom:1px solid var(--rf-border);
  box-shadow:none;
}
body:not(.wp-admin) .site-title a,
body:not(.wp-admin) .ast-site-title-wrap .site-title a{
  color:var(--rf-green-deep)!important;
  font-weight:900;
  letter-spacing:-.35px;
}
body:not(.wp-admin) .site-description{color:#7e8884}
body:not(.wp-admin) .main-header-menu>.menu-item>.menu-link,
body:not(.wp-admin) .ast-builder-menu-1 .menu-item>.menu-link{
  color:#40504a;
  font-weight:700;
  font-size:14px;
  border-radius:10px;
}
body:not(.wp-admin) .main-header-menu>.menu-item>.menu-link:hover,
body:not(.wp-admin) .ast-builder-menu-1 .menu-item>.menu-link:hover{color:var(--rf-green);background:#f5f6f3}
body:not(.wp-admin) .main-header-menu>.current-menu-item>.menu-link,
body:not(.wp-admin) .main-header-menu>.current_page_item>.menu-link,
body:not(.wp-admin) .ast-builder-menu-1 .current-menu-item>.menu-link{color:var(--rf-green-deep)!important;background:#edf2ef}
body:not(.wp-admin) .main-header-menu>.menu-item:last-child>.menu-link,
body:not(.wp-admin) .ast-builder-menu-1 .menu-item:last-child>.menu-link{
  background:var(--rf-green-deep);
  color:#fff!important;
  border-radius:11px;
  padding-inline:18px;
  margin-inline-start:8px;
}
body:not(.wp-admin) .main-header-menu>.menu-item:last-child>.menu-link:hover,
body:not(.wp-admin) .ast-builder-menu-1 .menu-item:last-child>.menu-link:hover{background:var(--rf-green);color:#fff!important}
body:not(.wp-admin) .ast-mobile-header-wrap .ast-button-wrap .menu-toggle.main-header-menu-toggle{color:var(--rf-green-deep)}
body:not(.wp-admin) .ast-mobile-header-content{background:#fff;border-top:1px solid var(--rf-border)}

/* Remove theme chrome from bespoke RFardi pages */
body.home .entry-header,
body.home .entry-title,
body.home .wp-block-post-title,
body.home .post-thumb,
body.home .ast-blog-featured-section,
body.page-id-3 .entry-header,
body.page-id-8 .entry-header,
body.page-id-9 .entry-header,
body.page-id-10 .entry-header,
body.page-id-29 .entry-header,
body.page-id-30 .entry-header,
body.page-id-31 .entry-header,
body.page-id-55 .entry-header,
body.page-id-59 .entry-header,
body.page-id-80 .entry-header,
body.page-id-81 .entry-header,
body.page-id-82 .entry-header{display:none!important}
body.page-id-3 .site-content>.ast-container,
body.page-id-7 .site-content>.ast-container,
body.page-id-8 .site-content>.ast-container,
body.page-id-9 .site-content>.ast-container,
body.page-id-10 .site-content>.ast-container,
body.page-id-29 .site-content>.ast-container,
body.page-id-30 .site-content>.ast-container,
body.page-id-31 .site-content>.ast-container,
body.page-id-55 .site-content>.ast-container,
body.page-id-59 .site-content>.ast-container,
body.page-id-80 .site-content>.ast-container,
body.page-id-81 .site-content>.ast-container,
body.page-id-82 .site-content>.ast-container{
  max-width:100%;padding:0!important;
}
body.home .entry-content{margin:0!important}

/* Soften the older inline-styled public pages without rewriting their content */
body.page-id-3 .entry-content>div,
body.page-id-8 .entry-content>div,
body.page-id-9 .entry-content>div,
body.page-id-10 .entry-content>div,
body.page-id-80 .entry-content>div,
body.page-id-81 .entry-content>div,
body.page-id-82 .entry-content>div{background:var(--rf-bg)!important;color:var(--rf-ink)!important}
body.page-id-3 .entry-content>div>section:first-of-type,
body.page-id-8 .entry-content>div>section:first-of-type,
body.page-id-9 .entry-content>div>section:first-of-type,
body.page-id-10 .entry-content>div>section:first-of-type,
body.page-id-80 .entry-content>div>section:first-of-type,
body.page-id-81 .entry-content>div>section:first-of-type,
body.page-id-82 .entry-content>div>section:first-of-type{
  background:#f2eee6!important;
  color:var(--rf-ink)!important;
  box-shadow:none!important;
}
body.page-id-3 .entry-content>div>section:first-of-type h1,
body.page-id-3 .entry-content>div>section:first-of-type h2,
body.page-id-8 .entry-content>div>section:first-of-type h1,
body.page-id-8 .entry-content>div>section:first-of-type h2,
body.page-id-9 .entry-content>div>section:first-of-type h1,
body.page-id-9 .entry-content>div>section:first-of-type h2,
body.page-id-10 .entry-content>div>section:first-of-type h1,
body.page-id-10 .entry-content>div>section:first-of-type h2,
body.page-id-80 .entry-content>div>section:first-of-type h1,
body.page-id-80 .entry-content>div>section:first-of-type h2,
body.page-id-81 .entry-content>div>section:first-of-type h1,
body.page-id-81 .entry-content>div>section:first-of-type h2,
body.page-id-82 .entry-content>div>section:first-of-type h1,
body.page-id-82 .entry-content>div>section:first-of-type h2{color:var(--rf-ink)!important}
body.page-id-3 .entry-content>div>section:first-of-type p,
body.page-id-8 .entry-content>div>section:first-of-type p,
body.page-id-9 .entry-content>div>section:first-of-type p,
body.page-id-10 .entry-content>div>section:first-of-type p,
body.page-id-80 .entry-content>div>section:first-of-type p,
body.page-id-81 .entry-content>div>section:first-of-type p,
body.page-id-82 .entry-content>div>section:first-of-type p{color:var(--rf-muted)!important}
body.page-id-10 .entry-content>div>section:first-of-type a{box-shadow:none!important}

/* General content */
body:not(.wp-admin) .site-content{background:var(--rf-bg)}
body:not(.wp-admin):not(.home) .site-content>.ast-container{padding-top:42px;padding-bottom:64px}
body:not(.wp-admin) .entry-title,
body:not(.wp-admin) .entry-title a,
body:not(.wp-admin) h1,
body:not(.wp-admin) h2,
body:not(.wp-admin) h3,
body:not(.wp-admin) h4{color:var(--rf-ink)}
body:not(.wp-admin) .entry-title{font-weight:900;letter-spacing:-.45px;line-height:1.5}
body:not(.wp-admin) .entry-meta,body:not(.wp-admin) .entry-meta *{color:#858d89;font-size:13px}
body:not(.wp-admin) .entry-content{color:#596660;font-size:16px;line-height:2}
body:not(.wp-admin) .entry-content a:not([style]){color:var(--rf-green);font-weight:800;text-underline-offset:3px}
body:not(.wp-admin) .entry-content blockquote{
  border-right:3px solid #b49a83;border-left:0;background:#f7f2eb;border-radius:12px;margin:26px 0;padding:18px 22px;color:#5f554c;
}
body:not(.wp-admin) .entry-content img{border-radius:18px}

/* Blog */
body.blog .site-content>.ast-container,
body.archive .site-content>.ast-container,
body.search .site-content>.ast-container{
  max-width:1180px;
  padding:64px 24px 84px!important;
}
body.blog #primary,body.archive #primary,body.search #primary{width:100%;max-width:100%;padding:0;margin:0}
body.blog #secondary,body.archive #secondary,body.search #secondary{display:none}
body.blog .site-main,body.archive .site-main,body.search .site-main{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:22px;width:100%;max-width:1040px;margin:0 auto}
body.blog article.post,body.archive article.post,body.search article{
  background:var(--rf-surface);border:1px solid var(--rf-border);border-radius:22px;box-shadow:0 12px 34px rgba(45,62,56,.05);overflow:hidden;padding:30px;min-width:0;
}
body.blog article.post:only-child,body.archive article.post:only-child,body.search article:only-child{max-width:760px;width:100%;margin-inline:auto}
body.blog article.post:hover,body.archive article.post:hover,body.search article:hover{border-color:#d7d1c8;box-shadow:0 18px 42px rgba(45,62,56,.08);transform:translateY(-2px)}
body.blog article.post .entry-title,body.archive article.post .entry-title,body.search article .entry-title{font-size:clamp(24px,3vw,31px);margin-bottom:10px;line-height:1.55}
body.blog article.post .entry-title a,body.archive article.post .entry-title a,body.search article .entry-title a{color:var(--rf-ink);text-decoration:none}
body.blog article.post .entry-title a:hover,body.archive article.post .entry-title a:hover,body.search article .entry-title a:hover{color:var(--rf-green)}
body.blog article.post .post-thumb,body.archive article.post .post-thumb,body.search article .post-thumb{margin-bottom:20px}
body.blog article.post .post-thumb img,body.archive article.post .post-thumb img,body.search article .post-thumb img{border-radius:16px;aspect-ratio:16/9;object-fit:cover;width:100%;max-height:none}
body.blog article.post .entry-content,body.archive article.post .entry-content,body.search article .entry-content{color:#66716d;font-size:15px}
body.blog .read-more a,body.archive .read-more a,body.search .read-more a{
  display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:10px;background:var(--rf-green-deep);color:#fff!important;text-decoration:none;font-weight:850;
}
body.blog .read-more a:hover,body.archive .read-more a:hover,body.search .read-more a:hover{background:var(--rf-green);transform:translateY(-1px)}

/* Single article */
body.single-post .site-main article.post{background:#fff;border:1px solid var(--rf-border);border-radius:20px;box-shadow:none;padding:clamp(26px,4vw,46px);overflow:hidden}
body.single-post .entry-title{font-size:clamp(30px,4.4vw,46px);line-height:1.5;color:var(--rf-ink)}
body.single-post .entry-content h2{font-size:clamp(24px,3.2vw,32px);margin-top:38px;line-height:1.6;color:var(--rf-green-deep)}
body.single-post .entry-content h3{font-size:clamp(20px,2.7vw,26px);margin-top:30px;line-height:1.65;color:#40574f}
body.single-post .entry-content p{margin-bottom:18px}
body.single-post .post-thumb img{border-radius:18px;max-height:500px;object-fit:cover;width:100%}

/* Widgets */
body:not(.wp-admin) .widget,body:not(.wp-admin) .sidebar-main .widget{background:#fff;border:1px solid var(--rf-border);border-radius:16px;padding:22px;box-shadow:none}
body:not(.wp-admin) .widget-title{color:var(--rf-green-deep);font-size:18px;font-weight:900;margin-bottom:14px}
body:not(.wp-admin) .widget a{color:#51645c;text-decoration:none}
body:not(.wp-admin) .widget a:hover{color:var(--rf-green)}

/* Forms */
body:not(.wp-admin) .wp-block-button__link,body:not(.wp-admin) button:not(.menu-toggle):not(.rfardi-btn),body:not(.wp-admin) input[type=submit]:not(.rfardi-btn){border-radius:11px;font-weight:800}
body:not(.wp-admin) input[type=text],body:not(.wp-admin) input[type=email],body:not(.wp-admin) input[type=tel],body:not(.wp-admin) input[type=search],body:not(.wp-admin) textarea,body:not(.wp-admin) select{border-color:#d8d4cc;border-radius:10px;background:#fff}
body:not(.wp-admin) input:focus,body:not(.wp-admin) textarea:focus,body:not(.wp-admin) select:focus{border-color:var(--rf-green-mid);box-shadow:0 0 0 3px rgba(95,120,110,.09);outline:none}

/* Pagination */
body:not(.wp-admin) .ast-pagination .page-numbers,body:not(.wp-admin) .nav-links .page-numbers{border-radius:9px;min-width:38px;min-height:38px;display:inline-flex;align-items:center;justify-content:center}
body:not(.wp-admin) .ast-pagination .page-numbers.current,body:not(.wp-admin) .nav-links .page-numbers.current{background:var(--rf-green-deep);color:#fff}

/* Footer */
body:not(.wp-admin) .site-footer,body:not(.wp-admin) .site-primary-footer-wrap,body:not(.wp-admin) .site-below-footer-wrap{background:#263b34;color:#d7dfdb}
body:not(.wp-admin) .site-footer a{color:#fff}
body:not(.wp-admin) .site-footer a:hover{color:#d9c5b4}
body:not(.wp-admin) .site-footer .widget-title{color:#fff}
body:not(.wp-admin) .site-below-footer-wrap{border-top:1px solid rgba(255,255,255,.08)}

@media(max-width:921px){
  body:not(.wp-admin):not(.home) .site-content>.ast-container{padding-top:26px;padding-bottom:44px}
  body.blog .site-content>.ast-container,body.archive .site-content>.ast-container,body.search .site-content>.ast-container{padding:36px 18px 56px!important}
  body.blog article.post,body.archive article.post,body.search article{padding:22px}
  body.single-post .site-main article.post{border-radius:18px;padding:24px}
  body:not(.wp-admin) .ast-mobile-header-content .menu-link{font-size:15px;font-weight:750;color:#40504a}
  body:not(.wp-admin) .ast-mobile-header-content .menu-item:last-child>.menu-link{background:transparent;color:var(--rf-green-deep)!important;margin:0;padding-inline:20px}
}
@media(max-width:780px){
  body.page-id-8 .entry-content>div>section:first-of-type>div,
  body.page-id-8 .entry-content>div>section:nth-of-type(3)>div,
  body.page-id-9 .entry-content>div>section:first-of-type>div{grid-template-columns:1fr!important;gap:26px!important}
  body.page-id-8 .entry-content>div>section:nth-of-type(3)>div>div:last-child{grid-template-columns:1fr!important}
}
@media(max-width:544px){
  body:not(.wp-admin) .site-content>.ast-container{padding-left:14px;padding-right:14px}
  body.blog .site-main,body.archive .site-main,body.search .site-main{grid-template-columns:1fr}
  body.blog article.post,body.archive article.post,body.search article{border-radius:18px;padding:18px}
  body.single-post .site-main article.post{padding:19px;border-radius:16px}
  body.single-post .entry-content{font-size:15px}
}
