/*--------------------------------------------------------------
# Home page – cinematic hero + "Why Spice of Hyderabad"
# Behaviour: assets/js/home-cinematic.js
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Navigation – refined uppercase links (all pages)
--------------------------------------------------------------*/
@media (min-width: 1200px) {
  .navmenu a,
  .navmenu a:focus {
    text-transform: uppercase;
    letter-spacing: 1.3px;
    font-size: 13px;
    font-weight: 500;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .navmenu a,
  .navmenu a:focus {
    letter-spacing: .8px;
    font-size: 12px;
    padding: 18px 7px;
  }
}

/*--------------------------------------------------------------
# Home page: transparent top bar + header over the video
--------------------------------------------------------------*/
.index-page .soh-topbar {
  position: relative;
  z-index: 998;
  background: rgba(20, 3, 2, .35);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(4px);
}

.index-page .header {
  --nav-color: #fff;
  --nav-hover-color: var(--saffron);
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, .12);
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.index-page.scrolled .header {
  background: rgba(38, 6, 5, .94);
  backdrop-filter: blur(10px);
  border-bottom-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
}

.index-page .header .soh-logo-name {
  color: #fff;
}

.index-page .header .soh-logo-sub {
  color: var(--saffron);
}

/*--------------------------------------------------------------
# Cinematic hero
--------------------------------------------------------------*/
.soh-cine {
  --chrome: var(--chrome-h, 118px);
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  margin-top: calc(-1 * var(--chrome));
  padding: calc(var(--chrome) + 36px) 0 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: #140302;
}

.soh-cine-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #1a0503;
}

.soh-cine-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
  animation: soh-cine-zoom 22s ease-in-out infinite alternate;
}

.soh-cine-video.is-ready {
  opacity: 1;
}

@keyframes soh-cine-zoom {
  from { transform: scale(1.03); }
  to { transform: scale(1.13); }
}

.soh-cine-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(20, 3, 2, .38) 0%, rgba(20, 3, 2, .74) 62%, rgba(20, 3, 2, .92) 100%),
    linear-gradient(180deg, rgba(20, 3, 2, .8) 0%, rgba(20, 3, 2, .2) 28%, rgba(20, 3, 2, .3) 68%, rgba(20, 3, 2, .96) 100%);
}

.soh-cine-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.soh-cine-content > * {
  animation: soh-cine-rise .9s cubic-bezier(.2, .7, .2, 1) both;
}

.soh-cine-content > :nth-child(2) { animation-delay: .1s; }
.soh-cine-content > :nth-child(3) { animation-delay: .2s; }
.soh-cine-content > :nth-child(4) { animation-delay: .3s; }
.soh-cine-content > :nth-child(5) { animation-delay: .38s; }
.soh-cine-content > :nth-child(6) { animation-delay: .46s; }
.soh-cine-content > :nth-child(7) { animation-delay: .56s; }
.soh-cine-content > :nth-child(8) { animation-delay: .66s; }

@keyframes soh-cine-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.soh-cine-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 40px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  font-size: 14px;
  color: #f3e3d4;
  transition: background .25s, border-color .25s;
}

.soh-cine-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border-color: rgba(242, 163, 27, .6);
}

.soh-cine-pill span {
  background: var(--saffron);
  color: var(--maroon-deep);
  font-family: var(--nav-font);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 30px;
}

.soh-cine-pill b {
  color: var(--saffron);
}

.soh-cine-emblem {
  width: clamp(80px, 8.5vw, 116px);
  height: auto;
  margin: 28px 0 18px;
  border-radius: 18%;
  filter: drop-shadow(0 14px 34px rgba(242, 120, 27, .45));
}

.soh-cine-title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  color: #fff;
  line-height: .95;
  text-shadow: 0 8px 40px rgba(0, 0, 0, .55);
}

.soh-cine-word {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  letter-spacing: .14em;
  color: #fff;
}

.soh-cine-word.big {
  font-size: clamp(2.6rem, 9.4vw, 7.6rem);
  letter-spacing: .05em;
  color: #fff;
  margin-top: .1em;
}

/* negative left margin cancels the letter-spacing after "P" so the chilli sits snug like a letter */
.soh-cine-word .soh-chilli {
  width: .56em;
  height: 1.16em;
  margin: 0 .03em -.1em -.13em;
}

.soh-cine-telugu {
  font-family: "Noto Sans Telugu", sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: var(--saffron);
  margin: 18px 0 8px;
}

.soh-cine-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--saffron);
}

.soh-cine-rule span {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--saffron));
}

.soh-cine-rule span:last-child {
  transform: scaleX(-1);
}

