/* =========================================
   HERO
   ========================================= */

.hero {
  position: relative;
  min-height: 100svh;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height-mobile);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Dot-grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201, 157, 102, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: center;
}

/* ---- Content ---- */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Welcome pill */
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.10);
  border: 0.3px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  padding: 6px 16px 6px 10px;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeSlideUp 0.55s ease 0.1s forwards;
}

.hero__pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

/* Heading */
.hero__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 3.5vw, 2.5rem);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeSlideUp 0.55s ease 0.2s forwards;
}

/* "Memory" word highlight */
.hero__heading-highlight {
  position: relative;
  color: var(--color-accent);
  display: inline-block;
}

.hero__heading-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 8'%3E%3Cpath d='M2 6 Q40 1 80 5 Q120 9 158 3' stroke='%23c99d66' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* Description */
.hero__description {
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: var(--space-lg);
  max-width: 440px;
  opacity: 0;
  animation: fadeSlideUp 0.55s ease 0.3s forwards;
}

/* Buttons */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeSlideUp 0.55s ease 0.4s forwards;
}

.hero__actions .btn {
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
}

/* Explore Menu — glassy hero button */
.hero__actions .btn--outline {
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero__actions .btn--outline:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

.hero__actions .btn--outline:active {
  background: rgba(255, 255, 255, 1);
  border-color: var(--color-white);
  color: var(--color-primary);
}

/* Reserve a Table — hero overrides */
.hero__actions .btn--primary {
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  color: var(--color-white);
}

.hero__actions .btn--primary:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

.hero__actions .btn--primary:active {
  background: rgba(255, 255, 255, 1);
  border-color: var(--color-white);
  color: var(--color-primary);
}

/* Reserve a Table — gold background, white text */
.hero__actions .hero__reserve-btn {
  background: #c99d66;
  border-color: #c99d66;
  color: var(--color-white);
}

.hero__actions .hero__reserve-btn:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-white);
  box-shadow: var(--shadow-accent);
}

.hero__actions .hero__reserve-btn:active {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-white);
}

/* Hours */
.hero__hours {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  animation: fadeSlideUp 0.55s ease 0.5s forwards;
}

.hero__hours strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: var(--fw-semibold);
}

.hero__hours-icon {
  flex-shrink: 0;
  color: var(--color-white);
}

/* ---- Floating dish cards (col 3) ---- */
.hero__dish-cards {
  display: none; /* hidden on mobile, shown on desktop */
  flex-direction: column;
  gap: var(--space-md);
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease 0.5s forwards;
}

.hero__dish-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 0.3px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  padding: 8px 20px 8px 8px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background var(--transition-base), transform var(--transition-base);
  cursor: pointer;
}

.hero__dish-card:hover {
  background: rgba(255,255,255,0.13);
  transform: translateX(-4px);
}

.hero__dish-card.is-active {
  background: rgba(201,157,102,0.2);
  border-color: rgba(201,157,102,0.5);
  transform: translateX(-6px);
}

.hero__dish-card.is-active .hero__dish-card-name {
  color: var(--color-accent);
}

.hero__dish-card-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
}

.hero__dish-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__dish-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__dish-card-name {
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  white-space: nowrap;
}

.hero__dish-card-price {
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  color: var(--color-accent);
}

/* ---- Visual ---- */
.hero__visual {
  position: relative;
  /* Fluid: never wider than viewport minus padding */
  width: min(300px, 88vw);
  height: min(300px, 88vw);
  flex-shrink: 0;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.35s forwards;
}

