
/* ==========================================
   KONVERSIPDFKEWORD.ID
   PREMIUM MINIMALIST HEADER
   Desktop + Tablet + Mobile
========================================== */

/* ==========================================
   1. MAIN HEADER
========================================== */

.site-header {
    position: relative;
    z-index: 1000;

    width: 100%;

    background: #FFFFFF;
    border-bottom: 1px solid #ECECEF;
}

/* Header Container */

.site-header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    width: calc(100% - 32px);
    max-width: var(--container-max, 1160px);
    min-height: 76px;

    margin-inline: auto;
}

/* ==========================================
   2. BRAND LOGO
========================================== */

.site-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;

    min-width: 0;
    min-height: 48px;
    flex: 0 1 auto;

    line-height: 1;
    text-decoration: none;

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

.site-logo img {
    display: block;

    width: 270px;
    max-width: 100%;
    height: auto;

    object-fit: contain;
}

.site-logo:hover {
    opacity: 0.92;
}

.site-logo:focus-visible {
    outline: 3px solid #C71F35;
    outline-offset: 5px;
    border-radius: 5px;
}

/* ==========================================
   3. DESKTOP NAVIGATION
========================================== */

.header-nav {
    display: block;
    flex-shrink: 0;
}

.header-nav__list {
    display: flex;
    align-items: center;
    gap: 9px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.header-nav__item {
    position: relative;
    margin: 0;
    padding: 0;
}

/* Navigation Links */

.header-nav__link {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    padding: 10px 15px;

    border: 0;
    border-radius: 10px;

    background: transparent;
    color: #394252;

    font-family: inherit;
    font-size: 15px;
    font-weight: 550;
    line-height: 1.4;

    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;

    transition:
        color 200ms ease,
        background 200ms ease;
}

/* Navigation Hover */

.header-nav__link:hover {
    color: #C71F35;
    background: #FFF3F5;
}

/* Animated Underline */

.header-nav__link:not(
    .header-nav__link--active
)::after {
    content: "";

    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;

    height: 2px;

    border-radius: 3px;
    background: #C71F35;

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

    transition: transform 200ms ease;
}

.header-nav__link:not(
    .header-nav__link--active
):hover::after,
.header-nav__link:not(
    .header-nav__link--active
):focus-visible::after {
    transform: scaleX(1);
}

/* ==========================================
   4. ACTIVE NAVIGATION
========================================== */

.header-nav__link--active,
.header-nav__link[aria-current="page"] {
    background: #FDECEF;
    color: #C71F35;

    font-weight: 650;
}

/* Active Hover */

.header-nav__link--active:hover,
.header-nav__link[aria-current="page"]:hover {
    background: #FBE1E7;
    color: #B71830;
}

/* ==========================================
   5. PDF TOOLS DROPDOWN
========================================== */

.header-nav__item--dropdown {
    position: relative;
}

/* Native Details Element */

.header-nav__dropdown {
    position: static;
}

.header-nav__summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    list-style: none;
    user-select: none;
    cursor: pointer;
}

/* Remove Default Triangle */

.header-nav__summary::-webkit-details-marker {
    display: none;
}

.header-nav__summary::marker {
    content: "";
}

/* Dropdown Chevron */

.header-nav__chevron {
    display: inline-block;

    color: #6B7280;
    font-size: 11px;

    transition:
        transform 220ms ease,
        color 220ms ease;
}

/* Hover Effect */

.header-nav__summary:hover .header-nav__chevron {
    color: #C71F35;
}

/* Open State */

.header-nav__dropdown[open] > .header-nav__summary {
    background: #FFF0F3;
    color: #C71F35;
}

.header-nav__dropdown[open] .header-nav__chevron {
    transform: rotate(180deg);
    color: #C71F35;
}

/* ==========================================
   6. DROPDOWN PANEL
========================================== */

.header-nav__dropdown-menu {
    position: absolute;
    top: calc(100% + 9px);
    left: -12px;
    z-index: 1100;

    width: 310px;
    max-width: calc(100vw - 32px);

    padding: 13px;

    border: 1px solid #ECEDEF;
    border-radius: 16px;

    background: #FFFFFF;

    box-shadow:
        0 18px 48px rgba(25, 29, 40, 0.10),
        0 3px 12px rgba(25, 29, 40, 0.035);
}

/* Hide Panel Until Open */

.header-nav__dropdown:not([open])
> .header-nav__dropdown-menu {
    display: none;
}

/* Open Animation */

.header-nav__dropdown[open]
> .header-nav__dropdown-menu {
    display: block;
    animation: header-dropdown-enter 180ms ease both;
}

@keyframes header-dropdown-enter {
    from {
        opacity: 0;
        transform: translateY(-7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Eyebrow */

.header-nav__dropdown-heading {
    display: block;

    margin: 0 0 9px;
    padding: 4px 9px;

    color: #828894;

    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.10em;
    line-height: 1.4;
}

/* ==========================================
   7. DROPDOWN TOOL ITEM
========================================== */

.header-nav__dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;
    min-height: 68px;

    padding: 11px;

    border-radius: 11px;

    color: #19212F;
    text-decoration: none;

    transition:
        background 180ms ease,
        color 180ms ease;
}

.header-nav__dropdown-link:hover,
.header-nav__dropdown-link:focus-visible {
    background: #FFF3F5;
}

/* Tool Icon */

.header-nav__dropdown-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    border-radius: 11px;

    background: #FDE9EE;
    color: #C71F35;

    font-size: 18px;
}

/* Tool Description */

.header-nav__dropdown-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;

    min-width: 0;
}

