/* ==========================================================================
   JK International - Site-wide polish & responsive layer
   Loaded last on every page. Fixes legacy float/overflow problems and
   modernises shared sections without touching the older stylesheets.
   ========================================================================== */

/* --- 1. Layout safety ---------------------------------------------------- */

/* The legacy layout floats almost every block; make sure the footer and
   anything after the main content always sits below it. */
.jk-footer,
.container-fluid:has(> .row > .jk-footer) {
  clear: both;
}

/* The outer page wrapper has no padding, so its .row's -15px margins pushed
   every section 15px past both screen edges. */
body > .container-fluid.pr-0,
body > .container-fluid.pl-0 {
  padding-left: 0;
  padding-right: 0;
}

body > .container-fluid.pr-0 > .row,
body > .container-fluid.pl-0 > .row {
  margin-left: 0;
  margin-right: 0;
}

img,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* --- 2. Design tokens ---------------------------------------------------- */
:root {
  --jkp-navy: #0c154a;
  --jkp-navy-2: #1b2671;
  --jkp-green: #16a34a;
  --jkp-green-2: #37ab32;
  --jkp-green-soft: #f0fdf4;
  --jkp-ink: #0f172a;
  --jkp-body: #475569;
  --jkp-muted: #64748b;
  --jkp-line: #e2e8f0;
  --jkp-bg: #f8fafc;
  --jkp-radius: 16px;
  --jkp-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --jkp-shadow-hover: 0 2px 6px rgba(15, 23, 42, 0.06), 0 18px 40px rgba(15, 23, 42, 0.12);
  --jkp-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 3. Accessibility & interaction basics ------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(22, 163, 74, 0.55) !important;
  outline-offset: 2px;
}

::selection {
  background: rgba(55, 171, 50, 0.25);
}

@media (pointer: coarse) {
  .jk-chip-btn {
    min-height: 36px;
    padding: 6px 14px !important;
    font-size: 13px !important;
  }
}

/* Small labels: keep them readable (were 10-11px) */
.section-tag,
.section-label-tag,
.product-tag-badge,
.product-cat-tag,
.division-card-badge,
.footer-trust-tag,
.hero-slide-label,
.jk-quote-panel-tag {
  font-size: 12px !important;
  letter-spacing: 0.6px;
}

/* --- 4. Mobile navigation: collapsed accordion submenus ------------------ */
@media (max-width: 991px) {
  /* Legacy "#navbar ul { display:inline-block !important }" forced every
     submenu open; the mobile menu became a 40-item wall. */
  .header #navbar .dropdown-menu {
    display: none !important;
  }

  .header #navbar .dropdown.open > .dropdown-menu {
    display: block !important;
    animation: jkp-drop 0.25s var(--jkp-ease);
  }

  .header #navbar .dropdown-menu > li > a {
    padding: 11px 12px !important;
    font-size: 14.5px !important;
  }

  .header #navbar ul.navbar-nav > li > a {
    min-height: 52px;
  }
}

@keyframes jkp-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* --- 5. Home hero: headline must fit small phones ------------------------ */
@media (max-width: 767px) {
  .hero-slide .hero-slide-headline,
  .hero-slide-headline {
    font-size: clamp(30px, 9.2vw, 40px) !important;
    line-height: 1.12 !important;
    overflow-wrap: break-word;
  }
}

/* --- 6. Shared card motion ----------------------------------------------- */
.characteristics-wrap,
.basket-wrap,
.highlight,
.product-img-frame,
.jk-related a {
  transition: transform 0.35s var(--jkp-ease), box-shadow 0.35s var(--jkp-ease),
    border-color 0.25s ease, background-color 0.25s ease;
}

@media (hover: hover) {
  .characteristics-wrap:hover,
  .highlight:hover {
    transform: translateY(-4px);
    box-shadow: var(--jkp-shadow-hover);
  }

  .product-img-frame {
    overflow: hidden;
  }

  .product-img-frame img {
    transition: transform 0.8s var(--jkp-ease);
  }

  .product-img-frame:hover img {
    transform: scale(1.06);
  }
}

