/* ============================================
   PAGES - Shared Stylesheet
   (FAQ, Privacy, Terms, Shipping, Returns)
   Golden Luxury Theme
   ============================================ */

/* ========== 1. Page Hero ========== */
.page-hero {
    margin-top: 70px;
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero--faq {
    background-image: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=1400&q=80');
}

.page-hero--privacy {
    background-image: url('https://images.unsplash.com/photo-1563986768609-322da13575f2?w=1400&q=80');
}

.page-hero--terms {
    background-image: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1400&q=80');
}

.page-hero--shipping {
    background-image: url('https://images.unsplash.com/photo-1566576912321-d58ddd7a6088?w=1400&q=80');
}

.page-hero--returns {
    background-image: url('https://images.unsplash.com/photo-1586880244406-556ebe35f282?w=1400&q=80');
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.88), rgba(212, 165, 116, 0.3));
}

.page-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.page-hero__icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.page-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-hero__desc {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* ========== 2. Breadcrumb ========== */
.page-breadcrumb {
    background: var(--white);
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-300);
}

.page-breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gray-700);
    flex-wrap: wrap;
}

.page-breadcrumb__list li:not(:last-child)::after {
    content: '/';
    margin-right: 10px;
    color: var(--gray-500);
}

.page-breadcrumb__list a {
    color: var(--gray-700);
    transition: var(--transition);
}

.page-breadcrumb__list a:hover {
    color: var(--primary-dark);
}

.page-breadcrumb__active {
    color: var(--primary-dark);
    font-weight: 700;
}

/* ========== 3. Page Content Wrapper ========== */
.page-content {
    padding: 60px 0 80px;
}

.page-content__wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-300);
}

/* ========== 4. Last Updated Badge ========== */
.page-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--gray-700);
    background: var(--gray-100);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 30px;
    border: 1px solid var(--gray-300);
}

/* ========== 5. Section Block ========== */
.page-section {
    margin-bottom: 36px;
}

.page-section:last-child {
    margin-bottom: 0;
}

.page-section__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-section__title-icon {
    font-size: 1.2rem;
}

.page-section p {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 2;
    margin-bottom: 12px;
}

.page-section p:last-child {
    margin-bottom: 0;
}

/* ========== 6. Styled Lists ========== */
.page-list {
    padding-right: 10px;
    margin-bottom: 14px;
}

.page-list li {
    font-size: 0.93rem;
    color: var(--gray-700);
    line-height: 2;
    padding-right: 20px;
    position: relative;
    margin-bottom: 8px;
}

.page-list li::before {
    content: '✅';
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 0.8rem;
}

/* Numbered List */
.page-list--numbered li {
    counter-increment: step;
    padding-right: 32px;
}

.page-list--numbered li::before {
    content: counter(step);
    background: var(--primary);
    color: var(--white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    top: 5px;
}

/* ========== 7. Info Boxes (Highlight, Warning, Info) ========== */
.page-highlight {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.08), rgba(245, 232, 199, 0.12));
    border: 1px solid var(--primary-light);
    border-right: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin-bottom: 14px;
}

.page-highlight p {
    font-size: 0.92rem;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 0;
}

.page-warning {
    background: rgba(192, 57, 43, 0.05);
    border: 1px solid rgba(192, 57, 43, 0.15);
    border-right: 4px solid var(--danger);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin-bottom: 14px;
}

.page-warning p {
    font-size: 0.92rem;
    color: var(--danger);
    font-weight: 600;
    margin-bottom: 0;
}

.page-info {
    background: rgba(39, 174, 96, 0.05);
    border: 1px solid rgba(39, 174, 96, 0.15);
    border-right: 4px solid var(--success);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin-bottom: 14px;
}

.page-info p {
    font-size: 0.92rem;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 0;
}

/* ========== 8. Page CTA ========== */
.page-cta {
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}

.page-cta__title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-cta__text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 18px;
}

