/* ============================================================
   MON TEX GRASS — Home Page Styles
   نسخه کامل: تمام سکشن‌های صفحه اصلی
   ============================================================ */

/* ============================================================
   ۱) HERO — با تصویر پس‌زمینه
   ============================================================ */
.hero {
  position: relative;
  padding: 100px 0 90px;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f3d21;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 40, 20, .92) 0%,
    rgba(10, 40, 20, .75) 45%,
    rgba(10, 40, 20, .45) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content { max-width: 720px; }

.hero-title {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

.hero-title .highlight {
  background: linear-gradient(135deg, #a8e6a5, #4caf50);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.9;
  margin-bottom: 28px;
  color: #d8f0e0;
  max-width: 620px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-secondary {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .4);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, .24);
  transform: translateY(-2px);
}

.hero-features {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #d8f0e0;
}
.hero-feature svg {
  color: #a8e6a5;
  flex-shrink: 0;
}

/* ============================================================
   ۲) سکشن‌ها — عمومی
   ============================================================ */
.section { padding: 64px 0; }

.section-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-inline: auto;
}

.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 12px;
  line-height: 1.4;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-hover));
  border-radius: 3px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
}

/* ============================================================
   ۳) محصولات — گرید و کارت
   ============================================================ */
.products { background: var(--bg); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}

.product-card {
  background: var(--white);
  border: 1px solid #e3ede6;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .28s;
  box-shadow: 0 2px 10px rgba(18, 82, 40, .05);
  min-width: 0;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-border);
}

.product-image-link { display: block; }

.product-image {
  position: relative;
  height: 170px;
  overflow: hidden;
  background-color: #2e8b57;
  background-image:
    repeating-linear-gradient(78deg, rgba(255, 255, 255, .09) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(-78deg, rgba(0, 0, 0, .10) 0 2px, transparent 2px 8px),
    linear-gradient(170deg, var(--c1, #4caf50), var(--c2, #1b5e20));
}
.product-image.t-decor { --c1: #4caf50; --c2: #1b5e20; }
.product-image.t-sport { --c1: #43a047; --c2: #0f3d21; }
.product-image.t-pet   { --c1: #66bb6a; --c2: #2e7d32; }
.product-image.t-roof  { --c1: #26a69a; --c2: #00695c; }
.product-image.t-acc   { --c1: #a1887f; --c2: #4e342e; }

.product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.product-image img.loaded { display: block; }

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, .94);
  color: #14532d;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 2;
}

.product-content {
  padding: 14px 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.product-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.6;
  display: block;
  overflow-wrap: anywhere;
}
.product-title:hover { color: var(--green); }

.product-features {
  display: grid;
  gap: 5px;
  font-size: 12.5px;
  color: var(--muted);
}
.product-features li {
  display: flex;
  gap: 6px;
  padding-bottom: 4px;
  border-bottom: 1px dashed #eef4f0;
  overflow-wrap: anywhere;
}
.product-features li span { color: var(--muted); }

.price-box {
  background: var(--green-light);
  border: 1px dashed var(--green-border);
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 12.5px;
}
.price-box .p-title {
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 4px;
  font-size: 12px;
}
.price-box .p-range b {
  color: #b45309;
  font-weight: 800;
}

.btn-outline {
  display: block;
  text-align: center;
  background: var(--white);
  border: 1.5px solid var(--green);
  color: var(--green);
  padding: 10px 16px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 13px;
  margin-top: auto;
  transition: .2s;
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.featured-cta { text-align: center; margin-top: 36px; }

.btn-more {
  display: inline-block;
  background: var(--white);
  border: 1.5px solid var(--green);
  color: var(--green);
  padding: 13px 34px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  transition: .2s;
}
.btn-more:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30, 122, 60, .25);
}

/* ============================================================
   ۴) چرا مونتکس
   ============================================================ */
.why-us { background: var(--white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}

.feature-card {
  background: linear-gradient(160deg, #f8fcf9, #eaf7ee);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: .28s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}

.feature-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--green), var(--green-hover));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 122, 60, .25);
}

.feature-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.feature-text {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.85;
}

/* ============================================================
   ۵) خدمات
   ============================================================ */
.services { background: var(--bg); }

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}

.service-item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid #e3ede6;
  border-radius: var(--radius);
  padding: 22px;
  transition: .28s;
}
.service-item:hover {
  border-color: var(--green-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-light), #d4efdc);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  font-family: monospace;
}

.service-content { min-width: 0; }

.service-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.service-text {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.85;
}

/* ============================================================
   ۶) CTA
   ============================================================ */
.cta { background: linear-gradient(135deg, #eaf7ee, #d4efdc); }

.cta-box {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 22px;
  padding: 48px 32px;
  text-align: center;
  color: #fff;
  box-shadow: 0 16px 40px rgba(18, 82, 40, .22);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(78deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(-78deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 10px);
  pointer-events: none;
}
.cta-box > * { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.5;
}

.cta-text {
  font-size: 15px;
  margin-bottom: 26px;
  color: #d8f0e0;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-outline.btn-lg {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .55);
  margin-top: 0;
}
.btn-outline.btn-lg:hover {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   ۷) FAQ
   ============================================================ */
.faq { background: var(--white); }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid #e3ede6;
  border-radius: 12px;
  overflow: hidden;
  transition: .25s;
}
.faq-item:hover { border-color: var(--green-border); }

.faq-question {
  width: 100%;
  background: none;
  border: 0;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
  text-align: right;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: .2s;
}
.faq-question:hover { background: var(--green-light); }
.faq-question svg {
  flex-shrink: 0;
  transition: transform .3s;
  color: var(--green);
}
.faq-item.active .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 20px;
}
.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 20px 18px;
}
.faq-answer p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

/* ============================================================
   ۸) تماس با ما
   ============================================================ */
.contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.contact-info { display: grid; gap: 12px; }

.contact-card {
  display: flex;
  gap: 14px;
  background: var(--white);
  border: 1px solid #e3ede6;
  border-radius: var(--radius);
  padding: 18px;
  transition: .25s;
}
.contact-card:hover {
  border-color: var(--green-border);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--green);
  display: grid;
  place-items: center;
}

.contact-details h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-details a,
.contact-details p {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
  overflow-wrap: anywhere;
}
.contact-details a:hover { color: var(--green); }

.contact-form-wrapper {
  background: var(--white);
  border: 1px solid #e3ede6;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.contact-form { display: grid; gap: 14px; }

.form-group { display: grid; gap: 6px; }

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #dbe8df;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fbfdfb;
  color: var(--text);
  outline: none;
  transition: .2s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30, 122, 60, .08);
}

