/* HKMANIK – consistent CTA buttons */
:root {
  --hk-cta-green: #087f5b;
  --hk-cta-green-hover: #066b4d;
  --hk-cta-white: #ffffff;
}

/* Blog cards and other text-link CTAs */
a.text-link,
.post-card .text-link,
.portfolio-project-copy .text-link,
.hk-contact-hero-link,
a.hk-contact-hero-link,
.blog-list .text-link,
.blog-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 12px 20px;
  margin-top: 16px;
  border: 1px solid var(--hk-cta-green);
  border-radius: 9px;
  background: var(--hk-cta-green);
  color: var(--hk-cta-white) !important;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(8, 127, 91, .14);
  transition: background-color .2s ease, border-color .2s ease,
              color .2s ease, transform .2s ease, box-shadow .2s ease;
}

/* Portfolio visual label sits inside a larger clickable project card. */
.portfolio-project-copy .text-link {
  margin-top: 16px;
  pointer-events: none;
}

/* Existing primary and secondary CTA buttons */
a.button,
a.button.secondary,
.hero-actions a.button,
.wp-block-button__link {
  border-radius: 9px;
  transition: background-color .2s ease, border-color .2s ease,
              color .2s ease, transform .2s ease, box-shadow .2s ease;
}

/* Hover and keyboard focus */
a.text-link:hover,
.post-card .text-link:hover,
.portfolio-project-copy .text-link:hover,
.hk-contact-hero-link:hover,
a.hk-contact-hero-link:hover,
.blog-list .text-link:hover,
.blog-pagination a:hover,
a.button:hover,
a.button.secondary:hover,
.hero-actions a.button:hover,
.wp-block-button__link:hover {
  background: var(--hk-cta-green-hover) !important;
  border-color: var(--hk-cta-green-hover) !important;
  color: var(--hk-cta-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 7px 16px rgba(6, 107, 77, .22);
}

a.text-link:focus-visible,
.hk-contact-hero-link:focus-visible,
a.button:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 3px solid rgba(8, 127, 91, .3);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  a.text-link,
  .hk-contact-hero-link,
  a.button,
  .wp-block-button__link {
    transition: none;
  }
  a.text-link:hover,
  .hk-contact-hero-link:hover,
  a.button:hover,
  .wp-block-button__link:hover {
    transform: none;
  }
}
