/* ─────────────────────────────────────────────
   NEW AVENUE CAPITAL — Borrow Page Styles
   borrow.css
   Page-specific styles only.
   Global tokens, reset, and shared components
   are in global.css.
───────────────────────────────────────────── */


/* ── Qualifier checklist ── */
.qualifier-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(86, 86, 86, 0.15);
}

.qualifier-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(86, 86, 86, 0.15);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-graphite);
}

.qualifier-item::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background: var(--c-terracotta);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='white' d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='white' d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Testimonials 3-col ── */
.testimonials-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }

/* Editorial testimonial treatment — overrides global pull-quote style */
.testimonials-3col .pull-quote {
  border-left: none;
  padding: 2rem 0 0;
  border-top: 2px solid var(--c-terracotta);
  margin: 0;
}
.testimonials-3col .pull-quote blockquote {
  font-size: 15.5px;
  font-style: italic;
  line-height: 1.78;
  color: var(--c-white);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.testimonials-3col .pull-quote cite {
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
  color: var(--c-white);
  letter-spacing: 0;
  text-transform: none;
  display: block;
  margin-bottom: 0.25rem;
}
.testimonials-3col .pull-quote .cite-role {
  font-size: 12px;
  color: var(--c-silver);
  font-weight: 400;
  letter-spacing: 0;
  display: block;
}

/* ── FAQ accordion ── */
.faq-list { max-width: 720px; }
.faq-item { border-bottom: var(--divider); }
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.375rem 0; font-family: var(--f-base); font-size: var(--fs-body);
  font-weight: var(--fw-bold); color: var(--c-black); cursor: pointer; transition: color 0.15s;
}
.faq-question:hover { color: var(--c-terracotta); }
.faq-icon { display: block; width: 16px; height: 16px; flex-shrink: 0; position: relative; }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; background: currentColor;
}
.faq-icon::before { width: 16px; height: 1.5px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-icon::after  { width: 1.5px; height: 16px; left: 50%; top: 0; transform: translateX(-50%); transition: transform 0.2s, opacity 0.2s; }
.faq-item.is-open .faq-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-item.is-open .faq-answer { max-height: 800px; }
.faq-answer p { padding-bottom: 1.375rem; color: var(--c-graphite); line-height: var(--lh-body); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .testimonials-3col { grid-template-columns: 1fr; }
}


/* ── Testimonial Carousel ── */
.testimonial-carousel {
  margin-top: 3rem;
}

.testimonial-track {
  position: relative;
  min-height: 200px;
}

.testimonial-slide {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

.testimonial-slide.active {
  display: flex;
  animation: testimonialIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes testimonialIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.testimonial-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  border: 2px solid var(--c-terracotta);
}

.testimonial-body blockquote {
  font-size: 20px;
  font-style: italic;
  line-height: 1.65;
  color: var(--c-silver);
  margin-bottom: 1.25rem;
}

.testimonial-body cite {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-white);
  font-style: normal;
  display: block;
}

.testimonial-body .cite-role {
  font-size: var(--fs-label);
  color: var(--c-silver);
  font-weight: var(--fw-regular);
  letter-spacing: 0;
  text-transform: none;
  font-style: italic;
  display: block;
  margin-top: 0.25rem;
}

.testimonial-dots {
  display: flex;
  gap: 0.625rem;
  margin-top: 2.25rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s;
}

.testimonial-dot.active,
.testimonial-dot:hover {
  background: var(--c-terracotta);
}

@media (max-width: 640px) {
  .testimonial-slide {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

/* ── Testimonial carousel (borrow page) ── */
.testimonial-carousel { margin-top: 3rem; }
.testimonial-track { position: relative; min-height: 200px; }
.testimonial-slide { display: none; align-items: center; gap: 2.5rem; }
.testimonial-slide.active {
  display: flex;
  animation: testimonialIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes testimonialIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.testimonial-photo {
  width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
  object-position: top center; flex-shrink: 0; border: 2px solid var(--c-terracotta);
}
.testimonial-body blockquote { font-size: 20px; font-style: italic; line-height: 1.65; color: var(--c-silver); margin-bottom: 1.25rem; }
.testimonial-body cite { font-size: var(--fs-label); font-weight: var(--fw-bold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-white); font-style: normal; display: block; }
.testimonial-body .cite-role { font-size: var(--fs-label); color: var(--c-silver); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; font-style: italic; display: block; margin-top: 0.25rem; }
.testimonial-dots { display: flex; gap: 0.625rem; margin-top: 2.25rem; }
.testimonial-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); border: none; cursor: pointer; padding: 0; transition: background 0.25s; }
.testimonial-dot.active, .testimonial-dot:hover { background: var(--c-terracotta); }
@media (max-width: 640px) { .testimonial-slide { flex-direction: column; align-items: flex-start; gap: 1.5rem; } }
