@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-latin-300-normal.woff2') format('woff2'),
        url('../fonts/poppins-latin-300-normal.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2'),
        url('../fonts/poppins-latin-400-normal.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2'),
        url('../fonts/poppins-latin-500-normal.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Krub';
    src: url('../fonts/Krub-Regular.woff2') format('woff2'),
        url('../fonts/Krub-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html,
body {
    color: #222222;
    font-family: "Poppins", system-ui;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

h1 {
    font-family: "Krub", system-ui;
    font-weight: 300;
    font-style: normal;
    font-size: 36px;
    line-height: 1.3;
}

h2 {
    font-family: "Krub", system-ui;
    font-weight: 300;
    font-style: normal;
    font-size: 30px;
    line-height: 1.2;
}

h3 {
    font-family: "Poppins", system-ui;
    font-weight: 300;
    font-style: normal;
    font-size: 30px;
    line-height: 1.2;
}

h4 {
    font-family: "Poppins", system-ui;
    font-weight: 300;
    font-style: normal;
    font-size: 22px;
}

h5 {
    font-family: "Poppins", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 1.3;
}

h6 {
    font-family: "Poppins", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    line-height: 1.3;
}

p,
li {
    font-family: "Poppins", system-ui;
    font-weight: 300;
    font-style: normal;
    font-size: 15px;
    line-height: 1.7;
}

span {
    font-family: inherit;
    font-weight: inherit;
    font-style: inherit;
    font-size: inherit;
    line-height: inherit;
}

strong {
    font-weight: 500;
}

.tan {
    color: #c49a6c;
}

/* fslightbox — floor/level/site plans are transparent images with dark
   linework, so give every source a white backing (the gallery photos are
   opaque, so they're unaffected). */
.fslightboxs {
    background-color: #FFFFFF;
}

/* same white backing for the thumbnail strip, so the plan thumbs read too */
.fslightbox-thumb {
    background-color: #FFFFFF;
}

#float-icon {
    position: fixed;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
}

#float-whatsapp,
#float-register,
#float-waze {
    display: block;
}

/* same size as the Seremban 2 site: 32px icon + 10px padding = 52px */
#float-icon .box {
    width: 52px;
    height: 52px;
    border-radius: 100%;
    border: 1px solid #FFFFFF;
    background-color: rgba(35, 31, 32, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#float-icon .box img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

/* icon-register.svg already draws its own ring */
#float-icon .box.box--plain {
    border: 0;
}

#float-icon .box.box--plain img {
    width: 52px;
    height: 52px;
}

#float-icon a:hover .box {
    background-color: #c49a6c;
}

.navbar.sticky-top {
    z-index: 1060;
    box-shadow: 1px 10px 25px -10px rgba(0, 0, 0, 0.35);
    -webkit-box-shadow: 1px 10px 25px -10px rgba(0, 0, 0, 0.35);
    -moz-box-shadow: 1px 10px 25px -10px rgba(0, 0, 0, 0.35);
}

.navbar .nav-item {
    height: 80px;
}

.navbar .nav-item>.nav-link {
    text-transform: uppercase;
    font-family: "Poppins", system-ui;
    font-weight: 400;
}

/* Kalista 2 has 9 menu links (vs 5 in the Seremban 2 site) — keep two-word
   links on one line and stop the logo from being squeezed. */
.navbar .nav-item>.nav-link {
    white-space: nowrap;
}

.navbar .navbar-brand {
    flex-shrink: 0;
}

.navbar .nav-item:not(:last-child)>.nav-link {
    padding: 0.5rem 1rem;
}

.navbar .nav-item>.nav-link.active,
.navbar .nav-item>.nav-link:hover {
    color: #2B432F;
}

.navbar .nav-item>.nav-link.active {
    font-weight: 700;
}

.middle-bar {
    margin-top: 0px;
}

/* Navbar toggler */
.navbar-toggler {
    width: 20px;
    height: 20px;
    position: relative;
    transition: .5s ease-in-out;
}

.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none;
    box-shadow: none;
    border: 0;
    position: relative;
}

