:root {
  --maroon: #cc1b1b;
  --maroon-deep: #a01010;
  --maroon-light: #e02020;
  --orange: #cc1b1b;
  --orange-bright: #e52020;
  --cream: #fff8f8;
  --cream-dark: #f5e8e8;
  --cream-deeper: #edd5d5;
  --charcoal: #1a1a1a;
  --charcoal-mid: #2a2a2a;
  --gold: #e8b84b;
  --gold-light: #f5cd6a;
  --white: #ffffff;
  --text-dark: #1a0505;
  --text-mid: #3a1010;
  --kbc-red: #cc1b1b;
  --kbc-red-dark: #a01010;
  --kbc-red-bright: #e52020;
  --kbc-red-deep: #7d0a0a;
  --kbc-white: #ffffff;
  --kbc-gold: #e8b84b;
  --kbc-cream: #fff8f8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Crimson Pro", Georgia, serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 5% 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 12s ease-in-out infinite alternate;
  background-image: url("../images/thalasherichickenbiriyani1.jpg");
}

@keyframes heroZoom {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1.12);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10, 2, 2, 0.58) 0%,
    rgba(120, 8, 8, 0.44) 50%,
    rgba(8, 1, 1, 0.88) 100%
  );
}

.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 2;
  animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-block;
  font-family: "Amiri", serif;
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 20px;
  margin-bottom: 1.5rem;
  border-radius: 1px;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  color: var(--white);
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-title-animated {
  position: relative;
  display: inline-block;
  padding: 0.25em 0.4em;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s ease-out, transform 0.85s ease-out;
}

.hero-title-animated.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-title-animated::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 214, 150, 0.18),
    transparent 55%
  );
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(1.05);
  filter: blur(10px);
  pointer-events: none;
  transition: opacity 1.6s ease-out, transform 1.6s ease-out;
}

.hero-title-animated.is-visible::before {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1.06);
}

.hero-title-animated::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -15%;
  width: 40%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 248, 220, 0.5) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  transform: translate3d(-60%, 0, 0);
  pointer-events: none;
}

.hero-title-animated.is-visible::after {
  animation: heroShimmer 4s ease-out 0.4s forwards;
}

@keyframes heroShimmer {
  0% {
    opacity: 0;
    transform: translate3d(-60%, 0, 0);
  }
  15% {
    opacity: 1;
  }
  55% {
    opacity: 0.9;
    transform: translate3d(130%, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(160%, 0, 0);
  }
}

.hero-title-animated span {
  display: inline-block;
}

.hero-title-animated:hover {
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -6px, 0);
  }
}

.hero-title-animated {
  text-shadow: 0 0 18px rgba(255, 188, 88, 0.45), 0 0 30px rgba(0, 0, 0, 0.6);
}

.hero-title-phrase-rotator {
  display: inline-block;
  position: relative;
  margin-right: 0.2em;
  white-space: nowrap;
  text-align: center;
  line-height: 1.5;
}

.hero-title-phrase-rotator::after {
  content: "Authentic Kozhikodan";
  visibility: hidden;
  opacity: 0;
  white-space: nowrap;
}

.hero-title-phrase {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
  animation: heroWordCycle 15s ease-in-out infinite;
  background-image: linear-gradient(
    120deg,
    var(--cream) 0%,
    #ffb7b7 30%,
    #ff9966 65%,
    var(--cream-deeper) 100%
  );
  background-size: 150% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
}

.hero-title-phrase-1 {
  animation-delay: 0s;
}
.hero-title-phrase-2 {
  animation-delay: 3s;
}
.hero-title-phrase-3 {
  animation-delay: 6s;
}
.hero-title-phrase-4 {
  animation-delay: 9s;
}
.hero-title-phrase-5 {
  animation-delay: 12s;
}

@keyframes heroWordCycle {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  8% {
    opacity: 1;
    transform: translateY(0);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  24% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.hero-title span:not(.hero-title-phrase) {
  color: var(--gold-light);
  font-style: italic;
}
.hero-sub {
  font-family: "Crimson Pro", serif;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--cream-dark);
  margin-bottom: 2.5rem;
  font-style: italic;
  letter-spacing: 1px;
}

.hero-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0 auto 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background-image: linear-gradient(
    135deg,
    var(--kbc-red-deep) 0%,
    var(--kbc-red) 40%,
    var(--kbc-gold) 100%
  );
  color: white;
  padding: 14px 32px;
  border: none;
  border-radius: 2px;
  font-family: "Crimson Pro", serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(204, 27, 27, 0.4);
}

