/* ==========================================
   BAPSANG FAQ — Ember & Steel
   Restyled to match the Bapsang widget family.
========================================== */
.dc-faq-widget {
    --dc-ember: #b66d33;
    --dc-ember-rgb: 182,109,51;
    --dc-brass: #c4a265;
    --dc-brass-rgb: 196,162,101;
    --dc-charcoal: #1a1714;
    --dc-graphite: #2a2520;
    --dc-ash: #f5f0eb;
    --dc-smoke: #9a9590;
    /* legacy aliases kept so existing inline refs resolve */
    --dc-primary: #b66d33;
    --dc-primary-rgb: 182,109,51;
    --dc-secondary: #1a1714;
    --dc-secondary-rgb: 26,23,20;
}

.dc-faq-widget * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==========================================
   MAIN CONTAINER
========================================== */
.dc-faq-widget .dc-faq {
    position: relative;
    padding: 128px 0;
    background: var(--dc-charcoal);
    overflow: hidden;
}

.dc-faq-widget .dc-faq__wrapper {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ==========================================
   DECORATIVE ELEMENTS
========================================== */
.dc-faq-widget .dc-faq__decoration {
    position: absolute;
    pointer-events: none;
}

.dc-faq-widget .dc-faq__decoration--1 {
    top: 10%;
    right: -50px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(var(--dc-ember-rgb), 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: dc-float-slow 15s ease-in-out infinite;
}

.dc-faq-widget .dc-faq__decoration--2 {
    bottom: 15%;
    left: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(var(--dc-brass-rgb), 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: dc-float-slow 12s ease-in-out infinite reverse;
}

.dc-faq-widget .dc-faq__decoration--3 {
    top: 40%;
    left: 5%;
    width: 80px;
    height: 80px;
    opacity: 0.12;
}

.dc-faq-widget .dc-faq__decoration--3 svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--dc-brass);
    stroke-width: 1.5;
    animation: dc-rotate-slow 20s linear infinite;
}

@keyframes dc-float-slow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -15px); }
}

@keyframes dc-rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================
   HEADER
========================================== */
.dc-faq-widget .dc-faq__header {
    text-align: center;
    margin-bottom: 64px;
    animation: dc-fade-in-up 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes dc-fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.dc-faq-widget .dc-faq__eyebrow {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--dc-brass);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.dc-faq-widget .dc-faq__title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--dc-ash);
    line-height: 1.15;
    margin-bottom: 20px;
}

.dc-faq-widget .dc-faq__highlight {
    color: var(--dc-ember);
    font-style: italic;
    position: relative;
    display: inline-block;
}

.dc-faq-widget .dc-faq__highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, rgba(var(--dc-brass-rgb), 0.35), rgba(var(--dc-ember-rgb), 0.15));
    border-radius: 4px;
    z-index: -1;
    transform: skewX(-5deg);
}

.dc-faq-widget .dc-faq__subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: var(--dc-smoke);
    line-height: 1.8;
    max-width: 620px;
    margin: 0 auto;
}

/* ==========================================
   LAYOUT CONTAINER
========================================== */
.dc-faq-widget .dc-faq__container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 56px;
    align-items: start;
}

/* ==========================================
   FAQ LIST
========================================== */
.dc-faq-widget .dc-faq__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ==========================================
   FAQ ITEM
========================================== */
.dc-faq-widget .dc-faq__item {
    background: var(--dc-graphite);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(245, 240, 235, 0.07);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    animation: dc-fade-in-up 0.6s ease-out forwards;
}

.dc-faq-widget .dc-faq__item:nth-child(1) { animation-delay: 0.1s; }
.dc-faq-widget .dc-faq__item:nth-child(2) { animation-delay: 0.15s; }
.dc-faq-widget .dc-faq__item:nth-child(3) { animation-delay: 0.2s; }
.dc-faq-widget .dc-faq__item:nth-child(4) { animation-delay: 0.25s; }
.dc-faq-widget .dc-faq__item:nth-child(5) { animation-delay: 0.3s; }
.dc-faq-widget .dc-faq__item:nth-child(6) { animation-delay: 0.35s; }

