/*!
 * Weldesign Elementor Widgets — site-wide page helpers.
 * Loaded on every front-end page (not scoped to the widgets).
 */

/* Utility: centred block with vertical breathing room (e.g. "Coming Soon!" location pages). */
.center{text-align:center;margin:70px 0}

/* "Weldesign Full Width" page template (Site Map page). */
.wd-full-width-template{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);background:#fff}
.wd-fw-inner{display:block;width:calc(100% - clamp(20px,3.3vw,64px) * 2);max-width:1600px;margin-inline:auto;padding-block:clamp(32px,4vw,64px)}
.wd-fw-title{font-family:'Barlow Condensed','Arial Narrow',Arial,sans-serif;font-weight:800;font-size:clamp(34px,4vw,56px);line-height:1.05;color:#141414;margin:0 0 clamp(20px,2vw,32px)}
.wd-fw-inner .elementor-section.elementor-section-boxed>.elementor-container,
.wd-fw-inner .e-con-boxed>.e-con-inner{max-width:none}
.wd-fw-inner .e-con{--content-width:100%}

/* Menus inside the template: an open, vertical, nested list with round bullets. */
.wd-fw-inner .elementor-menu-toggle,
.wd-fw-inner .elementor-nav-menu--dropdown.elementor-nav-menu__container{display:none!important}
.wd-fw-inner .elementor-nav-menu--main{display:block!important}
.wd-fw-inner :is(.elementor-nav-menu,ul.menu,.wp-block-navigation__container,.wp-block-page-list),
.wd-fw-inner :is(.elementor-nav-menu,ul.menu,.wp-block-navigation__container,.wp-block-page-list) ul{display:block!important;position:static!important;width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;margin:0!important;padding:0!important;list-style:none!important;background:none!important;border:0!important;box-shadow:none!important;opacity:1!important;visibility:visible!important;transform:none!important;overflow:visible!important}
.wd-fw-inner :is(.elementor-nav-menu,ul.menu,.wp-block-navigation__container,.wp-block-page-list) ul{margin-left:15px!important}
.wd-fw-inner :is(.elementor-nav-menu,ul.menu,.wp-block-navigation__container,.wp-block-page-list) li{display:block!important;position:relative!important;margin:0!important;padding:0 0 0 20px!important;list-style:none!important;background:none!important;border:0!important}
.wd-fw-inner :is(.elementor-nav-menu,ul.menu,.wp-block-navigation__container,.wp-block-page-list) li::before{content:"";position:absolute;left:0;top:19px;width:10px;height:10px;border-radius:50%;background:#e30613}
.wd-fw-inner :is(.elementor-nav-menu,ul.menu,.wp-block-navigation__container,.wp-block-page-list) a{display:inline-block!important;max-width:100%!important;margin:0!important;padding:11px 0!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;font-family:'Barlow',Arial,sans-serif!important;font-size:17px!important;font-weight:500!important;line-height:1.5!important;color:#141414!important;background:none!important;text-decoration:none!important;text-transform:none!important;letter-spacing:0!important}
.wd-fw-inner :is(.elementor-nav-menu,ul.menu,.wp-block-navigation__container,.wp-block-page-list) a:is(:hover,:focus-visible),
.wd-fw-inner :is(.elementor-nav-menu,ul.menu,.wp-block-navigation__container,.wp-block-page-list) .current-menu-item>a{color:#e30613!important}
.wd-fw-inner :is(.elementor-nav-menu,ul.menu,.wp-block-navigation__container,.wp-block-page-list) a::before,
.wd-fw-inner :is(.elementor-nav-menu,ul.menu,.wp-block-navigation__container,.wp-block-page-list) a::after,
.wd-fw-inner :is(.elementor-nav-menu,ul.menu,.wp-block-navigation__container,.wp-block-page-list) :is(.sub-arrow,.wp-block-navigation__submenu-icon){display:none!important}

/* Mobile: long menu labels wrap inside the viewport instead of overflowing it (no sideways scroll). */
.wd-full-width-template{overflow-x:clip}
.wd-fw-inner,.wd-fw-inner :is(.elementor-widget-nav-menu,.elementor-widget-wp-widget-nav_menu,.elementor-widget-container,nav){min-width:0;max-width:100%}
@media (max-width:767px){
.wd-fw-inner{width:calc(100% - 32px)}
.wd-fw-inner :is(.elementor-nav-menu,ul.menu,.wp-block-navigation__container,.wp-block-page-list) ul{margin-left:8px!important}
.wd-fw-inner :is(.elementor-nav-menu,ul.menu,.wp-block-navigation__container,.wp-block-page-list) a{padding:9px 0!important;font-size:16px!important}
.wd-fw-inner :is(.elementor-nav-menu,ul.menu,.wp-block-navigation__container,.wp-block-page-list) li::before{top:16px}
}

/* Breadcrumb bar on the Site Map and "Coming Soon" pages (same look as the shop / 404 breadcrumb bar). */
.wd-page-crumbs{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);border-bottom:1px solid #e8e6e2;background:#fff}
.wd-page-crumbs-inner{width:calc(100% - clamp(20px,3.3vw,64px) * 2);max-width:1600px;margin-inline:auto;padding-block:14px}
.wd-page-crumbs ol{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0;font-family:'Barlow',Arial,sans-serif;font-size:13px;line-height:1.5;color:#5f5d5a}
.wd-page-crumbs li{margin:0;padding:0;list-style:none}
.wd-page-crumbs li+li::before{content:'/';margin-right:8px;color:#b5b2ad}
.wd-page-crumbs a{color:inherit;text-decoration:none}
.wd-page-crumbs a:is(:hover,:focus-visible){color:#e30613}
.wd-page-crumbs [aria-current]{color:#141414;font-weight:600}
.wd-fw-inner .wd-page-crumbs{margin-top:calc(clamp(32px,4vw,64px) * -1);margin-bottom:clamp(32px,4vw,64px)}
@media (max-width:767px){.wd-page-crumbs-inner{width:calc(100% - 32px)}}
@media (max-width:700px){.wd-page-crumbs-inner{padding-block:12px}}

/* Page title on the Site Map and "Coming Soon" pages is black (overrides Elementor's blue global "Primary" heading color). */
body.wd-crumbs-page :is(.wd-fw-title,.entry-title,.page-title),
body.wd-crumbs-page :is(.wd-fw-inner,[data-elementor-type="wp-page"],[data-elementor-type="single-page"],[data-elementor-type="single"]) .elementor-widget-heading .elementor-heading-title,
body.wd-crumbs-page :is(.wd-fw-inner,[data-elementor-type="wp-page"],[data-elementor-type="single-page"],[data-elementor-type="single"]) .elementor-widget-heading .elementor-heading-title a,
.wd-page-crumbs~* .elementor-widget-heading .elementor-heading-title,
.wd-page-crumbs~* .elementor-widget-heading .elementor-heading-title a{color:#141414!important}

/* Site Map page: the content starts on the same left edge as the header container ("Shop by Category").
   Top-level Elementor sections/containers drop their own side padding and any "stretch" offset, and when
   the page is not inside .wd-fw-inner (e.g. another template wraps it) they get the header's 1600px box. */
body.wd-full-width-page [data-elementor-type="wp-page"]>:is(.e-con,.elementor-section),
body.wd-full-width-page [data-elementor-type="wp-page"]>.elementor-section-wrap>.elementor-section{width:calc(100% - clamp(20px,3.3vw,64px) * 2)!important;max-width:1600px!important;margin-left:auto!important;margin-right:auto!important;left:auto!important;right:auto!important;padding-left:0!important;padding-right:0!important}
body.wd-full-width-page .wd-fw-inner [data-elementor-type="wp-page"]>:is(.e-con,.elementor-section),
body.wd-full-width-page .wd-fw-inner [data-elementor-type="wp-page"]>.elementor-section-wrap>.elementor-section{width:100%!important;max-width:100%!important}
body.wd-full-width-page [data-elementor-type="wp-page"]>.e-con>.e-con-inner,
body.wd-full-width-page [data-elementor-type="wp-page"] .elementor-section>.elementor-container{max-width:none!important;padding-left:0!important;padding-right:0!important}
body.wd-full-width-page [data-elementor-type="wp-page"] .elementor-section>.elementor-container>.elementor-column:first-child>.elementor-widget-wrap{padding-left:0!important}
@media (max-width:767px){
body.wd-full-width-page [data-elementor-type="wp-page"]>:is(.e-con,.elementor-section),
body.wd-full-width-page [data-elementor-type="wp-page"]>.elementor-section-wrap>.elementor-section{width:calc(100% - 32px)!important}
body.wd-full-width-page .wd-fw-inner [data-elementor-type="wp-page"]>:is(.e-con,.elementor-section),
body.wd-full-width-page .wd-fw-inner [data-elementor-type="wp-page"]>.elementor-section-wrap>.elementor-section{width:100%!important}
}

/* Site Map container = the converted pages' .wrap container (Services, Locations, Shop…): 1600px max,
   clamp(20px,3.3vw,64px) gutter (16px only at 370px and below), measured against the page width WITHOUT
   the vertical scrollbar. 100vw includes the scrollbar, which pushed the Site Map content ~8px left of the
   header and under the scrollbar, so the breakouts use the body's container width (cqw) where supported. */
body.wd-full-width-page{container-type:inline-size}
@supports (width:1cqw){
body.wd-full-width-page :is(.wd-full-width-template,.wd-page-crumbs){width:100cqw;max-width:100cqw;margin-left:calc(50% - 50cqw);margin-right:calc(50% - 50cqw)}
}
@media (max-width:767px){
.wd-fw-inner,.wd-page-crumbs-inner{width:calc(100% - clamp(20px,3.3vw,64px) * 2)}
body.wd-full-width-page [data-elementor-type="wp-page"]>:is(.e-con,.elementor-section),
body.wd-full-width-page [data-elementor-type="wp-page"]>.elementor-section-wrap>.elementor-section{width:calc(100% - clamp(20px,3.3vw,64px) * 2)!important}
body.wd-full-width-page .wd-fw-inner [data-elementor-type="wp-page"]>:is(.e-con,.elementor-section),
body.wd-full-width-page .wd-fw-inner [data-elementor-type="wp-page"]>.elementor-section-wrap>.elementor-section{width:100%!important}
}
@media (max-width:370px){
.wd-fw-inner,.wd-page-crumbs-inner{width:calc(100% - 32px)}
body.wd-full-width-page [data-elementor-type="wp-page"]>:is(.e-con,.elementor-section),
body.wd-full-width-page [data-elementor-type="wp-page"]>.elementor-section-wrap>.elementor-section{width:calc(100% - 32px)!important}
body.wd-full-width-page .wd-fw-inner [data-elementor-type="wp-page"]>:is(.e-con,.elementor-section),
body.wd-full-width-page .wd-fw-inner [data-elementor-type="wp-page"]>.elementor-section-wrap>.elementor-section{width:100%!important}
}

/* Same scale as the converted pages: their widgets (header, .crumbs-bar) use the density zoom below 1680px
   (assets/css/weldesign-system.css) and enlarge 13px text by --wdfs-sm below 1200px, so their gutter,
   1600px box and breadcrumb text shrink with it. The page breadcrumb bar follows the same steps (identical
   font size, padding and edge on every page) and the Site Map container uses the zoomed gutter/max-width,
   so it lines up with the header container at every width. */
:root{--wd-pz:1;--wd-pfs-sm:1}
@media (max-width:1680px){:root{--wd-pz:.94}}
@media (max-width:1600px){:root{--wd-pz:.9}}
@media (max-width:1599px){:root{--wd-pz:.88}}
@media (max-width:1366px){:root{--wd-pz:.82}}
@media (max-width:1280px){:root{--wd-pz:.78}}
@media (max-width:1199px){:root{--wd-pz:.86;--wd-pfs-sm:1.24}}
@media (max-width:1023px){:root{--wd-pz:.84;--wd-pfs-sm:1.26}}
@media (max-width:767px){:root{--wd-pz:.9;--wd-pfs-sm:1.2}}
.wd-page-crumbs-inner{zoom:var(--wd-pz);width:calc(100% - clamp(20px,3.3vw,64px) * 2);max-width:1600px}
.wd-page-crumbs ol{font-size:calc(13px * var(--wd-pfs-sm))}
.wd-fw-inner{width:calc(100% - clamp(20px,3.3vw,64px) * 2 * var(--wd-pz));max-width:calc(1600px * var(--wd-pz))}
body.wd-full-width-page [data-elementor-type="wp-page"]>:is(.e-con,.elementor-section),
body.wd-full-width-page [data-elementor-type="wp-page"]>.elementor-section-wrap>.elementor-section{width:calc(100% - clamp(20px,3.3vw,64px) * 2 * var(--wd-pz))!important;max-width:calc(1600px * var(--wd-pz))!important}
body.wd-full-width-page .wd-fw-inner [data-elementor-type="wp-page"]>:is(.e-con,.elementor-section),
body.wd-full-width-page .wd-fw-inner [data-elementor-type="wp-page"]>.elementor-section-wrap>.elementor-section{width:100%!important;max-width:100%!important}
@media (max-width:370px){
.wd-page-crumbs-inner{width:calc(100% - 32px)}
.wd-fw-inner{width:calc(100% - 32px * var(--wd-pz))}
body.wd-full-width-page [data-elementor-type="wp-page"]>:is(.e-con,.elementor-section),
body.wd-full-width-page [data-elementor-type="wp-page"]>.elementor-section-wrap>.elementor-section{width:calc(100% - 32px * var(--wd-pz))!important}
body.wd-full-width-page .wd-fw-inner [data-elementor-type="wp-page"]>:is(.e-con,.elementor-section),
body.wd-full-width-page .wd-fw-inner [data-elementor-type="wp-page"]>.elementor-section-wrap>.elementor-section{width:100%!important}
}

/* Sliders: no bullets; the arrows sit in the section heading at the top right (moved there by the script).
   Centred headings: arrows in the heading's right corner, level with the title; headings with a link
   (e.g. "View All"): arrows to the right of the link. Shown only while the slider is running. */
.sale-slider-nav:not(#wd) .sale-dots{display:none!important}
.has-slider-nav:not(#wd) > .sale-slider-nav{display:none!important;margin:0!important}
.has-slider-nav:not(#wd) > .sale-slider-nav.wd-nav-on{display:flex!important;align-items:center;justify-content:flex-end;gap:0}
.has-slider-nav.nav-corner:not(#wd){position:relative}
.has-slider-nav.nav-corner:not(#wd) > .sale-slider-nav{position:absolute;right:0;bottom:0;z-index:2}
.has-slider-nav.nav-inline:not(#wd){justify-content:flex-start}
.has-slider-nav.nav-inline:not(#wd) > .text-link{margin-left:auto}
.has-slider-nav.nav-inline:not(#wd) > .sale-slider-nav{flex-shrink:0;margin-left:20px!important;align-self:flex-end}
/* Phones: a centred heading keeps the title centred; the arrows go to the right just under it. */
@media (max-width:767px){
  .has-slider-nav.nav-corner:not(#wd){padding-bottom:56px}
  .has-slider-nav.nav-inline:not(#wd){flex-wrap:wrap;align-items:flex-end}
  .has-slider-nav.nav-inline:not(#wd) > .sale-slider-nav{margin-left:16px!important}
}
/* Phones (767px and below): slider arrows centred under the slider, above the section's button. */
@media (max-width:767px){
  .sale-slider-nav.wd-nav-bottom:not(#wd){display:none!important}
  .sale-slider-nav.wd-nav-bottom.wd-nav-on:not(#wd){display:flex!important;justify-content:center!important;align-items:center;gap:0;margin:18px 0 0!important;position:static}
  .brand-controls.wd-nav-bottom:not(#wd){display:flex;justify-content:center;align-items:center;gap:8px;margin:18px 0 4px;width:100%}
  .brand-controls.wd-nav-bottom:not(#wd) .brand-count{display:none}
  .has-slider-nav.nav-corner:not(#wd){padding-bottom:0}
}

/* Phones: a heading's link (e.g. "View All Services") stays on the left under the title. */
@media (max-width:767px){
  .has-slider-nav.nav-inline:not(#wd) > .text-link,.svc-head:not(#wd) > .text-link{margin-left:0!important;justify-self:start;align-self:flex-start}
  .has-slider-nav.nav-inline:not(#wd){justify-content:flex-start}
}
