@import url('../style.css');

body {
    background: #f8fafc;
}

.nav-link-active {
    color: #2563eb;
    font-weight: 700;
}

.hero-pattern {
    background: #ffffff;
}

#home {
    display: flex;
    margin-top: calc(5rem + 1px);
    min-height: calc(100vh - 5rem - 1px);
    min-height: calc(100svh - 5rem - 1px);
    min-height: calc(100dvh - 5rem - 1px);
    align-items: center;
    padding-block: clamp(1.5rem, 7vh, 3.5rem) clamp(0.5rem, 1.5vh, 1rem);
}

#hero-left-photo {
    width: 54%;
    background-image: url('../Image/Background/Kiri.jpg');
    background-image: image-set(url('../Image/Background/Kiri.webp') type('image/webp') 1x, url('../Image/Background/Kiri.jpg') type('image/jpeg') 1x);
    background-position: 38% center;
    background-size: cover;
    opacity: 0.56;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 50%, rgba(0, 0, 0, 0.5) 76%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 50%, rgba(0, 0, 0, 0.5) 76%, transparent 100%);
}

#hero-left-photo::before {
    content: '';
    position: absolute;
    inset: -10%;
    background: linear-gradient(to right, transparent 46%, rgba(255, 255, 255, 0.72) 82%, rgba(255, 255, 255, 0.94) 100%);
    filter: blur(20px);
    pointer-events: none;
}

#hero-photo {
    left: auto;
    width: 64%;
    background-image: url('../Image/Background/pagess.jpg');
    background-image: image-set(url('../Image/Background/pagess.webp') type('image/webp') 1x, url('../Image/Background/pagess.jpg') type('image/jpeg') 1x);
    background-position: 66% center;
    background-size: cover;
    opacity: 0.9;
    transform: scale(1.01);
    transform-origin: right center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.12) 14%, rgba(0, 0, 0, 0.58) 34%, #000 54%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.12) 14%, rgba(0, 0, 0, 0.58) 34%, #000 54%, #000 100%);
}

#foto-pengurus img {
    aspect-ratio: 16 / 9;
}

#hero-photo::before {
    content: '';
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(ellipse at 5% 24%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.64) 18%, transparent 43%),
        radial-gradient(ellipse at 0% 72%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.52) 22%, transparent 48%),
        linear-gradient(to right, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.22) 38%, transparent 70%);
    filter: blur(18px);
    pointer-events: none;
}

#home::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(480px circle at var(--hero-pointer-x, 50%) var(--hero-pointer-y, 50%), rgba(255, 255, 255, 0.42), transparent 72%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
}

#home.is-pointer-active::after {
    opacity: 1;
}

#hero-photo,
#hero-left-photo {
    transition: translate 240ms ease-out;
}

.hero-slogan {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 0.65rem;
    max-width: 100%;
    margin-top: 0.35rem;
    color: #78350f;
    font-size: clamp(0.75rem, 2.4vw, 0.9rem);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.hero-slogan::before,
.hero-slogan::after {
    width: clamp(1rem, 5vw, 2rem);
    height: 2px;
    flex: 0 1 auto;
    border-radius: 9999px;
    background: #d97706;
    content: "";
}

.hero-main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.25rem, 0.9vh, 0.65rem);
    max-width: 100%;
    margin-top: 0;
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero-main-title .hero-line {
    display: block;
    margin-top: 0;
}

.hero-main-title .hero-line--medium {
    font-size: clamp(0.75rem, 3vw, 2rem);
    letter-spacing: 0.04em;
}

.hero-main-title .hero-line--large {
    max-width: 100%;
    font-size: clamp(1rem, 6.5vw, 5rem);
    letter-spacing: -0.045em;
    white-space: nowrap;
}

#home .hero-main-title + p {
    margin-top: clamp(0.75rem, 2vh, 1.25rem);
}

#home .hero-actions {
    margin-top: clamp(1rem, 2.8vh, 1.75rem);
}

#home .hero-highlights {
    margin-top: clamp(1rem, 2.8vh, 1.75rem);
}

@media (max-height: 760px) {
    #home {
        padding-block: 1rem 0.25rem;
    }

    #home .hero-line--medium {
        font-size: clamp(0.75rem, min(2.6vh, 3vw), 1.5rem);
    }

    #home .hero-line--large {
        font-size: clamp(1rem, 6vh, 3.75rem);
    }

    #home .hero-main-title + p {
        margin-top: 0.65rem;
        font-size: clamp(0.8rem, 2vh, 0.95rem);
        line-height: 1.4;
    }

    #home .hero-actions {
        margin-top: 0.85rem;
        gap: 0.75rem;
    }

    #home .hero-actions a {
        padding-block: 0.65rem;
        font-size: 0.9rem;
    }

    #home .hero-highlights {
        margin-top: 0.85rem;
        gap: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

