/* Testimonials page redesign — testimonials page (testimonials.php)
   Scoped under body.testimonials-redesign so live testimonials.php is unaffected.
   Shared conventions with home page and services page. */

body.testimonials-redesign {
  --reg-btn-height: 53px;
  --reg-btn-font-size: 1.14rem;
  --reg-btn-gap: 12px;
}

/* Unified CTA buttons */
body.testimonials-redesign .guten-button,
body.testimonials-redesign .guten-button-wrapper .guten-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: var(--reg-btn-gap);
  min-height: var(--reg-btn-height);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 29px !important;
  padding-right: 29px !important;
  font-size: var(--reg-btn-font-size) !important;
  line-height: 1.2;
  box-sizing: border-box;
}

body.testimonials-redesign .guten-button-wrapper .guten-button i {
  font-size: 1.14rem !important;
  margin-left: 0 !important;
  line-height: 1;
  flex-shrink: 0;
}

/* Section kicker labels — match home page */
body.testimonials-redesign .guten-iiHfhk,
body.testimonials-redesign .guten-qxBc60,
body.testimonials-redesign .process-subtitle,
body.testimonials-redesign .stories-subtitle,
body.testimonials-redesign .reg-testimonials__label {
  margin: 0 0 12px;
  font-family: var(--reg-font-body, "Figtree", sans-serif) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--reg-gold, #1B3A5C) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  line-height: 1.4 !important;
}

body.testimonials-redesign .process-subtitle,
body.testimonials-redesign .stories-subtitle {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center !important;
}

body.testimonials-redesign .reg-testimonials__label {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 24px;
  text-align: left !important;
}

body.testimonials-redesign .reg-testimonials__card,
body.testimonials-redesign .reg-testimonials__slides,
body.testimonials-redesign .reg-testimonials .slide,
body.testimonials-redesign .reg-testimonials__quote,
body.testimonials-redesign .reg-testimonials__name {
  text-align: left;
}

