
/* =========================================================
   ROK CORE - PLUGIN FEATURE
   File: widgets/plugin-feature/style.css
   ========================================================= */

/* Main widget */
.rok-pf {
    --rok-pf-bg: #f2f8ff;
    --rok-pf-heading: #101d38;
    --rok-pf-text: #5d6b82;
    --rok-pf-eyebrow: #4389f4;
    --rok-pf-check: #ff690d;
    --rok-pf-button-bg: #ff690d;
    --rok-pf-button-color: #ffffff;

    position: relative;
    display: block;
    width: 100%;
    padding: 48px;
    overflow: hidden;
    box-sizing: border-box;
    background: var(--rok-pf-bg);
    border-radius: 12px;
    color: var(--rok-pf-text);
    font-family: inherit;
}

.rok-pf *,
.rok-pf *::before,
.rok-pf *::after {
    box-sizing: border-box;
}

/* Eyebrow */
.rok-pf__eyebrow {
    display: inline-block;
    margin: 0 0 10px;
    color: var(--rok-pf-eyebrow);
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Heading */
.rok-pf__heading {
    margin: 0 0 5px;
    color: var(--rok-pf-heading);
    overflow-wrap: anywhere;
}

/* Description */
.rok-pf__description {
    margin: 0 0 15px;
    color: var(--rok-pf-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.rok-pf__description p {
    margin: 0 0 12px;
}

.rok-pf__description p:last-child {
    margin-bottom: 0;
}

/* Feature list */
.rok-pf__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rok-pf__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 0;
    color: var(--rok-pf-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
}

/* Check icon */
.rok-pf__check {
    display: inline-flex;
    flex: 0 0 23px;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--rok-pf-check);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.rok-pf__check svg {
    display: block;
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Feature text */
.rok-pf__text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

/* Button wrapper */
.rok-pf__button-wrap {
    display: flex;
    justify-content: flex-start;
    margin-top: 30px;
}

.rok-pf__button-wrap.align-left {
    justify-content: flex-start;
}

.rok-pf__button-wrap.align-center {
    justify-content: center;
}

.rok-pf__button-wrap.align-right {
    justify-content: flex-end;
}

/* Button */
.rok-pf__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 14px 26px;
    border: 2px solid var(--rok-pf-button-bg);
    border-radius: 6px;
    background: var(--rok-pf-button-bg);
    color: var(--rok-pf-button-color);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        color 250ms ease,
        background-color 250ms ease,
        border-color 250ms ease,
        transform 250ms ease,
        box-shadow 250ms ease;
}

.rok-pf__button svg {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rok-pf__button:hover {
    background: transparent;
    color: var(--rok-pf-button-bg);
    border-color: var(--rok-pf-button-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 29, 56, 0.10);
}

.rok-pf__button:focus-visible {
    outline: 3px solid rgba(67, 137, 244, 0.45);
    outline-offset: 4px;
}

/* =========================================================
   ANIMATIONS

   Items are hidden ONLY after JavaScript adds
   .rok-pf--animations-ready to the widget.

   If JavaScript fails, content remains visible.
   ========================================================= */

.rok-pf [data-pf-animate] {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Initial state when JavaScript is active */
.rok-pf.rok-pf--animations-ready [data-pf-animate] {
    opacity: 0;
    visibility: visible;
    transition-property: opacity, transform;
    transition-duration: var(--rok-pf-duration, 700ms);
    transition-delay: var(--rok-pf-delay, 0ms);
    transition-timing-function: ease;
    will-change: opacity, transform;
}

/* Fade up */
.rok-pf.rok-pf--animations-ready[data-animation="fade-up"]
[data-pf-animate] {
    transform: translateY(24px);
}

/* Fade in */
.rok-pf.rok-pf--animations-ready[data-animation="fade-in"]
[data-pf-animate] {
    transform: none;
}

/* Slide left */
.rok-pf.rok-pf--animations-ready[data-animation="slide-left"]
[data-pf-animate] {
    transform: translateX(-24px);
}

/* Zoom in */
.rok-pf.rok-pf--animations-ready[data-animation="zoom-in"]
[data-pf-animate] {
    transform: scale(0.94);
}

/* Visible animation state */
.rok-pf.rok-pf--animations-ready
[data-pf-animate].is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Disabled animation */
.rok-pf[data-animation="none"] [data-pf-animate],
.rok-pf[data-animation="none"] [data-pf-animate].is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    will-change: auto;
}

/* Elementor editor: always show content */
.elementor-editor-active .rok-pf [data-pf-animate],
.elementor-editor-preview .rok-pf [data-pf-animate] {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    will-change: auto;
}

/* Remove Elementor's invisible state for this widget */
.elementor-widget-rok-plugin-feature.elementor-invisible {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .rok-pf.rok-pf--animations-ready [data-pf-animate],
    .rok-pf.rok-pf--animations-ready
    [data-pf-animate].is-visible {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        will-change: auto;
    }

    .rok-pf__button {
        transition: none;
    }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {
    .rok-pf {
        padding: 36px;
        border-radius: 10px;
    }

    .rok-pf__heading {
        font-size: 32px;
    }

    .rok-pf__description {
        font-size: 15px;
    }

    .rok-pf__item {
        font-size: 15px;
    }

    .rok-pf__list {
        gap: 13px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
    .rok-pf {
        padding: 25px 20px;
        border-radius: 8px;
    }

    .rok-pf__eyebrow {
        margin-bottom: 10px;
        font-size: 12px;
        letter-spacing: 0.8px;
    }

    .rok-pf__heading {
        margin-bottom: 14px;
        font-size: 27px;
        line-height: 1.25;
        letter-spacing: -0.4px;
    }

    .rok-pf__description {
        margin-bottom: 21px;
        font-size: 14px;
        line-height: 1.75;
    }

    .rok-pf__list {
        gap: 12px;
    }

    .rok-pf__item {
        gap: 10px;
        font-size: 14px;
        line-height: 1.6;
    }

    .rok-pf__check {
        flex-basis: 21px;
        width: 21px;
        height: 21px;
        font-size: 12px;
    }

    .rok-pf__check svg {
        width: 12px;
        height: 12px;
    }

    .rok-pf__button-wrap {
        margin-top: 24px;
    }

    .rok-pf__button {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Small mobile */
@media (max-width: 380px) {
    .rok-pf {
        padding: 20px 16px;
    }

    .rok-pf__heading {
        font-size: 24px;
    }

    .rok-pf__item {
        font-size: 13px;
    }
}
