
/* ==========================================
   WEBSITE H. USMAN MARHAM
   HERO BERANDA
========================================== */

.hero {
    --hero-navy: #071b40;
    --hero-yellow: #ffdf34;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 710px;

    background-color: var(--hero-yellow);
    background-image: url('/assets/hero-background.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;

    border-bottom: 8px solid var(--hero-navy);
}

.hero::before,
.hero::after {
    content: none;
    display: none;
}

/* ==========================================
   LOGO GOLKAR - BINGKAI NAVY RAPI
========================================== */

.hero-golkar-logo {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 145px;
    height: 145px;

    padding: 0;
    margin: 0;

    background: transparent;

    border: 4px solid var(--hero-navy);
    border-radius: 18px;

    box-sizing: border-box;
    overflow: hidden;

    box-shadow: none;
}

.hero-golkar-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: fill;

    padding: 0;
    margin: 0;

    border: 0;
    border-radius: 14px;

    box-sizing: border-box;
}

/* ==========================================
   TATA LETAK HERO
========================================== */

.hero-grid {
    display: grid;
    grid-template-columns: 49% 51%;
    align-items: center;

    min-height: 710px;

    position: relative;
    z-index: 1;
}

/* ==========================================
   FOTO H. USMAN MARHAM
========================================== */

.hero-photo {
    position: relative;
    z-index: 2;
    align-self: end;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    min-width: 0;
    height: 710px;
    overflow: visible;
}

.hero-photo img {
    display: block;

    width: 140%;
    max-width: none;
    height: 820px;

    object-fit: contain;
    object-position: center bottom;

    margin: 0;

    transform: translateY(5px) scale(1.15);
    transform-origin: center bottom;

    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* ==========================================
   TEKS HERO
========================================== */

.hero-copy {
    position: relative;
    z-index: 3;

    min-width: 0;
    padding: 35px 0 120px 45px;
}

.hero .eyebrow {
    display: none;
}

/* ==========================================
   NAMA H. USMAN MARHAM
========================================== */

.hero .hero-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 8px;

    width: 100%;
    max-width: 100%;

    margin: 0 0 38px;
    padding: 0;

    font-size: clamp(43px, 4.1vw, 67px);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -2px;

    color: var(--hero-navy);
}

/* H. USMAN - NAVY, TEGAK */

.hero .hero-name-first {
    display: block;
    max-width: 100%;

    color: var(--hero-navy);
    background: transparent;

    font-family: inherit;
    font-size: inherit;
    font-weight: 950;
    font-style: normal;
    line-height: inherit;
    letter-spacing: inherit;

    white-space: nowrap;

    padding: 0;
    margin: 0;

    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}

/* MARHAM - NAVY, SEDIKIT MIRING */

.hero .hero-name-last {
    display: block;
    max-width: 100%;

    color: var(--hero-navy);
    background: transparent;

    font-family: inherit;
    font-size: inherit;
    font-weight: 950;
    font-style: italic;
    line-height: 1.05;
    letter-spacing: -2px;

    padding: 0;
    margin: 0;

    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}

.hero .hero-name-last::after,
.hero .hero-name::after {
    content: none;
    display: none;
}

/* ==========================================
   JABATAN
========================================== */

.hero-position {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;

    width: 100%;
    max-width: 100%;

    margin: 0 0 30px;
    padding-left: 14px;

    border-left: 5px solid var(--hero-navy);
}

.hero-position-first,
.hero-position-last {
    display: inline-block;

    max-width: 100%;
    width: fit-content;

    padding: 9px 18px;

    font-size: clamp(15px, 1.35vw, 20px);
    font-weight: 800;
    line-height: 1.4;

    color: var(--hero-navy);
}

.hero-position-first {
    background: rgba(255, 255, 255, .94);
    border-radius: 10px 18px 10px 4px;
    box-shadow: 0 5px 15px rgba(7, 27, 64, .07);
}

.hero-position-last {
    background: #ffcf00;
    border-radius: 4px 10px 18px 10px;
    box-shadow: 0 5px 15px rgba(7, 27, 64, .08);
}

/* ==========================================
   TOMBOL HERO
========================================== */

.hero .actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 15px;
    margin: 30px 0 22px;
}

.hero .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;
    padding: 14px 24px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 850;
    line-height: 1.3;
    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(7, 27, 64, .16);
}

.hero .btn:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.hero .btn.dark {
    background: var(--hero-navy);
    color: #ffffff;
    border: 2px solid var(--hero-navy);
}

.hero .btn.outline {
    background: #ffffff;
    color: var(--hero-navy);
    border: 2px solid var(--hero-navy);
}

/* ==========================================
   MEDIA SOSIAL
========================================== */

