/* ============================================================
   KJTL DISTRIBUTION — HOME (front-page.php)
   Hero + sections, navy + orange brand system
   ============================================================ */

/* ============================================================
   HERO
============================================================ */
.kd-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--kd-header-h) + var(--kd-space-12));
  padding-bottom: var(--kd-space-16);
  color: var(--kd-white);

  background-image: url("https://kjtldistribution.co.uk/wp-content/uploads/2026/04/hero-banner-scaled.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--kd-navy-900);
}

.kd-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 500px at 50% 40%, rgba(15, 29, 61, 0.3), rgba(10, 21, 48, 0.6) 70%),
    linear-gradient(180deg, rgba(10, 21, 48, 0.45) 0%, rgba(15, 29, 61, 0.5) 60%, rgba(10, 21, 48, 0.65) 100%);
}

.kd-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 40%, transparent 100%);
  z-index: 1;
}

.kd-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--kd-space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.kd-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px 16px 7px 12px;
  border-radius: var(--kd-radius-full);
  margin-bottom: var(--kd-space-6);
  backdrop-filter: blur(8px);
}
.kd-hero__pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--kd-orange-500);
  box-shadow: 0 0 0 4px rgba(244, 123, 48, 0.18);
  animation: kd-pulse 2.4s ease-in-out infinite;
}
@keyframes kd-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.65; transform: scale(0.92); }
}
.kd-hero__pill-text {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

.kd-hero__h1 {
  font-family: var(--kd-font-display);
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--kd-white);
  margin-bottom: var(--kd-space-6);
  max-width: 26ch;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.38);
}
.kd-hero__h1-accent {
  color: var(--kd-orange-500);
  display: inline-block;
  position: relative;
}

.kd-hero__h1-accent::after {
  content: attr(data-shine-text);
  position: absolute;
  inset: 0;
  color: transparent;
  background-image: linear-gradient(
    110deg,
    transparent 0%,
    transparent 42%,
    #fff4df 48%,
    #ffffff 50%,
    #ffd28a 52%,
    transparent 58%,
    transparent 100%
  );
  background-size: 260% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  pointer-events: none;
  animation: kd-hero-word-shine-first 7.2s ease-in-out infinite;
}

.kd-hero__h1-accent:nth-of-type(2)::after {
  animation-name: kd-hero-word-shine-second;
}

@keyframes kd-hero-word-shine-first {
  0%,
  8% {
    opacity: 0;
    background-position: 120% 0;
  }
  9% {
    opacity: 1;
  }
  24% {
    opacity: 1;
    background-position: -120% 0;
  }
  25%,
  100% {
    opacity: 0;
    background-position: -120% 0;
  }
}

@keyframes kd-hero-word-shine-second {
  0%,
  50% {
    opacity: 0;
    background-position: 120% 0;
  }
  51% {
    opacity: 1;
  }
  66% {
    opacity: 1;
    background-position: -120% 0;
  }
  67%,
  100% {
    opacity: 0;
    background-position: -120% 0;
  }
}

.kd-hero__sub {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 780px;
  margin: 0 auto var(--kd-space-8);
  letter-spacing: -0.003em;
  text-wrap: balance;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.kd-hero__btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--kd-space-10);
  width: 100%;
}

/* ============================================================
   BUTTONS — Pill shape, conveyor-belt hover effect
============================================================ */
.kd-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--kd-font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 7px 7px 7px 26px;
  border-radius: var(--kd-radius-full);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  border: 1.5px solid transparent;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 180ms ease;
}

.kd-btn__text {
  position: relative;
  display: inline-block;
  overflow: hidden;
  margin-right: 14px;
  line-height: 1.2;
}
.kd-btn__text::before {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  transform: translateY(0);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.kd-btn__text span {
  display: block;
  transition:
    transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.kd-btn:hover .kd-btn__text span {
  transform: translateY(-100%);
  opacity: 0;
}
.kd-btn:hover .kd-btn__text::before {
  transform: translateY(-100%);
}

.kd-btn__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  transition: background 220ms ease;
}
.kd-btn__icon svg {
  display: block;
  transition:
    transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 200ms ease;
}
.kd-btn:hover .kd-btn__icon svg {
  transform: translateX(120%);
  opacity: 0;
  animation: kd-arrow-loop 320ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes kd-arrow-loop {
  0%   { transform: translateX(-120%); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}

.kd-btn--primary {
  color: var(--kd-white);
  background: var(--kd-orange-500);
  border-color: var(--kd-orange-500);
  box-shadow: 0 6px 22px rgba(244, 123, 48, 0.36);
}
.kd-btn--primary .kd-btn__icon { background: rgba(255, 255, 255, 0.22); }
.kd-btn--primary:hover {
  background: var(--kd-orange-600);
  border-color: var(--kd-orange-600);
  box-shadow: 0 12px 32px rgba(244, 123, 48, 0.5);
  transform: translateY(-2px);
}
.kd-btn--primary:hover .kd-btn__icon { background: rgba(255, 255, 255, 0.3); }

.kd-hero__btns .kd-btn--primary:hover {
  color: var(--kd-navy-900);
  background: var(--kd-white);
  border-color: var(--kd-white);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.24);
}

.kd-hero__btns .kd-btn--primary:hover .kd-btn__icon {
  background: rgba(15, 29, 61, 0.08);
}

.kd-btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(244, 123, 48, 0.28);
}

.kd-btn--ghost {
  color: var(--kd-white);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.kd-btn--ghost .kd-btn__icon { background: rgba(255, 255, 255, 0.14); }
.kd-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
}
.kd-btn--ghost:hover .kd-btn__icon { background: rgba(255, 255, 255, 0.22); }
.kd-btn--ghost:active { transform: translateY(0); }

.kd-btn--dark {
  color: var(--kd-white);
  background: var(--kd-navy-900);
  border-color: var(--kd-navy-900);
}
.kd-btn--dark .kd-btn__icon { background: rgba(255, 255, 255, 0.1); }
.kd-btn--dark:hover {
  background: var(--kd-navy-800);
  border-color: var(--kd-navy-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 29, 61, 0.3);
}
.kd-btn--dark:hover .kd-btn__icon { background: rgba(255, 255, 255, 0.16); }
.kd-btn--dark:active { transform: translateY(0); }

.kd-btn__arrow { transition: transform 220ms ease; }
.kd-btn:hover .kd-btn__arrow { transform: translateX(4px); }

/* Hero pathway cards */
.kd-hero__trust {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  width: min(100%, 1100px);
  margin: 72px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 29, 61, 0.68), rgba(15, 29, 61, 0.34)),
    rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.20);
  overflow: visible;
  isolation: isolate;
}
.kd-hero__trust-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 154px;
  padding: 68px 28px 24px;
  text-align: center;
  isolation: isolate;
}
.kd-hero__trust-icon {
  position: absolute;
  top: -42px;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 84px;
  height: 76px;
  color: var(--kd-orange-500);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05)),
    radial-gradient(circle at 58% 48%, rgba(244, 123, 48, 0.26), transparent 60%),
    rgba(15, 29, 61, 0.78);
  border: 1px solid rgba(244, 123, 48, 0.42);
  border-radius: 52% 48% 55% 45% / 44% 58% 42% 56%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.08),
    0 0 0 12px rgba(244, 123, 48, 0.10),
    0 18px 44px rgba(244, 123, 48, 0.28);
  transform: translateX(-50%) rotate(-8deg);
  transition:
    background 360ms ease,
    border-color 320ms ease,
    border-radius 420ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 320ms ease,
    transform 320ms ease;
}

