﻿/* ===================================================== */
/* HOME.CSS                                              */
/* File CSS riêng cho trang chủ Seoul Soul.              */
/* Các phần chính: Hero, Story, Highlights, Ambience.    */
/* ===================================================== */


/* ===================================================== */
/* HERO SECTION                                          */
/* Phần đầu trang. Ảnh nền phủ toàn bộ hero, không chia ô. */
/* ===================================================== */

.home-hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 74px 0 56px;
  background: #f6eadb;
}

/* Ảnh hero chính phủ toàn bộ section */
.home-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  background-image: url("../assets/images/home-hero-bibimbap.webp");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  box-shadow: none;
  transform: none;
}

/* Tắt lớp phủ mặc định của class .photo để ảnh không bị chia mảng */
.home-hero__photo::after {
  display: none;
}

/* Lớp phủ sáng bên trái giúp chữ dễ đọc nhưng vẫn giữ ảnh liền mạch */
.home-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(249, 242, 232, 0.96) 0%,
      rgba(249, 242, 232, 0.88) 28%,
      rgba(249, 242, 232, 0.5) 48%,
      rgba(249, 242, 232, 0.12) 72%,
      rgba(249, 242, 232, 0) 100%
    );
  content: "";
}

/* Logo phụ trong hero.
   Header đã có logo chính, nên ẩn logo này để tránh bị trùng. */
.home-hero__brand {
  display: none;
}

/* Khối nội dung chữ bên trái */
.home-hero__content {
  position: relative;
  z-index: 3;
  width: min(1280px, calc(100% - 72px));
  margin: 0 auto;
}

/* Giới hạn chiều rộng để tiêu đề không quá dài */
.home-hero__text {
  max-width: 560px;
}

/* Đoạn mô tả dưới tiêu đề */
.home-hero__text .copy {
  max-width: 350px;
  color: rgba(91, 61, 44, 0.78);
}

/* Khu vực nút Explore Menu */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

/* Ảnh gốc đã có khói, nên tắt khói CSS này nếu không muốn hiệu ứng bị rối */
.steam--hero {
  display: none;
}


/* ===================================================== */
/* HERO STEAM                                            */
/* Ảnh hero đứng yên, chỉ có khói bay lên từ miệng bát.  */
/* Mỗi span trong .steam là một làn khói riêng.           */
/* ===================================================== */

.home-hero .steam {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.home-hero .steam span {
  position: absolute;
  left: 73%;
  top: 34%;
  bottom: auto;
  width: 74px;
  height: 210px;
  border-radius: 999px;
  background:
    radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, 0.82) 0%,
      rgba(232, 222, 207, 0.42) 38%,
      rgba(120, 96, 76, 0.16) 58%,
      transparent 74%
    );
  filter: blur(16px);
  opacity: 0;
  transform-origin: center bottom;
  animation: homeHeroSteamRise 7.2s ease-in-out infinite;
}

.home-hero .steam span:nth-child(1) {
  left: 66%;
  top: 38%;
  animation-delay: -5.8s;
}

.home-hero .steam span:nth-child(2) {
  left: 70%;
  top: 32%;
  animation-delay: -4.4s;
  animation-duration: 7.6s;
}

.home-hero .steam span:nth-child(3) {
  left: 74%;
  top: 36%;
  animation-delay: -3.1s;
  animation-duration: 6.4s;
}

.home-hero .steam span:nth-child(4) {
  left: 78%;
  top: 30%;
  width: 66px;
  animation-delay: -1.9s;
  animation-duration: 8s;
}

.home-hero .steam span:nth-child(5) {
  left: 69%;
  top: 43%;
  width: 58px;
  animation-delay: -0.9s;
  animation-duration: 6.9s;
}

.home-hero .steam span:nth-child(6) {
  left: 82%;
  top: 40%;
  width: 60px;
  animation-delay: -6.5s;
  animation-duration: 7.4s;
}

@keyframes homeHeroSteamRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 54px, 0) scale(0.62) rotate(0deg);
  }

  18% {
    opacity: 0.76;
  }

  54% {
    opacity: 0.42;
    transform: translate3d(-20px, -70px, 0) scale(1.12) rotate(-6deg);
  }

  100% {
    opacity: 0;
    transform: translate3d(28px, -190px, 0) scale(1.5) rotate(8deg);
  }
}


