/* ─────────────────────────────────────────────────────────────────────────────
   brands: a milky, daylight section directly under the reel. plain warm-white
   ground, soft cards, and a live band of cream waves running along the bottom.
   content: taken from costomer ref/معرفی برندها و محصولات پاکشو.
   ───────────────────────────────────────────────────────────────────────────── */

.milk{
  --milk:#f8f4ee;
  --milk-deep:#f5efe5;
  --ink:#191510;
  --ink-soft:#5f584d;
  --ink-mute:#8a8172;
  --hair:rgba(25,21,16,.10);
  position:relative;
  z-index:1;
  overflow:hidden;
  isolation:isolate;
  background:var(--milk);
  color:var(--ink);
  padding-block:clamp(3.6rem,7vh,6rem) clamp(10rem,30vh,23rem);
  font-family:'Vazirmatn',system-ui,sans-serif;
  /* the seam with the dark sections above and below is softened, never cut */
  /* no border, no inset shadow: the section must not announce its own edge */
}

.milk__inner{
  position:relative; z-index:2;
  inline-size:min(1340px,92vw);
  margin-inline:auto;
}

/* ── the head ────────────────────────────────────────────────────────────── */
/* the page paints a dark 30px text shadow on every h1/h2/p for the night
   sections; on cream it reads as a smudge, so it is cancelled here */
.milk h2,
.milk h3,
.milk p{text-shadow:none}

.milk__head{max-inline-size:62ch;margin-block-end:clamp(2.2rem,4.4vw,3.4rem)}
.milk__kicker{
  margin:0 0 14px; display:inline-flex; align-items:center; gap:.6em;
  font:500 12.5px/1 'Vazirmatn',sans-serif; letter-spacing:.02em; color:var(--ink-mute);
}
.milk__kicker::before{
  content:""; inline-size:26px; block-size:1px; border-radius:2px;
  background:linear-gradient(90deg,var(--ink-mute),rgba(138,129,114,0));
}
.milk__title{
  margin:0 0 .5em;
  font-family:'Estedad','Vazirmatn',system-ui,sans-serif;
  font-weight:900; font-size:clamp(1.7rem,3.1vw,2.85rem); line-height:1.3;
  letter-spacing:-.012em; color:var(--ink);
}
.milk__lead{
  margin:0 0 .85em; color:var(--ink-soft);
  font-size:clamp(.95rem,1.05vw,1.06rem); line-height:1.95; max-inline-size:60ch;
}
.milk__lead:last-child{margin-bottom:0}

