/* Jharkhand Sohrai / cinematic tribal design system */

body {
  background-color: var(--ivory);
  background-image: var(--pattern-sohrai);
  background-size: 220px 220px;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 18% 8%, rgba(212, 175, 55, 0.06), transparent 42%),
    radial-gradient(ellipse at 82% 88%, rgba(29, 93, 79, 0.08), transparent 40%),
    rgba(246, 241, 231, 0.92);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background: var(--pattern-grain) center / 180px repeat;
  mix-blend-mode: multiply;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.section-kicker::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  flex-shrink: 0;
  background: url("../images/patterns/tribal-diamond.svg") center / contain no-repeat;
}

.tribal-divider {
  height: 56px;
  width: 100%;
  margin: 0;
  background-color: transparent;
  background-image:
    url("../images/patterns/peacock-motif.svg"),
    url("../images/patterns/tribal-border.svg");
  background-position: center, center;
  background-size: 48px, auto 14px;
  background-repeat: no-repeat, repeat-x;
  opacity: 1;
}

.tribal-band {
  height: 14px;
  background: var(--pattern-border) center / auto 14px repeat-x;
  opacity: 1;
}

.motif-peacock {
  width: 72px;
  height: 72px;
  background: var(--pattern-peacock) center / contain no-repeat;
  margin-inline: auto;
  opacity: 0.75;
}

.divider-leaf {
  height: 48px;
  background: url("../images/patterns/sohrai-vine.svg") center / 180px no-repeat;
  opacity: 0.55;
}

.page-hero::after,
.poster-hero::after,
.home-banner::after,
.cta-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: var(--pattern-border) center / auto 14px repeat-x;
  opacity: 1;
  pointer-events: none;
  z-index: 3;
}

.home-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.08;
  background: var(--pattern-sohrai) center / 200px repeat;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.home-banner-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.06;
  background: var(--pattern-grain) center / 160px repeat;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.sohrai-frame {
  position: relative;
  padding: 0.85rem;
  background:
    linear-gradient(180deg, rgba(246, 241, 231, 0.5), rgba(232, 220, 197, 0.35));
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
}

.sohrai-frame::before,
.sohrai-frame::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  background: url("../images/patterns/sohrai-corner.svg") center / contain no-repeat;
  opacity: 0.85;
  pointer-events: none;
}

.sohrai-frame::before {
  top: 0.35rem;
  left: 0.35rem;
}

.sohrai-frame::after {
  right: 0.35rem;
  bottom: 0.35rem;
  transform: rotate(180deg);
}

.sohrai-frame-inner {
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 2px);
  background: var(--forest-900);
}

.sohrai-ring {
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.35rem;
}

.sohrai-ring > * {
  border-radius: 50%;
}

.icon-well {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  background: rgba(212, 175, 55, 0.1);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  color: var(--gold);
  border-radius: 4px;
}

.icon-well i {
  transform: rotate(-45deg);
  font-size: 1.05rem;
}

.section-dark .icon-well,
.section-charcoal .icon-well,
.section-forest .icon-well {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--gold-soft);
}

.tribal-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(246, 241, 231, 0.98));
  border: 1px solid rgba(15, 61, 46, 0.1);
  border-radius: var(--radius-md);
}

.tribal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background: url("../images/patterns/sohrai-wall.svg") center / 160px repeat;
  pointer-events: none;
  border-radius: inherit;
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    display: none;
  }
}
