/* =========================================================
   Marllon FAQ Styles (scoped: .ms-faq-*)
   Version: 0.5.8
   ========================================================= */

/* Design system variables (self-contained) */
:root {
    --ms-ink: #1b1f2a;
    --ms-muted: #667085;
    --ms-cornflower: #2C4190;
    --ms-slate-blue: #284163;
    --ms-warm-gold: #E1A951;
    --ms-page-bg: #f6f7f9;
    --ms-surface: #ffffff;
    --ms-border: rgba(17, 24, 39, 0.12);
    --ms-shadow-soft: 0 2px 8px rgba(16, 24, 40, 0.08);
}

/* ---------------------------------------------------------
   FAQ wrapper
   --------------------------------------------------------- */
.ms-faq {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px 56px;
    color: var(--ms-ink);
}

/* ---------------------------------------------------------
   Banner image
   --------------------------------------------------------- */
.ms-faq__banner {
    width: 100%;
    aspect-ratio: 1915 / 821;
    background-image: url('MS-FAQ-Page.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    margin-top: 8px;
    margin-bottom: 32px;
}

/* ---------------------------------------------------------
   Intro (title + subtitle)
   --------------------------------------------------------- */
.ms-faq__intro {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--ms-warm-gold);
    width: 100%;
}

.ms-faq__title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ms-ink);
}

.ms-faq__subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ms-muted);
}

/* ---------------------------------------------------------
   Category sections
   --------------------------------------------------------- */
.ms-faq__category {
    margin-bottom: 16px;
    width: 100%;
}

.ms-faq__category-title {
    margin: 0 0 4px;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ms-slate-blue);
    border-bottom: 1px solid var(--ms-border);
    width: 100%;
}

/* ---------------------------------------------------------
   Accordion items (<details> / <summary>)
   --------------------------------------------------------- */
.ms-faq__item {
    border-bottom: 1px solid var(--ms-border);
    width: 100%;
}

.ms-faq__item:last-child {
    border-bottom: none;
}

/* Reset native summary marker */
.ms-faq__question {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--ms-ink);
    transition: color 180ms ease;
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
}

.ms-faq__question::-webkit-details-marker {
    display: none;
}

.ms-faq__question::marker {
    display: none;
    content: "";
}

/* Chevron indicator */
.ms-faq__question::after {
    content: "";
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--ms-warm-gold);
    border-bottom: 2px solid var(--ms-warm-gold);
    transform: rotate(45deg);
    transition: transform 250ms ease;
}

.ms-faq__item[open] > .ms-faq__question::after {
    transform: rotate(-135deg);
}

/* Active (open) item — card highlight */
.ms-faq__item[open] {
    background: var(--ms-surface);
    box-shadow: var(--ms-shadow-soft);
    padding: 0 16px;
    margin: 4px 0;
    border-bottom: none;
}

.ms-faq__item[open] > .ms-faq__question {
    color: var(--ms-slate-blue);
}

.ms-faq__question:hover {
    color: var(--ms-slate-blue);
}

/* Answer content */
.ms-faq__answer {
    padding: 0 0 12px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ms-muted);
}

.ms-faq__answer p {
    margin: 0 0 8px;
}

.ms-faq__answer p:last-child {
    margin-bottom: 0;
}

.ms-faq__answer a {
    color: var(--ms-slate-blue);
    font-weight: 600;
    text-decoration: none;
    transition: color 180ms ease;
}

.ms-faq__answer a:hover {
    color: var(--ms-warm-gold);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 640px) {
    .ms-faq {
        padding: 24px 12px 40px;
    }

    .ms-faq__title {
        font-size: 20px;
    }

    .ms-faq__category-title {
        font-size: 14px;
    }

    .ms-faq__question {
        font-size: 13px;
        padding: 10px 0;
    }

    .ms-faq__answer {
        font-size: 12px;
    }
}

/* ---------------------------------------------------------
   FAQ Footer (contact section)
   --------------------------------------------------------- */
