/* =====================================================================
   PV-AS-A-SERVICE page blocks: case-study figures (actual vs projection),
   quote card, photo gallery, "Do you qualify?" checklist, FAQ, roof and
   bill check form. Builds on site.css (TENA light theme).
   ===================================================================== */

/* ---- placeholders still to be filled before going live ---- */
.todo-fill { background: #fff8d6 !important; outline: 2px dashed #e0b400; outline-offset: -2px; color: #7a5b00 !important; }

/* ---- case study ---- */
.pv-photo { border-radius: var(--glass-radius); overflow: hidden; border: 1px solid var(--glass-border); min-height: 320px; }
.pv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-photo-slot { display: grid; place-items: center; font-weight: 600; aspect-ratio: 4 / 3; min-height: 0; }
.pv-group-label { font: 700 .72rem/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6rem; }
.pv-proj-label { margin-top: 1.4rem; color: #8a6a00; }
.pv-proj-label span { font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--text-low); margin-left: .4rem; }
.metric.pv-actual { border-color: var(--accent-border); background: linear-gradient(180deg, #f3faf5, #fff); }
.metric.pv-projection { position: relative; border-style: dashed; border-color: #e3cf8a; background: #fffdf3; }
.metric.pv-projection .val { color: #6b5600; }
.pv-badge { position: absolute; top: .55rem; right: .6rem; font: 700 .62rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  color: #7a5b00; background: #fbefc4; border: 1px solid #ecd58a; padding: .28rem .45rem; border-radius: 6px; }
.pv-doc-links { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .45rem; }
.pv-doc-links a { font-weight: 600; }
.pv-doc-links .todo-fill { padding: .15rem .45rem; border-radius: 6px; text-decoration: none; }

.pv-quote { margin: 2.4rem 0 0; padding: 1.6rem 1.8rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2);
  border-left: 4px solid var(--accent); }
.pv-quote blockquote { margin: 0 0 1rem; padding: .6rem .8rem; border-radius: 8px; }
.pv-quote blockquote p { margin: 0; font-family: var(--font-head); font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.45; color: var(--text-hi); }
.pv-quote figcaption { display: flex; align-items: center; gap: .9rem; color: var(--text-mid); font-size: .92rem; }
.pv-quote figcaption strong { color: var(--text-hi); }
.pv-quote-photo { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; flex: none; }
.pv-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin-top: 1rem; }
.pv-gallery-slot { aspect-ratio: 4 / 3; border-radius: 14px; display: grid; place-items: center; font-weight: 600; }
.pv-gallery figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: #0b1311; box-shadow: var(--sh-2); }
.pv-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s ease; }
.pv-gallery figure:hover img { transform: scale(1.03); }
.pv-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem; color: #fff; font-size: .86rem; font-weight: 500;
  background: linear-gradient(0deg, rgba(5,12,9,.78), rgba(5,12,9,0)); pointer-events: none; }
/* the drone film: full width, cinematic 2.39:1 */
.pv-film { grid-column: 1 / -1; }
.pv-film video { width: 100%; aspect-ratio: 848 / 356; object-fit: cover; display: block; }
.pv-film figcaption { font-size: .95rem; padding-left: 1.2rem; }
.pv-film-toggle { position: absolute; top: .8rem; right: .8rem; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(5,12,9,.55); color: #fff; font-size: .8rem; cursor: pointer; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pv-film-toggle:hover { background: rgba(5,12,9,.8); }

.pv-points { margin: 1.1rem 0 .8rem; padding-left: 1.1rem; color: var(--text-mid); }
.pv-points li { margin-bottom: .35rem; }

/* ---- do you qualify ---- */
.pv-checks .pv-check { display: flex; gap: .85rem; align-items: flex-start; }
.pv-check svg { flex: none; width: 30px; height: 30px; padding: 5px; border-radius: 50%; color: #fff; background: var(--accent); margin-top: .1rem; }
.pv-check h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.pv-check p { margin: 0; font-size: .92rem; color: var(--text-mid); }
.pv-qualify-cta { margin: 1.4rem 0 0; font-weight: 600; }

/* ---- FAQ ---- */
.pv-faq { display: grid; gap: .7rem; max-width: 860px; }
.pv-faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-1); }
.pv-faq-item summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; font-weight: 600; color: var(--text-hi); position: relative; }
.pv-faq-item summary::-webkit-details-marker { display: none; }
.pv-faq-item summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--accent); }
.pv-faq-item[open] summary::after { content: "−"; }
.pv-faq-item[open] { border-color: var(--accent-border); }
.pv-faq-item p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--text-mid); }

