/**
 * Qiyali Ultra — Contact Page
 *
 * Loaded only on:
 * /contact/
 */


/* =========================================================
   CONTACT PAGE BASE
   ========================================================= */

.contact-page {
    --contact-border: rgba(128, 128, 128, 0.25);
    --contact-border-subtle: rgba(128, 128, 128, 0.16);

    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 60px 0 100px;
    box-sizing: border-box;}

.contact-page__container {
    width: min(1200px, calc(100% - 48px));
    max-width: 1200px;
    margin-inline: auto;
    box-sizing: border-box;
}

.contact-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;

    width: 100%;
    max-width: 100%;

    margin-top: 40px;
    padding-top: 60px;

    border-top: 1px solid var(--contact-border);

    box-sizing: border-box;
}
/* =========================================================
   HERO
   ========================================================= */

.contact-hero {
    width: 100%;
    max-width: 1000px;
    margin: 0 0 60px;
    padding: 0;
}

.contact-hero__eyebrow {
    margin: 0 0 16px;
    color: var(--q-accent);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-hero__title {
    margin: 0;
    color: var(--q-text);
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.055em;
    word-break: break-word;
}

.contact-hero__description {
    max-width: 680px;
    margin: 28px 0 0;
    color: var(--q-text-muted);
    font-size: 19px;
    line-height: 1.7;
}


/* =========================================================
   MAIN CONTACT (50 / 50)
   ========================================================= */

.contact-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    width: 100%;
    margin-top: 40px;
    padding-top: 60px;
    border-top: 1px solid var(--contact-border);
    box-sizing: border-box;
}


/* =========================================================
   LEFT COLUMN
   ========================================================= */

.contact-main__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0;
    box-sizing: border-box;
}

.contact-section__eyebrow {
    margin: 0 0 18px;
    color: var(--q-accent);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-main__info h2 {
    margin: 0;
    color: var(--q-text);
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.contact-main__description {
    max-width: 560px;
    margin: 24px 0 0;
    color: var(--q-text-muted);
    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   SOCIAL LINKS
   ========================================================= */

.contact-social {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    margin-top: 48px;
    border-top: 1px solid var(--contact-border);
    box-sizing: border-box;
}

.contact-social__link {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 68px;
    padding: 0;
    color: var(--q-text);
    border-bottom: 1px solid var(--contact-border);
    text-decoration: none;
    box-sizing: border-box;
    transition: color 180ms ease, padding-left 180ms ease, border-color 180ms ease;
}

.contact-social__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--q-text);
    transition: color 180ms ease, transform 180ms ease;
}

.contact-social__icon svg {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.contact-social__name {
    color: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.contact-social__arrow {
    color: var(--q-text-muted);
    font-size: 20px;
    line-height: 1;
    transition: color 180ms ease, transform 180ms ease;
}

.contact-social__link:hover {
    padding-left: 8px;
    color: var(--q-accent);
}

.contact-social__link:hover .contact-social__icon {
    color: var(--q-accent);
    transform: translateX(2px);
}

.contact-social__link:hover .contact-social__arrow {
    color: var(--q-accent);
    transform: translateX(4px);
}


/* =========================================================
   RIGHT COLUMN (VISUAL & IMAGE)
   ========================================================= */

.contact-main__visual {
    min-width: 0;
    padding: 0;
    box-sizing: border-box;
}

.contact-main__image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 480px;
    overflow: hidden;
    background: var(--q-surface-alt);
    box-sizing: border-box;
}

.contact-main__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%);
    transition: transform 500ms ease, filter 500ms ease;
}

.contact-main__image:hover img {
    transform: scale(1.025);
    filter: grayscale(100%);
}


/* =========================================================
   TABLET (RESPONSIVE)
   ========================================================= */

@media (max-width: 900px) {
    .contact-page {
        padding: 40px 0 80px;
    }

    .contact-hero {
        margin-bottom: 40px;
    }

    .contact-main {
        grid-template-columns: 1fr;
        gap: 48px;
        margin-top: 30px;
        padding-top: 40px;
    }

    .contact-main__image,
    .contact-main__image img {
        min-height: 420px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
    .contact-page {
        padding: 32px 0 60px;
    }

    .contact-hero__title {
        font-size: clamp(38px, 12vw, 56px);
    }

    .contact-hero__description {
        margin-top: 20px;
        font-size: 16px;
        line-height: 1.65;
    }

    .contact-main__info h2 {
        font-size: 32px;
    }

    .contact-main__description {
        margin-top: 18px;
        font-size: 15px;
        line-height: 1.7;
    }

    .contact-social {
        margin-top: 36px;
    }

    .contact-social__link {
        min-height: 60px;
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .contact-social__name {
        font-size: 14px;
    }

    .contact-main__image,
    .contact-main__image img {
        min-height: 360px;
    }
}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 380px) {
    .contact-hero__title {
        font-size: 34px;
    }

    .contact-main__info h2 {
        font-size: 28px;
    }

    .contact-main__image,
    .contact-main__image img {
        min-height: 300px;
    }
}


/* =========================================================
   ACCESSIBILITY & REDUCED MOTION
   ========================================================= */

.contact-social__link:focus-visible {
    outline: 2px solid var(--q-accent);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .contact-social__link,
    .contact-social__icon,
    .contact-social__arrow,
    .contact-main__image img {
        transition: none;
    }
}