/* ============================================================
   TESTIMONIALS PAGE — testimonials.css
   Orchid Business Group PLC
   ============================================================ */

:root {
  --tm-dark:  #0D182B;
  --tm-navy:  #0F1F3D;
  --tm-mid:   #152238;
  --tm-pink:  #DF3894;
  --tm-blue:  #3D91F9;
  --tm-gold:  #F0A500;
  --tm-white: #FFFFFF;
  --tm-light: #F4F6FC;
  --tm-light2: #EEF2FA;
  --tm-muted: rgba(255,255,255,.6);
}

/* ──────────────────────────────────────────────────────────
   KEYFRAMES
   ────────────────────────────────────────────────────────── */
@keyframes tmKenBurns {
  0%   { transform: scale(1.00) translate(0, 0); }
  100% { transform: scale(1.10) translate(-2%, -1%); }
}

@keyframes tmParticleFloat {
  0%   { transform: translateY(0)      rotate(0deg);   opacity: 1; }
  100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}

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

@keyframes tmBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* ══════════════════════════════════════════════════════════
   SHARED UTILITY
   ══════════════════════════════════════════════════════════ */
.tm-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tm-pink);
  margin-bottom: 14px;
}
.tm-eyebrow--light  { color: rgba(255,255,255,.45); }
.tm-eyebrow--blue   { color: var(--tm-blue); }
.tm-eyebrow--center { display: block; text-align: center; }

.tm-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.1;
  color: var(--tm-dark);
  margin: 0 0 16px;
  text-align: center;
}
.tm-section-title--light { color: var(--tm-white); }

.tm-rule {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--tm-pink), var(--tm-blue));
  border-radius: 100px;
  margin: 0 auto 28px;
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.tm-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--tm-white);
}

.tm-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  animation: tmKenBurns 18s ease-in-out alternate infinite;
}

.tm-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,24,43,.88) 0%,
    rgba(15,31,61,.80) 50%,
    rgba(13,24,43,.70) 100%
  );
}

.tm-hero-particles {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.tm-hero-inner {
  position: relative;
  z-index: 2;
  padding: 180px 0 220px;
  max-width: 860px;
}

.tm-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.55);
  margin-bottom: 28px;
}
.tm-hero-breadcrumb a { color: rgba(255,255,255,.55); }
.tm-hero-breadcrumb a:hover { color: #fff; }
.tm-hero-breadcrumb i { font-size: .65rem; }
.tm-hero-breadcrumb span { color: var(--tm-pink); }

.tm-hero-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tm-blue);
  background: rgba(61,145,249,.12);
  border: 1px solid rgba(61,145,249,.25);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 22px;
}

.tm-hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.04em;
  margin: 0 0 22px;
  animation: tmFadeUp .9s ease both;
}

.tm-hero-title .accent {
  background: linear-gradient(90deg, var(--tm-blue), var(--tm-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tm-hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,.7);
  max-width: 620px;
  line-height: 1.75;
  margin-bottom: 36px;
  animation: tmFadeUp .9s .2s ease both;
}

.tm-hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  animation: tmFadeUp .9s .35s ease both;
}
.tm-hero-scroll i { animation: tmBounce 2s ease infinite; }

/* Stats strip */
.tm-hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(13,24,43,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(61,145,249,.15);
  z-index: 3;
}
.tm-hero-stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  gap: 0;
}
.tm-hs-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
}
.tm-hs-num {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--tm-white);
  line-height: 1;
  margin-bottom: 6px;
}
.tm-hs-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
}
.tm-hs-div {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   TESTIMONIALS GRID
   ══════════════════════════════════════════════════════════ */
.tm-quotes-section {
  padding: 100px 0;
  background: var(--tm-light);
}

.tm-quotes-header {
  text-align: center;
  margin-bottom: 64px;
}

.tm-quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tm-quote-card {
  background: var(--tm-white);
  border-radius: 16px;
  padding: 36px 32px 32px;
  box-shadow: 0 4px 24px rgba(13,24,43,.07);
  border: 1px solid rgba(13,24,43,.06);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}
.tm-quote-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(13,24,43,.12);
}

.tm-quote-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--tm-pink), var(--tm-blue));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.tm-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.tm-stars i { color: var(--tm-gold); font-size: .85rem; }

.tm-quote-text {
  font-size: .95rem;
  line-height: 1.75;
  color: #374151;
  flex: 1;
  font-style: italic;
  margin-bottom: 28px;
  position: relative;
}

.tm-quote-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(13,24,43,.07);
  padding-top: 20px;
}

.tm-quote-logo {
  width: 56px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(20%);
}

.tm-quote-logo-fallback {
  width: 56px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tm-light2);
  border-radius: 6px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--tm-navy);
  text-align: center;
  line-height: 1.2;
  padding: 4px;
}

