/*
Theme Name: GeneratePress Child
Theme URI: https://aramislesmousquetaires.pl/
Description: Motyw potomny GeneratePress dla Aramis Les Mousquetaires
Author: Aramis Les Mousquetaires
Template: generatepress
Version: 1.0.1
Text Domain: generatepress-child
*/

/* =========================================================
   LES MOUSQUETAIRES
   Global styles
   ========================================================= */

:root {
    --lm-bg: #f5f2ec;
    --lm-bg-soft: #ebe6dc;
    --lm-white: #ffffff;

    --lm-black: #171715;
    --lm-text: #24231f;
    --lm-muted: #747067;

    --lm-gold: #ad9362;
    --lm-gold-light: #d3c19c;

    --lm-border: rgba(23, 23, 21, 0.12);

    --lm-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --lm-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --lm-radius: 22px;
    --lm-container: 1240px;

    --lm-shadow:
        0 20px 60px rgba(23, 23, 21, 0.08);
}


/* =========================================================
   BASE
   ========================================================= */

.lm-page,
.lm-page * {
    box-sizing: border-box;
}

.lm-page {
    background: var(--lm-bg);
    color: var(--lm-text);
    font-family: var(--lm-sans);
    font-size: 17px;
    line-height: 1.7;
    overflow: hidden;
}

.lm-page img {
    display: block;
    width: 100%;
    height: auto;
}

.lm-page a {
    color: inherit;
}

.lm-container {
    width: min(calc(100% - 48px), var(--lm-container));
    margin-inline: auto;
}

.lm-section {
    padding: clamp(80px, 9vw, 140px) 0;
}

.lm-section--small {
    padding: clamp(60px, 7vw, 100px) 0;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.lm-eyebrow {
    margin: 0 0 18px;
    font-family: var(--lm-sans);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--lm-gold);
}

.lm-title {
    margin: 0;
    font-family: var(--lm-serif);
    font-size: clamp(48px, 6vw, 82px);
    line-height: 0.98;
    font-weight: 500;
    letter-spacing: -0.035em;
    color: var(--lm-black);
}

.lm-title em {
    display: block;
    font-weight: 400;
    color: var(--lm-gold);
}

.lm-section-title {
    margin: 0;
    font-family: var(--lm-serif);
    font-size: clamp(40px, 4.8vw, 66px);
    line-height: 1.02;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--lm-black);
}

.lm-section-intro {
    max-width: 690px;
    margin: 24px 0 0;
    font-size: 18px;
    line-height: 1.8;
    color: var(--lm-muted);
}

.lm-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: clamp(45px, 6vw, 80px);
}

.lm-section-heading__text {
    max-width: 780px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.lm-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 25px;
    border: 1px solid var(--lm-black);
    border-radius: 100px;
    background: var(--lm-black);
    color: var(--lm-white) !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.lm-btn:hover {
    transform: translateY(-2px);
    background: var(--lm-gold);
    border-color: var(--lm-gold);
}

.lm-btn--outline {
    background: transparent;
    color: var(--lm-black) !important;
}

.lm-btn--outline:hover {
    background: var(--lm-black);
    border-color: var(--lm-black);
    color: var(--lm-white) !important;
}

.lm-btn--light {
    border-color: var(--lm-white);
    background: var(--lm-white);
    color: var(--lm-black) !important;
}

.lm-btn--light:hover {
    background: var(--lm-gold);
    border-color: var(--lm-gold);
}


/* =========================================================
   HERO
   ========================================================= */

.lm-hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    padding: clamp(50px, 5.5vw, 78px) 0 clamp(48px, 5vw, 72px);
    background:
        radial-gradient(
            circle at 78% 25%,
            rgba(173, 147, 98, 0.13),
            transparent 34%
        ),
        var(--lm-bg);
}

.lm-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
    align-items: center;
    gap: clamp(45px, 7vw, 100px);
}

.lm-hero__copy {
    position: relative;
    z-index: 2;
}

.lm-hero__title {
    margin: 0;
    max-width: 650px;
    font-family: var(--lm-serif);
    font-size: clamp(52px, 4.5vw, 72px);
    line-height: 0.94;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--lm-black);
}

.lm-hero__title span {
    display: block;
    margin-top: 14px;
    font-size: 0.98em;
    line-height: 0.96;
    font-weight: 400;
    font-style: italic;
    color: var(--lm-gold);
}

