/**
 * Home FAQ Section — eFormax
 * Brand: #00332B · #004236 · #F7D15E · #E6F4F9 · #F0F8FB
 */

.hf-section {
    --hf-primary: #00332b;
    --hf-primary-mid: #004236;
    --hf-accent: #f7d15e;
    --hf-bg: #e6f4f9;
    --hf-card: #f0f8fb;
    --hf-text: #1a3d36;
    --hf-muted: #4a6b65;
    --hf-white: #ffffff;
    --hf-radius: 16px;
    --hf-shadow: 0 16px 48px rgba(0, 51, 43, 0.1);
    padding: 4.5rem 0 5rem;
    background: linear-gradient(180deg, var(--hf-white) 0%, var(--hf-bg) 50%, var(--hf-white) 100%);
    position: relative;
    overflow: hidden;
}

.hf-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 51, 43, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 51, 43, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 90% 70% at 80% 20%, #000 12%, transparent 65%);
    pointer-events: none;
}

.hf-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.75rem;
    position: relative;
}

.hf-section__intro {
    max-width: 40rem;
}

.hf-section__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hf-primary-mid);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 66, 54, 0.1);
    border-left: 3px solid var(--hf-accent);
    padding: 0.4rem 0.875rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.hf-section__title {
    font-size: clamp(1.75rem, 3vw, 2.375rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--hf-primary);
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.hf-section__subtitle {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--hf-muted);
    margin: 0;
}

.hf-section__visual {
    flex-shrink: 0;
    max-width: 160px;
    opacity: 0.85;
}

.hf-section__visual img {
    width: 100%;
    height: auto;
    display: block;
}

.hf-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
}

@media (min-width: 992px) {
    .hf-layout {
        grid-template-columns: 280px 1fr;
        gap: 2.5rem;
        align-items: start;
    }
}

.hf-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hf-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hf-nav .nav-item {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hf-nav__tab {
    width: 100%;
    text-align: left;
    padding: 0.875rem 1.125rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--hf-muted);
    background: var(--hf-white);
    border: 1px solid rgba(0, 51, 43, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.hf-nav__tab svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hf-nav__tab:hover {
    color: var(--hf-primary);
    border-color: rgba(0, 51, 43, 0.15);
}

.hf-nav__tab:hover svg {
    opacity: 1;
    transform: translateX(3px);
}

.hf-nav__tab.active {
    color: var(--hf-white);
    background: var(--hf-primary);
    border-color: var(--hf-primary);
    box-shadow: 0 8px 24px rgba(0, 51, 43, 0.18);
}

.hf-nav__tab.active svg {
    opacity: 1;
    color: var(--hf-white);
}

.hf-sidebar__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.hf-section a.hf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.375rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.hf-section a.hf-btn:hover {
    transform: translateY(-2px);
    text-decoration: none !important;
}

.hf-section a.hf-btn--primary {
    background: var(--hf-primary);
    color: var(--hf-white) !important;
    box-shadow: 0 10px 28px rgba(0, 51, 43, 0.22);
}

.hf-section a.hf-btn--primary:hover {
    background: var(--hf-primary-mid);
    color: var(--hf-white) !important;
}

.hf-section a.hf-btn--outline {
    background: var(--hf-white);
    color: var(--hf-primary) !important;
    border-color: rgba(0, 51, 43, 0.15);
}

.hf-section a.hf-btn--outline:hover {
    border-color: var(--hf-primary);
}

.hf-section a.hf-btn svg {
    width: 16px;
    height: 16px;
}

.hf-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hf-accordion__item {
    background: var(--hf-white);
    border: 1px solid rgba(0, 51, 43, 0.08) !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 51, 43, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.hf-accordion__item:has(.accordion-button:not(.collapsed)) {
    border-color: rgba(0, 51, 43, 0.14) !important;
    box-shadow: 0 8px 24px rgba(0, 51, 43, 0.08);
}

.hf-accordion__item .accordion-button {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hf-primary);
    background: var(--hf-white);
    padding: 1.125rem 1.25rem;
    box-shadow: none !important;
    line-height: 1.45;
}

.hf-accordion__item .accordion-button:not(.collapsed) {
    color: var(--hf-primary);
    background: var(--hf-card);
}

.hf-accordion__item .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.hf-accordion__item .accordion-button::after {
    filter: brightness(0) saturate(100%) invert(14%) sepia(30%) saturate(1200%) hue-rotate(118deg) brightness(95%);
}

.hf-accordion__item .accordion-body {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--hf-muted);
    padding: 0 1.25rem 1.25rem;
    background: var(--hf-card);
}

@media (max-width: 991.98px) {
    .hf-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.625rem;
    }

    .hf-nav__tab {
        white-space: nowrap;
        width: auto;
        flex-shrink: 0;
    }

    .hf-sidebar__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .hf-section {
        padding: 3.5rem 0 4rem;
    }

    .hf-section__visual {
        display: none;
    }

    .hf-sidebar__actions {
        flex-direction: column;
    }

    .hf-sidebar__actions .hf-btn {
        width: 100%;
    }
}