/* --- 7. About page ------------------------------------------------------- */
.timeline-wrap {
  margin-top: 60px;
  padding-top: 80px;
  padding-bottom: 80px;
  background: var(--jkp-bg);
}

.timeline {
  padding: 56px 48px;
  border-radius: 24px;
  box-shadow: var(--jkp-shadow);
  background-size: 360px auto;
}

.history-title {
  float: none;
  display: block;
  font-weight: 700;
  color: var(--jkp-navy);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
  background: none;
  margin: 0 auto 14px;
}

.history-subtitle {
  float: none;
  display: block;
  max-width: 720px;
  margin: 0 auto 8px;
  padding: 0;
  color: var(--jkp-muted);
  font-size: 16px;
  line-height: 1.7;
}

.timeline-centered {
  clear: both;
  margin-top: 56px;
}

.timeline-centered:before {
  width: 3px;
  margin-left: -1.5px;
  background: linear-gradient(180deg, #21a9e1 0%, #00a651 100%);
  opacity: 0.35;
}

.timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon {
  box-shadow: 0 0 0 6px #fff, 0 6px 16px rgba(15, 23, 42, 0.15);
}

.timeline-centered .timeline-entry .timeline-entry-inner .timeline-label {
  background: #fff;
  border: 1px solid var(--jkp-line);
  border-radius: 14px;
  box-shadow: var(--jkp-shadow);
  padding: 22px 24px;
  transition: transform 0.35s var(--jkp-ease), box-shadow 0.35s var(--jkp-ease);
}

.timeline-centered .timeline-entry .timeline-entry-inner .timeline-label:hover {
  transform: translateY(-3px);
  box-shadow: var(--jkp-shadow-hover);
}

.timeline-centered .timeline-entry .timeline-entry-inner .timeline-label:after {
  border-color: transparent #fff transparent transparent;
  top: 14px;
}

.timeline-label h1 {
  font-size: 30px;
  font-weight: 800;
  color: var(--jkp-navy);
  margin-bottom: 8px;
}

.timeline-centered .timeline-entry .timeline-entry-inner .timeline-label p {
  font-family: 'Poppins', sans-serif;
  color: var(--jkp-body);
  font-size: 14.5px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .timeline-wrap {
    margin-top: 32px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .timeline {
    padding: 32px 18px;
    background-image: none;
  }

  /* Single rail on the left instead of a squeezed two-column layout */
  .timeline-centered {
    margin-top: 32px;
  }

  .timeline-centered:before {
    left: 19px;
    margin-left: 0;
  }

  .timeline-centered .timeline-entry,
  .timeline-centered .timeline-entry.left-aligned {
    float: none;
    width: 100%;
    margin-bottom: 22px;
  }

  .timeline-centered .timeline-entry .timeline-entry-inner,
  .timeline-centered .timeline-entry.left-aligned .timeline-entry-inner {
    margin: 0;
  }

  .timeline-centered .timeline-entry.left-aligned .timeline-entry-inner .timeline-icon {
    float: left;
  }

  .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label,
  .timeline-centered .timeline-entry.left-aligned .timeline-entry-inner .timeline-label {
    margin-left: 58px;
    margin-right: 0;
    padding: 16px 18px;
  }

  .timeline-centered .timeline-entry.left-aligned .timeline-entry-inner .timeline-label:after {
    left: 0;
    right: auto;
    margin-left: -9px;
    margin-right: 0;
    transform: none;
  }

  .timeline-label h1 {
    font-size: 24px;
  }
}

/* Vision & mission */
.vision {
  float: none;
  clear: both;
  display: block;
  margin-bottom: 0;
  padding: 96px 0;
  background-color: var(--jkp-green-2);
  background-image:
    linear-gradient(90deg, #2f9a2b 0%, #37ab32 58%, rgba(55, 171, 50, 0.82) 78%, rgba(55, 171, 50, 0.35) 100%),
    url(../images/vision.png),
    linear-gradient(135deg, #2f9a2b 0%, #37ab32 55%, #4cc246 100%);
  background-size: cover, auto 100%, cover;
  background-position: center, right center, center;
  background-repeat: no-repeat;
}

.vision > .container > .row {
  display: flex;
  flex-wrap: wrap;
  row-gap: 32px;
}

.vision .vision-full-wide {
  float: none;
}

.vision h1 {
  float: none;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  background-size: 34px auto;
  padding-left: 48px;
  padding-bottom: 6px;
  margin: 0 0 14px;
}

.about-text-desc {
  float: none;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  text-shadow: none;
  max-width: 34em;
  margin: 0;
}

.vision .col-md-6 + .col-md-6 {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 40px;
}

@media (max-width: 991px) {
  .vision {
    padding: 56px 0;
    background-image: linear-gradient(135deg, #2f9a2b 0%, #37ab32 55%, #4cc246 100%);
  }

  .vision .col-md-6 + .col-md-6 {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-left: 15px;
    padding-top: 28px;
  }

  .about-text-desc {
    font-size: 16px;
  }
}

/* ERP section */
.glasserp {
  float: none;
  clear: both;
  margin-bottom: 0;
  padding-top: 88px;
  padding-bottom: 88px;
  background: #fff;
}

.glasserp > .row > .container > .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.glasserp h1 {
  float: none;
  color: var(--jkp-navy);
  font-size: clamp(28px, 3.4vw, 38px);
}

ul.erp-listing li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--jkp-body);
  margin-bottom: 18px;
  padding: 2px 0 2px 46px;
  background-size: 28px auto;
}

@media (max-width: 991px) {
  .glasserp {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .erp-img {
    margin-top: 24px;
  }
}

/* --- 8. Product detail pages (toughened, laminated, ...) ----------------- */
.product-basket {
  padding-top: 56px;
  padding-bottom: 64px;
  background-size: auto 340px;
}

.basket-white-wrap {
  border-radius: 24px;
  box-shadow: var(--jkp-shadow);
  padding: 48px 40px 36px;
  margin-top: 24px !important;
}

.basket-white-wrap > .row > div > h1,
.basket-white-wrap > .row > h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  color: var(--jkp-navy);
  letter-spacing: -0.5px;
  margin: 0 0 28px;
  padding: 0 15px;
  text-transform: none;
}

.basket-white-wrap .gallery-img,
.basket-white-wrap .tough-img {
  border-radius: 14px;
  box-shadow: var(--jkp-shadow);
  transition: transform 0.6s var(--jkp-ease), box-shadow 0.4s var(--jkp-ease);
}

@media (hover: hover) {
  .basket-white-wrap .gallery-img:hover,
  .basket-white-wrap .tough-img:hover {
    transform: scale(1.02);
    box-shadow: var(--jkp-shadow-hover);
  }
}

.apply-wrap h5 {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--jkp-body);
  max-width: 78ch;
  margin: 8px 0 24px;
}

.apply-wrap p {
  font-size: 15px;
  line-height: 1.65;
  border-radius: 12px;
  padding: 16px 20px 16px 52px;
  position: relative;
  background: linear-gradient(135deg, #2f9a2b, #37ab32);
  box-shadow: 0 8px 20px rgba(55, 171, 50, 0.25);
}

.apply-wrap p::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.basket-white-wrap .apply-wrap h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--jkp-navy);
  margin: 12px 0 18px;
}

.apply-wrap > .col-md-12 > .row {
  display: flex;
  flex-wrap: wrap;
}

.apply-wrap > .col-md-12 > .row > [class*="col-"] {
  display: flex;
}

.characteristics-wrap {
  width: 100%;
  min-height: 0;
  border-radius: 16px;
  padding: 24px 24px 22px;
  background-color: var(--jkp-navy-2);
  background-image: url(../images/about-listing-white.png),
    linear-gradient(145deg, #1b2671 0%, #0c154a 100%);
  background-size: 22px auto, cover;
  background-position: right 18px top 18px, center;
  background-repeat: no-repeat;
}

.characteristics-title {
  font-size: 19px;
  font-weight: 600;
  padding-right: 30px;
}

.characteristics-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 767px) {
  .product-basket {
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .basket-white-wrap {
    padding: 28px 18px 18px;
    border-radius: 18px;
    margin-left: 12px !important;
    margin-right: 12px !important;
    width: auto;
  }

  .basket-white-wrap .gallery-img,
  .basket-white-wrap .tough-img {
    height: 220px !important;
    width: 100%;
    object-fit: cover;
    margin-bottom: 14px;
  }

  .apply-wrap h5 {
    font-size: 15px;
    padding: 0;
  }

  .characteristics-wrap {
    margin-bottom: 14px;
  }
}

/* Related products strip (added on product pages) */
.jk-related {
  margin: 28px 0 8px;
  padding-top: 24px;
  border-top: 1px solid var(--jkp-line);
}

.jk-cta-band .jk-related h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--jkp-navy);
  margin: 0 0 14px;
}

