/*==========================================
  Desiwood — IPRS Publishing Support page
  (resources/views/frontend/pages/iprs.blade.php; behaviour in
  public/frontend/js/dw-iprs.js).

  Every rule is scoped to .dw-iprs and shares the visual language of the
  other redesigned pages: Inter, dark glass cards, orange-to-pink accents,
  and the header's container edges.

  Blocks marked .dw-reveal are visible without JS; dw-iprs.js adds .is-ready
  to the page and .is-in to each block as it scrolls into view.
==========================================*/

.dw-iprs {
    --di-card: rgba(255, 255, 255, .04);
    --di-line: rgba(255, 255, 255, .1);
    --di-line-strong: rgba(255, 255, 255, .2);
    --di-text: #fff;
    --di-muted: #a9a3b8;
    --di-accent: #ff8a00;
    --di-accent-2: #ff006e;
    --di-gradient: linear-gradient(90deg, var(--di-accent) 0%, var(--di-accent-2) 100%);
    --di-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --di-fast: .25s;
    position: relative;
    isolation: isolate;
    font-family: "Inter", var(--default-font, "Poppins"), sans-serif;
    color: var(--di-text);
}

.dw-iprs a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #0b0712, 0 0 0 4px rgba(255, 138, 0, .9);
}

/* ---------- Shared ---------- */

.dw-iprs__eyebrow {
    margin: 0 0 16px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .2em;
    line-height: 1;
    text-transform: uppercase;
    color: #ff9d3d;
}

.dw-iprs__h2 {
    margin: 0;
    font-family: inherit;
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.08;
    color: var(--di-text);
}

.dw-iprs__h2 span,
.dw-iprs__title span {
    background: var(--di-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dw-iprs__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 138, 0, .3);
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(255, 138, 0, .16), rgba(255, 0, 110, .14));
    box-shadow: inset 0 0 14px rgba(255, 60, 110, .15);
    font-size: 19px;
    color: #ffc58f;
}

.dw-iprs__icon--lg {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 24px;
}

/* ---------- Hero ---------- */

.dw-iprs__hero {
    position: relative;
    /* Clears the fixed site header (88px). */
    padding: 140px 0 70px;
}

.dw-iprs__hero::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 50%;
    z-index: -1;
    width: min(1300px, 130vw);
    height: 760px;
    transform: translateX(-50%);
    background:
        radial-gradient(34% 44% at 30% 40%, rgba(170, 40, 220, .26), transparent 70%),
        radial-gradient(30% 40% at 72% 45%, rgba(255, 0, 110, .2), transparent 70%),
        radial-gradient(30% 40% at 60% 75%, rgba(255, 120, 0, .14), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.dw-iprs__hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 56px;
    align-items: center;
}

.dw-iprs__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 138, 0, .28);
    border-radius: 99px;
    background: rgba(255, 138, 0, .08);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: #ffc58f;
}

.dw-iprs__pill i {
    font-size: 15px;
}

.dw-iprs__title {
    margin: 0;
    font-family: inherit;
    font-size: clamp(40px, 5.2vw, 66px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.02;
    color: var(--di-text);
}

.dw-iprs__lead {
    max-width: 540px;
    margin: 22px 0 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--di-muted);
}

.dw-iprs__for {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.dw-iprs__for li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid var(--di-line);
    border-radius: 99px;
    background: rgba(255, 255, 255, .03);
    font-size: 13.5px;
    font-weight: 500;
    color: #ddd8e6;
}

.dw-iprs__for i {
    font-size: 15px;
    color: #ffb36b;
}

.dw-iprs__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.dw-iprs__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 26px;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none;
    transition: filter var(--di-fast) var(--di-ease), box-shadow var(--di-fast) var(--di-ease), border-color var(--di-fast) var(--di-ease), background-color var(--di-fast) var(--di-ease);
}

.dw-iprs__btn--primary {
    background: var(--di-gradient);
    box-shadow: 0 12px 30px -12px rgba(255, 40, 100, .6);
    color: #fff;
}

.dw-iprs__btn--primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 16px 36px -12px rgba(255, 40, 100, .75);
    color: #fff;
}

.dw-iprs__btn--ghost {
    border: 1px solid var(--di-line-strong);
    background: rgba(255, 255, 255, .03);
    color: #fff;
}

.dw-iprs__btn--ghost:hover {
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.dw-iprs__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin: 36px 0 0;
    padding: 26px 0 0;
    border-top: 1px solid var(--di-line);
    list-style: none;
}

.dw-iprs__highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dw-iprs__highlights strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.dw-iprs__highlights strong + span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--di-muted);
}

/* ---------- Hero mock: a work moving through registration ---------- */

.dw-iprs__mock {
    position: relative;
    margin: 0;
}

.dw-iprs__mock::before {
    content: "";
    position: absolute;
    inset: 10% 8%;
    z-index: -1;
    border-radius: 40px;
    background: var(--di-gradient);
    filter: blur(70px);
    opacity: .35;
}

.dw-iprs__mock-card {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)), rgba(18, 9, 30, .82);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 90px -40px rgba(0, 0, 0, .9);
    animation: dw-iprs-float 7s ease-in-out infinite;
}

@keyframes dw-iprs-float {
    50% {
        transform: translateY(-8px);
    }
}

.dw-iprs__mock-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--di-line);
}

.dw-iprs__mock-badge {
    display: grid;
    place-items: center;
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--di-gradient);
    box-shadow: 0 14px 30px -14px rgba(255, 40, 100, .8);
    font-size: 28px;
    color: #fff;
}

