/* Home page redesign (uses the tokens and components from breed-ui.css) */
.hm-page {
    padding-top: 1.2rem;
}

/* hero */
.hm-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 1.5rem;
    align-items: center;
    padding: 2.2rem 2.4rem;
    border-radius: 28px;
    background: linear-gradient(135deg, #fffdf5 0%, #fff3c4 100%);
    overflow: hidden;
}

.hm-eyebrow {
    display: block;
    margin-bottom: .8rem;
    color: var(--bd-muted);
    font-weight: 600;
}

.hm-hero h1 {
    margin: 0 0 1rem;
    font-size: 2.6rem;
    line-height: 1.55;
    font-weight: 900;
    color: var(--bd-ink);
}

.hm-underline {
    background: linear-gradient(transparent 62%, rgba(252, 196, 0, .55) 62%);
}

.hm-hero p {
    margin: 0;
    max-width: 34rem;
    line-height: 2.1rem;
    color: #55616b;
    font-size: 1.05rem;
}

.hm-hero-media {
    position: relative;
    height: 19rem;
}

.hm-blob {
    position: absolute;
    inset: 6% 8% 0 8%;
    border-radius: 48% 52% 55% 45% / 52% 45% 55% 48%;
    background: rgba(252, 196, 0, .35);
}

.hm-pic {
    position: absolute;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 14px 34px rgba(36, 50, 62, .22);
}

.hm-pic-a {
    top: 0;
    bottom: 0;
    right: 12%;
    width: 52%;
    height: 100%;
    border-radius: 28px;
    transform: rotate(3deg);
}

.hm-pic-b {
    bottom: -.5rem;
    left: 8%;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    transform: rotate(-4deg);
}

.hm-paw {
    position: absolute;
    color: var(--bd-yellow);
    opacity: .85;
}

.hm-paw-1 { top: 2%; left: 14%; font-size: 1.8rem; transform: rotate(-20deg); }
.hm-paw-2 { bottom: 8%; right: 2%; font-size: 1.3rem; transform: rotate(15deg); }

@media (max-width: 991px) {
    .hm-hero { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; }
    .hm-hero h1 { font-size: 1.8rem; }
    .hm-hero-media { height: 15rem; order: -1; }
}

/* search */
.hm-search {
    margin: -1.4rem 1.2rem 0;
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 10px 34px rgba(36, 50, 62, .12);
    padding: 1rem 1.2rem 1.1rem;
}

.hm-search-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: .7rem;
}

.hm-tab {
    border: 0;
    padding: .35rem 1.1rem;
    border-radius: 999px;
    background: var(--bd-bg);
    color: var(--bd-muted);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s ease;
}

.hm-tab.is-active {
    background: var(--bd-yellow-soft);
    color: #8a6500;
    box-shadow: inset 0 0 0 2px var(--bd-yellow);
}

.hm-search-box {
    display: flex;
    align-items: center;
    gap: .6rem;
    direction: rtl;
    background: var(--bd-bg);
    border-radius: 999px;
    padding: .35rem;
}

.hm-search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    padding: .6rem 1rem;
    text-align: right;
    direction: rtl;
}

.hm-search-box .bd-btn {
    flex: 0 0 auto;
}

/* slider from the admin panel */
.hm-slider {
    margin-top: 1.4rem;
    border-radius: 22px;
    overflow: hidden;
}

.hm-slider:empty {
    display: none;
}

/* service tiles */
.hm-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
    margin-top: 1.4rem;
}

@media (max-width: 767px) { .hm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hm-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    padding: 1.3rem .6rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--bd-shadow);
    color: var(--bd-ink);
    font-weight: 700;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease;
}

.hm-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(36, 50, 62, .12);
    color: var(--bd-ink);
}

.hm-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    background: var(--bd-yellow-soft);
    color: var(--bd-yellow-strong);
    font-size: 1.6rem;
    line-height: 1;
}

