/*
Theme Name: WP Rankovate
Theme URI: https://media.rankovate.com/
Author: Rankovate
Description: WordPress conversion of the Rankovate static HTML sections.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: wp-rankovate
*/

html,
body {
  margin: 0;
  overflow-x: hidden;
  background: #020302;
  font-synthesis: none;
  font-synthesis-weight: none;
  font-optical-sizing: auto;
  font-kerning: normal;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  color: #ffffff;
}

/* Lenis keeps wheel movement fluid while touch devices retain native scrolling. */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
button,
li,
label,
input,
textarea,
select {
  font-synthesis: none;
  font-synthesis-weight: none;
  font-optical-sizing: auto;
  font-kerning: normal;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

body:not(.elementor-editor-active) .elementor-location-header,
body:not(.elementor-editor-active) [data-elementor-type="header"] {
  display: none !important;
}

/* Rankovate global radius tokens */
:root {
  --rk-green: #bff747;
  --rk-radius-xl: 28px;
  --rk-radius-lg: 24px;
  --rk-radius-md: 20px;
  --rk-radius-sm: 16px;
  --rk-radius-xs: 12px;
  --rk-radius-pill: 999px;
  --rk-border: rgba(255, 255, 255, 0.12);
  --rk-border-green: rgba(191, 247, 71, 0.22);
  --rk-page-gutter: clamp(18px, 3vw, 48px);
}

@media (max-width: 700px) {
  :root {
    --rk-radius-xl: 22px;
    --rk-radius-lg: 20px;
    --rk-radius-md: 16px;
    --rk-radius-sm: 14px;
    --rk-radius-xs: 10px;
    --rk-page-gutter: clamp(10px, 4vw, 18px);
  }
}

/*
 * Global premium heading treatment
 * Mirrors the white/lime gradient used by the Rankovate Advantage title.
 * This is intentionally limited to page and section headings so card titles,
 * modal labels, navigation, and other compact UI copy remain easy to read.
 */
:is(
  #rk-about-title,
  .rk-about-main-title,
  #rk-trusted-title,
  #rk-adv-title,
  #rk-service-assurance-title,
  #rk-web3-usecases-title,
  #rk-sector-index-title,
  .rk-tm3-heading,
  #rk-latest-blog-title,
  #rk-faq-title,
  #rk-client-ecosystem-title,
  #rk-ms-title,
  #rk-blog-page-title,
  #rk-blog-page-list-title,
  #rk-blog-clean-title,
  #rk-blog-clean-list-title,
  #rk-newsroom-page-title,
  #rk-contact-title,
  #rk-outlets-title,
  #rk-ref-single-title,
  #rk-ref-related-title,
  #rk-global-cta-title,
  #rk-footer-newsletter-title
) {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.96) 42%,
    rgba(191, 247, 71, 0.96) 72%,
    #ffffff 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow:
    0 0 24px rgba(191, 247, 71, 0.10),
    0 0 54px rgba(255, 255, 255, 0.035) !important;
}

