/*
 * НАШІ ІСПАНІЯ — sketchbook doodles (T30a). Decor only: every element is
 * aria-hidden and pointer-events:none. Symbols live in /assets/doodles.svg.
 * Reference: Refero Tally / Tracky ink annotations; Say Briefly lock kept.
 */

.doodle {
  position: absolute;
  pointer-events: none;
  color: var(--ink);
  opacity: .4;
  z-index: 1;
}

.doodle-blue { color: var(--ua-blue); }
.doodle-gold { color: var(--gold-deep); }
.doodle-strong { opacity: .6; }

/* Section title with a marker-wave under the key word */
.title-wave {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.title-wave .doodle {
  left: -2%;
  right: -2%;
  bottom: -.28em;
  width: 104%;
  height: .38em;
  color: var(--gold);
  opacity: 1;
  z-index: -1;
}

/* Sticky-note tilt on every third card (desktop, fine pointer only) */
@media (pointer: fine) and (min-width: 1024px) {
  .recent-grid .business-card:nth-child(3n),
  .catalog-grid .business-card:nth-child(3n) {
    transform: rotate(-1.5deg);
  }
  .recent-grid .business-card:nth-child(3n):hover,
  .catalog-grid .business-card:nth-child(3n):hover {
    transform: rotate(0deg) translateY(-3px);
  }
}

/* "нове" cloud badge on business cards */
.business-card-new {
  position: absolute;
  top: -14px;
  right: 14px;
  width: 84px;
  height: 50px;
  pointer-events: none;
  z-index: 2;
}

.business-card-new .doodle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--ink);
  opacity: .85;
}

.business-card-new span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 6px;
  font-family: "Caveat", cursive;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

/* CTA band: the one loud doodle strip (Qatchup borrow) */
.cta-strip {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 28px;
  pointer-events: none;
  opacity: .5;
}

.cta-strip svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.cta-strip svg:nth-child(odd) { color: var(--gold); }
.cta-strip svg:nth-child(even) { color: var(--sticky-sky); }

/* Footer hand-written thanks */
.footer-thanks {
  font-family: "Caveat", cursive;
  font-size: 22px;
  color: var(--muted);
  transform: rotate(-3deg);
  display: inline-block;
}

@media (max-width: 639px) {
  .doodle:not(.doodle-keep-mobile) { display: none; }
  .cta-strip { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .doodle { transition: none; }
}
