/* public/css/site/services-pm.css */

:root {
    --pm-ink: var(--black, #0a0a0a);
    --pm-bg: var(--white, #ffffff);
    --pm-muted: var(--muted, #6b6f76);
    --pm-line: var(--line, #e9eaec);
    --pm-card: var(--card, #f7f7f8);
    --pm-accent: var(--accent, #c9a552);
    --pm-accent-soft: var(--accent-2, #e2c777);
    --pm-accent-ink: var(--accent-ink, #13100a);
}

/* ===== Generic section style ===== */
.pm-section {
    padding-block: clamp(32px, 10vh, 92px);
    background: var(--pm-bg);
}
.pm-section__title {
    margin: 0;
    font-weight: 800;
    font-size: clamp(20px, 4.4vw, 32px);
    color: var(--pm-ink);
    letter-spacing: 0.2px;
}
.pm-section__intro {
    margin: 8px 0 0;
    color: var(--pm-muted);
    font-weight: 600;
    line-height: 1.9;
}

/* ===== Hero ===== */
.pm-hero {
    position: relative;
    color: #fff;
    background: radial-gradient(
            900px 320px at 10% -20%,
            rgba(201, 165, 82, 0.16),
            transparent 60%
        ),
        linear-gradient(135deg, #050814, #0b0d10 60%, #020617 100%);
    padding-block: clamp(40px, 14vh, 110px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.7);
    isolation: isolate;
    overflow: clip;
}
.pm-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
            1200px 520px at 80% -20%,
            rgba(255, 255, 255, 0.08),
            transparent 60%
        ),
        linear-gradient(180deg, rgba(0, 0, 0, 0.15), transparent 50%);
    pointer-events: none;
    opacity: 0.9;
    z-index: 0;
}
.pm-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
    margin-inline: auto;
}
.pm-hero__eyebrow {
    margin: 0 0 6px;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #cbd5f5;
}
.pm-hero__title {
    margin: 0;
    font-weight: 900;
    font-size: clamp(26px, 5.6vw, 40px);
    line-height: 1.25;
    letter-spacing: 0.2px;
}
.pm-hero__line {
    display: block;
}
.pm-hero__line--accent {
    background: linear-gradient(90deg, var(--pm-accent), var(--pm-accent-soft));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pm-hero__lead {
    margin: 10px auto 14px;
    max-width: 60ch;
    color: #e5e7eb;
    font-weight: 600;
    line-height: 1.9;
}
.pm-hero__tags {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.pm-hero__tag {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(226, 199, 119, 0.7);
    background: rgba(15, 23, 42, 0.7);
    font-size: 12px;
    font-weight: 700;
    color: #f9fafb;
    backdrop-filter: blur(4px);
}

/* ===== Intro ===== */
.pm-intro {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.pm-intro__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: center;
}
.pm-intro__content {
    min-width: 0;
}
.pm-intro__text {
    margin: 12px 0 0;
    font-weight: 600;
    color: #4b5563;
    line-height: 2;
}
.pm-intro__media {
    display: flex;
    justify-content: center;
}
.pm-intro__frame {
    margin: 0;
    max-width: 520px;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 32px;
    overflow: hidden;
    background: #000;
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.85);
    /* box-shadow: 0 26px 60px rgba(15, 23, 42, 0.8); */
}
.pm-intro__frame::before {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 40px;
    border: 1px solid rgba(201, 165, 82, 0.55);
    pointer-events: none;
}
.pm-intro__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 0.7s ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .pm-intro__frame:hover .pm-intro__image {
        transform: scale(1.08);
    }
}

/* ===== Full width divider image under intro ===== */
.pm-divider {
    padding: 0;
    background: #ffffff;
}

.pm-divider__frame {
    position: relative;
    margin: 0;
    width: 100vw;
    height: clamp(220px, 80vh, 780px);
    margin-inline: calc(50% - 50vw);
    overflow: hidden;
}

.pm-divider__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.pm-divider__frame::before,
.pm-divider__frame::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    pointer-events: none;
}

.pm-divider__frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0) 55%,
        var(--energy-bg, #ffffff) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.pm-divider__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 55%,
        var(--energy-bg, #ffffff) 100%
    );
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 640px) {
    .pm-divider__frame {
        height: clamp(200px, 38vh, 320px);
    }
}

/* ===== Methodology ===== */
.pm-method {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}
.pm-method__head {
    max-width: 880px;
    margin: 0 auto 20px;
    text-align: center;
}
.pm-method__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}
.pm-step {
    position: relative;
    padding: 16px 16px 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.03);
    overflow: hidden;
}
.pm-step::before {
    content: "";
    position: absolute;
    inset-inline-start: -8%;
    inset-block-start: -20%;
    width: 50%;
    height: 64%;
    background: radial-gradient(
        circle at 0 0,
        rgba(201, 165, 82, 0.14),
        transparent 60%
    );
    opacity: 0.8;
    pointer-events: none;
}
.pm-step__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #111827;
    color: #f9fafb;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 6px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.4);
}
.pm-step__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 800;
    color: var(--pm-ink);
}
.pm-step__text {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    line-height: 1.9;
}
.pm-step--wide {
    grid-column: span 3;
}

