/* ─────────────────────────────────────────────────────────────────────────
   Cross-promo house ad → SurWill (surwill.ge)

   SurWill is our sibling project: "save items from every shop in one place".
   This band is an unpaid cross-promo (not part of the moderated `ads` app
   inventory), so it's plain site chrome included above the footer.

   It deliberately carries *SurWill's* identity — near-black "ink" surface,
   warm "cream" text, square brutalist edges — so inside Kadnieri's white
   editorial pages it reads as a distinct product by the same maker.

   All class names are prefixed `xpromo-` to avoid collisions with site CSS.
   Motion (the sliding wordmark marquee) is decorative and is disabled under
   prefers-reduced-motion.
   ──────────────────────────────────────────────────────────────────────── */

:root {
  --xpromo-ink: #100E0C;   /* SurWill near-black */
  --xpromo-cream: #F3F2ED; /* SurWill warm paper */
}

.xpromo {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  background: var(--xpromo-ink);
  color: var(--xpromo-cream);
  border-top: 1px solid rgba(243, 242, 237, 0.15);
  border-bottom: 1px solid rgba(243, 242, 237, 0.15);
  isolation: isolate;
}
.xpromo:focus-visible {
  outline: 2px solid var(--xpromo-cream);
  outline-offset: -4px;
}

/* Sliding ghost wordmark — the "motion" of the ad. */
.xpromo__marquee {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.85;
  font-size: clamp(38px, 9vw, 110px);
  color: rgba(243, 242, 237, 0.055);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.xpromo__marquee span {
  padding: 0 0.25em;
  animation: xpromo-scroll 26s linear infinite;
  will-change: transform;
}

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

/* Hover wash — a faint cream sweep grows from the left. */
.xpromo__wash {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(243, 242, 237, 0.04);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 1;
}
.xpromo:hover .xpromo__wash,
.xpromo:focus-visible .xpromo__wash {
  width: 100%;
}

.xpromo__row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 20px;
}
@media (min-width: 768px) {
  .xpromo__row { padding: 28px 40px; }
}

.xpromo__kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 242, 237, 0.4);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.xpromo__brandline {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
}
.xpromo__wordmark {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.85;
  font-size: 26px;
  color: var(--xpromo-cream);
}
@media (min-width: 768px) {
  .xpromo__wordmark { font-size: 34px; }
}
.xpromo__domain {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 242, 237, 0.4);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (max-width: 519px) {
  .xpromo__domain { display: none; }
}
.xpromo__tagline {
  margin: 6px 0 0;
  max-width: 48ch;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(243, 242, 237, 0.7);
}

/* Arrow badge — inverts to a filled cream chip on hover/focus. */
.xpromo__arrow {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--xpromo-cream);
  color: var(--xpromo-cream);
  transition: background-color 0.25s ease, color 0.25s ease;
}
@media (min-width: 768px) {
  .xpromo__arrow { width: 48px; height: 48px; }
}
.xpromo__arrow svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}
.xpromo:hover .xpromo__arrow,
.xpromo:focus-visible .xpromo__arrow {
  background: var(--xpromo-cream);
  color: var(--xpromo-ink);
}
.xpromo:hover .xpromo__arrow svg,
.xpromo:focus-visible .xpromo__arrow svg {
  transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
  .xpromo__marquee span { animation: none; }
  .xpromo__wash,
  .xpromo__arrow,
  .xpromo__arrow svg { transition: none; }
}
