/* ============================================================================
   AUTOS DESIGN — Premium service-page layer
   3D image hero · portfolio slideshow · device/print mockups · marquee ·
   testimonials · FAQ accordion · parallax CTA · scroll-reveal polish.
   Loaded after styles.css on the /design /print /video pages. All motion is
   gated behind html.motion (added by motion.js unless prefers-reduced-motion),
   so reduced-motion users get a clean static layout.
   ========================================================================== */

/* ---- shared rhythm + section heads -------------------------------------- */
.pv-section { padding: 84px 0; }
.pv-section--tint { background: var(--brand-tint, #eefaf4); }
.pv-section--dark { background: #0c1f18; color: #eaf5ef; }
.pv-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.pv-section--dark .pv-eyebrow { color: #7ff0c0; }
.pv-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: #14201a;
}
.pv-section--dark .pv-h2 { color: #fff; }
.pv-sub { font-size: 16px; line-height: 1.7; color: var(--ink-soft, #5b6b63); max-width: 640px; margin: 0; }
.pv-section--dark .pv-sub { color: #a9c4b8; }
.pv-head { margin-bottom: 40px; }
.pv-head--center { text-align: center; }
.pv-head--center .pv-sub { margin-left: auto; margin-right: auto; }

/* ============================ 3D IMAGE HERO =============================== */
.pv-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(14, 163, 113, 0.16), transparent 60%),
    linear-gradient(180deg, #f4fbf8 0%, #ffffff 70%);
  padding: 56px 0 64px;
}
.pv-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.pv-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-darker, #0b6e4e);
  text-decoration: none;
  margin-bottom: 18px;
}
.pv-hero__back:hover { text-decoration: underline; }
.pv-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--brand-tint-2, #cdeede);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-darker, #0b6e4e);
  box-shadow: 0 6px 18px -12px rgba(11, 110, 78, 0.5);
  margin-bottom: 18px;
}
.pv-hero__pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(14, 163, 113, 0.18);
}
.pv-hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: #11241b;
}
.pv-hero__lead { font-size: 18px; line-height: 1.7; color: #3a4a42; margin: 0 0 26px; max-width: 520px; }
.pv-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.pv-hero__points { display: flex; flex-wrap: wrap; gap: 10px; }
.pv-hero__point {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line, #e3ece8);
  font-size: 13.5px;
  font-weight: 600;
  color: #2c3a32;
}

/* the floating 3D stage of images */
.pv-hero__stage {
  position: relative;
  height: 480px;
  perspective: 1200px;
}
.pv-hero__scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out;
}
.pv-card3d {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(8, 40, 28, 0.55);
  background: #fff;
  border: 5px solid #fff;
  transform: translate3d(var(--x, 0), var(--y, 0), var(--z, 0)) rotate(var(--r, 0deg));
  will-change: transform;
}
.pv-card3d img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pv-card3d--a { width: 240px; height: 300px; left: 8%;  top: 6%;  --z: 60px; }
.pv-card3d--b { width: 190px; height: 240px; right: 6%; top: 0;   --z: -40px; --r: 6deg; }
.pv-card3d--c { width: 220px; height: 150px; right: 0;  top: 42%; --z: 90px; --r: -5deg; }
.pv-card3d--d { width: 180px; height: 220px; left: 0;   top: 50%; --z: -20px; --r: -8deg; }
.pv-card3d--e { width: 150px; height: 150px; left: 38%; top: 60%; --z: 120px; --r: 9deg; }
.pv-hero__glow {
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 163, 113, 0.4), transparent 65%);
  filter: blur(20px);
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  z-index: -1;
}
html.motion .pv-card3d { animation: pv-float 7s ease-in-out infinite; }
html.motion .pv-card3d--b { animation-duration: 8.5s; animation-delay: -1.5s; }
html.motion .pv-card3d--c { animation-duration: 9.5s; animation-delay: -0.8s; }
html.motion .pv-card3d--d { animation-duration: 8s; animation-delay: -2.2s; }
html.motion .pv-card3d--e { animation-duration: 7.5s; animation-delay: -1.1s; }
@keyframes pv-float {
  0%, 100% { transform: translate3d(var(--x, 0), var(--y, 0), var(--z, 0)) rotate(var(--r, 0deg)); }
  50% { transform: translate3d(var(--x, 0), calc(var(--y, 0px) - 16px), var(--z, 0)) rotate(var(--r, 0deg)); }
}