.kd-hero__trust-icon::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle, rgba(244, 123, 48, 0.30), transparent 66%),
    rgba(255, 255, 255, 0.08);
  filter: blur(10px);
  opacity: 0.72;
  transition:
    opacity 320ms ease,
    transform 320ms ease;
}

.kd-hero__trust-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(244, 123, 48, 0.18);
  filter: blur(18px);
}

.kd-hero__trust-icon svg {
  width: 36px;
  height: 36px;
  transform: rotate(8deg);
  transition: transform 320ms ease;
}

.kd-hero__trust.is-ready .kd-hero__trust-icon {
  animation: kd-trust-icon-settle 520ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: calc(var(--kd-trust-index, 0) * 80ms);
}

@keyframes kd-trust-icon-settle {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px) rotate(-8deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) rotate(-8deg) scale(1);
  }
}

.kd-hero__trust-item:hover .kd-hero__trust-icon {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
    radial-gradient(circle at 58% 48%, rgba(255, 255, 255, 0.26), transparent 58%),
    rgba(15, 29, 61, 0.68);
  border-color: rgba(244, 123, 48, 0.42);
  border-radius: 44% 56% 47% 53% / 58% 42% 58% 42%;
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.10),
    0 0 0 12px rgba(244, 123, 48, 0.10),
    0 22px 48px rgba(244, 123, 48, 0.28);
  transform: translateX(-50%) translateY(-4px) rotate(0deg);
}

.kd-hero__trust-item:hover .kd-hero__trust-icon::before {
  opacity: 1;
  transform: scale(1.08);
}

.kd-hero__trust-item:hover .kd-hero__trust-icon svg {
  transform: rotate(0deg);
}
.kd-hero__trust-label {
  position: relative;
  z-index: 1;
  max-width: 36ch;
  min-height: 3.9em;
  font-size: clamp(13px, 1vw, 14px);
  font-weight: 600;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0;
  text-transform: none;
  transition: color 280ms ease;
}

.kd-hero__trust-service {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 38px;
  margin-top: 4px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--kd-radius-full);
  background: rgba(255, 255, 255, 0.10);
  color: var(--kd-white);
  font-family: var(--kd-font-display);
  font-size: clamp(12.5px, 0.98vw, 14px);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    background 240ms ease,
    border-color 240ms ease,
    transform 180ms ease,
    color 240ms ease,
    box-shadow 240ms ease;
}

.kd-hero__trust-service-text {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.kd-hero__trust-service-text::before {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  transform: translateY(0);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.kd-hero__trust-service-text > span {
  display: block;
  transition:
    transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.kd-hero__trust-item:hover .kd-hero__trust-service {
  background: var(--kd-orange-500);
  border-color: var(--kd-orange-500);
  color: var(--kd-white);
  box-shadow: 0 10px 26px rgba(244, 123, 48, 0.34);
  transform: translateY(-2px);
}

.kd-hero__trust-item:hover .kd-hero__trust-service-text > span {
  transform: translateY(-100%);
  opacity: 0;
}

.kd-hero__trust-item:hover .kd-hero__trust-service-text::before {
  transform: translateY(-100%);
}
.kd-hero__trust-divider {
  display: none;
}

/* ============================================================
   SECTION BASE
============================================================ */
.kd-section {
  padding: var(--kd-space-16) 0;
  background: var(--kd-white);
}
.kd-section-heading {
  max-width: 790px;
  margin: 0 auto var(--kd-space-12);
  text-align: center;
}
.kd-section-heading--left {
  margin: 0 0 var(--kd-space-8) 0;
  text-align: left;
}
.kd-section-heading h2 {
  font-family: var(--kd-font-display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--kd-navy-900);
  margin: 14px 0;
}
.kd-section-heading p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--kd-gray-500);
  margin: 0;
}

.kd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--kd-radius-full);
  background: rgba(244, 123, 48, 0.1);
  border: 1px solid rgba(244, 123, 48, 0.25);
  color: var(--kd-orange-600);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.kd-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--kd-orange-500);
  box-shadow: 0 0 0 4px rgba(244, 123, 48, 0.18);
}
.kd-section-heading .kd-eyebrow { margin: 0 auto; }
.kd-section-heading--left .kd-eyebrow { margin: 0; }

