/* style/faq.css */

/* Variáveis de cores baseadas no esquema Black Gold */
:root {
    --primary-color: #F2C14E; /* 主色调 */
    --secondary-color: #FFD36B; /* 辅助色 */
    --background-dark: #0A0A0A; /* 背景 */
    --card-background: #111111; /* Card BG */
    --text-main: #FFF6D6; /* Text Main */
    --border-color: #3A2A12; /* 边框 */
    --glow-color: #FFD36B; /* Glow */
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Botão */

    /* Cores adicionais para contraste e legibilidade */
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-medium-grey: #666666;
    --light-grey-bg: #f9f9f9;
    --border-light: #e0e0e0;
}

.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Assumindo body background é escuro (var(--site-bg) ou --background-dark) */
    line-height: 1.6;
    background-color: var(--background-dark); /* Fallback, mas body já define */
}

.page-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Intro Section */
.page-faq__intro-section {
    padding: 60px 20px;
    padding-top: 10px; /* Pequeno espaçamento, body já define padding-top */
    text-align: center;
    background-color: var(--background-dark);
    position: relative;
    overflow: hidden;
}

.page-faq__main-title {
    font-size: clamp(28px, 4vw, 48px); /* H1 font size constraint */
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-faq__description {
    font-size: 18px;
    color: var(--text-main);
    max-width: 900px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.page-faq__intro-image-wrapper {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
}

.page-faq__intro-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.8); /* Slightly dim the image for text readability, not color change */
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Mobile responsiveness */
    box-sizing: border-box; /* Mobile responsiveness */
    white-space: normal; /* Mobile responsiveness */
    word-wrap: break-word; /* Mobile responsiveness */
}

.page-faq__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

/* FAQ List Section */
.page-faq__faq-list-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

.page-faq__section-title {
    font-size: clamp(24px, 3.5vw, 40px);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.page-faq__faq-category {
    margin-bottom: 50px;
}

.page-faq__category-title {
    font-size: clamp(22px, 3vw, 32px);
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-background);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: var(--text-light);
  font-weight: 600;
  font-size: 18px;
}
details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
  display: none;
}
details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: rgba(255, 211, 107, 0.05); /* Ligeiro hover para feedback */
  border-color: var(--primary-color);
}
.page-faq__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-light);
}
.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}
details.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg);
    color: var(--secondary-color);
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 10px 10px;
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.7;
}

.page-faq__faq-answer p {
    margin-top: 15px;
    margin-bottom: 0;
}

/* Contact CTA Section */
.page-faq__contact-cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--card-background); /* Usando Card BG para esta seção */
    border-top: 1px solid var(--border-color);
}

.page-faq__contact-cta-section .page-faq__section-title {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.page-faq__contact-cta-section .page-faq__description {
    color: var(--text-main);
    margin-bottom: 40px;
}

.page-faq__cta-button--secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
    margin-right: 20px; /* Espaço entre botões */
}

.page-faq__cta-button--secondary:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__intro-section,
    .page-faq__faq-list-section,
    .page-faq__contact-cta-section {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-faq__intro-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-faq__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-faq__description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-faq__intro-image-wrapper {
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .page-faq__section-title {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .page-faq__category-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    .page-faq__faq-qtext {
        font-size: 16px;
    }
    .page-faq__faq-toggle {
        font-size: 24px;
        width: 24px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 20px 20px;
        font-size: 15px;
    }

    .page-faq__cta-button {
        padding: 12px 30px;
        font-size: 18px;
        margin-top: 15px;
        width: 100% !important; /* Mobile button width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-faq__cta-button--secondary {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .page-faq__contact-cta-section {
        padding: 50px 15px;
    }
    .page-faq__contact-cta-section .page-faq__cta-button {
        margin-top: 10px;
    }
    .page-faq__contact-cta-section .page-faq__cta-button:last-child {
        margin-bottom: 0;
    }

    /* Images responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-faq__intro-image-wrapper,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__faq-list-section .page-faq__container,
    .page-faq__contact-cta-section .page-faq__container {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: 28px;
    }
    .page-faq__section-title {
        font-size: 26px;
    }
    .page-faq__category-title {
        font-size: 20px;
    }
    .page-faq__cta-button {
        font-size: 16px;
        padding: 10px 20px;
    }
}