
/* WordToJPG.id - Premium flat footer with stable typing hover */

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

.wj-footer {
    --footer-bg: #EAE8BA;
    --footer-navy: #102B3A;
    --footer-teal: #087C83;
    --footer-dark: #15232B;

    width: 100%;
    padding: 54px 24px 24px;

    background: var(--footer-bg);
    color: var(--footer-navy);

    font-family: "Plus Jakarta Sans", sans-serif;
}

/* Remove old decorative backgrounds */

.wj-footer::before,
.wj-footer::after,
.wj-footer__container::before {
    content: none;
    display: none;
}

/* Main Container */

.wj-footer__container {
    width: min(100%, 1200px);
    margin: 0 auto;
}

/* Flat Layout - No White Card */

.wj-footer__panel {
    margin: 0;
    padding: 0;

    border: none;
    border-radius: 0;

    background: transparent;
    box-shadow: none;
}

/* Desktop Grid */

.wj-footer__main {
    display: grid;

    grid-template-columns:
        minmax(230px, 1.14fr)
        minmax(390px, 1.72fr)
        minmax(180px, .78fr);

    gap: clamp(24px, 3vw, 44px);
    align-items: start;
}

/* Brand */

.wj-footer__brand-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
}

.wj-footer__brand {
    display: inline-flex;
    align-items: center;

    gap: 12px;
    max-width: 100%;

    color: var(--footer-navy);
    text-decoration: none;
}

.wj-footer__brand-symbol {
    display: grid;
    place-items: center;

    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    border: 2px solid #09666E;
    border-radius: 11px;

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

    font-size: 21px;

    box-shadow: 0 3px 0 var(--footer-navy);
}

.wj-footer__brand-wordmark {
    color: var(--footer-navy);

    font-size: clamp(21px, 2vw, 27px);
    font-weight: 800;

    line-height: 1.2;
    letter-spacing: -.055em;

    white-space: nowrap;
}

.wj-footer__brand-wordmark span {
    color: var(--footer-teal);
}

/* Brand Description */

.wj-footer__description {
    max-width: 295px;
    margin: 18px 0 0;

    color: var(--footer-dark);

    font-size: 13px;
    font-weight: 550;
    line-height: 1.8;
}

/* Navigation Columns */

.wj-footer__links {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
    min-width: 0;
}

.wj-footer__link-group {
    min-width: 0;
}

