/*!
 * ==============================================================
 * ELAHE EKBATANI® Enterprise Platform
 * Module    : Sourcing
 * File      : sourcing.css
 * Author    : Elahe Ekbatani
 * Copyright : © 2026 Elahe Ekbatani. All Rights Reserved.
 * ==============================================================
 */

.eze-gold-sourcing,
.eze-gold-sourcing * {
  box-sizing: border-box;
}

.eze-gold-sourcing {
  --eze-ivory: #fffaf3;
  --eze-cream: #f4e8d9;
  --eze-cream-dark: #ead8c3;
  --eze-gold: #c78b4e;
  --eze-gold-light: #f0cf96;
  --eze-copper: #a65e38;
  --eze-brown: #6f4831;
  --eze-brown-dark: #3c2b22;
  --eze-text: #3c3027;
  --eze-muted: #756355;

  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  direction: ltr;
  padding: clamp(28px, 3.5vw, 48px) 16px;
  color: var(--eze-text);
  background:
    radial-gradient(circle at 7% 20%, rgba(199, 139, 78, 0.1), transparent 28%),
    radial-gradient(circle at 92% 80%, rgba(166, 94, 56, 0.08), transparent 30%),
    linear-gradient(135deg, #fffaf4 0%, #f6ecdf 48%, #ead9c6 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* بافت پس‌زمینه */
.eze-gold-sourcing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(111, 72, 49, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 72, 49, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 85%);
}

/* خطوط طلایی تزئینی */
.eze-gold-sourcing::after {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.2;
  background: linear-gradient(
    118deg,
    transparent 0 15%,
    rgba(207, 151, 86, 0.35) 15.1%,
    transparent 15.35% 49%,
    rgba(151, 87, 52, 0.2) 49.1%,
    transparent 49.35% 78%,
    rgba(232, 188, 120, 0.25) 78.1%,
    transparent 78.35%
  );
  animation: ezeGoldVeins 14s ease-in-out infinite alternate;
}

.eze-gold-sourcing__container {
  position: relative;
  z-index: 2;
  width: min(100%, 1200px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.8fr);
  gap: clamp(20px, 2.5vw, 36px);
  align-items: center;
}

/* =========================================================
   INTRO
========================================================= */

.eze-gold-sourcing__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: ezeIntroIn 0.6s ease both;
}

.eze-gold-sourcing__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 8px;
  color: var(--eze-copper);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eze-gold-sourcing__eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--eze-gold));
}

.eze-gold-sourcing__title {
  margin: 0;
  color: var(--eze-brown-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 2.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.eze-gold-sourcing__title span {
  color: transparent;
  background: linear-gradient(105deg, #71442b 0%, #b2673a 28%, #d99c5a 48%, #8b5032 72%, #bd7b45 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: ezeGoldTextFlow 7s linear infinite;
}

.eze-gold-sourcing__description {
  margin: 10px 0 0;
  color: var(--eze-muted);
  font-size: clamp(0.82rem, 0.9vw, 0.92rem);
  line-height: 1.55;
}

.eze-gold-sourcing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.eze-gold-sourcing__button {
  position: relative;
  min-height: 38px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.eze-gold-sourcing__button:hover {
  transform: translateY(-2px);
}

.eze-gold-sourcing__button--primary {
  color: #fffaf1 !important;
  background: linear-gradient(135deg, #493126 0%, #865235 42%, #b36c3e 72%, #d19758 100%);
  border: 1px solid rgba(255, 227, 184, 0.35);
  box-shadow: 0 4px 14px rgba(91, 52, 31, 0.15);
}

.eze-gold-sourcing__button--secondary {
  color: var(--eze-brown) !important;
  background: rgba(255, 250, 242, 0.75);
  border: 1px solid rgba(166, 94, 56, 0.25);
}

/* =========================================================
   CARDS GRID
========================================================= */

.eze-gold-sourcing__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 14px);
}

.eze-gold-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 252, 247, 0.96), rgba(242, 229, 212, 0.96));
  border: 1px solid rgba(157, 101, 62, 0.16);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(83, 55, 38, 0.07);
  animation: ezeCardIn 0.5s ease both;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.eze-gold-card:nth-child(1) { animation-delay: 0.05s; }
.eze-gold-card:nth-child(2) { animation-delay: 0.10s; }
.eze-gold-card:nth-child(3) { animation-delay: 0.15s; }
.eze-gold-card:nth-child(4) { animation-delay: 0.20s; }

.eze-gold-card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 139, 78, 0.4);
  box-shadow: 0 16px 32px rgba(84, 53, 34, 0.12);
}

