/* Psychosomatics — variant 2 only.
 * Loaded by page slug so the presentation works before the custom template
 * is manually assigned in wp-admin. Variant 1 remains untouched. */

html[data-design="2"] {
    --psycho-ink: #183b31;
    --psycho-muted: #53665f;
    --psycho-gold: #b58a37;
    --psycho-green: #064635;
    --psycho-sage: #eef3ee;
    --psycho-cream: #fbf8f1;
    --psycho-line: rgba(6, 70, 53, 0.18);
}

html[data-design="2"] body #content,
html[data-design="2"] body .site-content,
html[data-design="2"] body #content > .ast-container,
html[data-design="2"] body #primary,
html[data-design="2"] body #main,
html[data-design="2"] body .site-main,
html[data-design="2"] body .ast-article-single,
html[data-design="2"] body .entry-content {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

html[data-design="2"] body .entry-header {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

html[data-design="2"] body .entry-content > .wp-block-spacer {
    display: none;
}

html[data-design="2"] body .entry-content > .alignfull {
    width: 100%;
    max-width: none;
    margin: 0 !important;
}

/* Hero — the site's emerald/gold language, with an anatomy-atlas image. */
html[data-design="2"] body .entry-content > .premium-gradient:first-child {
    position: relative;
    overflow: hidden;
    min-height: min(760px, calc(100vh - 96px));
    padding: clamp(72px, 7.5vw, 112px) 24px !important;
    background:
        radial-gradient(circle at 78% 48%, rgba(251, 248, 241, 0.12) 0 27%, transparent 28%),
        radial-gradient(circle at 78% 48%, rgba(212, 173, 96, 0.16), transparent 48%),
        linear-gradient(135deg, #04362a 0%, #064635 58%, #0b5944 100%) !important;
}

html[data-design="2"] body .entry-content > .premium-gradient:first-child::before {
    content: none;
    display: none;
}

html[data-design="2"] body .entry-content > .premium-gradient:first-child::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -200px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(212, 173, 96, 0.24);
    border-radius: 50%;
    box-shadow: 0 0 0 46px rgba(212, 173, 96, 0.055), 0 0 0 92px rgba(212, 173, 96, 0.035);
    pointer-events: none;
}

html[data-design="2"] body .entry-content > .premium-gradient:first-child > .wp-block-columns {
    position: relative;
    z-index: 1;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.84fr);
    align-items: center;
    gap: clamp(40px, 7vw, 110px);
    width: min(1180px, calc(100% - 48px));
    max-width: 1180px !important;
    margin: 0 auto !important;
}

html[data-design="2"] body .entry-content > .premium-gradient:first-child .wp-block-column {
    display: flex !important;
    justify-content: center;
    min-width: 0;
}

html[data-design="2"] body .entry-content > .premium-gradient:first-child .wp-block-column:first-child::before {
    content: none;
    display: none;
}

html[data-design="2"] body .entry-content > .premium-gradient:first-child .wp-block-column:first-child {
    flex-direction: column;
    align-items: center !important;
    text-align: center;
}

html[data-design="2"] body .entry-content > .premium-gradient:first-child h2 {
    max-width: 650px;
    margin: 0 auto 24px !important;
    color: var(--ivory-bg) !important;
    font-size: clamp(3.2rem, 5.6vw, 5.7rem) !important;
    line-height: 0.95;
    letter-spacing: -0.035em;
}

html[data-design="2"] body .entry-content > .premium-gradient:first-child p {
    max-width: 610px;
    margin: 0 auto;
    color: #dce7df;
    font-size: clamp(1.06rem, 1.4vw, 1.28rem) !important;
    line-height: 1.65;
}

html[data-design="2"] body .entry-content > .premium-gradient:first-child p br {
    display: none;
}

html[data-design="2"] body .entry-content > .premium-gradient:first-child figure {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 590px);
    aspect-ratio: 1;
    margin: 0 !important;
    padding: 0;
    border: 1px solid rgba(212, 173, 96, 0.5);
    border-radius: 50%;
    background: rgba(251, 248, 241, 0.96);
    box-shadow: 0 28px 60px rgba(0, 28, 21, 0.22), inset 0 0 0 10px rgba(212, 173, 96, 0.08);
    box-sizing: border-box;
    isolation: isolate;
}

html[data-design="2"] body .entry-content > .premium-gradient:first-child img {
    content: url("assets/images/approved/hero-psychosomatics.jpg");
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
    filter: none;
}

