/* Self-hosted replacements for the old Elfsight widgets: client logos, reviews, gallery, enquiry form.
   Nothing here loads from another website. */
:root { --pa-blue: #27aae1; --pa-card: #141414; --pa-line: rgba(255,255,255,.12); --pa-muted: rgba(255,255,255,.64); }

/* ---------- client logos: slow scrolling strip ---------- */
.pa-logos {
  display: flex; overflow: hidden; margin: 28px 0 32px; padding: 22px 0;
  border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.pa-logos-track { display: flex; align-items: center; flex: none; gap: 56px; margin: 0; padding: 0 28px; list-style: none; animation: pa-scroll 60s linear infinite; }
.pa-logos:hover .pa-logos-track { animation-play-state: paused; }
.pa-logos-track li { flex: none; }
.pa-logos-track img { display: block; height: 40px; width: auto; max-width: 150px; object-fit: contain; opacity: .82; }
@keyframes pa-scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .pa-logos { -webkit-mask-image: none; mask-image: none; }
  .pa-logos-track { animation: none; flex-wrap: wrap; justify-content: center; gap: 28px 40px; flex: 1; }
  .pa-logos-track[aria-hidden="true"] { display: none; }
}

/* ---------- reviews ---------- */
.pa-reviews-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-bottom: 28px; }
.pa-reviews-head h2 { margin: 0; flex: 1 1 100%; }
.pa-rating { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.pa-score { font-size: 40px; font-weight: 800; line-height: 1; }
.pa-stars { color: #fbbc04; letter-spacing: 2px; }
.pa-count { color: var(--pa-muted); }
.pa-review-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pa-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px;
  border-radius: 999px; border: 1px solid var(--pa-line); color: #fff; font-weight: 600; text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .2s; cursor: pointer; font: inherit; font-weight: 600;
}
.pa-btn:hover { border-color: var(--pa-blue); color: #fff; }
.pa-btn-fill { background: var(--pa-blue); border-color: var(--pa-blue); color: #04121a; }
.pa-btn-fill:hover { background: #4cbde9; color: #04121a; }
.pa-reviews-wrap { position: relative; }
.pa-reviews-list {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 360px); gap: 18px;
  margin: 0; padding: 4px 2px 14px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.25) transparent; outline: none;
}
.pa-reviews-list:focus-visible { outline: 2px solid var(--pa-blue); outline-offset: 4px; border-radius: 18px; }
.pa-review {
  scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; padding: 24px;
  background: var(--pa-card); border: 1px solid rgba(255,255,255,.08); border-radius: 18px;
}
.pa-review blockquote { margin: 0; }
.pa-review blockquote p {
  margin: 0; color: rgba(255,255,255,.86); font-size: 16px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden;
}
.pa-review.open blockquote p { -webkit-line-clamp: unset; display: block; }
.pa-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--pa-blue); font: inherit; font-size: 15px; cursor: pointer; }
.pa-who { margin: auto 0 0; display: grid; gap: 2px; font-size: 15px; }
.pa-who span { color: var(--pa-muted); font-size: 13px; }
.pa-nav {
  position: absolute; top: 42%; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--pa-line); background: rgba(10,10,10,.85); color: #fff; font-size: 20px; cursor: pointer;
}
.pa-nav:hover { border-color: var(--pa-blue); }
.pa-prev { left: -14px; } .pa-next { right: -14px; }
.pa-nav[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 767px) { .pa-nav { display: none; } .pa-score { font-size: 32px; } }

/* ---------- gallery ---------- */
.pa-gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pa-shot { display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 3; background: #111; }
.pa-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, opacity .3s; }
.pa-shot:hover img, .pa-shot:focus-visible img { transform: scale(1.05); }
.pa-shot:focus-visible { outline: 2px solid var(--pa-blue); outline-offset: 2px; }
@media (max-width: 991px) { .pa-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .pa-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.pa-lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.pa-lightbox::backdrop { background: rgba(0,0,0,.92); }
.pa-lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pa-lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; object-fit: contain; }
.pa-cap { margin: 12px 16px 0; color: var(--pa-muted); text-align: center; font-size: 15px; }
.pa-lightbox button {
  position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--pa-line);
  background: rgba(20,20,20,.8); color: #fff; font-size: 24px; cursor: pointer;
}
.pa-lightbox button:hover { border-color: var(--pa-blue); }
.pa-lb-close { top: 16px; right: 16px; }
.pa-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.pa-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 575px) { .pa-lb-prev, .pa-lb-next { top: auto; bottom: 18px; transform: none; } }

