/*
 * front.css
 * Gaya halaman publik SIKP berbasis Bootstrap 5.3 dan Design Tokens Institusional.
 * Menggantikan Tailwind CSS.
 */

:root {
    --front-rule-h: 4px;
}

body.front {
    font-family: var(--sikp-font-ui);
    color: var(--sikp-ink);
    background-color: var(--sikp-surface-muted);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--front-rule-h);
}

body.front::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--front-rule-h);
    background: var(--sikp-brand);
    z-index: 2000;
}

body.front section[id] {
    scroll-margin-top: 5rem;
}

/* ---------------------------------------------------------------- */
/* Masthead & Navigasi                                              */
/* ---------------------------------------------------------------- */

.front-header {
    background-color: var(--sikp-surface);
    border-bottom: 1px solid var(--sikp-line);
    position: sticky;
    top: var(--front-rule-h);
    z-index: 1030;
}

.front-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--sikp-ink);
}

.front-brand:hover {
    color: var(--sikp-ink);
}

.front-brand__logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--sikp-line);
}

.front-brand__title {
    font-family: var(--sikp-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
}

.front-brand__subtitle {
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sikp-muted);
    line-height: 1;
}

.front-nav .nav-link {
    color: var(--sikp-text);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0.875rem;
    transition: color 0.15s ease;
}

.front-nav .nav-link:hover {
    color: var(--sikp-brand);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

.front-nav .nav-link.is-active {
    color: var(--sikp-brand);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.front-nav .btn-nav-login {
    background-color: var(--sikp-brand);
    color: #ffffff;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: var(--sikp-radius-control);
    text-decoration: none;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    transition: background-color 0.15s ease;
}

.front-nav .btn-nav-login:hover {
    background-color: var(--sikp-brand-hover);
    color: #ffffff;
}

@media (max-width: 767.98px) {
    .front-brand {
        max-width: calc(100% - 85px);
    }

    .front-brand__logo {
        width: 2.25rem;
        height: 2.25rem;
    }

    .front-brand__title {
        font-size: 1.125rem;
    }

    .front-brand__subtitle {
        font-size: 0.625rem;
    }

    .front-nav {
        background-color: var(--sikp-surface);
        border: 1px solid var(--sikp-line);
        border-radius: var(--sikp-radius-surface);
        box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
        margin-top: 0.75rem;
        padding: 0.75rem;
        gap: 0.25rem;
    }

    .front-nav .nav-link {
        padding: 0.625rem 0.875rem;
        border-radius: var(--sikp-radius-control);
        display: flex;
        align-items: center;
        gap: 0.625rem;
        font-weight: 500;
        color: var(--sikp-ink);
        background-color: transparent;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .front-nav .nav-link:hover,
    .front-nav .nav-link:focus {
        background-color: var(--sikp-surface-muted);
        color: var(--sikp-brand);
        text-decoration: none;
    }

    .front-nav .btn-nav-login {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        min-height: 44px;
        text-align: center;
        border-radius: var(--sikp-radius-control);
        font-size: 0.9375rem;
    }

    .hero-section {
        padding: 2.5rem 0 3rem;
    }

    .hero-stat-list {
        margin-top: 0;
    }

    .hero-stat-item dd {
        font-size: 1.75rem;
    }

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

    .hero-stat-panel {
        margin-top: 0.5rem;
    }

    .fact-card {
        padding: 1.25rem;
    }

    .program-entry {
        padding: 1.5rem 0;
    }

    .program-entry__title {
        font-size: 1.35rem;
    }

    .achievement-card {
        padding-top: 1rem;
    }

    .achievement-card__number {
        font-size: 2.5rem;
    }

    .logo-grid__item {
        padding: 1.25rem 0.75rem;
        min-height: 5.75rem;
    }

    .logo-grid__img {
        max-height: 2.25rem;
    }

    .register-band {
        padding: 3rem 0;
    }

    .btn-reg-mhs,
    .btn-reg-dpl {
        width: 100%;
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .front-footer__main {
        padding: 3rem 0 2rem;
    }
}

/* ---------------------------------------------------------------- */
/* Tipografi & Bagian Halaman                                       */
/* ---------------------------------------------------------------- */

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sikp-muted);
}

.section-label-brand {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sikp-brand);
}

.section-title {
    font-family: var(--sikp-font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--sikp-ink);
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--sikp-text);
}

.hero-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(236, 253, 245, 0.72), rgba(248, 250, 252, 0.96) 52%, #ffffff);
    border-bottom: 1px solid var(--sikp-line);
    padding: 3.5rem 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: min(32rem, 42vw);
    height: 100%;
    background: linear-gradient(145deg, transparent 38%, rgba(4, 120, 87, 0.055));
    pointer-events: none;
}

.hero-section > .container-xl {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 5rem 0;
    }
}

.hero-stat-list {
    margin: 0;
    padding: 0;
}