.tm-quote-meta { flex: 1; min-width: 0; }
.tm-quote-person {
  font-size: .82rem;
  font-weight: 700;
  color: var(--tm-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tm-quote-company {
  font-size: .76rem;
  color: var(--tm-pink);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tm-quote-project {
  font-size: .72rem;
  color: #6B7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Featured card (spans 2 cols) */
.tm-quote-card--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--tm-navy) 0%, var(--tm-mid) 100%);
  color: var(--tm-white);
  border-color: rgba(61,145,249,.2);
}
.tm-quote-card--featured .tm-quote-text { color: rgba(255,255,255,.8); }
.tm-quote-card--featured .tm-quote-person { color: var(--tm-white); }
.tm-quote-card--featured .tm-quote-company { color: var(--tm-blue); }
.tm-quote-card--featured .tm-quote-project { color: rgba(255,255,255,.5); }
.tm-quote-card--featured .tm-quote-footer { border-top-color: rgba(255,255,255,.1); }
.tm-quote-card--featured .tm-quote-logo-fallback {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
}

/* ══════════════════════════════════════════════════════════
   PARTNERS LOGO GRID
   ══════════════════════════════════════════════════════════ */
.tm-partners-section {
  padding: 90px 0;
  background: var(--tm-dark);
}

.tm-partners-header {
  text-align: center;
  margin-bottom: 56px;
}

.tm-partners-cats {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.tm-partner-cat-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}
.tm-partner-cat-label::before,
.tm-partner-cat-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 80px;
  height: 1px;
  background: rgba(255,255,255,.1);
}
.tm-partner-cat-label::before { right: calc(50% + 90px); }
.tm-partner-cat-label::after  { left:  calc(50% + 90px); }

.tm-logo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.tm-logo-item {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 70px;
  transition: background .3s ease, border-color .3s ease;
}
.tm-logo-item:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(61,145,249,.3);
}

.tm-logo-item img {
  max-width: 100px;
  max-height: 44px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .65;
  transition: opacity .3s ease;
}
.tm-logo-item:hover img { opacity: .9; }

.tm-logo-item--text {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  text-align: center;
}
.tm-logo-item--text:hover { color: rgba(255,255,255,.8); }

/* ══════════════════════════════════════════════════════════
   CERTIFICATIONS
   ══════════════════════════════════════════════════════════ */
.tm-certs-section {
  padding: 100px 0;
  background: #fff;
}

.tm-certs-header {
  text-align: center;
  margin-bottom: 64px;
}

.tm-certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tm-cert-card {
  border-radius: 14px;
  padding: 32px 28px;
  background: var(--tm-light);
  border: 1px solid rgba(13,24,43,.07);
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.tm-cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(13,24,43,.1);
}
.tm-cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--tm-pink), var(--tm-blue));
  border-radius: 4px 0 0 4px;
}

.tm-cert-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(223,56,148,.1), rgba(61,145,249,.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--tm-pink);
  margin-bottom: 18px;
}

.tm-cert-title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--tm-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.tm-cert-body {
  font-size: .83rem;
  color: #6B7280;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   SAFETY RECORD
   ══════════════════════════════════════════════════════════ */
.tm-safety-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.tm-safety-image {
  position: relative;
  overflow: hidden;
}
.tm-safety-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tm-safety-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,24,43,.55) 0%, transparent 60%);
}
.tm-safety-badge {
  position: absolute;
  bottom: 36px; left: 36px;
  background: var(--tm-pink);
  color: #fff;
  border-radius: 12px;
  padding: 14px 22px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(223,56,148,.4);
}
.tm-safety-badge-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}
.tm-safety-badge-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}

.tm-safety-text {
  background: var(--tm-navy);
  padding: 80px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tm-safety-headline {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 900;
  color: var(--tm-white);
  letter-spacing: -.04em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.tm-safety-sub {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 36px;
  line-height: 1.65;
}

.tm-safety-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tm-safety-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tm-safety-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(61,145,249,.15);
  border: 1px solid rgba(61,145,249,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tm-blue);
  font-size: .72rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.tm-safety-item p {
  font-size: .86rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   CTA
   ══════════════════════════════════════════════════════════ */
.tm-cta {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: var(--tm-dark);
  text-align: center;
}
.tm-cta-particles {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.tm-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}
.tm-cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--tm-white);
  letter-spacing: -.04em;
  margin-bottom: 16px;
  line-height: 1.1;
}
.tm-cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 40px;
  line-height: 1.7;
}
.tm-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .tm-quotes-grid { grid-template-columns: repeat(2, 1fr); }
  .tm-quote-card--featured { grid-column: span 2; }
  .tm-certs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .tm-hero-inner { padding: 140px 0 180px; }
  .tm-hero-stats-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .tm-hs-div { display: none; }
  .tm-quotes-grid { grid-template-columns: 1fr; }
  .tm-quote-card--featured { grid-column: span 1; }
  .tm-certs-grid { grid-template-columns: 1fr; }
  .tm-safety-section { grid-template-columns: 1fr; }
  .tm-safety-image { min-height: 320px; }
  .tm-safety-text { padding: 56px 32px; }
  .tm-partner-cat-label::before,
  .tm-partner-cat-label::after { display: none; }
}

@media (max-width: 480px) {
  .tm-hero-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 20px 0; }
  .tm-logo-item { min-width: 110px; }
}