.jk-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jk-related a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--jkp-line);
  background: #fff;
  color: var(--jkp-navy);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.jk-related a::after {
  content: "\2192";
  opacity: 0.5;
  transition: transform 0.25s var(--jkp-ease), opacity 0.25s ease;
}

.jk-related a:hover,
.jk-related a:focus-visible {
  border-color: var(--jkp-green);
  color: var(--jkp-green);
  background: var(--jkp-green-soft);
  text-decoration: none;
}

.jk-related a:hover::after {
  opacity: 1;
  transform: translateX(3px);
}

/* Call-to-action band (replaces the dead "Download Brochure" button) */
.jk-cta-band {
  clear: both;
  padding: 72px 0;
  background: var(--jkp-bg);
}

.jk-cta-band__card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px;
  border-radius: 24px;
  color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #233394 0%, #0c154a 55%, #070d33 100%);
  box-shadow: 0 24px 60px rgba(12, 21, 74, 0.25);
}

.jk-cta-band__card::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.35), transparent 65%);
  animation: jkp-float 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes jkp-float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, -30px) scale(1.12); }
}

.jk-cta-band__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
}

.jk-cta-band h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin: 14px 0 10px;
}

.jk-cta-band p {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  max-width: 46ch;
}

.jk-cta-band__actions {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jk-cta-band__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.25s var(--jkp-ease), background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.jk-cta-band__btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jk-cta-band__btn--wa svg {
  fill: currentColor;
  stroke: none;
}

.jk-cta-band__btn:hover,
.jk-cta-band__btn:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.jk-cta-band__btn--primary {
  background: #22c55e;
  border-color: #22c55e;
  color: #052e16;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.35);
}

.jk-cta-band__btn--primary:hover,
.jk-cta-band__btn--primary:focus-visible {
  background: #4ade80;
  border-color: #4ade80;
  color: #052e16;
}

@media (max-width: 767px) {
  .jk-cta-band {
    padding: 40px 0;
  }

  /* Swipeable chip row instead of a tall stack */
  .jk-related ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    margin: 0 -15px;
    padding: 2px 15px 10px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }

  .jk-related ul::-webkit-scrollbar {
    display: none;
  }

  .jk-related li {
    flex: none;
    scroll-snap-align: start;
  }

  .jk-related a {
    white-space: nowrap;
  }

  .jk-cta-band__card {
    grid-template-columns: 1fr;
    padding: 30px 22px;
    gap: 22px;
    border-radius: 20px;
  }
}