.soh-cine-tag {
  margin: 10px 0 32px;
  font-family: var(--nav-font);
  font-size: clamp(12px, 1.1vw, 14px);
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #f1dccb;
}

.soh-cine-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.soh-btn-glass {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  backdrop-filter: blur(6px);
}

.soh-btn-glass:hover {
  background: #fff;
  border-color: #fff;
  color: var(--maroon-deep);
}

.soh-cine-info {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  font-size: 14px;
  color: #ead6c6;
}

.soh-cine-info i {
  color: var(--saffron);
  margin-right: 6px;
}

/* Scroll cue + video toggle */
.soh-cine-scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 96px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 16px;
}

.soh-cine-scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--saffron);
  animation: soh-cine-wheel 1.8s ease-in-out infinite;
}

@keyframes soh-cine-wheel {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

.soh-cine-toggle {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 96px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(20, 3, 2, .45);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
  transition: background .2s;
}

.soh-cine-toggle:hover {
  background: var(--accent-color);
}

@media (max-width: 767px) {
  .soh-cine {
    padding-bottom: 130px;
  }

  .soh-cine-pill {
    font-size: 12.5px;
    gap: 8px;
  }

  .soh-cine-pill span {
    font-size: 10px;
    padding: 3px 9px;
  }

  .soh-cine-emblem {
    margin: 22px 0 14px;
  }

  .soh-cine-tag {
    letter-spacing: 1.4px;
    max-width: 320px;
  }

  .soh-cine-info {
    gap: 6px 16px;
    font-size: 13px;
  }

  .soh-cine-scroll {
    display: none;
  }

  .soh-cine-toggle {
    right: 16px;
    bottom: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .soh-cine-video,
  .soh-cine-content > *,
  .soh-cine-scroll span {
    animation: none;
  }
}

/*--------------------------------------------------------------
# Why Spice of Hyderabad – dish in the centre, promises around it
--------------------------------------------------------------*/
.soh-why {
  position: relative;
  padding: 100px 0 0;
  overflow: clip;
  color: #f3e3d4;
  background:
    radial-gradient(ellipse 60% 55% at 50% 52%, #5c1411 0%, rgba(46, 7, 6, 0) 70%),
    var(--maroon-deep);
  isolation: isolate;
}

.soh-why .soh-title h2 {
  color: #fff;
}

.soh-why .soh-title .soh-eyebrow {
  color: var(--saffron);
}

.soh-why-glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 52%;
  width: min(80vw, 760px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(242, 163, 27, .22) 0%, rgba(242, 120, 27, .07) 42%, transparent 66%);
  pointer-events: none;
}

.soh-why-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 440px) 1fr;
  align-items: center;
  gap: 40px;
}

.soh-why-col {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.soh-why-item {
  display: flex;
  align-items: center;
  gap: 22px;
}

.soh-why-col.left .soh-why-item {
  justify-content: flex-end;
  text-align: right;
}

.soh-why-item h3 {
  margin: 0 0 8px;
  font-family: var(--nav-font);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #fff;
}

.soh-why-item p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #d9c2b2;
}

.soh-why-item .ico {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--saffron);
  border: 1.5px solid rgba(242, 163, 27, .45);
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 0 0 8px rgba(242, 163, 27, .05);
  transition: background .3s, color .3s, transform .3s;
}

.soh-why-item:hover .ico {
  background: var(--saffron);
  color: var(--maroon-deep);
  transform: scale(1.06);
}

/* Centre dish */
.soh-why-dish {
  display: grid;
  justify-items: center;
  align-items: center;
}

.soh-why-ring,
.soh-why-plate {
  grid-area: 1 / 1;
}

.soh-why-ring {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(242, 163, 27, .35);
  animation: soh-why-spin 60s linear infinite;
  position: relative;
}

.soh-why-ring::after {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px solid rgba(242, 163, 27, .16);
}

.soh-why-plate {
  width: 84%;
  aspect-ratio: 1;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .65));
  animation: soh-why-float 6s ease-in-out infinite;
}

.soh-why-plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.soh-why-caption {
  grid-row: 2;
  margin-top: 26px;
  text-align: center;
}

.soh-why-caption span {
  display: block;
  font-family: var(--nav-font);
  font-size: 12.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f1dccb;
}

.soh-why-caption strong {
  font-family: var(--heading-font);
  font-size: 1.7rem;
  color: var(--saffron);
}

@keyframes soh-why-spin {
  to { transform: rotate(360deg); }
}

@keyframes soh-why-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.soh-why-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 56px;
}

