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

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

.eze-gold-hero {
  --gold-main: #c7844d;
  --gold-light: #edc58c;
  --gold-pale: #fff0cc;
  --copper: #a45d38;
  --terracotta: #934b30;
  --bronze: #6c4934;
  --bronze-deep: #3e2b21;
  --cream: #fffaf4;
  --ivory: #f7ede3;
  --warm-bg: #edddcf;
  --heading: #3d2c22;
  --paragraph: #705b4b;
  --mouse-x: 0;
  --mouse-y: 0;
  --spot-x: 50%;
  --spot-y: 50%;

  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  direction: ltr;
  color: var(--heading);
  background:
    radial-gradient(circle at 82% 18%, rgba(224, 165, 98, 0.2), transparent 42%),
    radial-gradient(circle at 18% 82%, rgba(160, 87, 50, 0.11), transparent 42%),
    linear-gradient(135deg, #fffaf5 0%, #f8eee5 48%, #edddcf 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.eze-gold-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(138, 91, 57, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 91, 57, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(circle at center, black 25%, transparent 82%);
  mask-image: radial-gradient(circle at center, black 25%, transparent 82%);
}

.eze-gold-inner {
  width: min(calc(100% - 40px), 1400px);
  margin-inline: auto;
  padding-block: clamp(55px, 6vw, 90px);
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: clamp(35px, 5vw, 70px);
  align-items: center;
}

/* متن */
.eze-gold-copy {
  position: relative;
  z-index: 10;
}

.eze-gold-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 7px 13px;
  color: #8d4e2f;
  background: rgba(255, 250, 244, 0.76);
  border: 1px solid rgba(165, 95, 56, 0.23);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(93, 57, 36, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eze-gold-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-main);
  box-shadow:
    0 0 4px rgba(255, 245, 215, 1),
    0 0 11px rgba(221, 155, 84, 0.9),
    0 0 22px rgba(164, 93, 56, 0.45);
  animation: ezeGoldStatus 2s ease-in-out infinite;
}

.eze-gold-copy h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 3.1vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.eze-gold-copy h1 span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(105deg, #69422c 4%, #a85d37 23%, #d99c5d 42%, #fff0c8 55%, #d99c5d 68%, #9d5534 84%, #69422c 100%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 9px rgba(182, 111, 59, 0.22));
  animation: ezeGoldHeadline 6s linear infinite;
}

.eze-gold-description {
  max-width: 51ch;
  margin: clamp(20px, 2vw, 28px) 0 0;
  color: var(--paragraph);
  font-size: clamp(0.93rem, 1vw, 1.06rem);
  line-height: 1.75;
}

/* دکمه‌ها */
.eze-gold-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: clamp(26px, 3vw, 38px);
}

.eze-gold-btn {
  position: relative;
  min-width: 185px;
  padding: 14px 24px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  text-decoration: none !important;
  font-size: 0.94rem;
  font-weight: 750;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.eze-gold-btn:hover {
  transform: translateY(-3px);
}

.eze-gold-primary {
  color: #fffaf2 !important;
  background: linear-gradient(135deg, #493326 0%, #805338 34%, #b96f40 68%, #d69a5d 100%);
  background-size: 160% 100%;
  border: 1px solid rgba(255, 225, 176, 0.42);
  box-shadow: 0 9px 25px rgba(83, 48, 29, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.eze-gold-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: translateX(-110%);
  transition: transform 0.55s ease;
}

.eze-gold-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 13px 32px rgba(116, 67, 38, 0.28), 0 0 17px rgba(224, 167, 98, 0.28);
}

.eze-gold-primary:hover::after {
  transform: translateX(110%);
}

.eze-gold-secondary {
  color: #593b2a !important;
  background: rgba(255, 249, 241, 0.76);
  border: 1px solid rgba(161, 96, 57, 0.26);
  box-shadow: 0 8px 22px rgba(76, 48, 32, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.eze-gold-secondary:hover {
  color: #8e4c2d !important;
  background: rgba(255, 253, 248, 0.97);
  border-color: rgba(174, 105, 63, 0.48);
  box-shadow: 0 11px 27px rgba(130, 77, 44, 0.14);
}

/* دسته‌بندی‌ها */
.eze-gold-categories {
  margin-top: clamp(27px, 3vw, 42px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 14px;
}

.eze-gold-categories a {
  color: #684b38 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-decoration: none !important;
  transition: color 0.22s ease, text-shadow 0.22s ease;
}

.eze-gold-categories a:hover {
  color: #a45d37 !important;
  text-shadow: 0 0 9px rgba(219, 155, 87, 0.42);
}

.eze-gold-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(174, 108, 64, 0.42);
}

/* بخش تصویر */
.eze-gold-visual-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  perspective: 1200px;
}

.eze-gold-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: crosshair;
  border-radius: 22px;
  background: linear-gradient(145deg, #fffaf3, #f2e4d6);
  border: 1px solid rgba(173, 111, 68, 0.23);
  box-shadow: 0 29px 60px rgba(76, 52, 36, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--mouse-y) * 4deg)) rotateY(calc(var(--mouse-x) * -4.5deg));
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
}

.eze-gold-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(247, 197, 126, 0.22) 0%, rgba(202, 128, 72, 0.08) 29%, transparent 65%);
  transition: opacity 0.3s ease;
}

