:root {
  --sf-navy: #00264a;
  --sf-deep: #001d38;
  --sf-cyan: #08bed2;
  --sf-cyan-dark: #007e9d;
  --sf-ivory: #fffaf0;
  --sf-paper: #fffdf6;
  --sf-muted: #607485;
  --sf-line: #d4d9ce;
  --sf-shadow: 0 18px 44px rgba(0, 38, 74, .11);
}

.testimonials-page,
.testimonials-page * { box-sizing: border-box; }

.testimonials-page {
  min-width: 320px;
  margin: 0;
  color: var(--sf-navy);
  background: var(--sf-ivory);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.testimonials-page a { color: inherit; }
.testimonials-page button,
.testimonials-page select { font: inherit; }
.testimonials-page :focus-visible {
  outline: 3px solid rgba(8, 190, 210, .45);
  outline-offset: 3px;
}

.testimonials-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px clamp(22px, 5vw, 84px);
  background: var(--sf-ivory);
  border-bottom: 1px solid rgba(0, 38, 74, .08);
}

.testimonials-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--sf-navy);
  text-decoration: none;
}

.testimonials-brand img {
  display: block;
  width: 146px;
  height: auto;
}


.testimonials-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 31px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.testimonials-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--sf-navy);
  text-decoration: none;
  transition: color 160ms ease;
}

.testimonials-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--sf-cyan);
  content: '';
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.testimonials-nav a:hover,
.testimonials-nav a:focus-visible,
.testimonials-nav a.is-current { color: var(--sf-cyan-dark); }
.testimonials-nav a:hover::after,
.testimonials-nav a:focus-visible::after,
.testimonials-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }

.testimonials-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 270px);
  gap: clamp(28px, 7vw, 110px);
  min-height: 390px;
  overflow: hidden;
  padding: clamp(64px, 8vw, 116px) clamp(22px, 11vw, 190px);
  color: var(--sf-ivory);
  background: linear-gradient(118deg, var(--sf-deep), #003b67 84%);
}

.testimonials-hero::after {
  position: absolute;
  width: 440px;
  height: 440px;
  top: -210px;
  right: -110px;
  border: 1px solid rgba(9, 189, 209, .35);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(9, 189, 209, .06), 0 0 0 84px rgba(9, 189, 209, .035);
  content: '';
}

