/* FAQ Page Styles */
.faq-hero {
    padding: 5rem 0 2.5rem;
    background: linear-gradient(135deg, #f8f9f6 0%, #ffffff 100%);
}

.faq-hero .hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.faq-hero h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.search-container {
    max-width: 600px;
    margin: 2rem auto 0;
    display: flex;
    gap: 0.5rem;
}

.faq-search-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
}

.faq-search-input:focus {
    outline: none;
    border-color: #8b9a5b;
}

.search-btn {
    padding: 0.875rem 1.5rem;
    background: #8b9a5b;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* Category Navigation - Compact Pill Design */
.category-nav-section {
    padding: 0.75rem 0;
    background: white;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 56px;
    z-index: 100;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.category-nav-section::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.category-nav {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem 1rem;
    min-width: max-content;
}

/* Compact pill buttons - UX best practice */
.category-btn {
    padding: 0.5rem 1rem;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 100px; /* Full pill shape */
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    color: #5c5e62;
    line-height: 1.2;
}

.category-btn:hover {
    border-color: #8b9a5b;
    color: #8b9a5b;
    background: rgba(139, 154, 91, 0.05);
}

.category-btn.active {
    background: #8b9a5b;
    color: white;
    border-color: #8b9a5b;
    font-weight: 600;
}

/* Even more compact on small mobile */
@media (max-width: 640px) {
    .category-nav-section {
        padding: 0.5rem 0;
    }
    
    .category-nav {
        gap: 0.375rem;
        padding: 0.25rem 0.75rem;
    }
    
    .category-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* FAQ Content Layout */
.faq-content-section {
    padding: 4rem 0;
    background: #fafafa;
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
}

.faq-main {
    min-width: 0;
}

.category-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #8b9a5b;
}

.faq-category {
    margin-bottom: 4rem;
}

/* FAQ Items */
.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8f9f6;
}

.faq-icon {
    font-size: 1.5rem;
    color: #8b9a5b;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 2rem 2rem 2rem;
    line-height: 1.8;
    color: #4a4a4a;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer ul {
    margin: 1rem 0 1rem 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: #1a1a1a;
}

/* Special Content Boxes */
.price-breakdown,
.timeline-box,
.material-comparison,
.brand-recs {
    margin: 1.5rem 0;
}

.price-item,
.material-box,
.brand-rec-item {
    padding: 1.5rem;
    background: #f8f9f6;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.price-total {
    display: block;
    color: #8b9a5b;
    font-weight: 600;
    margin-top: 0.5rem;
}

.timeline-box {
    padding: 1.5rem;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
}

.material-box h4,
.brand-rec-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.faq-cta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e5e5;
}

/* Sidebar */
.faq-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 180px;
}

.sidebar-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.sidebar-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.sidebar-card p {
    margin-bottom: 1.5rem;
    color: #4a4a4a;
    line-height: 1.6;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0.75rem;
}

.popular-questions {
    list-style: none;
    padding: 0;
}

.popular-questions li {
    margin-bottom: 0.75rem;
}

.popular-questions a {
    color: #4a4a4a;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.popular-questions a:hover {
    color: #8b9a5b;
}

.trust-card {
    background: linear-gradient(135deg, #f8f9f6 0%, #ffffff 100%);
}

.trust-item {
    padding: 1rem 0;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

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

.trust-item strong {
    display: block;
    font-size: 1.5rem;
    color: #8b9a5b;
    margin-bottom: 0.25rem;
}

/* Related Resources */
.related-resources {
    padding: 4rem 0;
    background: white;
}

.related-resources h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.resource-card {
    padding: 2rem;
    background: #fafafa;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.resource-card:hover {
    border-color: #8b9a5b;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.resource-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.resource-card p {
    color: #4a4a4a;
}

/* Responsive */
@media (max-width: 1024px) {
    .faq-layout {
        grid-template-columns: 1fr;
    }
    
    .faq-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .faq-hero {
        padding: 4rem 0 1.5rem;
    }
    
    .faq-hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .faq-hero .hero-lead {
        font-size: 0.9375rem;
    }
    
    .search-container {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
    
    .faq-search-input {
        padding: 0.75rem 1rem;
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    .search-btn {
        padding: 0.75rem 1.25rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-question {
        padding: 1.25rem 1rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem 1.25rem 1rem;
    }
}