/* ============================================================
   1. PATHWAYS (legacy, kept for safety)
============================================================ */
.kd-pathways {
  position: relative;
  z-index: 5;
  margin-top: -88px;
  padding-bottom: var(--kd-space-16);
}
.kd-pathways__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--kd-space-5);
}

/* ============================================================
   2. BUSINESS GRID — modern cards: title, organic icon, panel
============================================================ */
.kd-business-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--kd-space-5);
}

.kd-business-card {
  position: relative;
  display: flex;
  min-height: 270px;
  flex-direction: column;
  align-items: center;
  padding: 0;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
}

.kd-business-card::before,
.kd-business-card::after { display: none; }

.kd-business-card__keyword {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--kd-font-display);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
  color: var(--kd-navy-900);
  transition: color 320ms ease;
}

.kd-business-card h3 {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 42px;
  margin: auto auto 0;
  padding: 8px 18px;
  border: 1px solid rgba(15, 29, 61, 0.12);
  border-radius: var(--kd-radius-full);
  background: rgba(255, 255, 255, 0.72);
  color: var(--kd-navy-900);
  font-family: var(--kd-font-display);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    background 240ms ease,
    border-color 240ms ease,
    color 240ms ease;
}

.kd-business-card__panel {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  padding: var(--kd-space-8) var(--kd-space-6);
  border: 1px solid rgba(219, 224, 234, 0.82);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58)),
    #f3f6fa;
  box-shadow:
    0 1px 2px rgba(15, 29, 61, 0.04),
    0 18px 42px rgba(15, 29, 61, 0.07);
  overflow: hidden;
  transition:
    border-color 320ms ease,
    box-shadow 320ms ease,
    transform 320ms ease;
}

.kd-business-card__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--kd-orange-500), var(--kd-orange-600));
  opacity: 0;
  transition: opacity 320ms ease;
}

.kd-business-card__panel h3,
.kd-business-card__panel p,
.kd-business-card__line {
  position: relative;
  z-index: 1;
}

.kd-business-card__panel p {
  max-width: 31ch;
  margin: 14px auto var(--kd-space-5);
  color: var(--kd-gray-500);
  font-size: 14.5px;
  line-height: 1.62;
  text-wrap: balance;
  transition: color 320ms ease;
}

.kd-business-card__line {
  display: block;
  width: min(100%, 220px);
  height: 1px;
  margin: 0 auto var(--kd-space-5);
  background: rgba(15, 29, 61, 0.12);
  transition: background 320ms ease;
}

.kd-business-card:hover {
  transform: none;
  box-shadow: none;
}

.kd-business-card:hover .kd-business-card__panel {
  border-color: rgba(244, 123, 48, 0.34);
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(244, 123, 48, 0.20);
}

.kd-business-card:hover .kd-business-card__panel::before { opacity: 1; }
.kd-business-card:hover .kd-business-card__keyword { color: var(--kd-white); }
.kd-business-card:hover .kd-business-card__panel p { color: rgba(255, 255, 255, 0.92); }
.kd-business-card:hover .kd-business-card__line { background: rgba(255, 255, 255, 0.28); }
.kd-business-card:hover .kd-business-card__panel h3 {
  background: var(--kd-white);
  border-color: var(--kd-white);
  color: var(--kd-orange-600);
}

.kd-business-strip {
  padding: var(--kd-space-10) 0;
  background: var(--kd-white);
}

/* ============================================================
   3. SERVICES STACK — sticky scroll cards
============================================================ */
.kd-stack-section {
  background: var(--kd-white);
  padding: var(--kd-space-20) 0 0;
  position: relative;
  z-index: 2;
  overflow: visible;
}
.kd-stack-section__heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto var(--kd-space-16);
}

.kd-stack-section__heading h2 span,
.kd-network .kd-section-heading h2 span {
  display: block;
}

.kd-stack-section__heading h2,
.kd-network .kd-section-heading h2 {
  text-align: center;
  text-wrap: balance;
}
.kd-stack-track-clip {
  position: relative;
  overflow: visible;
  background: var(--kd-white);
}
.kd-stack-track-clip::after {
  content: "";
  display: block;
  height: var(--kd-space-20);
  background: var(--kd-white);
}
.kd-stack-track {
  position: relative;
  background: var(--kd-white);
}
.kd-stack-card {
  position: sticky;
  top: calc(var(--kd-header-h-sticky) + 20px);
  background: var(--kd-white);
}
.kd-stack-card:nth-child(1) { z-index: 2; }
.kd-stack-card:nth-child(2) {
  z-index: 3;
  margin-top: 16px;
}

.kd-stack-card__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--kd-white);
  border-radius: 24px;
  border: 1px solid var(--kd-gray-200);
  box-shadow:
    0 2px 8px rgba(15, 29, 61, 0.05),
    0 16px 48px rgba(15, 29, 61, 0.1);
  overflow: hidden;
  max-width: var(--kd-container);
  margin: 0 auto;
  transition:
    opacity 300ms ease,
    transform 300ms ease,
    filter 300ms ease;
}

.kd-stack-card__num {
  position: absolute;
  top: 20px;
  right: -44px;
  font-family: var(--kd-font-display);
  font-size: 20px;
  font-weight: 700;
  color: rgba(15, 29, 61, 0.22);
  letter-spacing: -0.02em;
  user-select: none;
  pointer-events: none;
}