/* Existing accent spans become part of one continuous heading gradient. */
:is(
  .rk-about-main-title,
  #rk-trusted-title,
  #rk-service-assurance-title,
  #rk-sector-index-title,
  .rk-tm3-heading,
  #rk-latest-blog-title,
  #rk-faq-title,
  #rk-client-ecosystem-title,
  #rk-ms-title,
  #rk-blog-page-title,
  #rk-global-cta-title
) > span {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

/*
 * Use the Trusted title as the typography reference for every major section.
 * The extra line box and small bottom inset protect descenders (g, y, p, q)
 * from tight font metrics and background-clip rendering.
 */
:is(
  .rk-about-main-title,
  #rk-trusted-title,
  #rk-adv-title,
  #rk-service-assurance-title,
  #rk-web3-usecases-title,
  #rk-sector-index-title,
  .rk-tm3-heading,
  #rk-latest-blog-title,
  #rk-faq-title,
  #rk-client-ecosystem-title,
  #rk-ms-title
) {
  font-family: var(--font-heading, "Rankovate Heading", Inter, system-ui, sans-serif) !important;
  font-size: clamp(32px, 3.15vw, 56px) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.078em !important;
  padding-bottom: 0.10em !important;
  overflow: visible !important;
}

/*
 * Hero is intentionally independent from section-heading styling.
 * Restore solid text and give its glyphs enough vertical drawing room.
 */
.rk-new-hero-left h1 {
  background: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
  line-height: 1.06 !important;
  padding-bottom: 0.08em !important;
  overflow: visible !important;
}

/* Descender safety for public page titles that also use the gradient system. */
:is(
  #rk-blog-page-title,
  #rk-blog-page-list-title,
  #rk-blog-clean-title,
  #rk-blog-clean-list-title,
  #rk-newsroom-page-title,
  #rk-contact-title,
  #rk-outlets-title,
  #rk-ref-single-title,
  #rk-ref-related-title,
  #rk-global-cta-title,
  #rk-footer-newsletter-title
) {
  line-height: 1.08 !important;
  padding-bottom: 0.10em !important;
  overflow: visible !important;
}

/*
 * Compact, consistent section-heading boxes
 * The Trusted heading block is the reference: the eyebrow, heading and
 * supporting copy read as one unit, with matching space above and below.
 */
:root {
  --rk-heading-box-space: clamp(36px, 3.8vw, 52px);
  --rk-heading-copy-gap: clamp(14px, 1.25vw, 18px);
  --rk-heading-copy-width: 680px;
}

/* Remove the Trusted section's old outer top offset; its copy now owns both gaps. */
.rk-trusted-shell {
  padding-top: 0 !important;
  row-gap: 0 !important;
}

:is(
  .rk-trusted-copy,
  .rk-service-assurance__head,
  .rk-sector-index__head,
  .rk-tm3-head,
  .rk-latest-blog-head,
  .rk-adv-case-head
) {
  padding-top: var(--rk-heading-box-space) !important;
  padding-bottom: var(--rk-heading-box-space) !important;
}

.rk-sector-index__head {
  gap: var(--rk-heading-copy-gap) !important;
}

/* Keep each heading and its supporting sentence visually grouped. */
:is(
  .rk-trusted-copy,
  .rk-service-assurance__head,
  .rk-sector-index__head,
  .rk-tm3-head
) :is(h1, h2) + p,
:is(
  .rk-latest-blog-copy,
  .rk-adv-head-copy,
  .rk-about-intro-copy
) :is(h1, h2) + p {
  width: min(100%, var(--rk-heading-copy-width)) !important;
  margin-top: var(--rk-heading-copy-gap) !important;
}

/* Left-aligned heading boxes retain their layout while using the same rhythm. */
.rk-about-intro {
  padding-top: var(--rk-heading-box-space) !important;
  padding-bottom: var(--rk-heading-box-space) !important;
  margin-bottom: 0 !important;
}

/* About previously had an additional 82px outer top pad, making its box uneven. */
.rk-about-wrap {
  padding-top: 0 !important;
}

@media (max-width: 700px) {
  :root {
    --rk-heading-box-space: 30px;
    --rk-heading-copy-gap: 14px;
  }
}

/*
 * Section introductions use solid white.
 * Direct selectors keep this rule away from cards, grids, accordions and
 * other content boxes inside each section.
 */
#about-us .rk-about-intro-copy > .rk-about-main-subtitle,
#rankovate-trusted-network .rk-trusted-copy > p,
#rankovate-advantage .rk-adv-head-copy > .rk-adv-case-subtitle,
.rk-service-assurance .rk-service-assurance__head > p,
.rk-web3-usecases .rk-web3-usecases-left-inner > .rk-web3-usecases-subtitle,
#rankovate-sectors .rk-sector-index__head > p,
#rankovate-client-testimonials .rk-tm3-head > p,
#rankovate-blog .rk-latest-blog-copy > p,
#rankovate-faq .rk-faq-left > p {
  color: #ffffff !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #ffffff !important;
}

