/* Packaging illustration & hot-stamped metallic/iridescent gold foil system
   matched to the physical Yến Sào Việt Anh gift box lid. */
:root {
  --heritage-gold: #f5dc82;
  --heritage-gold-bright: #fffce8;
  --heritage-gold-deep: #c9932e;
  --heritage-prism-cyan: #bff5eb;
  --heritage-prism-rose: #fad9e7;
  --heritage-foil-gradient: linear-gradient(
    125deg,
    #c8922b 0%,
    #f6df86 14%,
    #fffce8 24%,
    #bff5eb 32%,
    #f8df88 41%,
    #cf9a32 53%,
    #fae696 66%,
    #fffdf0 75%,
    #fad9e7 83%,
    #f5dc82 91%,
    #d6a23a 100%
  );
  --heritage-paper-green: #334c3b;
  --heritage-paper-texture:
    repeating-linear-gradient(
      -42deg,
      rgba(255, 255, 255, 0.036) 0px,
      rgba(255, 255, 255, 0.036) 1.25px,
      rgba(8, 18, 12, 0.078) 1.25px,
      rgba(8, 18, 12, 0.078) 2.6px
    ),
    radial-gradient(circle at 34% 28%, #3d5a47 0%, #334c3b 58%, #283d2f 100%);
}

@keyframes foilGleam {
  0%, 100% {
    filter: drop-shadow(0 1px 1px rgba(10, 22, 14, 0.55)) drop-shadow(0 0 2px rgba(255, 248, 198, 0.28));
  }
  50% {
    filter: drop-shadow(0 1px 1px rgba(10, 22, 14, 0.55)) drop-shadow(0 0 4.5px rgba(191, 245, 235, 0.42));
  }
}

.heritage-live-art {
  pointer-events: none;
  user-select: none;
}

/* Source section miniature packaging lid showcase */
.heritage-source-art {
  display: block;
  width: min(100%, 560px);
  height: auto;
  aspect-ratio: 4 / 3;
  margin-top: 18px;
  background: var(--heritage-paper-texture);
  border-radius: 8px;
  box-shadow:
    0 12px 30px rgba(18, 32, 23, 0.16),
    inset 0 0 0 1px rgba(245, 220, 130, 0.42);
  animation: foilGleam 7s ease-in-out infinite;
}

.source-place:has(.heritage-source-art)::after,
.source-place:has(.source-satellite-card)::after {
  display: none;
}

.source-satellite-card {
  display: block;
  width: min(100%, 560px);
  margin: 22px 0 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(245, 220, 130, 0.58);
  background: rgba(14, 26, 18, 0.55);
  box-shadow:
    0 14px 32px rgba(10, 20, 14, 0.28),
    inset 0 0 0 1px rgba(255, 252, 232, 0.16);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.45;
  color: var(--paper);
}

.source-satellite-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #17281d;
}

.source-satellite-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.source-satellite-pin {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.source-satellite-pin > i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f5dc82;
  border: 2px solid #16281c;
  box-shadow:
    0 0 0 5px rgba(245, 220, 130, 0.34),
    0 4px 12px rgba(0, 0, 0, 0.55);
  flex: none;
}

.source-satellite-pin > b {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(18, 32, 23, 0.9);
  border: 1px solid rgba(245, 220, 130, 0.78);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
  color: var(--heritage-gold-bright);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.source-satellite-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 10px 14px;
  background: rgba(16, 29, 21, 0.9);
  border-top: 1px solid rgba(245, 220, 130, 0.3);
}

.source-satellite-caption > small {
  font-size: 12.5px;
  color: rgba(247, 243, 234, 0.9);
}

.source-satellite-caption > a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--heritage-gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero packaging card: embossed green linen paper + 4 corner quadrant fans + metallic foil Swallows & Peonies */
.hero-copy {
  position: relative;
  isolation: isolate;
  background: var(--heritage-paper-texture);
  color: var(--paper);
  border: 1.5px solid var(--heritage-gold-deep);
  box-shadow:
    0 14px 34px rgba(16, 29, 21, 0.14),
    inset 0 0 0 1px rgba(255, 252, 232, 0.22);
  padding: 34px 34px 136px;
  margin-bottom: 24px;
  border-radius: 8px;
  gap: 28px;
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 26px solid transparent;
  border-image: url('assets/packaging-frame.svg?v=20261109v5') 64 / 26px stretch;
  pointer-events: none;
  z-index: -1;
  animation: foilGleam 7s ease-in-out infinite;
}

.hero-copy::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 16px;
  width: 112px;
  height: 104px;
  background: url('assets/reed-border.svg?v=20261109v5') left bottom / contain no-repeat;
  opacity: 0.92;
  pointer-events: none;
  z-index: -1;
}

