/* Amiri Gold — Cinematic Hero: Stone → Logo reveal with dust */
.amiri-hero-cinematic {
  --bg-deep: #1A3535;
  --bg-mid: #243F3F;
  --bg-teal: #2C4F4F;
  --gold-bright: #F5E17A;
  --gold-mid: #D4AF37;
  --gold-dark: #B8860B;
  --gold-light: #F8F0DC;
  --text-main: #F0EDE5;
  --text-sub: #C9C0AA;
  --font-main: 'Vazirmatn', sans-serif;
}
.amiri-hero-cinematic--static #amiri-stone-container,
.amiri-hero-cinematic--static #amiri-shard-canvas { display: none !important; }
.amiri-hero-cinematic--static #amiri-logo-container {
  opacity: 1 !important;
  transform: translate(-50%, -50%) !important;
  filter: drop-shadow(0 0 25px rgba(212,175,55,0.35)) drop-shadow(0 4px 12px rgba(0,0,0,0.4)) !important;
  /* Force static logo to center-top regardless of device */
  top: 28% !important;
  left: 50% !important;
}
.amiri-hero-cinematic--static #amiri-hero-text-wrapper { opacity: 1 !important; transform: none !important; }
.amiri-hero-cinematic--static #amiri-scroll-indicator { opacity: 1 !important; }

.admin-bar .amiri-hero-cinematic {
  height: calc(100dvh - 32px);
  min-height: calc(100vh - 32px);
}
@media screen and (max-width: 782px) {
  .admin-bar .amiri-hero-cinematic {
    height: calc(100dvh - 46px);
    min-height: calc(100vh - 46px);
  }
}

/* ============================================================
   HERO SECTION – Deep teal-green background with gold accents
   ============================================================ */
.amiri-hero-cinematic {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    ellipse at 30% 40%,
    #2C5050 0%,
    #1E3A3A 40%,
    #122828 100%
  );
}

/* Noise texture */
.amiri-hero-cinematic::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* Vignette */
.amiri-hero-cinematic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(10, 22, 22, 0.65) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.5) 30%, rgba(245,225,122,0.8) 50%, rgba(212,175,55,0.5) 70%, transparent);
  z-index: 35;
}

/* ---- Particle canvas (dust background layer) -------------- */
#amiri-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ---- Stone container -------------------------------------- */
#amiri-stone-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: min(380px, 70vw);
  height: min(380px, 70vw);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 30px rgba(0,0,0,0.6))
          drop-shadow(0 0 60px rgba(212,175,55,0.15));
}

#amiri-stone-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

/* ---- Shard canvas (on top during explosion) --------------- */
#amiri-shard-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}

/* ---- Logo container (reveals after explosion) ------------- */
#amiri-logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  width: min(420px, 70vw);
  height: auto;
  opacity: 0;
  pointer-events: none;
  will-change: left, top, transform, filter, opacity;
}

#amiri-logo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(212,175,55,0.35))
          drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

/* ============================================================
   HERO CONTENT
   ============================================================ */
#amiri-hero-content {
  position: relative;
  z-index: 30;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 6vw 8vh;
  pointer-events: none;
}

#amiri-hero-text-wrapper {
  max-width: 560px;
  opacity: 0;
  transform: translateY(30px);
  pointer-events: auto;
}

#amiri-hero-tagline {
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#amiri-hero-tagline::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--gold-mid);
  opacity: 0.7;
}

#amiri-hero-headline {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.gold-text {
  background: linear-gradient(135deg, #F8F0DC 0%, #D4AF37 40%, #F5E17A 60%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#amiri-hero-subheadline {
  font-size: clamp(0.8rem, 1.8vw, 1.05rem);
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-sub);
  margin-bottom: 2rem;
  max-width: 460px;
}

#amiri-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  direction: rtl;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85em 2em;
  border-radius: 3px;
  font-family: var(--font-main);
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #D4AF37 0%, #F5E17A 50%, #B8860B 100%);
  color: #1A3535;
  border: none;
  box-shadow: 0 4px 20px rgba(212,175,55,0.35);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: rgba(255,255,255,0.3);
  transform: rotate(25deg);
  transition: left 0.6s ease;
}
.btn-primary:hover::before { left: 130%; }
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(212,175,55,0.55);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-light);
  border: 1.5px solid rgba(212,175,55,0.6);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  background: rgba(212,175,55,0.1);
  border-color: var(--gold-mid);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

#amiri-hero-badges {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(0.65rem, 1.2vw, 0.78rem);
  color: rgba(212,175,55,0.75);
  font-weight: 400;
}

.badge-icon {
  font-size: 0.6rem;
  color: var(--gold-mid);
}

/* ============================================================
   SCROLL INDICATOR
   ============================================================ */
#amiri-scroll-indicator {
  position: absolute;
  bottom: 2.5vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: 28px;
  height: 46px;
  border: 2px solid rgba(212,175,55,0.4);
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 7px;
  opacity: 0;
  transition: opacity 0.5s;
}

#amiri-scroll-indicator.visible { opacity: 1; }

#amiri-scroll-dot {
  width: 5px;
  height: 10px;
  background: var(--gold-mid);
  border-radius: 3px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0);   opacity: 1;   }
  50%       { transform: translateY(14px); opacity: 0.3; }
}

/* ============================================================
   AMBIENT BLOBS
   ============================================================ */
.amiri-hero-cinematic .ambient-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.12;
  z-index: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) and (max-width: 1199px) {
  #amiri-logo-container {
    width: min(360px, 65vw);
  }
  #amiri-stone-container {
    width: min(320px, 55vw);
    height: min(320px, 55vw);
  }
  #amiri-hero-content {
    padding: 0 5vw 7vh;
  }
}

@media (max-width: 767px) {
  .amiri-hero-cinematic {
    align-items: flex-end;
  }

  #amiri-hero-content {
    padding: 0 5vw 6vh;
    align-items: flex-end;
    justify-content: center;
  }

  #amiri-hero-text-wrapper {
    max-width: 100%;
    text-align: center;
    width: 100%;
  }

  #amiri-hero-tagline {
    justify-content: center;
  }
  #amiri-hero-tagline::before { display: none; }

  #amiri-hero-actions {
    justify-content: center;
  }

  #amiri-hero-badges {
    justify-content: center;
  }

  #amiri-hero-subheadline {
    max-width: 100%;
  }

  /* Logo on mobile: centered top, much bigger */
  #amiri-logo-container {
    width: min(280px, 70vw);
    top: 18%;
    left: 50%;
  }

  #amiri-stone-container {
    width: min(260px, 60vw);
    height: min(260px, 60vw);
    top: 38%;
  }
}

@media (max-width: 480px) {
  #amiri-hero-headline {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  #amiri-hero-subheadline {
    font-size: 0.82rem;
    line-height: 1.8;
  }
  .btn {
    padding: 0.8em 1.5em;
    font-size: 0.82rem;
  }
  /* Logo even bigger on smallest screens */
  #amiri-logo-container {
    width: min(240px, 68vw);
    top: 16%;
  }
  #amiri-stone-container {
    width: min(230px, 64vw);
    height: min(230px, 64vw);
    top: 35%;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #amiri-hero-content {
    padding: 0 4vw 3vh;
    align-items: flex-end;
  }
  #amiri-hero-headline { font-size: 1.5rem; }
  #amiri-hero-subheadline { display: none; }
  #amiri-logo-container {
    width: 180px;
    top: 50%;
  }
  #amiri-stone-container {
    width: 200px;
    height: 200px;
  }
}