/* ============================ MARQUEE STRIP ============================== */
.pv-marquee {
  background: var(--brand);
  color: #fff;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.pv-marquee__track { display: inline-flex; gap: 0; animation: pv-marquee 28s linear infinite; }
html:not(.motion) .pv-marquee__track { animation: none; }
.pv-marquee:hover .pv-marquee__track { animation-play-state: paused; }
.pv-marquee__item { font-family: var(--font-display); font-weight: 600; font-size: 15px; padding: 0 26px; opacity: 0.95; }
.pv-marquee__item::after { content: "✦"; margin-left: 26px; opacity: 0.55; }
@keyframes pv-marquee { to { transform: translateX(-50%); } }

/* ============================ SLIDESHOW ================================== */
.pv-slider { position: relative; }
.pv-slider__viewport { overflow: hidden; border-radius: 22px; }
.pv-slider__track { display: flex; transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1); }
.pv-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  background: #0c1f18;
}
.pv-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-slide__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 28px 22px;
  background: linear-gradient(0deg, rgba(6, 22, 16, 0.82), transparent);
  color: #fff;
}
.pv-slide__cap b { font-family: var(--font-display); font-size: 19px; font-weight: 700; display: block; }
.pv-slide__cap span { font-size: 13.5px; opacity: 0.85; }
.pv-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #11241b;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md, 0 12px 28px -10px rgba(0, 0, 0, 0.3));
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.pv-slider__btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.pv-slider__btn--prev { left: 14px; }
.pv-slider__btn--next { right: 14px; }
.pv-slider__dots { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }
.pv-slider__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  background: var(--brand-tint-2, #cdeede);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}
.pv-slider__dot.is-active { width: 26px; border-radius: 6px; background: var(--brand); }

/* ============================ DEVICE / PRINT MOCKUPS ===================== */
.pv-mocks { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.pv-mockstage { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 360px; }
.pv-mock--laptop {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: 16px 16px 0 0;
  border: 12px solid #1b2a23;
  border-bottom: 0;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(8, 40, 28, 0.6);
  background: #000;
}
.pv-mock--laptop::after {
  content: "";
  position: absolute;
  left: -7%; right: -7%; bottom: -22px;
  height: 22px;
  background: linear-gradient(180deg, #243b30, #16241d);
  border-radius: 0 0 14px 14px;
}
.pv-mock--laptop img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pv-mock--phone {
  position: absolute;
  right: -6px; bottom: -10px;
  width: 132px;
  border-radius: 22px;
  border: 7px solid #1b2a23;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 48px -18px rgba(8, 40, 28, 0.55);
  z-index: 2;
}
.pv-mock--phone img { display: block; width: 100%; aspect-ratio: 9 / 19; object-fit: cover; }
.pv-mocklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.pv-mocklist li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.55; color: #2c3a32; }
.pv-mocklist li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* print-piece mockup (poster / card with realistic shadow + slight 3D) */
.pv-printmock { perspective: 1100px; }
.pv-printmock__sheet {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 60px -26px rgba(8, 40, 28, 0.5);
  transform: rotateY(-12deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}
.pv-printmock:hover .pv-printmock__sheet { transform: rotateY(-4deg) rotateX(2deg); }
.pv-printmock__sheet img { display: block; width: 100%; height: auto; }

/* ============================ FEATURE CARDS ============================== */
.pv-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pv-feat {
  position: relative;
  background: #fff;
  border: 1px solid var(--line, #e3ece8);
  border-radius: 18px;
  padding: 26px 24px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pv-feat::before {
  content: "";
  position: absolute; left: 24px; top: 26px;
  width: 30px; height: 3px; border-radius: 2px;
  background: var(--brand);
  transition: width 0.25s ease;
}
.pv-feat:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -26px rgba(8, 40, 28, 0.45); border-color: var(--brand-tint-2, #cdeede); }
.pv-feat:hover::before { width: 46px; }
.pv-feat h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: #14201a; margin: 22px 0 8px; }
.pv-feat p { font-size: 14px; line-height: 1.65; color: var(--ink-soft, #5b6b63); margin: 0; }

/* ============================ TESTIMONIALS ============================== */
.pv-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pv-testi {
  background: #fff;
  border: 1px solid var(--line, #e3ece8);
  border-radius: 18px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pv-testi__stars { color: #f5a623; font-size: 15px; letter-spacing: 2px; }
.pv-testi__quote { font-size: 15px; line-height: 1.7; color: #2c3a32; margin: 0; flex: 1; }
.pv-testi__who { display: flex; align-items: center; gap: 12px; }
.pv-testi__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-tint, #eefaf4);
  color: var(--brand-darker, #0b6e4e);
  font-family: var(--font-display);
  font-weight: 700;
}
.pv-testi__who b { display: block; font-size: 14.5px; color: #14201a; }
.pv-testi__who span { font-size: 12.5px; color: var(--ink-soft, #5b6b63); }

/* ============================ FAQ ACCORDION ============================= */
.pv-faq { max-width: 820px; margin: 0 auto; }
.pv-faq__item { border-bottom: 1px solid var(--line, #e3ece8); }
.pv-faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: #14201a;
}
.pv-faq__q::after {
  content: "+";
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px; font-weight: 400;
  color: var(--brand);
  transition: transform 0.25s ease;
}
.pv-faq__item.is-open .pv-faq__q::after { transform: translateY(-50%) rotate(45deg); }
.pv-faq__a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.pv-faq__a p { font-size: 15px; line-height: 1.7; color: var(--ink-soft, #5b6b63); margin: 0 0 22px; }

/* ============================ PARALLAX CTA ============================== */
.pv-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b6e4e 0%, #0ea371 60%, #16c98a 100%);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.pv-cta__blob {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(10px);
}
.pv-cta__blob--1 { left: -120px; top: -140px; }
.pv-cta__blob--2 { right: -120px; bottom: -160px; width: 360px; height: 360px; }
.pv-cta__inner { position: relative; z-index: 1; }
.pv-cta h2 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 40px); font-weight: 700; margin: 0 0 12px; }
.pv-cta p { font-size: 17px; opacity: 0.92; margin: 0 0 26px; }

/* ============================ SCROLL REVEAL ============================= */
html.motion [data-pv-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--pv-d, 0ms);
}
html.motion [data-pv-reveal].is-in { opacity: 1; transform: none; }

/* ============================ RESPONSIVE =============================== */
@media (max-width: 980px) {
  .pv-hero__grid { grid-template-columns: 1fr; }
  .pv-hero__stage { height: 380px; order: -1; max-width: 520px; margin: 0 auto; }
  .pv-mocks { grid-template-columns: 1fr; }
  .pv-feat-grid, .pv-testi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .pv-section { padding: 56px 0; }
  .pv-feat-grid, .pv-testi-grid { grid-template-columns: 1fr; }
  .pv-hero__stage { height: 320px; }
  .pv-card3d--a { width: 180px; height: 220px; }
  .pv-card3d--b { width: 140px; height: 180px; }
  .pv-slider__btn { width: 38px; height: 38px; font-size: 17px; }
}