.kd-stack-card__image {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}
.kd-stack-card__image--wholesale {
  background-color: var(--kd-gray-200);
  background-image: url("https://kjtldistribution.co.uk/wp-content/uploads/2026/04/for_wholsale.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.kd-stack-card__image--supplier {
  background-color: var(--kd-gray-200);
  background-image: url("https://kjtldistribution.co.uk/wp-content/uploads/2026/04/for_supplier.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.kd-stack-card__image::before { display: none; }

/* Reflective sheen on hover — desktop only */
@media (min-width: 900px) and (hover: hover) {
  .kd-stack-card__image {
    filter: brightness(1) saturate(1);
    transition:
      filter 560ms cubic-bezier(0.4, 0, 0.2, 1),
      transform 560ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: filter, transform;
    background-size: cover;
    position: relative;
  }
  .kd-stack-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      115deg,
      transparent 0%,
      transparent 35%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0.45) 50%,
      rgba(255, 255, 255, 0) 60%,
      transparent 65%,
      transparent 100%
    );
    background-size: 220% 220%;
    background-position: 130% 50%;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    transition:
      background-position 700ms cubic-bezier(0.4, 0, 0.2, 1),
      opacity 200ms ease;
    mix-blend-mode: screen;
    z-index: 1;
  }
  .kd-stack-card:hover .kd-stack-card__image {
    filter: brightness(1.06) saturate(1.08);
    transform: scale(1.04);
  }
  .kd-stack-card:hover .kd-stack-card__image::after {
    background-position: -130% 50%;
    opacity: 1;
  }
  .kd-stack-card__image { overflow: hidden; }
}

.kd-stack-card__img-badge {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1;
}
.kd-stack-card__img-badge strong {
  display: block;
  font-family: var(--kd-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--kd-navy-900);
  margin-bottom: 3px;
}
.kd-stack-card__img-badge span {
  font-size: 12.5px;
  color: var(--kd-gray-500);
  line-height: 1.4;
}

.kd-stack-card__content {
  padding: var(--kd-space-10) var(--kd-space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--kd-space-4);
  background: var(--kd-white);
}

.kd-stack-card__pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: var(--kd-radius-full);
  background: var(--kd-orange-100);
  color: var(--kd-orange-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(244, 123, 48, 0.2);
}

.kd-stack-card__title {
  font-family: var(--kd-font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--kd-navy-900);
  margin: 0;
}

.kd-stack-card__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--kd-gray-500);
  margin: 0;
  padding-bottom: var(--kd-space-2);
  border-bottom: 1px solid var(--kd-gray-100);
}

.kd-stack-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.kd-stack-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--kd-navy-900);
}
.kd-stack-card__list li svg {
  color: var(--kd-orange-500);
  flex-shrink: 0;
}

.kd-stack-card.is-past .kd-stack-card__inner {
  opacity: 0.5;
  transform: scale(0.97);
  filter: brightness(0.85) saturate(0.5);
}

@media (min-width: 900px) {
  .kd-stack-card__inner { grid-template-columns: 1.1fr 0.9fr; }
  .kd-stack-card__image { min-height: 480px; }
}

@media (max-width: 899px) {
  .kd-stack-section { padding: var(--kd-space-16) 0 0; }
  .kd-stack-track { height: auto !important; }
  .kd-stack-track-clip::after { height: var(--kd-space-12); }
  .kd-stack-card {
    position: relative !important;
    top: auto !important;
    margin-top: 0 !important;
    margin-bottom: var(--kd-space-5);
    background: var(--kd-white);
  }
  .kd-stack-card__num { display: none; }
}

/* ============================================================
   4. NETWORK — Connected Supply Chain (4 cards in row)
============================================================ */
.kd-network {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  /* Cream background + faint orange diagonal lines */
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0px,
      transparent 22px,
      rgba(244, 123, 48, 0.10) 22px,
      rgba(244, 123, 48, 0.10) 23px
    ),
    linear-gradient(180deg, #fffaf3 0%, #fdf6ec 100%);
  color: var(--kd-navy-900);
}

.kd-network::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 420px;
  height: 420px;
  left: -160px;
  top: -120px;
  border-radius: 50%;
  opacity: 0.40;
  background: radial-gradient(circle, rgba(244, 123, 48, 0.22), transparent 68%);
}

.kd-network::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 460px;
  height: 460px;
  right: -180px;
  bottom: -180px;
  border-radius: 50%;
  opacity: 0.28;
  background: radial-gradient(circle, rgba(15, 29, 61, 0.18), transparent 68%);
}

/* Centered heading on top */
.kd-network__grid {
  position: relative;
  z-index: 1;
  display: block;
}

.kd-network .kd-section-heading {
  max-width: 640px;
  margin: 0 auto var(--kd-space-12);
  text-align: center;
}
.kd-network .kd-section-heading h2 {
  color: var(--kd-navy-900);
  max-width: none;
  text-align: center;
}
.kd-network .kd-section-heading p {
  color: var(--kd-gray-500);
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
}
.kd-network .kd-eyebrow {
  background: rgba(244, 123, 48, 0.10);
  border-color: rgba(244, 123, 48, 0.24);
  color: var(--kd-orange-600);
  margin: 0 auto;
}

/* Network cards grid — mirrors hero business cards */
.kd-network__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--kd-space-6);
}

/* Each card mirrors .kd-business-card structure exactly */
.kd-network-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  padding: 0;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
}

.kd-network-card::before,
.kd-network-card::after { display: none; }