/* ===================================================== */
/* STORY TEASER                                          */
/* Phần giới thiệu ngắn bên dưới hero.                   */
/* ===================================================== */

.story-teaser {
  border-top: 1px solid var(--color-line);
}

/* Ảnh organic nếu trang Home có dùng khối ảnh bo tự nhiên */
.organic-photo {
  min-height: 330px;
  border-radius: 42% 54% 46% 58% / 40% 43% 54% 55%;
}

/* Vòng tròn chữ Hàn trang trí trên ảnh */
.organic-photo::before {
  position: absolute;
  right: -22px;
  top: -18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: var(--color-terracotta);
  background: rgba(255, 250, 242, 0.76);
  content: "서울";
  font-family: var(--font-display);
  font-size: 24px;
}


/* ===================================================== */
/* MENU HIGHLIGHTS                                       */
/* Các món nổi bật trên trang chủ.                       */
/* Hỗ trợ cả class cũ .highlights và class mới .menu-highlights. */
/* ===================================================== */

.highlights,
.menu-highlights {
  background: rgba(255, 250, 242, 0.28);
  border-top: 1px solid rgba(91, 61, 44, 0.09);
  border-bottom: 1px solid rgba(91, 61, 44, 0.09);
}

/* Header của khu món nổi bật */
.highlights__header {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 36px;
  text-align: center;
}

/* Grid cũ nếu bạn vẫn dùng .home-card-grid */
.home-card-grid {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 24px;
}

.home-card-grid .food-card__image {
  min-height: 170px;
}

.home-card-grid .food-card__body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 190px;
  text-align: center;
}

.home-card-grid .food-card__meta {
  align-self: end;
  margin-top: 18px;
}

.home-card-grid .card-title {
  font-size: 23px;
}

/* Grid mới nếu HTML đang dùng .highlight-grid */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Nút xem toàn bộ menu */
.view-menu-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}


/* ===================================================== */
/* AMBIENCE BAND                                         */
/* Section không gian nhà hàng, thường là ảnh full width. */
/* ===================================================== */

.ambience-band {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: 0;
  color: var(--color-white);
  background: var(--color-brown-deep);
}

/* Hỗ trợ cả tên class cũ .ambience-band__photo và class mới .ambience-band__image */
.ambience-band__photo,
.ambience-band__image {
  position: absolute;
  inset: 0;
  border-radius: 0;
  box-shadow: none;
}

.ambience-band__photo::after,
.ambience-band__image::after {
  background:
    linear-gradient(
      90deg,
      rgba(33, 17, 7, 0.36),
      rgba(33, 17, 7, 0.86) 58%,
      rgba(33, 17, 7, 0.96)
    );
}

/* Nội dung chữ trong ambience band */
.ambience-band__content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: end;
  width: min(1280px, calc(100% - 72px));
  margin: 0 auto;
  padding: 72px 0;
}

/* Khung giới hạn chữ bên phải */
.ambience-band__panel {
  width: min(510px, 100%);
}

/* Chữ trong ambience dùng màu trắng để nổi trên ảnh tối */
.ambience-band .section-title,
.ambience-band .copy,
.ambience-band .eyebrow {
  color: var(--color-white);
}

/* Thumbnail trang trí bên phải */
.ambience-thumbs {
  display: grid;
  gap: 12px;
  position: absolute;
  right: 36px;
  top: 44px;
  width: 92px;
}

.ambience-thumbs span {
  display: block;
  height: 72px;
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 12px;
  background-image: var(--img-home);
  background-size: 360%;
  background-position: 78% 78%;
}


/* ===================================================== */
/* TABLET RESPONSIVE                                     */
/* Tối ưu cho màn hình nhỏ hơn 980px.                    */
/* ===================================================== */

@media (max-width: 980px) {
  .home-hero {
    min-height: 760px;
    padding: 48px 0 54px;
  }

  .home-hero__content {
    width: min(100%, calc(100% - 34px));
  }

  .home-hero__text {
    max-width: 520px;
  }

  .home-hero__photo {
    background-position: center right;
  }

  .made-badge {
    right: 28px;
    bottom: 34px;
  }

  .home-hero .steam span {
    left: 64%;
    top: 46%;
  }

  .home-hero .steam span:nth-child(1) { left: 55%; top: 50%; }
  .home-hero .steam span:nth-child(2) { left: 61%; top: 44%; }
  .home-hero .steam span:nth-child(3) { left: 67%; top: 48%; }
  .home-hero .steam span:nth-child(4) { left: 73%; top: 42%; }
  .home-hero .steam span:nth-child(5) { left: 59%; top: 55%; }
  .home-hero .steam span:nth-child(6) { left: 76%; top: 53%; }

  .home-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ambience-thumbs {
    display: none;
  }
}


