/* =====================================================
   HOMEPAGE CONTENT SECTIONS — Jakis Promotions
   Brand story, shop teaser, gallery teaser, podcast teaser,
   and the closing CTA band. All type sizes use clamp() so
   they scale fluidly with the viewport rather than jumping
   between fixed breakpoint values.
   ===================================================== */

/* ── Shared section rhythm ──────────────────────────── */
.home-section {
  padding-block: clamp(3.5rem, 8vw, 7.5rem);
}

.home-section--alt {
  background: var(--color-ivory-dim);
}

.home-section--dark {
  background: var(--color-ink);
  color: var(--color-ivory);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head.is-centered {
  margin-inline: auto;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: clamp(0.68rem, 1.2vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 0.85rem;
}

.home-section--dark .section-eyebrow {
  color: var(--color-gold-bright);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-ink);
  margin: 0 0 0.9rem;
}

.home-section--dark .section-title {
  color: var(--color-ivory);
}

.section-text {
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  line-height: 1.75;
  color: rgba(16, 16, 18, 0.72);
  margin: 0;
}

.home-section--dark .section-text {
  color: rgba(251, 247, 241, 0.78);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.section-head.is-centered .section-actions {
  justify-content: center;
}

/* =====================================================
   OUR STORY
   ===================================================== */
.story-section .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.story-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4;
  max-width: 520px;
  margin-inline: auto;
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-media-badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  background: rgba(16, 16, 18, 0.78);
  backdrop-filter: blur(6px);
  color: var(--color-ivory);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1.4vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.story-content .section-title {
  max-width: 14ch;
}

.story-content .section-text + .section-text {
  margin-top: 1rem;
}

/* =====================================================
   SHOP TEASER
   ===================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.85rem, 2vw, 1.5rem);
}

/* Extra-narrow phones: two columns gets too tight for the
   longer category names/descriptions to stay legible. */
@media (max-width: 379px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  text-decoration: none;
  min-width: 0;
  transition: transform var(--dur-med) var(--ease),
              box-shadow var(--dur-med) var(--ease),
              border-color var(--dur-med) var(--ease);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.5rem, 5vw, 3rem);
  height: clamp(2.5rem, 5vw, 3rem);
  border-radius: 50%;
  background: var(--color-ivory-dim);
  color: var(--color-gold-dark);
  flex-shrink: 0;
}

.category-icon svg {
  width: 55%;
  height: 55%;
}

.category-name {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 500;
  color: var(--color-ink);
}

.category-desc {
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 1.3vw, 0.86rem);
  line-height: 1.55;
  color: rgba(16, 16, 18, 0.62);
  margin: -0.4rem 0 0;
}

.shop-teaser-foot {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* =====================================================
   GALLERY TEASER
   ===================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.6rem, 1.5vw, 1rem);
}

.gallery-grid a {
  display: block;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease);
}

.gallery-grid a:hover img {
  transform: scale(1.06);
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.gallery-teaser-foot {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* =====================================================
   PODCAST TEASER
   ===================================================== */
.podcast-section .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.podcast-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-width: 520px;
  margin-inline: auto;
}

.podcast-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92);
}

.podcast-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,12,0.65), rgba(10,10,12,0.05) 55%);
}

.podcast-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(3.25rem, 7vw, 4.25rem);
  height: clamp(3.25rem, 7vw, 4.25rem);
  border-radius: 50%;
  background: rgba(251, 247, 241, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.podcast-play svg {
  width: 38%;
  height: 38%;
  color: var(--color-gold-dark);
  margin-left: 3px;
}

.podcast-badge {
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  z-index: 2;
  background: var(--color-gold);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: clamp(0.62rem, 1.2vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
}

.podcast-topics {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.podcast-topics li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: rgba(251, 247, 241, 0.85);
}

.podcast-topics svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--color-gold-bright);
}

/* =====================================================
   CLOSING CTA BAND
   ===================================================== */
.cta-band {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  color: var(--color-ivory);
  text-align: center;
  overflow: hidden;
}

.cta-band-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    135deg,
    rgba(16, 16, 18, 0.90) 0%,
    rgba(16, 16, 18, 0.78) 55%,
    rgba(16, 16, 18, 0.72) 100%
  );
}

.cta-band .section-eyebrow { color: var(--color-gold-bright); }

.cta-band .section-title {
  color: var(--color-ivory);
  max-width: 18ch;
  margin-inline: auto;
}

.cta-band .section-text {
  color: rgba(251, 247, 241, 0.78);
  max-width: 52ch;
  margin-inline: auto;
}

.cta-band .section-actions {
  justify-content: center;
}

/* ════════════════════════════════════════════════════
   TABLET  768px – 1099px
   ════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .story-section .container,
  .podcast-section .container {
    grid-template-columns: 1fr 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item--wide {
    grid-column: span 3;
  }
}

/* ════════════════════════════════════════════════════
   DESKTOP  ≥ 960px
   ════════════════════════════════════════════════════ */
@media (min-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .podcast-section .container {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* Category grid only widens to 6-across once there's genuinely
   enough room per card (≥1100px) — jumping straight from 3 to 6
   columns at 960px made every card uncomfortably narrow on
   small-desktop/large-tablet windows. */
@media (min-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
