/* =========================================================================
   Activity ticker bar
   Sits above the topbar on landing-style pages. Scrolls right-to-left
   indefinitely. CSS-only animation, no JS required for the scrolling.
   ========================================================================= */
:root {
  --tick-bg:        #0a1f44;   /* SellAfrik navy */
  --tick-bg-2:      #112a55;
  --tick-text:      #fdfbf6;   /* SellAfrik ivory */
  --tick-accent:    #c9a961;   /* SellAfrik gold */
  --tick-success:   #4ade80;
  --tick-height:    40px;
}

.tick {
  position: relative;
  width: 100%;
  height: var(--tick-height);
  overflow: hidden;
  background: linear-gradient(90deg, var(--tick-bg) 0%, var(--tick-bg-2) 50%, var(--tick-bg) 100%);
  color: var(--tick-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
  border-bottom: 1px solid rgba(201, 169, 97, 0.18);
  z-index: 60;
  isolation: isolate;
}

/* Soft fade masks on both edges so items appear/disappear nicely */
.tick::before,
.tick::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  z-index: 2;
  pointer-events: none;
}
.tick::before {
  left: 0;
  background: linear-gradient(to right, var(--tick-bg) 0%, rgba(10, 31, 68, 0) 100%);
}
.tick::after {
  right: 0;
  background: linear-gradient(to left,  var(--tick-bg) 0%, rgba(10, 31, 68, 0) 100%);
}

/* Eyebrow pinned on the left side, above the gradient mask */
.tick-eyebrow {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 18px;
  background: linear-gradient(90deg, rgba(10, 31, 68, 0.95) 70%, rgba(10, 31, 68, 0));
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tick-accent);
  z-index: 3;
  white-space: nowrap;
}
.tick-eyebrow .pulse {
  width: 7px; height: 7px;
  background: var(--tick-success);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: tick-pulse 2s ease-out infinite;
}
@keyframes tick-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(74, 222, 128, 0.65); }
  70%  { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0   rgba(74, 222, 128, 0); }
}

/* Track that holds the items. The track is duplicated server-side so a -50%
   translate produces a seamless, infinite loop. */
.tick-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.tick-track {
  display: inline-flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: tick-scroll 60s linear infinite;
  will-change: transform;
  padding-left: 144px; /* clear the eyebrow */
}
.tick-track:hover { animation-play-state: paused; }

@keyframes tick-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tick-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  position: relative;
  color: var(--tick-text);
}
.tick-item::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  background: rgba(201, 169, 97, 0.5);
  border-radius: 50%;
}
.tick-item:last-child::after { display: none; }
.tick-item .dot {
  width: 6px; height: 6px;
  background: var(--tick-success);
  border-radius: 50%;
  flex-shrink: 0;
}
.tick-item .msg { color: var(--tick-text); }
.tick-item .when {
  color: rgba(253, 251, 246, 0.55);
  font-size: 11.5px;
  margin-left: 4px;
}

/* Mobile tweaks */
@media (max-width: 720px) {
  :root { --tick-height: 36px; }
  .tick { font-size: 12px; }
  .tick-eyebrow { padding: 0 10px 0 14px; font-size: 9.5px; letter-spacing: 0.15em; }
  .tick-track { padding-left: 120px; animation-duration: 45s; }
  .tick-item { padding: 0 16px; }
  .tick-item .when { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tick-track { animation: none; transform: translateX(0); }
}

/* =========================================================================
   Testimonials section (landing page)
   ========================================================================= */
.section-testimonials {
  background: #faf6ec;
  padding: 90px 0;
  border-top: 1px solid #ece6d3;
  border-bottom: 1px solid #ece6d3;
}
.section-testimonials .section-eyebrow {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9a961;
  margin-bottom: 14px;
}
.section-testimonials h2 {
  font-family: 'Playfair Display', Georgia, serif;
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #0a1f44;
  margin: 0 auto 56px;
  max-width: 720px;
  line-height: 1.18;
}

.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.t-card {
  background: #fff;
  border: 1px solid #ece6d3;
  border-radius: 14px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 24px rgba(10, 31, 68, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.t-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10, 31, 68, 0.08);
}
.t-quote-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 56px;
  line-height: 0.7;
  color: #c9a961;
  margin-bottom: 10px;
  height: 28px;
}
.t-quote {
  color: #1a2332;
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0 0 24px;
  flex: 1;
}
.t-outcome {
  display: inline-block;
  background: rgba(201, 169, 97, 0.12);
  color: #8a6f29;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 18px;
  align-self: flex-start;
}
.t-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #f0ebd8;
}
.t-photo,
.t-photo-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: #ece6d3;
}
.t-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a1f44;
  color: #fdfbf6;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.t-meta { display: flex; flex-direction: column; line-height: 1.35; }
.t-name { font-weight: 700; color: #0a1f44; font-size: 14.5px; }
.t-role { font-size: 12.5px; color: #4a5670; }
.t-loc  { font-size: 12px;   color: #8a8578; margin-top: 2px; }

@media (max-width: 880px) {
  .t-grid { grid-template-columns: 1fr; gap: 16px; }
  .section-testimonials { padding: 64px 0; }
  .section-testimonials h2 { font-size: 28px; margin-bottom: 36px; padding: 0 20px; }
}
