
/* =====================================================
   KONVERSIPDFKEWORD.ID
   SECTION 07 — PREMIUM MINIMAL RED FOOTER

   File: assets/css/footer.css

   Desktop: Compact horizontal footer
   Mobile: Same design with swipeable navigation

   No external libraries required.
===================================================== */


/* =====================================================
   01. FOOTER VARIABLES & RESET
===================================================== */

.kpw-footer {
    --footer-red: #C81034;
    --footer-red-dark: #A90029;
    --footer-red-light: #E10B40;

    --footer-white: #FFFFFF;
    --footer-line: rgba(255, 255, 255, 0.24);

    position: relative;
    isolation: isolate;

    width: 100%;
    max-width: 100%;

    overflow: hidden;

    background: var(--footer-red);
    color: var(--footer-white);

    font-family: inherit;
}

.kpw-footer,
.kpw-footer *,
.kpw-footer *::before,
.kpw-footer *::after {
    box-sizing: border-box;
}


/* =====================================================
   02. SUBTLE CREATIVE RED BACKGROUND
===================================================== */

.kpw-footer::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    pointer-events: none;

    background:
        radial-gradient(
            ellipse 380px 140px at 100% 105%,
            rgba(255, 82, 117, 0.24),
            transparent 75%
        ),

        radial-gradient(
            ellipse 420px 170px at 0% -35%,
            rgba(255, 255, 255, 0.11),
            transparent 76%
        ),

        linear-gradient(
            110deg,
            var(--footer-red-dark) 0%,
            var(--footer-red) 48%,
            var(--footer-red-light) 100%
        );
}

/* Thin luminous top line */

.kpw-footer::after {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 2px;

    pointer-events: none;

    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.7) 50%,
        transparent 100%
    );
}


/* =====================================================
   03. MAIN FOOTER CONTAINER
===================================================== */

.kpw-footer__inner {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 23px 28px 16px;
}

.kpw-footer__main {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 18px;

    min-width: 0;
}


/* =====================================================
   04. FOOTER BRAND
===================================================== */

.kpw-footer__brand {
    display: inline-flex;

    align-items: center;
    gap: 11px;

    flex: 0 0 auto;

    color: #FFFFFF;
    text-decoration: none;

    white-space: nowrap;
}

.kpw-footer__brand:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.kpw-footer__logo {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 4px;

    flex-shrink: 0;
}


/* =====================================================
   05. PDF & WORD MINI ICONS
===================================================== */

.kpw-footer__doc {
    position: relative;

    display: flex;

    align-items: flex-end;
    justify-content: center;

    width: 31px;
    height: 36px;

    padding-bottom: 7px;

    border-radius: 4px;

    background: #FFFFFF;
    color: #BE0C31;

    font-size: 10px;
    font-weight: 800;

    line-height: 1;

    box-shadow: 0 3px 9px rgba(50, 0, 12, 0.13);
}

/* Folded document corner */

.kpw-footer__doc::after {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 0;
    height: 0;

    border-left: 9px solid transparent;
    border-bottom: 9px solid #F2A4B5;
}

/* Word document */

.kpw-footer__doc--word {
    color: #1766B3;
}

.kpw-footer__doc--word::after {
    border-bottom-color: #ACD6F7;
}

/* Conversion arrow */

.kpw-footer__arrow {
    color: #FFE1E8;

    font-size: 20px;
    font-weight: 800;

    line-height: 1;
}


/* =====================================================
   06. BRAND TITLE
===================================================== */

.kpw-footer__brand-name {
    display: inline-block;

    color: #FFFFFF;

    font-size: 19px;
    font-weight: 800;

    line-height: 1.2;
    letter-spacing: -0.6px;

    white-space: nowrap;
}


/* =====================================================
   07. FOOTER NAVIGATION
===================================================== */

.kpw-footer__nav {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 1 1 auto;

    min-width: 0;
    max-width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;
    -ms-overflow-style: none;

    -webkit-overflow-scrolling: touch;

    scroll-snap-type: x proximity;

    overscroll-behavior-inline: contain;
}

.kpw-footer__nav::-webkit-scrollbar {
    display: none;
}


/* Individual links */