.eze-gold-visual:hover::after {
  opacity: 1;
}

.eze-gold-visual:hover {
  box-shadow: 0 38px 78px rgba(91, 55, 33, 0.18), 0 0 28px rgba(213, 150, 85, 0.17), inset 0 0 0 1px rgba(255, 250, 239, 0.92);
}

.eze-gold-frame {
  position: absolute;
  inset: 0;
  z-index: 7;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: conic-gradient(from 180deg at var(--spot-x) var(--spot-y), transparent 7%, rgba(151, 82, 45, 0.12) 18%, rgba(239, 190, 119, 0.82) 29%, rgba(255, 241, 201, 0.97) 34%, rgba(186, 108, 61, 0.65) 43%, transparent 56%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 3px rgba(255, 230, 183, 0.82)) drop-shadow(0 0 9px rgba(203, 129, 70, 0.45));
  transition: opacity 0.3s ease;
}

.eze-gold-visual:hover .eze-gold-frame {
  opacity: 1;
}

.eze-gold-visual img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 4px;
  user-select: none;
  -webkit-user-drag: none;
  filter: saturate(0.98) contrast(1.025) brightness(1.01);
  transform: translate(calc(var(--mouse-x) * -5px), calc(var(--mouse-y) * -5px)) scale(1.018);
  transition: transform 0.15s ease-out, filter 0.3s ease;
}

.eze-gold-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: normal;
  transform: translateZ(22px) translate(calc(var(--mouse-x) * 7px), calc(var(--mouse-y) * 6px));
  transition: transform 0.15s ease-out, filter 0.3s ease;
}

.eze-gold-line {
  fill: none;
  stroke: #bd7343;
  stroke-width: 1.55;
  stroke-linecap: round;
  opacity: 0.65;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 4 7;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 1)) drop-shadow(0 0 4px rgba(246, 200, 129, 0.95)) drop-shadow(0 0 9px rgba(181, 103, 57, 0.52));
  animation: ezeGoldDash 3s linear infinite, ezeGoldLinePulse 2.5s ease-in-out infinite;
  transition: stroke 0.3s ease, stroke-width 0.3s ease, opacity 0.3s ease;
}

