/* =========================================
   MAS ISMAIL
   CSS UMUM
   Versi Final / Shared Style
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* =========================================
   1. ROOT / VARIABEL
========================================= */

:root {

    /* BRAND COLORS */

    --color-primary: #d4af5f;
    --color-primary-dark: #b89546;
    --color-primary-light: #f7edcf;

    --color-navy: #071b3a;
    --color-navy-light: #102d55;

    --color-blue: #1769aa;
    --color-cyan: #18c5df;

    --color-red: #d71920;
    --color-yellow: #f7c600;

    /* BASIC COLORS */

    --color-white: #ffffff;
    --color-black: #080b10;

    --color-text: #111827;
    --color-text-soft: #667085;

    /* BACKGROUND */

    --color-background: #ffffff;
    --color-background-soft: #f7f8fa;
    --color-background-dark: #071b3a;

    /* BORDER */

    --color-border: #e5e7eb;

    /* RADIUS */

    --radius-small: 10px;
    --radius-medium: 18px;
    --radius-large: 28px;
    --radius-pill: 999px;

    /* SHADOW */

    --shadow-small:
        0 4px 15px rgba(7, 27, 58, 0.06);

    --shadow-medium:
        0 10px 30px rgba(7, 27, 58, 0.10);

    --shadow-large:
        0 20px 50px rgba(7, 27, 58, 0.14);

    /* CONTAINER */

    --container-width: 1180px;

    /* TRANSITION */

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

}

/* =========================================
   2. RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family:
        "Plus Jakarta Sans",
        Arial,
        Helvetica,
        sans-serif;

    background:
        var(--color-background);

    color:
        var(--color-text);

    line-height: 1.6;

    overflow-x: hidden;
}

img {
    display: block;

    max-width: 100%;
}

a {
    color: inherit;

    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* =========================================
   3. CONTAINER
========================================= */

.section-container,
.footer-container {
    width:
        min(
            calc(100% - 40px),
            var(--container-width)
        );

    margin-inline: auto;
}

/* =========================================
   4. SECTION UMUM
========================================= */

section {
    position: relative;

    width: 100%;
}

.section-heading {
    margin-bottom: 40px;
}

.section-label {
    display: inline-block;

    margin-bottom: 10px;

    color:
        var(--color-primary);

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

/* =========================================
   5. BUTTON
========================================= */

.button {
    display: inline-flex;

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

    min-height: 48px;

    padding:
        12px 22px;

    border:
        1px solid transparent;

    border-radius:
        var(--radius-pill);

    font-size: 0.95rem;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform var(--transition-fast),
        background-color var(--transition-normal),
        color var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);
}

.button:hover {
    transform:
        translateY(-2px);
}

.button:active {
    transform:
        translateY(0);
}

/* =========================================
   6. PRIMARY BUTTON
========================================= */

.button-primary {
    background:
        var(--color-primary);

    color:
        var(--color-white);

    box-shadow:
        var(--shadow-small);
}

.button-primary:hover {
    background:
        var(--color-primary-dark);

    box-shadow:
        var(--shadow-medium);
}

/* =========================================
   7. SECONDARY BUTTON
========================================= */

.button-secondary {
    background:
        var(--color-white);

    color:
        var(--color-primary);

    border-color:
        var(--color-border);
}

.button-secondary:hover {
    border-color:
        var(--color-primary);

    box-shadow:
        var(--shadow-small);
}

/* =========================================
   8. HEADER
========================================= */

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;

    background:
        rgba(255, 255, 255, 0.88);

    border-bottom:
        1px solid
        rgba(229, 231, 235, 0.7);

    backdrop-filter:
        blur(16px);

    -webkit-backdrop-filter:
        blur(16px);
}

/* =========================================
   9. HEADER SAAT SCROLL
========================================= */

.site-header.scrolled {
    background:
        rgba(255, 255, 255, 0.96);

    box-shadow:
        var(--shadow-small);

    border-bottom-color:
        transparent;
}

/* =========================================
   10. NAVBAR
========================================= */

