/* =====================================================================
   Additions to the prototype CSS (style.css stays untouched):
   accessibility + the payment plan popup.
   ===================================================================== */

/* "Skip to content" link: hidden until it gets keyboard focus. */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  padding: 10px 18px; border-radius: 8px;
  background: var(--ink, #0b1220); color: #fff; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--gold, #c6a15b); outline-offset: 2px; }
main:focus { outline: none; }

/* The newsletter field removes its outline in style.css: show the focus on the whole pill. */
.newsletter:focus-within { box-shadow: 0 0 0 3px var(--gold, #c6a15b); }

/* Images with width/height attributes (added for layout stability) keep the
   prototype sizing: zero specificity, so every size rule of style.css wins,
   and an image sized only by height (logos) keeps its natural width. */
:where(img[width][height]) { width: auto; height: auto; }


/* "Get Payment Plan" popup (project page): payment plan image (+ enquiry form). */
.modal .modal-box.pp-box { max-width: 760px; }
.modal .modal-box.pp-box.pp-with-form { max-width: 1080px; }
.pp-grid { display: grid; grid-template-columns: 1fr; }
.pp-with-form .pp-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.pp-plan { padding: 34px 32px 30px; background: var(--ivory, #f8f5ee); }
.pp-plan h3 { margin: 6px 0 6px; }
.pp-plan .sub { color: var(--muted); margin: 0 0 14px; }
.pp-image { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line, #e7e2d6); background: #fff; }
.pp-image img { display: block; width: 100%; height: auto; }
.pp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 860px) {
  .pp-with-form .pp-grid { grid-template-columns: 1fr; }
  .pp-plan { padding: 26px 18px 22px; }
}

/* Project logos row (home): long project names wrap under the logo instead of
   running into the next item (style.css keeps them on one line). */
.logo-item { width: auto; min-width: 118px; max-width: 170px; }
.logo-item h4 { white-space: normal; overflow-wrap: break-word; line-height: 1.3; }
@media (max-width: 860px) {
  .logo-item { min-width: 92px; max-width: 120px; }
  .logo-item h4 { font-size: .85rem; }
}

/* Project gallery videos (uploaded MP4 or YouTube/Vimeo): cover + play button;
   in the lightbox the video plays with controls. */
.gallery a.g-video { background: #0b1220; }
.gallery a.g-video video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.gallery a.g-video::after { content: ""; }
.gallery .g-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(198, 161, 91, .92); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .35s var(--ease, ease), background .35s;
}
.gallery .g-play svg { width: 24px; height: 24px; margin-left: 4px; }
.gallery a.g-video:hover .g-play { transform: translate(-50%, -50%) scale(1.1); background: var(--gold, #c6a15b); }
.lightbox .video-wrap video { width: 100%; height: 100%; display: block; background: #000; }
@media (max-width: 700px) { .gallery .g-play { width: 48px; height: 48px; } .gallery .g-play svg { width: 18px; height: 18px; } }
