/* =========================================================
   GARLIC DRIED – PAGE SPECIFIC STYLES
   Scoped CSS (No Conflict With Other Pages)
========================================================= */

/* ===== GENERAL PAGE SPACING ===== */
.garlic-dried-page {
  background: var(--cream);
  padding-top: 0 !important;
}

/* اسکرول نرم کل صفحه */
html {
  scroll-behavior: smooth;
}

/* فاصله زیر هدر ثابت */
.hero-garlic {
  margin-top: 0 !important;
}


/* =========================================================
   HERO SECTION
========================================================= */

.garlic-dried-page .hero-golden {
  position: relative;
  width: 100%;
  height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--light);
  background: url("../images/garlic/garlic-dried-hero.jpg") center/cover no-repeat;
  overflow: hidden;
}

.garlic-dried-page .hero-golden::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 28, 46, 0.55),
    rgba(13, 28, 46, 0.35)
  );
  z-index: 0;
}

.garlic-dried-page .hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 6vw;
}

.garlic-dried-page .hero-golden h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
  text-shadow: 0 0 8px rgba(0,0,0,0.35);
}

.garlic-dried-page .hero-golden p.sub {
  color: #f8f5ef;
  font-size: 18px;
  opacity: 0.95;
}


/* =========================================================
   FEATURE SECTION (TEXT + IMAGE)
========================================================= */

.garlic-dried-page .feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 10%;
  background: transparent;
}

.garlic-dried-page .feature-text {
  flex: 1;
  min-width: 300px;
}

.garlic-dried-page .feature-text h2 {
  color: var(--gold);
  font-size: 32px;
  margin-bottom: 15px;
}

.garlic-dried-page .feature-text p,
.garlic-dried-page .feature-text li {
  font-size: 18px;
  line-height: 1.8;
}

/* ===== FEATURE IMAGE CONTAINER ===== */
.garlic-dried-page .feature-image {
  flex: 1;
  height: 420px;
  overflow: hidden;
  position: relative;
}

/* ===== DESKTOP IMAGE SIZING – همون که خودت خواستی ===== */

/* عکس سکشن اول بعد از Hero بزرگ‌تر */
.garlic-dried-page .feature:first-of-type .feature-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
}

/* عکس سکشن دوم کوچک‌تر و کنار متن در دسکتاپ */
.garlic-dried-page .feature:nth-of-type(2) .feature-image img {
  width: 75%;
  max-width: 340px;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 14px;
}


/* =========================================================
   CENTER TEXT FEATURE (NO IMAGE)
========================================================= */

.garlic-dried-page .feature.center-text {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 80px 10%;
  background: transparent;
}

.garlic-dried-page .feature.center-text .feature-text {
  max-width: 800px;
}


/* =========================================================
   PACKAGING SECTION (PARALLAX)
========================================================= */

.garlic-dried-page #packaging {
  position: relative;
  background-image: url("../images/garlic/back-garlic.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* 🔥 پارالاکس فعال */
  padding: 120px 20%;
  color: #fff;
  text-align: center;
}

.garlic-dried-page #packaging::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 20, 30, 0.55);
  z-index: 0;
}

.garlic-dried-page #packaging .feature-text {
  position: relative;
  z-index: 2;
}

.garlic-dried-page #packaging h2 {
  font-size: 36px;
  margin-bottom: 20px;
}


/* =========================================================
   GALLERY SECTION
========================================================= */

/* Desktop – سه ستون ثابت مثل Flakes */
.garlic-dried-page .gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  padding: 0 8%;
}

.garlic-dried-page .gallery img,
.garlic-dried-page .gallery video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


/* =========================================================
   TRUST SECTION
========================================================= */

.garlic-dried-page .section.center {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 6%;
  text-align: center;
}

.garlic-dried-page .section.center h2 {
  color: var(--gold);
  font-size: 32px;
  margin-bottom: 15px;
}

.garlic-dried-page .section.center p {
  font-size: 18px;
  line-height: 1.9;
  color: #ffffff;
}


/* =========================================================
   SPECIAL IMAGE CLASSES
========================================================= */

.raw-img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  box-shadow: none !important;
}

/* فقط عکس Product Range را کوچک کن */
.small-range-img {
  width: 60% !important;
  height: auto !important;
  transform: scale(1.0);
  transform-origin: center;
  max-height: 100% !important;
}

.small-app-img {
  transform: scale(0.50);
  transform-origin: center;
}


/* =========================================================
   MOBILE – LIKE GARLIC FLAKES
========================================================= */

/* موبایل: چینش سکشن‌های دو ستونه مثل Flakes */
@media (max-width: 900px) {
  .garlic-dried-page .feature {
    flex-direction: column;
    text-align: center;
    padding: 50px 5%;
  }

}

/* موبایل: گالری – تک ستون مثل Flakes */
@media (max-width: 768px) {
  .garlic-dried-page .gallery {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 5%;
  }

  .garlic-dried-page .gallery img,
  .garlic-dried-page .gallery video {
    height: 220px; /* مثل Garlic Flakes */
  }
}

/* ⚠️ دیگه background-attachment رو در موبایل تغییر نمی‌دیم،
   تا پارالاکس هرجا مرورگر اجازه بده فعال بمونه */
@media (max-width: 768px) {
  .garlic-dried-page #packaging {
    padding: 80px 5%;
  }
}

/* موبایل: هرو کوتاه‌تر مثل Flakes */
@media (max-width: 768px) {
  .garlic-dried-page .hero-golden {
    height: 50vh;
  }
}

/* اگر PNGهای خاص خواستی کمی کنترل شوند */
@media (max-width: 768px) {
  .raw-img,
  .small-range-img,
  .small-app-img {
    width: 100% !important;
    max-width: 380px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    border-radius: 18px !important;
  }
}
/* =========================================================
   OVERRIDE FOR SECOND PNG ONLY (garlic-2.png)
   MOBILE FIX
========================================================= */
@media (max-width: 900px) {

  /* سکشن دوم در موبایل حالت دو ستونه نگه دارد */
  .garlic-dried-page .feature.image-left {
    flex-direction: row !important;     /* برگردد به حالت افقی */
    align-items: center !important;
    justify-content: space-between !important;
    text-align: left !important;
    gap: 20px !important;
  }

  /* متن از وسط خارج شود */
  .garlic-dried-page .feature.image-left .feature-text {
    text-align: left !important;
  }

  /* PNG دوم — بزرگ‌تر و چسبیده کنار متن */
  .garlic-dried-page .feature.image-left .feature-image img {
    width: 85% !important;
    max-width: 380px !important;
    margin: 20px !important;
    display: block !important;
    margin-top: 100px !important; 
  }
}
