/* ═══════════════════════════════════════════════════════
   SRL Animated Logo + Penguin Walking Northward
   Inspired by the viral penguin journey — always heading north
   Penguin stays strictly within the compass arch (N-S center gap)
   ═══════════════════════════════════════════════════════ */

/* ─── Logo Container ─────────────────────────────────── */
.srl-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.srl-logo-wrap:hover { text-decoration: none; }

.srl-logo-img {
  height: 56px;
  width: auto;
  border-radius: 6px;
  position: relative;
  z-index: 1;
}

.srl-logo-text {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}

.srl-logo-text span {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 2.8px;
  color: #94A3B8;
}

/* Gold variant for light backgrounds */
.srl-logo-text-gold {
  color: #C8963E;
}
.srl-logo-text-gold span {
  color: #6B7280;
}

/* ─── Penguin SVG ────────────────────────────────────── */
/* The penguin-zone overlays the logo exactly and clips to it.
   The penguin walks along the vertical center arch of the compass
   (the narrow gap between the two compass halves). */
.srl-penguin-zone {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  border-radius: 6px;
}

.srl-penguin {
  position: absolute;
  width: 10px;
  height: 12px;
  animation: penguin-north 4.5s linear infinite;
}

/* Waddle rotation on the penguin body */
.srl-penguin svg {
  width: 100%;
  height: 100%;
  animation: waddle 0.4s ease-in-out infinite;
}

/* ─── One-Way Northward Path (56px logo) ─────────────── */
/* The compass arch runs vertically through the center (~x=23).
   Penguin walks straight up the center gap from south to north.
   Tiny x-drift (±2px) gives a natural waddle feel while staying
   strictly within the arch corridor. */
@keyframes penguin-north {
  0% {
    left: 22px;
    top: 48px;
    opacity: 0;
  }
  5% {
    left: 23px;
    top: 44px;
    opacity: 1;
  }
  20% {
    left: 24px;
    top: 36px;
    opacity: 1;
  }
  40% {
    left: 22px;
    top: 27px;
    opacity: 1;
  }
  60% {
    left: 24px;
    top: 19px;
    opacity: 1;
  }
  80% {
    left: 23px;
    top: 11px;
    opacity: 1;
  }
  92% {
    left: 23px;
    top: 4px;
    opacity: 1;
  }
  97% {
    left: 23px;
    top: 1px;
    opacity: 0;
  }
  98% {
    left: 22px;
    top: 48px;
    opacity: 0;
  }
  100% {
    left: 22px;
    top: 48px;
    opacity: 0;
  }
}

@keyframes waddle {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

/* ─── Mobile: Tablet (44px logo) ─────────────────────── */
@media (max-width: 768px) {
  .srl-logo-img { height: 44px; }
  .srl-penguin-zone { width: 44px; height: 44px; }
  .srl-penguin { width: 8px; height: 10px; }
  .srl-logo-text { font-size: 14px; letter-spacing: 1.2px; }
  .srl-logo-text span { font-size: 9.5px; letter-spacing: 2px; }
  .srl-logo-wrap { gap: 10px; }

  @keyframes penguin-north {
    0%   { left: 17px; top: 38px; opacity: 0; }
    5%   { left: 18px; top: 34px; opacity: 1; }
    20%  { left: 19px; top: 28px; opacity: 1; }
    40%  { left: 17px; top: 21px; opacity: 1; }
    60%  { left: 19px; top: 15px; opacity: 1; }
    80%  { left: 18px; top: 9px; opacity: 1; }
    92%  { left: 18px; top: 3px; opacity: 1; }
    97%  { left: 18px; top: 0px; opacity: 0; }
    98%  { left: 17px; top: 38px; opacity: 0; }
    100% { left: 17px; top: 38px; opacity: 0; }
  }
}

/* ─── Mobile: Small Phone (36px logo) ────────────────── */
@media (max-width: 480px) {
  .srl-logo-img { height: 36px; }
  .srl-penguin-zone { width: 36px; height: 36px; }
  .srl-penguin { width: 7px; height: 9px; }
  .srl-logo-text { font-size: 11px; letter-spacing: 0.8px; }
  .srl-logo-text span { font-size: 8px; letter-spacing: 1px; }
  .srl-logo-wrap { gap: 7px; }

  @keyframes penguin-north {
    0%   { left: 14px; top: 30px; opacity: 0; }
    5%   { left: 14px; top: 28px; opacity: 1; }
    20%  { left: 15px; top: 23px; opacity: 1; }
    40%  { left: 14px; top: 17px; opacity: 1; }
    60%  { left: 15px; top: 12px; opacity: 1; }
    80%  { left: 14px; top: 7px; opacity: 1; }
    92%  { left: 14px; top: 3px; opacity: 1; }
    97%  { left: 14px; top: 0px; opacity: 0; }
    98%  { left: 14px; top: 30px; opacity: 0; }
    100% { left: 14px; top: 30px; opacity: 0; }
  }
}

/* ─── Reduced Motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .srl-penguin { animation: none; top: 24px; left: 23px; opacity: 1; }
  .srl-penguin svg { animation: none; }
}
