/**
 * The Honer FAQ Widget Styles
 *
 * @package HonerJewellery
 *
 * All styles are scoped under .hjw-faq to prevent conflicts.
 */

/* ============================================================
   RESET & BASE
   ============================================================ */

.hjw-faq {
    font-family: inherit;
    color: #2c2c2c;
}

.hjw-faq *,
.hjw-faq *::before,
.hjw-faq *::after {
    box-sizing: border-box;
}

/* ============================================================
   CONTAINER
   ============================================================ */

.hjw-faq .hjw-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.hjw-faq .hjw-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.hjw-faq .hjw-section-alt {
    padding: 60px 0;
    background-color: #f8f6f3;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.hjw-faq .hjw-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.hjw-faq .hjw-section-header h2 {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #1a1a2e;
    margin: 0;
}

/* ============================================================
   EYEBROW
   ============================================================ */

.hjw-faq .hjw-eyebrow {
    display: inline-block;
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c9a96e;
    margin-bottom: 12px;
}

/* ============================================================
   HERO
   ============================================================ */

.hjw-faq .hjw-hero {
    padding: 80px 0 60px;
    background: #ffffff;
    text-align: center;
}

.hjw-faq .hjw-hero-content {
    max-width: 780px;
    margin: 0 auto;
}

.hjw-faq .hjw-hero-heading {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 44px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #1a1a2e;
    margin: 0 0 16px;
}

.hjw-faq .hjw-hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: #4a4a4a;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   SEARCH
   ============================================================ */

.hjw-faq .hjw-search {
    text-align: center;
}

.hjw-faq .hjw-search-content {
    max-width: 600px;
    margin: 0 auto;
}

.hjw-faq .hjw-search-content h2 {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 400;
    color: #1a1a2e;
    margin: 0 0 24px;
}

.hjw-faq .hjw-search-wrapper {
    position: relative;
}

.hjw-faq .hjw-search-input {
    width: 100%;
    padding: 16px 48px 16px 20px;
    font-size: 16px;
    font-family: inherit;
    color: #1a1a2e;
    background: #ffffff;
    border: 1px solid #e8e4dc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hjw-faq .hjw-search-input:focus {
    border-color: #c9a96e;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.hjw-faq .hjw-search-input::placeholder {
    color: #a0a0a0;
}

.hjw-faq .hjw-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================================
   CATEGORY NAVIGATION
   ============================================================ */

.hjw-faq .hjw-categories {
    padding: 20px 0 40px;
}

.hjw-faq .hjw-category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    max-width: 900px;
    margin: 0 auto;
}

.hjw-faq .hjw-category-link {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #1a1a2e;
    text-decoration: none;
    border: 1px solid #e8e4dc;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.hjw-faq .hjw-category-link:hover {
    border-color: #c9a96e;
    color: #c9a96e;
    background: #f8f6f3;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.hjw-faq .hjw-faq-list {
    max-width: 780px;
    margin: 0 auto;
}

.hjw-faq .hjw-faq-item {
    border-bottom: 1px solid #e8e4dc;
    padding: 16px 0;
}

.hjw-faq .hjw-faq-item:last-child {
    border-bottom: none;
}

.hjw-faq .hjw-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 4px 0;
    background: none;
    border: none;
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 400;
    color: #1a1a2e;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
}

.hjw-faq .hjw-faq-question:hover {
    color: #c9a96e;
}

.hjw-faq .hjw-faq-toggle {
    font-size: 22px;
    font-weight: 300;
    color: #c9a96e;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.hjw-faq .hjw-faq-item.active .hjw-faq-toggle {
    transform: rotate(45deg);
}

.hjw-faq .hjw-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.hjw-faq .hjw-faq-item.active .hjw-faq-answer {
    max-height: 500px;
    padding-top: 12px;
}

.hjw-faq .hjw-faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: #4a4a4a;
    margin: 0;
}

.hjw-faq .hjw-faq-link {
    color: #c9a96e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.hjw-faq .hjw-faq-link:hover {
    color: #b8955a;
    text-decoration: underline;
}

/* ============================================================
   COLORS
   ============================================================ */

.hjw-faq .hjw-gold {
    color: #c9a96e;
}

