/* ============================================================
   KUBO TINYHOUSE — TESTIMONIALE (carusel)
   Generat pentru componenta assets/js/testimonials.js
   Nu necesită editare la adăugarea unui testimonial nou.
   ============================================================ */

.kt-section { background: #ebe4d8; padding: 120px 40px; }
.kt-section--full { background: #f5f1ea; }
.kt-inner { max-width: 1280px; margin: 0 auto; }

/* ---------- Antet ---------- */
.kt-head { text-align: center; margin-bottom: 64px; }
.kt-head .eyebrow { justify-content: center; }
.kt-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #1a1612;
  margin: 0;
}
.kt-title em { font-style: italic; color: #6b4423; }

/* ---------- Carusel ---------- */
.kt-carousel { position: relative; }
.kt-viewport { overflow: hidden; }
.kt-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.55s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform;
}
.kt-slide { flex: 0 0 100%; min-width: 0; }
.kt-slide-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 90px);
  align-items: center;
  height: 100%;
  padding: 0 clamp(0px, 4vw, 64px);
}

/* ---------- Panoul media ---------- */
.kt-media {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #1a1612;
  box-shadow: 0 26px 60px rgba(26, 22, 18, 0.24);
}
.kt-media--text { aspect-ratio: 4 / 5; }
.kt-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kt-media > img { width: 100%; height: 100%; object-fit: cover; display: block; }

.kt-facade {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  padding: 0; margin: 0; border: 0;
  background: none; cursor: pointer; display: block;
}
.kt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.kt-facade::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,22,18,0.10) 0%, rgba(26,22,18,0.02) 38%, rgba(26,22,18,0.78) 100%);
}
.kt-facade:hover img { transform: scale(1.05); }
.kt-facade:focus-visible { outline: 2px solid #6b4423; outline-offset: 4px; }

.kt-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 74px; height: 74px;
  border-radius: 50%;
  background: rgba(253, 251, 247, 0.92);
  color: #3d2817;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}
.kt-play svg { width: 28px; height: 28px; margin-left: 4px; }
.kt-facade:hover .kt-play { background: #fdfbf7; transform: translate(-50%, -50%) scale(1.08); }

.kt-badge {
  position: absolute; left: 0; right: 0; bottom: 24px;
  z-index: 2; text-align: center;
  color: #fdfbf7;
  font-family: 'Manrope', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(26, 22, 18, 0.55);
}

/* ---------- Textul ---------- */
.kt-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 300; font-style: italic;
  line-height: 1.25; letter-spacing: -0.01em;
  color: #1a1612;
  margin: 0 0 32px;
}
.kt-quote::before {
  content: '\201C';
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 84px; font-style: normal;
  color: #6b4423; line-height: 0.5;
  margin-bottom: 28px;
}
.kt-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px; font-weight: 500;
  color: #1a1612; line-height: 1.2;
}
.kt-meta {
  font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #4a4239; margin-top: 6px;
}
.kt-note {
  font-family: 'Manrope', sans-serif;
  font-size: 12px; color: #4a4239;
  opacity: 0.65; margin-top: 12px; letter-spacing: 0.02em;
}
.kt-cta { display: inline-block; margin-top: 34px; }

/* ---------- Săgeți ---------- */
.kt-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid #d4c9b8;
  background: rgba(253, 251, 247, 0.92);
  color: #1a1612;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.kt-nav svg { width: 20px; height: 20px; }
.kt-nav:hover { background: #1a1612; color: #fdfbf7; border-color: #1a1612; }
.kt-nav:focus-visible { outline: 2px solid #6b4423; outline-offset: 3px; }
.kt-nav[disabled] { opacity: 0.3; cursor: default; }
.kt-nav[disabled]:hover { background: rgba(253,251,247,0.92); color: #1a1612; border-color: #d4c9b8; }
.kt-prev { left: -6px; }
.kt-next { right: -6px; }

/* ---------- Subsol carusel ---------- */
.kt-foot {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
  margin-top: 56px;
}
.kt-dots { display: flex; gap: 10px; }
.kt-dot {
  width: 8px; height: 8px; padding: 0;
  border-radius: 50%; border: 0;
  background: #d4c9b8; cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.kt-dot[aria-current="true"] { background: #6b4423; transform: scale(1.35); }
.kt-dot:focus-visible { outline: 2px solid #6b4423; outline-offset: 3px; }
.kt-count {
  font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; color: #4a4239;
}
.kt-all {
  font-family: 'Manrope', sans-serif;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #6b4423; text-decoration: none;
  border-bottom: 1px solid rgba(107, 68, 35, 0.35);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.kt-all:hover { color: #3d2817; border-color: #3d2817; }

/* când e un singur testimonial, ascundem tot ce ține de navigare */
.kt-carousel--single .kt-nav,
.kt-carousel--single ~ .kt-foot .kt-dots,
.kt-carousel--single ~ .kt-foot .kt-count { display: none; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .kt-section { padding: 80px 20px; }
  .kt-head { margin-bottom: 44px; }
  .kt-slide-grid { grid-template-columns: 1fr; gap: 40px; padding: 0; text-align: center; }
  .kt-slide-grid .eyebrow { justify-content: center; }
  .kt-media { max-width: 290px; }
  /* pe mobil navigarea se face prin swipe + bulinele de jos,
     săgețile ar acoperi videoul */
  .kt-nav { display: none; }
  .kt-foot { margin-top: 36px; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .kt-track { transition: none; }
  .kt-facade img, .kt-play, .kt-nav { transition: none; }
}
