/*
 * Support page (redesign). Shared base, header, footer, buttons and section header
 * come from css/site.css; this file only adds the support layout, contact card and FAQ.
 */

/* ---------- Intro + contact ---------- */
.support-hero { background: var(--bg-subtle); padding-block: 32px 56px; }
.support-hero__row { display: flex; flex-direction: column; gap: 32px; }
.support-hero__copy { display: flex; flex-direction: column; gap: 16px; }
.support-hero__title {
    max-width: 560px;
    color: var(--text-primary);
    font-weight: var(--font-weight-extrabold);
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.support-hero__title em { font-style: normal; color: var(--text-brand-display); }
.support-hero__lead { max-width: 540px; color: var(--text-secondary); font-size: 17px; line-height: 1.6; }

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 28px 20px;
    border-radius: 24px;
    background: var(--bg-page);
    box-shadow: var(--shadow-float);
}
.contact-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 4px;
    border-radius: 16px;
    background: var(--bg-brand-subtle);
    color: var(--icon-brand);
}
.contact-card__icon svg { width: 28px; height: 28px; }
.contact-card__title { color: var(--text-primary); font-weight: var(--font-weight-bold); font-size: 24px; line-height: 1.25; }
.contact-card__text { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.contact-card__email {
    font-weight: var(--font-weight-bold);
    font-size: 20px;
    overflow-wrap: anywhere;
}
.contact-card__email a, .faq__answer a, .faq__more a {
    color: var(--text-brand);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color .15s ease;
}
.contact-card__email a:hover, .faq__answer a:hover, .faq__more a:hover { text-decoration-color: currentColor; }
.contact-card__actions { display: flex; flex-direction: column; gap: 10px; width: 100%; padding-top: 8px; }
.contact-card__actions .btn { width: 100%; }
.contact-card__status { min-height: 1.5em; color: var(--support-green-700); font-weight: var(--font-weight-semibold); font-size: 14px; }

@media (min-width: 768px) {
    .support-hero { padding-block: 64px 96px; }
    .support-hero__copy { gap: 20px; }
    .support-hero__title { font-size: 52px; line-height: 1.08; }
    .support-hero__lead { font-size: 19px; }
    .contact-card { padding: 40px; border-radius: 28px; max-width: 560px; }
    .contact-card__actions { flex-direction: row; flex-wrap: wrap; width: auto; }
    .contact-card__actions .btn { width: auto; }
}
@media (min-width: 1024px) {
    .support-hero { padding-block: 80px 112px; }
    .support-hero__row { flex-direction: row; align-items: center; justify-content: space-between; gap: 80px; }
    .support-hero__copy { flex: 1 1 0; min-width: 0; }
    .support-hero__title { font-size: 60px; }
    .support-hero__lead { font-size: 20px; }
    .contact-card { flex: 0 0 480px; }
}

/* ---------- FAQ ---------- */
.faq__inner { display: flex; flex-direction: column; gap: 28px; max-width: calc(840px + 2 * var(--gutter)); }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
    border: 1px solid var(--border-default);
    border-radius: 20px;
    background: var(--bg-page);
    transition: border-color .2s ease, background-color .2s ease;
}
.faq__item[open] { border-color: var(--border-brand); background: var(--bg-subtle); }
.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    font-size: 17px;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
/* Plus sign that turns into a minus when open. */
.faq__question::after {
    content: "";
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    background:
        linear-gradient(var(--icon-brand), var(--icon-brand)) center / 12px 2px no-repeat,
        linear-gradient(var(--icon-brand), var(--icon-brand)) center / 2px 12px no-repeat,
        var(--bg-brand-subtle);
    transition: rotate .25s ease;
}
.faq__item[open] .faq__question::after {
    background:
        linear-gradient(var(--icon-brand), var(--icon-brand)) center / 12px 2px no-repeat,
        var(--bg-brand-subtle);
    rotate: 180deg;
}
.faq__answer { padding: 0 20px 20px; }
.faq__answer p { color: var(--text-secondary); font-size: 15px; line-height: 1.65; max-width: 680px; }
.faq__more { color: var(--text-secondary); font-size: 15px; }
.faq__more a { font-weight: var(--font-weight-semibold); }

@media (min-width: 768px) {
    .faq__inner { gap: 40px; }
    .faq__question { padding: 24px 28px; font-size: 18px; }
    .faq__answer { padding: 0 28px 24px; }
    .faq__answer p { font-size: 16px; }
    .faq__more { font-size: 16px; }
}

/* ---------- Entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
    .support-hero__copy { animation: support-rise .7s cubic-bezier(.22, 1, .36, 1) both; }
    .contact-card { animation: support-rise .8s cubic-bezier(.22, 1, .36, 1) .12s both; }
    @keyframes support-rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
}