.lm-hero__lead {
    max-width: 570px;
    margin: 30px 0 34px;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.75;
    color: var(--lm-muted);
}

.lm-hero__visual {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.lm-hero-dog {
    position: relative;
    overflow: hidden;
    aspect-ratio: 0.72;
    border-radius: 240px 240px 26px 26px;
    background: #ded8cd;
    box-shadow: var(--lm-shadow);
}

.lm-hero-dog:nth-child(2) {
    margin-top: 80px;
}

.lm-hero-dog img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.lm-hero-dog:hover img {
    transform: scale(1.025);
}

.lm-hero-dog__caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 17px 20px;
    border-radius: 15px;
    background: rgba(20, 20, 18, 0.84);
    backdrop-filter: blur(8px);
    color: var(--lm-white);
}

.lm-hero-dog__caption strong {
    display: block;
    font-family: var(--lm-serif);
    font-size: 28px;
    line-height: 1;
    font-weight: 500;
}

.lm-hero-dog__caption span {
    display: block;
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--lm-gold-light);
}


/* =========================================================
   PRESTIGE BAR
   ========================================================= */

.lm-prestige {
    background: var(--lm-black);
    color: var(--lm-white);
}

.lm-prestige__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.lm-prestige__item {
    padding: 31px 32px;
    border-right: 1px solid rgba(255,255,255,0.12);
}

.lm-prestige__item:last-child {
    border-right: 0;
}

.lm-prestige__value {
    display: block;
    margin-bottom: 5px;
    font-family: var(--lm-serif);
    font-size: 29px;
    line-height: 1;
    color: var(--lm-gold-light);
}

.lm-prestige__label {
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.67);
}


/* =========================================================
   DOG PROFILES
   ========================================================= */

.lm-dogs {
    background: var(--lm-white);
}

.lm-dog-profile {
    display: grid;
    grid-template-columns: minmax(350px, 0.82fr) minmax(0, 1.18fr);
    min-height: 590px;
    margin-bottom: 32px;
    overflow: hidden;
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius);
    background: var(--lm-bg);
}

.lm-dog-profile:last-child {
    margin-bottom: 0;
}

.lm-dog-profile--reverse {
    grid-template-columns: minmax(0, 1.18fr) minmax(350px, 0.82fr);
}

.lm-dog-profile--reverse .lm-dog-profile__image {
    order: 2;
}

.lm-dog-profile__image {
    min-height: 590px;
    overflow: hidden;
}

.lm-dog-profile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.lm-dog-profile:hover .lm-dog-profile__image img {
    transform: scale(1.02);
}

.lm-dog-profile__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(45px, 6vw, 90px);
}

.lm-dog-profile__name {
    margin: 0;
    font-family: var(--lm-serif);
    font-size: clamp(48px, 5vw, 72px);
    line-height: 0.95;
    font-weight: 500;
    color: var(--lm-black);
}

.lm-dog-profile__fullname {
    margin: 13px 0 0;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--lm-gold);
}

.lm-dog-profile__description {
    max-width: 610px;
    margin: 26px 0;
    font-size: 18px;
    line-height: 1.8;
    color: var(--lm-muted);
}

.lm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.lm-tag {
    display: inline-flex;
    padding: 8px 13px;
    border: 1px solid var(--lm-border);
    border-radius: 50px;
    background: rgba(255,255,255,0.6);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}


/* =========================================================
   STUD SECTION
   ========================================================= */

.lm-stud {
    position: relative;
    background: var(--lm-black);
    color: var(--lm-white);
}

.lm-stud .lm-section-title {
    color: var(--lm-white);
}

.lm-stud .lm-section-intro {
    color: rgba(255,255,255,0.65);
}

.lm-stud__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 65px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.14);
}

.lm-stud-feature {
    min-height: 230px;
    padding: 38px 32px;
    background: var(--lm-black);
}

.lm-stud-feature__number {
    display: block;
    margin-bottom: 40px;
    font-family: var(--lm-serif);
    font-size: 25px;
    color: var(--lm-gold-light);
}

.lm-stud-feature h3 {
    margin: 0 0 12px;
    font-family: var(--lm-serif);
    font-size: 27px;
    font-weight: 500;
    color: var(--lm-white);
}