.dc-faq-widget .dc-faq__item:hover {
    border-color: rgba(var(--dc-brass-rgb), 0.3);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

.dc-faq-widget .dc-faq__item.is-active {
    border-color: rgba(var(--dc-ember-rgb), 0.5);
    box-shadow: 0 24px 56px rgba(var(--dc-ember-rgb), 0.18);
}

/* Question Header */
.dc-faq-widget .dc-faq__question {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
}

.dc-faq-widget .dc-faq__question:hover {
    background: rgba(var(--dc-ember-rgb), 0.04);
}

/* Number */
.dc-faq-widget .dc-faq__number {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--dc-brass);
    background: rgba(var(--dc-brass-rgb), 0.08);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.dc-faq-widget .dc-faq__item.is-active .dc-faq__number {
    background: linear-gradient(135deg, var(--dc-ember), var(--dc-brass));
    color: var(--dc-charcoal);
    opacity: 1;
}

/* Icon */
.dc-faq-widget .dc-faq__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--dc-ember-rgb), 0.12);
    color: var(--dc-ember);
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dc-faq-widget .dc-faq__icon svg {
    width: 24px;
    height: 24px;
}

.dc-faq-widget .dc-faq__item.is-active .dc-faq__icon {
    background: linear-gradient(135deg, var(--dc-ember), var(--dc-brass));
    color: var(--dc-charcoal);
    transform: scale(1.05);
}

/* Question Text */
.dc-faq-widget .dc-faq__question-text {
    flex: 1;
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--dc-ash);
    line-height: 1.45;
    transition: color 0.3s ease;
}

.dc-faq-widget .dc-faq__item.is-active .dc-faq__question-text {
    color: var(--dc-brass);
}

/* Toggle Icon */
.dc-faq-widget .dc-faq__toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 240, 235, 0.05);
    color: var(--dc-ash);
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dc-faq-widget .dc-faq__toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dc-faq-widget .dc-faq__item.is-active .dc-faq__toggle {
    background: linear-gradient(135deg, var(--dc-ember), var(--dc-brass));
    color: var(--dc-charcoal);
}

.dc-faq-widget .dc-faq__item.is-active .dc-faq__toggle svg {
    transform: rotate(45deg);
}

/* Answer */
.dc-faq-widget .dc-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dc-faq-widget .dc-faq__item.is-active .dc-faq__answer {
    max-height: 500px;
}

.dc-faq-widget .dc-faq__answer-content {
    padding: 0 30px 30px;
    padding-left: 98px;
}

.dc-faq-widget .dc-faq__answer-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--dc-smoke);
    line-height: 1.8;
}

.dc-faq-widget .dc-faq__answer-text p {
    margin-bottom: 12px;
}

.dc-faq-widget .dc-faq__answer-text p:last-child {
    margin-bottom: 0;
}

.dc-faq-widget .dc-faq__answer-text a {
    color: var(--dc-brass);
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--dc-brass-rgb), 0.4);
}

.dc-faq-widget .dc-faq__answer-text a:hover {
    color: var(--dc-ember);
}

.dc-faq-widget .dc-faq__answer-text ul,
.dc-faq-widget .dc-faq__answer-text ol {
    margin: 12px 0;
    padding-left: 24px;
}

.dc-faq-widget .dc-faq__answer-text li {
    margin-bottom: 8px;
}

/* ==========================================
   CTA SIDEBAR
========================================== */
.dc-faq-widget .dc-faq__sidebar {
    position: sticky;
    top: 100px;
    animation: dc-fade-in-right 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes dc-fade-in-right {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.dc-faq-widget .dc-faq__cta-box {
    background: linear-gradient(150deg, var(--dc-graphite) 0%, #211d19 100%);
    border: 1px solid rgba(var(--dc-brass-rgb), 0.18);
    border-radius: 22px;
    padding: 44px 34px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dc-faq-widget .dc-faq__cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--dc-ember-rgb), 0.18) 0%, transparent 70%);
    border-radius: 50%;
}

