/* =========================================================
   پرایس اکشن hero — gold dot dome + 3D gold coin (Goldify style)
   ========================================================= */
.hero--gold {
  height: auto;
  min-height: 0;
  background: #000;
  overflow: hidden;
  display: block;
  padding: calc(110px + 30 * var(--u)) 0 0;
  isolation: isolate;
}

/* cars photo: in normal flow below the copy (no overlap at any screen size).
   Sized from the screen height so hero + ticker fit the first screen,
   bottom floor trimmed, and every edge faded into the black page. */
.cars-stage {
  position: relative;
  z-index: -1;
  width: clamp(760px, calc((100svh - 520px) * 2.5), 1500px);
  max-width: 100%;
  aspect-ratio: 2000 / 800;            /* photo is 2000×922 → trims the empty floor */
  margin: -4% auto 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, #000 22%, #000 80%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(180deg, transparent 0%, #000 22%, #000 80%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-composite: intersect;
}
.cars-stage img { display: block; width: 100%; height: auto; }

/* copy */
.gold-hero {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.gold-title {
  font-size: max(34px, calc(62 * var(--u)));
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  padding-bottom: .12em;
  text-wrap: balance;
}
.gold-title span {
  background: linear-gradient(180deg, #ffd34f 0%, #f5aa03 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .25em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.gold-lead {
  margin-top: 12px;
  max-width: 600px;
  color: #9d9da1; font-weight: 300;
  font-size: max(15px, calc(18 * var(--u))); line-height: 1.85;
  text-wrap: balance;
}
.gold-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: max(28px, calc(36 * var(--u))); }

/* buttons */
.g-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding-inline: 30px;
  border-radius: 999px;
  font-size: 16.5px; font-weight: 500;
  white-space: nowrap;
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s, border-color .3s, background .3s;
}
.g-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.g-btn--gold {
  color: #0b0b0b;
  font-weight: 600;
  background: linear-gradient(180deg, #ffd24d 0%, #f5aa03 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 28px rgba(245,170,3,.28);
}
.g-btn--gold:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 16px 36px rgba(245,170,3,.4); }
.g-btn--ghost {
  color: #f1f1f1;
  border: 1px solid rgba(255,214,106,.32);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.g-btn--ghost:hover { border-color: rgba(255,214,106,.6); background: rgba(255,214,106,.07); }

/* round Afghan flag (black, red, green) */
.flag-af {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255,255,255,.18);
}
.flag-af img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ticker strip under the hero */
.ticker-strip { position: relative; background: #000; }
.ticker-strip .ticker {
  position: relative;
  border-block: 1px solid rgba(245,170,3,.2);
  background: #050505;
  overflow: hidden;
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

@media (max-width: 760px) {
  /* show all three cars across the bottom, copy above them */
  .hero--gold { padding: 100px 0 0; }
  .cars-stage { width: 116%; max-width: none; margin: -2% -8% 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 80%, transparent 100%); }
  .gold-title { font-size: 32px; }
  .gold-actions { flex-direction: column; width: 100%; max-width: 290px; gap: 10px; margin-top: 22px; }
  .g-btn { width: 100%; height: 48px; font-size: 15px; padding-inline: 20px; }
  .flag-af { width: 22px; height: 22px; }
  .gold-lead { font-size: 14.5px; line-height: 1.9; max-width: 330px; text-wrap: pretty; }
}

/* =========================================================
   Dynamic full-screen hero (desktop & tablet):
   hero + ticker = exactly one screen; the cars take whatever
   height is left, so nothing overlaps and nothing is hidden.
   ========================================================= */
@media (min-width: 761px) {
  .hero--gold {
    --ticker-h: 46px;
    height: calc(100vh - var(--ticker-h));
    height: calc(100svh - var(--ticker-h));
    min-height: 600px;
    display: flex;
    flex-direction: column;
  }
  .hero--gold .gold-hero { flex: none; }
  .hero--gold .cars-stage {
    flex: 1 1 auto;
    min-height: 140px;
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    margin: -1.5vh auto 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    -webkit-mask-image: none; mask-image: none;     /* fade the photo itself instead */
  }
  .hero--gold .cars-stage img {
    height: 100%;
    width: auto;
    max-width: min(100%, 1700px);
    object-fit: contain;
    object-position: center bottom;
    -webkit-mask-image:
      linear-gradient(180deg, transparent 0%, #000 24%, #000 78%, transparent 100%),
      linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image:
      linear-gradient(180deg, transparent 0%, #000 24%, #000 78%, transparent 100%),
      linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
            mask-composite: intersect;
  }
}

/* ---------- Ultrawide: let the hero copy grow with the screen ---------- */
@media (min-width: 1800px) {
  .gold-hero { max-width: 1100px; }
  .gold-title { font-size: clamp(62px, 2.5vw, 92px); }
  .gold-lead { font-size: clamp(18px, .62vw, 24px); max-width: 760px; }
  .g-btn { height: clamp(56px, 1.9vw, 68px); padding-inline: clamp(30px, 1.1vw, 40px); font-size: clamp(16.5px, .58vw, 20px); }
  .gold-actions { gap: clamp(18px, .7vw, 26px); }
  .hero--gold .cars-stage img { max-width: min(100%, 2000px); }
}
