/**
 * Peafowl Care FAQ v2 — Reorganized Editorial + Accordion
 *
 * 8-section layout with hero image support.
 * Design C (editorial long-scroll) + Design A (accordion) Q&As
 * Matches TROQC theme: Playfair Display headings, Caveat script, Inter body
 * Palette: cream #F6F1EA, teal #3F6D7D, warm grays
 *
 * Last Deploy: 2026-04-05 12:46:52
 */

/* ========== Page Layout ========== */

.faq-page-wrapper {
    padding: 36px;
    padding-bottom: 0;
}

/* Inner content column */
.faq-page-wrapper > .faq-disclaimer,
.faq-page-wrapper > .faq-cta,
.faq-page-wrapper > .faq-empty {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Hero Card — Two-Column Layout ========== */

.faq-hero-card {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid rgb(63, 109, 125);
    padding: 15px 50px 50px 50px;
    text-align: center;
    margin: 0 0 2.5rem 0;
}

.faq-hero-card--has-image {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.faq-hero-text {
    flex: 1;
    min-width: 0;
}

.faq-hero-image-wrap {
    flex: 0 0 auto;
    max-width: 320px;
}

.faq-hero-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ========== Hero Illustration (submark) ========== */

.faq-hero-illustration {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 0.5rem;
    opacity: 0.85;
}

/* ========== Hero Typography ========== */

.faq-hero-ornament {
    color: rgb(166, 183, 189);
    font-size: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    letter-spacing: 6px;
    line-height: 1;
}

.faq-page-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.25rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 0 0 0.75rem;
    line-height: 1.15;
}

.faq-hero-subtitle {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: #666;
    font-style: italic;
    text-align: center;
    margin: 0 0 1.5rem;
}

.faq-hero-card .faq-page-intro {
    text-align: center;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: #555;
}

.faq-hero-card .faq-page-intro p {
    margin: 0 0 0.65rem;
}

.faq-hero-card .faq-page-intro p:last-child {
    margin-bottom: 0;
}

/* ========== [NEW] Badge ========== */

.faq-new-badge {
    display: inline-block;
    background: #3F6D7D;
    color: #fff;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 0.5rem;
    vertical-align: middle;
    line-height: 1;
}

.faq-item--new {
    border-left-width: 4px;
    border-left-color: #d4a574;
}

.faq-new-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 0.4rem;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* ========== Section Navigation (Pill Filters) ========== */

.faq-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    padding: 1.5rem 15rem;
    background: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.faq-nav-pill {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1.5px solid rgb(200, 200, 200);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1rem;
    color: rgb(120, 120, 120);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.faq-nav-pill::after {
    display: none !important;
}

.faq-nav-pill:hover {
    border-color: rgb(63, 109, 125);
    color: rgb(63, 109, 125);
}

.faq-nav-pill.active {
    background: rgb(63, 109, 125);
    color: #fff;
    border-color: rgb(63, 109, 125);
}

/* ========== Section Dividers ========== */

.faq-section-divider {
    text-align: center;
    color: #d4c9b8;
    font-size: 0.85rem;
    letter-spacing: 6px;
    margin: 2.5rem 0;
    user-select: none;
}

/* ========== Margin Notes ========== */

.faq-margin-note {
    font-family: 'Caveat', cursive;
    color: rgb(140, 133, 123);
    font-size: 2rem;
    font-style: italic;
    display: block;
    pointer-events: none;
    text-align: left;
    padding-left: 1rem;
    margin: 0 0 -1.5rem;
    position: relative;
    z-index: 10;
    transform: rotate(-20deg) translate(0, -11rem);
}

.faq-margin-note--wrapped {
    max-width: 16rem;
    transform: rotate(-20deg) translate(0, -3rem);
}

/* ========== Section Icons ========== */

.faq-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: rgba(63, 109, 125, 0.1);
    font-size: 1.1rem;
    margin-right: 0.75rem;
    vertical-align: middle;
    line-height: 1;
}

/* ========== Topic Sections ========== */

.faq-topic-section {
    background: #fff;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    scroll-margin-top: 1.5rem;
}

.faq-topic-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 1.25rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #d4c9b8;
    margin-top: 0;
}

/* ========== Accordion Items ========== */

.faq-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid #e8e0d4;
    border-left: 3px solid #3F6D7D;
    padding-left: 0.75rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
    transition: opacity 0.15s;
}

.faq-question:hover {
    opacity: 0.75;
}

.faq-question:focus-visible {
    outline: 2px solid #3F6D7D;
    outline-offset: 2px;
    border-radius: 3px;
}

.faq-question-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: #2c2c2c;
    line-height: 1.4;
}

/* Chevron */
.faq-chevron {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    margin-top: 0.45rem;
    border-right: 1.5px solid #b0a99f;
    border-bottom: 1.5px solid #b0a99f;
    transform: rotate(45deg);
    transition: transform 0.25s ease, border-color 0.2s;
}

.faq-item--open .faq-chevron {
    transform: rotate(-135deg);
    border-color: #3F6D7D;
}

/* Answer */
.faq-answer {
    overflow: hidden;
}

