/* =========================================================
   GLOBAL
   Desa Makasari
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {

    /* -----------------------------------------------------
       FONT
    ----------------------------------------------------- */

    --playfair: 'Playfair Display', serif;
    --raleway: 'Raleway', sans-serif;


    /* -----------------------------------------------------
       COLOR
    ----------------------------------------------------- */

    --accent1: #02822b;
    --accent2: #8bc61e;
    --accent3: #ffcb22;

    --black1: #0e0e0e;
    --black2: #3f3f3f;

    --white1: #fff;
    --white2: #f5f5f5;


    /* -----------------------------------------------------
       RADIUS
    ----------------------------------------------------- */

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;


    /* -----------------------------------------------------
       SHADOW
    ----------------------------------------------------- */

    --shadow-sm:
        0 2px 4px rgba(79, 79, 79, 0.10),
        0 8px 8px rgba(79, 79, 79, 0.09),
        0 18px 11px rgba(79, 79, 79, 0.05),
        0 32px 13px rgba(79, 79, 79, 0.01);

    --shadow-md:
        0 4px 8px rgba(79, 79, 79, 0.08),
        0 12px 20px rgba(79, 79, 79, 0.08);

    --shadow-lg:
        0 10px 25px rgba(0, 0, 0, 0.12);


    /* -----------------------------------------------------
       LAYOUT
    ----------------------------------------------------- */

    --content-max-width: 1280px;

    --page-padding:
        clamp(1rem, 4vw, 5rem);
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    background: var(--white2);
    color: var(--black1);

    font-family: var(--raleway);
    font-size: .9rem;
    line-height: 1.5;

    overflow-x: hidden;
}


/* =========================================================
   MEDIA
========================================================= */

img,
svg,
video {

    display: block;

    max-width: 100%;
}


img {
    height: auto;
}


iframe {

    display: block;

    max-width: 100%;
}


/* =========================================================
   FORM ELEMENT
========================================================= */

button,
input,
textarea,
select {

    font: inherit;
}


button {
    cursor: pointer;
}


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

a {

    color: inherit;
}


/* =========================================================
   TEXT
========================================================= */

p {

    line-height: 1.6;
}


h1,
h2,
h3,
h4,
h5,
h6 {

    color: var(--black1);

    line-height: 1.2;
}


h1 {

    font-size:
        clamp(1.6rem, 1.3rem + 1vw, 2rem);

    font-weight: 500;
}


h2 {

    font-size:
        clamp(1.3rem, 1.1rem + .6vw, 1.6rem);

    font-weight: 500;
}


h3 {

    font-size:
        clamp(1.05rem, .95rem + .3vw, 1.25rem);

    font-weight: 600;
}


/* =========================================================
   SECTION
========================================================= */

section {

    width: 100%;
}


/* =========================================================
   NAVIGATION
========================================================= */

nav {

    width: 100%;

    background: var(--white1);
}


nav ul {

    width: 100%;

    display: flex;

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

    gap:
        clamp(.4rem, 1vw, 1rem);

    padding:
        .75rem
        var(--page-padding);

    list-style: none;
}


nav li {

    padding:
        .5rem
        clamp(.7rem, 1.5vw, 1rem);

    border-radius: 20px;
}