.kd-card-fill {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.kd-card-fill span {
  position: relative;
  flex: 1 1 25%;
  min-width: 0;
  overflow: hidden;
}

.kd-card-fill span::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--kd-orange-500), var(--kd-orange-600));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 750ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

/* Floating organic icon — same as business cards */
.kd-network-card__icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 76px;
  margin-bottom: -24px;
  color: var(--kd-orange-600);
  background:
    radial-gradient(circle at 58% 48%, rgba(244, 123, 48, 0.20), transparent 58%),
    #fff6ef;
  border: 1px solid rgba(244, 123, 48, 0.18);
  border-radius: 52% 48% 55% 45% / 44% 58% 42% 56%;
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.36),
    0 16px 34px rgba(244, 123, 48, 0.18);
  transform: rotate(-8deg);
  transition:
    background 360ms ease,
    color 360ms ease,
    border-radius 420ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 320ms ease,
    transform 320ms ease;
}
.kd-network-card__icon svg {
  transform: rotate(8deg);
  transition: transform 320ms ease;
}

/* Soft panel — description on top, title pill at bottom */
.kd-network-card__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
  padding: 62px var(--kd-space-6) var(--kd-space-6);
  border: 1px solid rgba(219, 224, 234, 0.82);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86)),
    var(--kd-white);
  box-shadow:
    0 1px 2px rgba(15, 29, 61, 0.04),
    0 18px 42px rgba(15, 29, 61, 0.07);
  overflow: hidden;
  transition:
    border-color 320ms ease,
    box-shadow 320ms ease,
    transform 320ms ease;
}

.kd-network-card__panel::before {
  display: none;
}

.kd-network-card__panel p,
.kd-network-card__panel strong {
  position: relative;
  z-index: 2;
}

.kd-network-card__panel p {
  max-width: 32ch;
  margin: 0 auto var(--kd-space-6);
  color: var(--kd-gray-500);
  font-size: 14.5px;
  line-height: 1.62;
  text-wrap: balance;
  transition: color 320ms ease;
}

.kd-network-card__panel strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 42px;
  margin: auto auto 0;
  padding: 8px 18px;
  border: 1px solid rgba(15, 29, 61, 0.12);
  border-radius: var(--kd-radius-full);
  background: rgba(255, 255, 255, 0.72);
  color: var(--kd-navy-900);
  font-family: var(--kd-font-display);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    background 240ms ease,
    border-color 240ms ease,
    color 240ms ease;
}

/* Hover */
.kd-network-card:hover .kd-network-card__icon {
  color: var(--kd-orange-600);
  background:
    radial-gradient(circle at 58% 48%, rgba(255, 255, 255, 0.30), transparent 58%),
    var(--kd-orange-100);
  border-color: rgba(244, 123, 48, 0.32);
  border-radius: 44% 56% 47% 53% / 58% 42% 58% 42%;
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.50),
    0 0 0 8px rgba(244, 123, 48, 0.10),
    0 20px 40px rgba(244, 123, 48, 0.20);
  transform: translateY(-4px) rotate(0deg);
}
.kd-network-card:hover .kd-network-card__icon svg {
  transform: rotate(0deg);
}
.kd-network-card:hover .kd-network-card__panel {
  border-color: rgba(244, 123, 48, 0.34);
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(244, 123, 48, 0.20);
}
.kd-network-card:hover .kd-card-fill span::before { transform: scaleX(1); }
.kd-network-card:hover .kd-network-card__panel p { color: rgba(255, 255, 255, 0.92); }
.kd-network-card:hover .kd-network-card__panel strong {
  background: var(--kd-white);
  border-color: var(--kd-white);
  color: var(--kd-orange-600);
}

/* ============================================================
   7. PROMISES — 2 cards left | image middle | 2 cards right
============================================================ */

.kd-promises {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(15, 29, 61, 0.05) 1px, transparent 1.5px) 0 0 / 28px 28px,
    linear-gradient(180deg, var(--kd-white) 0%, #fbfcfe 100%);
}

.kd-promises::before,
.kd-promises::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}
.kd-promises::before {
  width: 360px;
  height: 360px;
  left: -160px;
  top: 80px;
  opacity: 0.40;
  background: radial-gradient(circle, rgba(244, 123, 48, 0.15), transparent 70%);
}
.kd-promises::after {
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -120px;
  opacity: 0.30;
  background: radial-gradient(circle, rgba(15, 29, 61, 0.10), transparent 70%);
}

.kd-promises .kd-container { position: relative; z-index: 1; }

.kd-promises .kd-section-heading {
  margin: 0 auto var(--kd-space-12);
  text-align: center;
}
.kd-promises .kd-section-heading h2 {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.kd-promises .kd-section-heading p {
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

/* Layout: cards left / cards right (image sits behind) */
.kd-promise-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--kd-space-6);
  margin: 0 auto;
}

.kd-promise-col {
  position: relative;
  z-index: 2; /* above image */
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--kd-space-6);
}

@media (min-width: 960px) {
  .kd-promise-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--kd-space-20);
    align-items: stretch;
  }

  /* Cards stay compact — don't span full column width */
  .kd-promise-card {
    max-width: 360px;
    width: 100%;
  }

  /* Left column cards hug LEFT edge of the section */
  .kd-promise-layout > .kd-promise-col:nth-of-type(1) .kd-promise-card {
    margin-left: 0;
    margin-right: auto;
  }

  /* Right column cards hug RIGHT edge of the section */
  .kd-promise-layout > .kd-promise-col:nth-of-type(2) .kd-promise-card {
    margin-left: auto;
    margin-right: 0;
  }
}

/* Image — absolutely positioned, sits behind cards */
.kd-promise-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none; /* let cards receive hover */
  perspective: 1200px;
}