.faq-answer-content {
    padding: 0 0 1.25rem 1.5rem;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: #4a4a4a;
}

.faq-answer-content p {
    margin: 0 0 0.65rem;
}

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

.faq-answer-content strong {
    color: #2c2c2c;
    font-weight: 600;
}

.faq-answer-content em {
    color: #777;
}

/* Related Links */
.faq-answer-links {
    margin-top: 0.85rem;
    padding-top: 0.65rem;
    border-top: 1px dashed #e8e0d4;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.faq-link {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1rem;
    color: #3F6D7D;
    text-decoration: none;
    transition: color 0.2s;
}

.faq-link::after {
    display: none !important;
}

.faq-link:hover {
    color: #2c5663;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-link-label {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: #3F6D7D;
    margin-right: 0.15rem;
}

/* ========== Disclaimer ========== */

.faq-disclaimer {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8e0d4;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #888;
}

.faq-disclaimer p {
    margin: 0;
}

.faq-disclaimer a {
    color: #3F6D7D;
}

.faq-disclaimer a::after {
    display: none !important;
}

/* ========== CTA Block ========== */

.faq-cta {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #3F6D7D;
}

.faq-cta-tagline {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: #3F6D7D;
    margin: 0 0 0.25rem;
}

.faq-cta-text {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1rem;
    color: #5a5a5a;
    margin: 0;
    line-height: 1.55;
}

.faq-cta-text a {
    color: #3F6D7D;
}

.faq-cta-text a::after {
    display: none !important;
}

/* ========== Empty State ========== */

.faq-empty {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-style: italic;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* ========== Category Labels ========== */

.faq-question-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.faq-category-label {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1;
    color: #3F6D7D;
    display: flex;
    align-items: center;
}

/* Topic-specific category colors */
.faq-item[data-topic="peafowl-101"] .faq-category-label { color: #4B6B8A; }
.faq-item[data-topic="before-you-commit"] .faq-category-label { color: #3F6D7D; }
.faq-item[data-topic="eggs-chicks-and-brooding"] .faq-category-label { color: #8B6F47; }
.faq-item[data-topic="health-and-first-aid"] .faq-category-label { color: #7B4B6B; }
.faq-item[data-topic="diet-and-feeding"] .faq-category-label { color: #A0763C; }
.faq-item[data-topic="housing-and-enclosures"] .faq-category-label { color: #6B7B4B; }
.faq-item[data-topic="behavior-and-socialization"] .faq-category-label { color: #4B7B5E; }
.faq-item[data-topic="free-ranging-and-predators"] .faq-category-label { color: #7B5B4B; }

/* ========== "From the Ranch" Callout Boxes ========== */

.faq-ranch-callout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgb(250, 248, 244);
    border-left: 3px solid rgb(63, 109, 125);
    border-radius: 8px;
    padding: 1.15rem 1.4rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.faq-ranch-callout-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.faq-ranch-callout-content {
    flex: 1;
    min-width: 0;
}

.faq-ranch-callout--warning {
    background: white;
    border: none;
    border-left: 3px solid #d4a574;
    border-radius: 0 8px 8px 0;
}

.faq-ranch-callout-label {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: #3F6D7D;
    margin: 0 0 0.2rem;
}

.faq-ranch-callout--warning .faq-ranch-callout-label {
    color: #8a6c4f;
}

.faq-ranch-callout-text {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.95rem;
    color: #5a5a5a;
    line-height: 1.55;
    margin: 0;
    font-style: italic;
}

/* ========== Mobile ========== */

@media (max-width: 768px) {
    .faq-hero-card--has-image {
        flex-direction: column;
    }

    .faq-hero-image-wrap {
        max-width: 260px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .faq-page-wrapper {
        padding: 1rem 1rem 3rem;
        border-width: 12px;
        margin: 10px;
    }

    .faq-topic-section {
        padding: 1.25rem 1.25rem;
    }

    .faq-section-nav {
        padding: 1rem 1.25rem;
    }

    .faq-hero-card {
        padding: 40px 24px;
    }

    .faq-page-title {
        font-size: 2rem;
    }

    .faq-hero-subtitle {
        font-size: 1.5rem;
    }

    .faq-hero-card .faq-page-intro {
        font-size: 0.95rem;
    }

    .faq-nav-pill {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    .faq-section-nav {
        gap: 0.4rem;
    }

    .faq-margin-note {
        font-size: 1.5rem;
    }

    .faq-topic-heading {
        font-size: 1.2rem;
    }

    .faq-question {
        padding: 0.85rem 0;
        min-height: 48px;
    }

    .faq-question-text {
        font-size: 0.95rem;
    }

    .faq-answer-content {
        font-size: 0.95rem;
    }

    .faq-section-divider {
        margin: 2rem 0;
    }

    .faq-category-label {
        font-size: 0.6rem;
    }

    .faq-ranch-callout {
        padding: 1rem 1.15rem;
    }

    .faq-hero-image-wrap {
        max-width: 200px;
    }

    .faq-item--new {
        border-left-width: 4px;
    }
}
