/* SilverWeb Omdömen – matchar SilverWebs startsida (mörka kort, lime-accent, mjuk animation) */

.sw-testimonials-section{
  --sw-accent: #b7ff4a;
  --sw-star: var(--sw-accent);
  --sw-bg: transparent;
  --sw-surface: rgba(10, 14, 20, 0.92);
  --sw-surface-2: rgba(10, 14, 20, 0.75);
  --sw-border: rgba(255,255,255,0.10);
  --sw-text: rgba(255,255,255,0.92);
  --sw-muted: rgba(255,255,255,0.70);
  --sw-shadow: 0 18px 60px rgba(0,0,0,0.35);

  background: var(--sw-bg);
  position: relative;
  padding: 64px 0 72px;
  overflow: hidden;
  font-family: inherit; /* låt temat styra typsnitt */
}

/* Preset: Google (enterprise, "Google look") */
.sw-testimonials-section.sw-preset-google{
  --sw-accent: #34a853;
  --sw-star: #fbbc04;
  --sw-surface: rgba(255,255,255,0.94);
  --sw-surface-2: rgba(255,255,255,0.82);
  --sw-border: rgba(11,18,32,0.14);
  --sw-text: #0b1220;
  --sw-muted: rgba(11,18,32,0.72);
  --sw-shadow: 0 18px 60px rgba(0,0,0,0.22);
}
.sw-testimonials-section.sw-preset-google .sw-testimonials-title,
.sw-testimonials-section.sw-preset-google .sw-testimonials-subtitle,
.sw-testimonials-section.sw-preset-google .sw-testimonials-kicker{
  /* (Överskrivs längre ner av Google-kort overrides)
     Historiskt satt till vitt när bakgrunden var mörk. */
  color: rgba(255,255,255,0.96);
}
.sw-testimonials-section.sw-preset-google .sw-testimonials-title::after{
  background: var(--sw-accent);
  box-shadow: 0 10px 24px rgba(52,168,83,0.25);
}

.sw-testimonials-inner{
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.sw-testimonials-title{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--sw-text);
}

.sw-testimonials-title::after{
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--sw-accent), rgba(183,255,74,0));
}

.sw-testimonials-subtitle{
  margin: 0;
  max-width: 62ch;
  color: var(--sw-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Scroller (horisontell) */
.sw-scroller{
  width: 100%;
  margin-top: 26px;
  position: relative;
  z-index: 1;

  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;

  /* Edge fade */
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.sw-scroller::-webkit-scrollbar{ display:none; }
.sw-scroller.is-dragging{ cursor: grabbing; }

.sw-gradient-edge{ display:none; } /* gamla gradients – vi använder mask-image */

/* Track */
.sw-testimonials-track{
  display: flex;
  gap: 18px;
  padding: 0 20px;
  width: max-content;
}

/* Item width */
.sw-testimonial-item{ flex: 0 0 300px; }
@media (min-width: 900px){
  .sw-testimonial-item{ flex-basis: 360px; }
}

/* Card – samma “mörka glaskort”-känsla som hemsidan */
.sw-testimonial-card{
  position: relative;
  border-radius: 28px;
  padding: 22px 22px 18px;
  background:
    radial-gradient(120% 120% at 10% 0%, rgba(183,255,74,0.08) 0%, rgba(183,255,74,0) 55%),
    linear-gradient(180deg, var(--sw-surface), var(--sw-surface-2));
  border: 1px solid var(--sw-border);
  box-shadow: var(--sw-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--sw-text);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateZ(0);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.sw-testimonial-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 28px;
  pointer-events:none;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0) 45%);
  opacity: 0.55;
}

.sw-testimonial-card::after{
  content:"“";
  position:absolute;
  top: 14px;
  right: 16px;
  font-size: 42px;
  line-height: 1;
  color: rgba(255,255,255,0.10);
  font-weight: 900;
}

.sw-testimonial-card:hover{
  transform: translateY(-4px);
  border-color: rgba(183,255,74,0.35);
  box-shadow: 0 22px 70px rgba(0,0,0,0.45);
}

/* Stars */
.sw-star-rating{
  display:flex;
  gap: 3px;
  font-size: 0.95rem;
  margin-bottom: 10px;
  user-select:none;
}
.sw-star-rating span{
  color: rgba(255,255,255,0.22);
  text-shadow: 0 0 0 rgba(0,0,0,0);
}
.sw-star-rating span.filled{
  color: var(--sw-star);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.18));
}

/* Content */
.sw-testimonial-content{
  color: var(--sw-text);
  font-size: 0.98rem;
  line-height: 1.6;
}
.sw-testimonial-content p{ margin:0; }
.sw-testimonial-content p + p{ margin-top: 10px; }

/* Meta */
.sw-testimonial-meta{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-top: 16px;
}

.sw-testimonial-avatar{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(183,255,74,0.38), rgba(183,255,74,0) 60%),
    rgba(255,255,255,0.06);
  border: 1px solid rgba(183,255,74,0.28);
}
.sw-testimonial-avatar span{
  font-weight: 800;
  color: var(--sw-text);
}

.sw-testimonial-name{
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 0.98rem;
  margin-bottom: 2px;
  color: var(--sw-text);
}
.sw-testimonial-company{
  font-size: 0.86rem;
  color: var(--sw-muted);
}