.lm-stud-feature p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.58);
}

.lm-stud__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-top: 55px;
}

.lm-stud__bottom p {
    max-width: 680px;
    margin: 0;
    color: rgba(255,255,255,0.68);
}


/* =========================================================
   SHOW RESULTS
   ========================================================= */

.lm-results {
    background: var(--lm-bg);
}

/* Strona główna: aktualne wystawy są bezpośrednio pod hero.
   Mniejszy odstęp niż w standardowych sekcjach. */
.lm-hero + .lm-results {
    padding-top: clamp(52px, 5vw, 76px);
    padding-bottom: clamp(80px, 8vw, 120px);
}

.lm-hero + .lm-results .lm-section-heading {
    margin-bottom: clamp(36px, 4vw, 56px);
}

.lm-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.lm-result-card {
    overflow: hidden;
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius);
    background: var(--lm-white);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.lm-result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--lm-shadow);
}

.lm-result-card__image {
    display: block;
    position: relative;
    aspect-ratio: 1.22 / 1;
    overflow: hidden;
    background: var(--lm-bg-soft);
}

.lm-result-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.lm-result-card:hover .lm-result-card__image img {
    transform: scale(1.03);
}

.lm-result-card__body {
    padding: 30px;
}

.lm-result-card__meta {
    margin-bottom: 11px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--lm-gold);
}

.lm-result-card h3 {
    margin: 0;
    font-family: var(--lm-serif);
    font-size: 29px;
    line-height: 1.15;
    font-weight: 500;
    color: var(--lm-black);
}

.lm-result-card h3 a {
    text-decoration: none;
}

.lm-result-card p {
    margin: 17px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--lm-muted);
}

.lm-text-link {
    display: inline-flex;
    margin-top: 22px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lm-black) !important;
}

.lm-text-link::after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.25s ease;
}

.lm-text-link:hover::after {
    transform: translateX(4px);
}


/* =========================================================
   CONTACT CTA
   ========================================================= */

.lm-contact {
    padding: clamp(90px, 11vw, 160px) 0;
    background: var(--lm-bg-soft);
}

.lm-contact__box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 60px;
    padding: clamp(45px, 7vw, 90px);
    border-radius: var(--lm-radius);
    background: var(--lm-white);
    box-shadow: var(--lm-shadow);
}

.lm-contact__box .lm-section-title {
    max-width: 770px;
}

.lm-contact__text {
    max-width: 680px;
    margin: 22px 0 0;
    color: var(--lm-muted);
}


/* =========================================================
   GENERATEPRESS HEADER - OPTIONAL GLOBAL STYLE
   ========================================================= */

.site-header {
    border-bottom: 1px solid rgba(23, 23, 21, 0.08);
    background: var(--lm-bg);
}

.inside-header {
    max-width: var(--lm-container);
}

.main-navigation,
.main-navigation .main-nav ul li a {
    background: transparent;
}