.btn-block {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  margin-top: 4px;
}

/* ============================================================
   ۹) ریسپانسیو
   ============================================================ */

/* موبایل بزرگ — ۲ ستونه محصولات */
@media (min-width: 380px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* تبلت */
@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
  }
}

/* دسکتاپ */
@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0 50px;
    min-height: auto;
  }
  .hero-features { gap: 14px; }
  .hero-feature { font-size: 12.5px; }

  .section { padding: 44px 0; }
  .section-header { margin-bottom: 28px; }

  .features-grid { gap: 12px; }
  .feature-card { padding: 20px 16px; }
  .feature-icon { width: 60px; height: 60px; margin-bottom: 14px; }

  .service-item { padding: 18px; gap: 12px; }
  .service-number { width: 44px; height: 44px; font-size: 15px; }

  .cta-box { padding: 34px 20px; border-radius: 18px; }

  .faq-question { padding: 14px 16px; font-size: 14px; }
  .faq-answer { padding: 0 16px; }
  .faq-item.active .faq-answer { padding: 0 16px 14px; }

  .contact-form-wrapper { padding: 20px; }
}

@media (max-width: 480px) {
  .hero { padding: 44px 0 40px; }
  .hero-title { margin-bottom: 14px; }
  .hero-subtitle { margin-bottom: 22px; }
  .hero-buttons { gap: 8px; margin-bottom: 24px; }
  .hero-buttons .btn { padding: 10px 16px; font-size: 13px; }

  .product-image { height: 130px; }
  .product-content { padding: 10px; gap: 8px; }
  .product-title { font-size: 12.5px; }
  .product-features { font-size: 11px; }
  .price-box { padding: 8px 9px; font-size: 11px; }
  .price-box .p-title { font-size: 10.5px; }
  .btn-outline { font-size: 11.5px; padding: 8px 12px; }

  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; }
}

@media (max-width: 379px) {
  .products-grid { grid-template-columns: 1fr; gap: 10px; }
  .product-image { height: 170px; }
  .product-title { font-size: 13.5px; }
}
/* ============================================================
   ۱۰) دسته‌بندی محصولات (Categories)
   ============================================================ */
.categories {
    background: linear-gradient(160deg, #f8fcf9, #eaf7ee);
    position: relative;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    display: block;
    height: 260px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(18, 82, 40, .10);
    transition: transform .3s ease, box-shadow .3s ease;
    text-decoration: none;
    color: #fff;
    isolation: isolate;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(18, 82, 40, .22);
}

/* پس‌زمینه تصویری هر دسته */
.category-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform .5s ease;
    z-index: 0;
}

