/* ============================================
   TESTIMONIALS — SHARED STYLES
   Used by: landing page (carousel) + testimonials page (grid)
   ============================================ */

/* ----- Section wrapper (landing) ----- */
.testimonials-section {
  position: relative;
  padding: 20px 60px 90px;
  text-align: center;
  overflow: hidden;
}

.testimonials-bg-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.testimonials-bg-orb-1 {
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(247, 218, 210, 0.85) 0%, transparent 70%);
}

.testimonials-bg-orb-2 {
  bottom: -140px;
  right: -100px;
  background: radial-gradient(circle, rgba(201, 168, 108, 0.45) 0%, transparent 70%);
}

.testimonials-section > *:not(.testimonials-bg-orb) {
  position: relative;
  z-index: 1;
}

.testimonials-header {
  max-width: 760px;
  margin: 0 auto 44px;
}

.testimonials-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.testimonials-eyebrow-dash {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent) 100%);
}

.testimonials-eyebrow:first-child .testimonials-eyebrow-dash {
  background: linear-gradient(90deg, transparent 0%, var(--color-accent) 100%);
}

.testimonials-eyebrow-flower {
  font-size: 12px;
  color: var(--color-accent);
  opacity: 0.9;
}

.testimonials-eyebrow-text {
  white-space: nowrap;
}