.dw-iprs__mock-head div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.dw-iprs__mock-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #ff9d3d;
}

.dw-iprs__mock-title {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.dw-iprs__mock-sub {
    font-size: 13px;
    color: var(--di-muted);
}

/* Vertical progress steps. */
.dw-iprs__steps {
    position: relative;
    display: grid;
    gap: 18px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.dw-iprs__steps::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 11px;
    width: 2px;
    background: linear-gradient(180deg, #3ddc84 0%, #3ddc84 45%, rgba(255, 176, 32, .8) 60%, rgba(255, 255, 255, .12) 75%);
}

.dw-iprs__steps li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14.5px;
    color: #ddd8e6;
}

.dw-iprs__step-dot {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: #170c24;
    font-size: 14px;
    color: #0b0712;
}

.dw-iprs__steps li.is-done .dw-iprs__step-dot {
    border-color: #3ddc84;
    background: #3ddc84;
}

.dw-iprs__steps li.is-active .dw-iprs__step-dot {
    border-color: #ffb020;
    box-shadow: 0 0 0 5px rgba(255, 176, 32, .15);
}

.dw-iprs__steps li.is-active .dw-iprs__step-dot::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffb020;
    animation: dw-iprs-pulse 1.4s ease-in-out infinite;
}

@keyframes dw-iprs-pulse {
    50% {
        opacity: .3;
    }
}

.dw-iprs__steps li.is-next {
    color: #7f7890;
}

.dw-iprs__step-tag {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(255, 176, 32, .12);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    color: #ffc04d;
}

/* ---------- What is IPRS ---------- */

.dw-iprs__section {
    position: relative;
    padding: 70px 0;
}

.dw-iprs__section--last {
    padding-bottom: 100px;
}

.dw-iprs__about {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px;
    align-items: center;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--di-line);
    border-radius: 28px;
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(255, 0, 110, .14), transparent 60%),
        radial-gradient(60% 90% at 0% 100%, rgba(255, 138, 0, .12), transparent 60%),
        #140a20;
}

.dw-iprs__about-lead {
    margin: 20px 0 0;
    font-size: 17.5px;
    line-height: 1.7;
    color: #d8d2e2;
}

.dw-iprs__about-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dw-iprs__since {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.dw-iprs__since-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #ff9d3d;
}

.dw-iprs__since-year {
    font-size: clamp(56px, 7vw, 84px);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: .9;
    background: linear-gradient(180deg, #fff 0%, #ffd3a8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dw-iprs__facts {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dw-iprs__facts li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--di-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    font-size: 15px;
    line-height: 1.45;
    color: #e6e1ee;
}

.dw-iprs__check {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--di-gradient);
    font-size: 14px;
    color: #fff;
}

/* ---------- Services ---------- */

.dw-iprs__section-head {
    max-width: 860px;
    margin: 0 auto 44px;
    text-align: center;
}

.dw-iprs__services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dw-iprs__service {
    padding: 28px;
    border: 1px solid var(--di-line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, transparent 45%), var(--di-card);
    transition: border-color var(--di-fast) var(--di-ease);
}

.dw-iprs__service:hover {
    border-color: rgba(255, 138, 0, .35);
}

.dw-iprs__service h3 {
    margin: 22px 0 8px;
    font-family: inherit;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.3;
    color: var(--di-text);
}

.dw-iprs__service p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--di-muted);
}

/* ---------- Scroll reveal ---------- */

.dw-iprs.is-ready .dw-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity .7s var(--di-ease) calc(var(--i, 0) * 80ms),
        transform .7s var(--di-ease) calc(var(--i, 0) * 80ms),
        border-color var(--di-fast) var(--di-ease);
}

.dw-iprs.is-ready .dw-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
    .dw-iprs__hero-grid {
        gap: 40px;
    }

    .dw-iprs__services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .dw-iprs__hero {
        padding: 124px 0 56px;
    }

    .dw-iprs__hero-grid,
    .dw-iprs__about {
        grid-template-columns: minmax(0, 1fr);
    }

    .dw-iprs__hero-text {
        text-align: center;
    }

    .dw-iprs__lead {
        margin-left: auto;
        margin-right: auto;
    }

    .dw-iprs__for,
    .dw-iprs__actions,
    .dw-iprs__highlights {
        justify-content: center;
    }

    .dw-iprs__highlights li {
        text-align: left;
    }

    .dw-iprs__mock {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    .dw-iprs__about {
        gap: 32px;
    }

    .dw-iprs__section {
        padding: 56px 0;
    }
}

@media (max-width: 575.98px) {
    .dw-iprs__hero {
        padding: 112px 0 44px;
    }

    .dw-iprs__lead {
        font-size: 16px;
    }

    .dw-iprs__actions .dw-iprs__btn {
        flex: 1 1 100%;
    }

    .dw-iprs__highlights {
        justify-content: space-between;
        gap: 16px;
    }

    .dw-iprs__highlights li {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }

    .dw-iprs__mock-card {
        padding: 20px;
    }

    .dw-iprs__step-tag {
        display: none;
    }

    .dw-iprs__services {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .dw-iprs *,
    .dw-iprs *::before,
    .dw-iprs *::after {
        transition-duration: 0s !important;
        transition-delay: 0s !important;
        animation: none !important;
    }

    .dw-iprs.is-ready .dw-reveal {
        opacity: 1;
        transform: none;
    }
}