/* ---- roof and bill check form ---- */
.pv-steps { margin: 1rem 0 1.2rem; padding-left: 1.2rem; color: var(--text-mid); }
.pv-steps li { margin-bottom: .35rem; }
.pv-optional { color: var(--text-low); font-weight: 400; font-size: .85em; }
.pv-hint { margin: -.3rem 0 .2rem; font-size: .82rem; color: var(--text-low); }
.universal-form input[type="file"] { padding: .55rem; background: var(--band); border: 1px dashed var(--accent-border); border-radius: 10px; width: 100%; }

@media (max-width: 760px) {
  .pv-gallery { grid-template-columns: 1fr; }
  .pv-photo { min-height: 240px; }
}

/* ---- memo update: two-up form rows, pending labels, resident quote ---- */
.pv-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; align-items: end; }
.pv-pending { display: block; font-size: .78rem; color: #8a6a00; margin-top: .2rem; }
.pv-resident { margin: .2rem 0 .8rem; padding: .7rem .9rem; border-radius: 10px; font-style: italic; }
.pv-resident em { font-style: normal; font-size: .8rem; }
@media (max-width: 760px) { .pv-form-row { grid-template-columns: 1fr; } }

/* ---- Dmitri's comments, 9 Oct: apartment photo pair, 4 qualify checks in a 2x2 grid ---- */
.pv-photo-pair { display: grid; gap: .8rem; }
.pv-photo-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 1px solid var(--glass-border); display: block; }
.pv-checks-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 760px) { .pv-checks-4 { grid-template-columns: 1fr; } }

/* ---- KIDDOM quotes carousel: 5 approved quotes, cycling on their own ---- */
.pv-quotes { position: relative; overflow: hidden; margin: 2.4rem 0 1.2rem; padding: 2.1rem 2.3rem 1.6rem;
  background: radial-gradient(120% 140% at 100% 0%, rgba(46,168,106,.10), transparent 55%), linear-gradient(135deg, #ffffff 0%, #f3faf5 100%);
  border: 1px solid var(--accent-border); border-left: 4px solid var(--accent); border-radius: 20px; box-shadow: var(--sh-2); }
.pv-quotes::before { content: "\201C"; position: absolute; top: -2.2rem; left: 1.1rem; font: 700 11rem/1 Georgia, "Times New Roman", serif;
  color: var(--accent); opacity: .09; pointer-events: none; }
.pv-quote-track { display: grid; position: relative; }
.pv-quote-slide { margin: 0; }
.pv-quote-slide blockquote { margin: 0; padding: 0; }
.pv-quote-slide blockquote p { margin: 0; font-family: var(--font-head); font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.42; color: var(--text-hi); letter-spacing: -.01em; }
.pv-quotes.is-js .pv-quote-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.pv-quotes.is-js .pv-quote-slide.is-active { opacity: 1; visibility: visible; }
.pv-quotes.is-js .pv-quote-slide.is-active blockquote p { animation: pvq-in .8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pvq-in { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.pv-quotes:not(.is-js) .pv-quote-slide + .pv-quote-slide { margin-top: 1rem; }
.pv-quote-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; position: relative; }
.pv-quote-by { display: flex; align-items: center; gap: .7rem; margin: 0; color: var(--text-mid); font-size: .88rem; line-height: 1.35; }
.pv-quote-by strong { color: var(--text-hi); font-size: .95rem; }
.pv-quote-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 4px 12px rgba(23,122,72,.25); }
.pv-quote-controls { display: flex; align-items: center; gap: .8rem; }
.pv-quotes:not(.is-js) .pv-quote-controls, .pv-quotes:not(.is-js) .pv-quote-progress { display: none; }
.pv-quote-count { font: 600 .78rem/1 var(--mono); color: var(--text-low); min-width: 2.6rem; text-align: right; }
.pv-quote-count b { color: var(--accent); }
.pv-quote-dots { display: flex; gap: .4rem; align-items: center; }
.pv-quote-dot { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; background: rgba(23,122,72,.22); cursor: pointer; transition: width .35s ease, background .35s ease; }
.pv-quote-dot:hover { background: rgba(23,122,72,.45); }
.pv-quote-dot.is-active { width: 28px; background: var(--accent); }
.pv-quote-dot:focus-visible, .pv-quote-pause:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pv-quote-pause { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--accent-border); background: #fff; color: var(--accent); font-size: .7rem; cursor: pointer; }
.pv-quote-pause:hover { background: var(--accent); color: #fff; }
.pv-quote-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: transform .1s linear; }
.pv-quotes.is-paused .pv-quote-progress { opacity: .35; }
@media (max-width: 760px) {
  .pv-quotes { padding: 1.6rem 1.3rem 1.3rem; }
  .pv-quotes::before { font-size: 8rem; top: -1.6rem; }
  .pv-quote-foot { flex-direction: column; align-items: flex-start; }
}
/* gentler for visitors who prefer reduced motion: still cycles, just a plain fade */
@media (prefers-reduced-motion: reduce) {
  .pv-quotes.is-js .pv-quote-slide.is-active blockquote p { animation: none; }
  .pv-quote-dot { transition: none; }
}