.navbar {
    position: relative;

    display: flex;

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

    width:
        min(
            calc(100% - 40px),
            var(--container-width)
        );

    min-height: 72px;

    margin-inline: auto;
}

/* =========================================
   11. BRAND LOGO
========================================= */

.brand-logo {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color:
        var(--color-navy);

    font-size: 1rem;

    font-weight: 800;

    letter-spacing: -0.03em;

    white-space: nowrap;

    transition:
        transform var(--transition-fast),
        opacity var(--transition-normal);
}

.brand-logo img {
    display: block;

    width: 42px;
    height: 42px;

    max-width: 42px;
    max-height: 42px;

    flex-shrink: 0;

    object-fit: contain;
}

.brand-logo span {
    color:
        var(--color-navy);
}

.brand-logo:hover {
    transform:
        translateY(-1px);

    opacity:
        0.88;
}

/* =========================================
   12. NAV MENU
========================================= */

.nav-menu {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-left: auto;
}

/* =========================================
   13. NAV LINK
========================================= */

.nav-link {
    position: relative;

    display: inline-flex;

    align-items: center;

    min-height: 38px;

    padding:
        9px 12px;

    border-radius:
        var(--radius-pill);

    color:
        var(--color-text-soft);

    font-size: 0.88rem;

    font-weight: 600;

    white-space: nowrap;

    transition:
        color var(--transition-normal),
        background-color var(--transition-normal);
}

.nav-link::after {
    content: "";

    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 2px;

    height: 2px;

    background:
        var(--color-primary);

    border-radius:
        var(--radius-pill);

    transform:
        scaleX(0);

    transform-origin:
        center;

    transition:
        transform var(--transition-normal);
}

.nav-link:hover {
    color:
        var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform:
        scaleX(1);
}

.nav-link.active {
    color:
        var(--color-primary);
}

/* =========================================
   14. NAV TOGGLE / HAMBURGER
========================================= */

.nav-toggle {
    display: none;

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

    flex-direction: column;

    gap: 5px;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;

    border-radius: 12px;

    background:
        transparent;

    cursor: pointer;

    transition:
        background-color var(--transition-normal);
}

.nav-toggle:hover {
    background:
        rgba(15, 118, 110, 0.07);
}

.nav-toggle span {
    display: block;

    width: 21px;
    height: 2px;

    border-radius:
        var(--radius-pill);

    background:
        var(--color-navy);

    transition:
        transform var(--transition-normal),
        opacity var(--transition-fast),
        width var(--transition-normal);
}

/* =========================================
   15. HAMBURGER → X
========================================= */

.nav-toggle.active span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    width: 0;

    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}

/* =========================================
   16. REVEAL ANIMATION
========================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(24px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;

    transform:
        translateY(0);
}

/* =========================================
   17. FOOTER
========================================= */

.site-footer {
    position: relative;

    background:
        var(--color-navy);

    color:
        #ffffff;

    overflow: hidden;
}

.site-footer::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: -300px;
    right: -180px;

    border:
        1px solid
        rgba(212, 175, 95, 0.15);

    border-radius: 50%;

    pointer-events: none;
}

.site-footer::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    bottom: -220px;
    left: -120px;

    border:
        1px solid
        rgba(255, 255, 255, 0.05);

    border-radius: 50%;

    pointer-events: none;
}

/* =========================================
   18. FOOTER CONTAINER
========================================= */

.footer-container {
    position: relative;

    z-index: 2;

    padding-top: 90px;
    padding-bottom: 30px;
}

/* =========================================
   19. FOOTER MAIN
========================================= */

.footer-main {
    max-width: 650px;

    margin-bottom: 55px;
}

.footer-label {
    margin-bottom: 15px;

    color:
        var(--color-primary);

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 0.16em;
}

.footer-main h2 {
    color:
        #ffffff;

    font-size:
        clamp(
            2.3rem,
            5vw,
            4rem
        );

    line-height: 1.05;

    letter-spacing: -0.06em;
}