.main-navigation .main-nav ul li a {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    background: transparent;
    color: var(--lm-gold);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {

    .lm-hero {
        min-height: auto;
    }

    .lm-hero__grid {
        grid-template-columns: 1fr;
    }

    .lm-hero__copy {
        max-width: 760px;
    }

    .lm-hero__visual {
        width: min(100%, 760px);
        margin-inline: auto;
    }

    .lm-prestige__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lm-prestige__item:nth-child(2) {
        border-right: 0;
    }

    .lm-prestige__item:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    .lm-dog-profile,
    .lm-dog-profile--reverse {
        grid-template-columns: 1fr 1fr;
    }

    .lm-stud__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lm-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 700px) {

    .lm-container {
        width: min(calc(100% - 30px), var(--lm-container));
    }

    .lm-section {
        padding: 75px 0;
    }

    .lm-hero + .lm-results {
        padding-top: 48px;
        padding-bottom: 75px;
    }

    .lm-hero + .lm-results .lm-section-heading {
        margin-bottom: 36px;
    }

    .lm-hero {
        padding: 42px 0 46px;
    }

    .lm-hero__title {
        font-size: clamp(46px, 13vw, 62px);
    }

    .lm-hero__lead {
        margin-top: 25px;
    }

    .lm-hero__visual {
        gap: 10px;
    }

    .lm-hero-dog {
        border-radius: 150px 150px 18px 18px;
    }

    .lm-hero-dog:nth-child(2) {
        margin-top: 45px;
    }

    .lm-hero-dog__caption {
        left: 9px;
        right: 9px;
        bottom: 9px;
        padding: 12px;
    }

    .lm-hero-dog__caption strong {
        font-size: 21px;
    }

    .lm-hero-dog__caption span {
        font-size: 9px;
    }

    .lm-prestige__item {
        padding: 25px 18px;
    }

    .lm-prestige__value {
        font-size: 24px;
    }

    .lm-section-heading {
        display: block;
    }

    .lm-dog-profile,
    .lm-dog-profile--reverse {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .lm-dog-profile--reverse .lm-dog-profile__image {
        order: 0;
    }

    .lm-dog-profile__image {
        min-height: 440px;
        aspect-ratio: 0.9;
    }

    .lm-dog-profile__body {
        padding: 38px 28px 45px;
    }

    .lm-dog-profile__name {
        font-size: 52px;
    }

    .lm-stud__grid {
        grid-template-columns: 1fr;
    }

    .lm-stud-feature {
        min-height: auto;
    }

    .lm-stud-feature__number {
        margin-bottom: 25px;
    }

    .lm-stud__bottom {
        display: block;
    }

    .lm-stud__bottom .lm-buttons {
        margin-top: 30px;
    }

    .lm-results-grid {
        grid-template-columns: 1fr;
    }
.lm-contact__box {
        display: block;
        padding: 42px 27px;
    }

    .lm-contact__box .lm-buttons {
        margin-top: 32px;
    }
}

/* =========================================================
   SHOW RESULT DETAILS
   ========================================================= */

.lm-result-card__dog {
    margin-top: 18px;
    font-family: var(--lm-serif);
    font-size: 23px;
    line-height: 1;
    color: var(--lm-black);
}

.lm-result-card__awards {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.lm-result-card__awards span {
    display: inline-flex;
    padding: 7px 11px;
    border: 1px solid var(--lm-border);
    border-radius: 50px;
    background: var(--lm-bg);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--lm-text);
}

/* =========================================================
   COMPACT SHOW RESULTS
   ========================================================= */

.lm-results-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 26px;
}

.lm-result-mini {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 28px 58px 28px 28px;
    overflow: hidden;
    border: 1px solid var(--lm-border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.48);
    color: var(--lm-black) !important;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.lm-result-mini:hover {
    transform: translateY(-3px);
    background: var(--lm-white);
    border-color: rgba(173, 147, 98, 0.42);
    box-shadow: 0 14px 35px rgba(23, 23, 21, 0.06);
}

.lm-result-mini__meta {
    margin-bottom: 15px;
    font-size: 10px;
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--lm-gold);
}

.lm-result-mini h3 {
    margin: 0 0 18px;
    font-family: var(--lm-serif);
    font-size: clamp(24px, 2vw, 29px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -0.018em;
    color: var(--lm-black);
}

.lm-result-mini p {
    margin: auto 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--lm-muted);
}

.lm-result-mini::after {
    content: "→";
    position: absolute;
    right: 24px;
    bottom: 25px;
    font-size: 18px;
    line-height: 1;
    color: var(--lm-gold);
    transition: transform 0.25s ease;
}

.lm-result-mini:hover::after {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .lm-results-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .lm-results-compact {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 18px;
    }

    .lm-result-mini {
        min-height: 170px;
        padding: 24px 50px 24px 22px;
    }

    .lm-result-mini h3 {
        font-size: 26px;
    }
}

.lm-result-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at 50% 25%,
            rgba(173, 147, 98, 0.18),
            transparent 45%
        ),
        var(--lm-bg-soft);
}

.lm-result-card__placeholder span {
    font-family: var(--lm-serif);
    font-size: 28px;
    font-style: italic;
    color: var(--lm-gold);

/* =========================================================
   PROFILE PAGES — ARAMIS / RICO
   ========================================================= */

/* =========================================================
   SINGLE DOG HERO
   ========================================================= */

.lm-dog-page-hero {
    min-height: auto;
}

.lm-hero__visual--single {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.lm-hero-dog--single {
    width: min(100%, 520px);
    aspect-ratio: 0.78;
    margin: 0 !important;
}

.lm-hero-dog--single img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* =========================================================
   DOG PROFILE DATA
   ========================================================= */

.lm-dog-data {
    width: 100%;
    margin: 34px 0 32px;
    border-top: 1px solid var(--lm-border);
}

.lm-dog-data__row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--lm-border);
}

