/* Approved WoafMeow homepage reference. Loaded after the legacy bundle. */
.home-page-redesign.wm-home {
  --wm-page-width: 1440px;
  --wm-page-pad: clamp(24px, 3vw, 48px);
  overflow: clip;
  background: #fff;
}

/* Final release corrections shared by the approved homepage and app pages. */
.form-consent {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
}

.form-consent input[type="checkbox"] {
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  margin: 3px 0 0 !important;
}

.form-consent span {
  display: block;
  min-width: 0;
  line-height: 1.45;
}

.notification-badge {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 8px;
  padding-inline: 5px;
  place-items: center;
  border-radius: 50%;
  background: #b95d3d;
  color: #fff;
  font: 700 12px/1 Arial, sans-serif;
}

.home-page-redesign.wm-home .wm-section-intro-centered {
  display: block;
  text-align: center;
}

.home-page-redesign.wm-home .wm-stat-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.home-page-redesign.wm-home .wm-stat-source {
  margin-top: auto;
  color: #756f67;
  font-size: 12px;
}

.home-page-redesign.wm-home .wm-stat-learn {
  margin-top: 8px;
  color: #8c3e2e;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-page-redesign.wm-home .wm-hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  display: grid;
  width: 68%;
  height: 100%;
  grid-template-columns: minmax(0, 3fr) minmax(150px, 1fr);
  background: #ebe8e1;
}

.home-page-redesign.wm-home .wm-hero-media img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: contain;
  background: #ebe8e1;
}

.home-page-redesign.wm-home .wm-hero-media img + img {
  border-left: 6px solid #f8f4ed;
}

.home-page-redesign.wm-home .wm-lesson-card > img,
.home-page-redesign.wm-home .wm-product-card img,
.home-page-redesign.wm-home .wm-solution-card > img {
  width: 100%;
  object-fit: contain !important;
  background: #f3f0ea;
}

.public-care-lesson {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 28px 80px;
}

.public-lesson-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 40px;
  align-items: center;
  padding: 34px;
  background: #f7f3ec;
}

.public-lesson-hero h1 {
  max-width: 680px;
  margin: 10px 0 16px;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.05;
}

.public-lesson-hero p,
.public-lesson-body p {
  color: #56514b;
  font-size: 18px;
  line-height: 1.65;
}

.public-lesson-hero figure,
.public-lesson-hero img {
  width: 100%;
  margin: 0;
}

.public-lesson-hero img {
  max-height: 430px;
  object-fit: contain;
  background: #eee9e1;
}

.public-lesson-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 0;
}

.public-lesson-body > section {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid #ddd6cb;
}

.public-lesson-body > section > span {
  color: #a24d33;
  font: 700 15px/1.3 Arial, sans-serif;
}

.public-lesson-body h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 38px);
}

.lesson-source {
  margin: 28px 0;
  padding: 24px;
  background: #eef2ea;
  border-left: 4px solid #78886f;
}

.public-lesson-limit {
  max-width: 720px;
  margin: 80px auto;
  padding: 44px;
  text-align: center;
  background: #f7f3ec;
}

.public-lesson-limit .button {
  margin: 8px 4px 0;
}

.contact-intro,
.contact-paths,
.contact-direct,
.loss-question {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.contact-intro {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: center;
  padding-block: 54px;
}

.contact-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(44px, 5vw, 68px);
}

.contact-intro img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  background: #f0ece5;
}

.contact-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 48px;
}

.contact-paths a {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid #d8d0c5;
  color: inherit;
  text-decoration: none;
}

.contact-paths strong { font-size: 22px; }
.contact-paths span { color: #615b54; line-height: 1.5; }
.contact-direct { padding: 34px 0 64px; text-align: center; }

.loss-question {
  display: grid;
  grid-template-columns: minmax(260px, .65fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: #f3eee7;
}

.loss-question h2 { margin: 0 0 8px; font-size: clamp(30px, 3vw, 42px); }
.loss-question form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.loss-question textarea { width: 100%; min-height: 96px; padding: 14px; resize: vertical; }

.provider-photo {
  overflow: hidden;
  background: #f0ece6;
}

.provider-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
}

.shop-grid img,
.marketplace-product-grid img,
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain !important;
  background: #f4f1ec;
}

