/* =====================================================================
   WordPress / Elementor / Contact Form 7 glue for the Rise Local Biz design.
   (Design itself is in style.css — this file only neutralises wrappers.)
   ===================================================================== */

/* Elementor: our RLB widgets render complete sections, so the wrappers must add nothing. */
.elementor .rlb-flat,.elementor .e-con.rlb-flat{display:block!important;padding:0!important;margin:0!important;gap:0!important;max-width:none!important;width:100%!important;min-height:0!important;border:0!important;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;--gap:0px;--row-gap:0px;--column-gap:0px}
.elementor .rlb-flat > .e-con-inner{display:block!important;padding:0!important;max-width:none!important;gap:0!important}
.elementor .elementor-widget[class*="elementor-widget-rlb-"]{margin:0!important;padding:0!important;width:100%!important;max-width:none!important}
.elementor .elementor-widget[class*="elementor-widget-rlb-"] > .elementor-widget-container{margin:0;padding:0}
.elementor .elementor-element.elementor-widget[class*="elementor-widget-rlb-"]:not(:last-child){margin-block-end:0!important}

/* Service / industry / location pages: sidebar + content (two Elementor containers inside .rlb-detail). */
.elementor .rlb-detail,.elementor .e-con.rlb-detail{display:grid!important;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:48px!important;max-width:1264px!important;width:100%!important;margin:0 auto!important;padding:100px 12px!important;border:0!important}
@media (min-width:1400px){.elementor .rlb-detail,.elementor .e-con.rlb-detail{max-width:1304px!important}}
.elementor .rlb-detail > .e-con-inner{display:contents!important}
.elementor .rlb-side,.elementor .rlb-main,.elementor .e-con.rlb-side,.elementor .e-con.rlb-main{display:block!important;padding:0!important;margin:0!important;width:auto!important;max-width:none!important;min-width:0!important;border:0!important;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px}
.elementor .rlb-side > .e-con-inner,.elementor .rlb-main > .e-con-inner{display:block!important;padding:0!important;max-width:none!important}
.elementor .rlb-side .detail-side{position:static}
/* sticky sidebar: the Elementor widget wrapper is what sticks (its parent column runs the full page height) */
.elementor .rlb-side > .elementor-element{position:sticky;top:var(--rlb-side-top,110px)}
@media (max-width:991px){
  .elementor .rlb-detail,.elementor .e-con.rlb-detail{grid-template-columns:1fr;padding:70px 12px!important}
  .elementor .rlb-side{order:2}
  .elementor .rlb-side > .elementor-element{position:static}
}

/* Parts of one section split across several widgets */
.section.join-next{padding-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}
.section.join-prev{padding-top:32px;border-top-left-radius:0;border-top-right-radius:0}
.detail-block.detail-part{margin-top:-36px}
.part-title{font-size:1.5rem;margin:0 0 1rem}

/* Admin-bar offset for the floating header */
.admin-bar .site-header.scrolled{top:44px}
@media (max-width:782px){.admin-bar .site-header.scrolled{top:58px}}

