/* Shared destination-portal home page */
.portal-home-hero {
    position: relative;
    min-height: min(720px, 72vh);
    display: grid;
    align-items: end;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
}

.portal-home-hero__image,
.portal-home-hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.portal-home-hero__image {
    object-fit: cover;
    z-index: -2;
}

.portal-home-hero__shade {
    background:
        linear-gradient(90deg, rgba(14, 25, 22, .88) 0%, rgba(14, 25, 22, .56) 48%, rgba(14, 25, 22, .1) 80%),
        linear-gradient(0deg, rgba(14, 25, 22, .68) 0%, transparent 58%);
    z-index: -1;
}

.portal-home-hero__content {
    padding-block: clamp(4rem, 10vw, 8rem);
}

.portal-home-hero__copy {
    max-width: 760px;
}

.portal-home-eyebrow {
    margin-bottom: .75rem;
    color: var(--portal-accent, #a96722);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.portal-home-hero .portal-home-eyebrow {
    color: var(--portal-hero-accent, #f1c77d);
}

.portal-home-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(3rem, 7vw, 6.6rem);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: .96;
    text-align: left;
    text-wrap: balance;
}

.portal-home-hero__lead {
    max-width: 680px;
    margin: 1.5rem 0 2rem;
    color: rgba(255, 255, 255, .94);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.portal-home-hero__actions,
.portal-home-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.portal-home-hero__actions .btn,
.portal-home-cta__actions .btn {
    border-radius: 999px;
    padding-inline: 1.4rem;
    font-weight: 700;
}

.portal-home {
    --portal-accent: #a55b16;
    --portal-accent-soft: #e9c98e;
    --portal-surface: var(--bs-body-bg, #fff);
    --portal-muted: var(--bs-secondary-color, #626861);
    --portal-border: var(--bs-border-color, #ddd8cf);
    --portal-ink: var(--bs-body-color, #20251f);
    color: var(--portal-ink);
}

.portal-home--pai {
    --portal-accent: #486d47;
    --portal-accent-soft: #bed0a8;
}

.portal-home--huahin {
    --portal-accent: #147a86;
    --portal-accent-soft: #acd9d8;
}

.portal-home section {
    margin-block: clamp(4rem, 8vw, 7rem);
}

.portal-home h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.45rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.portal-home-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
}

.portal-home-intro__copy > p:last-child,
.portal-home-plan__intro > p:last-child,
.portal-home-cta p:last-child {
    max-width: 760px;
    margin: 1.25rem 0 0;
    color: var(--portal-muted);
    font-size: 1.1rem;
    line-height: 1.75;
}

.portal-home-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 1.5rem;
    border: 1px solid var(--portal-border);
    border-radius: 1.25rem;
    background: var(--portal-surface);
    background: color-mix(in srgb, var(--portal-surface) 92%, var(--portal-accent-soft) 8%);
    box-shadow: 0 18px 50px rgba(42, 37, 29, .08);
}

.portal-home-facts > div {
    display: flex;
    min-width: 0;
    padding-inline: .85rem;
    flex-direction: column;
    text-align: center;
}

.portal-home-facts > div + div {
    border-left: 1px solid var(--portal-border);
}

.portal-home-facts strong {
    color: var(--portal-accent);
    font-family: "Bitter", Georgia, serif;
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    line-height: 1.15;
}

.portal-home-facts span {
    margin-top: .3rem;
    color: var(--portal-muted);
    font-size: .78rem;
    line-height: 1.3;
}

.portal-home-section__heading {
    display: flex;
    margin-bottom: 2rem;
    gap: 1.5rem;
    align-items: end;
    justify-content: space-between;
}

.portal-home-text-link {
    flex: 0 0 auto;
    padding-bottom: .35rem;
    border-bottom: 1px solid currentColor;
    color: var(--portal-accent);
    font-weight: 700;
    text-decoration: none;
}

.portal-home-feature {
    display: flex;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--portal-border);
    border-radius: 1.25rem;
    background: var(--portal-surface);
    color: var(--portal-ink);
    flex-direction: column;
    text-decoration: none;
    box-shadow: 0 16px 44px rgba(36, 31, 23, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.portal-home-feature:hover {
    color: var(--portal-ink);
    transform: translateY(-5px);
    box-shadow: 0 22px 55px rgba(36, 31, 23, .14);
}

.portal-home-feature__image-wrap {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.portal-home-feature__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.portal-home-feature:hover .portal-home-feature__image {
    transform: scale(1.035);
}

.portal-home-feature__body {
    display: flex;
    height: 100%;
    padding: 1.5rem;
    flex-direction: column;
}

.portal-home-feature__label {
    color: var(--portal-accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.portal-home-feature h3 {
    margin: .55rem 0 .75rem;
    font-size: 1.55rem;
    line-height: 1.2;
}

.portal-home-feature p {
    margin-bottom: 1.5rem;
    color: var(--portal-muted);
    line-height: 1.6;
}

.portal-home-feature__link {
    margin-top: auto;
    font-weight: 700;
}

.portal-home-plan {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 7vw, 7rem);
    align-items: start;
}

.portal-home-paths {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.portal-home-path {
    display: grid;
    min-height: 116px;
    padding: 1.2rem;
    border: 1px solid var(--portal-border);
    border-radius: 1rem;
    background: var(--portal-surface);
    color: var(--portal-ink);
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease;
}

.portal-home-path:hover {
    border-color: var(--portal-accent);
    background: color-mix(in srgb, var(--portal-surface) 95%, var(--portal-accent-soft) 5%);
    color: var(--portal-ink);
}

.portal-home-path__icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--portal-accent) 12%, transparent);
    color: var(--portal-accent);
    font-size: 1.1rem;
    place-items: center;
}

.portal-home-path strong,
.portal-home-path small {
    display: block;
}

.portal-home-path small {
    margin-top: .3rem;
    color: var(--portal-muted);
    line-height: 1.4;
}

.portal-home-path__arrow {
    color: var(--portal-accent);
    font-size: 1.25rem;
}

.portal-home-cta {
    display: flex;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 1.5rem;
    background: var(--portal-accent-soft);
    color: #1e2725;
    gap: 2rem;
    align-items: end;
    justify-content: space-between;
}

.portal-home-cta > div:first-child {
    max-width: 800px;
}

.portal-home-cta .portal-home-eyebrow,
.portal-home-cta p:last-child {
    color: color-mix(in srgb, var(--portal-accent) 78%, #242019);
}

.portal-home-cta__actions {
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {
    .portal-home-intro,
    .portal-home-plan {
        grid-template-columns: 1fr;
    }

    .portal-home-cta {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .portal-home-hero {
        min-height: 650px;
    }

    .portal-home-hero__shade {
        background: linear-gradient(0deg, rgba(14, 25, 22, .92) 0%, rgba(14, 25, 22, .4) 88%);
    }

    .portal-home-hero__content {
        padding-block: 4rem;
    }

    .portal-home-hero__actions .btn,
    .portal-home-cta__actions .btn {
        width: 100%;
    }

    .portal-home-section__heading {
        align-items: start;
        flex-direction: column;
    }

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

@media (max-width: 479.98px) {
    .portal-home-facts {
        grid-template-columns: 1fr;
    }

    .portal-home-facts > div {
        padding-block: 1rem;
    }

    .portal-home-facts > div + div {
        border-top: 1px solid var(--portal-border);
        border-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-home-feature,
    .portal-home-feature__image {
        transition: none;
    }
}