/* Body map — two concise rows, not four oversized generic cards. */
html[data-design="2"] body .entry-content > .bg-subtle-ivory {
    position: relative;
    padding: clamp(86px, 9vw, 132px) 24px !important;
    background:
        linear-gradient(rgba(6, 70, 53, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 70, 53, 0.05) 1px, transparent 1px),
        var(--psycho-cream) !important;
    background-size: 64px 64px !important;
}

html[data-design="2"] body .entry-content > .bg-subtle-ivory > * {
    width: min(1120px, 100%);
    margin-inline: auto !important;
}

html[data-design="2"] body .entry-content > .bg-subtle-ivory > .section-divider-gold {
    width: 72px;
    height: 3px;
    margin-bottom: 26px !important;
    background: var(--psycho-gold);
}

html[data-design="2"] body .entry-content > .bg-subtle-ivory > h2 {
    max-width: 760px;
    margin-bottom: 18px !important;
    color: var(--psycho-ink) !important;
    font-size: clamp(2.7rem, 5vw, 4.6rem) !important;
    line-height: 0.98;
}

html[data-design="2"] body .entry-content > .bg-subtle-ivory > p {
    max-width: 650px;
    color: var(--psycho-muted);
    font-size: 1.08rem !important;
    line-height: 1.7;
}

html[data-design="2"] body .entry-content > .bg-subtle-ivory > .wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px !important;
}

html[data-design="2"] body .entry-content > .bg-subtle-ivory > .wp-block-columns:nth-of-type(2) {
    margin-top: 56px !important;
}

html[data-design="2"] body .premium-card-wrapper,
html[data-design="2"] body .premium-card {
    position: relative;
    min-width: 0;
}

html[data-design="2"] body .premium-card {
    display: grid !important;
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: center;
    column-gap: 30px;
    width: 100%;
    min-height: 230px;
    padding: 34px 36px !important;
    border: 1px solid var(--psycho-line) !important;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.84) !important;
    box-shadow: 0 16px 42px rgba(6, 70, 53, 0.065);
    text-align: left;
    backdrop-filter: none;
    transform: translateY(0) !important;
    transition: transform 0.35s cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

html[data-design="2"] body .premium-card::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(6, 70, 53, 0.08);
    pointer-events: none;
}

html[data-design="2"] body .premium-card .premium-icon {
    grid-row: 1 / 3;
    width: 150px;
    height: 150px;
    margin: 0 !important;
    transform: translateY(0) scale(1);
    transition: transform 0.42s cubic-bezier(0.2, 0.75, 0.25, 1), filter 0.35s ease;
}

html[data-design="2"] body .premium-card .premium-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

@media (hover: hover) {
    html[data-design="2"] body .premium-card:hover {
        transform: translateY(-7px) !important;
        border-color: rgba(181, 138, 55, 0.58) !important;
        box-shadow: 0 26px 60px rgba(6, 70, 53, 0.14);
    }

    html[data-design="2"] body .premium-card:hover .premium-icon {
        transform: translateY(-3px) scale(1.05);
        filter: drop-shadow(0 9px 12px rgba(6, 70, 53, 0.14));
    }
}