.testimonials-title {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 400;
  color: var(--color-text-medium);
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.testimonials-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.testimonials-subtitle {
  font-family: var(--font-heading);
  font-size: 18px;
  font-style: italic;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

.testimonials-divider {
  margin: 0 auto;
}

/* ----- Carousel ----- */
.testimonials-carousel {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.testimonials-track-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 12px 6px;
}

.testimonials-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.testimonials-track > .testimonial-card {
  flex: 0 0 100%;
  min-width: 100%;
}

.testimonials-nav {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 108, 0.55);
  background: linear-gradient(180deg, rgba(253, 246, 238, 0.95) 0%, rgba(248, 237, 232, 0.95) 100%);
  color: var(--color-primary);
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 8px 20px rgba(139, 115, 85, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.testimonials-nav:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: var(--color-text-inverse);
  border-color: transparent;
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(139, 115, 85, 0.32);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(201, 168, 108, 0.35);
  cursor: pointer;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonials-dot:hover {
  background: rgba(201, 168, 108, 0.6);
  transform: scale(1.15);
}

.testimonials-dot.is-active {
  width: 32px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  box-shadow: 0 2px 8px rgba(201, 168, 108, 0.45);
}

/* ----- Card ----- */
.testimonial-card {
  position: relative;
  padding: 60px 48px 44px;
  background:
    linear-gradient(
      180deg,
      rgba(253, 246, 238, 0.98) 0%,
      rgba(251, 232, 216, 0.92) 100%
    );
  border: 1px solid rgba(201, 168, 108, 0.35);
  border-radius: var(--radius-lg);
  box-shadow:
    0 20px 48px rgba(139, 115, 85, 0.18),
    0 0 0 1px rgba(201, 168, 108, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  isolation: isolate;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 168, 108, 0.22);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
  z-index: 0;
}

.testimonial-card > * {
  position: relative;
  z-index: 1;
}

/* Carousel-only card — uses the sketch phone/book as backdrop */
.testimonials-carousel .testimonial-card {
  background-image:
    linear-gradient(
      180deg,
      rgba(253, 246, 238, 0.88) 0%,
      rgba(251, 232, 216, 0.82) 100%
    ),
    url('../../images/service-card-phone.png');
  background-size: cover, 320px auto;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

.testimonial-bg-quote {
  position: absolute;
  top: -30px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: 220px;
  font-style: italic;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.testimonial-avatar-wrap {
  position: relative;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(201, 168, 108, 0.7) 0%,
    rgba(247, 218, 210, 0.7) 50%,
    rgba(201, 168, 108, 0.7) 100%
  );
  box-shadow: 0 6px 20px rgba(139, 115, 85, 0.18);
}

.testimonial-avatar-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(201, 168, 108, 0.4);
  border-radius: 50%;
  opacity: 0.7;
}

.testimonial-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.testimonial-avatar-female {
  background: linear-gradient(135deg, #f7dad2 0%, #e8c7ba 100%);
  color: #9a5a64;
}

.testimonial-avatar-male {
  background: linear-gradient(135deg, #d9e3e8 0%, #b9cad3 100%);
  color: #4f6b78;
}

.testimonial-stars {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-accent);
}

.testimonial-stars i {
  filter: drop-shadow(0 1px 2px rgba(201, 168, 108, 0.35));
}

.testimonial-quote-mark {
  font-family: var(--font-heading);
  font-size: 72px;
  font-style: italic;
  color: var(--color-accent);
  opacity: 0.75;
  line-height: 0.4;
  margin-top: 8px;
}

.testimonial-message {
  font-family: var(--font-heading);
  font-size: 21px;
  font-style: italic;
  font-weight: 400;
  color: var(--color-text-medium);
  line-height: 1.6;
  margin: 6px 0 0;
  max-width: 640px;
}

.testimonial-footer {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.testimonial-flourish {
  width: 44px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 168, 108, 0.75) 50%,
    transparent 100%
  );
  position: relative;
}

.testimonial-flourish::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateY(-50%);
  opacity: 0.7;
}

.testimonial-footer > .testimonial-flourish:first-child::after {
  right: auto;
  left: -3px;
}

.testimonial-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.testimonial-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.testimonial-designation {
  font-family: var(--font-heading);
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
  max-width: 420px;
  line-height: 1.35;
}

/* ----- CTA button ----- */
.testimonials-cta {
  margin-top: 40px;
  text-align: center;
}

.btn-testimonials-more {
  position: relative;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
  padding: 15px 36px;
  background: transparent;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-testimonials-more::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.btn-testimonials-more > * {
  position: relative;
  z-index: 1;
}

.btn-testimonials-more:hover {
  color: var(--color-text-inverse);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(139, 115, 85, 0.28);
}

.btn-testimonials-more:hover::before {
  opacity: 1;
}

.btn-testimonials-more i {
  font-size: 10px;
  transition: transform 0.35s ease;
}

.btn-testimonials-more:hover i {
  transform: translateX(5px);
}

/* ============================================
   TESTIMONIALS PAGE (dedicated)
   ============================================ */
.testimonials-page {
  padding-bottom: 40px;
}

.testimonials-hero {
    padding-top: 20px;
  text-align: center;
}

.testimonials-hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.testimonials-page-title {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 400;
  font-style: italic;
  color: var(--color-text-medium);
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}

.testimonials-page-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 18px;
}

.testimonials-grid-section {
  padding: 40px 60px 100px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
}

.testimonials-grid .testimonial-card {
  padding: 48px 32px 32px;
}

.testimonials-grid .testimonial-message {
  font-size: 17px;
  line-height: 1.6;
}

.testimonials-grid .testimonial-quote-mark {
  font-size: 60px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .testimonials-section {
    padding: 20px 30px 70px;
  }

  .testimonials-bg-orb {
    width: 280px;
    height: 280px;
  }

  .testimonials-title {
    font-size: 40px;
  }

  .testimonials-subtitle {
    font-size: 16px;
  }

  .testimonial-card {
    padding: 48px 28px 36px;
  }

  .testimonial-bg-quote {
    font-size: 160px;
    top: -20px;
    right: 16px;
  }

  .testimonial-message {
    font-size: 18px;
  }

  .testimonials-hero {
    padding: 60px 30px 10px;
  }

  .testimonials-page-title {
    font-size: 48px;
  }

  .testimonials-grid-section {
    padding: 30px 30px 80px;
  }
}

@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .testimonials-section {
    padding: 20px 16px 60px;
  }

  .testimonials-carousel {
    gap: 10px;
  }

  .testimonials-nav {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .testimonials-title {
    font-size: 32px;
  }

  .testimonials-subtitle {
    font-size: 14px;
  }

  .testimonials-eyebrow {
    font-size: 10px;
    gap: 8px;
  }

  .testimonials-eyebrow-dash {
    width: 20px;
  }

  .testimonial-card {
    padding: 40px 22px 30px;
    gap: 10px;
  }

  .testimonial-bg-quote {
    font-size: 120px;
    top: -10px;
    right: 10px;
  }

  .testimonial-avatar {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }

  .testimonial-message {
    font-size: 16px;
  }

  .testimonial-quote-mark {
    font-size: 56px;
  }

  .testimonials-page-title {
    font-size: 40px;
  }

  .testimonials-page-subtitle {
    font-size: 14px;
  }

  .testimonial-flourish {
    width: 24px;
  }

  .testimonial-name {
    font-size: 12px;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 400px) {
  .testimonials-section {
    padding: 10px 10px 50px;
  }

  .testimonials-carousel {
    gap: 4px;
  }

  .testimonials-nav {
    width: 34px;
    height: 34px;
  }

  .testimonials-title {
    font-size: 28px;
  }

  .testimonial-card {
    padding: 36px 18px 26px;
  }

  .testimonial-bg-quote {
    font-size: 90px;
  }

  .testimonial-message {
    font-size: 15px;
  }
}
