/* =========================================================
   HOMEPAGE
========================================================= */

.home-main {
    padding: 0;
}


/* =========================================================
   GLOBAL HOME SECTION
========================================================= */

.home-section {
    padding: 80px 0;
}

.home-section__header {
    max-width: 700px;

    margin: 0 auto 42px;

    text-align: center;
}

.home-section__header h2 {
    margin-bottom: 14px;

    font-size: clamp(28px, 4vw, 40px);
}

.home-section__header p {
    margin-bottom: 0;
}

.home-hero__eyebrow,
.home-cta__eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--as-red);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =========================================================
   HERO
========================================================= */

.home-hero {
    padding: 76px 0;

    background: var(--as-gray-lighter);
}

.home-hero__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: center;

    gap: 60px;
}

.home-hero__content {
    max-width: 600px;
}

.home-hero__title {
    margin-bottom: 20px;

    font-size: clamp(38px, 5vw, 62px);

    letter-spacing: -0.03em;
}

.home-hero__description {
    max-width: 540px;

    margin-bottom: 28px;

    font-size: 18px;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;
}

.home-hero__visual img,
.home-image-placeholder {
    width: 100%;

    aspect-ratio: 4 / 3;

    border-radius: var(--as-radius-lg);
}

.home-hero__visual img {
    object-fit: cover;
}


/* =========================================================
   IMAGE PLACEHOLDER
========================================================= */

.home-image-placeholder {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 14px;

    background: var(--as-gray-light);

    color: var(--as-gray-500);

    border: 1px dashed var(--as-gray-300);
}

.home-image-placeholder svg {
    width: 70px;
    height: 70px;
}


/* =========================================================
   SERVICE
========================================================= */

.home-services {
    background: var(--as-gray-soft);
}

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}

.service-card {
    padding: 28px;

    background: var(--as-gray-lighter);

    border: 1px solid var(--as-gray-light);
    border-radius: var(--as-radius-md);

    transition:
        transform var(--as-transition),
        border-color var(--as-transition);
}

.service-card:hover {
    transform: translateY(-4px);

    border-color: var(--as-red);
}

.service-card__icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    background: var(--as-red);

    color: var(--as-gray-soft);

    border-radius: var(--as-radius-md);
}

.service-card__icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    margin-bottom: 12px;

    font-size: 20px;
}

.service-card p {
    margin-bottom: 18px;

    font-size: 14px;
}


/* =========================================================
   ADVANTAGES
========================================================= */

.home-advantages {
    padding: 0 0 80px;

    background: var(--as-gray-soft);
}

.advantages-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}

.advantage-card {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 20px;

    background: var(--as-dark);
    color: var(--as-gray-soft);

    border-radius: var(--as-radius-md);
}

.advantage-card__icon {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--as-red);

    border-radius: 50%;
}

.advantage-card__icon svg {
    width: 18px;
    height: 18px;
}


/* =========================================================
   ABOUT
========================================================= */

.home-about {
    background: var(--as-gray-lighter);
}

.home-about__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    align-items: center;

    gap: 64px;
}

.home-about__content h2 {
    margin-bottom: 20px;

    font-size: clamp(28px, 4vw, 42px);
}

.home-about__editor-content {
    margin-bottom: 22px;
}


/* =========================================================
   LOCATION
========================================================= */

.home-location {
    background: var(--as-gray-soft);
}

.home-location__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(0, 1.15fr);

    align-items: center;

    gap: 54px;
}

.home-location__content h2 {
    margin-bottom: 16px;

    font-size: clamp(28px, 4vw, 40px);
}

.home-location__content p {
    margin-bottom: 24px;
}

.home-map-placeholder {
    min-height: 340px;

    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;

    background: var(--as-gray-blue);

    border: 1px solid var(--as-gray-light);
    border-radius: var(--as-radius-lg);

    color: var(--as-gray-700);
}

.home-map-placeholder svg {
    width: 54px;
    height: 54px;

    color: var(--as-red);
}

.home-map-placeholder strong {
    color: var(--as-dark);

    font-size: 20px;
}

.home-map-placeholder span {
    font-size: 13px;
}

.home-map-placeholder iframe {
    display: block;

    width: 100%;
    min-height: 340px;

    border: 0;
    border-radius: var(--as-radius-lg);
}


/* =========================================================
   BLOG
========================================================= */

.home-blog {
    background: var(--as-gray-lighter);
}

.blog-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}

.blog-card {
    overflow: hidden;

    background: var(--as-gray-soft);

    border: 1px solid var(--as-gray-light);
    border-radius: var(--as-radius-md);
}

.blog-card__image {
    display: block;
}

.blog-card__image img,
.blog-image-placeholder {
    width: 100%;

    aspect-ratio: 16 / 10;
}

.blog-card__image img {
    object-fit: cover;
}

.blog-image-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--as-gray-light);

    color: var(--as-gray-500);
}

.blog-card__content {
    padding: 22px;
}

.blog-card time {
    display: block;

    margin-bottom: 10px;

    color: var(--as-gray-500);

    font-size: 12px;
}

.blog-card h3 {
    margin-bottom: 12px;

    font-size: 19px;
}

.blog-card h3 a {
    color: var(--as-dark);
}

.blog-card h3 a:hover {
    color: var(--as-red);
}

.blog-card p {
    font-size: 14px;
}


/* =========================================================
   CTA
========================================================= */

