/* =========================================================
   TCG Homepage — Collapsible Project Enquiry
   ========================================================= */

body.home .tcg-home-contact__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 32px auto 0;
    padding: 15px 28px;
    border: 1px solid #d69942;
    border-radius: 2px;
    background: #d69942;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

body.home .tcg-home-contact__toggle:hover,
body.home .tcg-home-contact__toggle:focus-visible {
    background: #c58935;
    border-color: #c58935;
    color: #fff;
    transform: translateY(-1px);
}

body.home .tcg-home-contact__toggle-arrow {
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    transition: transform .35s ease;
}

body.home .tcg-home-contact.is-open .tcg-home-contact__toggle-arrow {
    transform: rotate(90deg);
}

/* Form remains in the DOM but visually collapsed */
body.home .tcg-home-contact__form {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    margin-top: 0;
    transform: translateY(-8px);
    transition:
        max-height .65s cubic-bezier(.22,.61,.36,1),
        opacity .35s ease,
        transform .45s ease,
        margin-top .45s ease,
        visibility 0s linear .65s;
}

body.home .tcg-home-contact.is-open .tcg-home-contact__form {
    max-height: 1400px;
    opacity: 1;
    visibility: visible;
    margin-top: 38px;
    transform: translateY(0);
    transition:
        max-height .65s cubic-bezier(.22,.61,.36,1),
        opacity .4s ease .08s,
        transform .45s ease,
        margin-top .45s ease,
        visibility 0s;
}

/* Tighten the default collapsed presentation */
body.home .tcg-home-contact__intro {
    margin-bottom: 0;
}

body.home .tcg-home-contact__credentials {
    margin-top: 48px;
}

body.home .tcg-home-contact.is-open .tcg-home-contact__credentials {
    margin-top: 64px;
}

/* Keyboard focus */
body.home .tcg-home-contact__toggle:focus-visible {
    outline: 2px solid #202020;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    body.home .tcg-home-contact__toggle {
        margin-top: 27px;
        padding: 14px 24px;
    }

    body.home .tcg-home-contact__credentials {
        margin-top: 38px;
    }

    body.home .tcg-home-contact.is-open .tcg-home-contact__form {
        margin-top: 30px;
    }

    body.home .tcg-home-contact.is-open .tcg-home-contact__credentials {
        margin-top: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home .tcg-home-contact__form,
    body.home .tcg-home-contact__toggle,
    body.home .tcg-home-contact__toggle-arrow {
        transition: none !important;
    }
}