/* ===================================================== */
/* MOBILE RESPONSIVE                                     */
/* Tối ưu cho điện thoại.                                */
/* ===================================================== */

@media (max-width: 640px) {
  .home-hero {
    min-height: 720px;
    padding: 36px 0 44px;
    align-items: start;
  }

  /* Mobile dùng ảnh crop riêng để món ăn rõ hơn */
  .home-hero__photo {
    background-image: url("../assets/images/home-hero-bibimbap-mobile.webp");
    background-position: center bottom;
  }

  /* Trên mobile dùng overlay từ trên xuống để chữ dễ đọc */
  .home-hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(249, 242, 232, 0.96) 0%,
        rgba(249, 242, 232, 0.86) 38%,
        rgba(249, 242, 232, 0.42) 62%,
        rgba(249, 242, 232, 0.1) 100%
      );
  }

  .home-hero__text {
    max-width: 100%;
  }

  .home-hero__text .copy {
    max-width: 310px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .made-badge {
    right: 20px;
    bottom: 24px;
    width: 90px;
    height: 90px;
    font-size: 12px;
  }

  .home-hero .steam span {
    width: 52px;
    height: 150px;
    filter: blur(14px);
  }

  .home-hero .steam span:nth-child(1) { left: 45%; top: 54%; }
  .home-hero .steam span:nth-child(2) { left: 52%; top: 48%; }
  .home-hero .steam span:nth-child(3) { left: 59%; top: 52%; }
  .home-hero .steam span:nth-child(4) { left: 66%; top: 47%; }
  .home-hero .steam span:nth-child(5) { left: 49%; top: 59%; }
  .home-hero .steam span:nth-child(6) { left: 70%; top: 57%; }

  .home-card-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .ambience-band__content {
    width: min(100%, calc(100% - 34px));
    justify-items: start;
  }
}


/* ===================================================== */
/* STORY TEASER FINAL OVERRIDE                           */
/* Đặt cuối file để style Story mới ghi đè style cũ.     */
/* ===================================================== */

.story-teaser {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgba(91, 61, 44, 0.12);
  border-bottom: 1px solid rgba(91, 61, 44, 0.08);
  background:
    radial-gradient(circle at 24% 52%, rgba(255, 250, 242, 0.96), transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(184, 132, 69, 0.1), transparent 32%),
    linear-gradient(90deg, rgba(251, 246, 238, 0.98), rgba(246, 239, 229, 0.86));
}

/* Lớp nền trang trí, không chứa nội dung thật */
.story-teaser__background {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.story-teaser__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.9;
}

.story-teaser__glow--left {
  left: -10vw;
  top: 12%;
  width: 44vw;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 250, 242, 0.88), rgba(255, 250, 242, 0));
}

.story-teaser__glow--right {
  right: -8vw;
  bottom: -24%;
  width: 48vw;
  height: 420px;
  background: radial-gradient(circle, rgba(184, 132, 69, 0.14), rgba(184, 132, 69, 0));
}

.story-teaser__brush {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -72px;
  height: 250px;
  background:
    radial-gradient(ellipse at 28% 70%, rgba(91, 61, 44, 0.06), transparent 52%),
    radial-gradient(ellipse at 56% 54%, rgba(170, 63, 34, 0.04), transparent 56%),
    radial-gradient(ellipse at 80% 78%, rgba(66, 37, 22, 0.045), transparent 58%);
  opacity: 0.72;
}

.story-teaser__grid {
  position: relative;
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1fr);
}

.story-teaser__media {
  position: relative;
}

.story-teaser__media::before {
  position: absolute;
  inset: 24px -18px -18px 22px;
  z-index: -1;
  border-radius: 46% 54% 46% 58% / 42% 43% 54% 55%;
  background: rgba(255, 250, 242, 0.74);
  box-shadow: 0 30px 70px rgba(54, 31, 19, 0.12);
  content: "";
}

.organic-photo {
  min-height: 360px;
  border: 1px solid rgba(255, 250, 242, 0.78);
  border-radius: 42% 54% 46% 58% / 40% 43% 54% 55%;
  box-shadow: 0 24px 58px rgba(54, 31, 19, 0.16);
}

