/* ============================================
   DevPlus — FAQ
   Perguntas frequentes com accordion
   ============================================ */

/* --- NAVBAR INTERNA --- */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.back-link:hover {
    color: var(--brand-cyan);
    background: rgba(13,185,199,0.06);
}

/* --- FOOTER GRID --- */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 32px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--brand-cyan);
}

.footer-brand-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    transition: all var(--transition-base);
    padding: 0;
}

.footer-socials a:hover {
    background: rgba(13,185,199,0.1);
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
    transform: translateY(-2px);
}

/* --- BG AMBIENT --- */
.bg-ambient {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(13,185,199,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 60%, rgba(122,204,69,0.05) 0%, transparent 50%);
    background-attachment: fixed;
}

.bg-grid {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 70%);
}

/* --- HERO --- */
.faq-hero {
    padding: 160px 0 60px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(circle, rgba(13,185,199,0.10) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.faq-hero .container {
    position: relative;
    z-index: 1;
}

.faq-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(13,185,199,0.08);
    border: 1px solid rgba(13,185,199,0.2);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-cyan);
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}

.faq-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 24px;
    background: rgba(13,185,199,0.08);
    border: 1px solid rgba(13,185,199,0.15);
    color: var(--brand-cyan);
    margin: 0 auto 28px;
}

.faq-hero-icon svg {
    width: 56px;
    height: 56px;
}

.faq-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.faq-hero-sub {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- LAYOUT --- */
.faq-layout {
    padding: 60px 0 80px;
    position: relative;
}

.faq-layout .container {
    max-width: 800px;
}

/* --- CONTEÚDO FAQ --- */
.faq-content {
    max-width: 800px;
}

.faq-category {
    margin-bottom: 48px;
}

.faq-category-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

/* --- ACCORDION --- */
.faq-item {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.faq-item:hover {
    border-color: rgba(13,185,199,0.2);
}

.faq-item.open {
    border-color: var(--border-hover);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    background: var(--bg-card);
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--bg-card-hover);
}

.faq-question-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(13,185,199,0.08);
    color: var(--brand-cyan);
    transition: transform var(--transition-base);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 16px 24px 24px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

.faq-answer-inner p + p {
    margin-top: 12px;
}

.faq-answer-inner strong {
    color: var(--text-main);
    font-weight: 600;
}

.faq-answer-inner ul {
    margin: 8px 0;
    padding-left: 20px;
}

.faq-answer-inner li {
    margin-bottom: 6px;
}

/* --- CTA --- */
.faq-cta {
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.faq-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.faq-cta p {
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 32px;
    font-size: 1rem;
    line-height: 1.7;
}

.faq-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .faq-hero h1 { font-size: 2rem; }
    .faq-category-title { font-size: 1.2rem; }
    .faq-question { font-size: 0.88rem; padding: 16px 20px; }
    .faq-answer-inner { padding: 12px 20px 20px; font-size: 0.85rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .faq-hero { padding: 130px 0 40px; }
    .faq-hero h1 { font-size: 1.6rem; }
}