.kpw-footer__item {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    flex: 0 0 auto;

    min-height: 39px;

    padding: 9px 12px;

    border-right: 1px solid var(--footer-line);
    border-radius: 3px;

    color: #FFFFFF;

    font-size: 12.5px;
    font-weight: 600;

    line-height: 1.3;
    text-decoration: none;

    white-space: nowrap;

    scroll-snap-align: start;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.kpw-footer__item:last-child {
    border-right: none;
}

a.kpw-footer__item:hover,
a.kpw-footer__item:focus-visible {
    background: rgba(255, 255, 255, 0.12);

    color: #FFFFFF;
    text-decoration: none;
}

/* Pages not created yet */

.kpw-footer__item--pending {
    opacity: 0.55;
    cursor: default;
}


/* =====================================================
   08. NAVIGATION SVG ICONS
===================================================== */

.kpw-footer__icon {
    display: block;

    width: 17px;
    height: 17px;

    flex: 0 0 auto;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =====================================================
   09. BACK TO TOP BUTTON
===================================================== */

.kpw-footer__up {
    display: grid;

    place-items: center;

    flex: 0 0 43px;

    width: 43px;
    height: 43px;

    margin-left: auto;

    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;

    background: #FFFFFF;
    color: var(--footer-red);

    text-decoration: none;

    box-shadow:
        0 4px 14px rgba(70, 0, 18, 0.16),
        0 1px 3px rgba(70, 0, 18, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.kpw-footer__up .kpw-footer__icon {
    width: 23px;
    height: 23px;

    stroke-width: 2.5;
}

.kpw-footer__up:hover {
    transform: translateY(-3px);

    color: var(--footer-red);

    box-shadow:
        0 7px 18px rgba(70, 0, 18, 0.23);
}


/* =====================================================
   10. COPYRIGHT SECTION
===================================================== */

.kpw-footer__bottom {
    display: flex;

    align-items: center;
    justify-content: flex-start;

    width: 100%;

    margin-top: 16px;
    padding-top: 13px;

    border-top: 1px solid var(--footer-line);
}

.kpw-footer__copyright {
    color: rgba(255, 255, 255, 0.94);

    font-size: 12px;
    font-weight: 400;

    line-height: 1.6;
}


/* =====================================================
   11. ACCESSIBILITY
===================================================== */

.kpw-footer a:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .kpw-footer *,
    .kpw-footer *::before,
    .kpw-footer *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


/* =====================================================
   12. SMALL LAPTOP & TABLET
   Preserve horizontal navigation.
===================================================== */

@media (max-width: 1180px) {

    .kpw-footer__inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    .kpw-footer__main {
        flex-wrap: wrap;

        justify-content: space-between;

        gap: 12px;
    }

    .kpw-footer__brand {
        order: 1;
    }

    .kpw-footer__up {
        order: 2;

        margin-left: auto;
    }

    .kpw-footer__nav {
        order: 3;

        flex: 0 0 100%;

        width: 100%;
        max-width: 100%;

        justify-content: flex-start;
    }

    .kpw-footer__item {
        padding-left: 13px;
        padding-right: 13px;
    }
}


/* =====================================================
   13. MOBILE FOOTER
   Same theme, typography, icons and horizontal links.
   Navigation swipes sideways instead of stacking.
===================================================== */

@media (max-width: 600px) {

    .kpw-footer__inner {
        padding: 17px 16px 13px;
    }

    .kpw-footer__main {
        display: flex;

        flex-wrap: wrap;

        align-items: center;
        justify-content: space-between;

        column-gap: 7px;
        row-gap: 10px;
    }

    /* Brand remains horizontal */

    .kpw-footer__brand {
        gap: 8px;

        min-width: 0;
    }

    .kpw-footer__brand-name {
        font-size: 14px;
        font-weight: 800;

        letter-spacing: -0.5px;
    }

    .kpw-footer__logo {
        gap: 3px;
    }

    .kpw-footer__doc {
        width: 26px;
        height: 31px;

        padding-bottom: 6px;

        font-size: 9px;
    }

    .kpw-footer__doc::after {
        border-left-width: 7px;
        border-bottom-width: 7px;
    }

    .kpw-footer__arrow {
        font-size: 16px;
    }

    /* Back to top stays on the same row as brand */

    .kpw-footer__up {
        width: 36px;
        height: 36px;

        flex-basis: 36px;

        margin-left: auto;
    }

    .kpw-footer__up .kpw-footer__icon {
        width: 20px;
        height: 20px;
    }

    /* Swipeable single-line navigation */

    .kpw-footer__nav {
        order: 3;

        flex: 0 0 calc(100% + 32px);

        width: calc(100% + 32px);
        max-width: none;

        margin: 2px -16px 0;
        padding: 0 16px 4px;

        justify-content: flex-start;

        overflow-x: auto;
        overflow-y: hidden;
    }

    .kpw-footer__item {
        min-height: 35px;

        padding: 8px 11px;

        gap: 6px;

        font-size: 12px;
        font-weight: 600;
    }

    .kpw-footer__icon {
        width: 16px;
        height: 16px;
    }

    /* Compact copyright */

    .kpw-footer__bottom {
        margin-top: 7px;
        padding-top: 10px;
    }

    .kpw-footer__copyright {
        font-size: 11px;
        line-height: 1.5;
    }
}


/* =====================================================
   14. EXTRA SMALL PHONES — 320px
===================================================== */

@media (max-width: 360px) {

    .kpw-footer__inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .kpw-footer__brand {
        gap: 6px;
    }

    .kpw-footer__brand-name {
        font-size: 12px;
        letter-spacing: -0.25px;
    }

    .kpw-footer__doc {
        width: 23px;
        height: 28px;

        font-size: 8px;
    }

    .kpw-footer__arrow {
        font-size: 14px;
    }

    .kpw-footer__up {
        width: 33px;
        height: 33px;

        flex-basis: 33px;
    }

    .kpw-footer__nav {
        flex-basis: calc(100% + 24px);

        width: calc(100% + 24px);

        margin-left: -12px;
        margin-right: -12px;

        padding-left: 12px;
        padding-right: 12px;
    }

    .kpw-footer__copyright {
        font-size: 10.5px;
    }
}


/* =====================================================
   END — SECTION 07 FOOTER
===================================================== */