/* --- 9. "What we do" glass range grid ------------------------------------ */
.glass-mgn > .row,
.glass-mgn .row:has(> .basket-link) {
  display: flex;
  flex-wrap: wrap;
}

.basket-link {
  margin-bottom: 20px;
}

.basket-link > a {
  display: block;
  height: 100%;
  text-decoration: none !important;
}

.basket-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  min-height: 92px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--jkp-line);
  box-shadow: var(--jkp-shadow);
  font-size: 15px;
}

.basket-wrap > span {
  float: none !important;
  flex: none;
}

.basket-wrap > span img {
  width: 56px !important;
  height: 56px !important;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 !important;
}

.basket-wrap p {
  float: none !important;
  margin: 0 !important;
  text-align: left !important;
  color: var(--jkp-navy);
  font-weight: 600;
  line-height: 1.35;
}

.basket-wrap > div[style] {
  display: none;
}

@media (hover: hover) {
  .basket-link > a:hover .basket-wrap {
    transform: translateY(-3px);
    border-color: #bbf7d0;
    box-shadow: var(--jkp-shadow-hover);
  }
}

/* --- 10. Infrastructure page --------------------------------------------- */
.infrastructure {
  border-radius: 24px;
  box-shadow: var(--jkp-shadow);
  padding: 48px 40px 24px;
}