.hero .social {
    display: flex;
    align-items: center;
    gap: 14px;

    position: relative;
    z-index: 5;

    margin-top: 4px;
}

.hero .social a {
    width: 43px;
    height: 43px;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    background: #ffffff;
    color: var(--hero-navy);

    border: 2px solid var(--hero-navy);
    border-radius: 50%;

    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;

    transition:
        transform .2s ease,
        background-color .2s ease,
        color .2s ease;
}

.hero .social a:hover {
    background: var(--hero-navy);
    color: #ffffff;
    transform: translateY(-3px);
}

.hero .social a:focus-visible {
    outline: 3px solid var(--hero-navy);
    outline-offset: 3px;
}

.hero-bottom-line {
    display: none !important;
}

/* ==========================================
   RESPONSIVE LAPTOP
========================================== */

@media (max-width: 1200px) {

    .hero-grid {
        grid-template-columns: 47% 53%;
    }

    .hero-photo img {
        width: 135%;
        height: 770px;
        transform: translateY(5px) scale(1.12);
    }

    .hero-copy {
        padding-left: 25px;
    }

    .hero .hero-name {
        font-size: clamp(39px, 4vw, 58px);
    }

    .hero-position-first,
    .hero-position-last {
        font-size: 16px;
    }

    .hero-golkar-logo {
        width: 125px;
        height: 125px;
    }
}

/* ==========================================
   RESPONSIVE TABLET
========================================== */

@media (max-width: 920px) {

    .hero,
    .hero-grid {
        min-height: 600px;
    }

    .hero-grid {
        grid-template-columns: 46% 54%;
    }

    .hero-photo {
        height: 600px;
    }

    .hero-photo img {
        width: 135%;
        height: 690px;
        transform: translateY(5px) scale(1.10);
    }

    .hero-copy {
        padding: 35px 0 85px 15px;
    }

    .hero .hero-name {
        font-size: clamp(30px, 4.3vw, 43px);
        letter-spacing: -1px;
        margin-bottom: 26px;
    }

    .hero .hero-name-last {
        letter-spacing: -1px;
    }

    .hero-position {
        padding-left: 9px;
        border-left-width: 4px;
        margin-bottom: 22px;
    }

    .hero-position-first,
    .hero-position-last {
        font-size: 13px;
        padding: 8px 10px;
    }

    .hero .btn {
        min-height: 48px;
        padding: 11px 15px;
        font-size: 12px;
    }

    .hero-golkar-logo {
        top: 20px;
        left: 20px;
        width: 105px;
        height: 105px;
        border-radius: 15px;
    }

    .hero-golkar-logo img {
        border-radius: 11px;
    }
}

/* ==========================================
   RESPONSIVE SMARTPHONE
========================================== */

@media (max-width: 640px) {

    .hero {
        min-height: auto;
        border-bottom-width: 6px;
        background-position: center bottom;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .hero-golkar-logo {
        top: 15px;
        left: 15px;

        width: 85px;
        height: 85px;

        padding: 0;
        background: transparent;

        border-width: 3px;
        border-radius: 12px;
    }

    .hero-golkar-logo img {
        border-radius: 9px;
    }

    .hero-copy {
        order: 1;
        width: 100%;
        padding: 115px 0 30px;
    }

    .hero .hero-name {
        font-size: clamp(35px, 9.5vw, 52px);
        letter-spacing: -1px;
        gap: 7px;
        margin-bottom: 28px;
    }

    .hero .hero-name-last {
        letter-spacing: -1px;
    }

    .hero-position {
        margin-bottom: 20px;
    }

    .hero-position-first,
    .hero-position-last {
        font-size: clamp(13px, 3.6vw, 17px);
        padding: 9px 12px;
    }

    .hero .actions {
        gap: 10px;
        margin: 25px 0 18px;
    }

    .hero .btn {
        min-height: 48px;
        padding: 12px 15px;
        font-size: 12px;
    }

    .hero .social {
        gap: 11px;
    }

    .hero .social a {
        width: 40px;
        height: 40px;
    }

    .hero-photo {
        order: 2;
        width: 100%;
        height: 480px;

        justify-content: center;
        align-self: center;
    }

    .hero-photo img {
        width: 130%;
        max-width: none;
        height: 580px;

        transform: translateY(5px) scale(1.10);
        transform-origin: center bottom;
    }
}

/* ==========================================
   SMARTPHONE KECIL
========================================== */

@media (max-width: 380px) {

    .hero .hero-name {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .hero-position-first,
    .hero-position-last {
        font-size: 12px;
        padding: 8px 9px;
    }

    .hero .btn {
        padding: 11px 12px;
    }
}

/* ==========================================
   AKSESIBILITAS
========================================== */

@media (prefers-reduced-motion: reduce) {

    .hero .btn,
    .hero .social a {
        transition: none;
    }
}