/* Ẩn stamp cũ tạo bằng pseudo-element để chỉ còn stamp mới trong HTML */
.organic-photo::before {
  display: none;
}

.story-teaser__stamp {
  position: absolute;
  right: 28px;
  top: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(170, 63, 34, 0.2);
  border-radius: 50%;
  color: rgba(170, 63, 34, 0.62);
  background: rgba(255, 250, 242, 0.78);
  box-shadow: 0 14px 34px rgba(54, 31, 19, 0.08);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.05;
  text-align: center;
  backdrop-filter: blur(8px);
}

.story-teaser__content {
  position: relative;
}

.story-route {
  display: grid;
  grid-template-columns: auto minmax(90px, 180px) auto;
  gap: 14px;
  align-items: center;
  width: min(100%, 390px);
  margin-top: 24px;
  color: var(--color-terracotta-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-route i {
  position: relative;
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(170, 63, 34, 0.18), rgba(170, 63, 34, 0.58), rgba(170, 63, 34, 0.18));
}

.story-route i::before,
.story-route i::after {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(170, 63, 34, 0.52);
  background: var(--color-paper-soft);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.story-route i::before {
  left: 0;
}

.story-route i::after {
  right: 0;
}

.story-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 470px);
  margin-top: 24px;
}

.story-facts div {
  padding: 16px 18px;
  border: 1px solid rgba(91, 61, 44, 0.11);
  border-radius: 14px;
  background: rgba(255, 250, 242, 0.58);
}

.story-facts strong,
.story-facts span {
  display: block;
}

.story-facts strong {
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.story-facts span {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .story-teaser__grid {
    grid-template-columns: 1fr;
  }

  .story-teaser__media {
    width: min(640px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .organic-photo {
    min-height: 280px;
  }

  .story-teaser__stamp {
    right: 14px;
    top: 8px;
    width: 66px;
    height: 66px;
    font-size: 16px;
  }

  .story-route,
  .story-facts {
    grid-template-columns: 1fr;
  }

  .story-route i {
    width: 120px;
  }
}


/* ===================================================== */
/* STORY TEASER DESIGN MATCH                             */
/* Style cuối cùng để Story section gần với mẫu reference. */
/* ===================================================== */

.story-teaser {
  min-height: 430px;
  padding: 48px 0 44px;
  border-top: 1px solid rgba(91, 61, 44, 0.08);
  border-bottom: 1px solid rgba(91, 61, 44, 0.08);
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.16), rgba(255, 250, 242, 0.08)),
    url("../assets/images/story-paper-bg.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Lớp nền phủ toàn section, dùng để giữ các decor phụ */
.story-teaser__background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Ánh sáng mềm quanh ảnh blob */
.story-teaser__glow--left {
  left: -9vw;
  top: 8%;
  width: 48vw;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 250, 242, 0.92), transparent 66%);
}

/* Ánh sáng ấm rất nhẹ sau cột chữ */
.story-teaser__glow--right {
  right: -18vw;
  bottom: -38%;
  width: 58vw;
  height: 440px;
  background: radial-gradient(circle, rgba(184, 132, 69, 0.08), transparent 64%);
}

/* Tắt wash cũ để nền không tạo mảng vuông */
.story-teaser__brush {
  display: none;
}

/* Tắt vân sóng CSS vì ảnh nền hiện tại đã có vân trang trí */
.story-teaser__waves {
  display: none;
}

.story-teaser__grid {
  grid-template-columns: minmax(470px, 0.95fr) minmax(340px, 0.85fr);
  gap: clamp(46px, 6vw, 92px);
  align-items: center;
}

.story-teaser__media {
  position: relative;
  min-height: 300px;
}

/* Bóng trắng phía sau ảnh, tạo cảm giác ảnh được cắt trên nền giấy */
.story-teaser__media::before {
  inset: 20px -26px -18px 20px;
  border-radius: 38% 52% 42% 20% / 26% 32% 44% 24%;
  background: rgba(255, 250, 242, 0.78);
  box-shadow: 0 22px 54px rgba(54, 31, 19, 0.1);
}

/* Ảnh story riêng lấy từ source cũ để khớp mẫu reference */
.story-teaser .organic-photo {
  --photo-source: url("../assets/images/home-story-interior.png");
  min-height: 305px;
  border: 0;
  border-radius: 34% 55% 45% 18% / 24% 30% 48% 24%;
  background-position: center;
  background-size: cover;
  box-shadow: none;
}

/* Lớp phủ nhẹ trên ảnh, tránh dùng cutout quá mạnh */
.story-teaser .organic-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 66%, rgba(33, 17, 7, 0.1));
  content: "";
  pointer-events: none;
}

