/* ==========================================================================
   Kgadi Greenleaf Publishers — Homepage
   Built to match the supplied reference design 1:1
   ========================================================================== */

:root {
  --green-950: #06401b;
  --green-topbar: #074c20;
  --green-nav: #0a5423;
  --green-active: #0f7117;
  --green-btn: #108510;
  --green-btn-hover: #0c6e0c;
  --green-cart: #136e1b;
  --green-label: #125532;
  --green-footer: #0b4430;
  --green-footer-dark: #073122;
  --green-bright: #1e8e1e;
  --green-price: #149a2b;
  --green-panel: #e3f3d6;
  --green-panel-dark: #0b5322;
  --yellow: #f2cd0c;
  --ink: #13293c;
  --ink-soft: #46535f;
  --line: #e4e8ec;
  --bg-hero: #fbfbfd;
  --radius-card: 10px;
  --container: 1240px;
  --shadow-card: 0 2px 10px rgba(16, 42, 25, 0.06);
  --shadow-pop: 0 10px 28px rgba(16, 42, 25, 0.16);
}

.kgp, .kgp *, .kgp *::before, .kgp *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  /* keep pre-reveal slide-in transforms from creating sideways scroll */
  overflow-x: hidden;
  overflow-x: clip;
}

.kgp {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.kgp img { display: block; max-width: 100%; height: auto; }
.kgp a { text-decoration: none; color: inherit; }
.kgp ul { list-style: none; }

.kgp .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Top bar
   ========================================================================== */

.kgp .topbar {
  background: var(--green-topbar);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
}

.kgp .topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 16px;
}

.kgp .topbar__features {
  display: flex;
  align-items: center;
  gap: 22px;
}

.kgp .topbar__features li {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.kgp .topbar__features svg { width: 16px; height: 16px; flex: none; }

.kgp .topbar__sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.35);
}

.kgp .topbar__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.kgp .topbar__phone svg { width: 20px; height: 20px; }
.kgp .topbar__phone:hover { color: var(--yellow); }

/* ==========================================================================
   Header
   ========================================================================== */

.kgp .header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.kgp .header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.kgp .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.kgp .brand__icon { width: 54px; height: auto; }

.kgp .brand__text { display: flex; flex-direction: column; line-height: 1.15; }

.kgp .brand__name {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--green-bright);
  letter-spacing: -0.01em;
}

.kgp .brand__sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.18em;
}

.kgp .search {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}

.kgp .search__input {
  width: 100%;
  height: 46px;
  border: 1.5px solid #dfe4e9;
  border-radius: 999px;
  padding: 0 56px 0 22px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.kgp .search__input::placeholder { color: #9aa5af; }
.kgp .search__input:focus {
  border-color: var(--green-btn);
  box-shadow: 0 0 0 4px rgba(16, 133, 16, 0.1);
}

.kgp .search__btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--green-btn);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.kgp .search__btn svg { width: 17px; height: 17px; }
.kgp .search__btn:hover { background: var(--green-btn-hover); transform: translateY(-50%) scale(1.07); }
.kgp .search__btn:active { transform: translateY(-50%) scale(0.95); }

.kgp .header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: none;
}

.kgp .h-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s ease;
}

.kgp .h-action svg { width: 24px; height: 24px; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.kgp .h-action:hover { color: var(--green-bright); }
.kgp .h-action:hover svg { transform: translateY(-3px); }

.kgp .h-action__sep { width: 1px; height: 34px; background: var(--line); }

.kgp .cart-wrap { position: relative; display: inline-flex; }

.kgp .cart-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
  animation: badge-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s backwards;
}

@keyframes badge-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* Hamburger (mobile only) */
.kgp .nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.kgp .nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--green-nav);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.kgp .nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.kgp .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.kgp .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================================================
   Main navigation
   ========================================================================== */

.kgp .nav { background: var(--green-nav); }

@media (min-width: 861px) {
  .kgp .nav {
    position: sticky;
    top: 0;
    z-index: 90;
    transition: box-shadow 0.3s ease;
  }

  .kgp .nav.is-stuck { box-shadow: 0 6px 20px rgba(7, 40, 20, 0.28); }
}

.kgp .nav__list {
  display: flex;
  align-items: stretch;
}

.kgp .nav__list > li { position: relative; }

.kgp .nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 17px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.kgp .nav__link::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.kgp .nav__link:hover::after { transform: scaleX(1); }
.kgp .nav__link.is-active::after { display: none; }