/* banner tweak */
.hm-banner {
    margin-top: 1.4rem;
}

/* section heads */
.hm-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.hm-head-center {
    justify-content: center;
    text-align: center;
}

.hm-head h2 {
    margin: .3rem 0 .2rem;
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--bd-ink);
}

.hm-head p {
    margin: 0;
    color: var(--bd-muted);
}

.hm-badge {
    display: inline-block;
    padding: .2rem .8rem;
    border-radius: 999px;
    background: #fff1bd;
    color: #8a6500;
    font-size: .85rem;
    font-weight: 700;
}

.hm-more {
    flex: 0 0 auto;
    color: #8a6500;
    font-weight: 700;
    white-space: nowrap;
}

/* 3 cards per row on the home page (6 breeds = two full rows) */
.bd-grid.bd-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991px) { .bd-grid.bd-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .bd-grid.bd-grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* why us */
.hm-why {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 991px) { .hm-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .hm-why { grid-template-columns: minmax(0, 1fr); } }

.hm-why-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--bd-shadow);
    padding: 1.4rem 1.2rem;
    text-align: center;
}

.hm-why-card .hm-ico {
    margin-bottom: .7rem;
}

.hm-why-card h3 {
    margin: 0 0 .4rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--bd-ink);
}

.hm-why-card p {
    margin: 0;
    color: var(--bd-muted);
    line-height: 1.9rem;
    font-size: .93rem;
}

/* articles */
.hm-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

@media (max-width: 991px) { .hm-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .hm-posts { grid-template-columns: minmax(0, 1fr); } }

.hm-post {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--bd-shadow);
    overflow: hidden;
    color: inherit;
    transition: transform .2s ease;
}

.hm-post:hover {
    transform: translateY(-4px);
    color: inherit;
}

.hm-post-img {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #eee;
}

.hm-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hm-post-img em {
    position: absolute;
    bottom: .7rem;
    left: .7rem;
    font-style: normal;
    padding: .2rem .8rem;
    border-radius: 999px;
    background: #fff;
    font-size: .8rem;
    font-weight: 700;
    color: var(--bd-ink);
}

.hm-post-body {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1rem 1.1rem 1.1rem;
}

.hm-post-body strong {
    color: var(--bd-ink);
    font-size: 1.05rem;
    line-height: 1.8rem;
}

.hm-post-body small {
    color: var(--bd-muted);
    line-height: 1.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hm-post-body time {
    color: var(--bd-muted);
    font-size: .82rem;
}

/* follow */
.hm-follow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--bd-shadow);
    padding: 1.6rem 1.8rem;
}

.hm-follow h2 {
    margin: 0 0 .3rem;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--bd-ink);
}

.hm-follow p {
    margin: 0;
    color: var(--bd-muted);
}

.hm-follow-links {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

/* cat / dog head icons (follow the text colour) */
.hm-svg {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -.12em;
    background: currentColor;
    -webkit-mask: var(--hm-svg) center / contain no-repeat;
    mask: var(--hm-svg) center / contain no-repeat;
}

.hm-svg-cat { --hm-svg: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M3.5 2.5 9 6.2Q12 5.7 15 6.2L20.5 2.5V12.5Q20.5 21 12 21 3.5 21 3.5 12.5Z%22/%3E%3C/svg%3E"); }
.hm-svg-dog { --hm-svg: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 4.5C8.2 4.5 6.4 7 6.4 10.5V14C6.4 18 9 20.5 12 20.5S17.6 18 17.6 14V10.5C17.6 7 15.8 4.5 12 4.5ZM6.6 6.2C3.6 5.8 2 8.6 2.2 12.8 2.4 15.8 4.2 16.4 5.4 15.2L6.2 13.5ZM17.4 6.2C20.4 5.8 22 8.6 21.8 12.8 21.6 15.8 19.8 16.4 18.6 15.2L17.8 13.5Z%22/%3E%3C/svg%3E"); }