/* ===== Capacity ===== */
.pm-capacity {
    background: var(--section-background-color);
}
.pm-capacity__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: center;
}
.pm-capacity__content {
    min-width: 0;
}
.pm-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
}
.pm-list li {
    position: relative;
    padding-inline-start: 22px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    line-height: 1.9;
}
.pm-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.7em;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: radial-gradient(
        circle at 30% 30%,
        var(--pm-accent-soft),
        var(--pm-accent)
    );
    box-shadow: 0 0 0 3px rgba(201, 165, 82, 0.16);
    transform: translateY(-50%);
}
.pm-capacity__media {
    display: flex;
    justify-content: center;
}
.pm-capacity__frame {
    margin: 0;
    max-width: 480px;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.45);
}
.pm-capacity__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 0.6s ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .pm-capacity__frame:hover .pm-capacity__image {
        transform: scale(1.06);
    }
}

/* ===== Result / Outcome ===== */
.pm-result {
    background: #020617;
    color: #e5e7eb;
    border-top: 1px solid rgba(15, 23, 42, 0.7);
    border-bottom: 1px solid rgba(15, 23, 42, 0.7);
}
.pm-result__inner {
    max-width: 840px;
    margin-inline: auto;
    text-align: center;
}
.pm-result__head .pm-section__title {
    color: #f9fafb;
}
.pm-result__head .pm-section__intro {
    color: #cbd5f5;
}
.pm-result__highlight {
    margin: 16px auto 0;
    max-width: 60ch;
    padding: 12px 16px;
    border-radius: 18px;
    background: radial-gradient(
            900px 360px at 50% 0,
            rgba(201, 165, 82, 0.16),
            transparent 65%
        ),
        rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(201, 165, 82, 0.55);
    color: #f9fafb;
    font-weight: 700;
    line-height: 2;
}

/* ===== Bottom full-width gallery image ===== */
.pm-gallery-full {
    padding: 0;
    margin: 0;
    background: #020617;
    border-top: 0;
    border-bottom: 0;
}

.pm-gallery-full [data-anim],
.pm-gallery-full [data-anim].is-in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
}

.pm-gallery-full__frame {
    position: relative;
    margin: 0;
    width: 100vw;
    height: clamp(220px, 55vh, 520px);
    margin-inline: calc(50% - 50vw);
    overflow: hidden;
    background: #000;
}

.pm-gallery-full__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.pm-gallery-full__frame::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 32%;
    background: linear-gradient(to bottom, #020617 0%, rgba(2, 6, 23, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 640px) {
    .pm-gallery-full__frame {
        height: clamp(220px, 45vh, 360px);
    }
}

/* ===== Responsive tweaks ===== */
@media (max-width: 960px) {
    .pm-intro__layout,
    .pm-capacity__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    .pm-intro__media,
    .pm-capacity__media {
        order: -1;
    }
    .pm-method__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pm-step--wide {
        grid-column: span 2;
    }
}
@media (max-width: 780px) {
    .pm-method__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .pm-step--wide {
        grid-column: span 1;
    }
    .pm-intro__frame {
        border-radius: 24px;
    }
    .pm-gallery__wrap {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: 200px;
    }
    .pm-gallery__item--large {
        grid-row: span 1;
    }
}
@media (max-width: 640px) {
    .pm-intro__frame {
        border-radius: 22px;
    }
    .pm-capacity__frame {
        border-radius: 20px;
    }
    .pm-gallery__wrap {
        grid-auto-rows: 180px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *[data-anim] {
        animation: none !important;
        transition: none !important;
        filter: none !important;
    }
}
