/* ═══════════════════════════════════════════════════════════
   HUOLTO MERKKI – Lisätyylit merkkikohtaisille sivuille
   Pääosa tyyleistä tulee huolto-landari.css:stä
   (body saa myös huolto-landari-body -luokan).
═══════════════════════════════════════════════════════════ */

/* ── Yleiset viat -osio ── */
.hlm-issues__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hlm-issue-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--hl-radius, 12px);
    padding: 1.25rem 1.5rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .5s, transform .5s;
}

.hlm-issue-card.hl-visible {
    opacity: 1;
    transform: translateY(0);
}

.hlm-issue-card__num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--hl-primary, #4f46e5);
    color: #fff;
    font-family: var(--hl-font-head);
    font-weight: 700;
    font-size: 0.85rem;
}

.hlm-issue-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--hl-muted-light, #cbd5e1);
}

.hlm-issues__cta {
    text-align: center;
    margin-top: 2rem;
}

.hlm-issues__cta .hl-btn {
    margin: 0.25rem;
}

/* ── Ghost light button (for dark bg) ── */
.hl-btn--ghost-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--hl-radius, 12px);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.hl-btn--ghost-light,
.hl-btn--ghost-light:visited,
.hl-btn--ghost-light:link {
    color: #fff !important;
}

.hl-btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff !important;
}

/* ── FAQ button – focus fix ── */
.hl-faq-item__question:focus,
.hl-faq-item__question:focus-visible,
.hl-faq-item__question:active {
    outline: none;
    box-shadow: none;
    background: var(--hl-gray-50);
    color: var(--hl-text);
}

.hl-faq-item--open .hl-faq-item__question:focus,
.hl-faq-item--open .hl-faq-item__question:focus-visible,
.hl-faq-item--open .hl-faq-item__question:active {
    background: var(--hl-gray-50);
    color: var(--hl-text);
}

/* ── Entity-osion linkit ── */
.hl-entity-inner a {
    color: var(--hl-primary, #4f46e5);
    text-decoration: none;
    font-weight: 500;
}
.hl-entity-inner a:hover {
    text-decoration: underline;
}

/* ── Lomake: error/success/spinner (reuse from kaupunki) ── */
.hl-form__error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 1rem 1.25rem;
    border-radius: var(--hl-radius);
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
}

.hu-btn--loading .hu-btn__label { opacity: 0; }
.hu-btn--loading .hu-btn__spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hlmSpin 0.6s linear infinite;
    position: absolute;
}
.hu-btn__spinner { display: none; }
@keyframes hlmSpin { to { transform: rotate(360deg); } }

.hu-field--error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1) !important;
}

/* ── Mallikohtaiset palvelut -osio ── */
.hlm-models__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hlm-model-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--hl-radius, 12px);
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s, background 0.2s;
}

.hlm-model-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.hlm-model-card__name {
    font-family: var(--hl-font-head, sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
}

.hlm-model-card__services {
    font-size: 0.82rem;
    color: var(--hl-primary, #818cf8);
    margin: 0 0 0.4rem;
    font-weight: 500;
}

.hlm-model-card__problems {
    font-size: 0.82rem;
    color: var(--hl-muted-light, #94a3b8);
    margin: 0 0 0.6rem;
    line-height: 1.5;
}

.hlm-model-card__link,
.hlm-model-card__link:visited,
.hlm-model-card__link:link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #818cf8 !important;
    text-decoration: none;
    transition: color 0.2s;
}

.hlm-model-card__link:hover {
    color: #fff !important;
}

/* ── English entity section ── */
.hlm-en-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hl-gray-200, #e2e8f0);
}

.hlm-en-section__title {
    font-family: var(--hl-font-head, sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hl-text, #1e293b);
    margin: 0 0 0.75rem;
}

.hlm-en-section p {
    font-size: 0.88rem;
    color: var(--hl-muted, #64748b);
    line-height: 1.7;
    margin: 0 0 0.75rem;
}

.hlm-en-section__models {
    font-size: 0.82rem !important;
    color: var(--hl-muted, #94a3b8) !important;
}

/* ── Verkkokauppalinkit renkaat/varaosat ── */
.hl-price-table__shop-links {
    margin-top: 0.75rem;
    font-size: 0.88rem;
    color: var(--hl-muted, #64748b);
}

.hl-price-table__shop-links a {
    display: inline-block;
    margin-left: 0.5rem;
    color: var(--hl-primary, #4f46e5);
    font-weight: 600;
    text-decoration: none;
}

.hl-price-table__shop-links a:hover {
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .hlm-issues__grid {
        grid-template-columns: 1fr;
    }
    .hlm-models__grid {
        grid-template-columns: 1fr;
    }
}
