/* ========================================================
   TESTIMONIAL PAGE — Fresh Face Clinic (Layout Update)
======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --ac: #a4b697;
  --ac-dk: #8a9e7e;
  --ac-lt: #c8d8c2;
  --bg: #ffffff;
  --bg-lt: #f9f9f9;
  --bg-warm: #f4f2ee;
  --tx: #333333;
  --tx-mid: #555555;
  --tx-light: #777777;
  --div: #e4e4e0;
  --font: 'Plus Jakarta Sans', sans-serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font);
  overflow-x: hidden;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.tm-page {
  position: relative;
}

.tm-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ==============================================
   1. HERO — Split Layout (Like Image 2)
============================================== */
.tm-hero {
  position: relative;
  background: #f1f2f3;
  /* Matching the light grey background */
  margin-top: -120px;
  padding-top: 180px;
  padding-bottom: 60px;
  overflow: hidden;
  text-align: center;
}


.tm-hero-inner {
  position: relative;
  z-index: 5;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 5%;
}

.tm-hero-text {}

.tm-hero-eyebrow {
  font-size: 15px;
  font-weight: 400;
  color: #7d8591;
  margin: 0 0 16px;
}

.tm-hero-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 300;
  color: #6a7482;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.5px;
}

.tm-hero-img-wrap {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.tm-hero-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  max-height: 550px;
  position: relative;
  z-index: 2;
  transform: translateY(20px);
}


/* ==============================================
   2. REVIEWS GRID (Overlapping Avatar)
============================================== */
.tm-reviews-section {
  background: var(--bg);
  padding: 80px 0 120px;
}

.tm-reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 50px;
  column-gap: 50px;
  padding-left: 20px;
}

/* ==============================================
   REVIEW CARD (Absolute Avatar)
============================================== */
.tm-review-card {
  position: relative;
  background: linear-gradient(to right, #e8e8e8 0%, #f4f4f4 15%, #f7f7f7 100%);
  border-radius: 20px 0 20px 20px;
  padding: 35px 35px 35px 85px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #ececec;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 180px;
}

.tm-review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.tm-rv-avatar {
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #fff;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  z-index: 2;
}

.tm-rv-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-rv-content {
  position: relative;
  z-index: 1;
}

.tm-rv-name {
  font-size: 19px;
  font-weight: 400;
  color: #177a6f;
  margin: 0 0 14px;
  letter-spacing: 0.5px;
}

.tm-rv-text {
  font-size: 14.5px;
  font-weight: 300;
  color: #7b7b7b;
  line-height: 1.7;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tm-rv-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #177a6f;
  text-decoration: none;
  transition: opacity 0.2s ease;
  margin-top: auto;
}

.tm-rv-more-link:hover {
  opacity: 0.7;
}

/* fade-up */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

/* ==============================================
   RESPONSIVE
============================================== */
.tm-hero-text {
  margin-bottom: 40px;
}

.tm-reviews-grid {
  grid-template-columns: 1fr;
  padding-left: 50px;
  padding-right: 20px;
}

@media (max-width: 600px) {
  .tm-reviews-grid {
    padding-left: 0;
    padding-right: 0;
  }

  .tm-review-card {
    padding: 80px 25px 35px;
    margin-top: 60px;
    text-align: center;
  }

  .tm-rv-avatar {
    left: 50%;
    top: -60px;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
  }
}

/* ==============================================
   3. BOTTOM LINK
============================================== */
.tm-reviews-bottom {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.tm-rv-more-link-main {
  font-size: 16px;
  padding: 12px 24px;
  background: var(--ac);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(164, 182, 151, 0.4);
}

.tm-rv-more-link-main:hover {
  background: var(--ac-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(164, 182, 151, 0.6);
  color: #fff;
  opacity: 1;
}