/* ─── Deltas for Sopinhas LP ─── */

/* Palette tweak — warmer for cozy soup feel */
:root {
  --terracotta: #BF4E2B;
  --terracotta-2: #9E3D1F;
  --amber: #DA9542;
}

/* 4-col bonus grid */
@media (min-width: 981px) {
  .bonus-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Recipe illustration cards (placeholder for soup photos) */
.recipe-illust {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--forest), #14271f);
  position: relative;
  overflow: hidden;
  display: block;
}
.recipe-illust--amber { background: linear-gradient(135deg, #6b4318, #3a230c); }
.recipe-illust--olive { background: linear-gradient(135deg, #3a4a2a, #1d2614); }
.recipe-illust--rust { background: linear-gradient(135deg, #7a2e15, #401509); }
.recipe-illust--moss { background: linear-gradient(135deg, #2f5d3f, #143019); }
.recipe-illust--clay { background: linear-gradient(135deg, #6f3622, #3b1810); }
.recipe-illust--herb { background: linear-gradient(135deg, #4a5d35, #21280f); }
.recipe-illust--cream { background: linear-gradient(135deg, #c6884b, #6d4422); }
.recipe-illust > svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
}

.recipe-illust::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.08), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,.25), transparent 55%);
  pointer-events: none;
}

/* Hero illustration */
.hero-illust {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 70% 30%, rgba(218,149,66,.25), transparent 55%),
    radial-gradient(circle at 25% 75%, rgba(191,78,43,.2), transparent 55%),
    linear-gradient(135deg, #2A4A38, #14271f);
  position: relative;
  overflow: hidden;
}
.hero-illust > svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.feature-image--contain { background: linear-gradient(180deg, var(--forest), #14271f); }

/* Pain photo — editorial card with caption */
.pain-photo {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--paper);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 30px 60px -20px rgba(0,0,0,.4);
}
.pain-photo__frame {
  position: relative;
  aspect-ratio: 1140 / 597;
  overflow: hidden;
}
.pain-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease-out;
}
.pain-photo:hover .pain-photo__frame img { transform: scale(1.04); }
.pain-photo__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20,39,31,0.4));
  pointer-events: none;
}
.pain-photo__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(252,250,244,.94);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
  z-index: 2;
}
.pain-photo__caption {
  padding: 22px 28px 26px;
  text-align: left;
  background: var(--paper);
}
.pain-photo__caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  color: var(--forest);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.pain-photo__caption span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 980px) {
  .pain-photo { max-width: 580px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .pain-photo { border-radius: 18px; order: 3; margin: 24px auto 0; }
  .pain-photo__frame { aspect-ratio: 4 / 3; }
  .pain-photo__frame img { object-position: center 35%; }
  .pain-photo__tag { top: 14px; left: 14px; font-size: 10px; padding: 7px 12px; }
  .pain-photo__caption { padding: 20px 22px 22px; text-align: center; }
  .pain-photo__caption strong { font-size: 22px; }
  .pain-photo__caption span { font-size: 13px; }
}

/* Hero — landscape ratio to match real soup photos (5:4) */
.hero-visual { aspect-ratio: 5 / 4; }
.hero-visual .img-main img { object-position: center 60%; }

@media (max-width: 640px) {
  .hero-visual { aspect-ratio: 5 / 4; max-width: 460px; }
}
@media (max-width: 420px) {
  .hero-visual { aspect-ratio: 5 / 4; }
}

/* Mosaic single-image variant — only the main hero photo */
.mosaic-grid--single {
  grid-template-columns: 1fr !important;
  grid-template-rows: auto !important;
  max-width: 900px;
  margin: 0 auto;
}
.mosaic-grid--single > .span-2 {
  grid-column: span 1 !important;
  aspect-ratio: 16 / 9;
}
@media (max-width: 640px) {
  .mosaic-grid--single > .span-2 { aspect-ratio: 16 / 9; }
}
.mosaic-grid {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
}
.mosaic-grid > .span-2 {
  grid-column: span 2;
  grid-row: span 1;
  aspect-ratio: 16 / 9;
  height: auto;
}
.mosaic-grid > div:not(.span-2) {
  aspect-ratio: 5 / 4;
  height: auto;
}
@media (max-width: 640px) {
  .mosaic-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .mosaic-grid > .span-2 {
    grid-column: span 1;
    aspect-ratio: 16 / 9;
  }
  .mosaic-grid > div:not(.span-2) {
    aspect-ratio: 5 / 4;
  }
}

/* Image fade-in placeholders */
.salad-card .img-wrap,
.bonus-card .img-wrap,
.feature-image,
.pain-photo__frame,
.mosaic-grid > div,
.hero-visual .img-main {
  background-color: #2a3a30;
}
.salad-card .img-wrap > img,
.bonus-card .img-wrap > img,
.feature-image > img,
.pain-photo__frame > img,
.mosaic-grid > div > img,
.hero-visual .img-main > img {
  opacity: 0;
  transition: opacity .35s ease-in;
}
img.is-loaded,
img[fetchpriority="high"] { opacity: 1 !important; }