nav li.active {

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


nav li:first-child {

    padding: 0;

    margin-right: auto;

    background: transparent;
}


nav li:first-child a {

    color: var(--accent1);

    font-family: var(--playfair);

    font-size:
        clamp(1.1rem, 1rem + .5vw, 1.3rem);

    font-weight: 700;

    transition:
        color .3s ease,
        font-weight .3s ease;
}


nav a {

    color: var(--black1);

    text-decoration: none;

    font-weight: 450;

    transition:
        color .3s ease;
}


nav a:hover {

    color: var(--accent1);
}


nav li:first-child a:hover {

    font-weight: 800;
}


/* =========================================================
   NAVIGATION CTA
========================================================= */

.navbar li:nth-last-child(2) {

    background: var(--accent1);

    margin-left: auto;
}


.navbar li:nth-last-child(2) a {

    color: var(--white1);
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {

    position: fixed;

    top: 0;
    right: 0;

    width:
        min(300px, 100%);

    height: 100vh;

    z-index: 999;

    display: none;

    flex-direction: column;

    align-items: flex-start;
    justify-content: flex-start;

    background: var(--white1);

    box-shadow:
        -10px 0 30px rgba(0, 0, 0, .08);
}


.sidebar li {

    width: 100%;
}


.sidebar a {

    display: block;

    width: 100%;
}


.sidebar .active a {

    text-decoration: underline;
}


.menu-button {

    display: none;
}


/* =========================================================
   HOTLINE WHATSAPP
========================================================= */

.hotline-wa {

    position: fixed;

    right: 24px;
    bottom: 50px;

    z-index: 9999;

    width: fit-content;
    height: fit-content;
}


.hotline-wa__link {

    display: flex;

    align-items: center;

    width: fit-content;

    gap: .7rem;

    padding:
        .5rem
        .5rem
        .5rem
        1rem;

    background: var(--accent1);
    color: var(--white1);

    border-radius: 999px;

    text-decoration: none;

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

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.hotline-wa__link:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 14px 30px rgba(0, 0, 0, .18);
}


/* ---------------------------------------------------------
   Hotline text
--------------------------------------------------------- */

.hotline-wa__text {

    display: flex;

    flex-direction: column;

    line-height: 1.15;
}


.hotline-wa__title {

    font-size: .72rem;

    font-weight: 700;

    white-space: nowrap;
}


.hotline-wa__subtitle {

    margin-top: .15rem;

    font-size: .55rem;

    white-space: nowrap;

    opacity: .8;
}


/* ---------------------------------------------------------
   Hotline icon
--------------------------------------------------------- */

.hotline-wa__icon {

    position: relative;

    width: 2.75rem;
    height: 2.75rem;

    flex: 0 0 2.75rem;

    border-radius: 50%;

    background-color: var(--white1);

    -webkit-mask-image:
        url('../assets/global/footer/whatsapp.svg');

    mask-image:
        url('../assets/global/footer/whatsapp.svg');

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: 1.5rem;
    mask-size: 1.5rem;
}

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

footer {

    margin:
        1rem
        clamp(1rem, 3vw, 2rem);

    padding:
        clamp(2rem, 4vw, 3rem);

    background: var(--accent1);

    color: var(--white1);

    border-radius:
        var(--radius-lg);
}


footer a {

    color: var(--white1);

    text-decoration: none;
}


.footer-top {

    display: flex;

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

    gap: 2rem;
}


.footer-top h1 {

    color: var(--white1);

    font-family: var(--playfair);

    font-size:
        clamp(2rem, 4vw, 3rem);
}


.footer-top li {

    margin: 1rem 0 0;

    list-style-type: none;

    text-align: right;
}


.footer-top .links {

    display: flex;

    gap:
        clamp(.5rem, 1.5vw, 1rem);
}


.footer-bottom {

    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 1.5rem;
}


.footer-divider {

    margin:
        clamp(1.5rem, 3vw, 2rem)
        0;
}


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

footer .contact {

    display: flex;

    flex-wrap: wrap;

    gap:
        clamp(.5rem, 1.5vw, 1rem);
}


.footer-bottom .contact > * {

    display: flex;

    align-items: flex-end;

    gap: .2rem;
}


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

footer .contact .icon-wa,
footer .contact .icon-email,
footer .contact .icon-ig {

    display: inline-block;

    flex: 0 0 auto;

    background-color: var(--white1);

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: contain;
    mask-size: contain;
}


footer .contact .icon-wa {

    width: 1rem;
    height: 1rem;

    -webkit-mask-image:
        url('../assets/global/footer/whatsapp.svg');

    mask-image:
        url('../assets/global/footer/whatsapp.svg');
}


footer .contact .icon-email {

    width: 1rem;
    height: 1rem;

    -webkit-mask-image:
        url('../assets/global/footer/at.svg');

    mask-image:
        url('../assets/global/footer/at.svg');
}


footer .contact .icon-ig {

    width: .75rem;
    height: .75rem;

    -webkit-mask-image:
        url('../assets/global/footer/instagram.svg');

    mask-image:
        url('../assets/global/footer/instagram.svg');
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .footer-top {

        flex-direction: column;

        align-items: center;
    }


    .footer-top .alamat {

        text-align: center;
    }


    .footer-top .links {

        display: none;
    }


    .footer-bottom {

        flex-direction: column;

        align-items: center;

        gap: 1rem;
    }


    .footer-bottom .contact {

        justify-content: center;
    }
}


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

@media (max-width: 800px) {

    .hideOnMobile {

        display: none;
    }


    .menu-button {

        display: block;
    }


    footer {

        margin: 1rem;
    }
}


/* =========================================================
   HOTLINE MOBILE
========================================================= */

@media (max-width: 600px) {

    .hotline-wa {

        right: 16px;
        bottom: 16px;
    }


    .hotline-wa__link {

        padding: .45rem;
    }


    .hotline-wa__text {

        display: none;
    }


    .hotline-wa__icon {

        width: 3rem;
        height: 3rem;

        flex-basis: 3rem;

        -webkit-mask-size: 1.6rem;
        mask-size: 1.6rem;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .sidebar {

        width: 100%;
    }


    footer {

        margin: .75rem;

        padding:
            1.5rem
            1rem;
    }


    footer .contact {

        justify-content: center;
    }
}