/* ==========================================================================
   CREDIBILITY STRIP -- v1.0 "Licensed & Accredited" (Sathwin Tours)
   Kandyan Lotus light theme. Class prefix: scr- (Sathwin Credibility).
   Every colour, font, radius and shadow is a main.css token.
   ========================================================================== */

.scr-section {
  position: relative;
  padding: var(--spacing-10) 0 var(--spacing-8);
  background-color: var(--color-ivory);
  background-image: var(--texture-lattice);
  overflow: hidden;
}
.scr-section::before,
.scr-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hdr-edge);
  opacity: .7;
}
.scr-section::before { top: 0; }
.scr-section::after { bottom: 0; }

[data-scr-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 800ms var(--ease-premium), transform 800ms var(--ease-premium); }
[data-scr-reveal].is-visible { opacity: 1; transform: none; }

.scr-inner {
  display: grid;
  grid-template-columns: minmax(250px, 320px) 1fr;
  align-items: center;
  gap: var(--spacing-10);
}

/* ---------- Intro ---------- */
.scr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  font-family: var(--font-wordmark);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-gold-text);
  margin-bottom: var(--spacing-2);
}
.scr-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--color-antique-gold); }
.scr-heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-tight);
  color: var(--color-night-maroon);
  margin: 0 0 var(--spacing-2);
}
.scr-heading em { font-style: italic; color: var(--color-maroon); }
.scr-text {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Marquee ---------- */
.scr-marquee {
  position: relative;
  overflow: hidden;
  padding: var(--spacing-3) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.scr-track {
  display: flex;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 0;
  animation: scr-scroll var(--scr-duration, 48s) linear infinite;
}
.scr-track.is-static { animation: none; }
.scr-marquee:hover .scr-track,
.scr-marquee:focus-within .scr-track { animation-play-state: paused; }
@keyframes scr-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- Badge ---------- */
.scr-badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  margin-right: var(--spacing-4);
  padding: var(--spacing-2) var(--spacing-6) var(--spacing-2) var(--spacing-2);
  background: var(--color-shell);
  border: 1px solid rgba(var(--color-champagne-rgb), .38);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  overflow: hidden;
  transition: transform 450ms var(--ease-premium), box-shadow 450ms var(--ease-premium), border-color 450ms var(--ease-premium);
}
a.scr-badge { color: inherit; text-decoration: none; }
.scr-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hdr-sheen);
  transform: translateX(-120%);
  pointer-events: none;
}
.scr-badge:hover,
.scr-badge:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-antique-gold);
}
.scr-badge:hover::after,
.scr-badge:focus-visible::after { transform: translateX(120%); transition: transform 1100ms var(--ease-premium); }

/* Gilt seal: conic gold ring around an ivory disc */
.scr-seal {
  position: relative;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--hdr-logo-ring);
  display: grid;
  place-items: center;
  box-shadow: var(--hdr-gold-btn-shadow);
}
.scr-seal::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--color-shell);
  box-shadow: inset 0 0 0 1px rgba(var(--color-champagne-rgb), .45);
}
.scr-seal__text,
.scr-seal__since,
.scr-seal i,
.scr-seal img { position: relative; z-index: 1; }
.scr-seal__text {
  font-family: var(--font-wordmark);
  font-size: .78rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: .06em;
  color: var(--color-maroon);
  line-height: 1;
  margin-top: 4px;
}
.scr-seal__since {
  position: absolute;
  bottom: 11px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-primary);
  font-size: .56rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: .12em;
  color: var(--color-gold-text);
}
.scr-seal:has(.scr-seal__since) .scr-seal__text { margin-top: -8px; }
.scr-seal i { font-size: 1.35rem; color: var(--color-maroon); }
.scr-seal img { width: 70%; height: 70%; object-fit: contain; }
/* Seal artwork from images/badges/ already has its own gilt ring */
.scr-seal--logo { width: 86px; height: 86px; background: none; box-shadow: none; }
.scr-seal--logo::before { display: none; }
.scr-seal--logo img { width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(var(--color-scrim-rgb), .22)); transition: transform 700ms var(--ease-premium); }
.scr-badge:hover .scr-seal--logo img { transform: rotate(-8deg) scale(1.06); }

.scr-badge__body { display: flex; flex-direction: column; gap: 1px; }
.scr-badge__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  line-height: 1.15;
  color: var(--color-night-maroon);
}
.scr-badge__detail {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: .02em;
  color: var(--color-gold-text);
}
/* Note slides in only while the strip is paused under the pointer */
.scr-badge__note {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  color: var(--text-muted);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 450ms var(--ease-premium), opacity 450ms var(--ease-premium);
}
.scr-badge:hover .scr-badge__note,
.scr-badge:focus-visible .scr-badge__note { max-height: 1.6em; opacity: 1; }

/* ---------- Proof points ---------- */
.scr-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-2) var(--spacing-6);
  list-style: none;
  margin: var(--spacing-6) auto 0;
  padding-top: var(--spacing-5);
  border-top: 1px solid var(--border-primary);
}
.scr-proof li {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-royal);
}
.scr-proof i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .8rem;
  color: var(--color-maroon);
  background: var(--color-gold-bg);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .scr-inner { grid-template-columns: 1fr; gap: var(--spacing-4); text-align: center; }
  .scr-eyebrow { justify-content: center; }
  .scr-text { max-width: 36rem; margin: 0 auto; }
}
@media (max-width: 576px) {
  .scr-section { padding: var(--spacing-8) 0 var(--spacing-6); }
  .scr-seal { width: 52px; height: 52px; }
  .scr-seal--logo { width: 60px; height: 60px; }
  .scr-seal__text { font-size: .68rem; }
  .scr-badge__title { font-size: var(--text-base); }
  .scr-proof { justify-content: flex-start; gap: var(--spacing-3); }
  .scr-proof li { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  [data-scr-reveal] { opacity: 1; transform: none; transition: none; }
  .scr-track { animation: none; }
  .scr-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .scr-badge, .scr-badge::after { transition: none; }
}