.eze-gold-node {
  fill: #fff9eb;
  stroke: #b7673b;
  stroke-width: 1.45;
  opacity: 0.94;
  vector-effect: non-scaling-stroke;
  transform-origin: center;
  transform-box: fill-box;
  filter: drop-shadow(0 0 2px #ffffff) drop-shadow(0 0 5px rgba(255, 215, 151, 1)) drop-shadow(0 0 12px rgba(186, 104, 57, 0.65));
  animation: ezeGoldNodePulse 2.2s ease-in-out infinite;
  transition: fill 0.3s ease, stroke 0.3s ease, opacity 0.3s ease;
}

.eze-gold-visual:hover .eze-gold-line {
  stroke: #e1a664;
  stroke-width: 2;
  opacity: 0.95;
  filter: drop-shadow(0 0 2px #fffaf1) drop-shadow(0 0 7px rgba(255, 211, 144, 1)) drop-shadow(0 0 15px rgba(185, 99, 51, 0.7));
}

.eze-gold-visual:hover .eze-gold-node {
  fill: #ffffff;
  stroke: #d18a50;
  opacity: 1;
  transform: scale(1.18);
}

.eze-gold-visual.is-pressing {
  transform: rotateX(calc(var(--mouse-y) * 2deg)) rotateY(calc(var(--mouse-x) * -2.5deg)) scale(0.992);
  box-shadow: 0 18px 44px rgba(70, 44, 29, 0.16), 0 0 27px rgba(231, 173, 103, 0.3), 0 0 58px rgba(169, 89, 47, 0.15), inset 0 0 0 1px rgba(255, 248, 234, 0.96);
}

.eze-gold-visual.is-pressing .eze-gold-frame {
  opacity: 1;
  background: conic-gradient(from 0deg, #5a3928, #9b5734, #d18a4c, #f5c987, #fff2c9, #d18a4c, #9b5734, #5a3928);
  filter: drop-shadow(0 0 7px rgba(255, 228, 177, 0.9)) drop-shadow(0 0 15px rgba(185, 103, 57, 0.6));
  animation: ezeGoldFramePulse 1.2s ease-in-out infinite;
}

.eze-gold-visual.is-pressing .eze-gold-overlay {
  animation: ezeGoldOverlayPulse 1.3s ease-in-out infinite;
}

.eze-gold-visual.is-pressing .eze-gold-line {
  stroke: #fff1c8;
  stroke-width: 2.3;
  opacity: 1;
  stroke-dasharray: 2 4;
  filter: drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 8px #f3bd72) drop-shadow(0 0 17px rgba(170, 84, 41, 0.75));
}

.eze-gold-visual.is-pressing .eze-gold-node {
  fill: #ffffff;
  stroke: #f4c580;
  opacity: 1;
  filter: drop-shadow(0 0 4px #ffffff) drop-shadow(0 0 11px #f2bd72) drop-shadow(0 0 19px rgba(174, 91, 46, 0.72));
}

/* انیمیشن‌ها */
@keyframes ezeGoldStatus {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.18); opacity: 1; }
}

@keyframes ezeGoldHeadline {
  to { background-position: 230% 50%; }
}

@keyframes ezeGoldDash {
  to { stroke-dashoffset: -22; }
}

@keyframes ezeGoldLinePulse {
  0%, 100% { opacity: 0.52; }
  50% { opacity: 0.86; }
}

@keyframes ezeGoldNodePulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.22); opacity: 1; }
}

@keyframes ezeGoldFramePulse {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(255, 226, 173, 0.68)) drop-shadow(0 0 11px rgba(180, 100, 55, 0.42));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255, 239, 202, 1)) drop-shadow(0 0 21px rgba(196, 116, 63, 0.75));
  }
}

@keyframes ezeGoldOverlayPulse {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.25) brightness(1.14); }
}

/* ریسپانسیو */
@media (max-width: 992px) {
  .eze-gold-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-block: 50px 65px;
    text-align: center;
  }
  .eze-gold-copy h1,
  .eze-gold-description {
    margin-inline: auto;
  }
  .eze-gold-actions,
  .eze-gold-categories {
    justify-content: center;
  }
  .eze-gold-visual-wrap {
    width: min(100%, 670px);
    margin-inline: auto;
  }
}

@media (max-width: 576px) {
  .eze-gold-inner {
    width: min(calc(100% - 26px), 100%);
    gap: 32px;
    padding-block: 38px 48px;
  }
  .eze-gold-copy h1 {
    font-size: 2rem;
  }
  .eze-gold-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .eze-gold-btn {
    width: 100%;
    min-width: 0;
  }
  .eze-gold-dot {
    display: none;
  }
  .eze-gold-categories {
    gap: 7px 12px;
  }
  .eze-gold-visual {
    border-radius: 15px;
  }
}

@media (hover: none) {
  .eze-gold-visual {
    transform: none !important;
  }
  .eze-gold-frame,
  .eze-gold-visual::after {
    display: none;
  }
  .eze-gold-visual img,
  .eze-gold-overlay {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eze-gold-hero *,
  .eze-gold-hero *::before,
  .eze-gold-hero *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}