/* کارت تصویری */
.eze-gold-card__visual {
  position: relative;
  height: 115px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.9), transparent 45%),
    linear-gradient(145deg, #f5eadc, #dfc6aa);
  border-bottom: 1px solid rgba(133, 83, 50, 0.1);
}

.eze-gold-card:nth-child(2) .eze-gold-card__visual {
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.9), transparent 45%), linear-gradient(145deg, #f1e4d4, #d8b895);
}

.eze-gold-card:nth-child(3) .eze-gold-card__visual {
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.85), transparent 45%), linear-gradient(145deg, #ead8c1, #c99a69);
}

.eze-gold-card:nth-child(4) .eze-gold-card__visual {
  background: radial-gradient(circle at 50% 38%, rgba(255,255,255,0.75), transparent 45%), linear-gradient(145deg, #d4b28e, #8a5a3d);
}

.eze-gold-card__illustration {
  position: relative;
  z-index: 2;
  width: 65%;
  height: 65%;
  color: #6d4b35;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 6px rgba(76, 48, 31, 0.1));
  transition: transform 0.3s ease;
}

.eze-gold-card:nth-child(4) .eze-gold-card__illustration {
  color: #fff2dc;
}

.eze-gold-card:hover .eze-gold-card__illustration {
  transform: translateY(-3px) scale(1.03);
}

/* متن کارت */
.eze-gold-card__content {
  flex: 1;
  padding: 12px 14px 14px;
}

.eze-gold-card__number {
  display: block;
  margin-bottom: 3px;
  color: var(--eze-copper);
  opacity: 0.7;
  font-family: Georgia, serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.eze-gold-card__title {
  margin: 0;
  color: var(--eze-brown-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.98rem, 1.1vw, 1.15rem);
  font-weight: 650;
  line-height: 1.2;
}

.eze-gold-card__description {
  margin: 6px 0 0;
  color: var(--eze-muted);
  font-size: clamp(0.75rem, 0.8vw, 0.82rem);
  line-height: 1.45;
}

.eze-gold-card__link {
  position: absolute;
  inset: 0;
  z-index: 8;
  border-radius: inherit;
}

.eze-gold-card__link:focus-visible {
  outline: 2px solid var(--eze-gold);
  outline-offset: -3px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 860px) {
  .eze-gold-sourcing__container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .eze-gold-sourcing__intro {
    text-align: center;
    align-items: center;
  }
  .eze-gold-sourcing__actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .eze-gold-sourcing {
    padding: 24px 12px;
  }
  .eze-gold-sourcing__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .eze-gold-card__visual {
    height: 100px;
  }
}

/* کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
  .eze-gold-sourcing *,
  .eze-gold-sourcing *::before,
  .eze-gold-sourcing *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ANIMATIONS */
@keyframes ezeIntroIn {
  from { opacity: 0; transform: translateX(-15px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes ezeCardIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ezeGoldTextFlow {
  to { background-position: 220% 50%; }
}

@keyframes ezeGoldVeins {
  from { transform: rotate(-3deg) translate3d(-1%, -1%, 0); }
  to { transform: rotate(-1deg) translate3d(1%, 1%, 0); }
}