﻿/* FAQ accordion â€” Savjet majstora */

.lula-faq{
  margin-top: var(--s-5);
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  width: 100%;
}

.lula-faq__title{
  margin: 0 0 6px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  color: var(--text);
}

.lula-faq__intro{
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

.lula-faq__header{
  text-align: center;
}

.lula-faq__items{
  margin-top: var(--s-4);
  display: grid;
  gap: 12px;
}

.lula-faq__item{
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.lula-faq__item.is-open{
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  box-shadow: 0 18px 36px rgba(0,0,0,.35);
}

.lula-faq__button{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
  transition: background .2s ease, color .2s ease;
}

.lula-faq__button:focus{
  outline: none;
  background: linear-gradient(180deg, rgba(176,141,87,1) 0%, rgba(176,141,87,.74) 100%);
  color: #ffffff;
}

.lula-faq__button:focus-visible{
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 3px;
  border-radius: 12px;
}

.lula-faq__item:hover{
  border-color: rgba(176,141,87,.40);
}

.lula-faq__button:hover{
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
}

.lula-faq__button:active,
.lula-faq__item.is-open .lula-faq__button,
.lula-faq__button:focus-visible{
  background: linear-gradient(180deg, rgba(176,141,87,1) 0%, rgba(176,141,87,.74) 100%);
  color: #ffffff;
}

.lula-faq__item.is-open .lula-faq__button:hover{
  background: linear-gradient(180deg, rgba(176,141,87,1) 0%, rgba(176,141,87,.74) 100%);
}

.lula-faq__item.is-open .lula-faq__icon{
  color: #ffffff;
}

.lula-faq__icon{
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

.lula-faq__icon::before,
.lula-faq__icon::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.lula-faq__icon::before{
  width: 14px;
  height: 2px;
}

.lula-faq__icon::after{
  width: 2px;
  height: 14px;
}

.lula-faq__item.is-open .lula-faq__icon::after{
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0.2;
}

.lula-faq__panel{
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height .24s ease, opacity .24s ease, transform .24s ease;
}

.lula-faq__panel[aria-hidden="false"]{
  opacity: 1;
  transform: translateY(0);
}

.lula-faq__answer{
  padding: 0 18px 18px;
  color: var(--text-2);
  font-size: 17.55px;
  line-height: 1.7;
}

@media (max-width: 640px){
  .lula-faq__button{
    padding: 14px 16px;
    font-size: 15px;
  }
  .lula-faq__answer{
    padding: 0 16px 16px;
    font-size: 17.225px;
  }
}

@media (min-width: 980px){
  .lula-faq{
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}
