/* ==========================================================
   Honden pagina – Kennel de Kempenstreek
   ========================================================== */

/* ── Page hero (shared, same as contact) ────────────────── */
.page-hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    overflow: hidden;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../images/mainheader.png');
    background-size: cover;
    background-position: center top;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        110deg,
        rgba(8,4,1,.82) 0%,
        rgba(8,4,1,.55) 52%,
        rgba(8,4,1,.12) 100%
    );
}
.page-hero .paw-field { z-index: 2; }
.page-hero .container { position: relative; z-index: 3; }

.page-hero-content {
    padding: 56px 0 72px;
    max-width: 680px;
}
.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,.85);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .03em;
    margin-bottom: 18px;
}
.page-hero-title {
    font-family: var(--fh);
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -.02em;
}
.page-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.82);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 32px;
}

/* Hero anchor pills */
.hero-anchors {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-anchor {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(8px);
    color: var(--white);
    padding: 8px 18px 8px 8px;
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 600;
    transition: background var(--ease), transform var(--ease);
    text-decoration: none;
}
.hero-anchor img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    background: rgba(255,255,255,.2);
}
.hero-anchor:hover {
    background: rgba(232,160,32,.35);
    transform: translateY(-2px);
}
.hero-anchor--memorial {
    border-color: rgba(255,255,255,.14);
    filter: grayscale(30%);
}


/* ── Dog section layout ─────────────────────────────────── */
.dog-section { background: var(--white); }
.dog-section--alt { background: var(--cream); }

.dog-profile {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 64px;
    align-items: start;
}
.dog-profile--reverse {
    grid-template-columns: 1fr 420px;
}
.dog-profile--reverse .dog-profile-photo {
    order: 2;
}
.dog-profile--reverse .dog-profile-info {
    order: 1;
}

/* Photo */
.dog-profile-photo {
    position: relative;
}
.dog-profile-photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 20px;
    display: block;
    box-shadow: var(--sh3);
}
.dog-profile-photo-decor {
    position: absolute;
    inset: -14px -14px 14px 14px;
    border-radius: 24px;
    background: var(--amber-glow);
    z-index: -1;
}
.dog-profile-photo-decor--pink {
    background: rgba(236,64,122,.12);
}

/* Info */
.dog-profile-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 8px;
}

.dog-status-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    align-self: flex-start;
}
.tag-nest     { background: rgba(56,142,60,.1);  color: #2e7d32; }
.tag-pensioen { background: rgba(236,64,122,.1);  color: #b5295a; }
.tag-memorial { background: rgba(0,0,0,.07);      color: var(--muted); }

.dog-name {
    font-family: var(--fh);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text);
    line-height: 1.1;
    margin: 0;
}

.dog-meta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.dog-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--cream);
    border: 1px solid rgba(0,0,0,.08);
    color: var(--muted);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 500;
}

.dog-desc {
    font-size: .97rem;
    color: var(--muted);
    line-height: 1.75;
    margin: 0;
}

/* Pensioen block */
.pensioen-block {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(236,64,122,.06);
    border-left: 3px solid #e91e63;
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
}
.pensioen-paw {
    width: 32px;
    height: 29px;
    color: #e91e63;
    flex-shrink: 0;
    margin-top: 2px;
}
.pensioen-block p {
    font-size: .9rem;
    color: #b5295a;
    line-height: 1.65;
    margin: 0;
}


/* ── Dog details (accordion) ────────────────────────────── */
.dog-details {
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-block {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--sh1);
}

.detail-toggle {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-family: var(--fb);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    text-align: left;
    gap: 12px;
    transition: background var(--ease);
}
.detail-toggle:hover { background: rgba(0,0,0,.025); }
.detail-toggle[aria-expanded="true"] { border-bottom: 1px solid rgba(0,0,0,.07); }

.detail-toggle-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.detail-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.detail-icon svg { width: 18px; height: 18px; }

.detail-icon-trophy { background: rgba(232,160,32,.14); color: var(--amber-dark); }
.detail-icon-tree   { background: rgba(56,142,60,.1);   color: #2e7d32; }
.detail-icon-health { background: rgba(211,47,47,.1);   color: #c62828; }

.detail-chevron {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--muted);
    transition: transform var(--ease);
}
.detail-chevron svg { width: 100%; height: 100%; }
.detail-toggle[aria-expanded="true"] .detail-chevron { transform: rotate(180deg); }

.detail-body {
    padding: 28px 24px 32px;
    animation: slideDown .28s ease forwards;
}
.detail-body--closed { display: none; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ── Results grid ───────────────────────────────────────── */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.result-card {
    display: flex;
    gap: 16px;
    background: var(--cream);
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid rgba(0,0,0,.06);
}
.result-card.result-placeholder {
    opacity: .5;
    border-style: dashed;
}
.result-year {
    font-family: var(--fh);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--amber-dark);
    line-height: 1;
    min-width: 42px;
    padding-top: 2px;
}
.result-body { display: flex; flex-direction: column; gap: 4px; }
.result-body h4 { font-size: .9rem; font-weight: 700; color: var(--text); }
.result-body p  { font-size: .82rem; color: var(--muted); margin: 0; }
.result-note    { font-size: .78rem !important; }
.result-score {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: .76rem;
    font-weight: 700;
}
.result-excellent { background: rgba(56,142,60,.12); color: #2e7d32; }
.result-very-good { background: rgba(56,142,60,.12); color: #2e7d32; }

.result-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--amber-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(196,122,21,.3);
    padding-bottom: 1px;
    transition: color var(--ease), border-color var(--ease);
}
.result-doc-link:hover {
    color: var(--brown);
    border-color: var(--brown);
}


/* ── Pedigree image ─────────────────────────────────────── */
.pedigree-img-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}
.pedigree-img-wrap a {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.1);
    box-shadow: var(--sh2);
}
.pedigree-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s ease;
}
.pedigree-img-wrap a:hover .pedigree-img {
    transform: scale(1.01);
}
.pedigree-img-hint {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    color: var(--white);
    font-size: .78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    pointer-events: none;
}