.infrastructure h1,
.infrastructure h2 {
  float: none;
  text-align: center;
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--jkp-navy);
  line-height: 1.2;
}

.infrastructure h5 {
  font-size: 16px;
  line-height: 1.7;
  color: var(--jkp-muted);
  max-width: 620px;
  float: none;
  margin: 0 auto 40px;
}

.highlight-row-mgn > .row,
.highlight-row-mgn .row {
  display: flex;
  flex-wrap: wrap;
}

.highlight-row-mgn [class*="col-"] {
  display: flex;
  margin-bottom: 20px;
}

.highlight {
  float: none;
  height: 100%;
  border-radius: 18px;
  padding: 30px 26px;
  background: linear-gradient(150deg, #1b2671 0%, #0c154a 100%);
  box-shadow: 0 12px 30px rgba(12, 21, 74, 0.18);
}

.highlight-image img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.18);
}

.highlight p {
  float: none;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

@media (max-width: 767px) {
  .infrastructure {
    padding: 30px 16px 10px;
    border-radius: 18px;
  }
}

/* --- 11. Reduced motion -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .jk-cta-band__card::before,
  .header #navbar .dropdown.open > .dropdown-menu {
    animation: none !important;
  }

  .characteristics-wrap,
  .basket-wrap,
  .highlight,
  .product-img-frame img,
  .jk-cta-band__btn,
  .timeline-centered .timeline-entry .timeline-entry-inner .timeline-label {
    transition: none !important;
    transform: none !important;
  }
}

.jk-range-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--jkp-navy);
  text-align: center;
  margin: 0 0 10px;
  padding: 0 15px;
}

.jk-range-sub {
  text-align: center;
  color: var(--jkp-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 32px;
  padding: 0 15px;
}

/* --- 12. Home catalogues: swipeable rows on phones ----------------------- */
@media (max-width: 767px) {
  .product-catalogue-section .row.cat-cards-grid-row:has(.cat-product-card),
  .product-catalogue-section .row.cat-cards-grid-row {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 15px;
    margin-left: -15px;
    margin-right: -15px;
    padding: 4px 15px 18px;
    gap: 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .product-catalogue-section .cat-cards-grid-row::-webkit-scrollbar {
    display: none;
  }

  .product-catalogue-section .row.cat-cards-grid-row > [class*="col-"] {
    flex: 0 0 82% !important;
    width: 82% !important;
    max-width: 82% !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    scroll-snap-align: start;
  }

  .product-catalogue-section .cat-product-card {
    height: 100%;
    margin-bottom: 0;
  }

  .product-catalogue-section .catalogue-header::after {
    content: "Swipe to browse \2192";
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--jkp-green);
    animation: jkp-nudge 1.8s ease-in-out infinite;
  }
}

@keyframes jkp-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .product-catalogue-section .catalogue-header::after {
    animation: none;
  }
}

@media (max-width: 767px) {
  .cat-product-footer .cat-btn-details,
  .cat-product-footer .cat-btn-enquire {
    white-space: nowrap;
    font-size: 13px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* --- 13. Long-form text blocks (About / Infrastructure) ------------------ */
.about-desc-content p,
.infrastructure-desc-content p,
.quality-desc-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--jkp-body);
}

.infrastructure-desc-content h1,
.quality-desc-content h1 {
  color: var(--jkp-navy);
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
}

