/* หน้าแรก — Contact section หลัง Blog (mockup: dark overlay + industrial bg) */

.home-contact {
    --home-contact-navy: #071428;
    --home-contact-navy-mid: #0c2340;
    --home-contact-accent: #00c8ff;
    --home-contact-accent-deep: #0078c8;
    --home-contact-btn-blue: #0099ff;
    --home-contact-btn-blue-mid: #0077ee;
    --home-contact-btn-blue-dark: #0055cc;
    --home-contact-btn-border: rgba(0, 180, 255, 0.55);
    --home-contact-glass: rgba(8, 28, 52, 0.72);
    --home-contact-border: rgba(255, 255, 255, 0.14);
    position: relative;
    overflow-x: clip;
}

.home-contact [class^="ri-"],
.home-contact [class*=" ri-"] {
    font-family: "remixicon" !important;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}

.home-contact__stage {
    position: relative;
    background-color: var(--home-contact-navy);
    overflow: hidden;
}

.home-contact__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: var(--home-contact-navy);
    background-image: var(--home-contact-bg-image, none);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center right;
}

.home-contact__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(4, 16, 34, 0.96) 0%,
        rgba(6, 22, 44, 0.92) 28%,
        rgba(8, 28, 52, 0.78) 46%,
        rgba(10, 32, 58, 0.45) 62%,
        rgba(12, 36, 64, 0.15) 78%,
        transparent 92%
    );
}

.home-contact__stage > .container.custom {
    position: relative;
    z-index: 2;
}

.home-contact__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: clamp(14rem, 27.5vw, 20rem);
    padding-block: clamp(1.85rem, 3.05vw, 2.55rem);
    padding-inline: 0;
}

.home-contact__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.8rem, 1.55vw, 1.12rem);
    width: 100%;
    max-width: min(100%, 44rem);
}

.home-contact .sec-title.home-contact__header {
    margin: 0;
    max-width: 100%;
}

.home-contact .sec-title .sub-text.home-contact__kicker {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: var(--home-contact-accent-deep);
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-contact .sec-title .title.title2.home-contact__heading {
    position: relative;
    margin: 0 0 0.7rem;
    padding-top: 0;
    padding-bottom: 0.85rem;
    color: #ffffff;
    font-size: clamp(34px, 2.85vw, 44px);
    line-height: 1.26;
}

.home-contact .sec-title .title.title2.home-contact__heading::after {
    display: none;
}

.home-contact .sec-title .title.title2.home-contact__heading .home-contact__title-line {
    display: block;
    font-style: normal;
    color: #ffffff;
}

.home-contact .sec-title .title.title2.home-contact__heading .home-contact__title-line--accent {
    display: inline;
    font-style: normal;
    color: var(--home-contact-accent-deep);
}

.home-contact .sec-title .desc.home-contact__lead {
    max-width: 36rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
}

.home-contact__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.6rem 0.85rem;
}

.home-contact__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0 1.6rem 0 1.45rem;
    border-radius: 999px;
    font-size: 20px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-contact__btn i {
    font-size: 1.2rem;
}

.home-contact__btn-arrow {
    font-size: 1.1rem;
    opacity: 0.9;
}

.home-contact__btn--primary {
    background: linear-gradient(
        135deg,
        var(--home-contact-btn-blue) 0%,
        var(--home-contact-btn-blue-mid) 48%,
        var(--home-contact-btn-blue-dark) 100%
    );
    color: #ffffff;
    border: 1px solid rgba(120, 210, 255, 0.2);
}

.home-contact__btn--primary:hover,
.home-contact__btn--primary:focus-visible {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #1aa3ff 0%,
        #0088ff 48%,
        #0066dd 100%
    );
}

.home-contact__btn--secondary {
    background: rgba(4, 18, 40, 0.42);
    color: #ffffff;
    border: 1.5px solid var(--home-contact-btn-border);
}

.home-contact__btn--secondary:hover,
.home-contact__btn--secondary:focus-visible {
    color: #ffffff;
    border-color: rgba(0, 200, 255, 0.75);
    background: rgba(0, 80, 140, 0.22);
}

.home-contact__channels {
    width: 100%;
    max-width: 42rem;
}

.home-contact__channels-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.home-contact__channels-divider::before,
.home-contact__channels-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.home-contact__channels-divider span {
    padding: 0 1rem;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.62);
    font-size: 15px;
}

.home-contact__channels-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 2rem;
}

/* เส้นแบ่งกลาง — เมื่อมี 2 ช่องทาง */
.home-contact__channels-grid:has(> :nth-child(2):last-child)::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.22) 16%,
        rgba(255, 255, 255, 0.22) 84%,
        transparent 100%
    );
    pointer-events: none;
}

