/* =========================================================
   TITIRANGI INDIAN KITCHEN — ANIMATED HERO SLIDER
   Prefix: tik-hero / tik-slide
   ========================================================= */

.tik-hero {
  --tik-slider-time: 6000ms;
  position: relative;
  width: 100%;
  max-width: 1920px;
  aspect-ratio: 16 / 9; /* 1920 × 1080 desktop slider */
  min-height: 0;
  margin-inline: auto;
  overflow: hidden;
  background: #070604;
  isolation: isolate;
  outline: none;
}

.tik-hero:focus-visible {
  box-shadow: inset 0 0 0 2px var(--tik-gold-light);
}

.tik-hero__track,
.tik-slide {
  position: absolute;
  inset: 0;
}

.tik-slide {
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transition: opacity 850ms cubic-bezier(.22,.61,.36,1), visibility 850ms ease;
}

.tik-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.tik-slide__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  filter: saturate(.96) contrast(1.04);
  will-change: transform;
}

.tik-slide.is-active .tik-slide__media {
  animation: tikHeroKenBurns 7.2s ease-out both;
}

.tik-slide:nth-child(2) .tik-slide__media { object-position: 64% center; }
.tik-slide:nth-child(3) .tik-slide__media { object-position: 36% center; }

.tik-slide__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 3, .56);
}

.tik-slide__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  padding-top: 66px;
  padding-bottom: 118px;
}

.tik-slide__content {
  width: min(720px, 72%);
  padding: 32px 34px 34px;
  border-left: 2px solid var(--tik-gold);
  background: rgba(7, 6, 4, .38);
  backdrop-filter: blur(2px);
}

.tik-slide__eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  color: var(--tik-gold-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(24px);
}

.tik-slide__eyebrow span {
  width: 38px;
  height: 1px;
  background: currentColor;
}

.tik-slide h1,
.tik-slide h2 {
  margin: 0;
  font-family: "Marcellus", Georgia, serif;
  color: #fffaf0;
  font-size: clamp(48px, 6vw, 88px);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.035em;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(34px);
}

.tik-slide h1 em,
.tik-slide h2 em {
  color: var(--tik-gold-light);
  font-style: normal;
}

.tik-slide__content > p {
  width: min(610px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 253, 248, .78);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.75;
  opacity: 0;
  transform: translateY(28px);
}

.tik-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  opacity: 0;
  transform: translateY(26px);
}

.tik-slide.is-active .tik-slide__eyebrow {
  animation: tikHeroReveal .7s .18s ease forwards;
}

.tik-slide.is-active h1,
.tik-slide.is-active h2 {
  animation: tikHeroReveal .82s .28s cubic-bezier(.2,.74,.25,1) forwards;
}

.tik-slide.is-active .tik-slide__content > p {
  animation: tikHeroReveal .76s .42s ease forwards;
}

.tik-slide.is-active .tik-slide__actions {
  animation: tikHeroReveal .76s .54s ease forwards;
}

.tik-hero-btn {
  min-height: 52px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--tik-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .065em;
  text-transform: uppercase;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.tik-hero-btn i {
  font-size: 17px;
  transition: transform 200ms ease;
}

.tik-hero-btn--gold {
  background: var(--tik-gold);
  color: #080705;
}

.tik-hero-btn--ghost {
  background: rgba(8, 7, 5, .34);
  color: #fffaf0;
  border-color: rgba(212, 174, 91, .68);
}

@media (hover: hover) and (pointer: fine) {
  .tik-hero-btn:hover {
    transform: translateY(-3px);
  }
  .tik-hero-btn--gold:hover {
    background: #080705;
    color: var(--tik-gold-light);
  }
  .tik-hero-btn--ghost:hover {
    background: var(--tik-gold);
    color: #080705;
    border-color: var(--tik-gold);
  }
  .tik-hero-btn:hover i { transform: translateX(3px); }
}

.tik-hero__controls {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 34px;
  width: min(1220px, calc(100% - 48px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 13px;
}

.tik-hero__arrow,
.tik-hero__pause {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(212, 174, 91, .48);
  background: rgba(6, 5, 3, .64);
  color: var(--tik-gold-light);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.tik-hero__arrow i,
.tik-hero__pause i { font-size: 21px; }

.tik-hero__pause {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  margin-left: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .tik-hero__arrow:hover,
  .tik-hero__pause:hover {
    background: var(--tik-gold);
    color: #080705;
    border-color: var(--tik-gold);
    transform: translateY(-2px);
  }
}

.tik-hero__status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 182px;
  color: #fffaf0;
}

.tik-hero__current,
.tik-hero__total {
  font-family: "Marcellus", serif;
  font-size: 14px;
  letter-spacing: .08em;
}

.tik-hero__current { color: var(--tik-gold-light); }
.tik-hero__total { color: rgba(255,255,255,.5); }

.tik-hero__progress {
  position: relative;
  width: 110px;
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.22);
}

.tik-hero__progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--tik-gold-light);
}