.hjw-faq .hjw-text-light {
    color: #6b6b6b;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.hjw-faq .hjw-btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hjw-faq .hjw-btn-primary {
    background-color: #c9a96e;
    color: #ffffff;
    border-color: #c9a96e;
}

.hjw-faq .hjw-btn-primary:hover {
    background-color: #b8955a;
    border-color: #b8955a;
    color: #ffffff;
}

.hjw-faq .hjw-btn-secondary {
    background-color: transparent;
    color: #1a1a2e;
    border-color: #c9a96e;
}

.hjw-faq .hjw-btn-secondary:hover {
    background-color: #c9a96e;
    color: #ffffff;
}

/* ============================================================
   FINAL CTA
   ============================================================ */

.hjw-faq .hjw-final-cta {
    text-align: center;
}

.hjw-faq .hjw-final-cta-content {
    max-width: 680px;
    margin: 0 auto;
}

.hjw-faq .hjw-final-cta-content h2 {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 30px;
    font-weight: 400;
    color: #1a1a2e;
    margin: 0 0 12px;
}

.hjw-faq .hjw-final-cta-content p {
    font-size: 18px;
    color: #4a4a4a;
    margin: 0 0 32px;
}

.hjw-faq .hjw-final-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ============================================================
   SEARCH FILTERING (JavaScript enhancement)
   ============================================================ */

.hjw-faq .hjw-faq-item.hidden {
    display: none;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet */
@media (max-width: 992px) {
    .hjw-faq .hjw-hero-heading {
        font-size: 36px;
    }

    .hjw-faq .hjw-section-header h2 {
        font-size: 26px;
    }

    .hjw-faq .hjw-final-cta-content h2 {
        font-size: 26px;
    }

    .hjw-faq .hjw-category-nav {
        gap: 6px 12px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hjw-faq .hjw-section {
        padding: 40px 0;
    }

    .hjw-faq .hjw-section-alt {
        padding: 40px 0;
    }

    .hjw-faq .hjw-hero {
        padding: 40px 0 32px;
    }

    .hjw-faq .hjw-hero-heading {
        font-size: 28px;
    }

    .hjw-faq .hjw-hero-subtitle {
        font-size: 16px;
    }

    .hjw-faq .hjw-section-header h2 {
        font-size: 22px;
    }

    .hjw-faq .hjw-search-content h2 {
        font-size: 22px;
    }

    .hjw-faq .hjw-final-cta-content h2 {
        font-size: 22px;
    }

    .hjw-faq .hjw-final-cta-content p {
        font-size: 16px;
    }

    .hjw-faq .hjw-faq-question {
        font-size: 16px;
    }

    .hjw-faq .hjw-faq-answer p {
        font-size: 15px;
    }

    .hjw-faq .hjw-category-link {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hjw-faq .hjw-category-nav {
        gap: 6px 10px;
    }

    .hjw-faq .hjw-btn {
        padding: 12px 24px;
        font-size: 12px;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .hjw-faq .hjw-final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hjw-faq .hjw-search-input {
        padding: 14px 44px 14px 16px;
        font-size: 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hjw-faq .hjw-hero-heading {
        font-size: 24px;
    }

    .hjw-faq .hjw-section-header h2 {
        font-size: 20px;
    }

    .hjw-faq .hjw-final-cta-content h2 {
        font-size: 20px;
    }

    .hjw-faq .hjw-faq-question {
        font-size: 15px;
    }

    .hjw-faq .hjw-btn {
        padding: 10px 20px;
        font-size: 11px;
        max-width: 100%;
    }
}

/* ============================================================
   FOCUS STATES (Accessibility)
   ============================================================ */

.hjw-faq .hjw-faq-question:focus-visible {
    outline: 2px solid #c9a96e;
    outline-offset: 2px;
}

.hjw-faq .hjw-search-input:focus-visible {
    outline: 2px solid #c9a96e;
    outline-offset: 0;
}

.hjw-faq .hjw-btn:focus-visible {
    outline: 2px solid #c9a96e;
    outline-offset: 2px;
}

.hjw-faq .hjw-category-link:focus-visible {
    outline: 2px solid #c9a96e;
    outline-offset: 2px;
}

/* ============================================================
   SEARCH - HIDE EMPTY FAQ SECTIONS
   ============================================================ */

.hjw-faq .hjw-section-hidden {
    display: none;
}