/* Home page closing section «من ذوق بيتك… لاحتياجات تجارتك».
   Brand tokens only: wheat ground, yellow blob, paper-rimmed product stickers, green + red hand-lettered tags. */

.home-close { position: relative; overflow: hidden; background: #f4e4bf; color: var(--ink); }
.hc-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center; gap: clamp(32px, 5vw, 80px);
}

/* Copy */
.hc-title { margin: 0 0 20px; font-family: var(--font-display); font-weight: 700; line-height: 1.25; color: var(--deep); font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
.hc-line { display: block; }
.hc-mark { position: relative; display: inline-block; color: var(--green); padding-bottom: .12em; }
.hc-swash { position: absolute; inset-inline: 2%; bottom: -.1em; width: 96%; height: .32em; color: var(--yellow); z-index: -1; }
.hc-mark { isolation: isolate; }
.hc-lead { max-width: 34em; margin: 0 0 28px; font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.8; color: var(--ink); }
.home-close .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Collage */
.hc-art { position: relative; aspect-ratio: 6 / 5; max-width: 600px; width: 100%; justify-self: center; }
.hc-blob {
  position: absolute; inset: 8% 6% 6% 8%; background: var(--yellow);
  border-radius: 58% 42% 47% 53% / 49% 56% 44% 51%;
  animation: hc-morph 14s ease-in-out infinite alternate;
}
.hc-sticker {
  position: absolute; overflow: hidden; border-radius: 50%;
  background: var(--paper); box-shadow: 0 0 0 7px var(--paper), 0 14px 28px -18px rgba(80, 56, 42, .55);
  transform: rotate(var(--r, 0deg)); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
  animation: hc-bob 6s ease-in-out infinite alternate;
}
.hc-sticker img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.hc-art:hover .hc-sticker { animation-play-state: paused; }
.hc-sticker:hover { transform: rotate(0deg) scale(1.04); }
.hc-sticker.s1 { --r: -7deg; width: 40%; aspect-ratio: 1; top: 2%;  inset-inline-start: 6%; }
.hc-sticker.s2 { --r: 8deg;  width: 31%; aspect-ratio: 1; top: 10%; inset-inline-end: 4%; animation-delay: -2s; }
.hc-sticker.s3 { --r: 5deg;  width: 27%; aspect-ratio: 1; bottom: 4%; inset-inline-start: 14%; animation-delay: -4s; }
.hc-sticker.s4 { --r: -5deg; width: 35%; aspect-ratio: 1; bottom: 2%; inset-inline-end: 16%; animation-delay: -1s; }

.hc-tag {
  position: absolute; z-index: 2; padding: .28em .9em .38em; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.4rem); line-height: 1.2;
  color: var(--paper); white-space: nowrap;
}
.hc-tag.is-home  { background: var(--red);   transform: rotate(-6deg); top: 44%; inset-inline-start: 0; }
.hc-tag.is-trade { background: var(--green); transform: rotate(5deg);  top: 46%; inset-inline-end: 0; }

.hc-doodle { position: absolute; z-index: 1; width: 44px; height: 44px; color: var(--deep); }
.hc-doodle.hc-d1 { top: -2%; inset-inline-end: 34%; transform: rotate(18deg); }
.hc-doodle.hc-d2 { bottom: 30%; inset-inline-start: 42%; width: 40px; height: 40px; color: var(--green); }
.hc-doodle.hc-d3 { bottom: -3%; inset-inline-end: 2%; transform: rotate(-24deg); }
.hc-doodle.hc-d4 { top: 38%; inset-inline-end: 38%; width: 30px; height: 30px; color: var(--red); }

@keyframes hc-bob { to { translate: 0 -8px; } }
@keyframes hc-morph { to { border-radius: 45% 55% 58% 42% / 55% 44% 56% 45%; } }

/* Tablet: stack, collage under the copy */
@media (max-width: 900px) {
  .hc-layout { grid-template-columns: 1fr; gap: 36px; }
  .hc-art { max-width: 520px; }
}

/* Phone: tighter collage, buttons full width */
@media (max-width: 560px) {
  .hc-title { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  .home-close .actions .button { flex: 1 1 100%; justify-content: center; }
  .hc-sticker { box-shadow: 0 0 0 5px var(--paper), 0 10px 20px -14px rgba(80, 56, 42, .55); }
  .hc-doodle { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .hc-blob, .hc-sticker { animation: none; }
  .hc-sticker { transition: none; }
}
