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

:root{
  --graphite: #1c2024;
  --graphite-soft: #2a2f35;
  --concrete: #f1f0ec;
  --concrete-line: #dedad1;
  --ink: #1c2024;
  --ink-soft: #5a5f66;
  --steel: #2e5c8a;
  --steel-dark: #1f4266;
  --clay: #a9744f;
  --white: #ffffff;
  --radius: 2px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Vazirmatn', Tahoma, sans-serif;
  background:var(--concrete);
  color:var(--ink);
  line-height:1.8;
  direction:rtl;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
.container{max-width:1140px; margin:0 auto; padding:0 20px;}
.section{padding:64px 0;}
.section + .section{border-top:1px solid var(--concrete-line);}
.section-head{margin-bottom:32px; display:flex; align-items:baseline; justify-content:space-between; gap:16px; flex-wrap:wrap;}
.section-head h2{font-size:26px; font-weight:800; margin:0; letter-spacing:-.01em;}
.section-head .see-all{font-size:14px; color:var(--steel); border-bottom:1px solid var(--steel); padding-bottom:2px;}
.eyebrow{font-size:13px; color:var(--ink-soft); margin:0 0 6px;}

/* header */
.site-header{background:var(--graphite); color:var(--white); position:sticky; top:0; z-index:50;}
.site-header .container{display:flex; align-items:center; justify-content:space-between; padding-top:14px; padding-bottom:14px; gap:20px;}
.brand{display:flex; align-items:center; gap:12px;}
.brand img{height:46px; width:auto;}
.brand-text .name{font-weight:800; font-size:19px; line-height:1.3;}
.brand-text .tagline{font-size:12.5px; color:#b9c0c7;}
.main-nav ul{list-style:none; display:flex; gap:26px; margin:0; padding:0; flex-wrap:wrap;}
.main-nav a{font-size:15px; color:#e7e9eb; padding:6px 0; border-bottom:2px solid transparent;}
.main-nav a:hover{border-color:var(--steel);}
.nav-toggle{display:none;}

/* hero slider */
.hero{position:relative; background:var(--graphite); overflow:hidden;}
.hero-slides{position:relative; height:420px;}
.hero-slide{position:absolute; inset:0; opacity:0; transition:opacity .8s ease;}
.hero-slide.active{opacity:1;}
.hero-slide img{width:100%; height:100%; object-fit:cover;}
.hero-slide .cap{position:absolute; bottom:0; right:0; left:0; padding:18px 28px; background:linear-gradient(0deg, rgba(0,0,0,.65), transparent); color:#fff; font-size:15px;}
.hero-dots{position:absolute; bottom:14px; left:50%; transform:translateX(-50%); display:flex; gap:8px;}
.hero-dots span{width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.4);}
.hero-dots span.active{background:#fff;}
.hero-empty{height:280px; display:flex; align-items:center; justify-content:center; color:#8a9199;}

/* about */
.about-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:start;}
.about-grid p{color:var(--ink-soft); white-space:pre-line;}
.about-figure{border:1px solid var(--concrete-line); background:var(--white); padding:24px;}
.about-figure .num{font-size:34px; font-weight:800; color:var(--steel);}
.about-figure .label{color:var(--ink-soft); font-size:14px;}

/* posts / tenders */
.tabs{display:flex; gap:8px; margin-bottom:24px;}
.tabs a{padding:8px 16px; border:1px solid var(--concrete-line); font-size:14px; background:var(--white);}
.tabs a.active{background:var(--graphite); color:#fff; border-color:var(--graphite);}
.post-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.post-card{background:var(--white); border:1px solid var(--concrete-line); display:flex; flex-direction:column;}
.post-card .thumb{aspect-ratio:16/10; background:#e5e3dc; overflow:hidden;}
.post-card .thumb img{width:100%; height:100%; object-fit:cover;}
.post-card .body{padding:16px; display:flex; flex-direction:column; gap:8px; flex:1;}
.badge{align-self:flex-start; font-size:12px; padding:3px 10px; border:1px solid var(--steel); color:var(--steel);}
.badge.mazayede{border-color:var(--clay); color:var(--clay);}
.post-card h3{font-size:16.5px; margin:0; font-weight:600;}
.post-card .meta{font-size:12.5px; color:var(--ink-soft); margin-top:auto;}
.post-card .summary{font-size:13.5px; color:var(--ink-soft);}

/* single post */
.post-single .head{margin-bottom:24px;}
.post-single .head img{width:100%; max-height:420px; object-fit:cover; margin-bottom:20px; border:1px solid var(--concrete-line);}
.post-single .content{white-space:pre-line; color:var(--ink-soft);}
.attach-box{margin-top:28px; padding:18px; border:1px dashed var(--concrete-line); background:var(--white);}
.attach-box a{color:var(--steel); font-weight:600;}

/* gallery */
.gallery-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:12px;}
.gallery-grid a{aspect-ratio:1/1; overflow:hidden; border:1px solid var(--concrete-line);}
.gallery-grid img{width:100%; height:100%; object-fit:cover; transition:transform .3s;}
.gallery-grid a:hover img{transform:scale(1.06);}

/* board */
.board-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
.board-card{text-align:center;}
.board-card .photo{aspect-ratio:1/1; background:#e5e3dc; overflow:hidden; margin-bottom:10px; border:1px solid var(--concrete-line);}
.board-card .photo img{width:100%; height:100%; object-fit:cover;}
.board-card .name{font-weight:600;}
.board-card .role{font-size:13px; color:var(--ink-soft);}

/* contact / footer */
.site-footer{background:var(--graphite); color:#d8dce0;}
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:32px;}
.contact-grid h3{color:#fff; font-size:17px; margin-top:0;}
.contact-grid p{color:#b9c0c7; margin:6px 0;}
.contact-grid iframe{width:100%; height:260px; border:0;}
.footer-bottom{border-top:1px solid #333941; text-align:center; font-size:13px; color:#8a9199; padding:16px 0;}

/* generic */
.btn{display:inline-block; background:var(--steel); color:#fff; padding:10px 20px; border:1px solid var(--steel); font-size:14px; cursor:pointer;}
.btn:hover{background:var(--steel-dark);}
.pagination{display:flex; gap:8px; margin-top:28px; justify-content:center;}
.pagination a{padding:6px 12px; border:1px solid var(--concrete-line); background:var(--white); font-size:14px;}
.pagination a.active{background:var(--graphite); color:#fff;}

@media (max-width: 860px){
  .about-grid, .contact-grid{grid-template-columns:1fr;}
  .post-grid, .board-grid{grid-template-columns:repeat(2,1fr);}
  .gallery-grid{grid-template-columns:repeat(3,1fr);}
  .main-nav{width:100%; order:3;}
  .main-nav ul{gap:14px; justify-content:center; padding:10px 0 0;}
}
@media (max-width: 520px){
  .post-grid, .board-grid{grid-template-columns:1fr;}
  .gallery-grid{grid-template-columns:repeat(2,1fr);}
  .hero-slides{height:220px;}
}