.home-contact__channel {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.home-contact__channel--link:hover .home-contact__channel-value,
.home-contact__channel--link:focus-visible .home-contact__channel-value {
    color: var(--home-contact-accent);
}

.home-contact__channel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 3.85rem;
    height: 3.85rem;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(145deg, #22a8ff 0%, #0088ee 46%, #0062c4 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 8px 18px rgba(0, 88, 180, 0.38),
        0 2px 5px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -3px 6px rgba(0, 45, 110, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-contact__channel-icon i {
    font-size: 1.75rem;
    filter: drop-shadow(0 1px 2px rgba(0, 35, 80, 0.35));
}

.home-contact__channel-icon--line {
    background: linear-gradient(145deg, #28e028 0%, #00b900 48%, #008a00 100%);
    box-shadow:
        0 8px 18px rgba(0, 140, 0, 0.34),
        0 2px 5px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -3px 6px rgba(0, 70, 0, 0.28);
}

.home-contact__channel--link:hover .home-contact__channel-icon,
.home-contact__channel--link:focus-visible .home-contact__channel-icon {
    transform: translateY(-2px);
}

.home-contact__channel--link:hover .home-contact__channel-icon:not(.home-contact__channel-icon--line),
.home-contact__channel--link:focus-visible .home-contact__channel-icon:not(.home-contact__channel-icon--line) {
    box-shadow:
        0 10px 22px rgba(0, 100, 200, 0.45),
        0 3px 6px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        inset 0 -3px 6px rgba(0, 45, 110, 0.28);
}

.home-contact__channel--link:hover .home-contact__channel-icon--line,
.home-contact__channel--link:focus-visible .home-contact__channel-icon--line {
    box-shadow:
        0 10px 22px rgba(0, 150, 0, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 -3px 6px rgba(0, 70, 0, 0.28);
}

.home-contact__channel-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.home-contact__channel-label {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-size: 18px;
}

.home-contact__channel-value {
    display: block;
    color: #ffffff;
    font-size: 24px;
    transition: color 0.2s ease;
}

.home-contact__trust {
    position: relative;
    align-self: stretch;
    width: 100%;
    margin-top: clamp(1.2rem, 2.35vw, 1.9rem);
    padding-top: clamp(0.85rem, 1.45vw, 1.05rem);
    border: none;
    border-radius: 0;
    background: transparent;
}

.home-contact__trust::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.22) 14%,
        rgba(255, 255, 255, 0.22) 86%,
        transparent 100%
    );
    pointer-events: none;
}

.home-contact__trust-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.7rem, 1.8vw, 1.15rem);
    width: 100%;
}

.home-contact__trust-line {
    flex: 1 1 0;
    min-width: clamp(3rem, 8vw, 5.25rem);
    max-width: clamp(5.25rem, 14vw, 9.5rem);
    height: 1px;
}

.home-contact__trust-line:first-of-type {
    background: linear-gradient(90deg, transparent 0%, rgba(0, 200, 255, 0.65) 100%);
}

.home-contact__trust-line:last-of-type {
    background: linear-gradient(90deg, rgba(0, 200, 255, 0.65) 0%, transparent 100%);
}

.home-contact__trust-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    flex: 0 1 auto;
    min-width: 0;
}

.home-contact__trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background: transparent;
    color: var(--home-contact-accent);
}

.home-contact__trust-icon i {
    font-size: 1.75rem;
}

.home-contact__trust-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    font-size: 20px;
    line-height: 1.35;
}

@media (max-width: 767.98px) {
    .home-contact__inner {
        min-height: auto;
        padding-block: clamp(1.6rem, 4.75vw, 2.2rem);
        padding-inline: 0;
    }

    .home-contact__channels-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .home-contact__channels-grid:has(> :nth-child(2):last-child)::before {
        display: none;
    }

    .home-contact__channels-grid:has(> :nth-child(2):last-child) > :first-child {
        padding-bottom: 0.85rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .home-contact__actions {
        width: 100%;
    }

    .home-contact__btn {
        width: 100%;
        min-height: 44px;
        padding-left: 1.35rem;
        padding-right: 1.35rem;
        font-size: 18px;
    }

    .home-contact__channel-icon {
        width: 3.5rem;
        height: 3.5rem;
    }

    .home-contact__channel-icon i {
        font-size: 1.65rem;
    }

    .home-contact__channel-label {
        font-size: 16px;
    }

    .home-contact__channel-value {
        font-size: 22px;
    }

    .home-contact__overlay {
        background: linear-gradient(
            180deg,
            rgba(4, 16, 34, 0.94) 0%,
            rgba(6, 22, 44, 0.88) 55%,
            rgba(8, 28, 52, 0.72) 100%
        );
    }

    .home-contact__bg {
        background-position: center center;
    }
}

@media (max-width: 399.98px) {
    .home-contact__trust {
        padding-top: clamp(0.75rem, 2.5vw, 0.95rem);
    }

    .home-contact__trust-text {
        font-size: 18px;
    }

    .home-contact__trust-line {
        min-width: 2rem;
        max-width: 4rem;
    }
}