.kd-promise-visual__inner {
  position: relative;
  width: 100%;
  max-width: 560px;
  pointer-events: auto; /* image still tilts on hover */
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg) translateZ(0);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Soft glow behind the image */
.kd-promise-visual__inner::before {
  content: "";
  position: absolute;
  inset: -10% -10% 5% -10%;
  background:
    radial-gradient(ellipse at center,
      rgba(244, 123, 48, 0.22),
      rgba(244, 123, 48, 0.08) 45%,
      transparent 70%);
  filter: blur(40px);
  z-index: -1;
  transition: opacity 400ms ease;
}

.kd-promise-visual__img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(15, 29, 61, 0.25));
  transition: filter 400ms ease;
}

/* When the inner is being tilted (mouse over) — image lifts toward viewer */
/* When tilt is active (mouse over section) — image lifts toward viewer */
.is-active .kd-promise-visual__inner {
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.is-active .kd-promise-visual__img {
  filter: drop-shadow(0 36px 60px rgba(15, 29, 61, 0.32));
}

/* Each card — same network-card pattern */
.kd-promise-card {
  position: relative;
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: center;
  padding: 0;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
}

.kd-promise-card__icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 76px;
  margin-bottom: -24px;
  color: var(--kd-orange-600);
  background:
    radial-gradient(circle at 58% 48%, rgba(244, 123, 48, 0.20), transparent 58%),
    #fff6ef;
  border: 1px solid rgba(244, 123, 48, 0.18);
  border-radius: 52% 48% 55% 45% / 44% 58% 42% 56%;
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.36),
    0 16px 34px rgba(244, 123, 48, 0.18);
  transform: rotate(-8deg);
  transition:
    background 360ms ease,
    color 360ms ease,
    border-color 360ms ease,
    border-radius 420ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 320ms ease,
    transform 320ms ease;
}
.kd-promise-card__icon svg {
  width: 26px;
  height: 26px;
  transform: rotate(8deg);
  transition: transform 320ms ease;
}

.kd-promise-card__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  padding: 62px var(--kd-space-6) 1.75rem;
  border: 1px solid rgba(219, 224, 234, 0.82);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86)),
    var(--kd-white);
  box-shadow:
    0 1px 2px rgba(15, 29, 61, 0.04),
    0 18px 42px rgba(15, 29, 61, 0.07);
  overflow: hidden;
  transition:
    border-color 320ms ease,
    box-shadow 320ms ease,
    transform 320ms ease;
}

.kd-promise-card__panel::before {
  display: none;
}

.kd-promise-card__title,
.kd-promise-card__desc {
  position: relative;
  z-index: 2;
}

.kd-promise-card__title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  order: 2;
  font-family: var(--kd-font-display);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--kd-navy-900);
  min-height: 42px;
  max-width: 100%;
  margin: auto auto 0;
  padding: 8px 18px;
  border: 1px solid rgba(15, 29, 61, 0.12);
  border-radius: var(--kd-radius-full);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    background 240ms ease,
    border-color 240ms ease,
    color 240ms ease;
}

.kd-promise-card__desc {
  order: 1;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--kd-gray-500);
  margin: 0 auto var(--kd-space-6);
  max-width: 34ch;
  text-wrap: balance;
  transition: color 320ms ease;
}

.kd-promise-card:hover .kd-promise-card__icon {
  border-radius: 44% 56% 47% 53% / 58% 42% 58% 42%;
  border-color: rgba(244, 123, 48, 0.32);
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.50),
    0 0 0 8px rgba(244, 123, 48, 0.10),
    0 20px 40px rgba(244, 123, 48, 0.20);
  transform: translateY(-4px) rotate(0deg);
}
.kd-promise-card:hover .kd-promise-card__icon svg { transform: rotate(0deg); }
.kd-promise-card:hover .kd-promise-card__panel {
  border-color: rgba(244, 123, 48, 0.34);
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(244, 123, 48, 0.20);
}
.kd-promise-card:hover .kd-card-fill span::before { transform: scaleX(1); }
.kd-promise-card:hover .kd-promise-card__desc { color: rgba(255, 255, 255, 0.92); }
.kd-promise-card:hover .kd-promise-card__title {
  background: var(--kd-white);
  border-color: var(--kd-white);
  color: var(--kd-orange-600);
}

@media (prefers-reduced-motion: reduce) {
  .kd-promise-visual__inner { transition: none !important; transform: none !important; }
}

/* ============================================================
   8. DUAL CTA — 2 horizontal strips stacked, network-style bg
============================================================ */

.kd-dual-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--kd-space-24) 0;
  /* Cream + faint orange diagonal lines (matches network section) */
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0px,
      transparent 22px,
      rgba(244, 123, 48, 0.10) 22px,
      rgba(244, 123, 48, 0.10) 23px
    ),
    linear-gradient(180deg, #fffaf3 0%, #fdf6ec 100%);
  color: var(--kd-navy-900);
}

/* Soft brand-tinted blobs at corners */
.kd-dual-cta::before,
.kd-dual-cta::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}
.kd-dual-cta::before {
  width: 380px;
  height: 380px;
  left: -160px;
  top: -120px;
  opacity: 0.36;
  background: radial-gradient(circle, rgba(244, 123, 48, 0.20), transparent 70%);
}
.kd-dual-cta::after {
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -180px;
  opacity: 0.26;
  background: radial-gradient(circle, rgba(15, 29, 61, 0.16), transparent 68%);
}

.kd-dual-cta .kd-container {
  position: relative;
  z-index: 1;
}

/* Stack layout — 2 horizontal strips */
.kd-dual-cta__heading {
  max-width: 820px;
  margin-bottom: var(--kd-space-12);
}

