/**
 * Halmar Extras — Public CSS
 * FAQ akordeon + Lazy Gallery + Coming Soon (coming-soon ma własny inline CSS)
 */

/* =========================================================
   CSS CUSTOM PROPERTIES (fallback gdy motyw nie załadowany)
   ========================================================= */

:root {
    --halmar-gold: #D4A820;
    --halmar-dark: #1A1A1A;
    --halmar-bg:   #F5F5F5;
}

/* =========================================================
   FAQ AKORDEON — .he-faq
   ========================================================= */

.he-faq {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.he-faq__item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s;
}

.he-faq__item.is-open {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

/* Przycisk pytania */
.he-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--halmar-dark);
    gap: 12px;
    transition: background .15s;
}

.he-faq__q:hover {
    background: var(--halmar-bg);
}

.he-faq__item.is-open .he-faq__q {
    background: var(--halmar-bg);
    border-bottom: 1px solid #e0e0e0;
}

.he-faq__q-text {
    flex: 1;
    line-height: 1.4;
}

.he-faq__q-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--halmar-gold);
    transition: transform .2s;
}

.he-faq__item.is-open .he-faq__q-icon {
    transform: rotate(45deg);
}

/* Treść odpowiedzi */
.he-faq__a {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
}

.he-faq__item.is-open .he-faq__a {
    max-height: 800px;
    padding: 16px 20px;
}

.he-faq__a p:last-child {
    margin-bottom: 0;
}

/* Warianty stylów */
.he-faq--compact .he-faq__q {
    padding: 10px 14px;
    font-size: .9rem;
}

.he-faq--compact .he-faq__item.is-open .he-faq__a {
    padding: 10px 14px;
}

.he-faq--cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.he-faq--cards .he-faq__item {
    margin-bottom: 0;
}

/* =========================================================
   LAZY GALLERY
   ========================================================= */

img.he-lazy {
    opacity: 0;
    transition: opacity .3s ease;
    background: #f5f5f5;
    min-height: 60px;
}

img.he-lazy--loaded {
    opacity: 1;
}