.lm-dog-data__row span {
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--lm-muted);
}

.lm-dog-data__row strong {
    font-family: var(--lm-serif);
    font-size: 21px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--lm-black);
}

/* =========================================================
   HEALTH & GENETICS
   ========================================================= */

.lm-health-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 65px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.14);
}

.lm-health-item {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    background: var(--lm-black);
}

.lm-health-item__label {
    display: block;
    margin-bottom: 28px;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lm-gold-light);
}

.lm-health-item strong {
    font-family: var(--lm-serif);
    font-size: 25px;
    line-height: 1.15;
    font-weight: 500;
    color: var(--lm-white);
}

/* =========================================================
   PEDIGREE
   ========================================================= */

.lm-pedigree {
    background: var(--lm-bg);
}

.lm-pedigree-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 18px;
    align-items: stretch;
}

.lm-pedigree-dog,
.lm-pedigree-card {
    border: 1px solid var(--lm-border);
    border-radius: 16px;
    background: var(--lm-white);
}

.lm-pedigree-dog--main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
    padding: 38px;
    background: var(--lm-black);
    color: var(--lm-white);
}

.lm-pedigree-dog--main span {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lm-gold-light);
}

.lm-pedigree-dog--main strong {
    font-family: var(--lm-serif);
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.05;
    font-weight: 500;
}

.lm-pedigree-parents {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 18px;
}

.lm-pedigree-grandparents {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 18px;
}

.lm-pedigree-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
    padding: 26px;
}

.lm-pedigree-card span {
    display: block;
    margin-bottom: 9px;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--lm-gold);
}

.lm-pedigree-card strong {
    font-family: var(--lm-serif);
    font-size: 21px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--lm-black);
}

/* =========================================================
   ACHIEVEMENT CARDS
   ========================================================= */

.lm-achievements-grid {
    align-items: stretch;
}

.lm-achievement-card {
    min-height: 250px;
    display: flex;
}

.lm-achievement-card .lm-result-card__body {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
}

.lm-achievement-card h3 {
    font-size: clamp(44px, 4vw, 62px);
    line-height: 0.95;
    color: var(--lm-gold);
}

.lm-achievement-card p {
    max-width: 290px;
    margin-top: 20px;
}

/* =========================================================
   PROFILE PAGE SPACING
   ========================================================= */

.lm-dog-page-hero + .lm-prestige {
    margin-top: 0;
}

.lm-pedigree .lm-section-heading {
    margin-bottom: 55px;
}

/* =========================================================
   PROFILE PAGES — TABLET
   ========================================================= */

@media (max-width: 1024px) {
    .lm-hero__visual--single {
        justify-content: center;
    }

    .lm-hero-dog--single {
        width: min(100%, 600px);
    }

    .lm-health-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lm-pedigree-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lm-pedigree-grandparents {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
    }
}

/* =========================================================
   PROFILE PAGES — MOBILE
   ========================================================= */

@media (max-width: 700px) {
    .lm-dog-page-hero {
        padding-top: 45px;
        padding-bottom: 60px;
    }

    .lm-hero__visual--single {
        margin-top: 10px;
    }

    .lm-hero-dog--single {
        width: 100%;
        aspect-ratio: 0.82;
        border-radius: 180px 180px 20px 20px;
    }

    .lm-dog-data {
        margin-top: 28px;
    }

    .lm-dog-data__row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 13px 0;
    }

    .lm-dog-data__row strong {
        font-size: 20px;
    }

    .lm-health-grid {
        grid-template-columns: 1fr;
        margin-top: 45px;
    }

    .lm-health-item {
        min-height: 125px;
        padding: 25px;
    }

    .lm-health-item__label {
        margin-bottom: 20px;
    }

    .lm-pedigree-grid {
        grid-template-columns: 1fr;
    }

    .lm-pedigree-dog--main {
        min-height: 210px;
    }

    .lm-pedigree-parents {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .lm-pedigree-grandparents {
        grid-column: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .lm-pedigree-card {
        min-height: 110px;
    }

    .lm-achievement-card {
        min-height: 200px;
    }

    .lm-achievement-card .lm-result-card__body {
        padding: 32px 27px;
    }
}

/* =========================================================
   ALL SHOW RESULTS / ARCHIVE
   ========================================================= */

.lm-archive {
    background: var(--lm-bg);
}

.lm-archive-header {
    max-width: 780px;
    margin-bottom: clamp(50px, 7vw, 85px);
}

.lm-archive-grid {
    row-gap: 30px;
}

.lm-archive .lm-result-card h2 {
    margin: 0;
    font-family: var(--lm-serif);
    font-size: 29px;
    line-height: 1.15;
    font-weight: 500;
    color: var(--lm-black);
}

.lm-archive .lm-result-card h2 a {
    color: inherit;
    text-decoration: none;
}

.lm-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: clamp(55px, 7vw, 90px);
}