/*
 * Shared standalone section CTA.
 * Default: Hero "Launch Campaign".
 * Hover/focus: Hero "View Media Network".
 */
:is(
  .rk-about-cta,
  #rankovate-advantage .rk-adv-head-cta,
  .rk-ms-head-cta,
  .rk-latest-blog-cta,
  .rk-faq-cta,
  .rk-section-cta,
  .rk-global-cta__button
) {
  min-height: 48px !important;
  height: 48px !important;
  width: fit-content;
  padding: 0 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  border: 1px solid rgba(191, 247, 71, 0.86) !important;
  border-radius: 999px !important;
  background: #bff747 !important;
  color: #050805 !important;
  box-shadow:
    0 14px 34px rgba(191, 247, 71, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.36) !important;
  text-decoration: none !important;
  font-family: var(--font-cta, "Rankovate CTA", Inter, system-ui, sans-serif) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  -webkit-text-fill-color: currentColor !important;
  transition:
    transform 0.24s ease,
    background 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    color 0.24s ease !important;
}

:is(
  .rk-about-cta,
  #rankovate-advantage .rk-adv-head-cta,
  .rk-ms-head-cta,
  .rk-latest-blog-cta,
  .rk-faq-cta,
  .rk-section-cta,
  .rk-global-cta__button
):is(:hover, :focus-visible) {
  transform: translateY(-2px) !important;
  background: rgba(0, 0, 0, 0.42) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 30px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

:is(
  .rk-about-cta,
  #rankovate-advantage .rk-adv-head-cta,
  .rk-ms-head-cta,
  .rk-latest-blog-cta,
  .rk-faq-cta,
  .rk-section-cta,
  .rk-global-cta__button
) :is(span, svg) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

:is(
  .rk-about-cta,
  #rankovate-advantage .rk-adv-head-cta,
  .rk-ms-head-cta,
  .rk-latest-blog-cta,
  .rk-faq-cta,
  .rk-section-cta,
  .rk-global-cta__button
) svg {
  stroke: currentColor !important;
}

/* Footer-style vertical text swap on every standalone section CTA. */
:is(
  .rk-about-cta,
  #rankovate-advantage .rk-adv-head-cta,
  .rk-ms-head-cta,
  .rk-latest-blog-cta,
  .rk-faq-cta,
  .rk-section-cta,
  .rk-global-cta__button
) .rk-footer-flip {
  position: relative;
  height: 20px;
  display: block;
  overflow: hidden;
  line-height: 20px;
  white-space: nowrap;
}

:is(
  .rk-about-cta,
  #rankovate-advantage .rk-adv-head-cta,
  .rk-ms-head-cta,
  .rk-latest-blog-cta,
  .rk-faq-cta,
  .rk-section-cta,
  .rk-global-cta__button
) :is(.rk-footer-flip__default, .rk-footer-flip__hover) {
  height: 20px;
  display: block;
  line-height: 20px;
  white-space: nowrap;
  transform: translate3d(0, 0, 0);
  transition: transform 0.34s cubic-bezier(.22, .61, .36, 1) !important;
  will-change: transform;
}

:is(
  .rk-about-cta,
  #rankovate-advantage .rk-adv-head-cta,
  .rk-ms-head-cta,
  .rk-latest-blog-cta,
  .rk-faq-cta,
  .rk-section-cta,
  .rk-global-cta__button
) .rk-footer-flip__hover {
  position: absolute;
  top: 20px;
  left: 0;
}

:is(
  .rk-about-cta,
  #rankovate-advantage .rk-adv-head-cta,
  .rk-ms-head-cta,
  .rk-latest-blog-cta,
  .rk-faq-cta,
  .rk-section-cta,
  .rk-global-cta__button
):is(:hover, :focus-visible) :is(.rk-footer-flip__default, .rk-footer-flip__hover) {
  transform: translate3d(0, -20px, 0);
}

@media (prefers-reduced-motion: reduce) {
  :is(
    .rk-about-cta,
    #rankovate-advantage .rk-adv-head-cta,
    .rk-ms-head-cta,
    .rk-latest-blog-cta,
    .rk-faq-cta,
    .rk-section-cta,
    .rk-global-cta__button
  ) {
    transition: none !important;
  }

  :is(
    .rk-about-cta,
    #rankovate-advantage .rk-adv-head-cta,
    .rk-ms-head-cta,
    .rk-latest-blog-cta,
    .rk-faq-cta,
    .rk-section-cta,
    .rk-global-cta__button
  ) :is(.rk-footer-flip__default, .rk-footer-flip__hover) {
    transition: none !important;
  }
}

/* Keep centered section copy in place while pinning its standalone CTA right. */
.rk-tm3-head,
.rk-service-assurance__head {
  position: relative;
}

.rk-tm3-head {
  max-width: var(--rk-tm3-width) !important;
}

.rk-service-assurance__head {
  max-width: none !important;
}

.rk-tm3-head > :is(.rk-tm3-eyebrow, .rk-tm3-heading, p),
.rk-service-assurance__head > :is(.rk-service-assurance__eyebrow, h2, p) {
  width: min(790px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.rk-tm3-head > .rk-tm3-cta,
.rk-service-assurance__head > .rk-service-assurance__cta {
  position: absolute;
  right: 0;
  bottom: clamp(46px, 5vw, 74px);
  margin: 0 !important;
}

.rk-faq-left > .rk-faq-cta {
  align-self: flex-end;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

@media (max-width: 1280px) {
  .rk-tm3-head > .rk-tm3-cta,
  .rk-service-assurance__head > .rk-service-assurance__cta {
    position: static;
    margin-top: 24px !important;
    margin-right: 0 !important;
    margin-left: auto !important;
  }
}

/* Global page-title system: aligned to the Newsroom title proportions. */
:is(
  .rk-newsroom-title-section,
  .rk-blog-clean-title-section,
  .rk-outlets-title-section,
  .rk-faq-page-hero,
  .rk-contact-title-section
) {
  width: 100% !important;
  padding: 138px 24px 50px !important;
}

:is(
  .rk-newsroom-title-shell,
  .rk-blog-clean-title-shell,
  .rk-outlets-title-shell,
  .rk-faq-page-hero__inner,
  .rk-contact-title-shell
) {
  width: min(1500px, 100%) !important;
  margin-right: auto !important;
  margin-left: auto !important;
  text-align: center !important;
}

:is(
  .rk-newsroom-title-shell,
  .rk-blog-clean-title-shell,
  .rk-outlets-title-shell,
  .rk-faq-page-hero__inner,
  .rk-contact-title-shell
) > h1 {
  margin: 0 !important;
  font-family: "Rankovate Heading", Arial, sans-serif !important;
  font-size: clamp(32px, 3.15vw, 56px) !important;
  font-weight: 500 !important;
  line-height: 0.96 !important;
  letter-spacing: -0.045em !important;
}

:is(
  .rk-newsroom-title-shell,
  .rk-blog-clean-title-shell,
  .rk-outlets-title-shell,
  .rk-faq-page-hero__inner,
  .rk-contact-title-shell
) > p {
  width: min(100%, 660px) !important;
  max-width: 660px !important;
  margin: 24px auto 0 !important;
  font-size: 15.5px !important;
  line-height: 1.58 !important;
}

@media (max-width: 760px) {
  :is(
    .rk-newsroom-title-section,
    .rk-blog-clean-title-section,
    .rk-outlets-title-section,
    .rk-faq-page-hero,
    .rk-contact-title-section
  ) {
    padding: 118px 18px 38px !important;
  }

  :is(
    .rk-newsroom-title-shell,
    .rk-blog-clean-title-shell,
    .rk-outlets-title-shell,
    .rk-faq-page-hero__inner,
    .rk-contact-title-shell
  ) > h1 {
    font-size: clamp(32px, 10vw, 48px) !important;
  }
}
