/* ==========================================================================
   Homepage — THE S369 COMBO EDIT (#combo-edit)
   Root-cause notes:
   - styles.css gives every .section `padding: clamp(48px,6vw,84px) clamp(20px,5vw,80px) !important`.
     #discover's 84px bottom + this section's 84px top stacked to ~168px. We keep the
     shared side padding (so edges align with the Signature grid) and override only the
     vertical padding here, with matching specificity + !important.
   - The old .combo-grid had max-width:980px; margin:auto, which narrowed it. Removed.
   ========================================================================== */
#combo-edit {
  --ce-gold: #b08d57;
  --ce-cream: #faf7f2;
  --ce-beige: #f4efe7;
  --ce-ease: cubic-bezier(.2, .8, .2, 1);
}
#combo-edit.section {
  /* top: previous section already supplies 48–84px; +12px => ~60px mobile / ~96px desktop */
  padding-top: 12px !important;
  padding-bottom: clamp(60px, 7vw, 96px) !important;
}

/* Heading — same .section-head wrapper as Signature Collection, so edges line up */
#combo-edit .combo-head { margin-bottom: clamp(48px, 4vw, 56px); }
#combo-edit .combo-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  color: var(--ce-gold) !important; /* styles.css forces .eyebrow colour with !important */
}
#combo-edit .combo-eyebrow::before {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--ce-gold);
  flex: none;
}
#combo-edit .combo-head h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
}
#combo-edit .combo-head h2 em { font-style: italic; color: var(--ce-gold) !important; }
#combo-edit .combo-sub { margin: 14px 0 0; font-size: 15px; }

/* Grid — fills the shared container, equal columns */
.combo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

/* Card */
.combo-card {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ce-cream);
  border: 1px solid rgba(176, 141, 87, .35);
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink, #1c1a19);
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transition: transform .6s var(--ce-ease), box-shadow .6s var(--ce-ease), opacity .9s var(--ce-ease), translate .9s var(--ce-ease);
}
.combo-card::after { /* inner gold frame */
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(176, 141, 87, .18);
  pointer-events: none;
  z-index: 2;
}
.combo-card:hover,
.combo-card:focus-visible {
  --lift: -8px;
  box-shadow: 0 30px 60px -20px rgba(45, 18, 25, .25), 0 12px 24px -12px rgba(45, 18, 25, .12);
}
.combo-card:focus-visible { outline: 1px solid var(--ce-gold); outline-offset: 4px; }

.combo-card-label,
.combo-card-pill {
  position: absolute;
  top: 26px;
  z-index: 3;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ce-gold);
}
.combo-card-label { left: 28px; letter-spacing: .35em; }
.combo-card-pill {
  right: 26px;
  top: 22px;
  padding: 5px 12px;
  border: 1px solid rgba(176, 141, 87, .45);
  border-radius: 999px;
  letter-spacing: .25em;
  background: rgba(250, 247, 242, .7);
}

/* Image area — soft studio gradient; image uses multiply so its white
   background disappears (covers are pre-processed to pure #fff). */
.combo-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #f1ebe1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(176, 141, 87, .25);
}
.combo-card-media img {
  display: block;
  width: 78%;
  height: 78%;
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
  mix-blend-mode: multiply;
  /* no CSS drop-shadow: on an opaque image it outlines the rectangle; the photos carry their own soft floor shadow */
  animation: comboFloat 6s ease-in-out infinite;
  transition: scale 1s var(--ce-ease);
}
.combo-card:hover .combo-card-media img { scale: 1.05; animation-play-state: paused; }
/* one light sweep per hover */
.combo-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.combo-card:hover .combo-card-media::after { animation: comboSweep 1.1s var(--ce-ease) 1; }