@keyframes psycho-card-reveal {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@supports (animation-timeline: view()) {
    html[data-design="2"] body .entry-content > .bg-subtle-ivory .premium-card-wrapper {
        animation: psycho-card-reveal linear both;
        animation-timeline: view();
        animation-range: entry 4% cover 27%;
    }

    html[data-design="2"] body .entry-content > .bg-subtle-ivory .premium-card-wrapper:nth-child(2) {
        animation-range: entry 9% cover 32%;
    }
}

html[data-design="2"] body .bg-subtle-ivory > .wp-block-columns:nth-of-type(2) .premium-card-wrapper:first-child img {
    content: url("assets/icons/glass-gold/neck-shoulders.webp");
}

html[data-design="2"] body .bg-subtle-ivory > .wp-block-columns:nth-of-type(2) .premium-card-wrapper:nth-child(2) img {
    content: url("assets/icons/glass-gold/chest.webp");
}

html[data-design="2"] body .bg-subtle-ivory > .wp-block-columns:nth-of-type(3) .premium-card-wrapper:first-child img {
    content: url("assets/icons/glass-gold/abdomen.webp");
}

html[data-design="2"] body .bg-subtle-ivory > .wp-block-columns:nth-of-type(3) .premium-card-wrapper:nth-child(2) img {
    content: url("assets/icons/glass-gold/pelvis.webp");
}

html[data-design="2"] body .premium-card h3 {
    align-self: end;
    margin: 0 0 8px !important;
    color: var(--psycho-ink) !important;
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    line-height: 1.05;
}

html[data-design="2"] body .premium-card p {
    align-self: start;
    margin: 0 !important;
    color: var(--psycho-muted);
    font-size: 0.98rem;
    line-height: 1.62;
}

/* Closing statement and CTA. */
html[data-design="2"] body .entry-content > .premium-gradient:nth-last-of-type(2) {
    padding: clamp(90px, 10vw, 150px) 24px !important;
    background: var(--psycho-green) !important;
}

html[data-design="2"] body .entry-content > .premium-gradient:nth-last-of-type(2) h2,
html[data-design="2"] body .entry-content > .premium-gradient:nth-last-of-type(2) p {
    width: min(760px, 100%);
    margin-inline: auto !important;
    color: #fff8ef !important;
}

html[data-design="2"] body .entry-content > .premium-gradient:nth-last-of-type(2) h2 {
    margin-bottom: 24px !important;
    font-size: clamp(3rem, 5.5vw, 5rem) !important;
}

html[data-design="2"] body .entry-content > .premium-gradient:nth-last-of-type(2) p {
    color: #dce7df !important;
    font-size: clamp(1.08rem, 1.8vw, 1.34rem) !important;
    line-height: 1.75;
}

html[data-design="2"] body .method-cta {
    padding: clamp(72px, 8vw, 110px) 24px !important;
    background: var(--psycho-cream) !important;
}

html[data-design="2"] body .method-cta .section-divider-gold {
    width: 54px;
    margin: 0 auto 24px !important;
    background: var(--psycho-gold);
}

html[data-design="2"] body .method-cta h3 {
    color: var(--psycho-ink) !important;
    font-size: clamp(2rem, 3.6vw, 3.3rem);
}

html[data-design="2"] body .method-cta p {
    color: var(--psycho-muted);
}

html[data-design="2"] body .method-cta .wp-block-button__link {
    min-height: 50px;
    padding: 14px 28px;
    border: 1px solid var(--psycho-green);
    background: var(--psycho-green) !important;
    color: #fffaf3 !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
}

html[data-design="2"] body .method-cta .wp-block-button__link:hover {
    background: transparent !important;
    color: var(--psycho-green) !important;
}

html[data-design="2"] body .method-cta .wp-block-button__link:focus-visible {
    outline: 3px solid var(--psycho-gold);
    outline-offset: 4px;
}

@media (max-width: 900px) {
    html[data-design="2"] body .entry-content > .premium-gradient:first-child {
        min-height: auto;
        padding: 78px 22px 64px !important;
        background:
            radial-gradient(circle at 50% 74%, rgba(212, 173, 96, 0.16), transparent 46%),
            linear-gradient(160deg, #04362a 0%, #064635 66%, #0b5944 100%) !important;
    }

    html[data-design="2"] body .entry-content > .premium-gradient:first-child::before {
        display: none;
    }

    html[data-design="2"] body .entry-content > .premium-gradient:first-child > .wp-block-columns {
        grid-template-columns: 1fr;
        width: min(680px, 100%);
        gap: 44px;
    }

    html[data-design="2"] body .entry-content > .premium-gradient:first-child h2 {
        font-size: clamp(3.1rem, 11vw, 5.2rem) !important;
    }

    html[data-design="2"] body .entry-content > .premium-gradient:first-child p br {
        display: none;
    }

    html[data-design="2"] body .entry-content > .bg-subtle-ivory > .wp-block-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    html[data-design="2"] body .entry-content > .bg-subtle-ivory {
        padding: 72px 16px !important;
    }

    html[data-design="2"] body .premium-card {
        grid-template-columns: 96px minmax(0, 1fr);
        column-gap: 20px;
        min-height: 190px;
        padding: 26px 22px !important;
    }

    html[data-design="2"] body .premium-card .premium-icon {
        width: 96px;
        height: 112px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-design="2"] body .premium-card,
    html[data-design="2"] body .premium-card .premium-icon,
    html[data-design="2"] body .premium-card-wrapper,
    html[data-design="2"] body .method-cta .wp-block-button__link {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
