/* ==========================================================================
   KAIZEN HOMEPAGE — HEADER + HERO
   --------------------------------------------------------------------------
   HAND-WRITTEN PLAIN CSS (this file is NOT generated from SCSS — safe to
   edit directly; the compiler never touches it because it has no matching
   .scss source). Loaded only on page-templates/kaizen-homepage.php.

   Colors are driven by ACF via custom properties set on .kaizen-hero:
     --hero-bg      Hero Background Color
     --hero-accent  Hero Accent Color
     --hero-text    Hero Text Color
   ========================================================================== */

:root {
  --kaizen-hero-header-h: 96px;
}

/* ==========================================================================
   1. HEADER — transparent variant over the burgundy hero
   ========================================================================== */

.kaizen-hero-page {
  background-color: #430414;
}

.kaizen-hero-page .kz-header--hero {
  position: sticky;
  top: 0;
  background: transparent;
  border-bottom: 1px solid rgba(245, 242, 236, 0.1);
  backdrop-filter: none;
  transition: background-color 300ms ease, box-shadow 300ms ease;
}

/* Sticky state: gains an opaque burgundy background once scrolling starts */
.kaizen-hero-page .kz-header--hero.is-scrolled {
  background: rgba(52, 4, 16, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.kaizen-hero-page .kz-header--hero .kz-header__inner {
  height: var(--kaizen-hero-header-h);
}

.kaizen-hero-page .kz-header--hero .kz-header__logo img {
  height: 52px;
  width: auto;
}

/* Nav links: light on burgundy, sentence case like the reference */
.kaizen-hero-page .kz-header--hero .kz-header__nav a {
  color: #f5f2ec;
  font-family: var(--font-body, 'Inter', Arial, sans-serif);
  font-size: 0.9375rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
}

.kaizen-hero-page .kz-header--hero .kz-header__nav a::after {
  background: var(--kaizen-red, #ef3e33);
  bottom: -6px;
}

.kaizen-hero-page .kz-header--hero .kz-header__nav a:hover {
  color: #ffffff;
}

.kaizen-hero-page .kz-header--hero .kz-header__nav .current-menu-item > a,
.kaizen-hero-page .kz-header--hero .kz-header__nav .current-page-ancestor > a {
  color: #ffffff;
}

/* Header CTA: rounded-rect like the reference (not a pill) */
.kaizen-hero-page .kz-header--hero .kz-header__cta {
  border-radius: 8px;
  font-family: var(--font-body, 'Inter', Arial, sans-serif);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.8rem 1.5rem;
}

/* Hamburger bars must be light over burgundy */
.kaizen-hero-page .kz-header--hero .kz-nav-toggle span {
  background: #f5f2ec;
}

/* ==========================================================================
   2. HERO
   ========================================================================== */

.kaizen-hero {
  --hero-bg: #430414;
  --hero-accent: #ef3e33;
  --hero-text: #ffffff;

  position: relative;
  background-color: var(--hero-bg);
  color: var(--hero-text);
  overflow: hidden;

  /* Header overlays via sticky, so the hero starts underneath it */
  margin-top: calc(var(--kaizen-hero-header-h) * -1 - 1px);
  padding-top: var(--kaizen-hero-header-h);
  min-height: max(640px, 92vh);   /* fallback */
  min-height: max(640px, 92svh);
  display: flex;
}

/* Subtle depth like the reference (slightly darker top-left vignette) */
.kaizen-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 82% 30%, rgba(255, 255, 255, 0.04), transparent 55%),
    radial-gradient(140% 110% at 0% 100%, rgba(0, 0, 0, 0.28), transparent 60%);
  pointer-events: none;
}

/* Optional uploaded background texture */
.kaizen-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.kaizen-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kaizen-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  width: 100%;
}

/* --------------------------------------------------------------------------
   Left column — content
   -------------------------------------------------------------------------- */

.kaizen-hero__content {
  padding-block: clamp(3rem, 7vh, 5rem);
  max-width: 620px;
}

.kaizen-hero__title {
  font-family: var(--font-body, 'Inter', Arial, sans-serif);
  font-weight: 800;
  font-size: clamp(3.25rem, 6vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--hero-text);
  margin: 0 0 1.75rem;
}

.kaizen-hero__description {
  font-size: clamp(1rem, 1.25vw, 1.1875rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82); /* fallback */
  color: color-mix(in srgb, var(--hero-text) 82%, transparent);
  max-width: 46ch;
  margin: 0 0 2.5rem;
}

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

