/* ============================================================
   Jules FAQ Section – Elementor Widget Stylesheet
   jules-faq.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
.jules-faq {
    --jfaq-teal:    #2a8080;
    --jfaq-gold:    #c9a227;
    --jfaq-title:   #1e2a4a;
    --jfaq-card-bg: #ffffff;
    --jfaq-q:       #2a3550;
    --jfaq-a:       #5a6478;
    --jfaq-icon-bg: rgba(201, 162, 39, 0.12);
}

/* ── Section ── */
.jules-faq {
    background-color: #f0ede8;
    padding: 80px 80px 100px;
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
    width: 100%;
}

/* ── Inner wrapper ── */
.jfaq-inner {
    max-width: 1300px;
    margin: 0 auto;
}

/* ── Header ── */
.jfaq-header {
    text-align: center;
    margin-bottom: 56px;
}

.jfaq-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--jfaq-teal);
    margin-bottom: 18px;
}

.jfaq-badge-line {
    display: block;
    width: 36px;
    height: 1px;
    background: var(--jfaq-gold);
    opacity: 0.65;
}

.jfaq-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 5vw, 68px);
    font-weight: 400;
    color: var(--jfaq-title);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.015em;
}

/* ── 2-column grid ── */
.jfaq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* ── Single column ── */
.jfaq-col--single {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}

/* Each column stack */
.jfaq-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── FAQ Card ── */
.jfaq-item {
    background: var(--jfaq-card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.jfaq-item:hover {
    box-shadow: 0 6px 32px rgba(30, 42, 74, 0.07);
}

/* ── Trigger button ── */
.jfaq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
}

.jfaq-trigger:focus-visible {
    outline: 2px solid var(--jfaq-gold);
    outline-offset: -2px;
    border-radius: 16px;
}

/* Question text */
.jfaq-question-text {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--jfaq-q);
    line-height: 1.5;
    flex: 1;
    transition: color 0.2s ease;
}

.jfaq-item--open .jfaq-question-text,
.jfaq-trigger:hover .jfaq-question-text {
    color: var(--jfaq-gold);
}

/* + / − icon */
.jfaq-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--jfaq-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 300;
    color: var(--jfaq-gold);
    line-height: 1;
    transition: background 0.2s ease, transform 0.25s ease;
    position: relative;
}

.jfaq-item--open .jfaq-icon {
    background: rgba(201, 162, 39, 0.18);
    transform: rotate(45deg);
}

/* Show / hide + and − */
.jfaq-icon-minus { display: none; }
.jfaq-icon-plus  { display: block; }

.jfaq-item--open .jfaq-icon-minus { display: none; }
.jfaq-item--open .jfaq-icon-plus  { display: block; }

/* We use CSS rotation on the + to become × so no need for separate minus */

/* ── Answer panel ── */
.jfaq-answer-wrap {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, padding 0.2s ease;
}

/* When open */
.jfaq-item--open .jfaq-answer-wrap {
    max-height: 600px; /* generous cap; content drives actual height */
}

/* Remove hidden attribute effect — JS controls max-height */
.jfaq-answer-wrap[hidden] {
    display: block !important; /* override HTML hidden; JS uses max-height animation */
    visibility: visible;
}

.jfaq-answer {
    padding: 0 24px 22px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.85;
    color: var(--jfaq-a);
    border-top: 1px solid rgba(201, 162, 39, 0.18);
    padding-top: 16px;
}

/* Rich-text content inside answer */
.jfaq-answer p  { margin: 0 0 12px; }
.jfaq-answer p:last-child { margin-bottom: 0; }
.jfaq-answer ul, .jfaq-answer ol { padding-left: 20px; margin: 8px 0; }
.jfaq-answer li { margin-bottom: 6px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .jules-faq { padding: 60px 48px 80px; }
}

@media (max-width: 860px) {
    .jfaq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .jules-faq { padding: 48px 24px 64px; }
    .jfaq-section-title { font-size: 34px; }
    .jfaq-trigger { padding: 18px 20px; }
    .jfaq-question-text { font-size: 14px; }
    .jfaq-answer { padding: 0 20px 18px; padding-top: 14px; }
}