.soh-why-fade {
  height: 150px;
  margin-top: 90px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
}

/* Blend the bottom of "Biryani Deals" into this section */
.soh-deals:has(+ .soh-why) {
  background:
    linear-gradient(180deg, transparent 55%, var(--maroon-deep) 100%),
    radial-gradient(circle at 85% 20%, rgba(242, 163, 27, .18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(184, 22, 29, .35), transparent 50%),
    var(--maroon-deep);
}

@media (max-width: 1199px) {
  .soh-why-grid {
    gap: 28px;
  }

  .soh-why-col {
    gap: 56px;
  }

  .soh-why-item .ico {
    width: 60px;
    height: 60px;
    font-size: 22px;
  }
}

@media (max-width: 991px) {
  .soh-why {
    padding-top: 80px;
  }

  .soh-why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }

  .soh-why-dish {
    grid-column: 1 / -1;
    grid-row: 1;
    width: min(100%, 380px);
    margin: 0 auto;
  }

  .soh-why-col {
    gap: 30px;
  }

  .soh-why-col.left .soh-why-item {
    flex-direction: row-reverse;
    justify-content: flex-end;
    text-align: left;
  }

  .soh-why-item {
    align-items: flex-start;
  }
}

@media (max-width: 575px) {
  .soh-why-grid {
    grid-template-columns: 1fr;
  }

  .soh-why-dish {
    width: min(100%, 300px);
  }

  .soh-why-item p {
    font-size: 14.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .soh-why-ring,
  .soh-why-plate {
    animation: none;
  }
}

@media print {
  .soh-cine-media,
  .soh-cine-shade,
  .soh-cine-scroll,
  .soh-cine-toggle,
  .soh-why {
    display: none;
  }
}

/* Soft saffron halo so the dark copper plate lifts off the maroon background */
.soh-why-plate {
  position: relative;
  border-radius: 50%;
}

.soh-why-plate::before {
  content: "";
  position: absolute;
  inset: -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 163, 27, .38) 0%, rgba(242, 120, 27, .14) 55%, transparent 72%);
}

.soh-why-plate img {
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(242, 163, 27, .35);
}

/*--------------------------------------------------------------
# Plate animation: plate → rice → leg pieces → original photo + steam
# Layers are the same photo split apart (assets/img/soh/why-*.webp).
# Without JS (or with reduced motion) only the final photo shows.
--------------------------------------------------------------*/
.soh-why-plate .lyr {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
}

.soh-why-plate .lyr-final {
  opacity: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(242, 163, 27, .35);
}

.soh-why-plate .lyr-plate {
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(242, 163, 27, .35);
}

.soh-why-plate .lyr-leg {
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .45));
}

/* origin of each leg = its centre in the photo, so it rotates/drops "in place" */
.soh-why-plate .lyr-leg1 { transform-origin: 41.5% 56%; }
.soh-why-plate .lyr-leg2 { transform-origin: 45.5% 74%; }

/* Steam */
.soh-why-plate .lyr-steam {
  position: absolute;
  left: 25%;
  top: -14%;
  width: 50%;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  filter: blur(2px);
}

.soh-why-plate .lyr-steam path {
  fill: none;
  stroke: rgba(255, 244, 228, .7);
  stroke-width: 5;
  stroke-linecap: round;
  animation: soh-steam 3.2s ease-in-out infinite;
}

.soh-why-plate .lyr-steam path:nth-child(2) { animation-delay: -1s; }
.soh-why-plate .lyr-steam path:nth-child(3) { animation-delay: -2.1s; }

@keyframes soh-steam {
  0% { transform: translateY(14px); opacity: 0; }
  45% { opacity: .85; }
  100% { transform: translateY(-26px); opacity: 0; }
}

/* Armed: hide everything, ready to play */
.soh-why-plate.is-armed .lyr {
  opacity: 0;
  animation: none;
}

/* Playing */
.soh-why-plate.is-playing .lyr-plate {
  animation: soh-plate-in 1s cubic-bezier(.2, .9, .3, 1.15) both;
}

.soh-why-plate.is-playing .lyr-rice {
  animation: soh-rice-in 1.15s cubic-bezier(.25, .8, .3, 1) .75s both;
}

.soh-why-plate.is-playing .lyr-leg1 {
  animation: soh-leg-drop .8s cubic-bezier(.3, .7, .35, 1) 1.75s both;
}

.soh-why-plate.is-playing .lyr-leg2 {
  animation: soh-leg-drop .8s cubic-bezier(.3, .7, .35, 1) 2.15s both;
}