body.testimonials-redesign .reg-testimonials__quote {
  line-height: 1.5 !important;
  color: var(--reg-ink, #1F1B14) !important;
}

body.testimonials-redesign .reg-testimonials__name {
  margin: 0;
  color: var(--reg-gold, #1B3A5C) !important;
}

body.testimonials-redesign .reg-testimonials__media,
body.testimonials-redesign .reg-testimonials__media img {
  border-radius: 0 !important;
}

body.testimonials-redesign .reg-testimonials__card {
  border-radius: 0 !important;
  background: var(--color-bg-alt, var(--reg-parchment, #F3F6FA)) !important;
  border: 1px solid var(--reg-border, #D0D8E4);
}

body.testimonials-redesign .reg-testimonials__nav button {
  border-radius: 0 !important;
}

/* Hero banner — match about page / services page */
body.testimonials-redesign #firmly-header,
body.testimonials-redesign .guten-element.guten-WtRO6p {
  background: #0A2540 !important;
  background-color: #0A2540 !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
}

body.testimonials-redesign .guten-4dZ7c2:not(.background-animated),
body.testimonials-redesign .guten-4dZ7c2.background-animated > .guten-background-animated .animated-layer {
  background-color: var(--color-bg-alt, #F3F6FA) !important;
  background-image: url('/assets/images/banners/banner.webp') !important;
  background-position: center 30% !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

body.testimonials-redesign .guten-4dZ7c2 > .guten-background-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.1) 60%, rgba(255, 255, 255, 0) 100%) !important;
  opacity: 1 !important;
}

body.testimonials-redesign .guten-element.guten-4dZ7c2 {
  margin-top: -111.3px !important;
  min-height: 600px !important;
  padding-top: 260px !important;
  padding-bottom: 130px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  body.testimonials-redesign .guten-element.guten-4dZ7c2 {
    margin-top: -91.3px !important;
    min-height: 600px !important;
    padding-top: 200px !important;
    padding-bottom: 100px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 640px) {
  body.testimonials-redesign .guten-element.guten-4dZ7c2 {
    min-height: 600px !important;
    padding-top: 180px !important;
    padding-bottom: 72px !important;
  }

  body.testimonials-redesign .guten-4dZ7c2:not(.background-animated),
  body.testimonials-redesign .guten-4dZ7c2.background-animated > .guten-background-animated .animated-layer {
    background-position: center 37% !important;
  }
}

/* Hero text on dark background */
body.testimonials-redesign .guten-JVoMmk,
body.testimonials-redesign .guten-JVoMmk strong {
  color: #ffffff !important;
}

body.testimonials-redesign .guten-WrcBvM,
body.testimonials-redesign .guten-WrcBvM p {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* ==========================================================================
   Stories — Theory of Change flow grid (base styles: .reg-flow in site.css;
   white treatment mirrors body.theory-redesign in theory-redesign.css)
   ========================================================================== */

body.testimonials-redesign .reg-flow-bleed,
body.testimonials-redesign .reg-flow {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

body.testimonials-redesign .reg-flow-bleed {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  position: relative;
  border-top: 1px solid #D0D8E4;
}

body.testimonials-redesign .reg-flow-bleed::after {
  content: "";
  display: block;
  width: 100%;
  height: clamp(40px, 5vw, 56px);
  background-color: #ffffff;
}

body.testimonials-redesign .reg-flow .reg-flow__title {
  font-family: var(--reg-font-display, "Fraunces", serif) !important;
  font-size: 52px !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.02em !important;
  color: var(--reg-ink, #1F1B14) !important;
  margin: 0 0 48px !important;
  max-width: none !important;
  width: 100% !important;
}

body.testimonials-redesign .reg-flow .reg-flow__grid {
  background: #D0D8E4 !important;
}

body.testimonials-redesign .reg-flow .reg-flow__box {
  background: #ffffff !important;
}

body.testimonials-redesign .reg-flow .reg-flow__box:hover {
  background: #F3F6FA !important;
}

body.testimonials-redesign .reg-flow .reg-flow__box h3 {
  color: var(--reg-ink, #1F1B14) !important;
}

body.testimonials-redesign .reg-flow .reg-flow__box p {
  color: #5a534c !important;
  opacity: 1 !important;
}

/* Five stories: 3 on the first row, 2 on the second (the base grid is laid out for seven) */
@media only screen and (min-width: 1200px) {
  body.testimonials-redesign .reg-flow .reg-flow__box {
    grid-column: span 4 !important;
  }

  body.testimonials-redesign .reg-flow .reg-flow__box:nth-child(n + 4) {
    grid-column: span 6 !important;
  }
}

@media only screen and (max-width: 991px) {
  body.testimonials-redesign .reg-flow .reg-flow__title {
    font-size: clamp(2rem, 5.5vw, 44px) !important;
  }
}

@media only screen and (max-width: 640px) {
  body.testimonials-redesign .reg-flow .reg-flow__title {
    font-size: clamp(1.75rem, 7vw, 34px) !important;
    line-height: 1.28 !important;
    margin-bottom: 32px !important;
  }
}

/* Font Awesome — correct weights */
body.testimonials-redesign i.far,
body.testimonials-redesign .far {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
}

body.testimonials-redesign i.fas,
body.testimonials-redesign .fas {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

/* Process — white section background on testimonials page only */
body.testimonials-redesign .process-redesign-wrapper {
  background-color: #ffffff;
  background: #ffffff;
}

/* ==========================================================================
   Sharp edges — images, boxes, buttons (match home page)
   ========================================================================== */

body.testimonials-redesign .guten-button,
body.testimonials-redesign .guten-button-wrapper .guten-button,
body.testimonials-redesign .process-step-card,
body.testimonials-redesign .step-badge,
body.testimonials-redesign .process-footer-note,
body.testimonials-redesign .story-page-card,
body.testimonials-redesign .story-page-card__inner,
body.testimonials-redesign .story-page-card__media,
body.testimonials-redesign .story-page-card__media img,
body.testimonials-redesign .story-page-card__body,
body.testimonials-redesign .story-page-card__rule,
body.testimonials-redesign .guten-icon-box,
body.testimonials-redesign .guten-icon-box-wrapper,
body.testimonials-redesign .guten-icon-box .icon-box,
body.testimonials-redesign .guten-icon-box .icon,
body.testimonials-redesign .guten-column-wrapper,
body.testimonials-redesign .reg-testimonials__media,
body.testimonials-redesign .reg-testimonials__media img,
body.testimonials-redesign .reg-testimonials__card,
body.testimonials-redesign .reg-testimonials__nav button,
body.testimonials-redesign .guten-image-wrapper,
body.testimonials-redesign .guten-image img,
body.testimonials-redesign .gutenverse-image-box-filled,
body.testimonials-redesign .back-to-top {
  border-radius: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

/* Story card columns — gutenverse uses 18px radius on wrappers (legacy) */
body.testimonials-redesign .story-page-card,
body.testimonials-redesign .story-page-card__inner,
body.testimonials-redesign .story-page-card__media,
body.testimonials-redesign .story-page-card__media img {
  border-radius: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}