.wj-footer__link-group h2 {
    margin: 4px 0 20px;

    color: #101820;

    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

/* Small Teal Heading Underline */

.wj-footer__link-group h2::after {
    content: "";
    display: block;

    width: 27px;
    height: 2px;

    margin-top: 9px;

    border-radius: 3px;
    background: var(--footer-teal);
}

/* Navigation List */

.wj-footer__link-group ul {
    display: flex;
    flex-direction: column;

    gap: 12px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.wj-footer__link-group li {
    margin: 0;
    padding: 0;
}

/* Stable Navigation Links */

.wj-footer__link-group a {
    position: relative;
    display: inline-block;

    max-width: 100%;
    padding-bottom: 4px;

    color: var(--footer-dark);

    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.6;

    text-decoration: none;
    overflow-wrap: anywhere;
}

/* Letter-By-Letter Typing Effect */

.wj-footer__link-group a .wj-footer-type-word {
    display: inline-block;
    white-space: nowrap;
}

.wj-footer__link-group a .wj-footer-type-letter {
    color: var(--footer-dark);
    transition: color .10s ease;
}

.wj-footer__link-group a .wj-footer-type-letter.is-typed {
    color: var(--footer-teal);
}

/* Fallback Hover Without JavaScript */

.wj-footer__link-group
a:not([data-wj-typing-ready]):hover,

.wj-footer__link-group
a:not([data-wj-typing-ready]):focus-visible {
    color: var(--footer-teal);
}

/* Animated Teal Underline */

.wj-footer__link-group a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 2px;

    border-radius: 2px;
    background: var(--footer-teal);

    transform: scaleX(0);
    transform-origin: left center;

    transition: transform .32s ease;

    pointer-events: none;
}

.wj-footer__link-group a:hover::after,
.wj-footer__link-group a:focus-visible::after {
    transform: scaleX(1);
}

/* Help Area - No Card */

.wj-footer__help {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;

    padding: 3px 0 0 24px;

    border-left:
        1px solid rgba(16, 43, 58, .14);
}

/* Help Icon */

.wj-footer__help-icon {
    display: flex;
    align-items: center;

    margin-bottom: 14px;

    color: var(--footer-teal);
    font-size: 22px;
}

.wj-footer__help h2 {
    margin: 0 0 8px;

    color: #101820;

    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.wj-footer__help p {
    margin: 0 0 17px;

    color: var(--footer-dark);

    font-size: 12.5px;
    font-weight: 550;
    line-height: 1.75;
}

/* Minimal Conversion Link */

.wj-footer__cta {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    padding-bottom: 7px;

    border-bottom:
        2px solid var(--footer-teal);

    color: var(--footer-teal);

    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;

    text-decoration: none;

    transition:
        color .2s ease,
        gap .2s ease;
}

.wj-footer__cta:hover {
    gap: 13px;
    color: #06676D;
}

/* Bold Copyright Divider */

.wj-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 10px 20px;

    margin-top: 34px;
    padding-top: 20px;

    border-top:
        2px solid var(--footer-navy);
}

/* Copyright Text */

.wj-footer__bottom p {
    margin: 0;

    color: var(--footer-navy);

    font-size: 12px;
    font-weight: 700;
    line-height: 1.65;
}

/* Keyboard Focus */

.wj-footer a:focus-visible {
    outline: 2px solid var(--footer-teal);
    outline-offset: 5px;
    border-radius: 2px;
}

/* Laptop And Tablet */

@media (max-width: 1120px) {

    .wj-footer {
        padding: 48px 24px 23px;
    }

    .wj-footer__main {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 30px;
    }

    .wj-footer__brand-panel {
        grid-column: 1;
        grid-row: 1;
    }

    .wj-footer__help {
        grid-column: 2;
        grid-row: 1;

        max-width: 330px;
    }

    .wj-footer__links {
        grid-column: 1 / -1;
        grid-row: 2;

        gap: 30px;
        padding-top: 23px;

        border-top:
            1px solid rgba(16, 43, 58, .13);
    }
}

/* Mobile Responsive */

@media (max-width: 700px) {

    .wj-footer {
        padding: 42px 19px 22px;
    }

    .wj-footer__main {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .wj-footer__brand-panel {
        grid-column: 1;
        grid-row: 1;
    }

    .wj-footer__links {
        grid-column: 1;
        grid-row: 2;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 25px 17px;
        padding-top: 22px;
    }

    .wj-footer__help {
        grid-column: 1;
        grid-row: 3;

        max-width: 100%;

        padding: 22px 0 0;

        border-left: 0;
        border-top:
            1px solid rgba(16, 43, 58, .13);
    }

    .wj-footer__brand-wordmark {
        font-size: 24px;
    }

    .wj-footer__description {
        max-width: 440px;
        margin-top: 16px;
    }

    .wj-footer__bottom {
        margin-top: 28px;
        padding-top: 18px;
    }
}

/* Small Mobile Screens */

@media (max-width: 370px) {

    .wj-footer {
        padding-inline: 15px;
    }

    .wj-footer__brand-wordmark {
        font-size: 22px;
    }

    .wj-footer__links {
        gap: 22px 12px;
    }

    .wj-footer__link-group a {
        font-size: 12px;
    }
}

/* Reduced-Motion Accessibility */

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

    .wj-footer a,
    .wj-footer__link-group a::after,
    .wj-footer__link-group a .wj-footer-type-letter {
        transition: none;
    }

    .wj-footer__link-group
    a:hover .wj-footer-type-letter,

    .wj-footer__link-group
    a:focus-visible .wj-footer-type-letter {
        color: var(--footer-teal);
    }
}
