/*!
 * UK Casino Link Partners theme layer: header, hero, sections, buttons and motion.
 * Colours and fonts come from theme.json presets, so they stay editable in the Site Editor.
 * Motion is gated on prefers-reduced-motion. Hover effects only apply to devices with a hover pointer.
 */

:root {
  --uk-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --uk-ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --uk-navy: var(--wp--preset--color--navy, #0B1F3A);
  --uk-gold: var(--wp--preset--color--gold, #C9A227);
  --uk-line: var(--wp--preset--color--line, #D5DBE6);
  --uk-muted: var(--wp--preset--color--muted, #4B5A70);
  --uk-pad-x: clamp(1.25rem, 4vw, 3rem);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

:focus-visible {
  outline: 2px solid var(--uk-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------- Header */

.ukclp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s var(--uk-ease), background-color 0.3s var(--uk-ease);
}
.ukclp-header.is-scrolled {
  box-shadow: 0 1px 0 var(--uk-line), 0 10px 28px -20px rgba(11, 31, 58, 0.55);
}

/* ---------------------------------------------------------------- Header and footer */

.ukclp-header { background-color: var(--wp--preset--color--white, #FFFFFF); }
.ukclp-header__bar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem var(--uk-pad-x);
  gap: 1.5rem;
}
.ukclp-header__cta .wp-block-button__link { white-space: nowrap; padding: 0.8rem 1.25rem; }
.ukclp-nav a {
  color: var(--wp--preset--color--navy, #0B1F3A);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(var(--uk-gold), var(--uk-gold));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s var(--uk-ease);
}
@media (hover: hover) and (pointer: fine) {
  .ukclp-nav a:hover { background-size: 100% 1px; }
}
.skip-link:focus { position: fixed; top: 0.75rem; left: 0.75rem; z-index: 1000; background: #fff; padding: 0.5rem 0.75rem; }

.ukclp-footer {
  background-color: var(--wp--preset--color--navy, #0B1F3A);
  color: var(--wp--preset--color--white, #FFFFFF);
  padding: clamp(3rem, 6vw, 5rem) var(--uk-pad-x) 2rem;
}
.ukclp-footer__grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.ukclp-footer__heading {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--uk-gold);
  margin: 0 0 1rem;
}
.ukclp-footer__nav { display: grid; gap: 0.75rem; align-content: start; }
.ukclp-footer__list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.6rem; }
.ukclp-footer__list a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.ukclp-footer__list a:focus-visible, .ukclp-footer a:focus-visible { outline-color: var(--uk-gold); }
.ukclp-footer p { font-size: 0.92rem; line-height: 1.6; color: rgba(255, 255, 255, 0.78); margin: 0 0 0.75rem; }
.ukclp-footer__legal {
  max-width: 1440px;
  margin: 2.75rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
}
.ukclp-footer__legal p { font-size: 0.85rem; margin: 0 0 0.35rem; color: inherit; }
@media (max-width: 899px) {
  .ukclp-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .ukclp-footer__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .ukclp-header__bar { flex-wrap: wrap; }
  .ukclp-header__cta { width: 100%; }
  .ukclp-header__cta .wp-block-button__link { white-space: normal; width: 100%; text-align: center; }
}

/* ---------------------------------------------------------------- Buttons */

.wp-block-button .wp-block-button__link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  text-align: center;
  line-height: 1.2;
  transition: background-color 0.25s var(--uk-ease), color 0.25s var(--uk-ease),
    border-color 0.25s var(--uk-ease), transform 0.25s var(--uk-ease), box-shadow 0.25s var(--uk-ease);
}
@media (hover: hover) and (pointer: fine) {
  .wp-block-button__link:hover { transform: translateY(-2px); }
  .is-style-fill .wp-block-button__link:hover { box-shadow: 0 12px 24px -14px rgba(11, 31, 58, 0.7); }
  .is-style-outline .wp-block-button__link:hover { border-color: var(--uk-gold); color: var(--uk-gold); }
}
.wp-block-button__link:active { transform: translateY(0); }
@media (pointer: coarse) {
  .wp-block-button .wp-block-button__link { min-height: 48px; }
}

/* ---------------------------------------------------------------- Hero */

.uk-hero {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
  background-image:
    radial-gradient(120% 90% at 70% 40%, rgba(201, 162, 39, 0.16), rgba(201, 162, 39, 0) 55%),
    linear-gradient(180deg, #0B1F3A 0%, #071830 100%);
}
.uk-hero__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--uk-pad-x);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.wp-block-heading.uk-hero__title {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 800;
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
p.uk-hero__kicker {
  color: var(--uk-gold);
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
}
p.uk-hero__lead {
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.62;
  max-width: 34em;
  margin: 0 0 2.25rem;
  opacity: 0.88;
}
.uk-actions { gap: 0.75rem; }

/* Entrance: a short staggered fade. Content is in the DOM and clickable at all times. */
@media (prefers-reduced-motion: no-preference) {
  .uk-hero__copy > * { animation: uk-fade-up 0.9s var(--uk-ease-soft) both; }
  .uk-hero__copy > :nth-child(2) { animation-delay: 0.1s; }
  .uk-hero__copy > :nth-child(3) { animation-delay: 0.2s; }
  .uk-hero__copy > :nth-child(4) { animation-delay: 0.3s; }
  /* Opacity only. A transform would move the connector lines that are measured on load. */
  .ukclp-hero-visual { animation: uk-fade-in 1.2s var(--uk-ease) 0.25s both; }
}
@keyframes uk-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes uk-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------------------------------------------------------------- Sections */

.uk-section { padding-top: clamp(3.5rem, 7vw, 6.5rem); padding-bottom: clamp(3.5rem, 7vw, 6.5rem); }
.uk-section__inner { max-width: 1440px; margin: 0 auto; padding: 0 var(--uk-pad-x); }
.wp-block-heading.uk-section__title {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.85rem;
  text-wrap: balance;
}
p.uk-section__lead { max-width: 40rem; color: var(--uk-muted); font-size: 1.05rem; line-height: 1.6; margin: 0 0 2.5rem; }
.uk-cta { padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.uk-cta .uk-section__lead { color: inherit; opacity: 0.85; }
.uk-cta__inner .uk-actions { margin-top: 1.5rem; }

.uk-grid-3,
.uk-grid-4 {
  display: grid;
  gap: clamp(1rem, 2.4vw, 2rem);
}
.uk-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.uk-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.uk-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.uk-split__list { display: grid; gap: 1.25rem; }

.uk-agency {
  display: grid;
  grid-template-columns: 3px minmax(0, 42rem);
  column-gap: clamp(1.25rem, 3vw, 2.25rem);
}
.uk-agency::before { content: ""; grid-column: 1; grid-row: 1 / span 3; background: var(--uk-gold); }
.uk-agency > * { grid-column: 2; }

/* Steps: a real sequence, so each step carries a two-digit marker. */
.uk-steps { counter-reset: uk-step; }
.uk-steps > .ukclp-callout { counter-increment: uk-step; position: relative; }
.uk-steps > .ukclp-callout::after {
  content: counter(uk-step, decimal-leading-zero);
  position: absolute;
  top: 0.85rem;
  right: 0;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--uk-gold);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- Scroll reveal */

.uk-reveal { transition: opacity 0.8s var(--uk-ease-soft), transform 0.8s var(--uk-ease-soft); }
.uk-motion .uk-reveal:not(.is-visible) { opacity: 0; transform: translateY(14px); }

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 1024px) {
  .uk-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .uk-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .uk-split { grid-template-columns: minmax(0, 1fr); }
  .uk-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .uk-hero { padding-top: 2.5rem; }
  .uk-grid-3, .uk-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .uk-section { padding-top: 3rem; padding-bottom: 3rem; }
}

/* ---------------------------------------------------------------- Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .uk-reveal, .wp-block-button__link { transition-duration: 0.01ms !important; }
  .uk-motion .uk-reveal:not(.is-visible) { opacity: 1; transform: none; }
  .wp-block-button__link:hover, .wp-block-button__link:active { transform: none; }
}

/* ---------------------------------------------------------------- Introduction below the mascot hero */

.uk-intro {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  color: var(--wp--preset--color--navy, #0B1F3A);
}
.uk-intro__inner {
  max-width: 880px;
}
.wp-block-heading.uk-intro__title {
  color: var(--wp--preset--color--navy, #0B1F3A);
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
p.uk-intro__kicker {
  color: #7A5D12;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  margin: 0 0 1.25rem;
}
p.uk-intro__lead {
  color: var(--uk-muted);
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  max-width: 40em;
  margin: 0 0 2rem;
}
