/* Bounded repairs: preserve the existing visual identity and service content. */
.wrap.obra-layout { padding-inline: 44px; grid-template-columns: minmax(0, 1fr) 300px; }
.obra-layout > * { min-width: 0; }
.next-obra .wrap { padding-inline: 44px !important; }
.gal-grid .gallery-open { display: block; height: 100%; }
.gal-grid .gallery-open:focus-visible { outline: 4px solid var(--green-bright); outline-offset: -4px; }
.gal-grid .gallery-open:focus-visible img { transform: none; }
.gal-grid .photo-caption { pointer-events: none; }
.mega-feat img { height: auto; }
.site-header .mega-intro a.mega-cta { color: var(--green-bright); border: 0; }
.site-header .mega-intro a.mega-cta:hover { color: #fff; }
.no-script-nav { padding: 20px; background: #121612; color: #fff; }
.no-script-nav a { color: #c1e68b; text-decoration: underline; }
html.viewer-open { overflow: hidden; }
.project-viewer { position: fixed; inset: 0; width: min(1100px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; border: 1px solid #424b40; border-radius: 8px; padding: 18px 22px; background: #121612; color: #fff; overflow-y: auto; }
.project-viewer::backdrop { background: rgb(5 10 5 / 90%); }
.viewer-toolbar, .viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.viewer-toolbar { margin-bottom: 12px; }
.project-viewer button { min-height: 44px; padding: 10px 16px; border: 1px solid #65705f; border-radius: 4px; background: #253020; color: #fff; font: 600 15px 'Barlow', sans-serif; cursor: pointer; }
.project-viewer button:hover { background: #394a2f; }
.project-viewer :focus-visible { outline: 3px solid #a9d653; outline-offset: 3px; }
.project-viewer figure { margin: 0; }
.project-viewer .viewer-image { display: block; width: 100%; height: min(66dvh, 700px); object-fit: contain; background: #0b100b; }
.project-viewer figcaption { padding: 12px 0 16px; line-height: 1.45; }
.viewer-help, .viewer-count { color: #d4decf; font-size: 14px; margin: 0; }
.viewer-help { margin-top: 12px; }
.viewer-error a { color: #c1e68b; text-decoration: underline; }
.ba-slider { touch-action: pan-y; }
.comparison-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba-slider:focus-within { outline: 4px solid var(--green); outline-offset: 5px; }
.estimate-fields { min-inline-size: 0; border: 0; padding: 0; margin: 0; }
.estimate-form [hidden] { display: none !important; }
.estimate-form input:focus-visible, .estimate-form select:focus-visible, .estimate-form textarea:focus-visible, .estimate-form button:focus-visible, .estimate-form a:focus-visible { outline: 3px solid #486e12; outline-offset: 3px; }
.estimate-form .field select:not(:focus) { outline: none; }
.estimate-preview { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
.estimate-preview h3 { font-size: 21px; margin-bottom: 10px; }
.estimate-preview p { color: var(--slate); }
.estimate-message { width: 100%; min-height: 220px; padding: 12px; margin-top: 8px; resize: vertical; font: 16px/1.5 'Barlow', sans-serif; border: 1px solid #a3b19d; border-radius: 3px; }
.estimate-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.estimate-actions .btn { margin: 12px 0 0; font-size: 13px; }
.estimate-form .copy-draft { background: #e8efdf; color: #203317; }
.estimate-fallback { color: var(--slate); font-size: 14px; margin-top: 16px; }
.estimate-form .estimate-fallback a { color: #34500e; text-decoration: underline; }
.estimate-status { color: #34500e; font-weight: 600; margin-top: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 820px) { .wrap.obra-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) {
  .site-header nav:not(.open) { visibility: hidden; }
  .site-header nav.open { visibility: visible; }
}
@media (max-width: 600px) {
  .wrap.obra-layout { padding-inline: 20px; }
  .next-obra .wrap { padding-inline: 20px !important; }
  .project-viewer { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 12px; }
  .project-viewer .viewer-image { height: 55dvh; }
  .project-viewer button { padding: 10px 12px; }
  .viewer-help { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header, .site-header *, .gal-grid img, .photo-caption { transition: none !important; }
}