.lm-pagination__item {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--lm-border);
    border-radius: 50%;
    background: var(--lm-white);
    color: var(--lm-black) !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.lm-pagination__item:hover {
    transform: translateY(-2px);
    border-color: var(--lm-gold);
}

.lm-pagination__item--current {
    background: var(--lm-black);
    border-color: var(--lm-black);
    color: var(--lm-white) !important;
}

@media (max-width: 700px) {
    .lm-archive-header {
        margin-bottom: 45px;
    }

    .lm-pagination {
        margin-top: 50px;
    }

    .lm-pagination__item {
        width: 42px;
        height: 42px;
    }
}

/* =========================================================
   SINGLE POSTS — SHOW JOURNAL
   ========================================================= */

/* GeneratePress single post layout */
body.single-post {
    background: var(--lm-bg);
    color: var(--lm-text);
}

body.single-post .site-content,
body.single-post #primary,
body.single-post .content-area,
body.single-post .site-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.single-post .widget-area {
    display: none;
}

body.single-post article.post,
body.single-post .inside-article {
    margin: 0;
    padding: 0;
    background: var(--lm-bg);
}

/* Featured image */
body.single-post .post-image,
body.single-post .featured-image {
    width: min(calc(100% - 48px), var(--lm-container));
    margin: 38px auto 0;
    overflow: hidden;
    border-radius: var(--lm-radius);
    background: var(--lm-bg-soft);
    box-shadow: var(--lm-shadow);
}

body.single-post .post-image img,
body.single-post .featured-image img {
    display: block;
    width: 100%;
    max-height: 720px;
    object-fit: cover;
    object-position: center;
}

/* Header */
body.single-post .entry-header {
    width: min(calc(100% - 48px), 900px);
    margin: 0 auto;
    padding: clamp(54px, 7vw, 88px) 0 34px;
}

body.single-post .entry-title {
    margin: 0;
    font-family: var(--lm-serif);
    font-size: clamp(44px, 5vw, 72px);
    line-height: 1.02;
    font-weight: 500;
    letter-spacing: -0.035em;
    color: var(--lm-black);
}

body.single-post .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 20px;
    font-family: var(--lm-sans);
    font-size: 11px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lm-gold);
}

body.single-post .entry-meta a {
    color: inherit;
    text-decoration: none;
}

body.single-post .entry-meta .byline {
    display: none;
}

/* Main text column */
body.single-post .entry-content {
    width: min(calc(100% - 48px), 820px);
    max-width: 820px;
    margin: 0 auto;
    padding: 8px 0 clamp(85px, 9vw, 135px);
    font-family: var(--lm-sans);
    font-size: 18px;
    line-height: 1.85;
    color: var(--lm-text);
}

body.single-post .entry-content > *:first-child {
    margin-top: 0;
}

body.single-post .entry-content p {
    margin: 0 0 24px;
}

body.single-post .entry-content strong {
    font-weight: 700;
    color: var(--lm-black);
}

body.single-post .entry-content a {
    color: var(--lm-gold);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Headings */
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
    font-family: var(--lm-serif);
    font-weight: 500;
    color: var(--lm-black);
}