.hero-copy h1 {
  font-size: clamp(46px, 6vw, 86px);
  margin: 0;
  text-shadow: 0 2px 14px rgba(14, 26, 18, 0.55);
}

.hero-copy > p {
  position: relative;
  color: var(--paper);
  max-width: 29ch;
  margin-left: auto;
  text-shadow: 0 1px 10px rgba(14, 26, 18, 0.65);
}

.heritage-heading-art {
  display: block;
  position: absolute;
  right: 22px;
  bottom: 14px;
  top: auto;
  width: 248px;
  height: 104px;
  object-fit: contain;
  opacity: 0.98;
  z-index: -1;
  animation: foilGleam 7s ease-in-out infinite;
}

.hero-visual,
.hero-visual[data-current=raw] {
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  outline: 1.5px solid var(--heritage-gold);
  outline-offset: -1px;
  box-shadow: 0 16px 38px rgba(18, 32, 23, 0.14);
}

.hero-visual > img,
.hero-visual[data-current=raw] > img {
  object-fit: cover;
  object-position: 50% 50%;
}

.product-card {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
}

.product-media {
  grid-area: image;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--soft);
  border-right: 1px solid var(--line);
}

.product-media .product-image-button {
  flex: 1 1 auto;
  width: 100%;
  min-height: 248px;
  aspect-ratio: 4 / 3;
  display: block;
}

.product-media .product-image-button > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 50% 54%;
}

.product-card[data-card="raw"] .product-media .product-image-button > img {
  object-position: 50% 50%;
}

.product-thumbs,
.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.detail-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.detail-thumbs {
  padding: 0;
  background: transparent;
  border-top: 0;
  gap: 8px;
}

.product-thumb,
.detail-thumb {
  display: block;
  padding: 2px;
  min-height: 0;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  overflow: hidden;
  opacity: 0.76;
  transition: border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.product-thumb:hover,
.detail-thumb:hover {
  opacity: 0.95;
}

.product-thumb img,
.detail-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 4px;
}

.product-thumb[aria-pressed="true"],
.detail-thumb[aria-pressed="true"] {
  border-color: var(--brand);
  opacity: 1;
  box-shadow: 0 0 0 1px var(--brand);
}

.subpage-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.subpage-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.inspection-view {
  border-radius: 12px;
  border: 1.5px solid rgba(201, 147, 46, 0.45);
}

.detail-image,
.document-page > img {
  aspect-ratio: 4 / 3;
  max-height: 540px;
  object-fit: cover;
}

.inspection-heading {
  position: relative;
  padding-bottom: 25px;
  border-bottom: 1.5px solid transparent;
  border-image: var(--heritage-foil-gradient) 1;
}

/* Source section */
.source-section {
  position: relative;
  overflow: hidden;
  background: var(--heritage-paper-texture);
  border-top: 1.5px solid transparent;
  border-bottom: 1.5px solid transparent;
  border-image: var(--heritage-foil-gradient) 1;
}

.source-inner {
  position: relative;
}

.source-place,
.source-copy {
  position: relative;
}

.source-place::after {
  content: "";
  display: block;
  width: min(100%, 560px);
  height: 220px;
  margin-top: 18px;
  background: url('assets/nest-garden.svg?v=20261109v5') center bottom / contain no-repeat;
  pointer-events: none;
}

.source-link {
  color: var(--heritage-gold);
  font-weight: 600;
}

/* Business & Gift section packaging box card */
.business-section {
  align-items: stretch;
  gap: 40px;
}

.business-copy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 36px;
  background: var(--heritage-paper-texture);
  color: var(--paper);
  border-radius: 8px;
  border: 1.5px solid var(--heritage-gold-deep);
  box-shadow:
    0 14px 34px rgba(16, 29, 21, 0.14),
    inset 0 0 0 1px rgba(255, 252, 232, 0.22);
}

.business-copy::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 26px solid transparent;
  border-image: url('assets/packaging-frame.svg?v=20261109v5') 64 / 26px stretch;
  pointer-events: none;
  z-index: 0;
  animation: foilGleam 7s ease-in-out infinite;
}

.business-copy h2,
.business-copy p {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(14, 26, 18, 0.55);
}

.business-copy h2 {
  font-size: clamp(32px, 3.5vw, 48px);
}

.business-copy .secondary-copy {
  color: var(--paper);
  opacity: 0.88;
}

.business-copy::after {
  content: "";
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 215px;
  margin-top: 22px;
  background: url('assets/nest-garden.svg?v=20261109v5') center bottom / contain no-repeat;
  pointer-events: none;
  animation: foilGleam 7s ease-in-out infinite;
}

.business-copy:has(.business-gift-preview)::after {
  display: none;
}

.business-gift-preview {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid rgba(245, 220, 130, 0.58);
  background: rgba(14, 26, 18, 0.42);
  box-shadow: 0 12px 28px rgba(10, 20, 14, 0.28);
}

