/* Front page composition for Forte et Tendre. */
.home .pb-page > .hero.wrap {
  --hero-ink: #f8f5eb;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: stretch;
  gap: 0;
  width: min(1440px, calc(100% - 48px));
  margin: 24px auto 0;
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #21382d;
  color: var(--hero-ink);
}
.home .hero > .wp-block-group:first-child {
  align-self: center;
  padding: clamp(30px, 5.4vw, 88px);
}
.home .hero .eyebrow { color: #d8dfcf; margin-bottom: 24px; }
.home .hero h1 {
  color: inherit;
  font: 700 clamp(3rem, 6.1vw, 6.6rem)/.98 Manrope, Arial, sans-serif;
  letter-spacing: -.075em;
  margin: 0 0 24px;
}
.home .hero h1 em { color: #e4b799; }
.home .hero .intro, .home .hero-bottom span { color: #e1e6db; }
.home .hero .actions { margin-top: 24px; }
.home .hero .actions .wp-block-button__link { color: #23382d; background: #f5efe0; border-radius: 30px; }
.home .hero .actions .wp-block-button__link:hover { background: #e4b799; }
.home .hero .textlink { color: inherit; }
.home .hero-bottom { border-color: #6d8273; }
.home .hero .hero-photo {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  min-height: 340px;
  background: #304a38;
}
.home .hero-photo .wp-block-image { position: absolute; inset: 0; margin: 0; width: 100%; }
.home .hero-photo .wp-block-image img {
  display: block;
  width: 100%;
  height: 100% !important;
  max-height: none;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 0;
}
.home .hero .hero-photo .photo-note {
  position: absolute;
  inset: auto 18px 18px;
  width: fit-content;
  max-width: calc(100% - 36px);
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: #17291fe8;
  color: #faf6ec;
}
.home .hero .photo-note .small { color: #e1e6db; }
.home .pb-page > .section { padding-block: clamp(48px, 7vw, 104px); }
.home .pb-page > .sectionline:not(.wrap) { border-top: 0; }
.home .pb-page > .dark {
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto;
  border-radius: 28px;
}
.home .pb-page > .dark .featureitem {
  padding: clamp(20px, 3vw, 34px);
  background: #ffffff0a;
  border: 1px solid #ffffff36;
  border-radius: 18px;
}
.home .pb-page .dogcard .image, .home .pb-page .split .wp-block-image { border-radius: 18px; }
.home .pb-page .sectionhead h2, .home .pb-page .copy h2 {
  font: 700 clamp(2rem, 4.25vw, 4.35rem)/1.08 Manrope, Arial, sans-serif;
  letter-spacing: -.06em;
}
@media (max-width: 820px) {
  .home .pb-page > .hero.wrap { grid-template-columns: minmax(0, 1fr); }
  .home .hero > .wp-block-group:first-child { padding: 32px clamp(20px, 6vw, 46px); }
  .home .hero h1 { font-size: clamp(2.85rem, 10vw, 5rem); }
  .home .hero .hero-photo { min-height: 0; aspect-ratio: 1167/848; }
}
@media (max-width: 520px) {
  .home .pb-page > .hero.wrap, .home .pb-page > .dark { width: calc(100% - 24px); border-radius: 20px; }
  .home .pb-page > .hero.wrap { margin-top: 12px; }
  .home .hero .actions { gap: 10px; }
  .home .hero .hero-photo .photo-note { inset: auto 10px 10px; }
}

/* Motion is opt-in through the visitor's system preference. */
@media (prefers-reduced-motion: no-preference) {
  .home .hero > .wp-block-group:first-child {
    animation: pb-front-arrive .8s cubic-bezier(.2,.75,.25,1) both;
  }

  .home .hero-photo .wp-block-image img {
    animation: pb-photo-arrive 1.35s cubic-bezier(.2,.75,.25,1) both;
    transition: filter .55s ease;
  }

  .home .hero .hero-photo::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgb(255 249 232 / .45);
    border-radius: 18px;
    pointer-events: none;
    transition: inset .65s cubic-bezier(.2,.75,.25,1), border-color .55s ease, border-radius .65s ease;
  }

  .home .hero .photo-note { z-index: 1; }
  .home .pb-page .wp-block-button__link,
  .home .pb-page .dogcard .image,
  .home .pb-page > .dark .featureitem {
    transition: transform .45s cubic-bezier(.2,.75,.25,1), border-color .45s ease,
      border-radius .55s cubic-bezier(.2,.75,.25,1), box-shadow .45s ease, background-color .35s ease;
  }

  .home .pb-page .wp-block-button__link:focus-visible,
  .home .pb-page .dogcard:focus-visible .image {
    outline: 2px solid #a25e3a;
    outline-offset: 4px;
  }

  @media (hover: hover) and (pointer: fine) {
    .home .hero .hero-photo:hover::after {
      inset: 20px;
      border-radius: 12px;
      border-color: rgb(255 249 232 / .8);
    }

    .home .hero .hero-photo:hover img { filter: saturate(1.09); }
    .home .pb-page .wp-block-button__link:hover { transform: translateY(-2px); }
    .home .pb-page .dogcard:hover .image,
    .home .pb-page > .dark .featureitem:hover {
      transform: translateY(-5px);
      border-radius: 24px;
      box-shadow: 0 16px 32px rgb(15 28 21 / .16);
    }
    .home .pb-page > .dark .featureitem:hover { border-color: #e4b799; }
  }

  @supports (animation-timeline: view()) {
    .home .pb-page > .section {
      animation: pb-section-arrive linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 32%;
    }

    .home .pb-page > .section:focus-within { animation: none; }
  }
}

@keyframes pb-front-arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pb-photo-arrive {
  from { transform: scale(1.045); }
  to { transform: scale(1); }
}

@keyframes pb-section-arrive {
  from { opacity: .66; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