/* Tillgänglighet */
.sw-scroller:focus{ outline: none; }
.sw-testimonial-card:focus-within{
  outline: 2px solid rgba(183,255,74,0.45);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .sw-testimonial-card{ transition:none; }
  .sw-scroller{ scroll-behavior:auto; }
}

/* -----------------------------
   Google preset – "riktig Google-kort"-look
   (kompakt, vit, mer proportionerlig)
------------------------------ */

/* Titlar ska inte tvingas vara vita i Google-läget */
.sw-testimonials-section.sw-preset-google .sw-testimonials-title,
.sw-testimonials-section.sw-preset-google .sw-testimonials-subtitle,
.sw-testimonials-section.sw-preset-google .sw-testimonials-kicker{
  color: var(--sw-text);
}

/* Kort: mindre radie, mindre padding, ingen glaseffekt/quote-overlay */
.sw-testimonials-section.sw-preset-google .sw-testimonial-card{
  border-radius: 14px;
  padding: 16px 18px 14px;
  background: #fff;
  border: 1px solid rgba(60, 64, 67, 0.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  min-height: 140px;          /* viktig: tar bort “för höga” kort */
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.sw-testimonials-section.sw-preset-google .sw-testimonial-card::before,
.sw-testimonials-section.sw-preset-google .sw-testimonial-card::after{
  display: none; /* tar bort glans + stort citationstecken */
}

/* Hover lite mer “Google”: mindre lyft */
.sw-testimonials-section.sw-preset-google .sw-testimonial-card:hover{
  transform: translateY(-2px);
  border-color: rgba(60, 64, 67, 0.22);
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}

/* Kortbredd: lite bredare så texten får rätt proportion */
.sw-testimonials-section.sw-preset-google .sw-testimonial-item{
  flex: 0 0 480px;
}
@media (max-width: 560px){
  .sw-testimonials-section.sw-preset-google .sw-testimonial-item{
    flex-basis: 320px;
  }
}

/* Top-raden mer kompakt */
.sw-testimonials-section.sw-preset-google .sw-star-rating{
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.sw-testimonials-section.sw-preset-google .sw-testimonial-content{
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(11,18,32,0.86);
}

/* Avatar mer “Google”: neutral cirkel + diskret bokstav */
.sw-testimonials-section.sw-preset-google .sw-testimonial-avatar{
  width: 36px;
  height: 36px;
  background: #f1f3f4;
  border: 1px solid rgba(60, 64, 67, 0.15);
}
.sw-testimonials-section.sw-preset-google .sw-testimonial-avatar span{
  color: #5f6368;
  font-weight: 700;
}

/* Meta-typografi */
.sw-testimonials-section.sw-preset-google .sw-testimonial-name{
  font-size: 0.95rem;
}
.sw-testimonials-section.sw-preset-google .sw-testimonial-company{
  font-size: 0.85rem;
}

/* Google-logo (kicker + källa) */
.sw-testimonials-section.sw-preset-google .sw-google-dot{
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  position: relative;
}
.sw-testimonials-section.sw-preset-google .sw-google-dot::before{
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background-size: 18px 18px;
  background-repeat: no-repeat;
  /* Enkel "G"-ikon i Google-färger (SVG) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.5 0 6.6 1.2 9 3.3l6.7-6.7C35.6 2.4 30.2 0 24 0 14.6 0 6.5 5.4 2.6 13.3l7.9 6.1C12.3 13.4 17.7 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.1 24.5c0-1.6-.1-2.8-.4-4H24v7.6h12.6c-.3 2-1.8 5-5.1 7l7.8 6c4.6-4.2 7.2-10.5 7.2-16.6z'/%3E%3Cpath fill='%23FBBC05' d='M10.5 28.6c-.5-1.5-.9-3.1-.9-4.6s.3-3.1.8-4.6l-7.9-6.1C.9 16.6 0 20.2 0 24s.9 7.4 2.5 10.7l8-6.1z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.2 0 11.4-2 15.2-5.5l-7.8-6c-2.1 1.4-4.9 2.4-7.4 2.4-6.3 0-11.7-3.9-13.6-9.4l-8 6.1C6.4 42.6 14.6 48 24 48z'/%3E%3C/svg%3E");
}

.sw-testimonials-section.sw-preset-google .sw-source-badge{
  background: transparent;
  border: 0;
  padding: 0;
  color: rgba(11,18,32,0.72);
  font-weight: 500;
}
.sw-testimonials-section.sw-preset-google .sw-source-icon{
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  background-size: 18px 18px;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.5 0 6.6 1.2 9 3.3l6.7-6.7C35.6 2.4 30.2 0 24 0 14.6 0 6.5 5.4 2.6 13.3l7.9 6.1C12.3 13.4 17.7 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.1 24.5c0-1.6-.1-2.8-.4-4H24v7.6h12.6c-.3 2-1.8 5-5.1 7l7.8 6c4.6-4.2 7.2-10.5 7.2-16.6z'/%3E%3Cpath fill='%23FBBC05' d='M10.5 28.6c-.5-1.5-.9-3.1-.9-4.6s.3-3.1.8-4.6l-7.9-6.1C.9 16.6 0 20.2 0 24s.9 7.4 2.5 10.7l8-6.1z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.2 0 11.4-2 15.2-5.5l-7.8-6c-2.1 1.4-4.9 2.4-7.4 2.4-6.3 0-11.7-3.9-13.6-9.4l-8 6.1C6.4 42.6 14.6 48 24 48z'/%3E%3C/svg%3E");
}