.business-gift-preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.business-gift-preview figcaption {
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--heritage-gold-bright);
  background: rgba(16, 29, 21, 0.86);
  border-top: 1px solid rgba(245, 220, 130, 0.28);
}

.business-panel {
  border-color: var(--heritage-gold-deep);
}

/* Footer with embossed green art paper & metallic gold foil highlights */
footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--heritage-paper-texture);
  color: var(--paper);
  border-top: 2px solid transparent;
  border-image: var(--heritage-foil-gradient) 1;
  padding-top: 54px;
  padding-bottom: 44px;
}

footer::before {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 92px;
  width: 360px;
  height: 215px;
  background: url('assets/nest-garden.svg?v=20261109v7') right bottom / contain no-repeat;
  opacity: 0.28;
  pointer-events: none;
  z-index: -1;
}

footer .brand > svg path {
  stroke: var(--heritage-gold);
}

.footer-grid p,
.footer-grid > div > a:not(.brand),
.footer-grid button,
.footer-bottom {
  color: var(--paper);
}

.footer-grid strong {
  color: var(--heritage-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 220, 130, 0.42);
  padding-top: 22px;
}

/* Brand Intro Gift Box Lid Overlay */
.intro-panel {
  background: var(--heritage-paper-texture);
}

.intro-mark {
  stroke: var(--heritage-gold);
}

.intro-panel-top::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 32px solid transparent;
  border-image: url('assets/packaging-frame.svg?v=20261109v6') 64 / 32px stretch;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .hero-copy {
    padding: 28px 28px 108px;
  }
  .hero-copy > p {
    max-width: 58ch;
    margin: 16px 0 0;
  }
  .heritage-heading-art {
    width: 255px;
    height: 102px;
  }
  .hero-copy h1 {
    font-size: clamp(44px, 6vw, 64px);
  }
  .source-place::after {
    height: 165px;
  }
  .business-copy {
    padding: 28px;
  }
  .business-section {
    gap: 28px;
  }
  .business-copy::after {
    height: 175px;
  }
}

@media (max-width: 800px) {
  .source-inner {
    grid-template-columns: 1fr 1.2fr;
  }
  .source-place::after {
    height: 145px;
  }
  .hero-copy h1 {
    font-size: 54px;
  }
  .business-copy h2 {
    font-size: 30px;
  }
  .business-copy::after {
    height: 165px;
  }
}

@media (max-width: 600px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-copy {
    min-width: 0;
    padding: 24px 22px 92px;
    margin-bottom: 16px;
  }
  .hero-copy::before,
  .business-copy::before {
    inset: 8px;
    border-width: 20px;
    border-image-width: 20px;
  }
  .hero-copy h1,
  html[lang="en"] .hero-copy h1 {
    display: block;
    font-size: clamp(30px, 9vw, 46px);
    line-height: 1.15;
  }
  .hero-title-line {
    display: block;
    width: max-content;
    max-width: 100%;
  }
  .hero-copy > p {
    font-size: 13px;
    margin: 16px 0 0;
    max-width: none;
  }
  .heritage-heading-art {
    right: 12px;
    bottom: 10px;
    width: 195px;
    height: 78px;
  }
  .hero-copy::after {
    left: 12px;
    bottom: 10px;
    width: 72px;
    height: 72px;
  }
  .source-inner {
    grid-template-columns: 1fr;
  }
  .heritage-source-art,
  .source-satellite-card {
    width: 100%;
    margin-top: 14px;
  }
  .source-place::after {
    width: 100%;
    height: 150px;
    margin-top: 10px;
  }
  .business-copy {
    padding: 26px 22px;
  }
  .business-copy h2 {
    font-size: 34px;
  }
  .business-copy::after {
    height: 155px;
    margin-top: 18px;
  }
  .business-section {
    gap: 22px;
  }
  .hero-visual,
  .hero-visual[data-current=raw] {
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
  }
  .inspection-view {
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
  }
  .product-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .product-media .product-image-button,
  .product-image-button,
  .product-card > img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .product-image-button > img,
  .product-card > img {
    object-fit: cover;
  }
  .subpage-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  footer::before {
    right: 16px;
    bottom: 92px;
    width: 240px;
    height: 150px;
    opacity: 0.25;
  }
  .intro-panel-top::after {
    inset: 12px;
    border-width: 22px;
    border-image-width: 22px;
  }
  .source-section::before,
  .source-section::after {
    width: 55px;
    opacity: 0.22;
  }
}

@media (prefers-reduced-motion: reduce) {
  .heritage-heading-art,
  .heritage-source-art,
  .hero-copy::before,
  .business-copy::before,
  .business-copy::after {
    transform: none;
    animation: none;
  }
}
