/* ==========================================================================
   PERFECTOO PROTECTOR — TESTIMONIALS
   Same system as the video showcase: light calm section, one dark "screen"
   panel (the brand statement) with the glass reflection, and clean white
   cards for the real customer voices. First testimonial is featured.
   ========================================================================== */

/* ---------- 1. Tokens (same as other sections; move to :root later) ---------- */
.testimonials {
  --bg:#F2F6F9; --bg-tint:#E4EEF4; --surface:#FFFFFF;
  --ink:#10202C; --ink-2:#46586A; --ink-3:#7A8B9A; --line:#D5E1EA;
  --accent:#0A6B78; --accent-hover:#085862; --accent-soft:#D8EEF0; --signal:#E8A33D;
  --deep:#06323A; --deep-2:#0A5560;
  --font-display:"Bricolage Grotesque","Segoe UI",system-ui,sans-serif;
  --font-body:"Instrument Sans","Segoe UI",system-ui,sans-serif;
  --r-lg:26px; --r-xl:34px;
  --ease:cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. Shell ---------- */
.testimonials {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 120px) clamp(20px, 5vw, 80px);
  background:
    radial-gradient(40% 40% at 100% 100%, var(--accent-soft) 0%, transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
.testimonials *, .testimonials *::before, .testimonials *::after { box-sizing: border-box; }
.testimonials .section-inner { max-width: 1360px; margin: 0 auto; }

/* ---------- 3. Header ---------- */
.testimonials-heading {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(24px, 5vw, 96px); align-items: end;
}
.testimonials-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .875rem; font-weight: 600; color: var(--accent);
}
.testimonials-eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent);
}
.testimonials-heading h2 {
  margin: 22px 0 0; max-width: 16ch;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 4.8vw, 4.3rem); line-height: 1; letter-spacing: -.04em;
  text-wrap: balance;
}
.testimonials-intro {
  margin: 0; max-width: 46ch;
  font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.7; color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- 4. Layout ---------- */
.testimonials-layout {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr);
  gap: clamp(16px, 2.2vw, 28px);
  margin-top: clamp(36px, 5vw, 72px);
  align-items: start;
}

/* ---------- 5. Statement panel: the dark "screen" ---------- */
.testimonials-side {
  position: sticky; top: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 460px; padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  color: #fff;
  background:
    radial-gradient(60% 60% at 80% 10%, rgba(120,220,230,.35) 0%, transparent 60%),
    linear-gradient(160deg, var(--deep-2) 0%, var(--deep) 100%);
  box-shadow: 0 2px 4px rgba(16,32,44,.05), 0 60px 90px -50px rgba(6,50,58,.55);
}
.testimonials-side::before { /* glass reflection, same as the video stage */
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.12) 34%, transparent 34.2%);
}
.testimonials-side::after { /* soft orbit ring */
  content: ""; position: absolute; z-index: -1; right: -22%; bottom: -12%;
  width: 80%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.16); pointer-events: none;
}
.testimonials-mark {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: #fff; color: var(--accent);
  font: 800 3rem/1 var(--font-display); padding-top: 14px;
  box-shadow: 0 0 0 10px rgba(255,255,255,.14), 0 20px 36px -12px rgba(0,0,0,.5);
}
.testimonials-side-text {
  margin: 0;
  font: 800 clamp(1.8rem, 2.8vw, 2.5rem)/1.08 var(--font-display); letter-spacing: -.035em;
}
.testimonials-side-bottom {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2);
  font-size: .8125rem; font-weight: 500; color: rgba(255,255,255,.78);
}
.testimonials-line { width: 22px; height: 3px; border-radius: 3px; background: var(--signal); flex: none; }

/* ---------- 6. Cards ---------- */
.testimonials-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}
.testimonial-card {
  margin: 0; padding: clamp(22px, 2.4vw, 30px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: 0 1px 2px rgba(16,32,44,.04), 0 30px 50px -40px rgba(6,50,58,.35);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: #BFD3DF;
  box-shadow: 0 1px 2px rgba(16,32,44,.04), 0 40px 60px -36px rgba(6,50,58,.45);
}

.testimonial-card-top { display: flex; align-items: center; gap: 12px; }
.testimonial-quote-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font: 800 1.7rem/1 var(--font-display); padding-top: 9px;
}
.testimonial-label { font-size: .8125rem; font-weight: 500; color: var(--ink-3); }

.testimonial-body {
  margin: 0; font-size: 1.0625rem; line-height: 1.7; color: var(--ink);
  text-wrap: pretty;
}

/* Featured: the first testimonial spans both columns */
.testimonial-card:first-child { grid-column: 1 / -1; }
.testimonial-card:first-child .testimonial-body {
  max-width: 40ch;
  font: 700 clamp(1.35rem, 2.3vw, 2rem)/1.25 var(--font-display); letter-spacing: -.025em;
}
.testimonial-card:first-child .testimonial-quote-icon { background: var(--signal); color: var(--deep); }

/* Author */
.testimonial-author {
  display: flex; align-items: center; gap: 14px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.testimonial-avatar {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(160deg, var(--deep-2), var(--deep)); color: #fff;
  font: 700 1.05rem/1 var(--font-display); text-transform: uppercase;
}
.testimonial-author-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.testimonial-name { font-size: .9375rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.testimonial-role { font-size: .8125rem; color: var(--ink-3); }
.demo-badge {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
  font-size: .75rem; font-weight: 600; color: var(--ink-2);
}
.testimonial-author-arrow {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg); color: var(--accent); font-size: 1rem;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.testimonial-card:hover .testimonial-author-arrow {
  background: var(--accent); color: #fff; transform: translate(2px, -2px);
}

/* ---------- 7. Responsive ---------- */
@media (max-width: 1100px) {
  .testimonials-layout { grid-template-columns: 1fr; }
  .testimonials-side { position: relative; top: 0; min-height: 0; gap: 56px; }
}
@media (max-width: 860px) {
  .testimonials-heading { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 700px) {
  .testimonials-list { grid-template-columns: 1fr; }
  .testimonial-card:first-child { grid-column: auto; }
  .testimonial-card { border-radius: 26px; }
  .testimonials-side { border-radius: 26px; }
}

/* ---------- 8. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .testimonial-card, .testimonial-author-arrow { transition: none; }
  .testimonial-card:hover, .testimonial-card:hover .testimonial-author-arrow { transform: none; }
}