.footer-description {
    max-width: 540px;

    margin-top: 20px;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 0.92rem;

    line-height: 1.8;
}

/* =========================================
   20. FOOTER THREE LOGOS
========================================= */

.footer-logos {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 50px;
}

.footer-logo-item {
    display: flex;

    align-items: center;

    gap: 15px;

    min-height: 100px;

    padding: 18px;

    background:
        rgba(255, 255, 255, 0.045);

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius:
        var(--radius-medium);

    color:
        rgba(255, 255, 255, 0.8);

    transition:
        transform var(--transition-normal),
        background-color var(--transition-normal),
        border-color var(--transition-normal);
}

.footer-logo-item:hover {
    transform:
        translateY(-4px);

    background:
        rgba(255, 255, 255, 0.075);

    border-color:
        rgba(212, 175, 95, 0.35);

    color:
        #ffffff;
}

.footer-logo-image {
    display: flex;

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

    width: 62px;
    height: 62px;

    padding: 6px;

    flex-shrink: 0;

    background:
        #ffffff;

    border-radius: 16px;
}

.footer-logo-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.footer-logo-item span {
    font-size: 0.8rem;

    font-weight: 700;

    line-height: 1.4;
}

/* =========================================
   21. FOOTER SOCIAL AREA
========================================= */

.footer-social-area {
    display: flex;

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

    gap: 30px;

    padding-bottom: 35px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.1);
}

.footer-social-area > p {
    color:
        rgba(255, 255, 255, 0.45);

    font-size: 0.78rem;
}

.footer-social {
    display: flex;

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

    flex-wrap: wrap;

    gap: 8px;

    padding: 0;

    border: 0;
}

/* =========================================
   22. SOCIAL LINK
========================================= */

.social-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding:
        8px 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius:
        var(--radius-pill);

    color:
        rgba(255, 255, 255, 0.65);

    font-size: 0.72rem;

    font-weight: 600;

    transition:
        transform var(--transition-normal),
        background-color var(--transition-normal),
        border-color var(--transition-normal),
        color var(--transition-normal);
}

.social-link:hover {
    transform:
        translateY(-2px);

    background:
        rgba(255, 255, 255, 0.08);

    border-color:
        rgba(212, 175, 95, 0.4);

    color:
        #ffffff;
}

.social-icon {
    display: inline-flex;

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

    width: 17px;
    height: 17px;

    font-size: 0.85rem;

    font-weight: 800;
}

/* =========================================
   23. FOOTER BOTTOM
========================================= */

.footer-bottom {
    display: flex;

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

    gap: 20px;

    padding-top: 25px;
}

.footer-bottom p {
    color:
        rgba(255, 255, 255, 0.35);

    font-size: 0.68rem;
}

/* =========================================
   24. FOCUS
========================================= */

a:focus-visible,
button:focus-visible {
    outline:
        3px solid
        var(--color-primary-light);

    outline-offset: 3px;
}

/* =========================================
   25. TABLET
========================================= */

@media (max-width: 900px) {

    .nav-menu {
        gap: 2px;
    }

    .nav-link {
        padding-inline: 8px;

        font-size: 0.85rem;
    }

}

/* =========================================
   26. MOBILE
========================================= */