/* Stamp tròn mờ như trong mẫu, không quá nổi bật */
.story-teaser__stamp {
  right: 98px;
  top: 8px;
  width: 76px;
  height: 76px;
  color: transparent;
  border: 0;
  background:
    radial-gradient(circle, rgba(255, 250, 242, 0.82), rgba(255, 250, 242, 0.62)),
    url("../assets/images/logo.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 54px auto;
  box-shadow: 0 12px 30px rgba(54, 31, 19, 0.08);
}

.story-teaser__content {
  max-width: 520px;
}

.story-teaser .section-title {
  max-width: 500px;
  font-size: clamp(34px, 3.5vw, 46px);
  line-height: 1.02;
}

.story-teaser .copy {
  max-width: 430px;
  font-size: 14px;
  line-height: 1.9;
}

/* Style cũ: biến nút trong Story thành text-link.
   Đoạn phía dưới sẽ override lại thành nút pill kem. */
.story-teaser .btn--ghost {
  min-height: auto;
  padding: 0 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-terracotta-dark);
  box-shadow: none;
}

.story-teaser .btn--ghost::before {
  position: absolute;
  left: 0;
  right: 26px;
  bottom: 0;
  height: 1px;
  background: rgba(170, 63, 34, 0.42);
  content: "";
}

.story-teaser .btn--ghost:hover {
  transform: translateY(-1px);
}