/* ── the seven brands ────────────────────────────────────────────────────── */
.brands-grid{
  margin:0; padding:0; list-style:none;
  display:flex; flex-wrap:wrap; gap:clamp(12px,1.2vw,18px);
  justify-content:center;
}
.brand-card{flex:1 1 258px; max-inline-size:320px; display:flex}
.brand-card__link{
  position:relative; display:flex; flex-direction:column; gap:10px;
  inline-size:100%; padding:22px 22px 20px;
  text-decoration:none; color:inherit;
  background:linear-gradient(180deg,#ffffff 0%,#fdfaf5 100%);
  border:1px solid rgba(25,21,16,.08);
  border-radius:22px;
  box-shadow:0 1px 2px rgba(25,21,16,.04), 0 14px 34px -22px rgba(25,21,16,.35);
  transition:transform .44s cubic-bezier(.2,1.35,.3,1), box-shadow .44s ease,
             border-color .44s ease;
}
.brand-card__link:hover,
.brand-card__link:focus-visible{
  /* more lift, with a small overshoot so it reads as a bounce */
  transform:translateY(-14px) scale(1.02);
  border-color:rgba(255,244,226,.95);
  /* glow: a milky halo above, an even gold bloom around, and below it
     light gold handing over to light mocha */
  background:linear-gradient(180deg,#fffefb 0%,#fff9ee 100%);
  box-shadow:
    0 -18px 34px -6px rgba(255,255,255,1),
    0 -34px 66px -20px rgba(255,255,255,1),
    0 0 0 1px rgba(255,236,198,.95),
    0 0 34px -2px rgba(255,206,132,.75),
    inset 0 1px 0 rgba(255,255,255,1),
    0 16px 30px -10px rgba(248,204,118,1),     /* light gold, bright */
    0 32px 58px -16px rgba(216,168,102,.95),   /* gold */
    0 48px 92px -24px rgba(160,112,72,.85),    /* light mocha */
    0 8px 18px -6px rgba(255,244,214,1);
  outline:none;
}
.brand-card__logo{
  display:flex; align-items:center; justify-content:center;
  block-size:58px; margin-block-end:2px;
}
.brand-card__logo img{
  max-block-size:100%; max-inline-size:min(78%,220px); object-fit:contain;
  filter:saturate(.94);
  transition:transform .38s cubic-bezier(.2,.9,.25,1);
}
.brand-card__link:hover .brand-card__logo img{transform:scale(1.04)}
.brand-card__name{
  margin:0; font:700 1.06rem/1.4 'Vazirmatn',sans-serif; color:var(--ink);
}
.brand-card__tag{
  margin:0; font:600 .84rem/1.7 'Vazirmatn',sans-serif; color:#3c352c;
}
.brand-card__desc{
  margin:0; font:400 .82rem/1.85 'Vazirmatn',sans-serif; color:var(--ink-mute);
  display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden;
}
.brand-card__cta{
  margin-block-start:auto; padding-block-start:10px;
  display:inline-flex; align-items:center; gap:.4em;
  font:600 .78rem/1 'Vazirmatn',sans-serif; color:#2b251d;
}
.brand-card__cta i{
  font-style:normal; transition:transform .3s ease;
}
.brand-card__link:hover .brand-card__cta i{transform:translateX(-4px)}

/* ── categories + the shared quality line ────────────────────────────────── */
.milk__meta{
  margin-block-start:clamp(2.4rem,4vw,3.6rem);
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:clamp(20px,3vw,44px); align-items:start;
}
.milk__block h3{
  margin:0 0 14px; font:700 1.02rem/1.4 'Vazirmatn',sans-serif; color:var(--ink);
}
.milk__block h3 small{
  display:block; margin-block-start:4px;
  font:400 .8rem/1.6 'Vazirmatn',sans-serif; color:var(--ink-mute);
}
.cat-chips{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:8px}
.cat-chips li{
  padding:8px 15px; border-radius:999px;
  font:500 .82rem/1.3 'Vazirmatn',sans-serif; color:#332d25;
  background:#fffdf9; border:1px solid rgba(25,21,16,.09);
  box-shadow:0 1px 2px rgba(25,21,16,.04);
}
.milk__block p{
  margin:0; color:var(--ink-soft); font-size:.9rem; line-height:1.95; max-inline-size:52ch;
}

/* ── the living band of cream waves ──────────────────────────────────────── */
.milk__waves{
  position:absolute; inset-inline:0; inset-block-end:0; z-index:1;
  /* the band climbs to roughly the middle of the cards, and scales with the section */
  inline-size:100%; block-size:min(72%,1150px);
  display:block; pointer-events:none;
  /* long, slow dissolve at the bottom: the band is fully gone well before the
     section edge, so no boundary can be read where the timeline begins */
  -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,0) 0%,#000 14%,#000 52%,rgba(0,0,0,0) 96%);
  mask-image:linear-gradient(180deg,rgba(0,0,0,0) 0%,#000 14%,#000 52%,rgba(0,0,0,0) 96%);
}
/* no wash layer: the wave band fades itself out at the bottom */


@media (max-width:860px){
  .milk__waves{block-size:min(46%,560px)}
  .milk__meta{grid-template-columns:1fr}
  .brand-card{flex:1 1 47%; max-inline-size:none}
}
@media (max-width:560px){
  .milk{padding-block:3rem clamp(8rem,26vh,12rem)}
  .brand-card{flex:1 1 100%}
  .brand-card__desc{-webkit-line-clamp:3}
}
@media (prefers-reduced-motion:reduce){
  .brand-card__link,.brand-card__logo img,.brand-card__cta i{transition:none}
}