.navbar-toggler .toggler-icon {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #222222;
    border-radius: 1px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.navbar-toggler span {
    margin: 0;
    padding: 0;
}

/* State when the navbar is collapsed */
.navbar-toggler.collapsed .top-bar {
    position: absolute;
    top: 0px;
    transform: rotate(0deg);
}

.navbar-toggler.collapsed .middle-bar {
    opacity: 1;
    position: absolute;
    top: 10px;
    filter: alpha(opacity=100);
}

.navbar-toggler.collapsed .bottom-bar {
    position: absolute;
    top: 20px;
    transform: rotate(0deg);
}

/* when navigation is clicked */
.navbar-toggler .top-bar {
    top: inherit;
    transform: rotate(135deg);
}

.navbar-toggler .middle-bar {
    opacity: 0;
    top: inherit;
    filter: alpha(opacity=0);
}

.navbar-toggler .bottom-bar {
    top: inherit;
    transform: rotate(-135deg);
}

/* Color of 3 lines */
.navbar-toggler.collapsed .toggler-icon {
    background: #222222;
}

/* ---- Full-bleed image sections (banner / overview / neighbourhood) ---- */
#banner .background,
#neighbourhood .background {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#neighbourhood .background {
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(1.0);
    transition: transform 8s ease-out;
}

#neighbourhood:hover .background {
    transform: scale(1.04);
}

#banner .banner-image {
    aspect-ratio: 1920 / 900;
}

#banner .banner-image:after,
#neighbourhood .container-fluid:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#banner .banner-image:after {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 55%);
}


#neighbourhood .container-fluid:after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.1) 60%);
}

#banner {
    overflow: hidden;
}

#banner #logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

#banner #ijm-logo {
    max-width: 140px;
    margin-right: 120px;
}

#banner .content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8%;
    transform: translateY(-50%);
    z-index: 2;
}

#banner #kalista-logo {
    width: 320px;
    height: auto;
}

#banner #kalista-logo {
    display: inline-block;
    max-width: 100%;
    overflow: visible;
}

/* Kalista 2 logo animation
   1. the "KALISTA 2" lettering zooms out into place (like AOS zoom-out)
   2. once it has settled, the stem grows from its base
   3. then the leaf unfurls with a slight overshoot */
#kalista-logo .k2-letters {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    transform: scale(1.2);
    opacity: 0;
    animation: k2-zoom-out 0.5s ease-out 0.2s forwards;
}

#kalista-logo .k2-stem {
    transform-box: fill-box;
    transform-origin: 0% 100%;
    transform: scale(0);
    animation: k2-grow 0.3s ease-out 0.7s forwards;
}

#kalista-logo .k2-leaf {
    transform-box: fill-box;
    transform-origin: 0% 100%;
    transform: scale(0) rotate(-30deg);
    opacity: 0;
    animation: k2-leaf 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s forwards;
}

@keyframes k2-zoom-out {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes k2-grow {
    to {
        transform: scale(1);
    }
}

@keyframes k2-leaf {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-30deg);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

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

    #kalista-logo .k2-letters,
    #kalista-logo .k2-stem,
    #kalista-logo .k2-leaf {
        animation: none;
        transform: none;
        opacity: 1;
    }

}

#banner h1 {
    color: #FFFFFF;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

#overview {
    position: relative;
    padding: 280px 0;
    /* dark tint layered over the photo so the white text stays legible
       (#overview:before is used by the .card-image-mask wipe) */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/ambition-banner.webp') center / cover no-repeat;
    overflow: hidden;
}

#overview .container-fluid {
    z-index: 3;
}

#overview h2,
#overview p {
    color: #FFFFFF;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

#neighbourhood .container-fluid {
    aspect-ratio: 1920 / 1080;
}

#neighbourhood .content {
    position: relative;
    height: 100%;
    z-index: 2;
    padding: 200px 0;
}

#neighbourhood h2 {
    color: #FFFFFF;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

#neighbourhood #amenities {
    max-width: 992px;
}

#neighbourhood .amenity {
    width: 160px;
    height: 160px;
    border-radius: 100%;
    background-color: rgba(196, 154, 108, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem;
    box-shadow: 0px 10px 25px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#neighbourhood .amenity span {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
}

#neighbourhood .amenity:hover {
    transform: scale(1.08);
    background-color: rgba(196, 154, 108, 1);
}

/* ---- Gallery / Freehold Executive Apartment ---- */
#gallery {
    background-color: #c49a6c;
    padding: 5rem 0 3rem;
}

#gallery .gallery-trigger {
    cursor: zoom-in;
    overflow: hidden;
}

#gallery .gallery-trigger img {
    transform: scale(1.0);
    transition: all 0.4s ease;
}

#gallery .gallery-trigger:hover img {
    transform: scale(1.04);
}

#gallery .gallery-hint {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    color: #FFFFFF;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.5rem 0.9rem;
    background-color: rgba(35, 31, 32, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
    transition: background-color 0.3s ease;
}

#gallery .gallery-trigger:hover .gallery-hint {
    background-color: rgba(35, 31, 32, 0.75);
}

