/* LUKAS SOLUTIONS 2.1.5: additive approved layout changes.
 * Load after the existing 2.1.4 theme styles and WordPress custom CSS.
 * Gallery geometry depends on stable-gallery-2.1.5.js. */

/* Shared fleet introduction: the homepage uses the full existing content width. */
#lsr .ls-app[data-design=atelier] .fleet-section .section-heading.fleet-intro>div{width:100%;min-width:0}
#lsr .ls-app[data-design=atelier] .fleet-section .fleet-intro h2{margin-bottom:26px}

/* Six reasons share the existing green panel and use icons instead of numbers. */
#lsr .ls-app[data-design=atelier] #kdo-jsme .reasons .reason{align-items:flex-start;gap:18px}
#lsr .ls-app[data-design=atelier] #kdo-jsme .reasons .reason>span.reason-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;min-width:48px;padding:8px;margin:0;box-sizing:border-box;border:0;border-radius:12px;background:#dfece5;color:#005f4e;line-height:1}
#lsr .ls-app[data-design=atelier] #kdo-jsme .reasons .reason-icon>svg{display:block;width:100%;height:100%;margin:0;fill:none;stroke:currentColor;stroke-width:2.1;overflow:visible}
#lsr .ls-app[data-design=atelier] #kdo-jsme .reasons .reason>div{min-width:0;flex:1}
@media(max-width:620px){
  #lsr .ls-app[data-design=atelier] #kdo-jsme .reasons .reason{gap:12px}
  #lsr .ls-app[data-design=atelier] #kdo-jsme .reasons .reason>span.reason-icon{flex-basis:40px;width:40px;height:40px;min-width:40px;padding:7px;border-radius:10px}
}

