@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}

:root {
  --primary: #e8640c;
  --primary-dark: #c65308;
  --dark: #1a2433;
  --muted: #64748b;
  --bg-soft: #f6f7f9;
  --card-shadow: 0 10px 30px rgba(26,36,51,.08);
}

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: #fff;
  color: var(--dark);
  overflow-x: hidden;
}

/* Navbar */
.navbar-custom {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  padding: .8rem 0;
  transition: all .3s;
}
.navbar-custom.scrolled {
  padding: .5rem 0;
  box-shadow: 0 5px 25px rgba(0,0,0,.1);
}
.brand-logo {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), #ffb703);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
}
.brand-title { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.brand-sub { font-size: .78rem; color: var(--muted); }
.nav-link { font-weight: 500; color: var(--dark) !important; margin: 0 .3rem; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -4px; right: 0; left: 0;
  height: 3px; background: var(--primary); border-radius: 10px;
}
.btn-primary-custom {
  background: var(--primary); border: none; color: #fff;
  border-radius: 50px; padding: .6rem 1.6rem; font-weight: 700;
  transition: .25s;
}
.btn-primary-custom:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(232,100,12,.3); }
.btn-outline-custom {
  border: 2px solid #e2e8f0; border-radius: 50px; padding: .55rem 1.5rem; font-weight: 700; color: var(--dark);
}
.btn-outline-custom:hover { border-color: var(--primary); color: var(--primary); }

/* Hero */
.hero {
  background: linear-gradient(to left, rgba(26,36,51,.88), rgba(26,36,51,.55)), url('../assets/img/hero.jpg?v=20261006e') center/cover no-repeat;
  color: #fff;
  padding: 110px 0 90px;
  position: relative;
  margin-top: 72px;
}
.hero-badge {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px); border-radius: 50px; padding: .4rem 1rem; font-size: .85rem; display: inline-block;
}
.hero h1 { font-weight: 800; font-size: 2.4rem; line-height: 1.4; }
.hero h1 span { color: #ffb703; }
.hero p { color: #e2e8f0; font-size: 1.05rem; line-height: 2; }
.hero-stats { background: #fff; border-radius: 20px; box-shadow: var(--card-shadow); margin-top: -45px; position: relative; z-index: 5; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--muted); font-size: .9rem; }

/* Section */
.section-title { font-weight: 800; font-size: 1.7rem; }
.section-sub { color: var(--muted); }
.divider { width: 70px; height: 4px; background: var(--primary); border-radius: 10px; margin: 12px auto; }
.service-card {
  border: none; border-radius: 18px; box-shadow: var(--card-shadow); height: 100%;
  transition: .25s; background: #fff;
}
.service-card:hover { transform: translateY(-6px); }
.service-icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff; margin-bottom: 1rem;
}

/* Gallery */
.filter-btn {
  border: 1px solid #e2e8f0; background: #fff; border-radius: 50px; padding: .4rem 1.2rem; font-size: .9rem; font-weight: 500;
}
.filter-btn.active, .filter-btn:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
.work-card {
  border: none; border-radius: 20px; overflow: hidden; box-shadow: var(--card-shadow);
  transition: .3s; cursor: pointer; background: #fff; height: 100%;
}
.work-card:hover { transform: translateY(-8px); box-shadow: 0 20px 45px rgba(0,0,0,.13); }
.work-img-wrap { position: relative; overflow: hidden; height: 240px; }
.work-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.work-card:hover .work-img-wrap img { transform: scale(1.08); }
.work-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 60%);
  opacity: 0; transition: .3s; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1rem;
}
.work-card:hover .work-overlay { opacity: 1; }
.work-cat {
  position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.95);
  font-size: .75rem; padding: .25rem .8rem; border-radius: 50px; font-weight: 700; color: var(--dark);
}
.work-body { padding: 1.2rem 1.3rem 1.4rem; }
.work-title { font-weight: 700; font-size: 1.05rem; margin-bottom: .4rem; }
.work-desc { color: var(--muted); font-size: .9rem; line-height: 1.9; min-height: 52px; }
.work-link { color: var(--primary); font-weight: 700; font-size: .9rem; text-decoration: none; }
.work-link:hover { color: var(--primary-dark); }

/* About */
.about-img { border-radius: 24px; width: 100%; height: 420px; object-fit: cover; box-shadow: var(--card-shadow); }
.check-item { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .7rem; }
.check-item i { color: #16a34a; font-size: 1.2rem; }

/* Footer */
footer { background: var(--dark); color: #cbd5e1; margin-top: 80px; }
footer h5 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-link { color: #cbd5e1; text-decoration: none; display: block; margin-bottom: .5rem; font-size: .92rem; }
.footer-link:hover { color: #ffb703; }
.footer-contact { display: flex; gap: .7rem; align-items: center; margin-bottom: .7rem; font-size: .92rem; }
.footer-contact i { width: 36px; height: 36px; background: rgba(255,255,255,.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #ffb703; flex-shrink: 0; }
.map-wrap { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.map-wrap iframe { width: 100%; height: 220px; border: 0; display: block; filter: grayscale(.2); }
.social-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #fff; font-size: 1.2rem; margin-left: .5rem; text-decoration: none; }
.social-btn:hover { background: var(--primary); color: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); }

/* Post page */
.post-hero { margin-top: 72px; background: var(--bg-soft); padding: 40px 0; }
.post-main-img { border-radius: 22px; width: 100%; height: 460px; object-fit: cover; box-shadow: var(--card-shadow); }
.spec-table td { padding: .8rem; }
.carousel-img { height: 460px; object-fit: cover; border-radius: 22px; }
.thumb-img { height: 90px; object-fit: cover; border-radius: 12px; cursor: pointer; border: 3px solid transparent; width: 100%; }
.thumb-img.active { border-color: var(--primary); }

#backToTop {
  position: fixed; bottom: 20px; left: 20px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--dark); color: #fff; border: none; display: none; z-index: 1000; font-size: 1.3rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
}
#backToTop:hover { background: var(--primary); }

@media (max-width: 768px) {
  .hero { padding: 70px 0 60px; }
  .hero h1 { font-size: 1.6rem; }
  .post-main-img, .carousel-img { height: 280px; }
  .about-img { height: 280px; }
}
