/* ==========================================================
   PROFILE FOOTER — EDITORIAL LINES
   Full replacement stylesheet.
   ========================================================== */

#footer.ct-footer {
    --pf-accent: var(--theme-palette-color-1);

    --pf-background: #f8fafc;
    --pf-surface: rgba(255, 255, 255, 0.72);

    --pf-heading: #0f172a;
    --pf-text: #334155;
    --pf-muted: #64748b;

    --pf-border: rgba(15, 23, 42, 0.09);
    --pf-guide: rgba(29, 78, 216, 0.09);
    --pf-glow: rgba(59, 130, 246, 0.13);

    position: relative;
    isolation: isolate;
    overflow: hidden;

    color: var(--pf-text);

    background-color: var(--pf-background);

    background-image:
        radial-gradient(
            circle at 88% 14%,
            var(--pf-glow) 0,
            transparent 34%
        ),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.65) 0,
            transparent 48%
        );

    border-top: 1px solid var(--pf-border);

    font-family:
        Manrope,
        sans-serif;

    --theme-text-color: var(--pf-text);
    --theme-headings-color: var(--pf-heading);
    --theme-link-initial-color: var(--pf-text);
    --theme-link-hover-color: var(--pf-accent);
}


/* ==========================================================
   EDITORIAL GUIDE LINES
   Dua garis vertikal dan satu garis horizontal parsial.
   Bukan repeating grid.
   ========================================================== */

#footer.ct-footer::before {
    content: "";

    position: absolute;
    z-index: -1;
    inset: 0;

    background-image:
        linear-gradient(
            var(--pf-guide),
            var(--pf-guide)
        ),
        linear-gradient(
            var(--pf-guide),
            var(--pf-guide)
        ),
        linear-gradient(
            var(--pf-guide),
            var(--pf-guide)
        );

    background-size:
        1px 100%,
        1px 100%,
        50% 1px;

    background-position:
        50% 0,
        76% 0,
        100% 42%;

    background-repeat: no-repeat;

    pointer-events: none;
}


/* ==========================================================
   TOP BLUE ACCENT
   ========================================================== */

#footer.ct-footer::after {
    content: "";

    position: absolute;
    z-index: 3;

    top: 0;

    left: max(
        24px,
        calc(
            (100% - var(--theme-container-width, 1290px)) / 2
        )
    );

    width: clamp(80px, 10vw, 142px);
    height: 2px;

    background-color: var(--pf-accent);

    pointer-events: none;
}


/* ==========================================================
   BLOCKSY ROW RESET
   ========================================================== */

#footer.ct-footer [data-row] {
    position: relative;

    color: inherit;
    background: transparent !important;
}

#footer.ct-footer .ct-container {
    position: relative;
    z-index: 1;
}

#footer.ct-footer .ct-widget {
    margin: 0;
}

#footer.ct-footer [data-column] {
    min-width: 0;
}

#footer.ct-footer [data-column="ghost"] {
    display: none;
}


/* ==========================================================
   MIDDLE ROW — FOUR COLUMNS
   ========================================================== */

#footer.ct-footer
[data-row="middle"] > .ct-container {
    display: grid !important;

    grid-template-columns:
        minmax(0, 1.8fr)
        minmax(0, 0.85fr)
        minmax(0, 1fr)
        minmax(0, 1.25fr) !important;

    align-items: start;

    column-gap: clamp(36px, 5vw, 82px) !important;
    row-gap: 48px !important;

    padding-top: clamp(70px, 7vw, 98px);
    padding-bottom: clamp(60px, 6vw, 84px);
}


/* ==========================================================
   WIDGET BASE
   ========================================================== */

.profile-footer-widget {
    position: relative;

    min-width: 0;
    margin: 0;

    color: var(--pf-text);
}

.profile-footer-widget p,
.profile-footer-widget address,
.profile-footer-widget ul {
    margin-top: 0;
}

.profile-footer-widget a {
    text-decoration: none;
}


/* ==========================================================
   WIDGET TITLES
   ========================================================== */

