/*
 * BusinessDesk public site additions (FAQ accordion headings, homepage FAQ section, FAQ pages,
 * site footer, visitor Login/Register buttons). Loaded after custom.css in new-app, new-auth,
 * dashboard and desk-dashboard layouts.
 */

/* Mobile top-bar placement of the Login/Register buttons, tied to the theme's meanmenu bar. */
:root {
    --mobile-bar-button-top: 12px;   /* aligns with .mobile-nav .logo (top: 11px) */
    --mobile-bar-hamburger-space: 49px; /* meanmenu-reveal width + right offset, see below */
}

/* FAQ accordion: questions are <h3> headings wrapping a link (see faq::partials.accordion). */
.faq-accordion .accordion h3.accordion-title { margin: 0; cursor: pointer; }
.faq-accordion .accordion h3.accordion-title a { color: inherit; display: block; text-decoration: none; padding-right: 48px; border-radius: 6px; }
/* Keep long questions clear of the chevron (absolutely positioned, 40px wide, at the right edge). */
.faq-accordion .accordion h3.accordion-title a:focus { outline: none; }
.faq-accordion .accordion h3.accordion-title a:focus-visible { outline: 2px solid #00BE7C; outline-offset: 4px; }

/* Homepage FAQ section */
.home-faq { background: #fff; }
.home-faq .section-title { margin-bottom: 30px; }
/* Match the brand display font other homepage section titles use (e.g.
   .testimonial-title h2) — this rule previously only set font-size, so it
   fell back to the page's generic body font instead. */
.home-faq .section-title h2 { font-size: 36px; font-family: var(--cabinet-font); font-weight: 700; }
.home-faq .faq-content { max-width: 820px; margin: 0 auto 30px; }

/* .home-faq .section-title h2's two-class specificity otherwise beats the
   generic .section-title h2 mobile rule in responsive.css, so this title
   stayed stuck at 36px on mobile instead of shrinking like every other
   section title (e.g. .testimonial-title h2, which drops to 24px). */
@media (max-width: 767px) {
    .home-faq .section-title h2 { font-size: 24px; }
}

/* Public FAQ pages (/faqs and /faqs/{service}) */
.faq-page-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.faq-page-filters .form-control,
.faq-page-filters .form-select { border-radius: 999px; padding: 10px 18px; max-width: 280px; }
.faq-page-filters .faq-page-search { flex: 1 1 260px; max-width: 360px; }
.faq-page-group { background: #fff; border-radius: 12px; padding: 20px 24px; margin-bottom: 20px; }
.faq-page-group > h2 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.faq-page-group > h2 a { color: inherit; }
.faq-page-group > h2 a:hover { color: var(--colorVar2, #00be7c); }
.faq-page-updated { font-size: 13px; color: #667085; margin: 8px 0 0; }
.faq-page-breadcrumb { font-size: 13px; color: #667085; margin-bottom: 12px; }
.faq-page-breadcrumb a { color: var(--colorVar2, #00be7c); }
.faq-page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; position: relative; z-index: 1; }
.faq-page-btn { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid #010c22; color: #010c22; font-weight: 500; }
.faq-page-btn--primary { background: #00BE7C; border-color: #00BE7C; color: #fff; }
.faq-page-btn--primary:hover { background: #007A4F; border-color: #007A4F; color: #fff; }
.faq-page-more { color: var(--colorVar2, #00be7c); font-weight: 500; }

/* Site footer (components/site-footer) on the theme's dark footer background (--colorVar). */
.site-footer { padding-top: 70px; color: rgba(255, 255, 255, .78); }
.site-footer .footer-widget h3 { font-family: var(--cabinet-font); font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.site-footer__brand { display: inline-block; font-family: var(--cabinet-font); font-size: 30px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.site-footer__brand:hover { color: #fff; }
.site-footer__about { color: rgba(255, 255, 255, .78); margin-bottom: 10px; max-width: 380px; }
.site-footer__pitch { color: rgba(255, 255, 255, .78); margin-bottom: 16px; max-width: 380px; }
.site-footer__pitch span { color: var(--colorVar2); font-weight: 700; }
.site-footer__register { display: inline-block; background: var(--colorVar2); color: #fff; border-radius: 999px; padding: 10px 26px; font-weight: 600; }
.site-footer__register:hover { background: #fff; color: var(--colorVar); }
.site-footer__social { display: flex; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.site-footer__social-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-size: 20px; transition: transform .2s, background-color .2s; }
.site-footer__social-link:hover { color: #fff; transform: translateY(-2px); }
.site-footer__social-link--instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.site-footer__social-link--tiktok { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.site-footer__social-link--facebook { background: #1877f2; }
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list li { margin-bottom: 10px; }
.site-footer__list a, .site-footer__list span { color: rgba(255, 255, 255, .78); }
.site-footer__list a:hover { color: var(--colorVar2); }
.site-footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.site-footer__contact i { color: var(--colorVar2); font-size: 18px; line-height: 1.4; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 20px; padding: 18px 0; }
.site-footer__bottom p { margin: 0; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .6); }

@media (max-width: 991px) {
    .site-footer { padding-top: 50px; }
    .site-footer__brand { font-size: 26px; }
}

/* Login / Register buttons for visitors (snippets/auth-buttons) */
.auth-buttons { display: flex; align-items: center; gap: 10px; }
.auth-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 34px; padding: 11px 22px; font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.auth-btn i { display: none; font-size: 18px; }
.auth-btn--login { border: 1.5px solid #010c22; color: #010c22; background: #fff; }
.auth-btn--login:hover { background: #010c22; color: #fff; }
.auth-btn--register { border: 1.5px solid #00BE7C; background: #00BE7C; color: #fff; }
.auth-btn--register:hover { background: #007A4F; border-color: #007A4F; color: #fff; }
.auth-buttons--mobile { display: none; }

@media (max-width: 991px) {
    /* Always-visible buttons in the mobile top bar, left of the meanmenu hamburger. */
    .auth-buttons--mobile { display: flex; position: absolute; top: var(--mobile-bar-button-top); right: var(--mobile-bar-hamburger-space); z-index: 1000; gap: 6px; }
    .auth-buttons--mobile .auth-btn { padding: 8px 14px; font-size: 13px; }
    /* The desktop side buttons are copied into the opened menu by meanmenu; the top bar already has them. */
    .mean-container .mean-nav .side-nav { display: none !important; }
}

@media (max-width: 360px) {
    /* Leave a gap between the logo and the buttons on the narrowest phones. */
    .mobile-nav .logo img { max-width: 92px; }
}

@media (max-width: 380px) {
    .auth-buttons--mobile .auth-btn--login { padding: 7px 9px; }
    .auth-buttons--mobile .auth-btn--login span { display: none; }
    .auth-buttons--mobile .auth-btn--login i { display: inline-block; }
}

/* Modern mobile hamburger/close icon (meanmenu's defaults are thick 4px bars
   and a bare, unstyled "X" character for the open state — see custom.js for
   the matching meanMenuClose: '<i class="ri-close-line">' option). */
.mean-container a.meanmenu-reveal {
    width: 26px;
    height: 20px;
    padding: 0;
    /* The edge gap is set via meanRevealPositionDistance in custom.js, not here —
       the plugin writes right:... as an inline style, which an external
       stylesheet rule can't override short of !important. */
    /* Matches the vertical center of .auth-buttons--mobile .auth-btn (top:
       var(--mobile-bar-button-top) = 12px, height 31px → center at 27.5px),
       not the .mean-bar box's own 50%, which sat ~5px lower. */
    top: 17.5px;
    /* meanmenu.css's own @media(max-width:991px) rule for this same selector
       adds margin-top:-5px, silently shifting this out from under the `top`
       value above — cancel it out explicitly rather than fudge the number. */
    margin: 0;
}
/* The plugin's "<span /><span /><span />" option string isn't valid self-closing
   HTML, so the browser nests them (<span><span><span></span></span></span>)
   instead of making them siblings — these have to be targeted by nesting depth,
   not :nth-child. */
.mean-container a.meanmenu-reveal span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #010c22;
    border-radius: 2px;
}
/* Each span positions relative to its immediate (also absolutely-positioned)
   parent span, not the outer link, so these offsets don't accumulate to 0/9/18
   on their own — the 3rd span's 9px is relative to the 2nd span's own 9px. */
.mean-container a.meanmenu-reveal > span { top: 0; margin: 0; }
.mean-container a.meanmenu-reveal > span > span { top: 9px; margin: 0; }
.mean-container a.meanmenu-reveal > span > span > span { top: 9px; margin: 0; }
.mean-container a.meanmenu-reveal.meanclose {
    text-indent: 0;
    font-size: 22px;
    line-height: 20px;
    text-align: center;
    color: #010c22;
}

/* Plain-English summary under a service's heading on the plan and requirements pages */
.service-summary {
    max-width: 720px;
    margin: 8px 0 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #4F5D57;
}

/* Images that now declare width/height: keep their proportions when CSS shrinks them */
.service-item-img img,
.user-all-img img {
    height: auto;
}

/* Pop-up icons declare width/height (partials/status-modal-icon); keep their proportions */
.status-modal-icon {
    height: auto;
}