.btn-primary.btn-menu-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary.btn-menu-hero::before,
.btn-primary.btn-menu-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* Plate + rice/steam glow */
.btn-primary.btn-menu-hero::before {
  inset: auto;
  left: 50%;
  bottom: -5%;
  width: 180%;
  height: 120%;
  transform: translateX(-50%) scale(0.95);
  border-radius: 999px;
  background: radial-gradient(
      circle at 50% 30%,
      rgba(255, 233, 186, 0.9) 0%,
      rgba(245, 200, 125, 0.95) 18%,
      rgba(214, 140, 70, 0.95) 45%,
      rgba(120, 42, 22, 0.9) 65%,
      rgba(53, 16, 10, 0) 100%
    ),
    radial-gradient(
      circle at 40% 0%,
      rgba(255, 255, 255, 0.4) 0%,
      transparent 55%
    );
  opacity: 0;
  filter: blur(2px);
}

/* Spoon / hand shape */
.btn-primary.btn-menu-hero::after {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 240, 210, 1) 0%,
    rgba(245, 210, 150, 1) 40%,
    rgba(185, 140, 90, 1) 100%
  );
  box-shadow: 10px 0 0 0 rgba(110, 70, 40, 1);
  top: -30%;
  right: -10%;
  transform: translate3d(0, 0, 0) rotate(24deg);
  opacity: 0;
}

.btn-primary.btn-menu-hero:hover,
.btn-primary.btn-menu-hero:focus-visible,
.btn-primary.btn-menu-hero:active {
  animation: btnMenuPress 0.18s ease-out forwards;
}

.btn-primary.btn-menu-hero:hover::before,
.btn-primary.btn-menu-hero:focus-visible::before,
.btn-primary.btn-menu-hero:active::before {
  animation: btnPlateSteam 1.3s ease-out forwards;
}

.btn-primary.btn-menu-hero:hover::after,
.btn-primary.btn-menu-hero:focus-visible::after,
.btn-primary.btn-menu-hero:active::after {
  animation: btnSpoonScoop 1.3s ease-out forwards;
}

@keyframes btnMenuPress {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    box-shadow: 0 4px 15px rgba(204, 27, 27, 0.4);
  }
  50% {
    transform: translate3d(0, 2px, 0) scale(0.985);
    box-shadow: 0 2px 10px rgba(120, 20, 20, 0.5);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    box-shadow: 0 4px 15px rgba(204, 27, 27, 0.4);
  }
}

@keyframes btnPlateSteam {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.6);
  }
  30% {
    opacity: 1;
    transform: translateX(-50%) scale(0.9);
  }
  65% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.02) translate3d(0, -4px, 0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.05) translate3d(0, -10px, 0);
  }
}

@keyframes btnSpoonScoop {
  0% {
    opacity: 0;
    transform: translate3d(40px, -24px, 0) rotate(26deg);
  }
  20% {
    opacity: 1;
    transform: translate3d(8px, -8px, 0) rotate(18deg);
  }
  45% {
    transform: translate3d(-6px, 4px, 0) rotate(8deg);
  }
  65% {
    transform: translate3d(-4px, 10px, 0) rotate(4deg);
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(32px, 24px, 0) rotate(26deg);
  }
}

.btn-primary:hover {
  background-image: linear-gradient(
    135deg,
    var(--kbc-red-bright) 0%,
    var(--kbc-red) 35%,
    var(--kbc-gold) 95%
  );
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 27, 27, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  padding: 14px 32px;
  border: 1.5px solid rgba(245, 237, 216, 0.6);
  border-radius: 2px;
  font-family: "Crimson Pro", serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: rgba(245, 237, 216, 0.1);
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn-secondary.btn-directions-hero {
  position: relative;
  overflow: hidden;
}

.btn-secondary.btn-directions-hero::before,
.btn-secondary.btn-directions-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* Pulse ring behind the pin */
.btn-secondary.btn-directions-hero::before {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid rgba(245, 205, 122, 0);
  top: 50%;
  left: 18px;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
}

/* Moving “route” line under the text */
.btn-secondary.btn-directions-hero::after {
  left: 18%;
  right: 18%;
  bottom: 8px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(245, 205, 122, 0.1) 0%,
    rgba(245, 205, 122, 0.9) 35%,
    rgba(245, 205, 122, 0.2) 70%,
    rgba(245, 205, 122, 0) 100%
  );
  opacity: 0;
  transform: translate3d(-40%, 0, 0);
}

.btn-secondary.btn-directions-hero:hover::before,
.btn-secondary.btn-directions-hero:focus-visible::before {
  animation: directionsPulse 1.1s ease-out forwards;
}

.btn-secondary.btn-directions-hero:hover::after,
.btn-secondary.btn-directions-hero:focus-visible::after {
  animation: directionsRoute 0.9s ease-out forwards;
}

@keyframes directionsPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    border-color: rgba(245, 205, 122, 0);
  }
  40% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
    border-color: rgba(245, 205, 122, 0.7);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.25);
    border-color: rgba(245, 205, 122, 0);
  }
}

@keyframes directionsRoute {
  0% {
    opacity: 0;
    transform: translate3d(-40%, 0, 0);
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 0.95;
    transform: translate3d(30%, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(40%, 0, 0);
  }
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  opacity: 0.6;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  z-index: 2;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}