#lsr .ls-app #reference .ls-reference-actions{display:flex;align-items:flex-start;flex-wrap:wrap;gap:16px 22px;margin:0 0 20px;min-width:0}
#lsr .ls-app #reference .ls-reference-actions .reference-filters{flex:0 1 auto;margin:0;min-width:0}
#lsr .ls-app #reference a.ls-reference-stories-link{display:inline-flex;align-items:center;justify-content:center;gap:12px;flex:0 1 auto;max-width:100%;min-height:48px;padding:13px 20px;border:2px solid #005f4e;border-radius:8px;background:#005f4e;color:#fff;font:700 16px/1.4 Arial,Helvetica,sans-serif;text-decoration:none;box-shadow:none;box-sizing:border-box;transition:background .18s ease,border-color .18s ease}
#lsr .ls-app #reference a.ls-reference-stories-link svg{display:block;width:23px;height:23px;flex:0 0 23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#lsr .ls-app #reference a.ls-reference-stories-link .ls-reference-stories-arrow{font-size:22px;line-height:1}
#lsr .ls-app #reference a.ls-reference-stories-link:hover{background:#003f34;border-color:#003f34;color:#fff}
#lsr .ls-app #reference a.ls-reference-stories-link:focus-visible{outline:3px solid #005f4e;outline-offset:4px}
#lsr .ls-app .ls-stories.ls-stories-service{margin:52px 0 58px;padding:0;scroll-margin-top:140px}
@media(max-width:620px){#lsr .ls-app #reference .ls-reference-actions{gap:16px}#lsr .ls-app #reference .ls-reference-actions .reference-filters{flex-basis:100%}#lsr .ls-app #reference a.ls-reference-stories-link{width:100%;padding:13px 16px}#lsr .ls-app .ls-stories.ls-stories-service{margin:38px 0 44px}}
@media(prefers-reduced-motion:reduce){#lsr .ls-app #reference a.ls-reference-stories-link{transition:none}}

#lsr .ls-app .detail-section .service-detail p.montazni-main-caption{display:block;position:static;width:auto;max-width:100%;height:auto;margin:14px 0 0;padding:0;background:none;border:0;font:400 18px/1.6 Arial,Helvetica,sans-serif;color:#284b40;white-space:normal;overflow-wrap:anywhere}
@media(max-width:620px){#lsr .ls-app .detail-section .service-detail p.montazni-main-caption{font-size:17px}}

/* Stable gallery geometry: stable-gallery-2.1.5.js supplies the root state. */
#lsr[data-gallery-layout="normal"] .ls-app #reference .reference-projects{grid-template-columns:repeat(2,minmax(0,1fr))}
#lsr[data-gallery-layout="normal"] .ls-app #reference .reference-photo{height:auto;max-height:none;aspect-ratio:4/3}
#lsr[data-gallery-layout="normal"] .ls-app #reference .reference-photo img{height:100%;max-height:none;aspect-ratio:4/3}
@media(min-width:1101px){#lsr[data-gallery-layout="normal"] .ls-app #reference .reference-projects{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){
#lsr[data-gallery-layout="normal"] .ls-app #reference .reference-projects{grid-template-columns:minmax(0,1fr)}
#lsr[data-gallery-layout="normal"] .ls-app #reference .reference-photo,#lsr[data-gallery-layout="normal"] .ls-app #reference .reference-photo img{aspect-ratio:3/2}
}
#lsr[data-gallery-layout="compact"] .ls-app #reference .reference-projects{grid-template-columns:repeat(auto-fill,minmax(min(160px,100%),1fr))}
#lsr[data-gallery-layout="compact"] .ls-app #reference .reference-photo{height:var(--ls-reference-thumb-height);max-height:var(--ls-reference-thumb-height);aspect-ratio:auto}
#lsr[data-gallery-layout="compact"] .ls-app #reference .reference-photo img{height:100%;max-height:100%;aspect-ratio:auto}

/* Scoped only to the two approved service pages; append after current styles. */
#lsr .ls-app[data-design=atelier] .detail-section.ls-compact-service-photos .service-detail > div:first-child{
  align-self:start;
}
#lsr .ls-app[data-design=atelier] .detail-section.ls-compact-service-photos :is(.montazni-main-photo,.equipment-reference-photo){
  display:block;width:fit-content;height:auto;min-width:0;min-height:0;
  max-width:min(85%,420px);padding:0;margin:0;aspect-ratio:auto;
  align-self:start;justify-self:start;background:transparent;
}
#lsr .ls-app[data-design=atelier] .detail-section.ls-compact-service-photos :is(.montazni-main-photo,.equipment-reference-photo) > img{
  display:block;width:auto;height:auto;min-width:0;min-height:0;max-width:100%;
  max-height:min(380px,calc(var(--ls-reference-thumb-height,18svh) * 1.7));
  aspect-ratio:auto;object-fit:contain;
}
#lsr .ls-app[data-design=atelier] .detail-section.ls-compact-service-photos .gallery.equipment-reference-gallery{
  grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;
}
@media(max-width:600px){
  #lsr .ls-app[data-design=atelier] .detail-section.ls-compact-service-photos .gallery.equipment-reference-gallery{
    grid-template-columns:minmax(0,1fr);
  }
}

/* Persistent help belongs to the message field, rather than a distant panel. */
#lsr .ls-app form .inquiry-message-field{display:grid;gap:8px;min-width:0;margin:0 0 22px}
#lsr .ls-app form .inquiry-message-field > label{margin:0}
#lsr .ls-app form .inquiry-message-help{display:grid;gap:5px;margin:0;padding:14px 16px;border-left:3px solid #005f4e;border-radius:0 8px 8px 0;background:#eef4f0;color:#244b40;font-size:16px;font-weight:400;line-height:1.6;overflow-wrap:anywhere}
#lsr .ls-app form .inquiry-message-help strong{color:#153b30;font-size:16px;font-weight:700}
#lsr .ls-app form .inquiry-message-field > textarea{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0}