body.single-post .entry-content h2 {
    margin: 65px 0 24px;
    font-size: clamp(38px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.025em;
}

body.single-post .entry-content h3 {
    margin: 45px 0 18px;
    font-size: 31px;
    line-height: 1.15;
}

body.single-post .entry-content h4 {
    margin: 34px 0 16px;
    font-size: 24px;
}

/* Lists */
body.single-post .entry-content ul,
body.single-post .entry-content ol {
    margin: 25px 0 32px;
    padding-left: 26px;
}

body.single-post .entry-content li {
    margin-bottom: 9px;
}

body.single-post .entry-content li::marker {
    color: var(--lm-gold);
}

/* Legacy WPBakery content — neutralize old negative widths/margins */
body.single-post .entry-content .vc_row,
body.single-post .entry-content .wpb_row,
body.single-post .entry-content .vc_column_container,
body.single-post .entry-content .wpb_wrapper {
    box-sizing: border-box;
}

body.single-post .entry-content .vc_row,
body.single-post .entry-content .wpb_row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.single-post .entry-content .vc_column_container > .vc_column-inner {
    padding-left: 0;
    padding-right: 0;
}

/* Images in legacy and Gutenberg posts */
body.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

body.single-post .entry-content > figure.wp-block-image,
body.single-post .entry-content > .wp-block-gallery,
body.single-post .entry-content > .gallery,
body.single-post .entry-content > .vc_row:has(img) {
    width: min(1160px, calc(100vw - 48px));
    max-width: none;
    margin-top: 55px;
    margin-bottom: 55px;
    margin-left: 50%;
    transform: translateX(-50%);
}

body.single-post .entry-content figure.wp-block-image img {
    width: 100%;
    border-radius: 20px;
}

body.single-post .wp-block-gallery {
    gap: 14px;
}

body.single-post .wp-block-gallery figure {
    overflow: hidden;
    border-radius: 18px;
}

body.single-post .wp-block-gallery img {
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

body.single-post figcaption,
body.single-post .wp-element-caption {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.55;
    font-style: normal;
    text-align: center;
    color: var(--lm-muted);
}

/* Quotes */
body.single-post .entry-content blockquote {
    margin: 50px 0;
    padding: 34px 38px;
    border: 0;
    border-left: 3px solid var(--lm-gold);
    background: var(--lm-bg-soft);
    font-family: var(--lm-serif);
    font-size: 27px;
    line-height: 1.45;
    font-style: italic;
    color: var(--lm-black);
}

body.single-post .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

body.single-post .entry-content hr {
    margin: 60px 0;
    border: 0;
    border-top: 1px solid var(--lm-border);
}

/* Post navigation */
body.single-post .post-navigation {
    width: min(calc(100% - 48px), 900px);
    margin: 0 auto 90px;
    padding-top: 35px;
    border-top: 1px solid var(--lm-border);
}

body.single-post .post-navigation a {
    text-decoration: none;
    color: var(--lm-black);
}

body.single-post .post-navigation .nav-previous,
body.single-post .post-navigation .nav-next {
    font-family: var(--lm-serif);
    font-size: 22px;
}

body.single-post .comments-area {
    width: min(calc(100% - 48px), 820px);
    margin: 0 auto 90px;
}

/* Mobile */
@media (max-width: 700px) {
    body.single-post .post-image,
    body.single-post .featured-image {
        width: calc(100% - 30px);
        margin-top: 20px;
        border-radius: 18px;
    }

    body.single-post .post-image img,
    body.single-post .featured-image img {
        max-height: 520px;
    }

    body.single-post .entry-header {
        width: calc(100% - 30px);
        padding: 42px 0 27px;
    }

    body.single-post .entry-title {
        font-size: clamp(39px, 11vw, 52px);
    }

    body.single-post .entry-content {
        width: calc(100% - 30px);
        padding-bottom: 80px;
        font-size: 17px;
        line-height: 1.8;
    }

    body.single-post .entry-content > figure.wp-block-image,
    body.single-post .entry-content > .wp-block-gallery,
    body.single-post .entry-content > .gallery,
    body.single-post .entry-content > .vc_row:has(img) {
        width: calc(100vw - 30px);
        margin-top: 40px;
        margin-bottom: 40px;
    }

    body.single-post .entry-content blockquote {
        margin: 40px 0;
        padding: 27px 24px;
        font-size: 23px;
    }

    body.single-post .post-navigation {
        width: calc(100% - 30px);
        margin-bottom: 65px;
    }
}
