/* A company website keeps its own navigation. The city directory stays outside. */
body.company-website .site-header,
body.company-website #site-footer,
body.company-website #rede-voice,
body.company-website .paint-directory-bar{display:none!important}
body.company-website #main{padding-top:0}
.paint-company-nav nav [data-company-analytics]{color:var(--paint-blue,#1456a0);font-weight:750;white-space:nowrap}
.paint-company-nav nav [data-company-analytics]:focus-visible{outline:3px solid var(--paint-blue,#1456a0);outline-offset:5px}

/* One compact, persistent company menu across the service website templates. */
body.company-website{--hp-company-menu-top:0px}
body.company-website:has(>.rede-anuncios){--hp-company-menu-top:48px}
body.company-website .paint-company-header{position:sticky;top:var(--hp-company-menu-top);z-index:200;background:#fff;box-shadow:0 3px 12px #102b4910}
body.company-website .painting-landing .paint-company-nav{min-height:64px;padding:10px 0;gap:22px;flex-wrap:nowrap}
body.company-website .painting-landing .paint-company-brand{font-size:16px;font-weight:800;gap:10px}
body.company-website .painting-landing .paint-brand-symbol{width:38px;height:40px;font-size:21px;flex-shrink:0}
body.company-website .painting-landing .paint-company-nav nav{flex-basis:auto;gap:17px;padding:0;font-size:13px;font-weight:700}
body.company-website .paint-company-nav nav a{white-space:nowrap}
html:has(body.company-website){scroll-padding-top:calc(var(--hp-menu-top,0px) + var(--hp-header-height,64px) + 12px)}
body.company-website .painting-landing [id]{scroll-margin-top:0}
@media(max-width:1100px){
 body.company-website .painting-landing .paint-company-nav{flex-wrap:wrap;row-gap:9px;padding:9px 0}
 body.company-website .painting-landing .paint-company-brand{max-width:100%}
 body.company-website .painting-landing .paint-company-nav nav{flex-basis:100%;justify-content:flex-start;gap:21px;overflow-x:auto;padding-bottom:3px}
}
@media(max-width:540px){
 body.company-website .painting-landing .paint-company-nav{padding:8px 0;row-gap:8px}
 body.company-website .painting-landing .paint-company-brand{font-size:15px}
 body.company-website .painting-landing .paint-brand-symbol{width:34px;height:37px}
 body.company-website .painting-landing .paint-company-nav nav{font-size:12px;gap:19px}
}

/* Use the same search field in the company directory and keep it with its filters. */
.company-search-tools{background:#f6f8fb}
.company-search-tools .company-search{margin:0 0 12px}
.company-search .search-input-wrap{flex:1;min-width:0}
.company-search input{min-width:0;width:100%}
.company-results-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0}
.company-results-header .company-note{margin:0}
.company-clear-search{border:0;padding:6px 0;background:none;color:#215298;text-decoration:underline;font:inherit;font-size:12px;cursor:pointer}
.company-results-header+.companies-grid>.empty-state{grid-column:1/-1}

.company-search button[type="submit"]{flex-shrink:0;border:0;background:none;color:#215298;padding:10px 14px;text-decoration:underline;font:inherit;font-size:12px;cursor:pointer}

.paint-company-brand .paint-brand-logo{display:flex;align-items:center;justify-content:center;width:64px;height:40px;flex:0 0 64px;background:#111;border-radius:3px;overflow:hidden}
.paint-brand-logo img{display:block;width:100%;height:100%;object-fit:contain}
.company-team-logo{display:block;width:170px;height:auto;padding:10px;background:#111;border-radius:6px;margin-bottom:22px}

/* Wanderson has its own company identity while retaining the approved blue palette. */
body.company-website :is(.company-wanderson,.company-standard) .paint-company-nav{gap:20px}
:is(.company-wanderson,.company-standard) .paint-company-brand{flex-shrink:0}
:is(.company-wanderson,.company-standard) .company-header-phone{display:flex;flex-direction:column;gap:3px;flex-shrink:0;color:var(--paint-navy);padding-left:18px;border-left:1px solid #dce5ef;white-space:nowrap}
:is(.company-wanderson,.company-standard) .company-header-phone span{font-size:9px;font-weight:600;letter-spacing:.02em}
:is(.company-wanderson,.company-standard) .company-header-phone strong{font-size:18px;font-weight:800;line-height:1.15}
:is(.company-wanderson,.company-standard) .paint-hero h1{font-size:clamp(44px,4.8vw,64px);font-weight:750;line-height:1.04;max-width:560px;overflow-wrap:normal}
:is(.company-wanderson,.company-standard) .specialty-hero-tagline{max-width:530px}
:is(.company-wanderson,.company-standard) .company-call{font-size:24px;font-weight:800;line-height:1.25;white-space:nowrap;text-decoration:none}
:is(.company-wanderson,.company-standard) .company-call svg{width:22px;height:22px;flex-shrink:0}
:is(.company-wanderson,.company-standard) .company-hero-phone{padding:12px 0}
:is(.company-wanderson,.company-standard) .paint-about-copy>.company-call{display:flex;width:fit-content;margin-top:24px;color:var(--paint-blue)}
:is(.company-wanderson,.company-standard) .paint-color-story-copy>.company-call{display:flex;width:fit-content;margin-top:26px}
:is(.company-wanderson,.company-standard) .company-team-card a[href^="tel:"]{font-size:24px;font-weight:800}
:is(.company-wanderson,.company-standard) .paint-contact-facts a[href^="tel:"]{font-size:28px;font-weight:800;white-space:nowrap}
:is(.company-wanderson,.company-standard) .company-site-footer{padding:36px 0;background:var(--paint-navy);color:#fff}
:is(.company-wanderson,.company-standard) .company-site-footer>.container{display:flex;align-items:center;justify-content:space-between;gap:28px}
:is(.company-wanderson,.company-standard) .company-site-footer>.container>div:last-child{display:flex;flex-direction:column;gap:12px;align-items:flex-end}
:is(.company-wanderson,.company-standard) .company-site-footer p{font-size:12px;color:#c8d9eb;margin:14px 0 0}
:is(.company-wanderson,.company-standard) .company-site-footer a[href^="mailto:"]{font-size:13px;overflow-wrap:anywhere}
:is(.company-wanderson,.company-standard) .company-footer-brand{display:flex;align-items:center;gap:14px;font-size:19px}
:is(.company-wanderson,.company-standard) .company-footer-brand img{width:75px;height:48px;object-fit:contain;background:#111;border-radius:4px}
@media(max-width:1280px) and (min-width:1101px){
 body.company-website :is(.company-wanderson,.company-standard) .paint-company-nav{gap:14px}
 body.company-website :is(.company-wanderson,.company-standard) .paint-company-nav nav{font-size:12px;gap:13px}
 :is(.company-wanderson,.company-standard) .company-header-phone{padding-left:12px}
 :is(.company-wanderson,.company-standard) .company-header-phone strong{font-size:16px}
}
@media(max-width:1100px){
 :is(.company-wanderson,.company-standard) .paint-company-brand{flex:1}
 :is(.company-wanderson,.company-standard) .paint-company-nav nav{order:3}
}
@media(max-width:600px){
 :is(.company-wanderson,.company-standard) .paint-hero h1{font-size:42px}
 :is(.company-wanderson,.company-standard) .company-call{font-size:23px}
 :is(.company-wanderson,.company-standard) .paint-contact-facts a[href^="tel:"]{font-size:26px}
 :is(.company-wanderson,.company-standard) .company-site-footer>.container{flex-direction:column;align-items:flex-start}
 :is(.company-wanderson,.company-standard) .company-site-footer>.container>div:last-child{align-items:flex-start;max-width:100%}
 :is(.company-wanderson,.company-standard) .company-site-footer{padding-bottom:100px}
}
@media(max-width:440px){
 body.company-website :is(.company-wanderson,.company-standard) .paint-company-nav{column-gap:10px}
 :is(.company-wanderson,.company-standard) .paint-company-brand .paint-brand-logo{width:48px;flex-basis:48px}
 body.company-website :is(.company-wanderson,.company-standard) .paint-company-brand{font-size:13px;gap:8px}
 :is(.company-wanderson,.company-standard) .paint-company-brand>span:last-child{max-width:120px;line-height:1.2}
 :is(.company-wanderson,.company-standard) .company-header-phone{padding-left:10px}
 :is(.company-wanderson,.company-standard) .company-header-phone span{font-size:8px}
 :is(.company-wanderson,.company-standard) .company-header-phone strong{font-size:15px}
}
@media(max-width:1100px){
 body.company-website :is(.company-wanderson,.company-standard) .paint-company-nav{row-gap:8px}
 :is(.company-wanderson,.company-standard) .paint-company-nav nav{scrollbar-width:none}
 :is(.company-wanderson,.company-standard) .paint-company-nav nav::-webkit-scrollbar{display:none}
}
/* Real project photography: keep full portrait images visible in the gallery. */
:is(.company-wanderson,.company-standard) .service-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
:is(.company-wanderson,.company-standard) .service-gallery a{display:block;overflow:hidden;border-radius:6px;background:#e8eef5;outline-offset:4px}
:is(.company-wanderson,.company-standard) .service-gallery img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:contain;border-radius:0;transition:transform .25s ease}
:is(.company-wanderson,.company-standard) .service-gallery a:hover img{transform:scale(1.025)}
:is(.company-wanderson,.company-standard) .paint-hero-image img{object-position:50% 57%}
:is(.company-wanderson,.company-standard) .paint-work-image img{aspect-ratio:3/4;object-fit:contain;background:#e8eef5}
:is(.company-wanderson,.company-standard) .paint-work-image{max-width:480px}
:is(.company-wanderson,.company-standard) .paint-color-story-photo img{object-position:50% 42%}
@media(max-width:1000px){:is(.company-wanderson,.company-standard) .service-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){:is(.company-wanderson,.company-standard) .service-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(prefers-reduced-motion:reduce){:is(.company-wanderson,.company-standard) .service-gallery img{transition:none}}
:is(.company-wanderson,.company-standard) .service-gallery button{display:block;width:100%;padding:0;border:0;border-radius:6px;background:#e8eef5;overflow:hidden;cursor:zoom-in;outline-offset:4px}
:is(.company-wanderson,.company-standard) .service-gallery button:hover img{transform:scale(1.025)}
:is(.company-wanderson,.company-standard) .service-gallery button:focus-visible{outline:3px solid var(--paint-blue)}
:is(.company-wanderson,.company-standard) .paint-hero-image img{object-position:50% 50%}
.company-photo-watermark{position:absolute;z-index:4;top:22px;right:22px;width:112px;padding:7px;background:#111c;border:1px solid #ffffff30;border-radius:4px;opacity:.85;pointer-events:none}
.company-photo-watermark img{display:block;width:100%;height:auto}
html.company-gallery-open,body.company-gallery-open{overflow:hidden!important;overscroll-behavior:none}
.company-gallery-lightbox{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:18px 24px;border:0;background:transparent;color:#fff;box-sizing:border-box;overscroll-behavior:contain}
.company-gallery-lightbox::backdrop{background:rgba(2,10,22,.93)}
.company-lightbox-panel{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100%;width:100%;gap:12px}
.company-lightbox-toolbar{display:flex;align-items:center;gap:18px;width:100%}
.company-lightbox-company{font-size:15px;line-height:1.4;margin-right:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.company-lightbox-counter{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
.company-lightbox-close,.company-lightbox-arrow{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;padding:0;border:1px solid #ffffff55;border-radius:50%;background:#153456b3;color:#fff;cursor:pointer;line-height:1;font:inherit}
.company-lightbox-close span{font-size:30px;line-height:1}
.company-lightbox-close:hover,.company-lightbox-arrow:hover{background:#285680}
.company-lightbox-close:focus-visible,.company-lightbox-arrow:focus-visible{outline:3px solid #75d3ff;outline-offset:4px}
.company-lightbox-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:0;touch-action:pan-y pinch-zoom}
.company-lightbox-photo{position:relative;height:min(100%,calc((100vw - 160px)*4/3));width:auto;aspect-ratio:3/4;max-width:calc(100% - 110px);margin:0;overflow:hidden}
.company-lightbox-image{display:block;width:100%;height:100%;object-fit:contain}
.company-lightbox-watermark{position:absolute;top:12px;right:12px;width:86px;padding:5px;border:1px solid #ffffff30;border-radius:3px;background:#111b;opacity:.8;pointer-events:none}
.company-lightbox-watermark img{display:block;width:100%;height:auto}
.company-lightbox-arrow{position:absolute;z-index:2;top:50%;transform:translateY(-50%)}
.company-lightbox-arrow span{font-size:38px;line-height:1}
.company-lightbox-previous{left:0}.company-lightbox-next{right:0}
.company-lightbox-hint{margin:0;text-align:center;color:#b9c9dc;font-size:12px;line-height:1.5}
@media(max-width:600px){
 .company-photo-watermark{top:14px;right:14px;width:82px;padding:5px}
 .company-gallery-lightbox{padding:12px 10px}
 .company-lightbox-toolbar{gap:10px}
 .company-lightbox-company{font-size:13px}
 .company-lightbox-photo{height:min(100%,calc((100vw - 88px)*4/3));max-width:calc(100% - 64px)}
 .company-lightbox-arrow{width:38px;height:44px}
 .company-lightbox-watermark{top:8px;right:8px;width:64px;padding:4px}
 .company-lightbox-hint{font-size:10px}
}
.company-work-strip{padding:28px 0;background:#f5f8fb;border-bottom:1px solid #e1e8f0}
.company-work-strip-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.company-work-strip-heading h2{margin:0;font-size:23px}
.company-work-strip-heading>div{display:flex;gap:8px}
.company-work-strip-heading button{width:40px;height:40px;border:1px solid #c6d6e7;border-radius:50%;background:#fff;color:#123966;font:inherit;font-size:25px;cursor:pointer}
.company-photo-rail{display:grid;grid-auto-flow:column;grid-auto-columns:clamp(125px,18vw,185px);gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;overscroll-behavior-inline:contain;padding:0 0 10px}
.company-photo-rail button{display:block;padding:0;border:0;border-radius:5px;overflow:hidden;background:#e8eef5;cursor:zoom-in;scroll-snap-align:start}
.company-photo-rail img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover}
.company-photo-rail button:focus-visible,.company-work-strip-heading button:focus-visible{outline:3px solid #215298;outline-offset:3px}
.company-about-copy-only{max-width:960px}.company-about-copy-only>.paint-about-copy{max-width:none}
.company-video-section{padding:0 0 64px;background:#fff}.company-video-section h2{margin:12px 0 24px;font-size:clamp(27px,3vw,40px)}
.company-video-section video{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#0b203c;border-radius:6px}
@media(max-width:600px){.company-work-strip{padding:22px 0}.company-video-section{padding-bottom:40px}.company-photo-rail{grid-auto-columns:130px}}

/* The advertiser mark stays in the card copy, above its service link. */
.service-card-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px;margin:4px 0 8px}
.service-card .service-card-heading h3{flex:1;min-width:0;margin:0}
.service-card .service-card-heading .service-card-brand{display:block;flex:0 0 64px;width:64px;height:44px;object-fit:contain;object-position:right center;border:0;border-radius:0;background:transparent}
.service-card .service-card-heading .service-card-brand-default{height:36px}

.company-standard .paint-brand-logo,.company-standard .company-team-logo,.company-standard .company-footer-brand img{background:transparent}
.company-standard .paint-company-brand>span:last-child{max-width:330px;line-height:1.25}
.company-standard .paint-hero h1{overflow-wrap:break-word}
.company-standard .company-team-logo{object-fit:contain;max-height:130px}
.company-standard .company-work-strip-heading button:disabled{opacity:.3;cursor:default}
.company-standard .company-work-strip .company-photo-rail img{object-fit:contain}
.company-standard .paint-company-nav nav{margin-left:auto}
.company-standard .company-photo-watermark{width:72px;background:#ffffffdc}
/* Adapt the shared gallery to specialties that currently have one landscape image. */
.company-standard .company-photo-rail:has(>button:only-child){grid-auto-columns:min(280px,70vw)}
.company-standard .company-photo-rail>button:only-child{aspect-ratio:16/10}
.company-standard .company-photo-rail>button:only-child img{object-fit:contain}
.company-standard .service-gallery:has(>button:only-child){grid-template-columns:minmax(0,600px)}
.company-standard .service-gallery>button:only-child img{aspect-ratio:auto;width:100%;height:auto}
