/* ========================================
   Soto Machinery - FAQ Page Styles
   Version: 1.0.0
   ======================================== */

:root {
    --soto-primary: #0d7377;
    --soto-secondary: #145374;
    --soto-accent: #f5a623;
    --soto-text: #2d3748;
    --soto-text-light: #5a6b7d;
    --soto-bg: #f7f9fc;
    --soto-white: #ffffff;
    --soto-border: #e8edf2;
    --soto-radius: 8px;
    --soto-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --soto-shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --soto-transition: all 0.3s ease;
    --soto-container: 1400px;
}

.soto-faq-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--soto-text);
    line-height: 1.7;
    box-sizing: border-box;
}

.soto-faq-page *,
.soto-faq-page *::before,
.soto-faq-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.soto-faq-page a {
    text-decoration: none;
    color: var(--soto-primary);
    transition: var(--soto-transition);
}

.soto-faq-page a:hover {
    color: var(--soto-accent);
}

.soto-faq-page .soto-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   1. Page Hero
   ======================================== */
.soto-faq-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(13,115,119,0.92) 0%, rgba(20,83,116,0.95) 100%);
    padding: 80px 0 60px;
    overflow: hidden;
}

.soto-faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://www.soto-epmachinery.com/wp-content/uploads/2026/09/about-hero-bg.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

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

.soto-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.soto-breadcrumb a {
    color: rgba(255,255,255,0.85);
}

.soto-breadcrumb a:hover {
    color: #fff;
}

.soto-breadcrumb span {
    color: rgba(255,255,255,0.5);
}

.soto-breadcrumb .soto-current {
    color: #fff;
    font-weight: 500;
}

.soto-faq-hero h1 {
    font-size: 46px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.soto-faq-hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    max-width: 700px;
    line-height: 1.6;
}

/* ========================================
   2. Category Filter Tabs
   ======================================== */
.soto-faq-filter {
    padding: 40px 0 0;
}

.soto-faq-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 8px;
}

.soto-faq-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: var(--soto-text-light);
    background: var(--soto-white);
    border: 2px solid var(--soto-border);
    cursor: pointer;
    transition: var(--soto-transition);
    white-space: nowrap;
}

.soto-faq-tab:hover {
    border-color: var(--soto-primary);
    color: var(--soto-primary);
}

.soto-faq-tab.active {
    background: var(--soto-primary);
    color: #fff;
    border-color: var(--soto-primary);
}

.soto-faq-tab svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ========================================
   3. FAQ Accordion
   ======================================== */
.soto-faq-list {
    padding: 40px 0 80px;
}

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

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

.soto-faq-category-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--soto-text);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--soto-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.soto-faq-category-title .soto-faq-count {
    font-size: 14px;
    font-weight: 500;
    color: var(--soto-text-light);
    background: var(--soto-bg);
    padding: 4px 12px;
    border-radius: 50px;
}

.soto-faq-item {
    background: var(--soto-white);
    border: 1px solid var(--soto-border);
    border-radius: var(--soto-radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--soto-transition);
}

.soto-faq-item:hover {
    border-color: rgba(13,115,119,0.3);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.soto-faq-item.active {
    border-color: var(--soto-primary);
    box-shadow: var(--soto-shadow);
}

.soto-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    transition: var(--soto-transition);
    user-select: none;
}

.soto-faq-question span:first-child {
    font-size: 17px;
    font-weight: 600;
    color: var(--soto-text);
    line-height: 1.5;
    flex: 1;
}

.soto-faq-item.active .soto-faq-question {
    color: var(--soto-primary);
}

.soto-faq-item.active .soto-faq-question span:first-child {
    color: var(--soto-primary);
}

.soto-faq-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--soto-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
    color: var(--soto-primary);
    transition: var(--soto-transition);
    line-height: 1;
}

.soto-faq-item.active .soto-faq-icon {
    background: var(--soto-primary);
    color: #fff;
    transform: rotate(45deg);
}

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

.soto-faq-item.active .soto-faq-answer {
    max-height: 600px;
}

.soto-faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 16px;
    color: var(--soto-text-light);
    line-height: 1.7;
}

.soto-faq-answer-inner p {
    margin-bottom: 12px;
}

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

.soto-faq-answer-inner ul {
    list-style: none;
    padding-left: 0;
    margin: 12px 0;
}

.soto-faq-answer-inner ul li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 6px;
}

.soto-faq-answer-inner ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--soto-primary);
}

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

.soto-faq-answer-inner a {
    color: var(--soto-primary);
    text-decoration: underline;
}

/* ========================================
   4. Still Have Questions
   ======================================== */
.soto-faq-contact {
    padding: 80px 0;
    background: var(--soto-bg);
}

.soto-faq-contact .soto-container {
    max-width: 700px;
}

.soto-faq-contact-box {
    background: var(--soto-white);
    border-radius: var(--soto-radius);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--soto-shadow);
    position: relative;
    overflow: hidden;
}

.soto-faq-contact-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--soto-primary), var(--soto-accent));
}

.soto-faq-contact-box .soto-faq-contact-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(13,115,119,0.1), rgba(245,166,35,0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.soto-faq-contact-box .soto-faq-contact-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--soto-primary);
}

.soto-faq-contact-box h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--soto-text);
    margin-bottom: 12px;
}

.soto-faq-contact-box p {
    font-size: 17px;
    color: var(--soto-text-light);
    margin-bottom: 32px;
}

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

.soto-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--soto-transition);
    cursor: pointer;
    text-decoration: none;
}

.soto-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.soto-btn-primary {
    background: var(--soto-accent);
    color: #fff;
}

.soto-btn-primary:hover {
    background: #e0951a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,166,35,0.4);
}

.soto-btn-outline {
    background: transparent;
    color: var(--soto-primary);
    border: 2px solid var(--soto-border);
}

.soto-btn-outline:hover {
    border-color: var(--soto-primary);
    background: rgba(13,115,119,0.05);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .soto-faq-hero h1 {
        font-size: 32px;
    }

    .soto-faq-hero p {
        font-size: 16px;
    }

    .soto-faq-tab {
        padding: 8px 18px;
        font-size: 14px;
    }

    .soto-faq-question {
        padding: 18px 20px;
    }

    .soto-faq-question span:first-child {
        font-size: 16px;
    }

    .soto-faq-answer-inner {
        padding: 0 20px 18px;
        font-size: 15px;
    }

    .soto-faq-category-title {
        font-size: 20px;
    }

    .soto-faq-contact-box {
        padding: 36px 24px;
    }

    .soto-faq-contact-box h2 {
        font-size: 24px;
    }

    .soto-faq-contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .soto-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .soto-faq-hero {
        padding: 60px 0 40px;
    }

    .soto-faq-hero h1 {
        font-size: 28px;
    }

    .soto-faq-list {
        padding: 32px 0 48px;
    }

    .soto-faq-contact {
        padding: 48px 0;
    }
}