/* ---------- enquiry form (scoped by #enquireForm so it wins over the theme's global form styles) ---------- */
#enquireForm .pa-form {
  display: grid; gap: 18px; margin-top: 24px; padding: 32px; border-radius: 22px;
  background: var(--pa-card); border: 1px solid rgba(255,255,255,.08);
}
#enquireForm .pa-form-intro { margin: 0; color: var(--pa-muted); text-align: center; }
#enquireForm .pa-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
#enquireForm label { display: grid; gap: 8px; margin: 0; font-weight: 600; font-size: 16px; color: #fff; }
#enquireForm label em { color: var(--pa-blue); font-style: normal; }
#enquireForm input, #enquireForm select, #enquireForm textarea {
  box-sizing: border-box; display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px;
  background: #0b0b0b; color: #fff; font: inherit; font-weight: 400; font-size: 16px; letter-spacing: 0; box-shadow: none;
}
#enquireForm textarea { height: auto; min-height: 130px; border-radius: 12px; resize: vertical; }
#enquireForm select {
  -webkit-appearance: none; appearance: none; color: #fff; height: 50px; padding: 0 44px 0 14px; line-height: 48px; cursor: pointer;
  background: #0b0b0b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
}
#enquireForm select option { background: #0b0b0b; color: #fff; }
#enquireForm input[type=date] { color-scheme: dark; }
#enquireForm input:focus, #enquireForm select:focus, #enquireForm textarea:focus { outline: 2px solid var(--pa-blue); outline-offset: 1px; border-color: transparent; }
#enquireForm ::placeholder { color: rgba(255,255,255,.38); }
#enquireForm .pa-invalid { border-color: #ff6b6b; }
#enquireForm .pa-err { color: #ff8a8a; font-weight: 400; font-size: 14px; min-height: 0; }
#enquireForm .pa-err:empty { display: none; }
#enquireForm .pa-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#enquireForm .pa-privacy { margin: 0; color: var(--pa-muted); font-size: 14px; text-align: center; }
#enquireForm .pa-privacy a { color: var(--pa-blue); }
#enquireForm .pa-submit { text-align: center; }
#enquireForm button.pa-btn { padding: 12px 34px; min-width: 200px; overflow: visible; }
#enquireForm button.pa-btn-fill { background: var(--pa-blue); }
#enquireForm button[disabled] { opacity: .6; cursor: wait; }
#enquireForm .pa-status { margin: 0; text-align: center; font-weight: 600; }
#enquireForm .pa-status.ok { color: #4ccf8a; }
#enquireForm .pa-status.bad { color: #ff8a8a; }
#enquireForm .pa-done { text-align: center; padding: 30px 10px; }
#enquireForm .pa-done h3 { margin: 0 0 8px; }
#enquireForm .pa-done p { margin: 0; color: var(--pa-muted); }
@media (max-width: 575px) {
  #enquireForm .pa-form { padding: 22px 16px; }
  #enquireForm .pa-row { grid-template-columns: 1fr; }
}

/* ---------- hero heading under the logo (says what & where, for people and search engines) ---------- */
.pa-hero-h1 {
  position: relative; z-index: 2; margin: 18px auto 0; text-align: center; color: #fff;
  font-size: clamp(15px, 1.6vw, 20px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4;
}
.pa-hero-h1 span { color: var(--pa-blue); }
@media (max-width: 767px) { .pa-hero-h1 { font-size: 14px; letter-spacing: .12em; margin: 14px auto 22px; padding: 0 12px; } }
/* desktop: the logo file has a wide see-through border and the theme adds ~165px of space round it,
   which pushed the heading down onto the buttons (and off-screen on laptops). Trim that and give the heading room. */
@media (min-width: 992px) {
  .section-hero-v2 .image-wrap { margin-top: 0; margin-bottom: 0; }
  .section-hero-v2 .img-item-2 { margin-top: 0; }
  .section-hero-v2 .img-item-2 img { margin-top: calc(min(72vw, 980px) * -0.05); margin-bottom: calc(min(72vw, 980px) * -0.085); }
  .pa-hero-h1 { margin: 34px auto 46px; }
}
/* About video slot now shows the colour showreel (the theme made it grayscale) */
.section-about-me-v2 .davies-video.pa-reel .video { filter: none; }
.section-about-me-v2 .davies-video.pa-reel .overlay.mark { opacity: .55; }
/* services list items are now links to their own pages */
a.svc-name { color: inherit; text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .2s; }
a.svc-name:hover { border-bottom-color: var(--pa-blue); }
