/*
 * cda-trust.css — shared trust components for the /coeur-dalene/ pages.
 * Three components, all prefixed to avoid leaking:
 *   .cdag-*  Google reviews slider (navy band, Google-look review cards)
 *   .cdab    Innovation Collective membership badge
 *   .cdax-*  expandable case-study section (wraps .cs-card from case-studies.css)
 */

/* ─────────────────────────────────────────────
   1. GOOGLE REVIEWS SLIDER
────────────────────────────────────────────── */
.cdag {
  background: #14142a;
  padding: 3.25rem 0 2.75rem;
}

.cdag__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.1rem;
  margin-bottom: 1.4rem;
}

.cdag__glogo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
  box-sizing: content-box;
}

.cdag__title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.25rem, 3.5vw, 1.8rem);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.cdag__title span { color: #F46122; }

.cdag__agg {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
}

.cdag__agg-score {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.cdag__agg svg { width: 15px; height: 15px; }

.cdag__link {
  margin-left: auto;
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  color: #F49C22;
  text-decoration: underline;
  white-space: nowrap;
}

.cdag__wrap { position: relative; }

.cdag__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 8px;
}

.cdag__track::-webkit-scrollbar { display: none; }

/* the card — deliberately styled like a Google Maps review */
.cdag-card {
  flex: 0 0 min(330px, 84vw);
  scroll-snap-align: start;
  background: #fff;
  border-radius: 8px;
  padding: 16px 16px 14px;
  font-family: 'Roboto', Arial, sans-serif;
  align-self: flex-start;
}

.cdag-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cdag-card__avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #F46122;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.cdag-card__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.cdag-card__name {
  font-size: 0.92rem;
  font-weight: 500;
  color: #202124;
  margin: 0;
  line-height: 1.3;
}

.cdag-card__sub {
  font-size: 0.75rem;
  color: #5f6368;
  margin: 0;
}

.cdag-card__rating {
  display: flex;
  align-items: center;
  margin: 9px 0 6px;
}

.cdag-card__rating svg {
  width: 15px;
  height: 15px;
  margin-right: 1px;
}

.cdag-card__date {
  font-size: 0.75rem;
  color: #5f6368;
  margin-left: 7px;
}

.cdag-card__text {
  font-size: 0.88rem;
  color: #3c4043;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cdag-card.is-open .cdag-card__text {
  -webkit-line-clamp: unset;
  display: block;
}

.cdag-card__more {
  background: none;
  border: none;
  color: #1a73e8;
  font-family: 'Roboto', sans-serif;
  font-size: 0.82rem;
  padding: 0;
  margin-top: 6px;
  cursor: pointer;
}

/* desktop arrows */
.cdag__nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #14142a;
  z-index: 2;
}

.cdag__nav--prev { left: -14px; }
.cdag__nav--next { right: -14px; }

@media (min-width: 900px) {
  .cdag__nav { display: flex; }
}

/* ─────────────────────────────────────────────
   2. INNOVATION COLLECTIVE BADGE
────────────────────────────────────────────── */
.cdab {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid rgba(173, 146, 134, 0.35);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 1.25rem;
  max-width: 460px;
}

.cdab img {
  width: 118px;
  height: auto;
  flex-shrink: 0;
}

.cdab__label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #14142a;
  margin: 0 0 2px;
}

.cdab__sub {
  font-family: 'Roboto', sans-serif;
  font-size: 0.8rem;
  color: #555;
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 420px) {
  .cdab { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ─────────────────────────────────────────────
   3. EXPANDABLE CASE STUDIES
────────────────────────────────────────────── */
.cdax__h {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  color: #14142a;
  text-align: center;
  margin: 0 0 0.4rem;
}

.cdax__h span { color: #F46122; }

.cdax__sub {
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: 0.92rem;
  color: #555;
  margin: 0 0 1.6rem;
}

.cdax__item {
  margin: 0 0 14px;
}

.cdax__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid rgba(173, 146, 134, 0.35);
  border-left: 4px solid #F46122;
  border-radius: 12px;
  padding: 15px 18px;
  box-shadow: 0 2px 10px rgba(20,20,42,0.05);
  transition: box-shadow 0.15s;
}

.cdax__item summary:hover { box-shadow: 0 4px 16px rgba(20,20,42,0.10); }

.cdax__item summary::-webkit-details-marker { display: none; }

.cdax__sum { min-width: 0; }

.cdax__sum-name {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #14142a;
  line-height: 1.25;
}

.cdax__sum-headline {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 0.86rem;
  color: #555;
  margin-top: 2px;
  line-height: 1.4;
}

.cdax__chev {
  margin-left: auto;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #FBEFEB;
  color: #F46122;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.cdax__item[open] summary {
  border-radius: 12px 12px 0 0;
  border-bottom-color: rgba(173, 146, 134, 0.18);
}

.cdax__item[open] .cdax__chev { transform: rotate(180deg); }

/* the full cs-card (styled by case-studies.css) docks under the open summary */
.cdax__item .cs-card {
  border-radius: 0 0 12px 12px;
  border-top: none;
}

/* internal-process badge doesn't belong on a sales page */
.cdax__item .cs-badge--upgraded { display: none; }

.cdax__more {
  text-align: center;
  font-family: 'Roboto', sans-serif;
  margin: 1.4rem 0 0;
}