.dc-faq-widget .dc-faq__cta-box::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(var(--dc-brass-rgb), 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.dc-faq-widget .dc-faq__cta-content {
    position: relative;
    z-index: 2;
}

.dc-faq-widget .dc-faq__cta-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dc-ember), var(--dc-brass));
    border-radius: 18px;
    color: var(--dc-charcoal);
    box-shadow: 0 15px 40px rgba(var(--dc-ember-rgb), 0.35);
}

.dc-faq-widget .dc-faq__cta-icon svg {
    width: 32px;
    height: 32px;
}

.dc-faq-widget .dc-faq__cta-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--dc-brass);
    margin-bottom: 12px;
}

.dc-faq-widget .dc-faq__cta-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--dc-ash);
    line-height: 1.3;
    margin-bottom: 16px;
}

.dc-faq-widget .dc-faq__cta-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--dc-smoke);
    line-height: 1.7;
    margin-bottom: 28px;
}

.dc-faq-widget .dc-faq__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--dc-charcoal);
    background: linear-gradient(135deg, var(--dc-ember), var(--dc-brass));
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(var(--dc-ember-rgb), 0.3);
    margin-bottom: 20px;
}

.dc-faq-widget .dc-faq__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 42px rgba(var(--dc-ember-rgb), 0.45);
}

.dc-faq-widget .dc-faq__cta-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.dc-faq-widget .dc-faq__cta-button:hover svg {
    transform: translateX(4px);
}

.dc-faq-widget .dc-faq__cta-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.dc-faq-widget .dc-faq__cta-divider::before,
.dc-faq-widget .dc-faq__cta-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(245, 240, 235, 0.12);
}

.dc-faq-widget .dc-faq__cta-divider span {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: var(--dc-smoke);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.dc-faq-widget .dc-faq__cta-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(245, 240, 235, 0.04);
    border: 1px solid rgba(245, 240, 235, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dc-faq-widget .dc-faq__cta-phone:hover {
    background: rgba(var(--dc-ember-rgb), 0.08);
    border-color: rgba(var(--dc-ember-rgb), 0.35);
}

.dc-faq-widget .dc-faq__cta-phone-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dc-ember), var(--dc-brass));
    border-radius: 10px;
    color: var(--dc-charcoal);
}

.dc-faq-widget .dc-faq__cta-phone-icon svg {
    width: 18px;
    height: 18px;
}

.dc-faq-widget .dc-faq__cta-phone-info {
    text-align: left;
}

.dc-faq-widget .dc-faq__cta-phone-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: var(--dc-smoke);
    margin-bottom: 2px;
}

.dc-faq-widget .dc-faq__cta-phone-number {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--dc-ash);
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1024px) {
    .dc-faq-widget .dc-faq {
        padding: 80px 0;
    }

    .dc-faq-widget .dc-faq__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .dc-faq-widget .dc-faq__sidebar {
        position: relative;
        top: auto;
        max-width: 460px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .dc-faq-widget .dc-faq {
        padding: 64px 0;
    }

    .dc-faq-widget .dc-faq__wrapper {
        padding: 0 24px;
    }

    .dc-faq-widget .dc-faq__header {
        margin-bottom: 40px;
    }

    .dc-faq-widget .dc-faq__question {
        padding: 20px;
        gap: 14px;
    }

    .dc-faq-widget .dc-faq__icon {
        width: 40px;
        height: 40px;
    }

    .dc-faq-widget .dc-faq__icon svg {
        width: 18px;
        height: 18px;
    }

    .dc-faq-widget .dc-faq__question-text {
        font-size: 15px;
    }

    .dc-faq-widget .dc-faq__toggle {
        width: 36px;
        height: 36px;
    }

    .dc-faq-widget .dc-faq__answer-content {
        padding: 0 20px 22px;
        padding-left: 74px;
    }

    .dc-faq-widget .dc-faq__cta-box {
        padding: 34px 26px;
    }

    .dc-faq-widget .dc-faq__cta-icon {
        width: 60px;
        height: 60px;
    }

    .dc-faq-widget .dc-faq__cta-icon svg {
        width: 28px;
        height: 28px;
    }

    .dc-faq-widget .dc-faq__decoration--3 {
        display: none;
    }
}