#gallery .caption {
    color: #FFFFFF;
    font-size: 20px;
    margin-top: 2rem;
}

#gallery .features {
    max-width: 260px;
    margin: 0 auto;
}

#gallery .features .spec {
    display: inline-flex;
    align-items: center;
    color: #FFFFFF;
    font-size: 14px;
    text-transform: uppercase;
}

#gallery .features .dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 100%;
    background-color: #FFFFFF;
}

#gallery .features li {
    color: #FFFFFF;
    font-size: 15px;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 0.4rem 0.75rem;
    margin-bottom: 0.6rem;
    transition: background-color 0.3s ease;
}

#gallery .features li:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

/* Image mask — wipes open left-to-right the first time it scrolls into
   view (".in-view" is toggled in custom.js). */
.card-image-mask {
    position: relative;
    overflow: hidden;
}

.card-image-mask:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.9s ease-out;
    z-index: 2;
    pointer-events: none;
}

.card-image-mask.in-view:before {
    transform: scaleX(0);
}

/* Top-to-bottom variant — add alongside .card-image-mask to wipe downward
   instead of left-to-right. */
.card-image-mask.card-image-mask--vertical:before {
    transform: scaleY(1);
    transform-origin: bottom;
    transition-duration: 0.9s;
}

.card-image-mask.card-image-mask--vertical.in-view:before {
    transform: scaleY(0);
}

/* Bottom-to-top variant — wipes upward. */
.card-image-mask.card-image-mask--vertical-reverse:before {
    transform: scaleY(1);
    transform-origin: top;
    transition-duration: 0.9s;
}

.card-image-mask.card-image-mask--vertical-reverse.in-view:before {
    transform: scaleY(0);
}

/* ---- Floor plan / level plan / site plan ---- */
#plans .background {
    background-color: #f4e6de;
    padding: 6rem 1rem;
}

#plans .btn {
    width: 230px;
    max-width: 100%;
    font-family: "Poppins", system-ui;
    font-weight: 300;
    font-size: 15px;
    color: #c49a6c;
    background-color: transparent;
    border: 1px solid #c49a6c;
    border-radius: 0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

#plans .btn:hover,
#plans .btn:focus-visible {
    color: #FFFFFF;
    background-color: #c49a6c;
}

/* ---- Location ---- */
#location .map {
    position: relative;
    height: 600px;
    background-color: #eeeeee;
}

#location .map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---- Register ---- */
#register {
    padding: 4rem 0 5rem;
}

#register .background {
    background-color: #231f20;
    padding: 3rem 3rem 3.5rem;
}

#register h3 {
    color: #FFFFFF;
}

#register h6 {
    color: #FFFFFF;
    font-size: 13px;
}

#register .background a {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 300;
    text-decoration: underline;
    width: fit-content;
}

#register .background a:hover {
    color: #c49a6c;
}

#register #invitation label {
    color: #FFFFFF;
    font-size: 13px;
    margin-bottom: 0;
}

#register #invitation .form-control {
    border-radius: 0;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    border-top: none;
    border-right: none;
    border-left: none;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 300;
    padding: 0.6rem 0rem 0.35rem 0;
    box-shadow: none;
}

#register #invitation .form-control:focus {
    border-bottom-color: #c49a6c;
}

#register #invitation .form-control::placeholder {
    color: #8c8586;
}

/* Country-code selector on the contact field (intl-tel-input) */
#register #invitation .iti {
    display: block;
    width: 100%;
}

#register #invitation .iti__selected-flag,
#register #invitation .iti__selected-flag:hover,
#register #invitation .iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
    background-color: transparent;
}

#register #invitation .iti--allow-dropdown .iti__flag-container {
    top: 3px;
}

#register #invitation .iti__selected-flag {
    padding: 0;
}

#register #invitation .iti__selected-dial-code {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 300;
}

#register #invitation .iti__arrow {
    border-top-color: #FFFFFF;
}

#register #invitation .iti__arrow--up {
    border-bottom-color: #FFFFFF;
}

/* Fallback in case the intl-tel-input stylesheet (CDN) is slow/blocked —
   keeps the country list collapsed instead of spilling into the form. */
#register #invitation .iti__hide {
    display: none;
}

#register #invitation .iti__country-list {
    color: #222222;
    text-align: left;
    font-size: 13px;
}

#register .g-recaptcha {
    margin-top: 2.5rem;
}

#register #consent {
    font-size: 11px;
}

#register #consent a {
    color: #1a73e8;
}

#register #recaptcha-error {
    font-size: 12px;
}