.ms-faq__footer {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 2px solid var(--ms-warm-gold);
    text-align: center;
}

.ms-faq__footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.ms-faq__footer-text {
    text-align: left;
}

.ms-faq__footer-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ms-ink);
}

.ms-faq__footer-subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ms-muted);
}

.ms-faq__footer-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.ms-faq__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
}

.ms-faq__btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ms-faq__btn--call {
    background: var(--ms-warm-gold);
    color: #ffffff;
    font-size: 0;
}

.ms-faq__btn--call .ms-faq__btn-icon,
.ms-faq__btn--call svg {
    display: none;
}

.ms-faq__btn--call::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center / contain;
    flex-shrink: 0;
}

.ms-faq__btn--call::after {
    content: 'Call us';
    font-size: 15px;
    font-weight: 600;
    margin-left: 2px;
}

.ms-faq__btn--call:hover {
    background: #c8932e;
    color: #ffffff;
}

.ms-faq__btn--contact {
    background: var(--ms-slate-blue);
    color: #ffffff;
}

.ms-faq__btn--contact:hover {
    background: #1d3250;
    color: #ffffff;
}

.ms-faq__footer-hours {
    margin: 24px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ms-muted);
}

.ms-faq__footer-thanks {
    margin: 20px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--ms-ink);
}

@media (max-width: 640px) {
    .ms-faq__footer-main {
        flex-direction: column;
        text-align: center;
    }

    .ms-faq__footer-text {
        text-align: center;
    }

    .ms-faq__footer-buttons {
        justify-content: center;
    }
}

/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .ms-faq__question::after {
        transition: none;
    }
}

/* ---------------------------------------------------------
   Theme overrides (scoped via body class)
   --------------------------------------------------------- */

/* Hide the "Explore" hero banner, search bar, and sidebar — keep only the blue line */
.ms-faq-active #webplus_slider {
    display: none !important;
}

.ms-faq-active .searchform,
.ms-faq-active .search-form,
.ms-faq-active .categories-box {
    display: none !important;
}

/* Force full-width content area — scoped to main content only (not header/nav) */
.ms-faq-active main .its--container,
.ms-faq-active main .its--row,
.ms-faq-active .its--blog_content .its--container,
.ms-faq-active .its--blog_content .its--row {
    max-width: 100% !important;
    width: 100% !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.ms-faq-active main .its--row > * {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* Force the entry-content / post body and all ancestors to be full width, and strip top spacing */
.ms-faq-active main .entry-content,
.ms-faq-active main .post,
.ms-faq-active main article,
.ms-faq-active main .its--blog_content,
.ms-faq-active main .its--wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Hide sidebar if present — scoped to main content */
.ms-faq-active main .sidebar,
.ms-faq-active main aside {
    display: none !important;
}

/* Force font sizes to override theme defaults */
.ms-faq-active .entry-content .ms-faq__title {
    font-size: 24px !important;
    font-weight: 700 !important;
}

.ms-faq-active .entry-content .ms-faq__subtitle {
    font-size: 14px !important;
}

.ms-faq-active .entry-content .ms-faq__category-title {
    font-size: 16px !important;
    font-weight: 700 !important;
}

.ms-faq-active .entry-content .ms-faq__question {
    font-size: 17px !important;
    font-weight: 600 !important;
}

.ms-faq-active .entry-content .ms-faq__answer,
.ms-faq-active .entry-content .ms-faq__answer p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #1b1f2a !important;
}

/* Hide theme-generated sections below FAQ content */
/* Post navigation (ul.pager inside nav) — scoped to main to preserve site nav in header */
.ms-faq-active main nav[role="navigation"],
/* Related articles & Recent posts (div.relatedPosts outside main) */
.ms-faq-active .relatedPosts,
/* Horizontal rule between main and related posts */
.ms-faq-active #primary > hr,
.ms-faq-active .content-area > hr,
/* Categories box */
.ms-faq-active .categories-box {
    display: none !important;
}
