/* =========================================================
   Management Consultancy - Product Design Review - page styles  (product-design.html)
   Shared styles live in css/style.css and css/consultancy.css.
   ========================================================= */

/* ---------- Product Design Review banner: KAD24 car (black first, colour rises from the bottom) ---------- */
.ph-bg.pd-backdrop { background: #111 url('../../image/conn1.jpg') center / cover no-repeat; }
/* this banner is a little taller than the other consultancy pages so the car has room */
.page-hero:has(.pd-shade) { min-height: 46svh; }
@media (min-width: 768px) { .page-hero:has(.pd-shade) { min-height: 58svh; } }
/* large screens: never shorter than 27rem, so the car never runs into the header on wide-but-short windows */
@media (min-width: 1024px) { .page-hero:has(.pd-shade) { min-height: max(58svh, 27rem); } }
/* phones and tablets: showroom backdrop (wall + reflective floor), floor at the bottom under the car */
@media (max-width: 1023.98px) { .ph-bg.pd-backdrop { background: #050505 url('../../image/phn.png') center bottom / cover no-repeat; } }
.page-hero > .ph-shade.pd-shade { background: linear-gradient(90deg, rgba(10,10,12,.6) 0%, rgba(10,10,12,.2) 45%, rgba(10,10,12,0) 100%), linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 45%); }
.page-hero:has(.pd-shade) > .ph-dim { background: #000; }

/* layout: car with the highlight tags on its right, colour + charge controls on one line underneath
   phones: left-aligned under the text  |  tablets: centred  |  desktop: bottom-right of the banner */
.pd-stage { position: relative; width: 100%; margin-top: 1.6rem; }
.pd-row { display: flex; align-items: center; gap: .8rem; }
.pd-car { position: relative; flex: none; width: min(56vw, 15rem); aspect-ratio: 536 / 335; }
@media (min-width: 640px) and (max-width: 1023.98px) {
  .pd-stage { margin-top: 2rem; }
  .pd-row { justify-content: center; gap: 1.25rem; }
  .pd-car { width: 20rem; }
}
@media (min-width: 1024px) {
  .pd-stage { position: absolute; right: 4.75rem; bottom: 1.5rem; width: auto; margin: 0; }   /* clear of the floating contact buttons */
  .pd-row { gap: 1.25rem; }
  .pd-car { width: min(20vw, 19rem); }
}
.pd-img { z-index: 2; }

/* small laptops (1024-1279px): smaller title so it doesn't crowd the car, slightly bigger car */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .page-hero:has(.pd-shade) #page-title { font-size: 2.15rem; }
  .page-hero:has(.pd-shade) .ph-inner > p { max-width: 26rem; }
  .pd-car { width: 16rem; }
  .pd-tags li { font-size: .7rem; }
}

/* animated patterns around the car */
.pd-stage { --glow: #ffffff; }
.pd-fx { position: absolute; inset: -12% -10% -8%; z-index: 0; pointer-events: none; }
.pd-glow { position: absolute; left: 15%; right: 15%; top: 25%; bottom: 15%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); opacity: .08; filter: blur(30px); transition: background .8s, opacity .8s; }
.is-lit .pd-glow { opacity: .5; animation: pd-breathe 4s ease-in-out infinite; }
.pd-rings { position: absolute; left: 2%; right: 2%; bottom: 2%; width: 96%; height: auto; overflow: visible; }
.pd-ring { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.2; }
.pd-pulse { fill: none; stroke: var(--glow); stroke-width: 1.5; opacity: 0; transform-origin: 200px 50px; transition: stroke .8s; }
.is-lit .pd-pulse { animation: pd-pulse 3s ease-out infinite; }
.pd-streak { position: absolute; left: -10%; height: 1px; width: 38%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); opacity: 0; animation: pd-streak 6s ease-in-out infinite; }
.pd-streak:nth-child(2) { top: 30%; }
.pd-streak:nth-child(3) { top: 52%; animation-delay: 2s; width: 28%; }
.pd-streak:nth-child(4) { top: 70%; animation-delay: 4s; }
@keyframes pd-breathe { 0%, 100% { opacity: .4; } 50% { opacity: .6; } }
@keyframes pd-spin { to { transform: rotate(360deg); } }
@keyframes pd-pulse { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes pd-streak { 0% { transform: translateX(0); opacity: 0; } 20% { opacity: 1; } 60%, 100% { transform: translateX(320%); opacity: 0; } }
.pd-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pd-base.is-black { filter: grayscale(1) brightness(.9) contrast(1.05); }
.pd-top { clip-path: inset(100% 0 0 0); }
.is-revealing .pd-top { animation: pd-rise 1.6s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes pd-rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.pd-shadow { position: absolute; z-index: 1; left: 6%; right: 4%; bottom: -3%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.8), transparent); }

.pd-scan { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 2px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7) 20%, #fff 50%, rgba(255,255,255,.7) 80%, transparent); box-shadow: 0 0 14px 3px rgba(255,255,255,.45); }
.is-revealing .pd-scan { animation: pd-scan 1.6s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes pd-scan { 0% { bottom: 0; opacity: 1; } 92% { opacity: 1; } 100% { bottom: 100%; opacity: 0; } }

/* highlight tags (right of the car) */
.pd-tags { position: relative; z-index: 3; flex: none; display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.pd-tags li { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .6rem; font-size: .72rem; font-weight: 600; white-space: nowrap; color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.06); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pd-tags svg { flex: none; width: .85rem; height: .85rem; color: var(--glow); transition: color .8s; }
/* small instruction above the colour buttons */
.pd-hint { display: flex; align-items: center; justify-content: center; gap: .35rem; margin: .8rem 0 0; font-size: .7rem; font-weight: 500; letter-spacing: .02em; color: rgba(255,255,255,.6); }
.pd-hint svg { width: .85rem; height: .85rem; color: var(--glow); transition: color .8s; animation: pd-tap 1.6s ease-in-out infinite; }
@keyframes pd-tap { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@media (max-width: 639.98px) { .pd-hint { justify-content: flex-start; margin-top: .6rem; font-size: .64rem; } }
@media (prefers-reduced-motion: reduce) { .pd-hint svg { animation: none; } }
.pd-ui { position: relative; z-index: 1; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: .5rem; margin-top: .4rem; }
@media (max-width: 639.98px) { .pd-ui { justify-content: flex-start; } }
.pd-swatches { display: flex; gap: .4rem; padding: .3rem .45rem; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.05); }
.pd-sw { width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--c); border: 2px solid rgba(255,255,255,.25); cursor: pointer; transition: transform .2s, border-color .2s; }
.pd-sw:hover { transform: scale(1.15); }
.pd-sw.is-on { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.pd-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .75rem; font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.05); cursor: pointer; transition: border-color .25s, background-color .25s, color .25s; }
.pd-btn svg { width: .95rem; height: .95rem; }
.pd-btn:hover { border-color: rgba(255,255,255,.45); }
.pd-btn.is-on { border-color: rgba(95,227,161,.6); color: #fff; background: rgba(95,227,161,.12); }
.pd-bar { position: relative; width: 1.9rem; height: .45rem; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
.pd-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #22c55e, #5fe3a1); }
.is-charging:not(.is-full) #pd-charge svg { animation: pd-blink 1.2s ease-in-out infinite; }
#pd-pct { min-width: 2.4em; font-variant-numeric: tabular-nums; }
/* phones: everything a size smaller so car + tags + controls fit a 360px screen */
@media (max-width: 639.98px) {
  .pd-row { gap: .6rem; }
  .pd-tags { gap: .35rem; }
  .pd-tags li { gap: .3rem; padding: .25rem .5rem; font-size: .62rem; }
  .pd-tags svg { width: .7rem; height: .7rem; }
  .pd-ui { gap: .35rem; margin-top: .35rem; }
  .pd-swatches { gap: .3rem; padding: .25rem .35rem; }
  .pd-sw { width: .9rem; height: .9rem; }
  .pd-btn { gap: .3rem; padding: .25rem .55rem; font-size: .66rem; }
  .pd-btn svg { width: .8rem; height: .8rem; }
  .pd-bar { width: 1.5rem; height: .38rem; }
}
@keyframes pd-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .is-lit .pd-glow, .is-lit .pd-pulse, .pd-streak { animation: none; } .is-revealing .pd-top { animation-duration: .01s; } .pd-scan { display: none; } #pd-charge svg { animation: none !important; } }