.profile-footer-widget__title {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 25px;

    color: var(--pf-heading);

    font-family:
        Manrope,
        sans-serif;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.profile-footer-widget__title::before {
    content: "";

    flex: 0 0 auto;

    width: 7px;
    height: 7px;

    box-sizing: border-box;

    border: 1px solid var(--pf-accent);
    border-radius: 50%;
}

.profile-footer-widget__title::after {
    content: "";

    flex: 1 1 auto;

    height: 1px;

    margin-left: 2px;

    background:
        linear-gradient(
            to right,
            var(--pf-border),
            transparent
        );
}


/* ==========================================================
   IDENTITY
   ========================================================== */

.profile-footer-identity {
    max-width: 410px;
}

.profile-footer-brand {
    display: inline-flex;
    align-items: center;

    margin-bottom: 25px;
}

.profile-footer-brand__logo {
    display: block;

    width: auto;
    height: clamp(42px, 4vw, 54px);
    max-width: 160px;

    object-fit: contain;
}

.profile-footer-identity__content {
    display: grid;
    gap: 7px;
}

.profile-footer-identity__name {
    margin: 0;

    color: var(--pf-heading);

    font-family:
        "Playfair Display",
        serif;

    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
}

.profile-footer-identity__role {
    margin: 0;

    color: var(--pf-accent);

    font-size: 9px;
    font-weight: 700;
    line-height: 1.5;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-footer-identity__description {
    max-width: 390px;

    margin: 10px 0 0;

    color: var(--pf-muted);

    font-size: 13px;
    line-height: 1.75;
}


/* ==========================================================
   NAVIGATION AND EXPLORE
   ========================================================== */

.profile-footer-links {
    display: grid;

    margin: 0;
    padding: 0;

    list-style: none;
}

.profile-footer-links li {
    margin: 0;
    padding: 0;

    border-bottom: 1px solid var(--pf-border);
}

.profile-footer-links li:first-child {
    border-top: 1px solid var(--pf-border);
}

.profile-footer-links a {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    padding: 11px 0;

    color: var(--pf-text);

    font-size: 12px;
    line-height: 1.45;

    transition:
        color 180ms ease,
        padding-left 180ms ease;
}

.profile-footer-links a::after {
    content: "↗";

    flex: 0 0 auto;

    color: var(--pf-accent);

    font-size: 12px;
    line-height: 1;

    opacity: 0;
    transform: translate(-4px, 4px);

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.profile-footer-links a:hover {
    padding-left: 7px;

    color: var(--pf-accent);
}

.profile-footer-links a:hover::after {
    opacity: 1;
    transform: translate(0);
}

.profile-footer-link-arrow {
    display: none;
}


/* ==========================================================
   CONTACT
   ========================================================== */

.profile-footer-contact__details {
    display: grid;

    margin: 0;

    font-style: normal;
}

.profile-footer-contact__item {
    display: grid;

    grid-template-columns:
        minmax(64px, 0.55fr)
        minmax(0, 1.45fr);

    gap: 14px;

    padding: 12px 0;

    color: var(--pf-text);

    border-bottom: 1px solid var(--pf-border);
}

.profile-footer-contact__item:first-child {
    border-top: 1px solid var(--pf-border);
}

a.profile-footer-contact__item {
    transition:
        color 180ms ease,
        padding-left 180ms ease;
}

a.profile-footer-contact__item:hover {
    padding-left: 7px;

    color: var(--pf-accent);
}

.profile-footer-contact__label {
    padding-top: 2px;

    color: var(--pf-muted);

    font-size: 8px;
    font-weight: 700;
    line-height: 1.5;

    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.profile-footer-contact__value {
    min-width: 0;

    color: inherit;

    font-size: 12px;
    line-height: 1.55;

    overflow-wrap: anywhere;
}


/* ==========================================================
   SOCIAL ICONS
   ========================================================== */

.profile-footer-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 22px;
}

.profile-footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    box-sizing: border-box;

    color: var(--pf-accent);
    background-color: var(--pf-surface);

    border: 1px solid var(--pf-border);

    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.profile-footer-social svg {
    display: block;

    width: 16px;
    height: 16px;
}

.profile-footer-social:hover {
    color: #ffffff;
    background-color: var(--pf-accent);
    border-color: var(--pf-accent);

    transform: translateY(-3px);
}

.profile-footer-social:focus-visible,
.profile-footer-links a:focus-visible,
.profile-footer-contact a:focus-visible {
    outline: 2px solid var(--pf-accent);
    outline-offset: 4px;
}


/* ==========================================================
   BOTTOM ROW
   ========================================================== */

#footer.ct-footer [data-row="bottom"] {
    border-top: 1px solid var(--pf-border);

    background-image:
        linear-gradient(
            to right,
            transparent,
            rgba(59, 130, 246, 0.045),
            transparent
        ) !important;
}

#footer.ct-footer
[data-row="bottom"] > .ct-container {
    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        auto !important;

    align-items: center;

    gap: 24px !important;

    min-height: auto !important;

    padding-top: 24px;
    padding-bottom: 24px;
}

#footer.ct-footer .ct-footer-copyright {
    color: var(--pf-muted);

    font-size: 11px;
    line-height: 1.6;
}

#footer.ct-footer .ct-footer-copyright p {
    margin: 0;
}