.home-cta {
    padding: 70px 0;

    background: var(--as-gray-soft);
}

.home-cta__box {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 46px;

    background: var(--as-red);
    color: var(--as-gray-soft);

    border-radius: var(--as-radius-lg);
}

.home-cta__box h2 {
    margin-bottom: 10px;

    color: var(--as-gray-soft);

    font-size: clamp(26px, 4vw, 38px);
}

.home-cta__box p {
    margin: 0;
}

.home-cta__eyebrow {
    color: var(--as-gray-soft);
}


/* =========================================================
   EMPTY STATE
========================================================= */

.home-empty-state {
    padding: 30px;

    text-align: center;

    border: 1px dashed var(--as-gray-300);
    border-radius: var(--as-radius-md);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .home-section {
        padding: 65px 0;
    }

    .home-hero__grid,
    .home-about__grid,
    .home-location__grid {
        grid-template-columns: 1fr;

        gap: 38px;
    }

    .home-hero {
        padding: 60px 0;
    }

    .service-grid,
    .advantages-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .blog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .home-section {
        padding: 52px 0;
    }

    .home-section__header {
        margin-bottom: 30px;

        text-align: left;
    }

    .home-hero {
        padding: 48px 0;
    }

    .home-hero__title {
        font-size: 38px;
    }

    .home-hero__description {
        font-size: 16px;
    }

    .service-grid,
    .advantages-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .home-advantages {
        padding-bottom: 52px;
    }

    .home-map-placeholder {
        min-height: 260px;
    }

    .home-cta {
        padding: 52px 0;
    }

    .home-cta__box {
        flex-direction: column;
        align-items: flex-start;

        padding: 30px;
    }

    .home-map-placeholder iframe {
        min-height: 260px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .home-hero__actions {
        flex-direction: column;
    }

    .home-hero__actions .as-button {
        width: 100%;
    }

}

/* =========================================================
   HOMEPAGE PROMO
========================================================= */

.home-promo {
    padding-top: 54px;
    padding-bottom: 54px;

    background: var(--as-gray-soft);
}

.home-promo__box {
    position: relative;

    display: grid;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(280px, 0.9fr);

    align-items: center;

    overflow: hidden;

    min-height: 360px;

    background: var(--as-red);
    color: var(--as-gray-soft);

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

    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.08);
}

.home-promo__box::before {
    content: "";

    position: absolute;
    top: -110px;
    left: -90px;

    width: 260px;
    height: 260px;

    border: 38px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

    pointer-events: none;
}

.home-promo__content {
    position: relative;
    z-index: 2;

    padding: 52px;
}

.home-promo__eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 12px;

    color: var(--as-gray-soft);

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.home-promo__eyebrow::before {
    content: "";

    width: 18px;
    height: 2px;

    background: currentColor;
}

.home-promo__content h2 {
    max-width: 620px;

    margin-bottom: 14px;

    color: var(--as-gray-soft);

    font-size: clamp(30px, 4vw, 46px);
}

.home-promo__content p {
    max-width: 620px;

    margin-bottom: 24px;

    color: var(--as-gray-soft);
}

.home-promo__visual {
    align-self: stretch;

    min-height: 360px;
}

.home-promo__visual img,
.home-promo__placeholder {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 360px;
}

.home-promo__visual img {
    object-fit: cover;
}

.home-promo__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;

    background: var(--as-red-dark);
    color: rgba(255, 255, 255, 0.78);
}

.home-promo__placeholder svg {
    width: 76px;
    height: 76px;
}

.home-promo__placeholder strong {
    color: var(--as-gray-soft);

    font-size: 20px;
}


@media (max-width: 991px) {

    .home-promo__box {
        grid-template-columns: 1fr;
    }

    .home-promo__visual {
        min-height: 300px;
    }

    .home-promo__visual img,
    .home-promo__placeholder {
        min-height: 300px;
    }

}


@media (max-width: 767px) {

    .home-promo {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .home-promo__content {
        padding: 30px;
    }

    .home-promo__visual,
    .home-promo__visual img,
    .home-promo__placeholder {
        min-height: 230px;
    }

    .home-promo__content .as-button {
        width: 100%;
    }

}


/* Homepage About image from Media Library / Tentang Kami Featured Image */
.home-about__visual img {
    display: block;

    width: 100%;
    aspect-ratio: 4 / 3;

    object-fit: cover;

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

/* =========================================================
   HOMEPAGE MANAGER REFINEMENTS
========================================================= */

.home-services__more {
    display: flex;
    justify-content: center;

    margin-top: 30px;
}

.home-advantages__header {
    margin-bottom: 34px;
}

.advantage-card {
    align-items: flex-start;
}

.advantage-card__content {
    min-width: 0;
}

.advantage-card__content strong {
    display: block;

    margin-bottom: 7px;

    color: var(--as-gray-soft);

    font-size: 15px;
    line-height: 1.4;
}

.advantage-card__content p {
    margin: 0;

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

    font-size: 12px;
    line-height: 1.6;
}

.home-location__description {
    max-width: 560px;

    margin-bottom: 16px;
}

.home-location__address {
    display: block;

    margin: 0 0 24px;

    color: var(--as-gray-700);

    font-style: normal;
    line-height: 1.7;
}

@media (max-width: 767px) {

    .home-services__more {
        justify-content: stretch;
    }

    .home-services__more .as-button {
        width: 100%;
    }

    .advantage-card {
        padding: 22px;
    }

}