.management-button {
    background: #3d743a;
    border-color: #d7b85c;
    box-shadow: 0 10px 24px rgba(61, 116, 58, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.management-button:hover {
    background: #315f30;
    border-color: #f0d47b;
    box-shadow: 0 14px 28px rgba(61, 116, 58, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-gradient {
    background: radial-gradient(circle at bottom right, rgba(22, 163, 74, 0.35) 0%, rgba(15, 23, 42, 1) 55%, rgba(15, 23, 42, 1) 100%);
}

.kegiatan-card {
    display: flex;
    flex-direction: column;
}

.kegiatan-card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.kegiatan-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
}

.kegiatan-card-icon--blue {
    background: #eff6ff;
    color: #2563eb;
}

.kegiatan-card-icon--emerald {
    background: #ecfdf5;
    color: #059669;
}

.kegiatan-card-icon--amber {
    background: #fefce8;
    color: #ca8a04;
}

.kegiatan-card-desc {
    margin-top: 0.65rem;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.55;
    flex: 1 1 auto;
}

.faq-list {
    display: grid;
    gap: 0.875rem;
    max-width: 52rem;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #f8fafc;
    padding: 1rem 1.25rem;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.faq-item[open] {
    border-color: #bfdbfe;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: #0f172a;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #64748b;
    transition: transform 200ms ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: #2563eb;
}

.faq-answer {
    margin-top: 0.75rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.65;
}

.faq-answer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 767px) {
    .management-photo-badge {
        opacity: 1;
    }
}

@media (min-width: 768px) {
    #club-highlights,
    #kegiatan-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@keyframes page-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-image-in-dim {
    from { opacity: 0; transform: scale(1.04); }
    to { opacity: 0.9; transform: scale(1); }
}

body.page-load #home-page > nav,
body.page-load #home-page > main > section,
body.page-load #home-page > footer,
body.page-load #home-page section > div > *,
body.page-load #home-page footer > div > * {
    animation: page-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.page-load #home-page > nav { animation-delay: 0.05s; }
body.page-load #home-page > main > section:nth-of-type(1) { animation-delay: 0.12s; }
body.page-load #home-page > main > section:nth-of-type(2) { animation-delay: 0.2s; }
body.page-load #home-page > main > section:nth-of-type(3) { animation-delay: 0.28s; }
body.page-load #home-page > main > section:nth-of-type(4) { animation-delay: 0.36s; }
body.page-load #home-page > main > section:nth-of-type(5) { animation-delay: 0.44s; }
body.page-load #home-page > main > section:nth-of-type(6) { animation-delay: 0.52s; }
body.page-load #home-page > main > section:nth-of-type(7) { animation-delay: 0.6s; }
body.page-load #home-page > main > section:nth-of-type(8) { animation-delay: 0.66s; }
body.page-load #home-page > footer { animation-delay: 0.72s; }
body.page-load #hero-photo { animation: hero-image-in-dim 1.2s ease-out both; }

@media (max-width: 639px) {
    #home .hero-line--large {
        font-size: clamp(0.875rem, min(6.5vw, 6vh), 2.5rem);
        letter-spacing: -0.035em;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-load #home-page > nav,
    body.page-load #home-page > main > section,
    body.page-load #home-page > footer,
    body.page-load #home-page section > div > *,
    body.page-load #home-page footer > div > *,
    body.page-load #hero-photo {
        animation: none;
    }
}

@supports (-webkit-touch-callout: none) {
    body.page-load #home-page > nav,
    body.page-load #home-page > main > section,
    body.page-load #home-page > footer,
    body.page-load #home-page section > div > *,
    body.page-load #home-page footer > div > * {
        -webkit-animation: none;
        animation: none;
    }

    body.page-load #hero-photo {
        -webkit-animation: none;
        animation: none;
    }
}

@media (max-width: 767px) {
    #hero-photo {
        width: 58%;
        opacity: 0.94;
        background-position: 70% center;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.16) 18%, rgba(0, 0, 0, 0.7) 48%, #000 68%, #000 100%);
        mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.16) 18%, rgba(0, 0, 0, 0.7) 48%, #000 68%, #000 100%);
    }

    #hero-left-photo {
        width: 54%;
        opacity: 0.42;
        background-position: 35% center;
        -webkit-mask-image: linear-gradient(to right, #000 0%, #000 48%, rgba(0, 0, 0, 0.35) 78%, transparent 100%);
        mask-image: linear-gradient(to right, #000 0%, #000 48%, rgba(0, 0, 0, 0.35) 78%, transparent 100%);
    }

    body.page-load #hero-photo {
        animation: none;
    }
}