#footer.ct-footer .ct-footer-copyright a {
    color: var(--pf-heading);

    transition: color 180ms ease;
}

#footer.ct-footer .ct-footer-copyright a:hover {
    color: var(--pf-accent);
}

#footer.ct-footer
[data-row="bottom"]
[data-column="widget-area-6"] {
    justify-self: end;
}

#footer.ct-footer
[data-row="bottom"]
[data-column="widget-area-6"] p {
    margin: 0;

    color: var(--pf-accent);

    font-family:
        "Playfair Display",
        serif;

    font-size: clamp(20px, 2.4vw, 34px);
    font-weight: 400;
    line-height: 1;

    letter-spacing: -0.04em;

    opacity: 0.15;
}


/* ==========================================================
   DARK MODE
   ========================================================== */

html[data-theme="dark"] #footer.ct-footer {
    --pf-background: #020617;
    --pf-surface: rgba(15, 23, 42, 0.76);

    --pf-heading: #f8fafc;
    --pf-text: #cbd5e1;
    --pf-muted: #94a3b8;

    --pf-border: rgba(148, 163, 184, 0.17);
    --pf-guide: rgba(96, 165, 250, 0.14);
    --pf-glow: rgba(59, 130, 246, 0.16);

    --pf-accent: var(--theme-palette-color-2);

    background-image:
        radial-gradient(
            circle at 88% 12%,
            var(--pf-glow) 0,
            transparent 35%
        ),
        linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.55) 0,
            transparent 50%
        );
}

html[data-theme="dark"]
#footer.ct-footer
.profile-footer-social:hover {
    color: #020617;
}

html[data-theme="dark"]
#footer.ct-footer
.profile-footer-brand__logo {
    filter:
        brightness(1.08)
        saturate(1.05);
}


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

@media (max-width: 1024px) {
    #footer.ct-footer::before {
        background-size:
            1px 100%,
            0 0,
            50% 1px;

        background-position:
            50% 0,
            0 0,
            100% 48%;
    }

    #footer.ct-footer
    [data-row="middle"] > .ct-container {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        column-gap: 48px !important;
        row-gap: 52px !important;

        padding-top: 68px;
        padding-bottom: 60px;
    }

    .profile-footer-identity {
        max-width: none;
    }
}


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

@media (max-width: 689px) {
    #footer.ct-footer::before {
        background-size:
            1px 100%,
            0 0,
            65% 1px;

        background-position:
            calc(100% - 24px) 0,
            0 0,
            100% 34%;
    }

    #footer.ct-footer::after {
        left: 24px;
        width: 72px;
    }

    #footer.ct-footer
    [data-row="middle"] > .ct-container {
        grid-template-columns:
            minmax(0, 1fr) !important;

        gap: 42px !important;

        padding-top: 58px;
        padding-bottom: 48px;
    }

    .profile-footer-widget__title {
        margin-bottom: 20px;
    }

    .profile-footer-brand {
        margin-bottom: 20px;
    }

    .profile-footer-identity__description {
        font-size: 12px;
    }

    .profile-footer-contact__item {
        grid-template-columns:
            minmax(72px, 0.55fr)
            minmax(0, 1.45fr);
    }

    #footer.ct-footer
    [data-row="bottom"] > .ct-container {
        grid-template-columns:
            minmax(0, 1fr) !important;

        justify-items: start;

        gap: 14px !important;

        padding-top: 22px;
        padding-bottom: 22px;
    }

    #footer.ct-footer
    [data-row="bottom"]
    [data-column="widget-area-6"] {
        justify-self: start;
    }

    #footer.ct-footer
    [data-row="bottom"]
    [data-column="widget-area-6"] p {
        font-size: 22px;
    }

    #footer.ct-footer .ct-footer-copyright {
        font-size: 10px;
    }
}


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

@media (max-width: 380px) {
    .profile-footer-contact__item {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 5px;
    }

    .profile-footer-social {
        width: 38px;
        height: 38px;
    }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    .profile-footer-links a,
    .profile-footer-links a::after,
    .profile-footer-contact__item,
    .profile-footer-social,
    #footer.ct-footer .ct-footer-copyright a {
        transition: none;
    }
}


/* ==========================================================
   PRINT
   ========================================================== */

@media print {
    #footer.ct-footer::before,
    #footer.ct-footer::after,
    .profile-footer-socials {
        display: none;
    }
}