.hero-stat-panel {
    overflow: hidden;
    border: 1px solid var(--sikp-line-strong);
    border-top: 4px solid var(--sikp-brand);
    border-radius: var(--sikp-radius-surface);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.hero-stat-panel__header {
    padding: 1.25rem 1.5rem 0.75rem;
}

.hero-stat-panel__header h2 {
    font-family: var(--sikp-font-display);
    color: var(--sikp-ink);
}

.hero-stat-panel__note {
    padding: 0.875rem 1.5rem;
    color: var(--sikp-muted);
    border-top: 1px solid var(--sikp-line);
    background: var(--sikp-surface-muted);
    font-size: 0.75rem;
}

.hero-stat-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--sikp-line);
}

.hero-stat-item:last-child {
    border-bottom: none;
}

.hero-stat-item dt {
    font-size: 0.875rem;
    color: var(--sikp-text);
    font-weight: 400;
    max-width: 70%;
}

.hero-stat-item dd {
    font-family: var(--sikp-font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--sikp-ink);
    margin: 0;
}

.hero-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--sikp-line-strong);
    border-radius: var(--sikp-radius-control);
    background: rgba(255, 255, 255, 0.72);
}

.hero-flow li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.625rem 0.75rem;
    color: var(--sikp-text);
    font-size: 0.8125rem;
    font-weight: 600;
    border-right: 1px solid var(--sikp-line);
}

.hero-flow li:last-child {
    border-right: 0;
}

.hero-flow span {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--sikp-brand-soft);
    color: var(--sikp-brand-deep);
    font-size: 0.75rem;
}

@media (max-width: 767.98px) {
    .hero-flow li:nth-child(2n) {
        border-right: 0;
    }

    .hero-flow li:nth-child(-n + 2) {
        border-bottom: 1px solid var(--sikp-line);
    }
}

.fact-card {
    background-color: var(--sikp-surface);
    border: 1px solid var(--sikp-line);
    border-radius: var(--sikp-radius-surface);
    padding: 1.5rem;
}

.fact-card__bar {
    display: block;
    width: 2.5rem;
    height: 3px;
    background-color: var(--sikp-brand);
    margin-bottom: 1.25rem;
}

.fact-card__title {
    font-family: var(--sikp-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sikp-ink);
    margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------- */
/* Katalog Program                                                  */
/* ---------------------------------------------------------------- */

.program-entry {
    padding: 2rem 0;
    border-bottom: 1px solid var(--sikp-line);
}

.program-entry:last-child {
    border-bottom: none;
}

.program-entry__title {
    font-family: var(--sikp-font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--sikp-ink);
    margin: 0.5rem 0 0.25rem;
}

/* ---------------------------------------------------------------- */
/* Statistik Pencapaian                                             */
/* ---------------------------------------------------------------- */

.achievement-card {
    border-top: 3px solid var(--sikp-brand);
    padding-top: 1.25rem;
}

.achievement-card__number {
    font-family: var(--sikp-font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1;
    color: var(--sikp-ink);
}

.achievement-card__label {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--sikp-text);
}

/* ---------------------------------------------------------------- */
/* Matriks Logo Mitra                                               */
/* ---------------------------------------------------------------- */

.logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--sikp-line);
    border-left: 1px solid var(--sikp-line);
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 576px) {
    .logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .logo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.logo-grid--3col {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .logo-grid--3col {
        grid-template-columns: repeat(3, 1fr);
    }
}

.logo-grid__item {
    border-right: 1px solid var(--sikp-line);
    border-bottom: 1px solid var(--sikp-line);
    background-color: var(--sikp-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.25rem 1.5rem;
    min-height: 7.5rem;
}

.logo-grid__img {
    max-height: 2.75rem;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.logo-grid__item:hover .logo-grid__img {
    opacity: 1;
    filter: grayscale(0%);
}

/* ---------------------------------------------------------------- */
/* Pita Pendaftaran                                                 */
/* ---------------------------------------------------------------- */

.register-band {
    background-color: var(--sikp-brand-deep);
    color: #ffffff;
    padding: 4rem 0;
}

.register-band .section-title {
    color: #ffffff;
}

.register-band p {
    color: #d2dfdc;
}

.btn-reg-mhs {
    background-color: #ffffff;
    color: var(--sikp-brand-deep);
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: var(--sikp-radius-control);
    text-decoration: none;
    text-align: center;
    transition: background-color 0.15s ease;
}

.btn-reg-mhs:hover {
    background-color: #f1f5f9;
    color: var(--sikp-brand-deep);
}

.btn-reg-dpl {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: var(--sikp-radius-control);
    text-decoration: none;
    text-align: center;
    transition: background-color 0.15s ease;
}

.btn-reg-dpl:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ---------------------------------------------------------------- */
/* Footer Publik                                                    */
/* ---------------------------------------------------------------- */

.front-footer {
    background-color: #090d16;
    color: #94a3b8;
    margin-top: auto;
}

.front-footer__main {
    padding: 4rem 0 3rem;
}

.front-footer__bottom {
    border-top: 1px solid #1e293b;
    padding: 1.25rem 0;
    font-size: 0.75rem;
    color: #64748b;
}

.front-footer h4 {
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.front-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.front-footer ul li {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.front-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.front-footer a:hover {
    color: #ffffff;
}
