/* ==============================
   FAQ - Owner-Centric/Objection Handling
   ============================== */

/* Single Column Layout (Stacked) */
.faq-grid {
    margin-top: var(--space-8);
    display: block;
    max-width: 800px; /* Optimal reading width for single column */
    margin-left: auto;
    margin-right: auto;
}

/* Remove 2-column media query completely */

/* Group Container - The "Brick" */
.faq-group {
    display: block;
    width: 100%;
    margin-bottom: var(--space-8);
}

.faq-group:last-child {
    margin-bottom: 0;
}

/* Removed explicit column/flex wrappers */

/* Category Headers */
.faq-category-title {
    position: relative;
    font-size: 1.35rem; /* Slightly larger for presence */
    font-weight: 700;
    color: #fff;
    margin: 0 0 var(--space-2) 0;
    padding-left: 1.25rem; /* More breathing room */
    line-height: 1.2;
    letter-spacing: -0.01em; /* Tighten slightly for modern feel */
}

/* Polished Accent Bar */
.faq-category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.2em; /* Height relative to font size */
    background: linear-gradient(to bottom, var(--brand-accent), color-mix(in srgb, var(--brand-accent), white 20%)); /* Subtle gradient */
    border-radius: 4px; /* Soften the edges */
    box-shadow: 0 0 10px rgba(255, 100, 0, 0.3); /* Subtle glow if brand accent is orange */
}

/* Category Descriptor */
.faq-category-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 var(--space-6) 0;
    padding-left: 1.25rem; /* Exact alignment with title text */
    font-weight: 400;
    line-height: 1.5;
    max-width: 95%;
}

/* Accordion Item */
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: var(--space-4); /* Add spacing between items manually since flex gap is gone */
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--brand-accent) 20%, var(--border));
}

/* Question (Summary) */
.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--brand-ink);
    cursor: pointer;
    list-style: none; /* Hide default triangle */
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    color: var(--brand-accent);
}

/* Custom Icon Container (Chevron wrapper) */
.faq-icon {
    position: relative;
    width: 10px;
    height: 10px;
    display: inline-block;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.3s ease;
    transform-origin: center;
}

/* Chevron Draw (Down Arrow) */
.faq-icon::after {
    content: '';
    position: absolute;
    top: 0; /* Center vertically manually if needed, or rely on flex align of parent */
    left: 0;
    width: 100%;
    height: 100%;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: border-color 0.3s ease;
}

/* Remove unused pseudo-element from previous '+' implementation */
.faq-icon::before {
    display: none;
}

/* Hover State */
.faq-question:hover .faq-icon::after {
    border-color: var(--brand-accent);
}

/* Open State - Rotate 180 (Up Arrow) */
.faq-item[open] .faq-question .faq-icon {
    transform: rotate(-180deg);
}

.faq-item[open] .faq-question .faq-icon::after {
    border-color: var(--brand-accent);
}


/* Answer */
.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--muted);
    line-height: 1.65;
    animation: slideDown 0.3s ease-out;
}

/* Paragraph spacing (important for scan) */
.faq-answer p {
    margin: 0;
}

/* Highlighted factual anchors only */
.faq-answer strong {
    color: var(--brand-ink);
    font-weight: 600; /* ↓ from 700 */
}

/* Keyframes */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ghost Button for FAQ (Matches Solutions) */
.faq-btn {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: white !important;
    
    /* Layout Fixes */
    display: inline-flex !important;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    min-height: 3rem;
    white-space: normal !important; /* Allow text to wrap if needed */
    text-align: center;
    line-height: 1.3;
    padding: 0.8em 1.5em !important;
}

.faq-btn:hover {
    background: white !important;
    color: var(--brand-primary) !important;
    border-color: white !important;
}

/* High Contrast Footer Text */
.faq-footer-text {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 1.05rem;
}
