/* ─────────────────────────────────────────────
   FAQ Auto Block
   ───────────────────────────────────────────── */
.faqauto-block {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.faqauto-block::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 400px;
    height: 400px;
    border: 1px solid #e8e6e1;
    border-radius: 50%;
    opacity: 0.4;
    pointer-events: none;
}

.faqauto-block::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -20px;
    width: 260px;
    height: 260px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
}

/* ── Header ── */
.faqauto-header {
    max-width: 680px;
    margin-bottom: 60px;
}

.faqauto-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font2);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
}

.faqauto-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--primary);
}

.faqauto-heading {
    font-family: var(--font1);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.faqauto-heading em {
    font-style: italic;
    color: var(--primary);
}

.faqauto-subheading {
    font-size: 1.1rem;
    line-height: 1.65;
    color: #6b6966;
    max-width: 540px;
}

/* ── Category Filter Nav ── */
.faqauto-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 56px;
    position: relative;
    z-index: 1;
}

.faqauto-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-family: var(--font2);
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b6966;
    background: #ffffff;
    border: 1px solid #e8e6e1;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
}

.faqauto-filter-btn:hover {
    border-color: #d0cec8;
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faqauto-filter-btn.is-active {
    background: #231f20;
    color: #fff;
    border-color: #231f20;
}

.faqauto-filter-btn.is-active:hover {
    background: #1a1a2e;
    border-color: #1a1a2e;
}

.faqauto-filter-count {
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(0,0,0,0.08);
    color: inherit;
    padding: 1px 7px;
    border-radius: 100px;
    line-height: 1.6;
    transition: background 0.25s ease;
}

.faqauto-filter-btn.is-active .faqauto-filter-count {
    background: rgba(255,255,255,0.18);
}

/* ── Category Groups ── */
.faqauto-categories {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.faqauto-category.is-hidden {
    display: none;
}

.faqauto-category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #231f20;
}

.faqauto-category-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 8px;
    flex-shrink: 0;
}

.faqauto-category-marker svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.faqauto-category-name {
    font-family: var(--font2);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

.faqauto-category-count {
    font-size: 0.8rem;
    color: #9e9b96;
    font-weight: 400;
    margin-left: auto;
}

/* ── Accordion Items ── */
.faqauto-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faqauto-item {
    border-bottom: 1px solid #e8e6e1;
    transition: border-color 0.3s ease;
}

.faqauto-item:hover {
    border-color: #d0cec8;
}

.faqauto-question {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 24px 0;
    font-family: var(--font2);
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a1a2e;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    line-height: 1.5;
    gap: 20px;
    transition: color 0.3s ease-in-out;
}

.faqauto-question:hover {
    color: var(--primary);
}

.faqauto-question-text {
    flex: 1;
}

.faqauto-question-number {
    font-size: 0.9rem;
    color: #9e9b96;
    min-width: 28px;
    transition: color 0.3s ease-in-out;
}

.faqauto-item.is-open .faqauto-question-number {
    color: var(--primary);
}

.faqauto-toggle {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f5f4f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faqauto-toggle::before,
.faqauto-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: #6b6966;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faqauto-toggle::before {
    width: 12px;
    height: 1.5px;
    transform: translate(-50%, -50%);
}

.faqauto-toggle::after {
    width: 1.5px;
    height: 12px;
    transform: translate(-50%, -50%);
}

.faqauto-item.is-open .faqauto-toggle {
    background: var(--primary);
    transform: rotate(45deg);
}

.faqauto-item.is-open .faqauto-toggle::before,
.faqauto-item.is-open .faqauto-toggle::after {
    background: #fff;
}

.faqauto-question:hover .faqauto-toggle {
    background: #e8e6e1;
}

.faqauto-item.is-open .faqauto-question:hover .faqauto-toggle {
    background: var(--primary);
    filter: brightness(1.1);
}

/* ── Answer Panel ── */
.faqauto-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faqauto-item.is-open .faqauto-answer {
    grid-template-rows: 1fr;
}

.faqauto-answer-inner {
    overflow: hidden;
}

.faqauto-answer-content {
    padding: 0 0 28px 48px;
    font-size: 0.98rem;
    line-height: 1.75;
    color: #6b6966;

}

.faqauto-answer-content p {
    margin-bottom: 12px;
}

.faqauto-answer-content p:last-child {
    margin-bottom: 0;
}

.faqauto-answer-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease-in-out;
}

.faqauto-answer-content a:hover {
    color: #231f20;
}

.faqauto-answer-content ul,
.faqauto-answer-content ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.faqauto-answer-content li {
    margin-bottom: 4px;
}

/* ── Tablet — 1199px ── */
@media (max-width: 1199px) {
    .faqauto-block { padding: 70px 0; }
    .faqauto-heading { font-size: 2.8rem; }
    .faqauto-header { margin-bottom: 48px; }
    .faqauto-categories { gap: 48px; }
    .faqauto-block::before, .faqauto-block::after { display: none; }
}

/* ── Mobile — 767px ── */
@media (max-width: 767px) {
    .faqauto-block { padding: 50px 0; }
    .faqauto-heading { font-size: 2.2rem; }
    .faqauto-subheading { font-size: 1rem; }
    .faqauto-header { margin-bottom: 36px; }
    .faqauto-filters { margin-bottom: 40px; gap: 6px; }
    .faqauto-filter-btn { padding: 8px 14px; font-size: 0.8rem; }
    .faqauto-categories { gap: 40px; }
    .faqauto-category-header { gap: 12px; margin-bottom: 16px; padding-bottom: 12px; }
    .faqauto-category-marker { width: 30px; height: 30px; border-radius: 6px; }
    .faqauto-category-marker svg { width: 15px; height: 15px; }
    .faqauto-category-name { font-size: 0.95rem; }
    .faqauto-question { padding: 20px 0; font-size: 0.95rem; gap: 14px; }
    .faqauto-question-number { display: none; }
    .faqauto-toggle { width: 28px; height: 28px; }
    .faqauto-toggle::before { width: 10px; }
    .faqauto-toggle::after { height: 10px; }
    .faqauto-answer-content { padding: 0 0 24px 0; font-size: 0.92rem; }
}
