/* V16: photo galleries, before/after and the persistent WhatsApp bubble. */
.media-link{position:relative;display:block;min-width:0}
.media-link:focus-visible,.service-v4-card a:focus-visible,.service-row a:focus-visible{outline:3px solid #789345;outline-offset:5px}
.about-brief-grid>figure>.media-link{display:block}
.about-brief-grid>figure>.media-link>img{display:block;width:100%;object-fit:cover}
.service-v4-card .service-v4-image{display:block}
.service-v4-copy h3 a:hover,.service-row h3 a:hover{text-decoration:underline;text-underline-offset:5px}
.service-v4-card .service-row-arrow{align-self:center}
.media-zoom{position:absolute;right:13px;bottom:13px;display:flex;align-items:center;justify-content:center;width:39px;height:39px;border-radius:50%;background:#f7f6edee;color:#19372d;pointer-events:none;box-shadow:0 2px 15px #0002}
.media-zoom svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.6;fill:none}
.media-hero-link{position:absolute;inset:0}
.page-top-photo .media-hero-link img{position:absolute;inset:0}
.page-top-photo .media-hero-link .media-zoom{right:24px;bottom:24px}
.page-top-photo>.image-origin-overlay{pointer-events:none;max-width:calc(100% - 120px)}
.home-services .additional-services>.service-row{display:grid;grid-template-columns:100px minmax(0,1fr) 22px;gap:20px;align-items:center;padding:24px 0;border-bottom:1px solid var(--line);min-width:0}
.service-row .service-row-photo{display:block;width:100px;height:108px;overflow:hidden;border-radius:3px;background:var(--sage)}
.service-row-photo img{width:100%;height:100%;object-fit:cover}
.service-row .media-zoom{width:26px;height:26px;right:5px;bottom:5px}
.service-row .media-zoom svg{width:15px;height:15px}
.service-row .service-row-arrow{display:block;color:#506647}
.service-row-arrow svg{width:20px;height:20px}
.gallery-v15{background:#e9ecdf}
.gallery-v15 .section-heading{align-items:end}
.service-gallery-grid,.portfolio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 24px}
.media-card{min-width:0;margin:0}
.media-card[hidden]{display:none}
.media-card .media-link{overflow:hidden;aspect-ratio:4/3;background:#d8decd;border-radius:3px}
.media-card .media-link img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.media-card .media-link:hover img{transform:scale(1.025)}
.media-card .media-contain img{object-fit:contain}
.media-card figcaption{padding-top:13px}
.media-card .media-type{display:block;font-size:10px;line-height:1.6;letter-spacing:.075em;text-transform:uppercase;color:#496047}
.media-card h3{font:26px/1.2 var(--serif);margin-top:5px;letter-spacing:-.015em}
.media-card figcaption>p{font-size:13px;line-height:1.65;color:var(--muted);margin-top:7px}
.media-play{position:absolute;inset:0;display:grid;place-items:center;color:#fff;background:#0001;pointer-events:none}
.media-play>span{display:grid;place-items:center;width:58px;height:58px;border:1px solid #ffffffaa;border-radius:50%;background:#19372dbb;font-size:23px;padding-left:4px}
.gallery-filters{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:28px}
.gallery-filters button{min-height:44px}
.portfolio-intro{max-width:68ch;margin-bottom:28px;color:var(--muted);font-size:14px;line-height:1.7}
.before-after-section{background:#eef0e6}
.before-after-layout{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:60px;align-items:center}
.before-after-copy h2{font:clamp(36px,4.1vw,58px)/1.1 var(--serif);letter-spacing:-.035em}
.before-after-copy p:not(.eyebrow){font-size:16px;line-height:1.8;color:var(--muted);margin:23px 0}
.before-after-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.before-after-pair .media-link{aspect-ratio:3/4}
.before-after-pair .media-link img{object-fit:cover}
.before-after-pair h3{font-size:23px}
.before-after-label{position:absolute;top:13px;left:13px;padding:7px 12px;border-radius:2px;background:#f7f6edee;color:#19372d;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.image-dialog.media-dialog{width:min(1100px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:5px;background:#f5f5eb;overflow:auto}
.dialog-stage{position:relative;background:#15261e;padding:16px 58px}
.dialog-media{position:relative;height:min(65dvh,780px);min-height:180px;display:flex;align-items:center;justify-content:center}
.dialog-media>img,.dialog-media>video{display:block;max-width:100%;width:100%;height:100%;max-height:100%;object-fit:contain}
.media-dialog .dialog-close{position:absolute;top:12px;right:12px;z-index:3;width:44px;height:44px;color:#19372d}
.dialog-previous,.dialog-next{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:52px;background:#f7f6edee;color:#19372d;border-radius:3px;font-size:33px;line-height:1;z-index:2}
.dialog-previous{left:7px}.dialog-next{right:7px}
.dialog-previous[hidden],.dialog-next[hidden]{display:none}
.media-dialog .dialog-caption{padding:21px 28px 25px}
.dialog-caption-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:9px;font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:#4a604b}
.dialog-counter{flex-shrink:0;font-variant-numeric:tabular-nums}
.media-dialog #media-title{font:clamp(25px,3vw,35px)/1.15 var(--serif);letter-spacing:-.02em}
.media-dialog .dialog-description{font-size:14px;line-height:1.65;margin-top:8px;max-width:70ch}
.media-dialog .dialog-contact{font-size:13px;min-height:44px;display:inline-flex;align-items:center;margin-top:6px}
.media-error{max-width:42ch;color:white;padding:24px;text-align:center}.media-error>p{color:inherit;font-size:15px;line-height:1.7}.media-error>button,.media-error>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:16px 8px 0;padding:8px 15px;border:1px solid #e7eed7;border-radius:3px;color:#f7f6ed;text-decoration:underline;text-underline-offset:4px}
body.dialog-open{overflow:hidden}
.whatsapp-dock{position:fixed;inset:auto max(24px,env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) auto;width:62px;height:62px;min-height:62px;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid #ffffff85;border-radius:50%;background:#187d48;color:#fff;box-shadow:0 5px 22px #142a2340;z-index:100;transition:background-color .2s,transform .2s}
.whatsapp-dock>svg:first-child{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.6}
.whatsapp-dock:hover{background:#11643a;transform:translateY(-3px)}
.whatsapp-dock:focus-visible{outline:3px solid #19372d;outline-offset:4px}
.cookie-notice-open .whatsapp-dock{visibility:visible}
.menu-open .whatsapp-dock,.dialog-open .whatsapp-dock,.cookie-dialog-open .whatsapp-dock{visibility:hidden}
.site-footer .footer-credits{padding-bottom:95px}
@media(max-width:1000px){
 .service-gallery-grid,.portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .before-after-layout{gap:32px}
 .services-menu{max-height:calc(100dvh - var(--header) - 24px);overflow:auto}
}
@media(max-width:760px){
 .about-brief-grid>figure>.media-link>img{height:290px}
 .service-v4-card .service-v4-image{width:76px;height:90px;aspect-ratio:auto}
 .service-v4-card .media-zoom{width:25px;height:25px;right:4px;bottom:4px}
 .service-v4-card .media-zoom svg{width:15px;height:15px}
 .home-services .additional-services>.service-row{grid-template-columns:76px minmax(0,1fr) 18px;gap:14px;padding:15px 0}
 .service-row .service-row-photo{width:76px;height:90px}
 .service-v4-card a.service-row-arrow{display:block}
 .before-after-layout{grid-template-columns:1fr;gap:27px}
 .before-after-copy h2{font-size:clamp(34px,9.3vw,42px)}
 .before-after-copy p:not(.eyebrow){margin:17px 0}
 .service-gallery-grid,.portfolio-grid{gap:25px 16px}
 .media-card h3{font-size:24px}
 .gallery-v15 .section-heading{align-items:initial}
}
@media(max-width:600px){
 .service-gallery-grid,.portfolio-grid{grid-template-columns:1fr}
 .media-card .media-link{aspect-ratio:4/3}
 .before-after-pair{gap:12px}
 .before-after-pair .media-link{aspect-ratio:3/4}
 .before-after-pair .media-type{font-size:9px}
 .before-after-pair h3{font-size:21px}
 .before-after-label{top:9px;left:9px;font-size:10px;padding:6px 9px}
 .image-dialog.media-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
 .dialog-stage{padding:55px 8px 10px}
 .dialog-media{height:52dvh;min-height:140px}
 .dialog-previous,.dialog-next{top:calc(50% + 22px);background:#f7f6eddd;width:44px;height:52px}
 .dialog-previous{left:6px}.dialog-next{right:6px}
 .media-dialog .dialog-caption{padding:17px 20px 20px}
 .media-dialog .dialog-description{font-size:13px;line-height:1.55}
 .whatsapp-dock{right:max(16px,env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom));width:56px;height:56px;min-height:56px}
 .whatsapp-dock>svg:first-child{width:29px;height:29px}
 .cookie-notice-open .whatsapp-dock{bottom:calc(var(--cookie-notice-height,420px) + 24px + env(safe-area-inset-bottom))}
}
@media(max-width:360px){
 .service-v4-card .service-v4-image,.service-row .service-row-photo{width:64px;height:84px}
 .home-services .additional-services>.service-row{grid-template-columns:64px minmax(0,1fr) 16px;gap:11px}
}
@media(prefers-reduced-motion:reduce){
 .media-card .media-link img,.whatsapp-dock{transition:none}
 .media-card .media-link:hover img,.whatsapp-dock:hover{transform:none}
}

/* A zero-height sticky toolbar keeps Close available in a short viewport. */
.dialog-toolbar{position:sticky;top:0;height:0;z-index:4}
.media-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:12px;background:#15261e;color:#f7f6ed;font-size:14px;line-height:1.6;padding:20px;text-align:center;pointer-events:none}
.media-loading::before{content:'';width:20px;height:20px;border:2px solid #ffffff40;border-top-color:#f7f6ed;border-radius:50%;animation:media-loading-spin .8s linear infinite;flex-shrink:0}
@keyframes media-loading-spin{to{transform:rotate(360deg)}}
.services-menu{max-height:max(120px,calc(100dvh - var(--header) - 40px));overscroll-behavior:contain;scrollbar-gutter:stable}
.desktop-nav .services-toggle.is-current{color:#416541}
.mobile-service-list>a[aria-current="page"]{font-weight:700;color:#33543a}
.media-service-link{display:inline-flex;align-items:center;min-height:44px;font-size:13px;line-height:1.5;text-decoration:underline;text-underline-offset:4px;margin-top:3px}
.media-service-link:hover{color:#33543a}
.media-link,.dialog-previous,.dialog-next,.dialog-close{-webkit-tap-highlight-color:#cad6a555}
.dialog-previous:focus-visible,.dialog-next:focus-visible,.dialog-close:focus-visible,.media-error>a:focus-visible,.media-error>button:focus-visible{outline:3px solid #789345;outline-offset:3px}
@media(max-height:520px){.dialog-media{height:55dvh;min-height:130px}.media-dialog .dialog-caption{padding-top:16px;padding-bottom:18px}}
@media(prefers-reduced-motion:reduce){.media-loading::before{animation:none}}

/* V17: captions below the photo and a more polished floating contact button. */
.about-brief-grid>figure{display:block;position:relative;margin:0;max-height:none;height:auto;overflow:visible;align-self:start;min-width:0}
.about-brief-grid>figure>.media-link{display:block;position:relative;aspect-ratio:4/5;overflow:hidden;border-radius:4px;background:var(--sage)}
.about-brief-grid>figure>.media-link>img{display:block;width:100%;height:100%;object-fit:cover}
.about-brief-grid>figure>figcaption{position:static;inset:auto;display:block;max-width:100%;margin:0;padding:12px 0 0;background:none;color:var(--muted);font:400 11px/1.6 var(--sans);letter-spacing:.025em;text-transform:none;overflow-wrap:anywhere;transform:none}
.page-top>.page-top-photo{display:grid;grid-template-rows:minmax(360px,1fr) auto;margin:0;min-height:0;height:auto;overflow:visible;align-self:stretch}
.page-top-photo>.media-hero-link{display:block;position:relative;inset:auto;min-width:0;min-height:0;width:100%;height:100%;overflow:hidden}
.page-top-photo>.media-hero-link>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.page-top-photo>.photo-caption{position:static;inset:auto;display:block;margin:0;padding:11px 24px 13px;background:var(--paper);color:var(--muted);font:400 11px/1.6 var(--sans);letter-spacing:.02em;overflow-wrap:anywhere;transform:none}
.whatsapp-dock{display:inline-flex;align-items:center;justify-content:flex-start;gap:10px;width:auto;max-width:calc(100vw - 32px);height:60px;min-height:60px;min-width:0;padding:8px 17px 8px 8px;border:1px solid #cbd7c7;border-radius:999px;background:#f7f6f1;color:#19372d;box-shadow:0 5px 18px #142a2324,0 1px 3px #142a2310;isolation:isolate;text-decoration:none;transition:background-color 180ms ease,box-shadow 180ms ease,transform 180ms ease}
.whatsapp-dock>.whatsapp-icon{display:flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;margin:0;border-radius:50%;background:#187d48;color:white}
.whatsapp-dock .whatsapp-icon>svg{display:block;width:28px;height:28px;overflow:visible;fill:none}
.whatsapp-dock .whatsapp-bubble-mark{fill:none;stroke:currentColor;stroke-width:1.65;stroke-linejoin:round;stroke-linecap:round}
.whatsapp-dock .whatsapp-phone-mark{fill:currentColor;stroke:none}
.whatsapp-dock>.whatsapp-copy{display:block;margin:0;color:inherit;font:700 13px/1.25 var(--sans);letter-spacing:-.01em;white-space:nowrap}
.whatsapp-dock:focus-visible{outline:3px solid #507d43;outline-offset:4px}
.whatsapp-dock:active{transform:translateY(0) scale(.97)}
@media(hover:hover) and (pointer:fine){.whatsapp-dock:hover{background:#fffef8;color:#19372d;box-shadow:0 9px 26px #142a2330,0 2px 5px #142a2310;transform:translateY(-2px)}}
@media(max-width:760px){
 .about-brief-grid>figure>.media-link{aspect-ratio:auto;height:clamp(230px,72vw,320px)}
 .about-brief-grid>figure>figcaption{padding-top:10px;font-size:11px;line-height:1.6}
 .page-top>.page-top-photo{grid-template-rows:290px auto;min-height:0;height:auto}
 .page-top-photo>.photo-caption{padding:10px 20px 12px;font-size:11px;line-height:1.5}
}
@media(max-width:760px){
 .whatsapp-dock{justify-content:center;gap:0;width:60px;height:60px;min-height:60px;padding:0;border:2px solid #ffffffdd;background:#187d48;color:#fff;box-shadow:0 5px 18px #142a2340,0 0 0 1px #19372d0c}
 .whatsapp-dock>.whatsapp-icon{flex:0 0 auto;width:44px;height:44px;background:transparent}
 .whatsapp-dock .whatsapp-icon>svg{width:31px;height:31px}
 .whatsapp-dock>.whatsapp-copy{display:none}
 .whatsapp-dock:hover{background:#187d48;color:white;transform:none;box-shadow:0 5px 18px #142a2340,0 0 0 1px #19372d0c}
 .whatsapp-dock:active{transform:scale(.96)}
}
@media(prefers-reduced-motion:reduce){.whatsapp-dock{transition:none}.whatsapp-dock:hover,.whatsapp-dock:active{transform:none}}
