.home-proof-banner { box-sizing: border-box; margin: 64px 80px 0; padding: 36px 40px; border-radius: 28px; background: #2D2A26; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 32px; }
.home-proof-banner h2 { margin: 0; color: #40C0C0; font-size: 30px; font-weight: 700; line-height: 1.15; }
.home-proof-banner p { margin: 8px 0 0; color: #D9D9D6; font-size: 15px; line-height: 1.5; }
@media (max-width: 900px) {
 .home-proof-banner { margin: 40px 20px 0; padding: 24px; border-radius: 20px; grid-template-columns: 1fr; gap: 24px; }
 .home-proof-banner h2 { font-size: 24px; }
}

.home-introduction, .home-services { margin: 64px 80px 0; }
.home-introduction > h2, .home-services > h2 { margin: 0 0 28px; font-size: 44px; line-height: 1.12; color: #2D2A26; }
.home-introduction__banner { padding: 36px 40px; border-radius: 28px; background: #E6F6F6; border-left: 4px solid #40C0C0; color: #2D2A26; }
.home-introduction__banner p { margin: 0 0 18px; font-size: 20px; line-height: 1.6; }
.home-introduction__banner p:last-child { margin-bottom: 0; }
.home-services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.home-service-card { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 20px; background: #2D2A26; color: #FFFFFF; text-decoration: none; isolation: isolate; }
.home-service-card img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.home-service-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(0,0,0,.85),rgba(0,0,0,.48) 32%,transparent 70%); }
.home-service-card__text { position: absolute; z-index: 1; bottom: 22px; left: 20px; right: 16px; }
.home-service-card h3 { margin: 0 0 12px; font-size: 25px; line-height: 1.1; color: #FFFFFF; }
.home-service-card__text > span { font-size: 16px; font-weight: 700; color: #40C0C0; }
.home-service-card:hover .home-service-card__text > span { color: #40C0C0; }
.home-service-card:focus-visible { outline: 3px solid #40C0C0; outline-offset: 4px; }
@media (max-width: 900px) {
 .home-introduction, .home-services { margin: 40px 20px 0; }
 .home-introduction > h2, .home-services > h2 { font-size: 30px; margin-bottom: 20px; }
 .home-introduction__banner { padding: 24px; border-radius: 20px; }
 .home-introduction__banner p { font-size: 17px; line-height: 1.55; }
 .home-services__grid { grid-template-columns: 1fr; gap: 16px; }
 .home-service-card h3 { font-size: 28px; }
}

/* Enclose the service collection in the shared charcoal banner treatment. */
.home-services { padding: 0; }
.home-services > h2 { color: #D98827; }
@media (max-width: 900px) {
 .home-services { padding: 0; }
}

.home-service-card--placeholder { background: #4D4841; }

.home-introduction > h2 { text-align: center; }

/* Match the introduction banner accent along each service card’s top edge. */
.home-service-card { box-sizing: border-box; border-top: 4px solid #40C0C0; }

.home-services > h2 { font-size: 32px; }
@media (max-width: 900px) { .home-services > h2 { font-size: 24px; } }


.home-proof-banner { text-align: center; }

.home-services__grid > .home-service-card:nth-child(odd) { border-top-color: #D98827; }
.home-services__grid > .home-service-card:nth-child(even) { border-top-color: #40C0C0; }

.home-services__grid > .home-service-card[href="training.html"] img { object-position: 2% center; transform: scale(1.4); transform-origin: 50% 45%; }

.home-services__grid > .home-service-card[href="academy.html"] img { object-position: 50% center; transform: translateY(-3%) scale(1.12); transform-origin: center; }


/* Keep the storefront sign visible in the desktop opening shot. */
@media (min-width: 901px) {
  .page-hero .page-hero__video { object-position: center top; }
}

/* Center the dog in the Grooming service card on both layouts. */
.home-services__grid > .home-service-card[href="grooming.html"] img { object-position: 62% center; }


/* Larger desktop service cards in two rows; retain the mobile layout. */
@media (min-width: 901px) {
 .home-services__grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 24px; }
 .home-services__grid > .home-service-card { grid-column: span 2; }
 .home-services__grid > .home-service-card:nth-child(5) { grid-column: 2 / span 2; }
 .home-service-card__text { left: 20px; right: 16px; bottom: 22px; }
 .home-service-card h3 { font-size: 25px; }
 .home-service-card__text > span { font-size: 16px; }
}
@media (max-width: 900px) {
 .home-services__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
 .home-services__grid > .home-service-card { scroll-snap-align: start; min-width: 0; }
}

.home-services__grid > .home-service-card[href="dog-walking.html"] img { object-position: center 35%; }