/* Image frame */
.hero__img-frame {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Soft glow beneath the dish */
.hero__img-frame::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 30%;
  background: radial-gradient(ellipse at center, rgba(201, 157, 102, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 48px rgba(0,0,0,0.45));
  animation: spinDish 18s linear infinite;
  transform-origin: center center;
}

@keyframes spinDish {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Floating badges */
.hero__badge {
  position: absolute;
  background: var(--color-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  white-space: nowrap;
}

.hero__badge--top {
  top: 8%;
  right: 4%;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px 6px 10px;
  animation: floatY 3.5s ease-in-out infinite;
}

.hero__badge--top svg,
.hero-badge-star { fill: var(--color-accent); flex-shrink: 0; }

.hero-badge-star-white { fill: var(--color-white); }

.hero__badge--bottom {
  bottom: 10%;
  left: 12%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  animation: floatY 4s ease-in-out 1s infinite;
}

/* Hide badges on very small screens */
@media (max-width: 374px) {
  .hero__badge { display: none; }
}

/* ---- Decorative dots ---- */
.hero__dots {
  position: absolute;
  bottom: 2rem;
  left: calc(var(--container-padding));
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, rgba(201, 157, 102, 0.4) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* ---- Keyframes ---- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-9px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ---- Small mobile (375px+) ---- */
@media (min-width: 375px) {
  .hero__visual {
    width: min(340px, 88vw);
    height: min(340px, 88vw);
  }
}

/* ---- iPad Mini (768px+) ---- */
@media (min-width: 768px) {
  .hero {
    padding-top: var(--header-height);
  }

  .hero__inner {
    padding-block: var(--space-3xl) var(--space-2xl);
    gap: var(--space-2xl);
    justify-content: center;
  }

  .hero__pill {
    font-size: 0.875rem;
    padding: 8px 18px 8px 12px;
  }

  .hero__heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
  }

  .hero__description {
    font-size: 1.0625rem;
    max-width: 500px;
  }

  .hero__actions .btn {
    font-size: 1rem;
    padding: 0.875rem 2rem;
  }

  .hero__hours {
    font-size: 0.9375rem;
  }

  .hero__visual {
    width: 460px;
    height: 460px;
  }
}

/* ---- Asus ZenBook Fold (853px) ---- */
@media (min-width: 853px) {
  .hero__inner {
    gap: var(--space-3xl);
    padding-block: var(--space-4xl) var(--space-3xl);
  }

  .hero__pill {
    font-size: 0.9375rem;
    padding: 9px 20px 9px 14px;
  }

  .hero__heading {
    font-size: clamp(1.625rem, 3vw, 2.125rem);
    margin-bottom: var(--space-lg);
  }

  .hero__description {
    font-size: 1.1rem;
    max-width: 560px;
    margin-bottom: var(--space-xl);
  }

  .hero__actions .btn {
    font-size: 1.0625rem;
    padding: 0.9375rem 2.25rem;
  }

  .hero__hours {
    font-size: 1rem;
  }

  .hero__visual {
    width: 520px;
    height: 520px;
  }
}

/* ---- Surface Pro / large tablet (900px) ---- */
@media (min-width: 900px) {
  .hero__inner {
    gap: var(--space-3xl);
    padding-block: var(--space-4xl) var(--space-3xl);
  }

  .hero__pill {
    font-size: 1rem;
    padding: 10px 22px 10px 16px;
  }

  .hero__pill-dot {
    width: 9px;
    height: 9px;
  }

  .hero__heading {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: var(--space-lg);
  }

  .hero__description {
    font-size: 1.125rem;
    max-width: 580px;
    margin-bottom: var(--space-xl);
  }

  .hero__actions .btn {
    font-size: 1.0625rem;
    padding: 1rem 2.25rem;
  }

  .hero__hours {
    font-size: 1rem;
  }

  .hero__visual {
    width: 560px;
    height: 560px;
  }
}

/* ---- iPad Pro (1024px) ---- */
@media (min-width: 1024px) {
  .hero {
    padding-top: var(--header-height);
  }

  .hero__inner {
    min-height: calc(100svh - var(--header-height));
    justify-content: center;
    align-items: center;
    padding-block: 0;
    gap: var(--space-4xl);
  }

  .hero__pill {
    font-size: 1.0625rem;
    padding: 10px 24px 10px 16px;
  }

  .hero__pill-dot {
    width: 10px;
    height: 10px;
  }

  .hero__heading {
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    margin-bottom: var(--space-lg);
  }

  .hero__description {
    font-size: 1.1875rem;
    max-width: 620px;
    margin-bottom: var(--space-xl);
  }

  .hero__hours {
    font-size: 1.0625rem;
  }

  .hero__actions .btn {
    font-size: 1.125rem;
    padding: 1.0625rem 2.5rem;
  }

  .hero__visual {
    width: 620px;
    height: 520px;
  }
}

/* ---- Desktop (1280px+): 3-column layout ---- */
@media (min-width: 1280px) {
  .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    padding-block: 0;
    min-height: calc(100svh - var(--header-height));
  }

  .hero__content {
    align-items: flex-start;
    text-align: left;
    flex: 0 0 28%;
    max-width: 28%;
    flex-shrink: 0;
  }

  .hero__description {
    max-width: 360px;
  }

  .hero__actions {
    justify-content: flex-start;
    gap: var(--space-md);
  }

  .hero__visual {
    width: 420px;
    height: 420px;
    flex-shrink: 0;
    opacity: 0;
    animation: fadeSlideLeft 0.7s ease 0.4s forwards;
  }

  /* Show dish cards on desktop */
  .hero__dish-cards {
    display: flex;
    flex: 0 0 220px;
  }

  /* Scale content to fit narrow left column */
  .hero__heading {
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
    line-height: 1.15;
  }

  .hero__description {
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 100%;
  }

  .hero__pill {
    font-size: 0.6875rem;
    padding: 5px 14px 5px 9px;
  }

  /* Buttons side by side */
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .hero__actions .btn {
    font-size: 0.8125rem;
    padding: 0.6875rem 1.125rem;
  }

  .hero__hours {
    font-size: 0.75rem;
  }
}

@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---- Wide (1440px+) ---- */
@media (min-width: 1440px) {
  .hero__visual {
    width: 500px;
    height: 500px;
  }
}

/* ---- Nest Hub (short viewport ≤ 650px tall) ---- */
@media (min-width: 1024px) and (max-height: 650px) {
  .hero {
    padding-top: calc(var(--header-height) + var(--space-2xl));
  }

  .hero__inner {
    padding-block: var(--space-2xl);
    min-height: 0;
  }
}

/* ---- Phone landscape — side-by-side layout ---- */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 100svh;
    padding-top: var(--header-height-mobile);
  }

  .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-block: var(--space-lg);
    gap: var(--space-xl);
    min-height: calc(100svh - var(--header-height-mobile));
  }

  .hero__content {
    flex: 1;
    align-items: flex-start;
    text-align: left;
    max-width: 52%;
  }

  .hero__heading {
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    margin-bottom: var(--space-sm);
  }

  .hero__description {
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
    max-width: 340px;
  }

  .hero__actions {
    justify-content: flex-start;
    margin-bottom: var(--space-sm);
  }

  .hero__actions .btn {
    font-size: 0.8125rem;
    padding: 0.625rem 1.25rem;
  }

  .hero__hours {
    font-size: 0.75rem;
  }

  .hero__visual {
    width: min(200px, 36vw);
    height: min(200px, 36vw);
    flex-shrink: 0;
  }
}