.kd-dual-cta__heading h2 {
  color: var(--kd-navy-900);
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.kd-dual-cta__heading p {
  max-width: 64ch;
  margin: 0 auto;
  color: var(--kd-gray-500);
}

.kd-dual-cta__heading .kd-eyebrow {
  background: rgba(244, 123, 48, 0.10);
  border-color: rgba(244, 123, 48, 0.24);
  color: var(--kd-orange-600);
}

.kd-dual-cta__grid {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 2.6vw, 34px);
  max-width: 1180px;
  margin: 0 auto;
}

/* Each CTA card — horizontal strip */
.kd-cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--kd-space-5);
  padding: 1.75rem var(--kd-space-6);
  border: 1px solid rgba(219, 224, 234, 0.82);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.88)),
    var(--kd-white);
  box-shadow:
    0 1px 2px rgba(15, 29, 61, 0.04),
    0 18px 42px rgba(15, 29, 61, 0.07);
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 320ms ease,
    border-color 320ms ease,
    box-shadow 320ms ease,
    background 320ms ease;
}

@media (min-width: 760px) {
  .kd-cta-card {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.75rem;
    padding: var(--kd-space-8) var(--kd-space-10);
  }
}

/* Faint orange wash on hover */
.kd-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--kd-orange-500), var(--kd-orange-600));
  opacity: 0;
  transition: opacity 320ms ease;
}

.kd-cta-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 123, 48, 0.34);
  box-shadow: 0 20px 46px rgba(244, 123, 48, 0.20);
}
.kd-cta-card:hover::before { opacity: 1; }

/* Left icon block — large square with brand fill */
.kd-cta-card__icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 76px;
  flex-shrink: 0;
  color: var(--kd-orange-600);
  background:
    radial-gradient(circle at 58% 48%, rgba(244, 123, 48, 0.20), transparent 58%),
    #fff6ef;
  border: 1px solid rgba(244, 123, 48, 0.18);
  border-radius: 52% 48% 55% 45% / 44% 58% 42% 56%;
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.36),
    0 16px 34px rgba(244, 123, 48, 0.18);
  transform: rotate(-8deg);
  transition:
    background 360ms ease,
    color 360ms ease,
    border-color 360ms ease,
    border-radius 420ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 320ms ease,
    transform 320ms ease;
}
.kd-cta-card__icon svg {
  width: 30px;
  height: 30px;
  transform: rotate(8deg);
  transition: transform 320ms ease;
}

.kd-cta-card:hover .kd-cta-card__icon {
  background:
    radial-gradient(circle at 58% 48%, rgba(255, 255, 255, 0.30), transparent 58%),
    var(--kd-orange-100);
  border-color: rgba(244, 123, 48, 0.32);
  border-radius: 44% 56% 47% 53% / 58% 42% 58% 42%;
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.50),
    0 0 0 8px rgba(244, 123, 48, 0.10),
    0 20px 40px rgba(244, 123, 48, 0.20);
  transform: translateY(-4px) rotate(0deg);
}
.kd-cta-card:hover .kd-cta-card__icon svg {
  transform: rotate(0deg);
}

/* Middle body — title + description */
.kd-cta-card__body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.kd-cta-card h2 {
  font-family: var(--kd-font-display);
  font-size: clamp(21px, 1.8vw, 27px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--kd-navy-900);
  margin: 0 0 10px;
  max-width: 30ch;
  transition: color 320ms ease;
}
.kd-cta-card p {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--kd-gray-500);
  margin: 0;
  max-width: 56ch;
  transition: color 320ms ease;
}

/* Right button area */
.kd-cta-card__action {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.kd-cta-card:hover h2 {
  color: var(--kd-white);
}

.kd-cta-card:hover p {
  color: rgba(255, 255, 255, 0.92);
}

.kd-cta-card:hover .kd-btn--primary {
  color: var(--kd-orange-600);
  background: var(--kd-white);
  border-color: var(--kd-white);
  box-shadow: 0 12px 30px rgba(15, 29, 61, 0.16);
}

.kd-cta-card:hover .kd-btn--primary .kd-btn__icon {
  background: rgba(244, 123, 48, 0.12);
}

/* Wholesale-style round icons for home sections */
.kd-hero__trust-icon,
.kd-network-card__icon,
.kd-promise-card__icon,
.kd-cta-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--kd-white);
  background: linear-gradient(135deg, var(--kd-orange-500), var(--kd-orange-600));
  border: 0;
  border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(244, 123, 48, 0.11),
    0 14px 28px rgba(244, 123, 48, 0.26);
  transform: none;
  transition:
    background 360ms ease,
    color 360ms ease,
    border-radius 320ms ease,
    box-shadow 320ms ease,
    transform 320ms ease;
}

.kd-hero__trust-icon {
  top: -26px;
  transform: translateX(-50%);
}

.kd-network-card__icon,
.kd-promise-card__icon {
  margin-bottom: -26px;
}

.kd-hero__trust-icon::before,
.kd-hero__trust-icon::after {
  display: none;
}

.kd-hero__trust-icon svg,
.kd-network-card__icon svg,
.kd-promise-card__icon svg,
.kd-cta-card__icon svg {
  width: 25px;
  height: 25px;
  transform: none;
  transition: transform 320ms ease;
}

.kd-hero__trust-item:hover .kd-hero__trust-icon,
.kd-network-card:hover .kd-network-card__icon,
.kd-promise-card:hover .kd-promise-card__icon,
.kd-cta-card:hover .kd-cta-card__icon {
  color: var(--kd-white);
  background: var(--kd-navy-900);
  border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(15, 29, 61, 0.10),
    0 18px 34px rgba(15, 29, 61, 0.18),
    0 0 34px rgba(244, 123, 48, 0.30);
}