/* Story button dùng lại kiểu pill kem giống mẫu button mới */
.story-teaser .btn--ghost {
  min-height: 46px;
  padding: 0 28px;
  border: 1px solid rgba(91, 61, 44, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.92);
  color: var(--color-brown);
  box-shadow:
    0 12px 22px rgba(54, 31, 19, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.story-teaser .btn--ghost::before {
  display: none;
}

.story-teaser .btn--ghost:hover {
  background: rgba(255, 250, 242, 0.99);
  box-shadow:
    0 16px 28px rgba(54, 31, 19, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transform: translateY(-2px);
}

/* Ẩn các block đã thêm trước đó để section tối giản giống reference */
.story-route,
.story-facts {
  display: none;
}

@media (max-width: 980px) {
  .story-teaser {
    padding: 58px 0;
  }

  .story-teaser__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .story-teaser__media {
    width: min(690px, 100%);
    margin: 0 auto;
  }

  .story-teaser__stamp {
    right: 84px;
  }
}

@media (max-width: 640px) {
  .story-teaser {
    padding: 44px 0;
  }

  .story-teaser__media {
    min-height: 230px;
  }

  .story-teaser .organic-photo {
    min-height: 230px;
  }

  .story-teaser__stamp {
    right: 28px;
    top: -6px;
    width: 62px;
    height: 62px;
    background-size: 42px auto;
  }

  .story-teaser__waves {
    right: -34vw;
    bottom: -88px;
    width: 120vw;
  }
}

/* Dọn lại theo reference:
   Ảnh story đã có stamp và paper cutout, nên ẩn lớp stamp/cutout tạo thêm bằng CSS. */
.story-teaser__media::before,
.story-teaser__stamp {
  display: none;
}


/* ===================================================== */
/* HIGHLIGHTS BACKGROUND                                 */
/* Nền riêng cho phần Unsere Highlights.                 */
/* Có lớp phủ mờ để các card món ăn nổi rõ hơn.          */
/* ===================================================== */

.highlights,
.menu-highlights {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    url("../assets/images/highlights-paper-bg.webp") center / cover no-repeat;
}

/* Lớp phủ mờ nằm giữa background và nội dung thật */
.highlights::before,
.menu-highlights::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(255, 250, 242, 0.84) 0%,
      rgba(255, 250, 242, 0.7) 42%,
      rgba(255, 250, 242, 0.82) 100%
    ),
    radial-gradient(circle at 50% 48%, rgba(255, 250, 242, 0.48), transparent 42%);
  content: "";
}

/* Card món ăn sáng hơn một chút để tách khỏi nền trang trí */
.highlights .food-card,
.menu-highlights .food-card {
  background: rgba(255, 250, 242, 0.86);
  box-shadow: 0 10px 22px rgba(54, 31, 19, 0.085);
}

@media (hover: hover) and (pointer: fine) {
  .highlights .food-card:hover,
  .menu-highlights .food-card:hover {
    box-shadow: 0 16px 30px rgba(54, 31, 19, 0.13);
  }
}

/* Horizontale Highlight-Leiste: Maus ziehen, Trackpad oder Touch wischen. */
.highlights__scroll-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: -14px 2px 10px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.highlights__scroll-hint strong {
  color: var(--color-terracotta);
  font-size: 18px;
  line-height: 1;
}

.home-card-grid[data-horizontal-highlights] {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: max(210px, calc((100% - 96px) / 5));
  justify-content: start;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 8px 36px;
  margin: -12px -8px -12px;
  background: transparent;
  cursor: grab;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 4px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.home-card-grid[data-horizontal-highlights]:focus-visible {
  outline: 2px solid rgba(170, 63, 34, 0.45);
  outline-offset: 4px;
}

.home-card-grid[data-horizontal-highlights].is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.home-card-grid[data-horizontal-highlights] > .food-card {
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Desktop: giữ hiệu ứng nâng thẻ giống carousel Signature trên trang Menu. */
@media (min-width: 641px) and (hover: hover) and (pointer: fine) {
  .home-card-grid[data-horizontal-highlights]:not(.is-dragging) > .food-card {
    transition:
      transform 420ms ease,
      box-shadow 420ms ease;
  }

  .home-card-grid[data-horizontal-highlights]:not(.is-dragging) > .food-card:hover {
    z-index: 3;
    box-shadow: 0 16px 30px rgba(54, 31, 19, 0.13);
    transform: translateY(-4px);
  }
}

.home-card-grid[data-horizontal-highlights].is-dragging > .food-card {
  pointer-events: none;
  transition: none;
}

.home-card-grid[data-horizontal-highlights]::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1120px) {
  .home-card-grid[data-horizontal-highlights] {
    grid-template-columns: none;
    grid-auto-columns: min(280px, calc((100% - 24px) / 2));
  }
}

@media (max-width: 640px) {
  .highlights__scroll-hint {
    justify-content: center;
    margin: -12px 2px 6px;
  }

  .home-card-grid[data-horizontal-highlights] {
    --highlight-mobile-card-width: min(60vw, 240px);

    grid-template-columns: none;
    grid-auto-columns: var(--highlight-mobile-card-width);
    gap: 14px;
    padding-block: 18px 72px;
    padding-inline: max(8px, calc((100% - var(--highlight-mobile-card-width)) / 2));
    margin-block: 0 -48px;
    scroll-padding-inline: max(8px, calc((100% - var(--highlight-mobile-card-width)) / 2));
  }

  .home-card-grid[data-horizontal-highlights] .food-card__image {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .home-card-grid[data-horizontal-highlights] .food-card__body {
    min-height: 132px;
    padding: 10px 14px 12px;
  }

  .home-card-grid[data-horizontal-highlights] .card-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 20px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-card-grid[data-horizontal-highlights] .food-card p {
    min-height: 17px;
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .home-card-grid[data-horizontal-highlights] .food-card__meta {
    margin-top: 6px;
  }

  .home-card-grid[data-horizontal-highlights] > .food-card {
    --carousel-scale: 0.94;
    --carousel-lift: 6px;
    --carousel-opacity: 0.76;
    --carousel-saturation: 0.82;
    --carousel-brightness: 0.96;

    z-index: 1;
    opacity: var(--carousel-opacity);
    filter:
      saturate(var(--carousel-saturation))
      brightness(var(--carousel-brightness));
    scroll-snap-align: center;
    transform:
      translateY(var(--carousel-lift))
      scale(var(--carousel-scale));
    transform-origin: center center;
    transition: box-shadow 220ms ease;
  }

  .home-card-grid[data-horizontal-highlights] > .food-card.is-centered {
    z-index: 3;
    box-shadow: 0 22px 42px rgba(54, 31, 19, 0.17);
  }

  .home-card-grid[data-horizontal-highlights] > .food-card:not(.is-centered) .add-btn {
    pointer-events: none;
    opacity: 0.4;
    transform: scale(0.9);
  }

  .home-card-grid[data-horizontal-highlights] > .food-card.is-centered .add-btn {
    pointer-events: auto;
    opacity: 1;
  }
}
