/* WellHeld public site — responsive/readability enhancement layer (UI-only) */
:root{--wh-radius:16px;--wh-shadow:0 12px 34px rgba(15,23,42,.07);--wh-content:1180px;--wh-reading:820px}
html,body{max-width:100%}
body{font-size:16px;line-height:1.65}
.wrap{width:min(100% - 32px,var(--wh-content));max-width:var(--wh-content);padding-left:0;padding-right:0}
p{overflow-wrap:anywhere}
main p,main li{font-size:clamp(15px,1vw,17px)}
.reading-width,.service-copy,.legal-copy,.page-copy{max-width:var(--wh-reading);margin-left:auto;margin-right:auto}
header{backdrop-filter:saturate(140%) blur(10px)}
.nav{width:min(100% - 28px,1500px);padding:13px 0;gap:20px}
.navlinks{gap:clamp(8px,1.3vw,22px)}
.navlinks>a,.navlinks>.has-drop>a{border-radius:8px;padding:9px 10px}
.call-btn,.btn,.primary-btn,.secondary-btn{border-radius:10px!important}
.hero{padding:clamp(58px,8vw,96px) 0 clamp(50px,7vw,82px)}
.hero h1{font-size:clamp(36px,5.4vw,70px);line-height:1.02}
.hero p{max-width:760px;font-size:clamp(16px,1.5vw,20px)}
.card,.service-card,.job-card,.feature-card,.panel{border-radius:var(--wh-radius);box-shadow:var(--wh-shadow)}
.service-grid,.cards-grid,.job-grid{gap:clamp(16px,2vw,26px)}
.service-detail-content,.service-detail .wrap{max-width:1180px}
.service-detail-copy,.service-body-copy{max-width:850px}
.service-hero h1,.service-hero p{color:#fff!important;text-shadow:0 1px 1px rgba(0,0,0,.2)}
input,select,textarea,button{max-width:100%;font:inherit}
input,select,textarea{min-height:44px}
.table-wrap{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
img{height:auto}
@media(max-width:1024px){.navlinks{gap:6px}.navlinks>a,.navlinks>.has-drop>a{padding:8px 7px;font-size:13px}.call-btn{margin-left:5px;padding:9px 13px}.team-showcase-grid{gap:18px!important}}
@media(max-width:820px){.navlinks,.nav>.call-btn{display:none!important}.mobile-toggle{display:inline-flex!important;align-items:center;justify-content:center;border-radius:10px;min-width:44px;min-height:44px}.mobile-menu{background:var(--paper);box-shadow:0 18px 34px rgba(15,23,42,.12)}.mobile-menu.open,.mobile-menu[aria-hidden="false"]{display:block}.mobile-menu a{font-weight:650}.wrap{width:min(100% - 28px,var(--wh-content))}.hero{padding-top:56px}.team-showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.team-slot-photo,.team-slot-photo.placeholder{height:360px!important}}
@media(max-width:560px){body{font-size:15px}.wrap{width:min(100% - 22px,var(--wh-content))}.brand{font-size:16px}.nav{width:calc(100% - 20px)}.hero h1{font-size:clamp(34px,12vw,52px)}.team-showcase{padding:54px 0!important}.team-showcase-grid{grid-template-columns:1fr!important}.team-slot-photo,.team-slot-photo.placeholder{height:min(112vw,450px)!important}.team-slot-name{font-size:24px!important}.topbar .wrap{padding:8px 0;gap:10px}.topbar{font-size:11px}.hero-actions,.actions,.job-actions{flex-direction:column;align-items:stretch}.hero-actions a,.actions a,.actions button,.job-actions a,.job-actions button{width:100%;justify-content:center;text-align:center}}
@media(max-width:390px){.wrap{width:calc(100% - 18px)}.hero{padding-top:46px}.team-slot-photo,.team-slot-photo.placeholder{height:118vw!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}


/* 2026-09-29 mobile navigation + services layout correction */
.mobile-menu{
  box-sizing:border-box;
  width:100%;
}

@media(max-width:1220px){
  header .mobile-menu.open,
  header .mobile-menu[aria-hidden="false"]{
    display:flex!important;
    flex-direction:column;
    gap:0!important;
  }

  header .mobile-menu{
    background:#07101f!important;
    border-top:1px solid rgba(212,175,55,.28)!important;
    box-shadow:0 18px 34px rgba(2,6,23,.22)!important;
    padding:8px clamp(16px,4vw,28px) 14px!important;
    color:#fff!important;
  }

  header .mobile-menu a{
    display:flex!important;
    align-items:center;
    min-height:50px;
    width:100%;
    box-sizing:border-box;
    margin:0!important;
    padding:12px 4px!important;
    color:#f8fafc!important;
    background:transparent!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.11)!important;
    border-radius:0!important;
    font-size:16px!important;
    font-weight:650!important;
    line-height:1.3!important;
    text-decoration:none!important;
    opacity:1!important;
  }

  header .mobile-menu a:last-child{border-bottom:0!important}
  header .mobile-menu a:hover,
  header .mobile-menu a:focus-visible{
    color:#f1c94a!important;
    background:rgba(255,255,255,.055)!important;
    outline:0;
  }
  header .mobile-menu a:focus-visible{box-shadow:inset 3px 0 0 #d4af37}
  header .mobile-menu a[aria-current="page"]{
    color:#f1c94a!important;
    box-shadow:inset 3px 0 0 #d4af37;
    padding-left:14px!important;
  }
}

/* Services listing: remove the desktop minimum column width that overflowed phones. */
@media(max-width:820px){
  .section .service-grid,
  .service-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    gap:18px!important;
    margin-left:0!important;
    margin-right:0!important;
    transform:none!important;
  }

  .service-grid > *,
  .service-grid .service-card,
  .service-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    margin-left:0!important;
    margin-right:0!important;
    transform:none;
  }

  .service-card:hover{transform:translateY(-3px)!important}

  .section-head{
    width:100%;
    max-width:760px;
    margin-left:auto;
    margin-right:auto;
    margin-bottom:clamp(28px,7vw,44px)!important;
  }
  .section-head h2{
    max-width:100%;
    font-size:clamp(34px,10vw,54px)!important;
    line-height:1.05!important;
    letter-spacing:.01em!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    text-wrap:balance;
  }
  .section-head p{
    max-width:620px!important;
    padding:0!important;
    font-size:clamp(16px,4.5vw,19px)!important;
    line-height:1.55!important;
    text-wrap:pretty;
  }

  .service-card{
    padding:clamp(24px,7vw,38px)!important;
    border-radius:18px!important;
  }
  .service-card h3{
    max-width:100%;
    margin:0 0 14px!important;
    font-size:clamp(24px,7vw,34px)!important;
    line-height:1.12!important;
    letter-spacing:0!important;
    overflow-wrap:normal;
    word-break:normal;
  }
  .service-card p{
    max-width:100%;
    margin:0 0 18px!important;
    font-size:clamp(15px,4.2vw,18px)!important;
    line-height:1.6!important;
    overflow-wrap:break-word;
  }
  .service-card a,
  .dynamic-service-card-link{
    display:inline-flex;
    max-width:100%;
    align-items:center;
    overflow-wrap:anywhere;
  }
}

@media(max-width:560px){
  .section{padding-left:12px!important;padding-right:12px!important}
  .section > .wrap{width:100%!important;max-width:100%!important}
  .section-head h2{font-size:clamp(32px,11vw,46px)!important}
  .service-card{padding:24px 20px!important}
  .service-card h3{font-size:clamp(23px,7.2vw,30px)!important}
}

@media(max-width:390px){
  header .mobile-menu{padding-left:14px!important;padding-right:14px!important}
  .section{padding-left:10px!important;padding-right:10px!important}
  .service-card{padding:22px 18px!important}
}

/* Collapsed-header width guard: prevents brand/CTA from forcing document overflow. */
@media(max-width:1220px){
  header .nav{
    box-sizing:border-box;
    min-width:0;
  }
  header .nav > .call-btn{display:none!important}
  header .nav .brand{
    min-width:0;
    max-width:calc(100% - 64px);
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
  }
  header .nav .brand .cms-brand-logo{
    width:auto;
    max-width:min(190px,58vw);
    max-height:52px;
  }
  header .mobile-toggle{
    flex:0 0 auto;
    margin-left:auto;
  }
}
@media(max-width:390px){
  header .nav .brand{font-size:13px!important;max-width:calc(100% - 58px)}
  header .nav .brand .cms-brand-logo{max-width:min(175px,56vw)}
}
@media(max-width:1220px){
  header .nav .brand{max-width:calc(100% - 100px)}
}
@media(max-width:390px){
  header .nav .brand{max-width:calc(100% - 96px)}
}


/* 2026-09-29 full-site responsive audit */
/* Presentation-only safeguards shared by every public/CMS page. */
*,*::before,*::after{box-sizing:border-box}
html{max-width:100%}
body{max-width:100%;margin:0}
main,header,footer,section,.section,.page-hero,.wrap,.wide-wrap{min-width:0}
.wrap,.wide-wrap{box-sizing:border-box}
.service-grid>*,.service-grid-3>*,.cards-grid>*,.filter-grid>*,.form-grid>*,.faq-cols>*,.team-grid>*,.team-showcase-grid>*,.experience-shell>*,.experience-stats>*,.foot-grid>*,.cms-team-grid>*,.cms-gallery-block>*,.cms-service-gallery>*,.cms-public-contact-grid>*{min-width:0}
img,svg,video,canvas,iframe{max-width:100%}
input,select,textarea,button{box-sizing:border-box}
button,a,.btn,.btn-primary,.btn-ghost,.call-btn,.submit-btn{overflow-wrap:anywhere}
.cms-rich pre,.cms-rich code{max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.cms-rich table{max-width:100%}
.cms-rich td,.cms-rich th{overflow-wrap:anywhere}

/* Keep page-level text readable instead of stretching across large displays. */
.page-hero .wrap,.section>.wrap,.cms-block-hero .wrap{width:min(100% - 32px,1120px)}
.page-hero p,.section-head p,.cms-block-hero p,.cms-rich>p,.legal p,.legal li{overflow-wrap:anywhere}
.section-head h1,.section-head h2,.page-hero h1,.cms-block-hero h2,.cta-band h2{overflow-wrap:normal;word-break:normal;text-wrap:balance}

/* Service/CMS details: media and content never establish an oversized min-width. */
.cms-service-detail,.cms-feature-card,.cms-company-card,.cms-city-card,.cms-contact-block,.cms-public-contact,.cms-cta{width:100%;max-width:100%;min-width:0}
.cms-service-detail>img,.cms-feature-card img,.cms-image-block img,.cms-hero-image{display:block;max-width:100%;height:auto}
.cms-service-gallery,.cms-gallery-block{min-width:0}
.cms-chip-list,.cms-social-block,.wellheld-social-links{max-width:100%}
.cms-chip-list>*{max-width:100%;overflow-wrap:anywhere}

/* Forms / filters / modals use the available width and scroll only inside data areas. */
.form-shell,.order-section .form-shell,.modal-card{width:100%;max-width:100%;min-width:0}
.form-grid,.filter-grid,.cards-grid{min-width:0}
.form-grid input,.form-grid select,.form-grid textarea,.filter-grid input,.filter-grid select,.filter-grid button{width:100%;min-width:0}
.modal{padding:clamp(10px,3vw,24px)}
.modal-card{width:min(720px,calc(100vw - 20px));max-height:calc(100dvh - 20px);overflow:auto}

/* Safety page had a mobile 100vw hero nested inside the document; use the real container width. */
body.safety-pro-page .safety-hero-layout{width:100%!important;max-width:100%!important;min-width:0!important}
body.safety-pro-page .safety-hero-copy{min-width:0}
body.safety-pro-page .safety-card-grid>*{min-width:0}
body.safety-pro-page .safety-callout{max-width:100%;min-width:0}

/* Footer is allowed to stack without forcing columns wider than the viewport. */
footer>.wrap,footer .wrap{max-width:100%}
footer .foot-grid{min-width:0}
footer .foot-grid>*{min-width:0}
footer a,footer p,footer li{overflow-wrap:anywhere}
footer .cms-brand-logo{max-width:min(190px,70vw)}

@media(max-width:1024px){
  .page-hero{padding:clamp(44px,7vw,72px) 0!important}
  .page-hero h1{font-size:clamp(32px,6vw,52px)!important;line-height:1.05!important}
  .section{padding-top:clamp(42px,6vw,64px);padding-bottom:clamp(42px,6vw,64px)}
  .cta-band{padding:clamp(44px,6vw,64px) 20px!important}
  .cta-band h2{font-size:clamp(28px,5vw,40px)!important}
  .experience-shell{gap:clamp(22px,4vw,42px)!important}
}

@media(max-width:820px){
  /* Public header: one compact row + off-row menu. */
  header .nav{width:calc(100% - 24px)!important;max-width:100%!important;padding:10px 0!important;gap:10px!important}
  header .brand{flex:1 1 auto!important;min-width:0!important;max-width:calc(100% - 82px)!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  header .brand .cms-brand-logo{max-width:min(190px,58vw)!important;max-height:48px!important;object-fit:contain}
  header .mobile-toggle{display:inline-flex!important;flex:0 0 auto;min-width:58px!important;min-height:44px!important;padding:0 10px!important;align-items:center;justify-content:center}
  header .mobile-menu{width:100%!important;max-width:100%!important}

  .page-hero .wrap,.section>.wrap,.cms-block-hero .wrap{width:min(100% - 28px,1120px)}
  .section-head{max-width:100%!important}
  .section-head h2{font-size:clamp(30px,8vw,46px)!important;line-height:1.07!important}
  .section-head p{font-size:clamp(15px,3.8vw,18px)!important;line-height:1.6!important}

  .service-grid,.service-grid-3,.cards-grid,.cms-service-grid{grid-template-columns:minmax(0,1fr)!important}
  .service-card{min-height:0!important}
  .service-card,.cms-team-card,.cms-feature-card{max-width:100%!important}

  .filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .filter-grid>*{min-width:0}
  .form-grid{grid-template-columns:1fr!important}
  .form-grid .full{grid-column:auto!important}

  .cms-service-gallery,.cms-gallery-block{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .cms-team-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .cms-feature-card{display:grid!important;grid-template-columns:1fr!important;gap:16px!important}
  .cms-block-hero{padding:clamp(52px,10vw,76px) 0!important}
  .cms-block-hero h2{font-size:clamp(32px,8vw,52px)!important}
  .cms-public-page,.cms-service-detail{padding-left:0!important;padding-right:0!important}

  body.safety-pro-page .nav,
  body.safety-pro-page footer>.wrap,
  .safety-card-section>.wrap{width:calc(100% - 28px)!important;max-width:100%!important}
  body.safety-pro-page .safety-hero-layout{height:auto!important;min-height:360px!important}
  body.safety-pro-page .safety-hero-copy{padding:32px 22px!important}
  body.safety-pro-page .safety-hero-copy h1{font-size:clamp(34px,8vw,48px)!important}
  body.safety-pro-page .safety-card-grid{grid-template-columns:1fr!important}

  footer{padding-left:18px!important;padding-right:18px!important}
  footer .foot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px!important}
  footer .foot-bottom{gap:10px;flex-wrap:wrap}
}

@media(max-width:640px){
  .page-hero .wrap,.section>.wrap,.cms-block-hero .wrap{width:calc(100% - 22px)!important}
  .page-hero{padding:38px 0 32px!important}
  .page-hero h1{font-size:clamp(29px,9.5vw,42px)!important}
  .page-hero p{font-size:15px!important;line-height:1.6!important}
  .section{padding-left:0!important;padding-right:0!important}
  .section-head{margin-bottom:28px!important}
  .section-head h2{font-size:clamp(28px,9.2vw,40px)!important}
  .filter-grid,.cards-grid{grid-template-columns:1fr!important}
  .form-shell{padding:22px 16px!important;border-radius:16px!important}
  .form-shell h2{font-size:clamp(26px,8vw,36px)!important}
  .order-section{padding:42px 0!important}
  .cta-band .wrap{align-items:stretch!important;text-align:center!important}
  .cta-band .btn-primary{width:100%;justify-content:center}

  .auth-shell{max-width:100%!important}
  .auth-tabs{max-width:100%;min-width:0}
  .auth-tab{min-width:0}

  .cms-service-gallery,.cms-gallery-block,.cms-team-grid{grid-template-columns:1fr!important}
  .cms-public-contact-grid{grid-template-columns:1fr!important}
  .wellheld-cookie-banner{left:10px!important;right:10px!important;bottom:10px!important;max-width:calc(100% - 20px)!important}
  .wellheld-cookie-actions{display:grid!important;grid-template-columns:1fr 1fr;width:100%!important}

  body.safety-pro-page .nav,
  body.safety-pro-page footer>.wrap,
  .safety-card-section>.wrap{width:calc(100% - 22px)!important}
  body.safety-pro-page .safety-hero-copy{padding:28px 16px!important}
  body.safety-pro-page .safety-callout{grid-template-columns:1fr!important;text-align:left}
  body.safety-pro-page .callout-icon{margin-bottom:4px}

  footer .foot-grid{grid-template-columns:1fr!important;gap:22px!important;margin-bottom:28px!important;padding-bottom:28px!important}
  footer .foot-bottom{flex-direction:column!important;align-items:flex-start!important;text-align:left!important;padding-top:18px!important}
}

@media(max-width:430px){
  header .nav{width:calc(100% - 18px)!important}
  header .brand{max-width:calc(100% - 72px)!important}
  header .brand .cms-brand-logo{max-width:min(176px,57vw)!important;max-height:44px!important}
  header .mobile-toggle{min-width:54px!important;font-size:12px!important;letter-spacing:.08em!important}
  header .mobile-menu{padding-left:14px!important;padding-right:14px!important}
  header .mobile-menu a{min-height:48px!important;font-size:15px!important}

  .page-hero .wrap,.section>.wrap,.cms-block-hero .wrap{width:calc(100% - 18px)!important}
  .service-card{padding:21px 17px!important}
  .service-card h3{font-size:clamp(22px,7.5vw,29px)!important}
  .modal{padding:8px!important}
  .modal-card{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;padding:18px!important}
  .wellheld-cookie-actions{grid-template-columns:1fr!important}
  .topbar .wrap{width:calc(100% - 18px)!important}
}

/* 2026-09-29 route/page restoration: narrow-phone footer width guard. */
footer .brand{
  min-width:0!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
footer .brand .cms-brand-logo{
  width:auto!important;
  max-width:min(190px,72vw)!important;
  height:auto!important;
  object-fit:contain!important;
}
@media(max-width:430px){
  footer .brand{font-size:14px!important;line-height:1.25!important}
}