.kd-hero__trust-item:hover .kd-hero__trust-icon {
  color: var(--kd-navy-900);
  background: var(--kd-white);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.16),
    0 18px 34px rgba(15, 29, 61, 0.20);
  transform: translateX(-50%) translateY(-8px) scale(1.06);
}

.kd-network-card:hover .kd-network-card__icon,
.kd-promise-card:hover .kd-promise-card__icon,
.kd-cta-card:hover .kd-cta-card__icon {
  transform: translateY(-8px) scale(1.06);
}

.kd-hero__trust-item:hover .kd-hero__trust-icon svg,
.kd-network-card:hover .kd-network-card__icon svg,
.kd-promise-card:hover .kd-promise-card__icon svg,
.kd-cta-card:hover .kd-cta-card__icon svg {
  transform: none;
}

@media (max-width: 759px) {
  .kd-dual-cta {
    padding: var(--kd-space-16) 0;
  }

  .kd-cta-card {
    justify-items: start;
  }

  .kd-cta-card__action {
    justify-self: start;
  }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (min-width: 640px) {
  .kd-hero__btns { flex-direction: row; align-items: center; }
  .kd-hero__trust {
    grid-template-columns: 1fr auto 1fr auto 1fr;
  }

  .kd-hero__trust-divider {
    display: block;
    width: 1px;
    height: 104px;
    background: linear-gradient(
      180deg,
      transparent,
      rgba(255, 255, 255, 0.22),
      transparent
    );
  }

  .kd-pathways__grid { grid-template-columns: repeat(2, 1fr); }
  .kd-business-grid { grid-template-columns: repeat(2, 1fr); }
  .kd-network__cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .kd-hero {
    padding-top: calc(var(--kd-header-h) + var(--kd-space-12));
    padding-bottom: var(--kd-space-16);
  }
  .kd-section { padding: var(--kd-space-20) 0; }
  .kd-business-grid { grid-template-columns: repeat(3, 1fr); }
  .kd-network__cards { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 639px) {
  .kd-network::before { width: 320px; height: 320px; left: -160px; top: -120px; }
  .kd-network::after { width: 280px; height: 280px; right: -120px; bottom: -120px; }

  .kd-hero__h1 {
    font-size: clamp(34px, 9.6vw, 42px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
  }

  .kd-promise-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
  }

  .kd-promise-col {
    display: contents;
  }

  .kd-promise-visual {
    display: none;
  }

  .kd-promise-card {
    min-height: 204px;
  }

  .kd-promise-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: -20px;
  }

  .kd-promise-card__icon svg {
    width: 23px;
    height: 23px;
  }

  .kd-promise-card__panel {
    padding: 52px 10px 16px;
    border-radius: 16px;
  }

  .kd-promise-card__title {
    min-height: auto;
    padding: 7px 10px;
    font-size: 12.5px;
  }

  .kd-promise-card__desc {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.42;
  }

  .kd-hero__trust {
    width: min(100%, 360px);
    max-width: 360px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: var(--kd-space-8);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
  }

  .kd-hero__trust-divider {
    display: none;
  }

  .kd-hero__trust-item {
    min-height: auto;
    padding: 0;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
  }

  .kd-hero__trust-icon {
    position: relative;
    top: auto;
    left: auto;
    width: 54px;
    height: 54px;
    margin: 0 auto;
    transform: none;
  }

  .kd-hero__trust.is-ready .kd-hero__trust-icon {
    animation: none;
  }

  .kd-hero__trust-icon svg {
    width: 25px;
    height: 25px;
  }

  .kd-hero__trust-label {
    display: none;
  }

  .kd-hero__trust-service {
    min-height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    box-shadow: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    cursor: default;
    overflow: visible;
  }

  .kd-hero__trust-service-text {
    overflow: visible;
  }

  .kd-hero__trust-service-text::before {
    display: none;
  }

  .kd-hero__trust-service-text > span,
  .kd-hero__trust-item:hover .kd-hero__trust-service-text > span {
    opacity: 1;
    transform: none;
  }

  .kd-hero__trust-item:hover .kd-hero__trust-icon {
    color: var(--kd-navy-900);
    background: var(--kd-white);
    box-shadow:
      0 0 0 8px rgba(255, 255, 255, 0.16),
      0 18px 34px rgba(15, 29, 61, 0.20);
    transform: translateY(-4px) scale(1.04);
  }

  .kd-hero__trust-item:hover .kd-hero__trust-service {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }

  .kd-hero__btns .kd-btn--primary:hover {
    color: var(--kd-navy-900);
    background: var(--kd-white);
    border-color: var(--kd-white);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.24);
  }

  .kd-hero__btns .kd-btn--primary:hover .kd-btn__icon {
    background: rgba(15, 29, 61, 0.08);
  }

  .kd-hero__btns .kd-btn {
    width: auto;
    max-width: none;
    padding-left: 24px;
  }

  .kd-pathways { margin-top: -56px; }
}

@media (prefers-reduced-motion: reduce) {
  .kd-card-fill span::before {
    transition: none;
  }

  .kd-hero__h1-accent::after {
    animation: none;
    background-position: 0 0;
  }

  .kd-hero__pill-dot { animation: none; }
  .kd-hero__trust-item,
  .kd-hero__trust-icon svg,
  .kd-hero__trust-item:hover .kd-hero__trust-service,
  .kd-btn:hover,
  .kd-business-card:hover,
  .kd-network-card:hover,
  .kd-promise-stat:hover,
  .kd-cta-card:hover { transform: none; }

  .kd-hero__trust.is-ready .kd-hero__trust-icon {
    animation: none;
  }
}
