
/* =========================================================
   Signature Sweets Shared Polish - Version 71
   Purpose:
   - remove faint footer/body seam
   - improve body-to-footer transition
   - apply the premium divider consistently to hero sections
   ========================================================= */

html,
body {
  background: #050403;
}

body {
  overflow-x: hidden;
}

/* Stop browser/subpixel seams showing between dark sections */
main,
section,
.site-footer,
.footer,
footer {
  background-color: #050403;
}

.site-footer,
.footer,
footer {
  position: relative;
  border-top: 1px solid rgba(212, 168, 79, 0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 220, 0.025),
    0 -18px 50px rgba(0, 0, 0, 0.26);
}

/* Soft shared transition into footer so it does not feel like a hard cut */
.site-footer::before,
.footer::before,
footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -42px;
  height: 42px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 4, 3, 0),
    rgba(5, 4, 3, 0.72) 56%,
    rgba(5, 4, 3, 1)
  );
}

/* Reusable premium straight divider for hero-to-content transitions */
.hero-premium-divider,
.page-premium-divider {
  position: relative;
  z-index: 5;
  height: 18px;
  margin-top: -1px;
  overflow: visible;
  background: linear-gradient(180deg, rgba(5,4,3,0), rgba(5,4,3,0.32));
  pointer-events: none;
}

.hero-premium-divider .hero-divider-line,
.page-premium-divider .hero-divider-line {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: min(92vw, 1320px);
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212,168,79,0.18) 8%,
    rgba(212,168,79,0.62) 28%,
    rgba(248,218,132,1) 50%,
    rgba(212,168,79,0.62) 72%,
    rgba(212,168,79,0.18) 92%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(212,168,79,0.18);
}

.hero-premium-divider .hero-divider-diamond,
.page-premium-divider .hero-divider-diamond {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(135deg, #f8da84, #d4a84f);
  border-radius: 1px;
  box-shadow:
    0 0 0 4px rgba(5,4,3,0.98),
    0 0 18px rgba(212,168,79,0.42);
}

/* Apply the same visual transition to pages using the textured hero background */
.gallery-hero,
.page-hero,
.contact-hero,
.category-hero,
.detail-hero {
  position: relative;
}

.gallery-hero::after,
.page-hero::after,
.contact-hero::after,
.category-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: min(92vw, 1320px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212,168,79,0.34),
    rgba(248,218,132,0.78),
    rgba(212,168,79,0.34),
    transparent
  );
  box-shadow: 0 0 12px rgba(212,168,79,0.16);
  z-index: 6;
}

.gallery-hero::before,
.page-hero::before,
.contact-hero::before,
.category-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(135deg, #f8da84, #d4a84f);
  box-shadow:
    0 0 0 4px rgba(5,4,3,0.98),
    0 0 18px rgba(212,168,79,0.36);
  z-index: 7;
}

/* Avoid double dividers on homepage where the dedicated divider already exists */
.home-page .hero-premium-divider + .section,
.home-page .hero-premium-divider + .featured-section {
  border-top: 0 !important;
}

/* Clean last-section-to-footer spacing */
main > section:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .hero-premium-divider,
  .page-premium-divider {
    height: 14px;
  }

  .hero-premium-divider .hero-divider-line,
  .page-premium-divider .hero-divider-line,
  .gallery-hero::after,
  .page-hero::after,
  .contact-hero::after,
  .category-hero::after,
  .detail-hero::after {
    width: min(88vw, 680px);
  }

  .hero-premium-divider .hero-divider-diamond,
  .page-premium-divider .hero-divider-diamond,
  .gallery-hero::before,
  .page-hero::before,
  .contact-hero::before,
  .category-hero::before,
  .detail-hero::before {
    width: 8px;
    height: 8px;
  }
}

/* =========================================================
   Version 72 - Consistent page hero media cards
   ========================================================= */

.page-hero__media,
.contact-hero__image-card,
.hero-media,
.hero__image-card {
  position: relative;
  overflow: hidden;
  border-radius: clamp(1.1rem, 2vw, 1.7rem);
  border: 1px solid rgba(212, 168, 79, 0.32);
  background: rgba(0, 0, 0, 0.24);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

.page-hero__media img,
.contact-hero__image-card img,
.hero-media img,
.hero__image-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-hero,
.gallery-hero,
.category-hero,
.detail-hero,
.contact-hero {
  overflow: hidden;
}

/* Hide legacy empty decorative frames that created the buggy blank box beside page images */
.hero-frame:empty,
.image-frame:empty,
.decorative-frame:empty,
.media-frame:empty,
.page-hero__frame:empty {
  display: none !important;
}

@media (max-width: 900px) {
  .page-hero__media,
  .contact-hero__image-card,
  .hero-media,
  .hero__image-card {
    max-width: 680px;
    margin-inline: auto;
  }
}

/* Version 77 - Gallery hero image refinement */
.gallery-hero .page-hero__media img,
.gallery-hero .hero-media img,
.gallery-hero .hero__image-card img,
.gallery-hero img[src*="gallery-hero-signature-collection"] {
  object-fit: cover;
  object-position: center center;
}

/* Version 81 - Gallery hero portrait image fix
   The gallery hero image is a portrait composition, so it must not use the
   default landscape hero crop. */
.gallery-page .gallery-hero .page-hero__media,
.gallery-page .gallery-hero .hero-media,
.gallery-page .gallery-hero .hero__image-card {
  max-width: min(520px, 38vw);
  aspect-ratio: 3 / 4;
  align-self: center;
}

.gallery-page .gallery-hero .page-hero__media img,
.gallery-page .gallery-hero .hero-media img,
.gallery-page .gallery-hero .hero__image-card img,
.gallery-page .gallery-hero img[src*="gallery-hero"] {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 980px) {
  .gallery-page .gallery-hero .page-hero__media,
  .gallery-page .gallery-hero .hero-media,
  .gallery-page .gallery-hero .hero__image-card {
    max-width: min(520px, 86vw);
    margin-inline: auto;
  }
}

/* Version 82 - Content and pricing guide updates */
.pricing-guide-card {
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid rgba(212,168,79,0.32);
  border-radius: 1.4rem;
  overflow: hidden;
  background: rgba(0,0,0,0.36);
  box-shadow: 0 24px 70px rgba(0,0,0,0.35);
}
.pricing-guide-card img {
  display: block;
  width: 100%;
  height: auto;
}
.what-we-cater-section .section-title {
  max-width: 920px;
}
.legal-card ul {
  margin: 0.85rem 0 1rem 1.2rem;
  color: rgba(255,255,255,0.86);
}
.legal-card li {
  margin: 0.35rem 0;
}