@media (max-width: 900px) {
  .home-page-redesign.wm-home .wm-hero-media {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    grid-template-columns: minmax(0, 3fr) minmax(110px, 1fr);
  }

  .public-lesson-hero,
  .contact-intro,
  .loss-question {
    grid-template-columns: 1fr;
  }

  .public-lesson-hero { padding: 24px; }
  .contact-paths { grid-template-columns: 1fr; }
  .loss-question form { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .public-care-lesson { padding: 24px 16px 56px; }
  .public-lesson-hero { padding: 18px; gap: 20px; }
  .public-lesson-body > section { grid-template-columns: 1fr; gap: 6px; }
  .contact-intro, .contact-paths, .contact-direct, .loss-question { width: min(100% - 28px, 1180px); }
}

.home-page-redesign.wm-home,
.home-page-redesign.wm-home *,
.home-page-redesign.wm-home *::before,
.home-page-redesign.wm-home *::after {
  box-sizing: border-box;
}

.home-page-redesign.wm-home .wrap {
  width: 100%;
  max-width: var(--wm-page-width);
  min-width: 0;
  margin-inline: auto;
  padding-inline: var(--wm-page-pad);
}

.home-page-redesign.wm-home .wm-hero-layout,
.home-page-redesign.wm-home .wm-stat-grid,
.home-page-redesign.wm-home .wm-lesson-grid,
.home-page-redesign.wm-home .wm-solution-grid,
.home-page-redesign.wm-home .wm-product-grid,
.home-page-redesign.wm-home .wm-vet-grid,
.home-page-redesign.wm-home .wm-meetup > .wrap,
.home-page-redesign.wm-home .wm-story > .wrap {
  min-width: 0;
}

.home-page-redesign.wm-home .wm-stat-grid > *,
.home-page-redesign.wm-home .wm-lesson-grid > *,
.home-page-redesign.wm-home .wm-solution-grid > *,
.home-page-redesign.wm-home .wm-product-grid > *,
.home-page-redesign.wm-home .wm-vet-grid > * {
  min-width: 0;
}

.home-page-redesign.wm-home .wm-evidence,
.home-page-redesign.wm-home .wm-lessons,
.home-page-redesign.wm-home .wm-store,
.home-page-redesign.wm-home .wm-vets {
  padding-block: 42px;
}

.home-page-redesign.wm-home .wm-section-intro,
.home-page-redesign.wm-home .wm-section-head {
  margin-bottom: 20px;
}

.home-page-redesign.wm-home .wm-section-intro h2,
.home-page-redesign.wm-home .wm-section-head h2 {
  font-size: clamp(26px, 1.8vw, 34px);
}

.home-page-redesign.wm-home img {
  max-width: 100%;
}

@media (min-width: 1171px) {
  .home-page-redesign.wm-home .wm-hero {
    min-height: 570px;
    background: #f8f4ed;
  }

  .home-page-redesign.wm-home .wm-hero-image {
    inset: 0 0 0 auto;
    width: 69%;
    height: 100%;
    padding: 0;
    object-fit: contain;
    object-position: center 50%;
    background: #ebe8e1;
  }

  .home-page-redesign.wm-home .wm-hero::after {
    display: block;
    background: linear-gradient(90deg, #faf7f1 0%, #faf7f1 25%, rgba(250, 247, 241, .96) 32%, rgba(250, 247, 241, .24) 48%, rgba(250, 247, 241, 0) 66%);
  }

  .home-page-redesign.wm-home .wm-hero-layout {
    grid-template-columns: minmax(390px, 470px) minmax(260px, 1fr) minmax(278px, 308px);
    min-height: 570px;
    gap: 24px;
    padding-block: 44px;
  }

  .home-page-redesign.wm-home .wm-hero-copy {
    padding: 0;
  }

  .home-page-redesign.wm-home .wm-hero-copy::before {
    display: none;
  }

  .home-page-redesign.wm-home .wm-hero-copy h1 {
    max-width: 500px;
    margin-bottom: 20px;
    font-size: clamp(50px, 3.2vw, 58px);
    line-height: 1.06;
  }

  .home-page-redesign.wm-home .wm-hero-copy > p {
    max-width: 440px;
    margin-bottom: 26px;
    font-size: 17px;
    line-height: 1.55;
  }

  .home-page-redesign.wm-home .wm-hero-ask {
    width: 100%;
    max-width: 308px;
    justify-self: end;
    padding: 24px;
  }

  .home-page-redesign.wm-home .wm-hero-ask textarea {
    min-height: 112px;
  }

  .home-page-redesign.wm-home .wm-stat-grid,
  .home-page-redesign.wm-home .wm-lesson-grid {
    gap: 18px;
  }

  .home-page-redesign.wm-home .wm-stat-card {
    min-height: 190px;
  }

  .home-page-redesign.wm-home .wm-lesson-card {
    grid-template-rows: 180px minmax(176px, auto);
  }

  .home-page-redesign.wm-home .wm-lesson-card > img {
    height: 180px;
  }

  .home-page-redesign.wm-home .wm-product-card img {
    height: 168px;
  }
}

@media (min-width: 901px) and (max-width: 1170px) {
  .home-page-redesign.wm-home .wm-hero {
    min-height: 540px;
  }

  .home-page-redesign.wm-home .wm-hero-layout {
    grid-template-columns: minmax(330px, .9fr) minmax(180px, .65fr) minmax(254px, .7fr);
    min-height: 540px;
    gap: 22px;
  }

  .home-page-redesign.wm-home .wm-hero-copy {
    padding-block: 46px;
  }

  .home-page-redesign.wm-home .wm-hero-copy::before {
    display: none;
  }

  .home-page-redesign.wm-home .wm-hero-copy h1 {
    max-width: 390px;
    font-size: 46px;
    line-height: 1.06;
  }

  .home-page-redesign.wm-home .wm-hero-copy > p {
    font-size: 16px;
  }

  .home-page-redesign.wm-home .wm-hero-ask {
    padding: 20px;
  }
}

@media (max-width: 900px) {
  .home-page-redesign.wm-home {
    --wm-page-pad: 22px;
  }

  .home-page-redesign.wm-home .wm-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .home-page-redesign.wm-home .wm-hero-image {
    position: relative;
    order: 1;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 0;
    object-fit: contain;
    object-position: center;
    background: #eef0ed;
  }

  .home-page-redesign.wm-home .wm-hero::after,
  .home-page-redesign.wm-home .wm-hero-copy::before {
    display: none;
  }

  .home-page-redesign.wm-home .wm-hero-layout {
    order: 2;
    grid-template-columns: minmax(0, 1fr) minmax(270px, .72fr);
    min-height: 0;
    gap: 24px;
    padding-block: 28px 34px;
  }

  .home-page-redesign.wm-home .wm-hero-copy {
    padding: 0;
  }

  .home-page-redesign.wm-home .wm-hero-copy h1 {
    max-width: 560px;
    font-size: clamp(40px, 6.8vw, 52px);
    line-height: 1.06;
  }

  .home-page-redesign.wm-home .wm-hero-ask {
    padding: 20px;
  }

  .home-page-redesign.wm-home .wm-stat-grid,
  .home-page-redesign.wm-home .wm-lesson-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Header lock: the markup is the grid, so it must fit without a phantom wrapper. */
.site-header {
  width: 100%;
  min-width: 0;
  min-height: 70px;
  padding: 9px clamp(18px, 3vw, 46px);
  grid-template-columns: minmax(132px, 174px) minmax(0, 1fr) auto;
  gap: clamp(14px, 2vw, 30px);
  background: rgba(255, 253, 249, .98);
  box-sizing: border-box;
}

.site-header .brand,
.site-header .main-nav,
.site-header .nav-cta {
  min-width: 0;
}

.site-header .brand-logo {
  width: min(174px, 100%);
  max-height: 34px;
  object-fit: contain;
  object-position: left center;
}

.site-header .main-nav {
  justify-content: center;
  gap: clamp(9px, 1.25vw, 20px);
  font-size: clamp(.7rem, .74vw, .82rem);
}

.site-header .main-nav > a,
.site-header .nav-menu summary {
  flex: 0 0 auto;
  padding-block: 8px;
}

.site-header .woafypet-link {
  padding: 8px 12px;
}

.site-header .nav-cta {
  min-height: 40px;
  padding-inline: 18px;
  border-radius: 4px;
  font-size: .8rem;
  box-shadow: none;
}

@media (max-width: 1120px) {
  .site-header .main-nav {
    display: none;
  }

  .site-header {
    grid-template-columns: minmax(132px, 1fr) auto auto;
  }

  .site-header .mobile-menu {
    display: block;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 62px;
    padding: 8px 14px;
    grid-template-columns: minmax(116px, 1fr) auto;
    gap: 10px;
  }

  .site-header .brand-logo {
    width: 142px;
    max-height: 29px;
  }

  .site-header .nav-cta {
    display: none;
  }
}

/* Release hero composition: one calm primary photograph plus a deliberate cat inset. */
@media (min-width: 901px) {
  .home-page-redesign.wm-home .wm-hero-media {
    display: block;
    width: 68%;
    overflow: hidden;
  }

  .home-page-redesign.wm-home .wm-hero-media img:first-child {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .home-page-redesign.wm-home .wm-hero-media img + img {
    position: absolute;
    right: 330px;
    bottom: 24px;
    width: 118px;
    height: 118px;
    padding: 6px;
    border: 1px solid #d9d2c8;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(50, 40, 30, .14);
    object-fit: contain;
  }
}

@media (min-width: 901px) and (max-width: 1170px) {
  .home-page-redesign.wm-home .wm-hero-media img + img {
    right: 270px;
    width: 104px;
    height: 104px;
  }
}

@media (max-width: 900px) {
  .home-page-redesign.wm-home .wm-hero-media {
    position: relative;
    inset: auto;
    order: 1;
    display: grid;
    width: 100%;
    height: 330px;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    overflow: hidden;
  }

  .home-page-redesign.wm-home .wm-hero-media img,
  .home-page-redesign.wm-home .wm-hero-media img + img {
    position: static;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
  }
}

@media (max-width: 620px) {
  .home-page-redesign.wm-home .wm-hero-media {
    height: 210px;
  }
}

@media (max-width: 620px) {
  .home-page-redesign.wm-home {
    --wm-page-pad: 16px;
  }

  .home-page-redesign.wm-home .wm-hero-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 24px 30px;
  }

  .home-page-redesign.wm-home .wm-hero-copy h1 {
    max-width: 360px;
    margin-bottom: 14px;
    font-size: clamp(37px, 10.5vw, 44px);
    line-height: 1.06;
  }

  .home-page-redesign.wm-home .wm-hero-copy > p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
  }

  .home-page-redesign.wm-home .wm-hero-copy .actions {
    grid-template-columns: 1fr 1fr;
  }

  .home-page-redesign.wm-home .wm-hero-ask {
    width: 100%;
    padding: 18px;
  }

  .home-page-redesign.wm-home .wm-evidence,
  .home-page-redesign.wm-home .wm-lessons,
  .home-page-redesign.wm-home .wm-store,
  .home-page-redesign.wm-home .wm-vets {
    padding-block: 32px;
  }

  .home-page-redesign.wm-home .wm-section-intro,
  .home-page-redesign.wm-home .wm-section-head {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
  }

  .home-page-redesign.wm-home .wm-section-intro h2,
  .home-page-redesign.wm-home .wm-section-head h2 {
    max-width: 100%;
    font-size: 26px;
    overflow-wrap: normal;
  }

  .home-page-redesign.wm-home .wm-stat-grid {
    grid-template-columns: 1fr;
  }

  .home-page-redesign.wm-home .wm-stat-card {
    min-height: 166px;
  }

  .home-page-redesign.wm-home .wm-stat-card img {
    height: 128px;
  }

  .home-page-redesign.wm-home .wm-lesson-grid,
  .home-page-redesign.wm-home .wm-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .home-page-redesign.wm-home .wm-lesson-card,
  .home-page-redesign.wm-home .wm-product-card {
    width: 100%;
  }

  .home-page-redesign.wm-home .wm-question-band > .wrap,
  .home-page-redesign.wm-home .wm-meetup > .wrap {
    grid-template-columns: 1fr;
  }

  .home-page-redesign.wm-home .wm-question-examples {
    grid-column: 1;
  }

  .home-page-redesign.wm-home .wm-solution-grid,
  .home-page-redesign.wm-home .wm-vet-grid,
  .home-page-redesign.wm-home .wm-story > .wrap {
    grid-template-columns: 1fr;
  }

  .home-page-redesign.wm-home .wm-story > .wrap {
    padding-inline: 0;
  }

  .home-page-redesign.wm-home .wm-story img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}

/* Public Care Circle cards: preserve every photograph without letting
   portrait assets stretch sibling cards into mismatched layouts. */
.circle-feed-grid .community-starter {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.circle-feed-grid .community-starter-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #f2eee8;
}

.circle-feed-grid .community-starter .text-link {
  margin-top: auto;
}

@media (min-width: 901px) {
  .circle-feed-grid .community-starter:last-child:nth-child(odd) {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    column-gap: 24px;
  }

  .circle-feed-grid .community-starter:last-child:nth-child(odd) .community-starter-image {
    grid-column: 1;
    grid-row: 1 / 5;
    align-self: stretch;
  }

  .circle-feed-grid .community-starter:last-child:nth-child(odd) > :not(.community-starter-image) {
    grid-column: 2;
  }
}