.about-img img {
  border-radius: 18px;
  box-shadow: var(--jkp-shadow);
}

@media (max-width: 991px) {
  .about-desc-content,
  .infrastructure-desc-content,
  .quality-desc-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .about-desc-content p,
  .infrastructure-desc-content p,
  .quality-desc-content p {
    font-size: 15.5px;
  }
}

/* --- 14. Projects page --------------------------------------------------- */
.jk-page-intro {
  text-align: center;
  max-width: 680px;
  margin: 8px auto 32px;
  padding: 0 15px;
}

.jk-page-intro__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--jkp-green);
  background: rgba(74, 222, 128, 0.14);
  padding: 5px 14px;
  border-radius: 999px;
}

.jk-page-intro h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 800;
  color: var(--jkp-navy);
  margin: 12px 0 10px;
  line-height: 1.15;
}

.jk-page-intro p {
  color: var(--jkp-muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.projects-wrap {
  border-radius: 24px 24px 0 0;
  padding: 40px 35px 30px;
}

/* City tabs -> pill buttons */
#horizontalTab ul.resp-tabs-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 8px !important;
  padding: 0;
}

#horizontalTab ul.resp-tabs-list li {
  float: none !important;
  margin: 0 !important;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  border: 1px solid var(--jkp-line) !important;
  background: #fff !important;
  color: var(--jkp-navy) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  min-width: 0 !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#horizontalTab ul.resp-tabs-list li:hover {
  border-color: var(--jkp-green) !important;
  color: var(--jkp-green) !important;
  transform: translateY(-1px);
}

#horizontalTab ul.resp-tabs-list li.resp-tab-active {
  background: var(--jkp-navy) !important;
  border-color: var(--jkp-navy) !important;
  color: #fff !important;
}

#horizontalTab .resp-tabs-container {
  border: 0 !important;
  background: transparent !important;
}

/* Mobile accordion headers */
#horizontalTab h2.resp-accordion {
  margin: 0 0 10px !important;
  padding: 15px 18px !important;
  border: 1px solid var(--jkp-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--jkp-navy) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

#horizontalTab h2.resp-accordion.resp-tab-active {
  background: var(--jkp-navy) !important;
  border-color: var(--jkp-navy) !important;
  color: #fff !important;
}

#horizontalTab h2.resp-accordion.resp-tab-active span.resp-arrow {
  border-bottom-color: #fff !important;
}

#horizontalTab .resp-tab-content {
  border: 0 !important;
  padding: 4px 0 16px !important;
}

/* Project photos */
.project-lightbox a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--jkp-shadow);
}

.project-lightbox a img.example-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.8s var(--jkp-ease);
}

.project-lightbox a:hover img.example-image {
  transform: scale(1.06);
}

.project-title {
  z-index: 2;
  border-radius: 0 0 14px 14px;
  font-size: 14px;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(7, 13, 51, 0.85));
}

.trustedclients {
  font-size: clamp(26px, 4vw, 38px) !important;
  font-weight: 700;
  color: var(--jkp-navy);
  line-height: 1.2;
  margin-bottom: 40px !important;
}

@media (max-width: 767px) {
  .projects-wrap {
    padding: 28px 16px 16px;
    border-radius: 20px 20px 0 0;
  }

  /* easy-responsive-tabs switches to an accordion below 768px */
  #horizontalTab ul.resp-tabs-list {
    display: none !important;
  }

  .projects-wrap > .row,
  .project-lightbox,
  .project-lightbox > .row {
    float: none;
    margin-left: 0;
    margin-right: 0;
  }

  .project-lightbox div.mgn-bt {
    border-left-width: 0;
    border-right-width: 0;
    margin-bottom: 16px;
    width: 100%;
  }

  .jk-page-intro p {
    font-size: 15px;
  }
}

