/* =============================================
   TESTIMONIAL GRID (MOBILE-FIRST)
============================================= */

/* MOBILE base: 1 column */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;      /* ✅ mobile-first */
  gap: 1.5rem;                     /* a little tighter on mobile */
  padding: 16px 0;
  justify-items: center;
  margin: 24px auto;
  max-width: 1200px;
}

/* Cards */
.testimonial-item {
  background-color: rgba(173, 216, 230, 0.8);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;

  width: 100%;
  max-width: 320px;               /* mobile-friendly cap */
  height: auto;                   /* ✅ mobile-first: avoid vh cards */
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.testimonial-item img {
  display: block;
  width: 100%;
  height: 220px;                  /* mobile base */
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  border-bottom: 3px solid transparent; /* required */
  border-image: linear-gradient(
    to right,
    #8c6239 0%,
    #c9a36a 30%,
    #f5e6c8 50%,
    #c9a36a 70%,
    #8c6239 100%
  ) 1;
}

.testimonial-item figcaption {
  padding: 10px;
  font-size: 1.1rem;              /* mobile base */
  font-weight: 700;
  color: #2c2c2c;
  font-family: "Cormorant Garamond", serif;
  background: rgba(255,255,255,0.4);
}

.testimonial-text {
  padding: 15px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  color: #333;
}

.gratitude-note {
  max-width: 90%;
  margin: 2rem auto;
  padding: 1.5rem 1rem;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
  color: #555;
  background-color: #fafafa;

 border-left: 3px solid #CD7F32;
}


/* =============================================
   TESTIMONIAL MODAL (MOBILE-FIRST)
============================================= */

/* MOBILE base: full-screen modal */
.testimonial-modal {
  border: none;
  border-radius: 0;               /* ✅ mobile full screen */
  padding: 0;
  width: 100vw;                   /* ✅ mobile first */
  height: 100vh;
  background: rgba(0,0,0,0.85);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  transform: none;
  z-index: 1000;
  max-width: 100vw;
  max-height: 100vh;
}

/* Backdrop (unchanged) */
.testimonial-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 900;
  display: none;
  pointer-events: auto;
}

.testimonial-modal-content {
  background: #1c1c1c;
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 16px 16px;            /* ✅ mobile padding */
  text-align: center;
  max-height: 100vh;
  overflow: hidden;
}

.testimonial-modal-img {
  display: block;
  width: auto;
  max-width: 92%;
  max-height: 45vh;              /* ✅ mobile base */
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid #CD7F32;
  margin: 0 auto 12px auto;
  flex-shrink: 0;
}

.testimonial-modal-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;             /* ✅ mobile base */
  margin: 0 0 10px;
  flex-shrink: 0;
  color: #fff8e7;
}

.testimonial-modal-text {
  flex: 1 1 auto;
  overflow-y: auto;
  white-space: pre-wrap;
  margin-top: 0.75rem;
  text-align: left;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: #fff8e7;
  line-height: 1.5;
  padding: 0 10px;
}

.testimonial-modal-text p { margin-bottom: 1.5em; }
.testimonial-modal-text p:last-child { margin-bottom: 0; }

/* Buttons */
.testimonial-modal .testimonial-close,
.testimonial-modal .testimonial-nav-prev,
.testimonial-modal .testimonial-nav-next {
  position: absolute;
  background: rgba(0,0,0,0.15);
  color: #fff8e7;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  cursor: url(../images/paw-cursor.png);
  z-index: 10;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(4px);
  outline: none;
}

.testimonial-modal .testimonial-close:hover,
.testimonial-modal .testimonial-nav-prev:hover,
.testimonial-modal .testimonial-nav-next:hover {
  background: rgba(0,0,0,0.8);
}

.testimonial-close { top: 12px; right: 12px; }
.testimonial-nav-prev { top: 50%; left: 12px; transform: translateY(-50%); }
.testimonial-nav-next { top: 50%; right: 12px; transform: translateY(-50%); }

/* Scrollbar */
.testimonial-modal-text::-webkit-scrollbar { width: 8px; }
.testimonial-modal-text::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
  border-radius: 10px;
}
.testimonial-modal-text::-webkit-scrollbar-thumb {
  background: #6b3601;
  border-radius: 10px;
}

/* =============================================
   Progressive Enhancements (Desktop-second)
============================================= */

/* Grid becomes responsive columns once there is room */
@media (min-width: 640px) {
  .testimonial-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem 1rem;
    padding: 20px 0;
    margin: 30px auto;
  }

  .testimonial-item {
    max-width: 300px; /* restore your original cap */
    height: 300px;   /* try 260px–320px to taste */
  }

  .testimonial-item img {
    height: 250px; /* restore */
  }

  .testimonial-item figcaption {
    font-size: 1.2rem; /* restore */
  }
}

/* Restore your original desktop modal sizing/padding */
@media (min-width: 900px) {
  .testimonial-modal {
    border-radius: 16px;
    width: 53vw;
    height: 100vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
  }

  .testimonial-modal-content {
    padding: 30px 60px; /* restore */
  }

  .testimonial-modal-img {
    max-width: 90%;
    max-height: 50vh;  /* restore */
  }

  .testimonial-modal-title {
    font-size: 2rem;   /* restore */
  }
}