.header-nav__dropdown-text strong {
    color: #182130;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.header-nav__dropdown-text small {
    color: #6C7480;

    font-size: 12px;
    line-height: 1.4;
}

/* Right Arrow */

.header-nav__dropdown-arrow {
    flex: 0 0 auto;

    margin-left: auto;

    color: #9BA0A9;
    font-size: 13px;

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

.header-nav__dropdown-link:hover
.header-nav__dropdown-arrow {
    transform: translateX(3px);
    color: #C71F35;
}

/* ==========================================
   8. KEYBOARD ACCESSIBILITY
========================================== */

.header-nav__link:focus-visible,
.header-nav__summary:focus-visible,
.header-nav__dropdown-link:focus-visible {
    outline: 3px solid #C71F35;
    outline-offset: 3px;
}

/* ==========================================
   9. MOBILE MENU BUTTON
========================================== */

.header-menu-toggle {
    display: none;

    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    padding: 0;

    border: 1px solid #E7E7E7;
    border-radius: 11px;

    background: #FFFFFF;
    color: #252C37;

    cursor: pointer;

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

.header-menu-toggle:hover,
.header-menu-toggle[aria-expanded="true"] {
    background: #FFF1F4;
    border-color: #F0C6D0;
    color: #C71F35;
}

.header-menu-toggle svg {
    display: block;

    width: 23px;
    height: 23px;
}

/* ==========================================
   10. LARGE DESKTOP
========================================== */

@media (min-width: 1024px) {

    .site-header__container {
        width: calc(100% - 64px);
    }
}

/* ==========================================
   11. TABLET
========================================== */

@media (min-width: 768px) and (max-width: 1023px) {

    .site-header__container {
        width: calc(100% - 48px);

        min-height: 72px;
        gap: 15px;
    }

    .site-logo img {
        width: 215px;
    }

    .header-nav__list {
        gap: 1px;
    }

    .header-nav__link {
        min-height: 42px;

        padding: 10px 9px;
        font-size: 14px;
    }

    .header-nav__link:not(
        .header-nav__link--active
    )::after {
        left: 9px;
        right: 9px;
    }
}

/* ==========================================
   12. MOBILE
========================================== */

@media (max-width: 767px) {

    .site-header__container {
        flex-wrap: wrap;
        gap: 0 12px;

        min-height: 68px;
    }

    /* Logo */

    .site-logo {
        min-height: 48px;
    }

    .site-logo img {
        width: min(234px, calc(100vw - 100px));
        height: auto;
    }

    /* Mobile Toggle */

    .has-js .header-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    /* Navigation visible without JS */

    .header-nav {
        order: 3;
        flex-basis: 100%;
        width: 100%;

        padding: 10px 0 14px;

        border-top: 1px solid #F0F0F2;
    }

    /* Collapsed */

    .has-js .header-nav {
        display: none;
    }

    /* Expanded */

    .has-js .header-nav.is-open {
        display: block;
    }

    .header-nav__list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .header-nav__item {
        width: 100%;
    }

    /* Mobile Links */

    .header-nav__link {
        display: flex;
        justify-content: flex-start;

        width: 100%;
        min-height: 48px;

        padding: 12px 15px;

        border-radius: 10px;

        font-size: 15px;
        font-weight: 550;
    }

    /* Hide Desktop Underlines */

    .header-nav__link::after {
        display: none;
    }

    /* Mobile Active */

    .header-nav__link--active,
    .header-nav__link[aria-current="page"] {
        background: #FDECEF;
        color: #C71F35;
    }

    /* Mobile Dropdown Summary */

    .header-nav__summary {
        justify-content: space-between;
        gap: 10px;
    }

    .header-nav__summary .header-nav__chevron {
        margin-left: auto;
    }

    /* Mobile Dropdown Panel */

    .header-nav__dropdown-menu {
        position: static;

        width: 100%;
        max-width: none;

        margin: 7px 0 4px;
        padding: 9px;

        border: 1px solid #F0E8EA;
        border-radius: 12px;

        background: #FFFBFC;
        box-shadow: none;
    }

    .header-nav__dropdown-heading {
        padding: 5px 10px;
    }

    .header-nav__dropdown-link {
        min-height: 65px;
    }
}

/* ==========================================
   13. SMALL PHONES
========================================== */

@media (max-width: 359px) {

    .site-logo img {
        width: min(205px, calc(100vw - 95px));
    }

    .site-header__container {
        gap: 8px;
    }

    .header-nav__link {
        font-size: 14px;
    }
}

/* ==========================================
   14. REDUCED MOTION
========================================== */

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

    .site-logo,
    .header-nav__link,
    .header-nav__chevron,
    .header-nav__dropdown-link,
    .header-nav__dropdown-arrow,
    .header-menu-toggle {
        transition: none !important;
    }

    .header-nav__dropdown[open]
    > .header-nav__dropdown-menu {
        animation: none;
    }
}