.page-cta .btn--primary {
    padding: 12px 30px;
    font-size: 0.95rem;
}

/* ========== 9. FAQ Accordion ========== */
.faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-300);
    overflow: hidden;
    transition: var(--transition);
}

.faq__item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(180, 134, 11, 0.1);
    background: var(--white);
}

.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    background: transparent;
    text-align: right;
    cursor: pointer;
    transition: var(--transition);
    gap: 16px;
}

.faq__question span:first-child {
    flex: 1;
    text-align: right;
}

.faq__question:hover {
    color: var(--primary-dark);
}

.faq__item.active .faq__question {
    color: var(--primary-dark);
}

.faq__icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary-dark);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    border: 1px solid var(--gray-300);
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s ease;
    padding: 0 24px;
}

.faq__item.active .faq__answer {
    max-height: 400px;
    padding: 0 24px 22px;
}

.faq__answer p {
    font-size: 0.93rem;
    color: var(--gray-700);
    line-height: 2;
}

/* ============================================
   10. RESPONSIVE - Tablet (max-width: 992px)
   ============================================ */
@media (max-width: 992px) {
    .page-hero__title {
        font-size: 2rem;
    }

    .page-content__wrapper {
        padding: 36px;
    }

    .page-section__title {
        font-size: 1.15rem;
    }
}

/* ============================================
   11. RESPONSIVE - Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Hero */
    .page-hero {
        margin-top: 60px;
        height: 220px;
    }

    .page-hero__icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .page-hero__title {
        font-size: 1.7rem;
    }

    .page-hero__desc {
        font-size: 0.88rem;
        padding: 0 10px;
    }

    /* Breadcrumb */
    .page-breadcrumb {
        padding: 10px 0;
    }

    .page-breadcrumb__list {
        font-size: 0.78rem;
        gap: 6px;
    }

    /* Content */
    .page-content {
        padding: 30px 0 50px;
    }

    .page-content__wrapper {
        padding: 24px;
        border-radius: var(--radius-md);
    }

    .page-section {
        margin-bottom: 28px;
    }

    .page-section__title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .page-section p {
        font-size: 0.88rem;
    }

    .page-list li {
        font-size: 0.86rem;
    }

    /* Info Boxes */
    .page-highlight,
    .page-warning,
    .page-info {
        padding: 14px 16px;
    }

    .page-highlight p,
    .page-warning p,
    .page-info p {
        font-size: 0.85rem;
    }

    /* CTA */
    .page-cta {
        padding: 24px 20px;
        margin-top: 30px;
    }

    .page-cta__title {
        font-size: 1.05rem;
    }

    .page-cta__text {
        font-size: 0.82rem;
    }

    /* FAQ */
    .faq__question {
        padding: 16px 18px;
        font-size: 0.9rem;
        gap: 12px;
    }

    .faq__icon {
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
    }

    .faq__item.active .faq__answer {
        padding: 0 18px 16px;
    }

    .faq__answer p {
        font-size: 0.85rem;
    }
}

/* ============================================
   12. RESPONSIVE - Small Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .page-hero {
        height: 190px;
    }

    .page-hero__icon {
        font-size: 1.6rem;
    }

    .page-hero__title {
        font-size: 1.4rem;
    }

    .page-hero__desc {
        font-size: 0.8rem;
    }

    .page-content__wrapper {
        padding: 18px;
    }

    .page-section__title {
        font-size: 1rem;
    }

    .page-section p {
        font-size: 0.82rem;
    }

    .page-list li {
        font-size: 0.82rem;
        padding-right: 18px;
    }

    .page-cta {
        padding: 20px 16px;
    }

    .faq__question {
        font-size: 0.82rem;
        padding: 14px;
    }

    .faq__icon {
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }
}

/* ============================================
   13. Touch Devices - Disable Hover Effects
   ============================================ */
@media (hover: none) {
    .faq__question:hover {
        color: var(--dark);
    }
}