.kgp .nav__link svg { width: 15px; height: 15px; }
.kgp .nav__link .chev { width: 13px; height: 13px; opacity: 0.9; transition: transform 0.2s ease; }

.kgp .nav__link:hover { background: rgba(255, 255, 255, 0.1); }
.kgp .nav__link.is-active { background: var(--green-active); }

.kgp .has-sub:hover .chev { transform: rotate(180deg); }

/* Dropdowns */
.kgp .sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-pop);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transform-origin: top center;
  transition: opacity 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
              visibility 0.22s;
  z-index: 60;
}

.kgp .has-sub:hover > .sub,
.kgp .has-sub:focus-within > .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.kgp .sub a {
  display: block;
  padding: 9px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.2s ease;
}

.kgp .sub a:hover {
  background: #eef7ee;
  color: var(--green-bright);
  padding-left: 26px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.kgp .hero {
  position: relative;
  background: var(--bg-hero);
  overflow: hidden;
}

.kgp .hero__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 440px;
  padding-top: 34px;
  padding-bottom: 110px;
}

.kgp .hero__copy { flex: 0 0 44%; max-width: 44%; position: relative; z-index: 2; }

.kgp .hero__title {
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.kgp .hero__title span { display: block; }

.kgp .hero__line1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); color: var(--ink); }
.kgp .hero__line2 { font-size: clamp(3.4rem, 6.6vw, 5.3rem); color: var(--green-bright); margin: 2px 0; }
.kgp .hero__line3 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); color: var(--ink); }

