/*==============================================================
HERITAGE THEME
Royal Nusantara
==============================================================*/

html{

    scroll-behavior:smooth;

}

body{

    margin:0;

    padding:0;

    overflow-x:hidden;

    background:var(--secondary);

    color:var(--text);

    font-family:var(--body-font);

    font-size:16px;

    line-height:1.9;

    font-weight:400;

    -webkit-font-smoothing:antialiased;

    text-rendering:optimizeLegibility;

    position:relative;

}

/*==============================================================
BACKGROUND PATTERN
==============================================================*/

body::before{

    content:"";

    position:fixed;

    inset:0;

    z-index:-2;

    background:var(--secondary);

}

body::after{

    content:"";

    position:fixed;

    inset:0;

    z-index:-1;

    opacity:.05;

    background-image:

        radial-gradient(circle at 25% 25%, var(--primary) 2px, transparent 2px),

        radial-gradient(circle at 75% 75%, var(--primary) 2px, transparent 2px);

    background-size:80px 80px;

}

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

section{

    position:relative;

    padding:110px 0;

}

.container{

    max-width:1180px;

}

/*==============================================================
TYPOGRAPHY
==============================================================*/

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

    margin:0;

    color:var(--primary);

    font-family:var(--heading-font);

    font-weight:600;

    line-height:1.2;

}

p{

    margin:0;

    color:var(--text);

}

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

.section-title{

    margin-bottom:70px;

    text-align:center;

}

.section-title h2{

    position:relative;

    display:inline-block;

    padding:0 60px 20px;

    color:var(--primary);

    font-size:clamp(2.8rem,5vw,4.2rem);

    letter-spacing:2px;

}

.section-title h2::before,

.section-title h2::after{

    content:"✦";

    position:absolute;

    top:12px;

    color:var(--accent);

    font-size:18px;

}

.section-title h2::before{

    left:0;

}

.section-title h2::after{

    right:0;

}

/*==============================================================
ORNAMENT DIVIDER
==============================================================*/

.heritage-divider{

    width:180px;

    height:1px;

    margin:35px auto;

    background:linear-gradient(

        to right,

        transparent,

        var(--accent),

        transparent

    );

    position:relative;

}

.heritage-divider::after{

    content:"❖";

    position:absolute;

    left:50%;

    top:50%;

    transform:translate(-50%,-50%);

    padding:0 14px;

    background:var(--secondary);

    color:var(--accent);

}

/*==============================================================
CARD
==============================================================*/

.card{

    background:#fffaf2;

    border:1px solid rgba(201,166,107,.45);

    border-radius:18px;

    box-shadow:

        0 18px 45px rgba(74,46,23,.08);

}

/*==============================================================
BUTTON
==============================================================*/

.btn{

    border-radius:12px;

    font-family:var(--body-font);

    font-weight:600;

}

.btn-primary{

    background:linear-gradient(

        180deg,

        #a77a38,

        #7b5328

    );

    border:1px solid #8B5A2B;

    color:#fff;

}

.btn-primary:hover{

    filter:brightness(1.05);

}

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

.form-control,

.form-select{

    border:1px solid rgba(201,166,107,.45);

    border-radius:12px;

    padding:14px 16px;

    background:#fffef9;

    box-shadow:none;

    font-family:var(--body-font);

}

.form-control:focus,

.form-select:focus{

    border-color:var(--accent);

    box-shadow:

        0 0 0 .2rem rgba(212,175,55,.15);

}

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

a{

    color:var(--primary);

    text-decoration:none;

    transition:.3s;

}

a:hover{

    color:#6b421d;

}

/*==============================================================
IMAGE
==============================================================*/

img{

    display:block;

    max-width:100%;

    height:auto;

}

/*==============================================================
SELECTION
==============================================================*/

::selection{

    background:var(--primary);

    color:#fff;

}

/*==============================================================
SCROLLBAR
==============================================================*/

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-track{

    background:#efe3d0;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:999px;

}

::-webkit-scrollbar-thumb:hover{

    background:#6b421d;

}

/*==============================================================
UTILITY
==============================================================*/

.text-primary{

    color:var(--primary)!important;

}

.text-gold{

    color:var(--accent)!important;

}

.border-gold{

    border-color:rgba(201,166,107,.45)!important;

}

/*==============================================================
FADE
==============================================================*/

.fade-up{

    opacity:0;

    transform:translateY(30px);

    transition:.8s;

}

.fade-up.show{

    opacity:1;

    transform:none;

}

/*==============================================================
RESPONSIVE
==============================================================*/

@media(max-width:992px){

    section{

        padding:90px 0;

    }

}

@media(max-width:768px){

    body{

        font-size:15px;

    }

    section{

        padding:70px 0;

    }

    .container{

        padding-left:22px;

        padding-right:22px;

    }

    .section-title{

        margin-bottom:50px;

    }

    .section-title h2{

        font-size:2.2rem;

        padding:0 36px 16px;

    }

}