#register button[type="submit"] {
    font-family: "Poppins", system-ui;
    font-weight: 300;
    font-size: 15px;
    color: #222222;
    background-color: transparent;
    border: 1px solid #222222;
    border-radius: 0;
    padding: 0.75rem 2.5rem;
    transition: all 0.3s ease;
}

#register button[type="submit"]:hover {
    color: #FFFFFF;
    background-color: #222222;
}

footer {
    background-color: #F7F7F7;
    padding: 4rem 0;
    overflow: hidden;
}

footer h4 {
    font-size: 24px;
}

footer a#waze img,
footer a#google-map img {
    max-width: 40px;
}

footer #terms a {
    font-family: "Poppins", system-ui;
    font-weight: 300;
    font-style: normal;
    font-size: 15px;
    line-height: 1.3;
    color: #222222;
    text-decoration: none;
}

footer #terms a:hover {
    color: #c49a6c;
}

footer .adpl {
    line-height: 1.2;
}

@media (max-width: 1399.98px) {

    h1 {
        font-size: 30px;
    }

    #banner #kalista-logo {
        width: 270px;
    }
}


@media (max-width: 1199.98px) {

    h1 {
        font-size: 30px;
    }

    .navbar .nav-item>.nav-link {
        font-size: 13px;
    }

    .navbar .nav-item:not(:last-child)>.nav-link {
        padding: 0.5rem 0.55rem;
    }

    .navbar .navbar-brand img {
        width: 150px !important;
    }

    #banner #kalista-logo {
        width: 270px;
    }

}


@media (max-width: 991.98px) {

    h1 {
        font-size: 22px;
    }

    h2,
    h3 {
        font-size: 28px;
    }

    .navbar .nav-item {
        height: auto;
    }

    .navbar .nav-item:first-child>.nav-link {
        padding-top: 1.5rem;
    }

    .navbar .nav-item:not(:last-child)>.nav-link {
        padding: 1rem 0rem;
        font-size: initial;
    }

    .navbar .nav-item:last-child>.nav-link {
        padding: 1rem 0rem 0rem;
        font-size: initial;
    }

    #banner #ijm-logo {
        margin-right: 0;
    }

    #banner #kalista-logo {
        width: 200px;
    }

    #neighbourhood .container-fluid {
        aspect-ratio: auto;
    }

    #overview {
        padding: 180px 0;
    }

    #neighbourhood .content {
        padding: 4rem 0 3rem;
    }

    #neighbourhood .amenity {
        width: 130px;
        height: 130px;
    }

    #gallery .background {
        padding: 3rem 1.5rem 3rem;
    }

    #gallery .caption {
        margin-top: 1.5rem;
        margin-bottom: 2rem !important;
    }

    #gallery .features {
        max-width: 340px;
    }

    #gallery .features .d-flex {
        justify-content: center;
    }

    #plans .background {
        padding: 4rem 1rem;
    }

    #location .map {
        height: 460px;
    }

    #register .background {
        padding: 2.5rem 2rem;
    }

}

@media (max-width: 767.98px) {

    #banner #ijm-logo {
        max-width: 90px;
    }

    #banner .banner-image {
        aspect-ratio: 4 / 5;
    }

    #banner .background {
        object-position: 30% center;
    }

    #register {
        padding: 0 0 4rem;
    }

}

@media (max-width: 575.98px) {

    h1 {
        font-size: 18px;
    }

    h2,
    h3 {
        font-size: 24px;
    }

    #banner #kalista-logo {
        width: 240px;
    }

    #overview {
        padding: 120px 0.75rem;
    }

    #neighbourhood .amenity {
        width: 120px;
        height: 120px;
    }

    #gallery {
        padding: 0 0 3rem;
    }

    #gallery .background {
        padding: 2rem 1rem 2.5rem;
    }

    #gallery .gallery-hint {
        right: 10px;
        bottom: 10px;
        font-size: 10px;
        padding: 0.35rem 0.6rem;
    }

    #gallery .caption {
        font-size: 17px;
    }

    #location .map {
        height: 400px;
    }

    #register .background {
        padding: 2.5rem 1.25rem;
    }

    #register .g-recaptcha {
        transform: scale(0.9);
        transform-origin: center;
    }

}

.contact-group {
    display: flex;
    width: 100%;
    gap: 10px;
    align-items: center;
}

.contact-group .country-code {
    flex: 0 0 35%;
    width: 35%;
}

.contact-group .contact-number {
    flex: 1;
    min-width: 0;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .contact-group .country-code {
        flex: 0 0 40%;
        width: 40%;
    }
}