/* A single visible instruction directly labels the desktop or mobile picker. */
#lsr #lukas-faq .lf-sidebar p.lf-service-prompt{margin:18px 0 12px;font-size:22px;font-weight:700;line-height:1.45;color:#005f4e}
#lsr #lukas-faq .lf-mobile > label{margin:18px 0 10px;font-size:20px;font-weight:700;line-height:1.45;color:#005f4e}
@media(max-width:760px){
  #lsr #lukas-faq .lf-sidebar{display:none}
}

/* Increase only the main excavation photograph to the reference card's visual
 * height on roomy screens; retain enlargement headroom in short windows. */
#lsr .ls-app[data-design=atelier] .detail-section.ls-compact-service-photos .montazni-main-photo > img{
  max-height:min(440px,calc(var(--ls-reference-thumb-height,18svh) * 4 - 120px));
}

/* One contact component for the menu route and the final homepage section. */
#lsr .ls-app .ls-contact-breadcrumbs{padding-top:30px}
#lsr .ls-app .ls-contact-breadcrumbs .breadcrumbs{margin-bottom:0}
#lsr .ls-app .ls-contact-breadcrumbs + .ls-contact-layout{padding-top:32px}
#lsr .ls-app .ls-contact-layout .contact-grid{
  display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  gap:48px;align-items:start;
}
#lsr .ls-app .ls-contact-layout .contact-grid > :is(aside,form){
  min-width:0;max-width:100%;margin:0;align-self:start;
}
#lsr .ls-app .ls-contact-layout .contact-grid > form{width:100%;max-width:none}
#lsr .ls-app .ls-contact-layout .ls-contact-copy{overflow-wrap:anywhere}
#lsr .ls-app .ls-contact-layout .ls-contact-intro{margin-bottom:36px}
#lsr .ls-app .ls-contact-layout .ls-contact-intro > .eyebrow{color:#4f6962}
#lsr .ls-app .ls-contact-layout .ls-contact-title{
  margin:0 0 26px;color:#005f4e;font-size:clamp(32px,4.5vw,46px);
  font-weight:400;line-height:1.12;letter-spacing:-.045em;
}
#lsr .ls-app .ls-contact-layout form :is(.form-grid,label,.inquiry-message-field){min-width:0}
#lsr .ls-app .ls-contact-layout form :is(input,select,textarea){
  box-sizing:border-box;min-width:0;max-width:100%;width:100%;
}
/* Scoped typography guards preserve the existing Contact roles despite the
 * stronger homepage #offer paragraph/button selectors. */
#lsr .ls-app .ls-contact-layout .ls-contact-lead{
  max-width:620px;margin:0;color:#4f6962;font-size:17.008px!important;line-height:1.8!important;
}
#lsr .ls-app .ls-contact-layout .eyebrow{font-size:12px!important;line-height:1.8!important}
#lsr .ls-app .ls-contact-layout .company-details p{font-size:15px!important;line-height:1.8!important}
#lsr .ls-app .ls-contact-layout form > p{font-size:14.4px!important;line-height:1.8!important}
#lsr .ls-app .ls-contact-layout form .preview-inquiry-note{font-size:13px!important;line-height:1.8!important}
#lsr .ls-app .ls-contact-layout form .inquiry-message-help{font-size:16px!important;line-height:1.6!important}
#lsr .ls-app .ls-contact-layout form .form-note{font-size:13px!important;line-height:1.8!important}
#lsr .ls-app .ls-contact-layout form .button{font-size:14px!important;line-height:1.35!important}
@media(max-width:899px){
  #lsr .ls-app .ls-contact-layout .contact-grid{grid-template-columns:minmax(0,1fr);gap:35px}
}
@media(max-width:700px){
  #lsr .ls-app .ls-contact-layout .ls-contact-lead,
  #lsr .ls-app .ls-contact-layout .company-details p,
  #lsr .ls-app .ls-contact-layout form > p{font-size:16px!important}
  #lsr .ls-app .ls-contact-layout form .preview-inquiry-note{font-size:13px!important}
  #lsr .ls-app .ls-contact-layout form .form-note{font-size:14px!important}
}