.tik-hero.is-running .tik-hero__progress span {
  animation: tikHeroProgress var(--tik-slider-time) linear forwards;
}

.tik-hero__dots {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.tik-hero__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(212,174,91,.72);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: width 180ms ease, border-radius 180ms ease, background 180ms ease;
}

.tik-hero__dots button.is-active {
  width: 32px;
  border-radius: 999px;
  background: var(--tik-gold-light);
}

.tik-hero__scroll {
  position: absolute;
  z-index: 5;
  right: 26px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.58);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

.tik-hero__scroll i {
  color: var(--tik-gold-light);
  font-size: 15px;
  animation: tikScrollNudge 1.4s ease-in-out infinite;
}

.tik-placeholder {
  min-height: 440px;
  display: grid;
  place-items: center;
  padding: 80px 0;
  border-top: 1px solid rgba(185, 144, 61, .16);
  background: #120f0b;
}

.tik-placeholder:nth-of-type(even) { background: #18130d; }
.tik-placeholder h2 {
  margin: 0;
  color: var(--tik-gold-light);
  font-family: "Marcellus", serif;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 400;
}

@keyframes tikHeroKenBurns {
  from { transform: scale(1.045); }
  to { transform: scale(1.11); }
}

@keyframes tikHeroReveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tikHeroProgress {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes tikScrollNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

@media (max-width: 900px) {
  .tik-hero,
  .tik-slide__inner { min-height: 650px; }

  .tik-slide__inner {
    align-items: flex-end;
    padding-top: 70px;
    padding-bottom: 128px;
  }

  .tik-slide__content {
    width: min(640px, 91%);
    padding: 26px 26px 28px;
  }

  .tik-slide h1,
  .tik-slide h2 { font-size: clamp(46px, 9vw, 72px); }

  .tik-hero__controls { width: calc(100% - 36px); }
  .tik-hero__scroll { display: none; }
}

@media (max-width: 620px) {
  .tik-hero,
  .tik-slide__inner { min-height: 600px; }

  .tik-slide__inner {
    padding-top: 55px;
    padding-bottom: 112px;
  }

  .tik-slide__content {
    width: 100%;
    padding: 22px 18px 24px;
    border-left-width: 1px;
    background: rgba(7, 6, 4, .5);
  }

  .tik-slide__eyebrow {
    margin-bottom: 13px;
    font-size: 10px;
    letter-spacing: .16em;
  }

  .tik-slide__eyebrow span { width: 27px; }

  .tik-slide h1,
  .tik-slide h2 {
    font-size: clamp(39px, 12vw, 58px);
    line-height: 1;
  }

  .tik-slide__content > p {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.62;
  }

  .tik-slide__actions {
    margin-top: 20px;
    gap: 9px;
  }

  .tik-hero-btn {
    min-height: 46px;
    padding-inline: 15px;
    font-size: 10.5px;
  }

  .tik-hero__controls {
    bottom: 23px;
    width: calc(100% - 28px);
    gap: 8px;
  }

  .tik-hero__arrow {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .tik-hero__status { min-width: 128px; gap: 8px; }
  .tik-hero__progress { width: 70px; }
  .tik-hero__dots { display: none; }
  .tik-hero__pause { margin-left: auto; }
}

@media (max-width: 390px) {
  .tik-hero,
  .tik-slide__inner { min-height: 585px; }

  .tik-slide__actions { flex-direction: column; align-items: stretch; }
  .tik-hero-btn { width: 100%; }
  .tik-hero__status { min-width: 112px; }
  .tik-hero__progress { width: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .tik-slide,
  .tik-slide__media,
  .tik-slide__eyebrow,
  .tik-slide h1,
  .tik-slide h2,
  .tik-slide__content > p,
  .tik-slide__actions,
  .tik-hero__progress span,
  .tik-hero__scroll i {
    animation: none !important;
    transition-duration: .01ms !important;
  }

  .tik-slide.is-active .tik-slide__eyebrow,
  .tik-slide.is-active h1,
  .tik-slide.is-active h2,
  .tik-slide.is-active .tik-slide__content > p,
  .tik-slide.is-active .tik-slide__actions {
    opacity: 1;
    transform: none;
  }
}