.category-card:hover .category-bg {
    transform: scale(1.08);
}

/* رنگ‌بندی متفاوت هر دسته */
.cat-sport .category-bg {
    background-image: url('../images/categories/sport.jpg');
}

.cat-decor .category-bg {
    background-image: url('../images/categories/decor.jpg');
}

.cat-balcony .category-bg {
    background-image: url('../images/categories/balcony.jpg');
}

.cat-wall .category-bg {
    background-image: url('../images/categories/wall.jpg');
}

.cat-pet .category-bg {
    background-image: url('../images/categories/pet.jpg');
}

.cat-install .category-bg {
    background-image: url('../images/categories/install.jpg');
}

/* اگر تصویر نبود، گرادیان جایگزین شود */
.cat-sport {
    background: linear-gradient(135deg, #43a047, #0f3d21);
}

.cat-decor {
    background: linear-gradient(135deg, #4caf50, #1b5e20);
}

.cat-balcony {
    background: linear-gradient(135deg, #66bb6a, #2e7d32);
}

.cat-wall {
    background: linear-gradient(135deg, #26a69a, #00695c);
}

.cat-pet {
    background: linear-gradient(135deg, #81c784, #388e3c);
}

.cat-install {
    background: linear-gradient(135deg, #f5a623, #b45309);
}

/* لایه تیره روی تصویر */
.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 40, 20, .25) 0%,
            rgba(10, 40, 20, .65) 55%,
            rgba(10, 40, 20, .90) 100%);
    z-index: 1;
    transition: background .3s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(180deg,
            rgba(10, 40, 20, .15) 0%,
            rgba(10, 40, 20, .55) 55%,
            rgba(10, 40, 20, .85) 100%);
}

/* محتوای کارت */
.category-content {
    position: relative;
    z-index: 2;
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
}

/* آیکون دسته */
.category-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .3);
    display: grid;
    place-items: center;
    color: #fff;
    transition: transform .3s ease, background .3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.08) rotate(-6deg);
    background: rgba(255, 255, 255, .28);
}

.category-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    overflow-wrap: anywhere;
}

.category-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
    line-height: 1.6;
    margin-bottom: 8px;
}

.category-count {
    display: inline-block;
    align-self: flex-start;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .25);
}

.category-arrow {
    position: absolute;
    bottom: 22px;
    left: 22px;
    font-size: 13px;
    font-weight: 700;
    color: #a8e6a5;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity .3s ease, transform .3s ease;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   ریسپانسیو دسته‌بندی‌ها
   ============================================================ */
@media (max-width: 980px) {
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .category-card {
        height: 230px;
    }
}

@media (max-width: 640px) {
    .category-card {
        height: 210px;
    }

    .category-icon {
        width: 48px;
        height: 48px;
        top: 16px;
        right: 16px;
    }

    .category-icon svg {
        width: 28px;
        height: 28px;
    }

    .category-content {
        padding: 18px;
    }

    .category-title {
        font-size: 15px;
    }

    .category-desc {
        font-size: 12px;
    }

    .category-arrow {
        bottom: 18px;
        left: 18px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        gap: 12px;
    }

    .category-card {
        height: 190px;
        border-radius: 14px;
    }

    .category-icon {
        width: 42px;
        height: 42px;
        top: 14px;
        right: 14px;
        border-radius: 11px;
    }

    .category-icon svg {
        width: 24px;
        height: 24px;
    }

    .category-content {
        padding: 14px;
        gap: 4px;
    }

    .category-title {
        font-size: 13.5px;
    }

    .category-desc {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .category-count {
        font-size: 10.5px;
        padding: 3px 9px;
    }

    .category-arrow {
        display: none;
    }
}

@media (max-width: 379px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 180px;
    }
}
/* ============================================================
   سکشن نمونه کارهای شاخص (صفحه اصلی)
   ============================================================ */
.featured-projects {
    background: var(--white);
    position: relative;
}

/* خط تزئینی بالای سکشن */
.featured-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--green-border) 20%,
            var(--green-border) 80%,
            transparent 100%);
}

.featured-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin-bottom: 36px;
}

.featured-gallery-item {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 2px 10px rgba(18, 82, 40, .08);
    transition: transform .3s ease, box-shadow .3s ease;
    background: #eaf7ee;
}

.featured-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(18, 82, 40, .20);
}

.featured-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.featured-gallery-item:hover img {
    transform: scale(1.08);
}

/* لایه روی تصویر */
.featured-gallery-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg,
            rgba(10, 40, 20, 0) 0%,
            rgba(10, 40, 20, .25) 60%,
            rgba(10, 40, 20, .65) 100%);
    opacity: 0;
    transition: opacity .3s ease;
}