/* Contact Form 7 inside our cards */
.wpcf7 form .wpcf7-response-output{margin:16px 0 0;border-radius:12px;padding:12px 16px;font-size:14px}
.wpcf7 form.sent .wpcf7-response-output{border-color:#2e7d32;color:#2e7d32}
.wpcf7-form-control-wrap{display:block}
.wpcf7-not-valid-tip{font-size:13px;margin-top:4px;color:#b3261e}
.wpcf7-form .form-control.wpcf7-not-valid,.wpcf7-form .form-select.wpcf7-not-valid{border-color:#b3261e}
.wpcf7-spinner{display:block;margin:10px auto 0}
.rlb-consent .wpcf7-list-item{margin:0;display:block}
.rlb-consent label{display:flex;gap:10px;align-items:flex-start;font-size:14px;cursor:pointer}
.rlb-consent input[type=checkbox],.wpcf7-checkbox input,.wpcf7-radio input{width:1.1em;height:1.1em;margin-top:.2em;accent-color:var(--p);flex:0 0 auto}
.wpcf7-checkbox,.wpcf7-radio{display:flex;flex-wrap:wrap;gap:8px 20px}
.wpcf7-radio{flex-direction:column;gap:6px}
.wpcf7-checkbox .wpcf7-list-item,.wpcf7-radio .wpcf7-list-item{margin:0}
.wpcf7-checkbox label,.wpcf7-radio label{display:flex;gap:8px;align-items:center;font-size:14px;cursor:pointer}
.wpcf7 .btn-rlb.w-100{display:flex}
.wpcf7 input[type=submit].btn-rlb{width:100%;justify-content:center;cursor:pointer}

/* Blog pagination */
.rlb-pagination .nav-links{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.rlb-pagination .page-numbers{min-width:44px;height:44px;border-radius:22px;display:inline-flex;align-items:center;justify-content:center;background:#fff;color:var(--p);font-weight:600;padding:0 14px}
.rlb-pagination .page-numbers.current,.rlb-pagination a.page-numbers:hover{background:var(--p);color:#fff}

/* Images coming from the media library keep the same frames */
.post-card .cover img,.photo img,.img-frame img,.ind-card img,.project-card img{max-width:none}
.post-body img{max-width:100%;height:auto;border-radius:14px}
.post-body .alignwide,.post-body .alignfull{max-width:100%}

/* Elementor editor: show empty RLB widgets */
.elementor-editor-active .rlb-empty{padding:30px;border:2px dashed var(--line);text-align:center;color:var(--text)}

/* each RLB widget sits in its own Elementor wrapper: restore spacing between blocks in the right column */
.elementor .rlb-main .detail-block{margin-bottom:60px}
.elementor .rlb-main .elementor-element:last-child .detail-block{margin-bottom:0}
.elementor .rlb-main .detail-block.detail-part{margin-top:-36px}
/* CF7 disables the submit button until the consent box is ticked: keep our colours */
.wpcf7 .btn-rlb:disabled,.wpcf7 .btn-rlb[disabled]{background:var(--p)!important;color:#fff!important;border-color:var(--p)!important;opacity:.55}

/* Guard against Elementor "Site Settings" (kit) fonts/colours from an older design */
body.rlb{font-family:var(--font);color:var(--text)}
body.rlb h1,body.rlb h2,body.rlb h3,body.rlb h4,body.rlb h5,body.rlb h6{font-family:var(--font-head)}
body.rlb .dark-panel h1,body.rlb .dark-panel h2,body.rlb .dark-panel h3,body.rlb .dark-panel h4{color:#fff}
body.rlb .btn-rlb{color:#fff}
body.rlb .btn-rlb-outline{color:var(--p)}
body.rlb .btn-white,body.rlb .dark-panel .btn-rlb,body.rlb .side-cta .btn-rlb{color:var(--p)}
body.rlb .dark-panel .btn-rlb-outline,body.rlb .page-hero .btn-rlb-outline{color:#fff}
body.rlb .btn-rlb:hover,body.rlb .btn-rlb-outline:hover{color:#fff}
body.rlb .dark-panel .btn-rlb:hover,body.rlb .dark-panel .btn-rlb-outline:hover,body.rlb .btn-white:hover{color:var(--p)}
body.rlb .navbar .nav-link{color:#fff}
body.rlb .site-footer a{color:rgba(255,255,255,.85)}
body.rlb .rlb-card .card-link,body.rlb .read-more{color:var(--heading)}
body.rlb .dark-panel .rlb-card .card-link{color:#fff}
body.rlb a.chip{color:var(--heading)}
body.rlb a.chip:hover{color:#fff}
body.rlb .dropdown-item{color:var(--heading)}

/* Elementor editor preview: widgets are loaded after the page, so show "reveal" items straight away */
.elementor-editor-active .reveal,.elementor-editor-preview .reveal{opacity:1!important;transform:none!important}