.soh-why-plate.is-playing .lyr-final {
  animation: soh-fade-in .7s ease 3.05s both;
}

.soh-why-plate.is-playing .lyr-steam,
.soh-why-plate.is-done .lyr-steam {
  animation: soh-fade-in 1s ease 2.9s both;
}

.soh-why-plate.is-done .lyr-final {
  opacity: 1;
}

@keyframes soh-plate-in {
  0% { opacity: 0; transform: scale(.55) rotate(-120deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes soh-rice-in {
  0% { opacity: 0; clip-path: circle(0% at 50% 52%); transform: scale(.9) rotate(-14deg); }
  20% { opacity: 1; }
  100% { opacity: 1; clip-path: circle(72% at 50% 52%); transform: scale(1) rotate(0); }
}

@keyframes soh-leg-drop {
  0% { opacity: 0; transform: translateY(-55%) rotate(-22deg) scale(1.12); }
  55% { opacity: 1; transform: translateY(3%) rotate(3deg) scale(1); }
  75% { transform: translateY(-1.5%) rotate(-1deg); }
  100% { opacity: 1; transform: none; }
}

@keyframes soh-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .soh-why-plate .lyr-steam path {
    animation: none;
  }
}

/* Hero background photo – fills the whole screen (no zoom animation, so it stays sharp).
   Phones show the centre of the photo: the biryani pot. */
.soh-cine-media {
  background: url("../img/soh/hero-biryani-hd.webp?v=2") center / cover no-repeat;
}

/* Lighter shade so the biryani photo shows through clearly (text keeps its shadow for legibility) */
.soh-cine-shade {
  background:
    radial-gradient(ellipse 70% 62% at 50% 48%, rgba(20, 3, 2, .18) 0%, rgba(20, 3, 2, .38) 62%, rgba(20, 3, 2, .7) 100%),
    linear-gradient(180deg, rgba(20, 3, 2, .62) 0%, rgba(20, 3, 2, 0) 26%, rgba(20, 3, 2, 0) 66%, rgba(20, 3, 2, .9) 100%);
}

.soh-cine-tag,
.soh-cine-info,
.soh-cine-telugu {
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}

/* Telugu name: larger, brighter and with a dark outline so it reads clearly over the photo */
.soh-cine-telugu {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  color: #fff;
  letter-spacing: .02em;
  text-shadow:
    0 0 2px rgba(0, 0, 0, .95),
    0 1px 3px rgba(0, 0, 0, .9),
    0 3px 16px rgba(0, 0, 0, .85);
}

/*--------------------------------------------------------------
# Hero brand artwork (gateway + chilli wordmark) – the centrepiece
--------------------------------------------------------------*/
.soh-cine-brand {
  display: block;
  width: min(600px, 44vw, 64vh);
  height: auto;
  margin: 26px auto 4px;
  filter:
    drop-shadow(0 0 1px rgba(0, 0, 0, .6))
    drop-shadow(0 18px 40px rgba(0, 0, 0, .55))
    drop-shadow(0 0 60px rgba(242, 163, 27, .25));
  animation: soh-brand-in 1.1s cubic-bezier(.2, .8, .2, 1) .1s both;
}

@keyframes soh-brand-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.94);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* soft dark halo behind the artwork so it pops off the busy food photo */
.soh-cine-title {
  position: relative;
}

.soh-cine-title::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 55%;
  width: 130%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(20, 3, 2, .55), rgba(20, 3, 2, 0));
  pointer-events: none;
}

.soh-cine-brand + * {
  margin-top: 0;
}

@media (max-width: 767px) {
  .soh-cine-brand {
    width: min(92vw, 420px);
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .soh-cine-brand {
    animation: none;
  }
}

/* Caption under the hero artwork – same wording as the shop banner, bold and easy to read */
.soh-cine-caption {
  margin: 14px 0 0;
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  font-size: clamp(1.05rem, 1.9vw, 1.65rem);
  letter-spacing: .03em;
  line-height: 1.25;
  color: #fde815; /* same yellow as the gateway in the logo */
  text-shadow:
    0 0 2px rgba(0, 0, 0, .95),
    0 1px 3px rgba(0, 0, 0, .9),
    0 3px 14px rgba(0, 0, 0, .8);
}

.soh-cine-caption .nw {
  white-space: nowrap;
}

.soh-cine-caption .hl {
  color: #fde815;
}

/* the rule after the Telugu name now leads straight into the buttons */
.soh-cine-rule {
  margin-bottom: 28px;
}

@media (max-width: 767px) {
  .soh-cine-caption {
    max-width: 330px;
    font-size: 1.08rem;
  }
}