.kgp .hero__sub {
  margin-top: 18px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.kgp .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.kgp .btn:active { transform: translateY(0) scale(0.96); }

.kgp .btn--hero {
  margin-top: 26px;
  background: var(--green-btn);
  color: #fff;
  font-size: 1.02rem;
  padding: 14px 36px;
  border-radius: 999px;
}

.kgp .btn--hero:hover {
  background: var(--green-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(16, 133, 16, 0.28);
}

.kgp .btn__arrow {
  font-size: 1.15em;
  line-height: 1;
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kgp .btn--hero:hover .btn__arrow { transform: translateX(5px); }

.kgp .hero__media {
  flex: 1;
  position: relative;
  z-index: 1;
  align-self: flex-end;
  margin-bottom: -80px;
}

.kgp .hero__media img { width: 100%; max-width: 690px; margin-left: auto; }

.kgp .hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
  line-height: 0;
}

.kgp .hero__wave svg { width: 100%; height: 110px; display: block; }

/* ==========================================================================
   Sections / titles
   ========================================================================== */

.kgp .section { padding: 58px 0; }
.kgp .section--categories { background: #fff; padding-bottom: 46px; }
.kgp .section--bestsellers { background: #fdfdfe; padding-top: 46px; }

.kgp .section__title {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: center;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 800;
  color: #143a21;
  letter-spacing: -0.01em;
  margin-bottom: 34px;
}

.kgp .section__title::before,
.kgp .section__title::after {
  content: "";
  height: 2px;
  width: clamp(40px, 8vw, 110px);
  background: #d4dcd4;
  border-radius: 2px;
}

/* Title rule-lines grow in as the title reveals */
html.js .kgp .section__title::before,
html.js .kgp .section__title::after {
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s;
}

html.js .kgp .section__title.is-in::before,
html.js .kgp .section__title.is-in::after {
  width: clamp(40px, 8vw, 110px);
}

/* ==========================================================================
   Category grid
   ========================================================================== */

.kgp .cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.kgp .cat-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.kgp .cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-pop);
}

.kgp .cat-card img {
  width: 100%;
  aspect-ratio: 150 / 137;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.kgp .cat-card:hover img { transform: scale(1.07); }

.kgp .cat-card__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--green-label);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px 10px 9px 12px;
  flex: 1;
}

.kgp .cat-card__arrow {
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.6px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kgp .cat-card__arrow svg { width: 12px; height: 12px; }

.kgp .cat-card:hover .cat-card__arrow {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(4px);
}

/* ==========================================================================
   Product cards
   ========================================================================== */

.kgp .prod-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.kgp .prod-card {
  background: #fff;
  border: 1px solid #e9edf1;
  border-radius: var(--radius-card);
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.kgp .prod-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-pop);
}

.kgp .prod-card__media {
  width: 100%;
  height: 168px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.kgp .prod-card__media img {
  max-height: 168px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.kgp .prod-card:hover .prod-card__media img { transform: scale(1.06); }

.kgp .prod-card__name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.kgp .prod-card__name a:hover { color: var(--green-bright); }

.kgp .prod-card__price {
  margin: 8px 0 12px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-price);
}

.kgp .btn--cart {
  background: var(--green-cart);
  color: #fff;
  font-size: 0.82rem;
  padding: 10px 18px;
  border-radius: 8px;
  margin-top: auto;
}

.kgp .btn--cart svg { width: 16px; height: 16px; }

.kgp .btn--cart:hover {
  background: var(--green-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(19, 110, 27, 0.25);
}

.kgp .btn--cart:hover svg { animation: cart-nudge 0.5s ease; }

@keyframes cart-nudge {
  0%, 100% { transform: translateX(0) rotate(0); }
  35% { transform: translateX(-2px) rotate(-7deg); }
  70% { transform: translateX(2px) rotate(5deg); }
}

/* ==========================================================================
   Why shop with us
   ========================================================================== */

.kgp .section--why { padding-top: 16px; padding-bottom: 64px; }

.kgp .why {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.kgp .why__panel {
  flex: 1;
  background: var(--green-panel);
  border-radius: 18px;
  padding: 30px 42px 34px;
}

.kgp .why__title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: #143a21;
  margin-bottom: 24px;
}

.kgp .why__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kgp .why__list li:not(.why__sep) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  line-height: 1.3;
}

.kgp .why__list svg {
  width: 38px;
  height: 38px;
  color: var(--green-nav);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kgp .why__list li:not(.why__sep):hover svg { transform: translateY(-4px) scale(1.08); }

.kgp .why__sep {
  width: 1px;
  align-self: stretch;
  background: #c3d8b8;
}

.kgp .why__tagline {
  flex: 0 0 310px;
  background: var(--green-panel-dark);
  border-radius: 0 18px 18px 0;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 26px 26px 60px;
  color: #fff;
}

.kgp .why__tagline p {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.kgp .why__underline { width: 150px; margin-top: 6px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.kgp .footer { background: var(--green-footer); color: #fff; }

.kgp .footer__main {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 160% at 50% -40%, #10573d 0%, var(--green-footer) 60%);
}

.kgp .footer__img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 290px;
  max-width: 34vw;
  pointer-events: none;
}

.kgp .footer__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 44px;
  padding-bottom: 44px;
}

.kgp .footer__spacer { flex: 0 0 240px; }

.kgp .footer__center {
  flex: 1;
  text-align: center;
}

.kgp .footer__brand {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.kgp .footer__tag {
  font-style: italic;
  font-weight: 500;
  font-size: 0.98rem;
  color: #d5e5da;
  margin-top: 4px;
}

.kgp .footer__site {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  background: var(--yellow);
  color: #123a1d;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 26px;
  border-radius: 999px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.kgp .footer__site svg { width: 19px; height: 19px; transition: transform 0.4s ease; }
.kgp .footer__site:hover { transform: translateY(-2px); filter: brightness(1.05); }
.kgp .footer__site:hover svg { transform: rotate(25deg); }

.kgp .footer__social {
  flex: 0 0 auto;
  text-align: center;
}

.kgp .footer__social p {
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 14px;
}

.kgp .social-row { display: flex; gap: 12px; }

.kgp .social-row a {
  width: 40px;
  height: 40px;
  border: 1.6px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
              transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kgp .social-row a:hover { transform: translateY(-4px); }

.kgp .social-row svg { width: 19px; height: 19px; }

.kgp .social-row a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #123a1d;
}

.kgp .footer__bottom {
  background: var(--green-footer-dark);
  font-size: 0.8rem;
  color: #b9cfc2;
}

.kgp .footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 13px;
  padding-bottom: 13px;
}

.kgp .footer__contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.kgp .footer__contact a { transition: color 0.2s ease; }
.kgp .footer__contact a:hover { color: var(--yellow); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1120px) {
  .kgp .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .kgp .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .kgp .h-action span:not(.cart-wrap):not(.cart-badge) { display: none; }
  .kgp .h-action { gap: 0; }
  .kgp .why { flex-direction: column; }
  .kgp .why__tagline {
    flex: none;
    clip-path: none;
    margin-left: 0;
    margin-top: 16px;
    border-radius: 18px;
    padding: 24px;
  }
}

@media (max-width: 860px) {
  .kgp .topbar__features li:nth-child(n+2) { display: none; }

  .kgp .header__inner { flex-wrap: wrap; gap: 14px; }
  .kgp .search { order: 3; flex-basis: 100%; max-width: none; }
  .kgp .header__actions { margin-left: auto; }
  .kgp .nav-toggle { display: flex; }

  /* Mobile nav panel — animated slide-down */
  .kgp .nav {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .kgp .nav.is-open {
    max-height: 85vh;
    overflow-y: auto;
  }

  /* Menu items cascade in when the panel opens */
  .kgp .nav__list > li {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .kgp .nav.is-open .nav__list > li { opacity: 1; transform: none; }

  .kgp .nav.is-open .nav__list > li:nth-child(1) { transition-delay: 0.05s; }
  .kgp .nav.is-open .nav__list > li:nth-child(2) { transition-delay: 0.09s; }
  .kgp .nav.is-open .nav__list > li:nth-child(3) { transition-delay: 0.13s; }
  .kgp .nav.is-open .nav__list > li:nth-child(4) { transition-delay: 0.17s; }
  .kgp .nav.is-open .nav__list > li:nth-child(5) { transition-delay: 0.21s; }
  .kgp .nav.is-open .nav__list > li:nth-child(6) { transition-delay: 0.25s; }
  .kgp .nav.is-open .nav__list > li:nth-child(7) { transition-delay: 0.29s; }
  .kgp .nav.is-open .nav__list > li:nth-child(8) { transition-delay: 0.33s; }
  .kgp .nav.is-open .nav__list > li:nth-child(9) { transition-delay: 0.37s; }

  .kgp .nav__link::after { display: none; }

  .kgp .nav__list { flex-direction: column; }

  .kgp .nav__link {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: flex-start;
  }

  .kgp .has-sub .nav__link { justify-content: space-between; }

  .kgp .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: block;
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    transition: max-height 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), padding 0.4s ease;
  }

  .kgp .sub a { color: #e8f3ea; padding: 10px 34px; }
  .kgp .sub a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; padding-left: 40px; }

  .kgp .has-sub.is-open > .sub { max-height: 640px; padding: 4px 0; }
  .kgp .has-sub.is-open .chev { transform: rotate(180deg); }

  .kgp .hero__inner {
    flex-direction: column;
    padding-top: 30px;
    padding-bottom: 96px;
    min-height: 0;
    gap: 8px;
  }

  .kgp .hero__copy { flex: none; max-width: none; text-align: center; }
  .kgp .br-d { display: none; }
  .kgp .hero__media { align-self: center; margin-bottom: -60px; }

  .kgp .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .kgp .why__list { flex-wrap: wrap; row-gap: 22px; }
  .kgp .why__list li:not(.why__sep) { flex: 1 1 40%; }
  .kgp .why__sep:nth-of-type(4) { display: none; }
  .kgp .why__panel { padding: 26px 20px 30px; }

  .kgp .footer__img { display: none; }
  .kgp .footer__spacer { display: none; }
  .kgp .footer__inner { flex-direction: column; gap: 30px; }
  .kgp .footer__bottom-inner { justify-content: center; text-align: center; }
  .kgp .footer__contact { justify-content: center; }
}

@media (max-width: 560px) {
  .kgp .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kgp .section { padding: 44px 0; }
  .kgp .hero__sub { font-size: 0.95rem; }
  .kgp .topbar__inner { justify-content: center; }
}

/* ==========================================================================
   Motion system — scroll reveals & page transitions
   (active only when JS is available: html.js)
   ========================================================================== */

/* Page fade-in on load / fade-out on internal navigation */
html.js body { animation: page-in 0.5s ease both; }

@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

html.js body.page-leave {
  opacity: 0;
  transition: opacity 0.22s ease;
}

/* Reveal-on-scroll primitives */
html.js .kgp [data-rv] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--rv-delay, 0s);
}

html.js .kgp [data-rv="left"] { transform: translateX(-36px); }
html.js .kgp [data-rv="right"] { transform: translateX(36px); }
html.js .kgp [data-rv="zoom"] { transform: scale(0.94); }

html.js .kgp [data-rv].is-in {
  opacity: 1;
  transform: none;
}

/* Hero image gets a soft reveal + parallax hook */
.kgp .hero__media img {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .kgp * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  html.js .kgp [data-rv] { opacity: 1 !important; transform: none !important; }
  html.js body { animation: none !important; opacity: 1 !important; }
}


/* ==========================================================================
   WordPress-specific adjustments
   ========================================================================== */

/* Keep the sticky nav below the WP admin bar when logged in */
body.admin-bar .kgp .nav { top: 32px; }

/* Neutralise theme/plugin link styling inside the Kgadi scope */
.kgp a:hover { text-decoration: none; }