/* ── Pedigree tree ──────────────────────────────────────── */
.pedigree-wrap {
    overflow-x: auto;
    padding-bottom: 8px;
}
.pedigree-tree {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 560px;
}
.ped-self {
    background: var(--amber);
    color: var(--white);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-self: flex-start;
    min-width: 180px;
}
.ped-label {
    font-family: var(--fh);
    font-size: 1.1rem;
    font-weight: 800;
}
.ped-sub {
    font-size: .75rem;
    opacity: .8;
}

.ped-parents {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ped-grandparents {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
}
.ped-node {
    background: var(--cream);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ped-small { padding: 10px 14px; }
.ped-sire { border-top: 3px solid var(--amber); }
.ped-dam  { border-top: 3px solid #e91e63; }

.ped-role {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
}
.ped-name {
    font-size: .92rem;
    font-weight: 700;
    color: var(--text);
}
.ped-reg {
    font-size: .74rem;
    color: var(--muted);
}
.ped-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--muted);
    margin-top: 8px;
}
.ped-note svg { flex-shrink: 0; color: var(--amber-dark); }


/* ── Health grid ────────────────────────────────────────── */
.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.health-card {
    background: var(--cream);
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 12px;
    padding: 18px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow var(--ease), transform var(--ease);
}
.health-card:hover {
    box-shadow: var(--sh1);
    transform: translateY(-2px);
}
.health-card-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.health-abbr {
    font-family: var(--fh);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text);
}
.health-full {
    font-size: .74rem;
    color: var(--muted);
    line-height: 1.3;
}
.health-result {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
    align-self: flex-start;
}
.health-clear   { background: rgba(56,142,60,.1); color: #2e7d32; }
.health-carrier { background: rgba(232,160,32,.15); color: var(--amber-dark); }
.health-note {
    font-size: .75rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}
.health-disclaimer {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .8rem;
    color: var(--muted);
    margin: 0;
}
.health-disclaimer svg { flex-shrink: 0; color: var(--amber-dark); }
.health-disclaimer a { color: var(--amber-dark); font-weight: 600; text-decoration: underline; }


/* ── In Memoriam section ────────────────────────────────── */
.memoriam-section {
    background: linear-gradient(160deg, #f8f0ea 0%, #f0e8e0 100%);
}

.memoriam-wrap {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 64px;
    align-items: start;
}

.memoriam-photo-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--sh3);
}
.memoriam-photo-frame img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center 15%;
    display: block;
    filter: grayscale(45%) sepia(15%);
}
.memoriam-heart-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.memoriam-heart-overlay svg {
    width: 22px;
    height: 22px;
    color: rgba(255,150,150,.9);
}

.memoriam-photo-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.memoriam-candle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--muted);
    font-style: italic;
}
.candle-flame {
    font-size: 1.4rem;
    animation: flicker 2.5s ease-in-out infinite;
}
@keyframes flicker {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    33%       { transform: scale(1.05) rotate(2deg); }
    66%       { transform: scale(.97) rotate(-1deg); }
}

.memoriam-text-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 8px;
}
.memoriam-name {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #5a3a2a;
}
.memoriam-divider {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, var(--amber), transparent);
    border-radius: 2px;
}
.memoriam-quote {
    border-left: 3px solid var(--amber-dark);
    padding-left: 20px;
    font-family: var(--fh);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--brown);
    line-height: 1.6;
    margin: 0;
}


/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .dog-profile,
    .dog-profile--reverse {
        grid-template-columns: 1fr;
    }
    .dog-profile--reverse .dog-profile-photo,
    .dog-profile--reverse .dog-profile-info {
        order: unset;
    }
    .dog-profile-photo img {
        aspect-ratio: 4 / 3;
    }
    .memoriam-wrap {
        grid-template-columns: 1fr;
    }
    .memoriam-photo-frame img {
        aspect-ratio: 4 / 3;
    }
    .ped-grandparents {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .page-hero-content { padding: 48px 0 56px; }
    .hero-anchors { gap: 8px; }
    .dog-details { margin-top: 36px; }
    .health-grid { grid-template-columns: 1fr 1fr; }
    .results-grid { grid-template-columns: 1fr; }
    .ped-grandparents { grid-template-columns: 1fr; }
    .ped-parents { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .health-grid { grid-template-columns: 1fr; }
}
