/* Hairy Poppins – zelfstandige fotocarrousel */

.hp-carousel {
    position: relative;
    width: 100%;
    max-width: 385px;
    margin: 0 auto 2rem;
    overflow: hidden;
    border-radius: 8px;
}

.hp-carousel-track {
    display: flex;
    transition: transform 800ms ease-in-out;
}

.hp-carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
    aspect-ratio: 385 / 400;
}

.hp-carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-carousel-prev,
.hp-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border: 0;
    border-radius: 50%;
    background: rgb(0 0 0 / 45%);
    color: white;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.hp-carousel-prev { left: 10px; }
.hp-carousel-next { right: 10px; }

.hp-carousel-prev:hover,
.hp-carousel-next:hover {
    background: rgb(0 0 0 / 70%);
}

.hp-carousel-prev:focus-visible,
.hp-carousel-next:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .hp-carousel-track {
        transition: none;
    }
}

/* Hairy Poppins – bredere homepage */
body.home .entry-content {
    --wp--style--global--content-size: 1050px;
    --wp--style--global--wide-size: 1200px;
}

body.home .entry-content > .wp-block-columns {
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

body.home .entry-content > .wp-block-columns .wp-block-column {
    min-width: 0;
}

body.home .entry-content > .wp-block-columns h2 {
    overflow-wrap: normal;
    word-break: normal;
}

/* Hairy Poppins – brede homepage-carrousel */
body.home .hp-carousel {
    width: min(100%, 900px);
    max-width: 900px;
    margin: 1rem auto 3rem;
}

body.home .hp-carousel-slide {
    aspect-ratio: 2 / 1;
}

body.home .hp-carousel-slide img {
    object-fit: cover;
    object-position: center;
}

@media (max-width: 600px) {
    body.home .hp-carousel-slide {
        aspect-ratio: 4 / 3;
    }
}

/* Show complete cat photos without cropping */
body.home .hp-carousel-slide {
    background: #f1efec;
}

body.home .hp-carousel-slide img {
    object-fit: contain;
    object-position: center;
}

/* Hairy Poppins homepage service cards */
body.home .entry-content > .wp-block-columns {
    align-items: stretch;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

body.home .entry-content > .wp-block-columns > .wp-block-column {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: #f7f6f4;
    border-radius: 14px;
}

body.home .entry-content > .wp-block-columns > .wp-block-column h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
}

body.home .entry-content > .wp-block-columns > .wp-block-column .wp-block-separator {
    margin: 0 0 1.5rem;
    opacity: 0.35;
}

body.home .entry-content > .wp-block-columns > .wp-block-column p {
    color: #444;
    line-height: 1.65;
}

body.home .entry-content > .wp-block-columns > .wp-block-column p span {
    color: inherit !important;
}

body.home .entry-content > .wp-block-columns > .wp-block-column .wp-block-buttons {
    margin-top: auto;
    padding-top: 1.5rem;
    justify-content: center;
}

body.home .entry-content > .wp-block-columns > .wp-block-column .wp-block-button__link {
    min-width: 150px;
    text-align: center;
}

/* Align carousel width with the service cards */
body.home .hp-carousel {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
