/* ModularWP Builder — Frontend CSS */
.mwpb-content { width: 100%; }

/* ── Layout ───────────────────────────────────────────────────────── */
.mwpb-row { display: flex; flex-wrap: wrap; width: 100%; position: relative; }
.mwpb-row--full { width: 100vw; margin-left: calc(50% - 50vw); }
/* Default inner container — keeps content at theme width. Bypassed by full_width / stretch_content. */
.mwpb-row__container { width: 100%; max-width: var(--mwp-container, 1200px); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: var(--mwpb-gap, 0); align-items: var(--mwpb-valign, stretch); justify-content: var(--mwpb-halign, flex-start); }
/* stretch_content: no max-width cap */
.mwpb-row--stretch > .mwpb-row__container { max-width: 100%; }
.mwpb-section { position: relative; width: 100%; }
.mwpb-col { box-sizing: border-box; padding: 15px; }
.mwpb-row-inner { display: flex; flex-wrap: wrap; width: 100%; }

/* ── Typography ───────────────────────────────────────────────────── */
.mwpb-heading { margin-top: 0; margin-bottom: .5em; line-height: 1.2; }
.mwpb-text { line-height: 1.6; }
.mwpb-text p:last-child { margin-bottom: 0; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.mwpb-btn-wrap { display: flex; }
.mwpb-btn-wrap--center { justify-content: center; }
.mwpb-btn-wrap--right  { justify-content: flex-end; }
.mwpb-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 10px 22px; border-radius: 5px; font-weight: 600;
    font-size: 14px; text-decoration: none; cursor: pointer;
    transition: all .2s; border: 2px solid transparent;
}
.mwpb-btn--primary  { background: #2563eb; color: #fff; border-color: #2563eb; }
.mwpb-btn--primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.mwpb-btn--secondary { background: #64748b; color: #fff; border-color: #64748b; }
.mwpb-btn--secondary:hover { background: #475569; }
.mwpb-btn--outline  { background: transparent; color: #2563eb; border-color: #2563eb; }
.mwpb-btn--outline:hover { background: #2563eb; color: #fff; }
.mwpb-btn--ghost    { background: transparent; color: inherit; border-color: transparent; }
.mwpb-btn--ghost:hover { background: rgba(0,0,0,.06); }
.mwpb-btn--danger   { background: #dc2626; color: #fff; border-color: #dc2626; }
.mwpb-btn--sm  { padding: 6px 14px; font-size: 12px; }
.mwpb-btn--lg  { padding: 14px 30px; font-size: 16px; }

/* ── Image ────────────────────────────────────────────────────────── */
.mwpb-image { display: block; }
.mwpb-image img { max-width: 100%; height: auto; display: block; }
.mwpb-image--center { margin: 0 auto; }
.mwpb-image--right  { margin-left: auto; }
.mwpb-image--rounded img { border-radius: 50%; }

/* ── Spacer / Separator ───────────────────────────────────────────── */
.mwpb-spacer { display: block; }
.mwpb-separator { border: none; border-top: 1px solid #e2e8f0; display: block; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.mwpb-hero { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mwpb-hero__overlay { position: absolute; inset: 0; }
.mwpb-hero__inner { position: relative; z-index: 1; padding: 60px 30px; max-width: 800px; width: 100%; }
.mwpb-hero--center .mwpb-hero__inner { text-align: center; }
.mwpb-hero--right  .mwpb-hero__inner { text-align: right; margin-left: auto; }
.mwpb-hero__title    { font-size: clamp(28px,5vw,56px); font-weight: 800; margin: 0 0 16px; line-height: 1.1; }
.mwpb-hero__subtitle { font-size: clamp(14px,2vw,20px); opacity: .85; margin: 0 0 28px; line-height: 1.5; }
.mwpb-hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.mwpb-hero--center .mwpb-hero__btns { justify-content: center; }

/* ── Icon ─────────────────────────────────────────────────────────── */
.mwpb-icon { display: inline-flex; }

/* ── Progress ─────────────────────────────────────────────────────── */
.mwpb-progress { margin-bottom: 12px; }
.mwpb-progress__label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.mwpb-progress__track { border-radius: 999px; overflow: hidden; height: 10px; }
.mwpb-progress__bar   { height: 100%; border-radius: 999px; width: 0; transition: width 1.2s ease; }

/* ── Accordion ────────────────────────────────────────────────────── */
.mwpb-accordion { border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden; }
.mwpb-accordion__item { border-bottom: 1px solid #e2e8f0; }
.mwpb-accordion__item:last-child { border-bottom: none; }
.mwpb-accordion__toggle {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 14px 18px; background: none; border: none;
    cursor: pointer; font-size: 14px; font-weight: 600; text-align: left;
    color: inherit; transition: background .15s;
}
.mwpb-accordion__toggle:hover { background: #f8fafc; }
.mwpb-accordion__toggle i { transition: transform .25s; flex-shrink: 0; }
.mwpb-accordion__item.is-open .mwpb-accordion__toggle i { transform: rotate(180deg); }
.mwpb-accordion__body { display: none; padding: 14px 18px; border-top: 1px solid #f1f5f9; }
.mwpb-accordion__item.is-open .mwpb-accordion__body { display: block; }

/* ── Tabs ─────────────────────────────────────────────────────────── */
.mwpb-tabs-nav { display: flex; border-bottom: 2px solid #e2e8f0; }
.mwpb-tabs-nav-btn {
    padding: 10px 18px; border: none; background: none; cursor: pointer;
    font-size: 14px; color: #64748b; border-bottom: 2px solid transparent;
    margin-bottom: -2px; font-weight: 500;
}
.mwpb-tabs-nav-btn.is-active { color: #2563eb; border-bottom-color: #2563eb; }
.mwpb-tab { display: none; padding: 18px 0; }
.mwpb-tab.is-active { display: block; }



/* ── CTA v2.7 ─────────────────────────────────────────────────────── */
.mwpb-cta { padding: 48px 32px; background: #f8fafc; border-radius: 8px; }
.mwpb-cta--center { text-align: center; }
.mwpb-cta--right  { text-align: right; }
.mwpb-cta__title  { font-size: 28px; font-weight: 800; margin: 0 0 12px; }
.mwpb-cta__text   { font-size: 16px; margin-bottom: 24px; opacity: .8; }
.mwpb-cta__btns   { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.mwpb-cta--center .mwpb-cta__btns { justify-content: center; }
.mwpb-cta--right  .mwpb-cta__btns { justify-content: flex-end; }

/* ── Lists v2.7 ───────────────────────────────────────────────────── */
.mwpb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mwpb-list li { padding: 4px 0 4px 28px; position: relative; line-height: 1.5; }
/* CSS-var icon color - falls back to element-specific color */
.mwpb-list--check    li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: var(--mwpb-list-icon-color, #22c55e); font-size: 12px; top: 7px; }
.mwpb-list--bullet   li::before { content: '\f111'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; font-size: 8px; top: 9px; color: var(--mwpb-list-icon-color, #3b82f6); }
.mwpb-list--arrow    li::before { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; font-size: 10px; top: 8px; color: var(--mwpb-list-icon-color, #3b82f6); }
.mwpb-list--star     li::before { content: '\f005'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; font-size: 11px; top: 7px; color: var(--mwpb-list-icon-color, #f59e0b); }
.mwpb-list--x        li::before { content: '\f00d'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; font-size: 12px; top: 7px; color: var(--mwpb-list-icon-color, #ef4444); }
.mwpb-list--numbered { counter-reset: li; }
.mwpb-list--numbered li::before { counter-increment: li; content: counter(li) '.'; position: absolute; left: 0; font-weight: 700; font-size: 13px; color: var(--mwpb-list-icon-color, #3b82f6); }
/* Per-item icon override - hide ::before when .mwpb-list__icon present */
.mwpb-list li:has(.mwpb-list__icon)::before { display: none; }
.mwpb-list__icon { position: absolute; left: 0; top: 6px; font-size: 13px; color: var(--mwpb-list-icon-color, #3b82f6); }

/* ── Icon Box layouts v2.7 ────────────────────────────────────────── */
.mwpb-icon-box { padding: 20px; }
.mwpb-icon-box--center { text-align: center; }
.mwpb-icon-box--right  { text-align: right; }
.mwpb-icon-box__icon  { font-size: 32px; margin-bottom: 12px; display: inline-flex; align-items: center; justify-content: center; }
.mwpb-icon-box__title { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.mwpb-icon-box__text  { line-height: 1.6; }
/* Icon position: left/right of title */
.mwpb-icon-box--left.mwpb-icon-box--left > .mwpb-icon-box__icon { float: left; margin: 0 14px 0 0; }
.mwpb-icon-box--right.mwpb-icon-box--right > .mwpb-icon-box__icon { float: right; margin: 0 0 0 14px; }
.mwpb-icon-box--left.mwpb-icon-box--left::after,
.mwpb-icon-box--right.mwpb-icon-box--right::after { content: ''; display: table; clear: both; }

/* ── Counter alignment v2.7 ───────────────────────────────────────── */
.mwpb-counter { text-align: center; padding: 20px; }
.mwpb-counter--left   { text-align: left; }
.mwpb-counter--right  { text-align: right; }
.mwpb-counter__number { font-size: 48px; font-weight: 800; line-height: 1; }
.mwpb-counter__label  { font-size: 14px; color: #64748b; margin-top: 6px; }

/* ── Testimonial layouts v2.7 ─────────────────────────────────────── */
.mwpb-testimonial { padding: 24px; background: #f8fafc; border-radius: 8px; }
.mwpb-testimonial--minimal { background: transparent; padding: 0; }
.mwpb-testimonial--centered { text-align: center; }
.mwpb-testimonial--centered .mwpb-testimonial__author { justify-content: center; }
.mwpb-testimonial__stars { font-size: 16px; margin-bottom: 12px; }
.mwpb-testimonial__stars .fa-star { color: #f59e0b; }
.mwpb-testimonial__stars .fa-star:not(.fa) { color: #cbd5e1; }
.mwpb-testimonial__quote { margin: 0 0 16px; font-size: 15px; line-height: 1.7; font-style: italic; }
.mwpb-testimonial__author { display: flex; align-items: center; gap: 12px; }
.mwpb-testimonial__photo  { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mwpb-testimonial__author strong { display: block; font-size: 14px; font-weight: 700; }
.mwpb-testimonial__author span   { font-size: 12px; color: #64748b; }

/* ── Video / Map ──────────────────────────────────────────────────── */
.mwpb-video-wrap { position: relative; overflow: hidden; }
.mwpb-video-wrap iframe { width: 100%; display: block; }
.mwpb-map { overflow: hidden; border-radius: 6px; }
.mwpb-map iframe { width: 100%; display: block; }

@media (max-width: 768px) {
    .mwpb-row__container { flex-direction: column; }
    .mwpb-row--rev-mobile > .mwpb-row__container { flex-direction: column-reverse; }
    .mwpb-col   { flex: 0 0 100% !important; }
    .mwpb-hero__inner { padding: 40px 20px; }
    .mwpb-cta { padding: 32px 20px; }
    .mwpb-cta__btns { flex-direction: column; align-items: stretch; }
    .mwpb-cta__btns .mwpb-btn { text-align: center; justify-content: center; }
    .mwpb-icon-box--left > .mwpb-icon-box__icon,
    .mwpb-icon-box--right > .mwpb-icon-box__icon { float: none; margin: 0 0 12px 0; }
    .mwpb-counter__number { font-size: 36px; }
}