@media (max-width: 700px) {

    /* ================================
       CONTAINER
    ================================= */

    .section-container,
    .footer-container {
        width:
            min(
                calc(100% - 32px),
                var(--container-width)
            );
    }

    /* ================================
       NAVBAR
    ================================= */

    .navbar {
        width:
            min(
                calc(100% - 32px),
                var(--container-width)
            );

        min-height: 64px;
    }

    /* ================================
       BRAND
    ================================= */

    .brand-logo {
        gap: 8px;

        font-size: 0.9rem;
    }

    .brand-logo img {
        width: 38px;
        height: 38px;

        max-width: 38px;
        max-height: 38px;
    }

    /* ================================
       HAMBURGER
    ================================= */

    .nav-toggle {
        display: flex;
    }

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

    .nav-menu {
        position: absolute;

        top:
            calc(100% + 10px);

        left: 0;
        right: 0;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 4px;

        padding: 10px;

        background:
            rgba(255, 255, 255, 0.97);

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

        border-radius:
            var(--radius-medium);

        box-shadow:
            var(--shadow-medium);

        backdrop-filter:
            blur(16px);

        -webkit-backdrop-filter:
            blur(16px);

        opacity: 0;

        visibility: hidden;

        transform:
            translateY(-10px)
            scale(0.98);

        transform-origin:
            top center;

        pointer-events: none;

        transition:
            opacity var(--transition-normal),
            visibility var(--transition-normal),
            transform var(--transition-normal);
    }

    /* ================================
       MOBILE MENU ACTIVE
    ================================= */

    .nav-menu.active {
        opacity: 1;

        visibility: visible;

        transform:
            translateY(0)
            scale(1);

        pointer-events: auto;
    }

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

    .nav-link {
        width: 100%;

        justify-content: flex-start;

        padding:
            13px 14px;

        border-radius:
            10px;

        font-size: 0.9rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        background:
            var(--color-background-soft);
    }

    .nav-link.active {
        background:
            var(--color-primary-light);

        color:
            var(--color-primary);
    }

    /* ================================
       HOME SPACING
    ================================= */

    .hero-section {
        padding-top: 80px;
    }

    .about-section,
    .brands-section {
        padding-top: 80px;

        padding-bottom: 80px;
    }

    /* ================================
       FOOTER
    ================================= */

    .footer-container {
        padding-top: 65px;
    }

    .footer-main {
        margin-bottom: 38px;
    }

    .footer-main h2 {
        font-size: 2.5rem;
    }

    .footer-logos {
        grid-template-columns: 1fr;

        gap: 10px;

        margin-bottom: 35px;
    }

    .footer-logo-item {
        min-height: 82px;

        padding: 14px;
    }

    .footer-logo-image {
        width: 54px;
        height: 54px;
    }

    .footer-social-area {
        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-bottom {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }

}

/* =========================================
   27. REDUCED MOTION
========================================= */

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration:
            0.01ms !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;
    }

}

/* =========================================
   28. PAGE TRANSITION
========================================= */

.page-transition {
    position: fixed;

    inset: 0;

    z-index: 10000;

    display: flex;

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

    background:
        #071b3a;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

/* =========================================
   29. PAGE TRANSITION ACTIVE
========================================= */

.page-transition.active {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}

/* =========================================
   30. TRANSITION CONTENT
========================================= */

.transition-content {
    display: flex;

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

    flex-direction: column;

    text-align: center;

    transform:
        translateY(20px)
        scale(0.96);

    opacity: 0;

    transition:
        transform 0.45s ease,
        opacity 0.4s ease;
}

.page-transition.active
.transition-content {
    transform:
        translateY(0)
        scale(1);

    opacity: 1;
}

/* =========================================
   31. TRANSITION LOGOS
========================================= */

.transition-logos {
    display: flex;

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

    gap: 12px;

    margin-bottom: 28px;
}

.transition-logos img {
    width: 65px;
    height: 65px;

    object-fit: contain;

    border-radius: 50%;

    background:
        #ffffff;

    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, 0.2);

    animation:
        transitionLogoFloat
        3s ease-in-out
        infinite;
}

.transition-logos img:nth-child(2) {
    animation-delay: -1s;
}

.transition-logos img:nth-child(3) {
    animation-delay: -2s;
}

/* =========================================
   32. TRANSITION TITLE
========================================= */

.transition-title {
    margin: 0;

    color:
        #ffffff;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size:
        clamp(
            1.7rem,
            5vw,
            2.7rem
        );

    font-weight: 800;

    letter-spacing: -0.04em;
}

/* =========================================
   33. TRANSITION SUBTITLE
========================================= */

.transition-subtitle {
    margin-top: 8px;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 0.8rem;

    letter-spacing: 0.04em;
}

/* =========================================
   34. TRANSITION LOGO ANIMATION
========================================= */

@keyframes transitionLogoFloat {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-7px);
    }

}

