/* ==========================================================================
   05-heritage.css — Heritage story section, timeline, inline photos
   ========================================================================== */

.heritage {
  background-color: var(--color-paper);
  padding-block: var(--space-160) var(--space-120);
}

/* Lead copy + narrow editorial column */
.heritage__intro {
  margin-bottom: var(--space-64);
}

.heritage__intro .caps-label {
  margin-bottom: var(--space-16);
  display: block;
}

.heritage__headline {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  font-variation-settings: 'opsz' 72, 'SOFT' 20, 'wght' 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin-bottom: var(--space-24);
}

.heritage__lead {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--color-ink);
  max-width: 640px;
}

/* --------------------------------------------------------------------------
   Body copy blocks
   -------------------------------------------------------------------------- */
.heritage__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

.heritage__body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-ink);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Inline photo — offset into right gutter on desktop
   -------------------------------------------------------------------------- */
.heritage__photo-block {
  /* On desktop: pulled right via negative margin, so text wraps left */
  float: right;
  clear: right;
  margin-left: var(--space-48);
  margin-bottom: var(--space-32);
  width: 480px;
}

.heritage__photo-block--left {
  float: left;
  clear: left;
  margin-right: var(--space-48);
  margin-left: 0;
}

.heritage__photo-frame {
  overflow: hidden;
  border-radius: var(--radius-card);
}

.heritage__photo-frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center center;
  image-orientation: from-image;
  transition: transform var(--transition-base);
}

.heritage__photo-block:hover .heritage__photo-frame img {
  transform: scale(1.03);
}

/* Black-and-white treatment for the 1920 Clydesdale photo */
.heritage__photo-frame--bw img {
  filter: grayscale(100%) contrast(1.1);
}

/* Wedding photos — slightly warm subdued */
.heritage__photo-frame--warm img {
  filter: saturate(0.85) sepia(0.15);
}

/* Caption — Petersham Nurseries pattern */
.heritage__photo-block .caption {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Botanical sprig divider SVG — inline, centred between paragraphs
   -------------------------------------------------------------------------- */
.heritage__sprig {
  display: flex;
  justify-content: center;
  margin-block: var(--space-48);
}

.heritage__sprig svg {
  width: 40px;
  height: 24px;
  color: var(--color-green);
}

/* --------------------------------------------------------------------------
   After float — clearfix
   -------------------------------------------------------------------------- */
.heritage__body::after {
  content: '';
  display: table;
  clear: both;
}

/* --------------------------------------------------------------------------
   Mobile: float collapses to full-width above text
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .heritage {
    padding-block: var(--space-80);
  }

  .heritage__headline {
    font-size: 28px;
  }

  .heritage__photo-block,
  .heritage__photo-block--left {
    float: none;
    width: 100%;
    margin: 0 0 var(--space-32) 0;
  }

  .heritage__photo-frame img {
    height: 320px;
  }
}