@keyframes comboFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes comboSweep { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

/* Body */
.combo-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: clamp(28px, 3vw, 44px);
}
.combo-card-body h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}
.combo-card-meta {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted, #6f6860);
}
.combo-card-price { font-family: "Cormorant Garamond", Georgia, serif; font-size: 20px; }
.combo-card-cta {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink, #1c1a19);
}
.combo-card-cta span { position: relative; padding-bottom: 6px; }
.combo-card-cta span::after { /* animated gold underline */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ce-gold);
  transform: scaleX(.35);
  transform-origin: left;
  transition: transform .6s var(--ce-ease);
}
.combo-card-cta i { /* thin arrow */
  position: relative;
  width: 28px;
  height: 1px;
  background: var(--ce-gold);
  transition: transform .6s var(--ce-ease);
}
.combo-card-cta i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--ce-gold);
  border-right: 1px solid var(--ce-gold);
  transform: rotate(45deg);
}
.combo-card:hover .combo-card-cta span::after { transform: scaleX(1); }
.combo-card:hover .combo-card-cta i { transform: translateX(6px); }

/* Scroll reveal — state added by combo-edit.js only; opacity/translate don't affect layout */
#combo-edit.combo-reveal-ready .combo-card { opacity: 0; translate: 0 40px; }
#combo-edit.combo-reveal-ready .combo-card.is-revealed {
  opacity: 1;
  translate: 0 0;
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), var(--reveal-delay, 0ms);
}
#combo-edit.combo-reveal-ready .combo-card.is-revealed:hover { transition-delay: 0ms; }

@media (min-width: 768px) {
  #combo-edit.section {
    padding-top: 8px !important;
    padding-bottom: clamp(44px, 4.5vw, 64px) !important;
  }
  #combo-edit .combo-head {
    max-width: 960px;
    margin: 0 auto clamp(22px, 2vw, 28px);
  }
  #combo-edit .combo-eyebrow {
    gap: 12px;
    margin: 0 0 8px;
  }
  #combo-edit .combo-eyebrow::before {
    width: 36px;
  }
  #combo-edit .combo-head h2 {
    font-size: clamp(28px, 2.6vw, 38px);
    line-height: 1.08;
  }
  #combo-edit .combo-sub {
    margin: 8px 0 0;
    font-size: 14px;
  }
  #combo-edit .combo-grid {
    max-width: 960px;
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 2.2vw, 28px);
  }
  #combo-edit .combo-card::after {
    inset: 8px;
  }
  #combo-edit .combo-card-label {
    top: 18px;
    left: 22px;
    font-size: 10px;
    letter-spacing: .3em;
  }
  #combo-edit .combo-card-pill {
    top: 14px;
    right: 20px;
    padding: 4px 10px;
    font-size: 10px;
    letter-spacing: .22em;
  }
  #combo-edit .combo-card-media {
    aspect-ratio: 16 / 11;
    max-height: clamp(220px, 32vh, 280px);
  }
  #combo-edit .combo-card-media img {
    width: 70%;
    height: 82%;
    max-width: 70%;
    max-height: 82%;
  }
  #combo-edit .combo-card-body {
    gap: 6px;
    padding: clamp(16px, 1.6vw, 22px) clamp(20px, 2vw, 28px);
  }
  #combo-edit .combo-card-body h3 {
    font-size: clamp(22px, 1.9vw, 26px);
  }
  #combo-edit .combo-card-meta {
    font-size: 11px;
    letter-spacing: .22em;
  }
  #combo-edit .combo-card-price {
    font-size: 18px;
  }
  #combo-edit .combo-card-cta {
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: .25em;
  }
}

@media (max-width: 767px) {
  .combo-grid { grid-template-columns: 1fr; gap: 24px; }
  .combo-card-body { padding: 28px 22px; }
  .combo-card-cta { align-self: stretch; padding: 14px 16px; border: 1px solid var(--ce-gold); }
  .combo-card-label { left: 22px; top: 22px; letter-spacing: .3em; }
  .combo-card-pill { right: 20px; top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .combo-card,
  .combo-card:hover { transform: none; translate: none !important; transition: opacity .6s linear; box-shadow: none; }
  .combo-card-media img { animation: none; transition: none; }
  .combo-card:hover .combo-card-media img { scale: 1; }
  .combo-card:hover .combo-card-media::after { animation: none; }
}