/* --- 15. Leadership: compact horizontal cards on phones ------------------ */
@media (max-width: 600px) {
  .leader-grid {
    max-width: none;
    gap: 14px;
    margin-top: 28px;
  }

  .leader-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    align-items: stretch;
  }

  .leader-photo {
    aspect-ratio: 3 / 4;
  }

  .leader-initials {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }

  .leader-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    border-top: 0;
    border-left: 3px solid var(--jk-green, #37ab32);
    padding: 16px 18px;
  }

  .leader-name {
    font-size: 18px;
  }

  .leader-role {
    font-size: 12px;
  }
}

/* --- 16. Contact page: regional order contacts --------------------------- */
.jk-regions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
  clear: both;
}

.jk-region {
  border: 1px solid var(--jkp-line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.jk-region__label {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--jkp-green) !important;
  margin: 0 0 8px !important;
  line-height: 1.4 !important;
}

.jk-region a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--jkp-navy);
  text-decoration: none;
  word-break: break-word;
}

.jk-region a:hover {
  color: var(--jkp-green);
  text-decoration: none;
}

.jk-region svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: #94a3b8;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 480px) {
  .jk-regions {
    grid-template-columns: 1fr;
  }
}

/* --- 17. Home: manufacturing pillar cards -------------------------------- */
.jk-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.jk-pillar {
  --accent: #4ade80;
  --accent-rgb: 74, 222, 128;
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px 24px 24px;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  text-decoration: none !important;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--accent-rgb), 0.14), transparent 45%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 20px 40px rgba(2, 6, 23, 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.45s var(--jkp-ease), border-color 0.3s ease, box-shadow 0.45s var(--jkp-ease);
}

.jk-pillar--glass { --accent: #38bdf8; --accent-rgb: 56, 189, 248; }
.jk-pillar--alu   { --accent: #a5b4fc; --accent-rgb: 165, 180, 252; }
.jk-pillar--upvc  { --accent: #4ade80; --accent-rgb: 74, 222, 128; }
.jk-pillar--lab   { --accent: #fbbf24; --accent-rgb: 251, 191, 36; }

/* Accent line that draws across the top on hover */
.jk-pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0.25);
  opacity: 0.6;
  transition: transform 0.6s var(--jkp-ease), opacity 0.3s ease;
}

.jk-pillar__num {
  position: absolute;
  top: 6px;
  right: 16px;
  z-index: -1;
  font-size: 92px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -4px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  transition: -webkit-text-stroke-color 0.4s ease, transform 0.6s var(--jkp-ease);
}

.jk-pillar__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.18);
  margin-bottom: 20px;
  transition: transform 0.5s var(--jkp-ease), background 0.3s ease;
}

.jk-pillar__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jk-pillar__title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
}

.jk-pillar__desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.72);
  margin: 0 0 18px;
}

.jk-pillar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.jk-pillar__tags li {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.jk-pillar__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.jk-pillar__cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--jkp-ease);
}

.jk-pillar:hover,
.jk-pillar:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 28px 60px rgba(2, 6, 23, 0.4),
    0 0 0 1px rgba(var(--accent-rgb), 0.15);
}

.jk-pillar:hover::before,
.jk-pillar:focus-visible::before {
  transform: scaleX(1);
  opacity: 1;
}

.jk-pillar:hover .jk-pillar__icon {
  transform: translateY(-2px) rotate(-6deg) scale(1.06);
  background: rgba(var(--accent-rgb), 0.2);
}

.jk-pillar:hover .jk-pillar__num {
  -webkit-text-stroke-color: rgba(var(--accent-rgb), 0.45);
  transform: translateY(-4px);
}

.jk-pillar:hover .jk-pillar__cta svg {
  transform: translateX(4px);
}

@media (max-width: 1199px) {
  .jk-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .jk-pillars {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .jk-pillar {
    padding: 22px 20px 20px;
  }

  .jk-pillar__num {
    font-size: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jk-pillar,
  .jk-pillar::before,
  .jk-pillar__icon,
  .jk-pillar__num,
  .jk-pillar__cta svg {
    transition: none !important;
  }

  .jk-pillar:hover,
  .jk-pillar:hover .jk-pillar__icon,
  .jk-pillar:hover .jk-pillar__num {
    transform: none;
  }
}