.featured-gallery-item:hover .featured-gallery-overlay {
    opacity: 1;
}

.featured-gallery-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--green-dark);
    display: grid;
    place-items: center;
    transform: scale(0.7);
    transition: transform .3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

.featured-gallery-item:hover .featured-gallery-icon {
    transform: scale(1);
}

/* دکمه مشاهده همه */
.featured-projects-cta {
    text-align: center;
}

/* ============================================================
   ریسپانسیو
   ============================================================ */

/* تبلت — ۴ ستون */
@media (min-width: 640px) and (max-width: 1023px) {
    .featured-gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }
}

/* موبایل بزرگ — ۲ ستون */
@media (max-width: 639px) {
    .featured-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 26px;
    }

    .featured-gallery-icon {
        width: 42px;
        height: 42px;
    }

    .featured-gallery-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* موبایل خیلی کوچک */
@media (max-width: 379px) {
    .featured-gallery-grid {
        gap: 8px;
    }
}

/* ============================================================
   سکشن دسته‌بندی محصولات
   ============================================================ */
.categories {
    background: linear-gradient(160deg, #f8fcf9, #eaf7ee);
    position: relative;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    display: block;
    height: 260px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(18, 82, 40, .10);
    transition: transform .3s ease, box-shadow .3s ease;
    text-decoration: none;
    color: #fff;
    isolation: isolate;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(18, 82, 40, .22);
}

/* لایه تصویر پس‌زمینه */
.category-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform .5s ease;
}

.category-card:hover .category-bg {
    transform: scale(1.08);
}

/* تصاویر اختصاصی هر دسته */
.cat-sport .category-bg {
    background-image: url('../images/categories/sport.jpg');
}

.cat-decor .category-bg {
    background-image: url('../images/categories/decor.jpg');
}

.cat-balcony .category-bg {
    background-image: url('../images/categories/balcony.jpg');
}

.cat-wall .category-bg {
    background-image: url('../images/categories/wall.jpg');
}

.cat-pet .category-bg {
    background-image: url('../images/categories/pet.jpg');
}

.cat-install .category-bg {
    background-image: url('../images/categories/install.jpg');
}

/* لایه تیره روی تصویر */
.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 40, 20, .25) 0%,
            rgba(10, 40, 20, .65) 55%,
            rgba(10, 40, 20, .90) 100%);
    z-index: 1;
    transition: background .3s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(180deg,
            rgba(10, 40, 20, .15) 0%,
            rgba(10, 40, 20, .55) 55%,
            rgba(10, 40, 20, .85) 100%);
}

/* محتوای کارت */
.category-content {
    position: relative;
    z-index: 2;
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
}

.category-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .3);
    display: grid;
    place-items: center;
    color: #fff;
    transition: transform .3s ease, background .3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.08) rotate(-6deg);
    background: rgba(255, 255, 255, .28);
}

.category-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    overflow-wrap: anywhere;
}

.category-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
    line-height: 1.6;
    margin-bottom: 8px;
}

.category-count {
    display: inline-block;
    align-self: flex-start;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .25);
}

.category-arrow {
    position: absolute;
    bottom: 22px;
    left: 22px;
    font-size: 13px;
    font-weight: 700;
    color: #a8e6a5;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity .3s ease, transform .3s ease;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ریسپانسیو */
@media (max-width: 980px) {
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .category-card {
        height: 230px;
    }
}

@media (max-width: 640px) {
    .category-card {
        height: 210px;
    }

    .category-icon {
        width: 48px;
        height: 48px;
        top: 16px;
        right: 16px;
    }

    .category-icon svg {
        width: 28px;
        height: 28px;
    }

    .category-content {
        padding: 18px;
    }

    .category-title {
        font-size: 15px;
    }

    .category-desc {
        font-size: 12px;
    }

    .category-arrow {
        bottom: 18px;
        left: 18px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        gap: 12px;
    }

    .category-card {
        height: 190px;
        border-radius: 14px;
    }

    .category-icon {
        width: 42px;
        height: 42px;
        top: 14px;
        right: 14px;
        border-radius: 11px;
    }

    .category-icon svg {
        width: 24px;
        height: 24px;
    }

    .category-content {
        padding: 14px;
        gap: 4px;
    }

    .category-title {
        font-size: 13.5px;
    }

    .category-desc {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .category-count {
        font-size: 10.5px;
        padding: 3px 9px;
    }

    .category-arrow {
        display: none;
    }
}

@media (max-width: 379px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 180px;
    }
}