/* ==========================================================================
   Shared UI: buttons and icons.
   Loaded after the page stylesheets, before lang-rtl.css.

   NOTE: never set opacity / transform / filter on .cta-button here — the page
   stylesheets use those as the GSAP entry state and overriding them would
   leave the buttons stuck invisible.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Text selection.

   Nothing on the page opted out of selection, so clicking any heading, button
   or nav item dropped a text caret into it and started a selection. Headings
   and controls are interface, not copy — they should not behave like a text
   field. Selection is switched off by default and handed back below to the
   things a visitor might genuinely want to copy.
   -------------------------------------------------------------------------- */
body {
  -webkit-user-select: none;
  user-select: none;
  /* kills the grey flash box Android draws over tapped elements */
  -webkit-tap-highlight-color: transparent;
}

p,
li,
figcaption,
.video-name,
.video-channel,
.client-name,
.client-handle,
.number-value,
.number-label {
  -webkit-user-select: text;
  user-select: text;
}

/* --------------------------------------------------------------------------
   Primary button.

   The old blue-to-teal gradient pill was template leftover: that blue
   (--color) appears NOWHERE else on the site, so the buttons were the one
   element pulling in a second brand colour. This is an outline button in the
   site's own accent that fills solid on hover — the same border-goes-accent
   move the cards and video thumbnails already make.
   -------------------------------------------------------------------------- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--accent);
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  box-shadow: none;
  transition: background 0.3s ease, color 0.3s ease,
              box-shadow 0.3s ease, transform 0.3s ease;
}

/* Arrow is a pseudo-element, not markup — the language switch replaces the
   button's textContent and would delete any real child node. */
.cta-button::after {
  content: '→';
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.3s ease;
}

[dir="rtl"] .cta-button::after {
  content: '←';
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--accent);
  color: #04201f;
  box-shadow: 0 12px 30px rgba(0, 174, 172, 0.3);
  outline: none;
}

.cta-button:hover::after,
.cta-button:focus-visible::after {
  transform: translateX(4px);
}

[dir="rtl"] .cta-button:hover::after,
[dir="rtl"] .cta-button:focus-visible::after {
  transform: translateX(-4px);
}

/* --------------------------------------------------------------------------
   Contact buttons — dark card surface that fills with the platform's own
   colour on hover, so they read as links to those platforms rather than as
   two more gradient blobs.
   -------------------------------------------------------------------------- */
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.9rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: transform 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.contact-button svg {
  width: 1.35em;
  height: 1.35em;
  flex-shrink: 0;
  fill: currentColor;
  transition: fill 0.3s ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.contact-button.whatsapp {
  color: #25d366;
}

.contact-button.whatsapp:hover,
.contact-button.whatsapp:focus-visible {
  color: #fff;
  background: #25d366;
  border-color: #25d366;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.32);
}

.contact-button.instagram {
  color: #e1306c;
}

.contact-button.instagram:hover,
.contact-button.instagram:focus-visible {
  color: #fff;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(220, 39, 67, 0.32);
}

/* --------------------------------------------------------------------------
   Icons — Apple emoji artwork served as local WebP images.

   Emoji glyphs render differently on every platform (and some Android builds
   have no glyph at all for 🔹), so a character would not be the same icon
   twice. These are the real Apple images, self-hosted and converted to WebP:
   13 KB for the whole set, identical on every device, one cached request each.
   -------------------------------------------------------------------------- */
.emo {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  object-fit: contain;
  vertical-align: -0.15em;
}

.about-title,
.about-subtitle {
  display: flex;
  /* NOT center: a heading that wraps to two lines would strand the icon
     floating between them. flex-start pins it to the first line, and the
     margin below re-centres it against that line's height. */
  align-items: flex-start;
  gap: 0.6rem;
  /* keep wrapped headings evenly split rather than one long line + one word */
  text-wrap: balance;
}

.about-title .emo,
.about-subtitle .emo {
  width: 0.7em;
  height: 0.7em;
  /* (line-height - icon height) / 2, so it optically centres on line one */
  margin-top: 0.33em;
}

/* Check list — the tick replaces the bullet, so drop the • */
.about-list.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding-inline-start: 0;
}

.about-list.check-list li::before {
  content: none;
}

.about-list.check-list .emo {
  margin-top: 0.3em;
}

/* Stat icons */
.number-icon {
  display: block;
  line-height: 0;
}

.number-icon .emo {
  width: 3rem;
  height: 3rem;
}

/* Theme switch */
.theme-toggle-icon img {
  display: block;
  width: 14px;
  height: 14px;
}

@media (max-width: 480px) {
  .contact-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.92rem;
  }

  .number-icon .emo {
    width: 2.4rem;
    height: 2.4rem;
  }
}