/* =========================================
   35. TRANSITION MOBILE
========================================= */

@media (max-width: 700px) {

    .transition-logos {
        gap: 8px;

        margin-bottom: 22px;
    }

    .transition-logos img {
        width: 55px;
        height: 55px;
    }

    .transition-title {
        font-size: 1.65rem;
    }

    .transition-subtitle {
        font-size: 0.7rem;
    }

}
/* =========================================
   GLOBAL FLOATING PREMIUM
   MAS MAIL — ALL PAGES
========================================= */

.mm-floating {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: calc(22px + env(safe-area-inset-bottom));
    z-index: 9990;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;

    pointer-events: none;
}

.mm-floating > * {
    pointer-events: auto;
}

.mm-floating-wa,
.mm-floating-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;
    padding: 0;

    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;

    transition:
        transform .4s cubic-bezier(.2,.8,.2,1),
        opacity .35s ease,
        box-shadow .35s ease,
        background .35s ease;
}

/* WHATSAPP */

.mm-floating .mm-floating-wa {
    background: linear-gradient(145deg, #32e678, #128c4a);
    border: 2px solid rgba(255,255,255,.8);
    color: #fff;

    box-shadow:
        0 8px 28px rgba(18,140,74,.3),
        0 0 0 5px rgba(37,211,102,.1);

    animation: mmFloatingPulse 3.5s ease-in-out infinite;
}

.mm-floating-wa svg {
    width: 31px;
    height: 31px;
    fill: currentColor;
}

/* BACK TO TOP */

.mm-floating #backToHero.mm-floating-top {
    position: relative;
    inset: auto;
    right: auto;
    bottom: auto;
    left: auto;

    width: 56px;
    height: 56px;
    margin: 0;
    padding: 0;

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

    border: 1px solid rgba(212,175,95,.65);
    border-radius: 50%;

    background: linear-gradient(145deg, #12315a, #071b3a);
    color: #f0ce7a;

    box-shadow: 0 9px 25px rgba(7,27,58,.22);

    opacity: 0;
    visibility: hidden;
    transform: translateY(22px) scale(.8);

    pointer-events: none;
}

.mm-floating-top svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mm-floating #backToHero.mm-floating-top span {
    display: none;
}

/* SCROLLED STATE */

.mm-floating.is-scrolled #backToHero.mm-floating-top {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.mm-floating.is-scrolled .mm-floating-wa {
    transform: translateY(-8px);
}

/* INTERACTIONS */

@media (hover: hover) {
    .mm-floating .mm-floating-wa:hover {
        animation-play-state: paused;
        transform: translateY(-5px) scale(1.07);
        box-shadow: 0 13px 34px rgba(18,140,74,.38);
    }

    .mm-floating.is-scrolled .mm-floating-wa:hover {
        transform: translateY(-13px) scale(1.07);
    }

    .mm-floating #backToHero.mm-floating-top:hover {
        transform: translateY(-4px) scale(1.07);
        background: #153e70;
    }
}

.mm-floating a:focus-visible,
.mm-floating button:focus-visible {
    outline: 3px solid #d4af5f;
    outline-offset: 4px;
}

/* GENTLE PULSE */

@keyframes mmFloatingPulse {
    0%, 100% {
        box-shadow:
            0 8px 28px rgba(18,140,74,.3),
            0 0 0 5px rgba(37,211,102,.1);
    }

    50% {
        box-shadow:
            0 10px 30px rgba(18,140,74,.36),
            0 0 0 11px rgba(37,211,102,0);
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .mm-floating {
        right: calc(16px + env(safe-area-inset-right));
        bottom: calc(20px + env(safe-area-inset-bottom));
        gap: 12px;
    }

    .mm-floating .mm-floating-wa {
        width: 58px;
        height: 58px;
    }

    .mm-floating #backToHero.mm-floating-top {
        width: 54px;
        height: 54px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .mm-floating *,
    .mm-floating *::before,
    .mm-floating *::after {
        animation: none !important;
        transition: none !important;
    }
}