.testimonials-hero-copy,
.testimonials-hero-proof { position: relative; z-index: 1; }
.testimonials-eyebrow {
  margin: 0 0 25px;
  color: var(--sf-cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}
.testimonials-kicker {
  margin: 0 0 18px;
  color: #d5e5ea;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}
.testimonials-hero h1,
.testimonials-content h2,
.testimonials-card h3,
.testimonials-empty h3,
.testimonials-error h3 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
}
.testimonials-hero h1 {
  max-width: 760px;
  font-size: clamp(46px, 6vw, 82px);
  line-height: .98;
  letter-spacing: -.06em;
}
.testimonials-hero h1 em,
.testimonials-content h2 em { color: var(--sf-cyan); font-style: italic; }
.testimonials-intro {
  max-width: 550px;
  margin: 31px 0 0;
  color: #d5e5ea;
  font-size: 16px;
  line-height: 1.7;
}

.testimonials-hero-proof {
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 0 2px 22px;
  border-left: 1px solid rgba(255, 255, 255, .42);
}
.testimonials-proof-value {
  color: var(--sf-ivory);
  font: 500 clamp(48px, 6vw, 76px)/.9 Georgia, 'Times New Roman', serif;
  letter-spacing: -.08em;
}
.testimonials-proof-stars,
.testimonials-card-stars,
.client-testimonials-stars { color: var(--sf-cyan); letter-spacing: .1em; }
.testimonials-proof-stars { margin-top: 12px; font-size: 16px; }
.testimonials-proof-label,
.testimonials-proof-total {
  color: #d5e5ea;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.testimonials-proof-label { margin-top: 7px; }
.testimonials-proof-total { margin-top: 22px; color: var(--sf-cyan); }
.testimonials-mascot {
  position: absolute;
  right: clamp(22px, 7vw, 120px);
  bottom: -5px;
  z-index: 0;
  width: min(190px, 22vw);
  max-height: 220px;
  object-fit: contain;
  object-position: bottom right;
  opacity: .15;
}

.testimonials-content {
  padding: clamp(62px, 8vw, 118px) clamp(22px, 11vw, 190px);
}
.testimonials-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.testimonials-eyebrow-dark { margin-bottom: 19px; color: #079cb5; }
.testimonials-content h2 {
  max-width: 700px;
  color: var(--sf-navy);
  font-size: clamp(42px, 5vw, 70px);
  line-height: .99;
  letter-spacing: -.06em;
}
.testimonials-section-note {
  max-width: 270px;
  margin: 0 0 3px;
  color: var(--sf-muted);
  font-size: 13px;
  line-height: 1.55;
}
.testimonials-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 38px 0 28px;
  padding: 14px 0;
  border-top: 1px solid var(--sf-line);
  border-bottom: 1px solid var(--sf-line);
}
.testimonials-rating-filter,
.testimonials-category-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.testimonials-filter-label {
  margin-right: 4px;
  color: #079cb5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.testimonials-filter-button {
  border: 1px solid #b7c5c0;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--sf-navy);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}
.testimonials-filter-button:hover,
.testimonials-filter-button:focus-visible,
.testimonials-filter-button.is-active { border-color: var(--sf-cyan); color: var(--sf-ivory); background: var(--sf-cyan); }
.testimonials-category-filter select {
  min-width: 170px;
  padding: 9px 34px 9px 12px;
  border: 1px solid rgba(0, 38, 74, .22);
  border-radius: 3px;
  color: var(--sf-navy);
  background: var(--sf-paper);
  cursor: pointer;
  font-size: 12px;
}

.testimonials-status {
  margin: 30px 0 22px;
  color: var(--sf-muted);
  font-size: 14px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.testimonials-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--sf-line);
  background: var(--sf-paper);
  box-shadow: 0 7px 18px rgba(0, 38, 74, .035);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.testimonials-card:hover { border-color: var(--sf-cyan); box-shadow: var(--sf-shadow); transform: translateY(-4px); }
.testimonials-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.testimonials-card-profile {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--sf-line);
  border-radius: 50%;
  background: #edf3f0;
  box-shadow: 0 4px 12px rgba(0, 38, 74, .12);
  transition: transform 180ms cubic-bezier(.23,1,.32,1), box-shadow 180ms ease;
}
.testimonials-card-profile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.testimonials-card:hover .testimonials-card-profile,
.testimonials-card:focus-within .testimonials-card-profile { transform: scale(1.06); box-shadow: 0 8px 18px rgba(0, 38, 74, .17); }
.testimonials-card-stars { font-size: 16px; }
.testimonials-card-category {
  color: #079cb5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-align: right;
  text-transform: uppercase;
}
.testimonials-card blockquote {
  position: relative;
  flex: 1;
  margin: 28px 0 30px;
  padding-left: 17px;
  border-left: 2px solid var(--sf-cyan);
  color: var(--sf-navy);
  font: 19px/1.45 Georgia, 'Times New Roman', serif;
}
.testimonials-card blockquote::before {
  position: absolute;
  top: -17px;
  left: -6px;
  color: rgba(8, 190, 210, .55);
  content: '“';
  font: 44px/1 Georgia, serif;
}
.testimonials-card footer {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--sf-muted);
  font-size: 11px;
}
.testimonials-card footer strong { color: var(--sf-navy); font-size: 13px; }
.testimonials-card time { text-transform: capitalize; }
.testimonials-empty,
.testimonials-error {
  max-width: 570px;
  margin-top: 28px;
  padding: 48px 30px;
  border: 1px dashed #99a89d;
  color: var(--sf-muted);
  background: #fffaf1;
  text-align: center;
}
.testimonials-empty > span { color: var(--sf-cyan); font-size: 28px; }
.testimonials-empty h3,
.testimonials-error h3 { margin: 14px 0 9px; color: #4f6772; font-size: 29px; }
.testimonials-empty p,
.testimonials-error p { max-width: 380px; margin: 0 auto; font-size: 14px; line-height: 1.55; }
.testimonials-error { border-color: rgba(0, 126, 157, .45); }
.testimonials-error button {
  margin-top: 23px;
  padding: 11px 17px;
  border: 0;
  color: var(--sf-ivory);
  background: var(--sf-navy);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.testimonials-error button:hover,
.testimonials-error button:focus-visible { background: var(--sf-cyan-dark); }
.testimonials-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 26px clamp(22px, 11vw, 190px) 32px;
  color: #d5e5ea;
  background: var(--sf-deep);
  font-size: 11px;
}
.testimonials-footer p { margin: 0; }
.testimonials-footer a { color: var(--sf-cyan); font-weight: 800; text-decoration: none; text-transform: uppercase; }

@media (max-width: 900px) {
  .testimonials-hero { grid-template-columns: 1fr; }
  .testimonials-hero-proof { align-self: start; max-width: 240px; }
  .testimonials-mascot { width: 160px; }
  .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .testimonials-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .testimonials-brand img { width: 120px; }
  .testimonials-nav { width: 100%; flex-wrap: wrap; gap: 4px 18px; }
  .testimonials-hero { min-height: 0; padding-top: 58px; padding-bottom: 60px; }
  .testimonials-hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .testimonials-mascot { right: -18px; bottom: 3px; width: 140px; }
  .testimonials-section-heading { align-items: flex-start; flex-direction: column; }
  .testimonials-section-note { margin-top: 0; }
  .testimonials-toolbar { align-items: flex-start; flex-direction: column; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-card { min-height: 230px; }
  .testimonials-card-profile { width: 42px; height: 42px; }
  .testimonials-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials-page *,
  .testimonials-page *::before,
  .testimonials-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
