@import url("./all.css");

/* ===== INDEX PAGE - Modern Typography & Layout ===== */
:root {
    --index-section-gap: clamp(3rem, 6vw, 6rem);
    --index-heading-lg: clamp(1.75rem, 3.5vw, 2.5rem);
    --index-heading-md: clamp(1.25rem, 2.5vw, 1.5rem);
    --index-body: clamp(0.875rem, 1.5vw, 1rem);
    --index-lead: clamp(0.9375rem, 1.75vw, 1.125rem);
    --index-muted: #64748b;
    --index-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --index-shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.06);
    --index-radius: 12px;
    --index-radius-lg: 16px;
}

body {
    background-color: #fff;
}

/* ----- Hero ----- */
.hero_home {
    width: 100%;
    height: 70vh;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}

.hero_home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero_home::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

.content_hero {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    box-sizing: border-box;
    z-index: 1;
}

.content_hero h1 {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0;
    max-width: 20ch;
}

.desc_hero {
    font-size: var(--index-lead);
    font-weight: 400;
    line-height: 1.6;
    margin: 1rem 0 1.5rem;
    opacity: 0.95;
    max-width: 36ch;
}

.cek_paket_link {
    color: #fff;
    font-size: var(--index-body);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.cek_paket_link:hover {
    text-decoration: underline;
}

/* ----- Buttons ----- */
.btn_home {
    background-color: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--index-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--index-body);
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s, transform 0.15s;
}

.btn_home:hover {
    background-color: #7a6700;
}

.btn_home:active {
    transform: scale(0.98);
}

.btn_home i {
    font-size: 1.25rem;
}

.text_btn_home {
    font-size: var(--index-body);
    font-weight: 600;
}

/* ----- Sections Layout ----- */
.section_image_l_text_r,
.section_text_r_image_l {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    margin-top: var(--index-section-gap);
}

.sit_content_img {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
    box-sizing: border-box;
}

.sit_content_txt {
    flex: 1;
}

.img_sit {
    width: 80%;
    max-width: 420px;
}

.app_store {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app_store a {
    display: block;
}

.app_store img {
    height: 42px;
}

/* ----- Section Text Typography ----- */
.sit_content_txt > p:first-child,
.sit_content_txt .section-label {
    font-size: var(--index-body);
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.5rem;
}

.sit_content_txt p {
    font-size: var(--index-body);
    color: var(--index-muted);
    line-height: 1.65;
    margin: 0 0 1rem;
}

.sit_content_txt h1 {
    font-size: var(--index-heading-md);
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.sit_content_txt h1 + p {
    margin-bottom: 1.25rem;
}

/* ----- Brand / Centered Sections ----- */
.brand {
    width: 100%;
    margin-top: var(--index-section-gap);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand h1 {
    font-size: var(--index-heading-lg);
    font-weight: 600;
    color: var(--black);
    line-height: 1.3;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

/* Testimonial block in grey section */
.testimonial-block .testimonial-quote,
.testimonial-block .testimonial-meta {
    color: var(--semi-black);
}

.testimonial-block .testimonial-meta {
    font-size: var(--index-body);
    margin-bottom: 1rem;
}

.brand p {
    font-size: var(--index-body);
    color: var(--index-muted);
    line-height: 1.65;
    text-align: center;
    margin: 0 0 1.5rem;
    max-width: 52ch;
}

.brand_img {
    width: 80%;
    max-width: 560px;
}

/* ----- Background Sections ----- */
.bg_grey {
    width: 100%;
    background-color: #f8f9fa;
    padding: var(--index-section-gap) 0;
    margin-top: var(--index-section-gap);
}

.bg_secondary {
    background-color: var(--secondary);
}

.bg_secondary .sit_content_txt h1,
.bg_secondary .sit_content_txt p {
    color: #fff;
}

.bg_secondary .sit_content_txt p {
    opacity: 0.9;
}

/* ----- Hotel Images ----- */
.img_brand_2 {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    margin-bottom: 1.5rem;
}

.img_brand_2 img {
    width: 100%;
    border-radius: var(--index-radius);
}

/* ----- Blog Grid ----- */
.grid_blog {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.content_blog {
    background: #fff;
    border-radius: var(--index-radius-lg);
    box-shadow: var(--index-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.content_blog:hover {
    box-shadow: var(--index-shadow-lg);
    transform: translateY(-2px);
}

.content_blog img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.content_blog_text {
    padding: 1.25rem;
    box-sizing: border-box;
}

.titlecontent_blog_text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.content_blog_text p {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--black);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 0.75rem;
}

.content_blog_text h5 {
    padding: 0.25rem 0.75rem;
    color: #fff;
    background-color: var(--primary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    display: inline-block;
}

.content_blog a {
    text-decoration: none;
    color: inherit;
}

/* ----- Testimonials / Rating ----- */
.grid_rating {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.content_rating {
    background: #fff;
    border-radius: var(--index-radius-lg);
    box-shadow: var(--index-shadow);
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.content_rating:hover {
    box-shadow: var(--index-shadow-lg);
}

.cr_fp {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.content_rating h5 {
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.cr_star {
    height: 18px;
}

.content_rating p {
    margin: 0;
    font-size: var(--index-body);
    color: var(--index-muted);
    line-height: 1.6;
}

/* ----- Link ----- */
.link-primary {
    color: var(--primary);
    font-weight: 500;
}

.link-primary:hover {
    text-decoration: underline;
}

/* ----- Spacer ----- */
.section-spacer {
    margin-bottom: 6rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero_home {
        height: calc(100vh - 140px);
        min-height: 380px;
    }

    .content_hero {
        padding: 0 1.25rem;
    }

    .content_hero h1 {
        font-size: clamp(1.5rem, 5vw, 1.75rem);
    }

    .section_image_l_text_r {
        flex-direction: column;
        gap: 2.5rem;
        margin-top: 3rem;
    }

    .section_text_r_image_l {
        flex-direction: column-reverse;
        gap: 2.5rem;
        margin-top: 3rem;
    }

    .sit_content_txt {
        padding: 0 1rem;
    }

    .img_sit {
        width: 90%;
    }

    .brand {
        padding: 0 1rem;
        margin-top: 3rem;
    }

    .brand_img {
        width: 100%;
    }

    .grid_blog {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .content_blog img {
        height: 140px;
    }

    .grid_rating {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .img_brand_2 {
        gap: 1rem;
    }
}

@media (max-width: 500px) {
    .grid_blog {
        grid-template-columns: 1fr;
    }
}