.kaizen-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.kaizen-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body, 'Inter', Arial, sans-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1.05rem 2rem;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.kaizen-hero__btn:focus-visible {
  outline: 2px solid var(--hero-accent);
  outline-offset: 3px;
}

.kaizen-hero__btn--primary {
  background: var(--hero-accent);
  border-color: var(--hero-accent);
  color: #ffffff;
}

.kaizen-hero__btn--primary:hover {
  background: #d43227; /* fallback */
  border-color: #d43227;
  background: color-mix(in srgb, var(--hero-accent) 86%, #000000);
  border-color: color-mix(in srgb, var(--hero-accent) 86%, #000000);
  color: #ffffff;
  transform: translateY(-2px);
}

.kaizen-hero__btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85); /* fallback */
  border-color: color-mix(in srgb, var(--hero-text) 85%, transparent);
  color: var(--hero-text);
  font-size: 0.9375rem;
  padding: 0.95rem 1.8rem;
}

.kaizen-hero__btn--secondary:hover {
  background: var(--hero-text);
  border-color: var(--hero-text);
  color: var(--hero-bg);
}

/* Location badge ---------------------------------------------------------- */

.kaizen-hero__location {
  display: inline-block;
  font-family: var(--font-body, 'Inter', Arial, sans-serif);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero-text);
  background: rgba(245, 242, 236, 0.1);
  border: 1px solid rgba(245, 242, 236, 0.14);
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
}

/* --------------------------------------------------------------------------
   Right column — layered visual
   BURGUNDY BG → KAIZEN GRAPHIC → PLAYER (two independent images)
   -------------------------------------------------------------------------- */

.kaizen-hero__visual {
  position: relative;
  align-self: stretch;
  min-height: clamp(420px, 62vh, 720px);
}

.kaizen-hero__graphic {
  position: absolute;
  z-index: 1;
  right: 0;
  top: 50%;
  transform: translate3d(0, -52%, 0);
  width: clamp(300px, 88%, 620px);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.kaizen-hero__graphic img {
  width: 100%;
  height: auto;   /* proportions preserved — never stretched */
  display: block;
}

.kaizen-hero__player {
  position: absolute;
  z-index: 2;
  left: clamp(-2%, 1vw, 6%);
  bottom: clamp(-3.5rem, -4vh, -1.5rem); /* extends past the graphic's lower edge */
  width: clamp(300px, 82%, 560px);
  transform: translate3d(0, 0, 0);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.35));
}

.kaizen-hero__player img {
  width: 100%;
  height: auto;   /* full cutout visible — head, feet, and ball never cropped */
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .kaizen-hero__graphic,
  .kaizen-hero__player {
    will-change: transform;
  }
}

/* ==========================================================================
   3. RESPONSIVE
   ========================================================================== */

/* Large desktops — cap the composition */
@media (min-width: 1920px) {
  .kaizen-hero {
    min-height: 900px;
  }
}

/* Small desktops / laptops */
@media (max-width: 1199.98px) {
  .kaizen-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Tablets and below — intentionally redesigned single column */
@media (max-width: 991.98px) {
  :root {
    --kaizen-hero-header-h: 76px;
  }

  .kaizen-hero-page .kz-header--hero .kz-header__logo img {
    height: 44px;
  }

  .kaizen-hero {
    min-height: 0;
    display: block;
  }

  .kaizen-hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .kaizen-hero__content {
    padding-block: clamp(2.5rem, 6vw, 4rem) 0;
    max-width: 560px;
  }

  .kaizen-hero__actions {
    margin-bottom: 2rem;
  }

  /* Player + graphic composition below the content, still layered */
  .kaizen-hero__visual {
    min-height: 0;
    margin-top: 1rem;
    padding-top: clamp(1rem, 4vw, 2rem);
  }

  .kaizen-hero__graphic {
    position: relative;
    inset: auto;
    transform: none;
    margin-left: auto;
    margin-right: calc(var(--bs-gutter-x, 1.5rem) * -1); /* bleeds off the right edge */
    width: min(78%, 460px);
  }

  .kaizen-hero__player {
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(72%, 420px);
  }
}

/* Phones */
@media (max-width: 575.98px) {
  .kaizen-hero__title {
    font-size: clamp(2.875rem, 14.5vw, 3.75rem);
  }

  .kaizen-hero__btn {
    width: 100%;
  }

  .kaizen-hero__graphic {
    width: 88%;
  }

  .kaizen-hero__player {
    width: 82%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .kaizen-hero__graphic,
  .kaizen-hero__player {
    will-change: auto;
    transition: none;
  }

  .kaizen-hero__btn,
  .kaizen-hero-page .kz-header--hero {
    transition: none;
  }
}
