/* ======================================
   PERSONAL SERVICES - Pre Marriage Investigation (visual panel + content + icon grid)
   used by personal.html - every rule is scoped under .pm
====================================== */

.pm {
    --pm-red: #f12d36;
    --pm-black: #171717;
    --pm-muted: #666d7a;
    --pm-line: #eceef2;
    --pm-pink: #fdecee;
    padding: clamp(40px, 5vw, 72px) 0;
    background: #ffffff;
    color: var(--pm-black);
    font-family: "DM Sans", sans-serif;
}

.pm *,
.pm *::before,
.pm *::after {
    box-sizing: border-box;
    font-style: normal;
}

.pm-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: stretch;
}

.pm-ico {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pm-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- left: visual panel ---- */
.pm-visual {
    position: relative;
    min-height: 560px;
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #171717;
    color: #ffffff;
    box-shadow: 0 28px 50px -26px rgba(23, 23, 23, 0.55);
}

.pm-visual-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 62% 50%;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pm-visual:hover .pm-visual-img {
    transform: scale(1.05);
}

.pm-visual-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 10, 12, 0) 0%, rgba(10, 10, 12, 0.3) 42%, rgba(10, 10, 12, 0.94) 100%),
        linear-gradient(90deg, rgba(10, 10, 12, 0.35) 0%, rgba(10, 10, 12, 0) 55%);
}

.pm-visual-copy {
    position: absolute;
    left: clamp(22px, 3vw, 36px);
    right: clamp(22px, 3vw, 36px);
    bottom: 124px;                      /* sits above the verification card */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 88%;
}

.pm-tag {
    padding: 7px 12px;
    background: var(--pm-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    color: #ffffff;
}

.pm-visual-title {
    margin-top: 16px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.pm-rule {
    width: 52px;
    height: 3px;
    margin: 16px 0 14px;
    border-radius: 2px;
    background: var(--pm-red);
}

.pm-visual-sub {
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

.pm-verify {
    position: absolute;
    right: clamp(18px, 2.4vw, 28px);
    bottom: clamp(18px, 2.4vw, 28px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px 14px 14px;
    border-radius: 14px;
    background: #ffffff;
    color: var(--pm-black);
    box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.5);
}

.pm-verify-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--pm-red);
}

.pm-verify-icon .pm-ico {
    width: 34px;
    height: 34px;
    stroke-width: 1.7;
}

.pm-verify-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11.5px;
    line-height: 1.35;
    color: var(--pm-muted);
}

.pm-verify-text strong {
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--pm-black);
}

/* ---- right: content ---- */
.pm-content {
    min-width: 0;
}

/* on personal.html this eyebrow is the page's H1 (for search); keep the heading defaults from changing its look */
.pm-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 8px;
    font-family: inherit;
    line-height: 1.5;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pm-red);
}

.pm-eyebrow::before {
    content: "";
    width: 38px;
    height: 2px;
    background: var(--pm-red);
}

.pm .pm-title {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(32px, 3.8vw, 50px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--pm-black);
}

.pm-title span {
    color: var(--pm-red);
}

.pm-text {
    margin-top: 14px;
}

.pm-text p {
    margin: 0 0 9px;
    font-size: 14.5px;
    line-height: 1.62;
    color: var(--pm-muted);
}

.pm-text p:last-child {
    margin-bottom: 0;
}

.pm .pm-sub {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0 8px;
    font-family: "DM Sans", sans-serif;
    font-size: clamp(19px, 1.7vw, 22px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--pm-black);
}

.pm-sub::after {
    content: "";
    width: 44px;
    height: 2px;
    background: var(--pm-red);
}

/* ---- aspects ---- */
.pm-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px clamp(14px, 2.4vw, 32px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.pm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 6px 8px;
    border-radius: 14px;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.pm-item:hover {
    background: #ffffff;
    box-shadow: 0 14px 28px -18px rgba(23, 23, 23, 0.35);
    transform: translateY(-3px);
}

.pm-item-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: var(--pm-pink);
    color: var(--pm-red);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.pm-item-icon .pm-ico {
    width: 24px;
    height: 24px;
}

.pm-item:hover .pm-item-icon {
    background: var(--pm-red);
    color: #ffffff;
    transform: scale(1.06);
}

.pm-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pm-item-text strong {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pm-black);
}

.pm-item-text span {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--pm-muted);
}

/* ---- report panel ---- */
.pm-decision {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 24px);
    margin-top: 14px;
    padding: clamp(16px, 1.8vw, 20px) clamp(18px, 2.4vw, 28px);
    border-radius: 16px;
    background: #fff2f3;
}

.pm-decision-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--pm-red);
    color: #ffffff;
    box-shadow: 0 0 0 7px rgba(241, 45, 54, 0.12);
}

.pm-decision-icon .pm-ico {
    width: 28px;
    height: 28px;
}

.pm-decision-line {
    flex: 0 0 1px;
    align-self: stretch;
    background: #efc2c6;
}

.pm-decision-text {
    min-width: 0;
}

.pm .pm-decision-text h3 {
    margin: 0 0 6px;
    font-family: "DM Sans", sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--pm-red);
}

.pm-decision-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #5b616d;
}

/* ---- responsive ---- */
@media (max-width: 991px) {
    .pm-grid {
        grid-template-columns: 1fr;
    }

    .pm-visual {
        min-height: 0;
        height: clamp(420px, 70vw, 560px);
    }

}

@media (max-width: 575px) {
    .pm-visual {
        height: 520px;
        border-radius: 16px;
    }

    .pm-visual-copy {
        left: 20px;
        right: 20px;
        bottom: 118px;
        max-width: none;
    }

    .pm-verify {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .pm-items {
        grid-template-columns: 1fr;
    }

    .pm-decision {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .pm-decision-line {
        display: none;
    }

    .pm-decision-text {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pm-visual-img,
    .pm-item,
    .pm-item-icon {
        transition: none;
    }

    .pm-visual:hover .pm-visual-img,
    .pm-item:hover {
        transform: none;
    }
}
