/* ==========================================================================
   Kalpataru Pipe & Fittings — inner page styles
   Shared by every page except index.html. Builds on the theme's style.css,
   coloring.css and colors/scheme-01.css (brand red #D6080A).
   ========================================================================== */

/* ---------- base overrides carried over from index.html ---------- */
:root {
    --logo-width: 185px;
    --logo-footer-width: 185px;
    --kp-red: #D6080A;
    --kp-red-dark: #A30610;
    --kp-ink: #1A1A1A;
    --kp-ink-2: #242422;
    --kp-line: #E7E4E1;
    --kp-soft: #F6F5F4;
    --kp-radius: 16px;
    --kp-shadow: 0 14px 40px rgba(26, 26, 26, .08);
    --kp-shadow-lg: 0 24px 60px rgba(26, 26, 26, .14);
}

header.header-light { background: #ffffff; }

footer .logo-footer {
    background: #fff;
    padding: 12px 16px;
    border-radius: 10px;
}

html { scroll-behavior: smooth; }
main [id] { scroll-margin-top: 120px; }

#mainmenu li a.kp-current { color: var(--kp-red) !important; }

/* ==========================================================================
   Page hero + breadcrumb
   ========================================================================== */
.kp-hero {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 90px 0 110px;
    background-color: var(--kp-ink);
    background-image: var(--hero-img);
    background-size: cover;
    background-position: center;
    color: #fff;
    isolation: isolate;
}

.kp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(100deg, rgba(20, 20, 20, .96) 0%, rgba(20, 20, 20, .88) 42%, rgba(20, 20, 20, .55) 70%, rgba(163, 6, 16, .55) 100%);
}

/* slow diagonal machining-line texture */
.kp-hero::after {
    content: "";
    position: absolute;
    inset: -50%;
    z-index: -1;
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 22px);
    animation: kp-drift 30s linear infinite;
}

@keyframes kp-drift {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(220px, 0, 0); }
}

.kp-hero .container { position: relative; z-index: 2; }

.kp-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    border-radius: 40px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
}

.kp-hero-tag i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--kp-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.kp-hero h1 {
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    margin-bottom: 16px;
}

.kp-hero h1 span { color: var(--kp-red); }

.kp-hero p.lead {
    color: rgba(255, 255, 255, .78);
    max-width: 640px;
    font-size: 16.5px;
    line-height: 1.75;
    margin-bottom: 26px;
}

.kp-crumb {
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 10px 20px;
    border-radius: 40px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: 14px;
    line-height: 1.4;
}

.kp-crumb li { display: inline-flex; align-items: center; color: #fff; font-weight: 500; }
.kp-crumb li a { color: rgba(255, 255, 255, .7); transition: color .25s; }
.kp-crumb li a:hover { color: #fff; }
.kp-crumb li + li::before {
    content: "\f054";
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    font-size: 9px;
    color: var(--kp-red);
    margin: 0 10px 0 6px;
}
.kp-crumb li:first-child a::before {
    content: "\f015";
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    margin-right: 7px;
    color: var(--kp-red);
}

/* spinning engineering rings on the right of the hero */
.kp-hero-rings {
    position: absolute;
    right: -120px;
    top: 50%;
    width: 520px;
    height: 520px;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.kp-hero-rings span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, .16);
    animation: kp-spin 40s linear infinite;
}

.kp-hero-rings span:nth-child(2) {
    inset: 70px;
    border: 2px solid rgba(214, 8, 10, .55);
    border-right-color: transparent;
    border-bottom-color: transparent;
    animation-duration: 12s;
    animation-direction: reverse;
}

.kp-hero-rings span:nth-child(3) {
    inset: 150px;
    border: 1px solid rgba(255, 255, 255, .22);
    animation-duration: 22s;
}

@keyframes kp-spin { to { transform: rotate(360deg); } }

/* animated red sweep along the bottom edge */
.kp-hero-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
    z-index: 3;
}

.kp-hero-bar::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    background: linear-gradient(90deg, transparent, var(--kp-red), transparent);
    animation: kp-sweep 3.5s ease-in-out infinite;
}

@keyframes kp-sweep {
    from { left: -35%; }
    to   { left: 100%; }
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.kp-page { padding: 90px 0; }
.kp-block { margin-bottom: 70px; }
.kp-block:last-child { margin-bottom: 0; }

.kp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--kp-red);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.kp-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--kp-red);
}

.kp-head {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 28px;
}

.kp-head .kp-num {
    font-size: 64px;
    line-height: .8;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(214, 8, 10, .45);
    flex-shrink: 0;
}

.kp-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0; line-height: 1.2; }
.kp-head p { margin: 6px 0 0; }

/* ==========================================================================
   Sidebar with toggles
   ========================================================================== */
.kp-sidebar { position: relative; }

@media (min-width: 992px) {
    .kp-sidebar-inner { position: sticky; top: 110px; }
}

.kp-side-box {
    background: #fff;
    border: 1px solid var(--kp-line);
    border-radius: var(--kp-radius);
    overflow: hidden;
    box-shadow: var(--kp-shadow);
    margin-bottom: 24px;
}

.kp-side-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 18px 22px;
    border: 0;
    background: var(--kp-ink);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    position: relative;
}

.kp-side-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--kp-red);
}

.kp-side-title i.kp-side-caret { display: none; transition: transform .3s; }

.kp-cat, .kp-sub { list-style: none; margin: 0; padding: 0; }
.kp-cat { padding: 10px 0; }

.kp-cat-item { border-bottom: 1px solid var(--kp-line); }
.kp-cat > .kp-cat-item:last-child { border-bottom: 0; }

.kp-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px 0 22px;
    position: relative;
    transition: background .25s;
}

.kp-cat-head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--kp-red);
    transform: scaleY(0);
    transition: transform .3s;
}

.kp-cat-head:hover { background: var(--kp-soft); }
.kp-cat-head:hover::before,
.kp-cat-item.active > .kp-cat-head::before { transform: scaleY(1); }

.kp-cat-head > a {
    flex: 1;
    padding: 13px 0;
    color: var(--kp-ink-2);
    font-weight: 500;
    font-size: 14.5px;
    line-height: 1.4;
}

.kp-cat-item.active > .kp-cat-head > a,
.kp-cat-head > a:hover { color: var(--kp-red); }

.kp-toggle {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--kp-line);
    background: #fff;
    position: relative;
    cursor: pointer;
    transition: background .25s, border-color .25s;
}

.kp-toggle::before,
.kp-toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 11px;
    height: 2px;
    margin: -1px 0 0 -5.5px;
    background: var(--kp-ink-2);
    transition: transform .3s, background .25s;
}

.kp-toggle::after { transform: rotate(90deg); }

.kp-cat-item.open > .kp-cat-head .kp-toggle { background: var(--kp-red); border-color: var(--kp-red); }
.kp-cat-item.open > .kp-cat-head .kp-toggle::before,
.kp-cat-item.open > .kp-cat-head .kp-toggle::after { background: #fff; }
.kp-cat-item.open > .kp-cat-head .kp-toggle::after { transform: rotate(0deg); }

/* smooth height animation without measuring: grid rows 0fr -> 1fr */
.kp-sub-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s ease;
}

.kp-cat-item.open > .kp-sub-wrap { grid-template-rows: 1fr; }
.kp-sub-wrap > .kp-sub { overflow: hidden; min-height: 0; }

.kp-sub { background: var(--kp-soft); }
.kp-sub > li:first-child { padding-top: 6px; }
.kp-sub > li:last-child { padding-bottom: 8px; }

.kp-sub a {
    display: block;
    padding: 7px 18px 7px 40px;
    font-size: 13.5px;
    line-height: 1.45;
    color: #5a5a5a;
    position: relative;
    transition: color .2s, padding-left .25s;
}

.kp-sub a::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    border: 1.5px solid var(--kp-red);
    transition: background .2s;
}

.kp-sub a:hover,
.kp-sub a.active { color: var(--kp-red); padding-left: 46px; }
.kp-sub a:hover::before,
.kp-sub a.active::before { background: var(--kp-red); }

/* second level (valve families inside "Valves") */
.kp-sub .kp-cat-item { border-bottom: 0; }
.kp-sub .kp-cat-head { padding-left: 24px; }
.kp-sub .kp-cat-head::before { display: none; }
.kp-sub .kp-cat-head > a { padding: 8px 0 8px 16px; font-size: 13.5px; font-weight: 600; position: relative; }
.kp-sub .kp-cat-head > a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 2px;
    background: var(--kp-red);
}
.kp-sub .kp-toggle { width: 24px; height: 24px; }
.kp-sub .kp-toggle::before, .kp-sub .kp-toggle::after { width: 9px; margin-left: -4.5px; }
.kp-sub .kp-sub { background: #EFEDEB; }
.kp-sub .kp-sub a { padding-left: 58px; }
.kp-sub .kp-sub a::before { left: 44px; }
.kp-sub .kp-sub a:hover, .kp-sub .kp-sub a.active { padding-left: 62px; }

/* sidebar enquiry card */
.kp-side-cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--kp-radius);
    padding: 30px 26px;
    color: #fff;
    background: linear-gradient(150deg, var(--kp-red) 0%, var(--kp-red-dark) 100%);
    margin-bottom: 24px;
}

.kp-side-cta::after {
    content: "\f013";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-size: 150px;
    color: rgba(255, 255, 255, .08);
    animation: kp-spin 25s linear infinite;
}

.kp-side-cta h4 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.kp-side-cta p { color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }

.kp-side-cta a.kp-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.kp-side-cta a.kp-phone i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kp-side-cta .kp-btn-light { position: relative; z-index: 1; margin-top: 8px; }

.kp-side-download {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--kp-radius);
    background: var(--kp-ink);
    color: #fff;
    transition: transform .3s, box-shadow .3s;
}

.kp-side-download:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--kp-shadow-lg); }
.kp-side-download i { font-size: 30px; color: var(--kp-red); }
.kp-side-download strong { display: block; font-size: 15px; line-height: 1.3; }
.kp-side-download small { color: rgba(255, 255, 255, .6); font-size: 12.5px; }

@media (max-width: 991px) {
    .kp-side-title { cursor: pointer; }
    .kp-side-title i.kp-side-caret { display: inline-block; }
    .kp-side-box.collapsed .kp-cat { display: none; }
    .kp-side-box.collapsed .kp-side-title i.kp-side-caret { transform: rotate(-90deg); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.kp-btn,
.kp-btn-outline,
.kp-btn-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: color .3s, border-color .3s, transform .3s;
}

.kp-btn { background: var(--kp-red); color: #fff; }
.kp-btn::before,
.kp-btn-outline::before,
.kp-btn-light::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s ease;
}
.kp-btn::before { background: var(--kp-ink); }
.kp-btn:hover { color: #fff; }
.kp-btn:hover::before,
.kp-btn-outline:hover::before,
.kp-btn-light:hover::before { transform: scaleX(1); transform-origin: left; }

.kp-btn-outline { border: 1.5px solid currentColor; color: var(--kp-ink); }
.kp-btn-outline::before { background: var(--kp-ink); }
.kp-btn-outline:hover { color: #fff; border-color: var(--kp-ink); }
.kp-hero .kp-btn-outline, .kp-cta .kp-btn-outline { color: #fff; }
.kp-hero .kp-btn-outline::before, .kp-cta .kp-btn-outline::before { background: #fff; }
.kp-hero .kp-btn-outline:hover, .kp-cta .kp-btn-outline:hover { color: var(--kp-ink); border-color: #fff; }

.kp-btn-light { background: #fff; color: var(--kp-red); }
.kp-btn-light::before { background: var(--kp-ink); }
.kp-btn-light:hover { color: #fff; }

.kp-btn i, .kp-btn-outline i, .kp-btn-light i { transition: transform .3s; }
.kp-btn:hover i, .kp-btn-outline:hover i, .kp-btn-light:hover i { transform: translateX(4px); }

/* ==========================================================================
   Product intro
   ========================================================================== */
.kp-media {
    position: relative;
    padding: 0 22px 22px 0;
}

.kp-media::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 70%;
    height: 70%;
    border-radius: var(--kp-radius);
    background:
        radial-gradient(circle, rgba(214, 8, 10, .35) 1.5px, transparent 1.6px) 0 0 / 14px 14px;
    z-index: 0;
}

.kp-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--kp-radius);
    box-shadow: var(--kp-shadow-lg);
}

.kp-media-badge {
    position: absolute;
    z-index: 2;
    left: 18px;
    bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--kp-shadow-lg);
    animation: kp-float 4s ease-in-out infinite;
}

.kp-media-badge i {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(214, 8, 10, .1);
    color: var(--kp-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.kp-media-badge strong { display: block; color: var(--kp-ink); font-size: 15px; line-height: 1.2; }
.kp-media-badge small { font-size: 12px; color: #777; line-height: 1.2; }

@keyframes kp-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.kp-intro h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }

.kp-checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.kp-checks li { position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.5; color: var(--kp-ink-2); font-weight: 500; }
.kp-checks li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--kp-red);
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 575px) { .kp-checks { grid-template-columns: 1fr; } }

/* ==========================================================================
   Quick spec tiles
   ========================================================================== */
.kp-spec-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.kp-spec-tile {
    position: relative;
    padding: 22px 20px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--kp-line);
    overflow: hidden;
    transition: transform .35s, box-shadow .35s, border-color .35s;
}

.kp-spec-tile::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--kp-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s;
}

.kp-spec-tile:hover { transform: translateY(-6px); box-shadow: var(--kp-shadow); border-color: transparent; }
.kp-spec-tile:hover::after { transform: scaleX(1); }

.kp-spec-tile i { font-size: 24px; color: var(--kp-red); margin-bottom: 12px; display: block; }
.kp-spec-tile span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #888; margin-bottom: 4px; }
.kp-spec-tile strong { display: block; font-size: 15px; line-height: 1.45; color: var(--kp-ink); font-weight: 600; }

/* ==========================================================================
   Product type cards ("srv" style)
   ========================================================================== */
.kp-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.kp-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 22px 22px;
    border-radius: var(--kp-radius);
    background: #fff;
    border: 1px solid var(--kp-line);
    overflow: hidden;
    isolation: isolate;
    transition: transform .4s, box-shadow .4s, border-color .4s;
    height: 100%;
}

/* red panel rises from the bottom on hover */
.kp-type-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(160deg, var(--kp-red) 0%, var(--kp-red-dark) 100%);
    clip-path: circle(0% at 100% 100%);
    transition: clip-path .6s cubic-bezier(.6, .1, .2, 1);
}

.kp-type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(214, 8, 10, .22);
    border-color: transparent;
}

.kp-type-card:hover::before { clip-path: circle(150% at 100% 100%); }

.kp-type-code {
    position: absolute;
    right: 16px;
    top: 10px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(26, 26, 26, .12);
    transition: -webkit-text-stroke-color .4s;
}

.kp-type-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(214, 8, 10, .08);
    color: var(--kp-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
    transition: background .4s, color .4s, transform .6s;
}

.kp-type-card h3 { font-size: 17px; line-height: 1.35; margin-bottom: 8px; transition: color .4s; }
.kp-type-card p { font-size: 13.8px; line-height: 1.65; margin-bottom: 14px; transition: color .4s; flex: 1; }

.kp-type-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.kp-type-meta span {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .03em;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--kp-soft);
    color: #555;
    transition: background .4s, color .4s;
}

.kp-type-card:hover .kp-type-code { -webkit-text-stroke-color: rgba(255, 255, 255, .35); }
.kp-type-card:hover .kp-type-icon { background: rgba(255, 255, 255, .16); color: #fff; transform: rotateY(360deg); }
.kp-type-card:hover h3,
.kp-type-card:hover p { color: #fff; }
.kp-type-card:hover .kp-type-meta span { background: rgba(255, 255, 255, .16); color: #fff; }

/* type card with product photo + catalogue spec list */
.kp-type-card--photo { padding-top: 0; }
.kp-type-card .kp-type-img {
    margin: 0 -22px 18px;
    height: 210px;
    padding: 14px;
    background: #fff;
    border-bottom: 1px solid var(--kp-line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.kp-type-card .kp-type-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s; }
.kp-type-card:hover .kp-type-img img { transform: scale(1.08); }

.kp-type-card--photo .kp-type-code {
    left: 14px;
    right: auto;
    top: 14px;
    z-index: 2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #fff;
    -webkit-text-stroke: 0;
    background: var(--kp-red);
    padding: 5px 11px;
    border-radius: 20px;
    transition: background .4s, color .4s;
}
.kp-type-card--photo:hover .kp-type-code { background: #fff; color: var(--kp-red); }

.kp-type-specs {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12.8px;
    line-height: 1.5;
    border-top: 1px dashed var(--kp-line);
}
.kp-type-specs li {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--kp-line);
    transition: border-color .4s;
}
.kp-type-specs b { font-weight: 600; color: var(--kp-ink); transition: color .4s; }
.kp-type-specs span { color: #555; transition: color .4s; }
.kp-type-card:hover .kp-type-specs,
.kp-type-card:hover .kp-type-specs li { border-color: rgba(255, 255, 255, .28); }
.kp-type-card:hover .kp-type-specs b,
.kp-type-card:hover .kp-type-specs span { color: #fff; }

.kp-type-grid--photo { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ==========================================================================
   Tables
   ========================================================================== */
.kp-table-wrap {
    border-radius: 14px;
    border: 1px solid var(--kp-line);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    box-shadow: var(--kp-shadow);
}

.kp-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.kp-table thead th {
    background: var(--kp-ink);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .02em;
    padding: 14px 16px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 3px solid var(--kp-red);
}

.kp-table tbody td,
.kp-table tbody th {
    padding: 12px 16px;
    border-bottom: 1px solid var(--kp-line);
    color: #444;
    vertical-align: top;
}

.kp-table tbody th { color: var(--kp-ink); font-weight: 600; text-align: left; white-space: nowrap; }
.kp-table tbody tr:nth-child(even) { background: #FBFAF9; }
.kp-table tbody tr { transition: background .2s; }
.kp-table tbody tr:hover { background: rgba(214, 8, 10, .05); }
.kp-table tbody tr:last-child td,
.kp-table tbody tr:last-child th { border-bottom: 0; }
.kp-table td.num, .kp-table th.num { text-align: center; font-variant-numeric: tabular-nums; }

/* spec table: two columns, label / value */
.kp-table.kp-spec th { width: 34%; background: var(--kp-soft); }
.kp-table.kp-spec tbody tr:nth-child(even) { background: #fff; }

.kp-note {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.6;
    color: #777;
}

.kp-note i { color: var(--kp-red); margin-top: 3px; }

/* ==========================================================================
   Tabs (chemical / mechanical / physical)
   ========================================================================== */
.kp-tabs-nav {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    border-radius: 40px;
    background: var(--kp-soft);
    margin-bottom: 22px;
}

.kp-tab-btn {
    border: 0;
    background: transparent;
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: background .3s, color .3s, box-shadow .3s;
}

.kp-tab-btn:hover { color: var(--kp-red); }
.kp-tab-btn.active { background: var(--kp-red); color: #fff; box-shadow: 0 8px 20px rgba(214, 8, 10, .3); }

.kp-tab-panel { display: none; }
.kp-tab-panel.active { display: block; animation: kp-fade-up .45s ease both; }

@keyframes kp-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Material grade chips
   ========================================================================== */
.kp-grades { display: flex; flex-wrap: wrap; gap: 10px; }

.kp-grade {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid var(--kp-line);
    background: #fff;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--kp-ink-2);
    transition: all .3s;
}

.kp-grade b { color: var(--kp-red); font-weight: 700; }
.kp-grade:hover { border-color: var(--kp-red); background: var(--kp-red); color: #fff; transform: translateY(-3px); }
.kp-grade:hover b { color: #fff; }

.kp-grade-group { margin-bottom: 18px; }
.kp-grade-group h4 { font-size: 15px; margin-bottom: 10px; color: var(--kp-ink); }

/* ==========================================================================
   Applications
   ========================================================================== */
.kp-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.kp-app {
    text-align: center;
    padding: 26px 14px 20px;
    border-radius: 14px;
    background: var(--kp-soft);
    transition: background .35s, transform .35s;
}

.kp-app .kp-app-ico {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--kp-red);
    background: #fff;
    border-radius: 18px;
    transform: rotate(45deg);
    box-shadow: 0 8px 20px rgba(26, 26, 26, .06);
    transition: background .35s, color .35s, border-radius .5s;
}

.kp-app .kp-app-ico i { transform: rotate(-45deg); }
.kp-app h4 { font-size: 14.5px; line-height: 1.4; margin: 0; transition: color .35s; }

.kp-app:hover { background: var(--kp-ink); transform: translateY(-6px); }
.kp-app:hover .kp-app-ico { background: var(--kp-red); color: #fff; border-radius: 50%; }
.kp-app:hover h4 { color: #fff; }

/* ==========================================================================
   Feature list (advantages / how it works)
   ========================================================================== */
.kp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }

.kp-feature {
    display: flex;
    gap: 16px;
    padding: 22px;
    border-radius: 14px;
    border: 1px dashed #D9D5D1;
    transition: border-color .3s, background .3s;
}

.kp-feature:hover { border-color: var(--kp-red); border-style: solid; background: #fff; }

.kp-feature i {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--kp-ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background .3s, transform .5s;
}

.kp-feature:hover i { background: var(--kp-red); transform: rotate(360deg); }
.kp-feature h4 { font-size: 16px; margin-bottom: 6px; }
.kp-feature p { font-size: 14px; line-height: 1.65; margin: 0; }

/* ==========================================================================
   FAQ (native details/summary)
   ========================================================================== */
.kp-faq details {
    border: 1px solid var(--kp-line);
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .3s, border-color .3s;
}

.kp-faq details[open] { border-color: rgba(214, 8, 10, .35); box-shadow: var(--kp-shadow); }

.kp-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 56px 16px 20px;
    font-weight: 600;
    color: var(--kp-ink);
    position: relative;
    line-height: 1.5;
}

.kp-faq summary::-webkit-details-marker { display: none; }

.kp-faq summary::after {
    content: "\2b";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    border-radius: 50%;
    background: var(--kp-soft);
    color: var(--kp-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: transform .3s, background .3s, color .3s;
}

.kp-faq details[open] summary::after { transform: rotate(45deg); background: var(--kp-red); color: #fff; }
.kp-faq details > div { padding: 0 20px 18px; font-size: 14.5px; line-height: 1.75; }

/* ==========================================================================
   Service / product family cards (products.html, related products)
   ========================================================================== */
.kp-srv-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    box-shadow: var(--kp-shadow);
    transition: transform .45s, box-shadow .45s;
}

.kp-srv-card:hover { transform: translateY(-10px); box-shadow: var(--kp-shadow-lg); }

.kp-srv-img { position: relative; height: 230px; overflow: hidden; }
.kp-srv-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1), filter .6s; }
.kp-srv-card:hover .kp-srv-img img { transform: scale(1.12) rotate(1.5deg); filter: saturate(1.15); }

.kp-srv-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(20, 20, 20, .75) 100%);
}

.kp-srv-no {
    position: absolute;
    left: 20px;
    bottom: 14px;
    z-index: 2;
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .9);
}

.kp-srv-chip {
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .92);
    color: var(--kp-red);
    font-size: 12px;
    font-weight: 700;
}

.kp-srv-body { position: relative; padding: 26px 24px 24px; flex: 1; display: flex; flex-direction: column; }

/* animated red line on top of the body */
.kp-srv-body::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 0;
    width: 50px;
    height: 3px;
    background: var(--kp-red);
    transition: width .5s;
}

.kp-srv-card:hover .kp-srv-body::before { width: calc(100% - 48px); }

.kp-srv-body h3 { font-size: 19px; line-height: 1.35; margin-bottom: 10px; }
.kp-srv-body h3 a { color: var(--kp-ink); transition: color .3s; }
.kp-srv-card:hover .kp-srv-body h3 a { color: var(--kp-red); }
.kp-srv-body p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }

.kp-srv-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.kp-srv-list li { font-size: 12px; padding: 4px 10px; border-radius: 20px; background: var(--kp-soft); color: #555; }

.kp-srv-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--kp-ink);
}

.kp-srv-more i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--kp-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-45deg);
    transition: transform .4s, background .4s, color .4s, border-color .4s;
}

.kp-srv-card:hover .kp-srv-more { color: var(--kp-red); }
.kp-srv-card:hover .kp-srv-more i { transform: rotate(0); background: var(--kp-red); border-color: var(--kp-red); color: #fff; }

/* ==========================================================================
   Stats band
   ========================================================================== */
.kp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, .12);
    border-radius: 20px;
    overflow: hidden;
}

.kp-stat { background: var(--kp-ink); padding: 34px 26px; color: #fff; text-align: center; }
.kp-stat strong { display: block; font-size: 44px; line-height: 1; font-weight: 800; color: #fff; margin-bottom: 8px; }
.kp-stat strong em { font-style: normal; color: var(--kp-red); }
.kp-stat span { color: rgba(255, 255, 255, .7); font-size: 14px; }
.kp-stat strong span, .kp-stat strong b { font-size: inherit; color: inherit; font-weight: inherit; }

/* ==========================================================================
   Process steps (about / quality)
   ========================================================================== */
.kp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; counter-reset: kp-step; }

.kp-step {
    position: relative;
    padding: 30px 22px 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--kp-line);
    counter-increment: kp-step;
    transition: transform .35s, box-shadow .35s;
}

.kp-step::before {
    content: counter(kp-step, decimal-leading-zero);
    position: absolute;
    right: 18px;
    top: 14px;
    font-size: 40px;
    font-weight: 800;
    color: rgba(214, 8, 10, .1);
    line-height: 1;
}

.kp-step:hover { transform: translateY(-6px); box-shadow: var(--kp-shadow); }
.kp-step i { font-size: 28px; color: var(--kp-red); margin-bottom: 14px; display: block; }
.kp-step h4 { font-size: 17px; margin-bottom: 8px; }
.kp-step p { font-size: 14px; line-height: 1.65; margin: 0; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.kp-cta {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 50px 44px;
    background: var(--kp-ink);
    color: #fff;
    isolation: isolate;
}

.kp-cta::before {
    content: "";
    position: absolute;
    right: -10%;
    top: -60%;
    width: 60%;
    height: 220%;
    z-index: -1;
    background: linear-gradient(160deg, var(--kp-red), var(--kp-red-dark));
    transform: skewX(-18deg);
}

.kp-cta::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 30%;
    z-index: -1;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
    transform: skewX(-18deg);
    animation: kp-shine 5s ease-in-out infinite;
}

@keyframes kp-shine {
    0%   { left: -40%; }
    60%, 100% { left: 120%; }
}

.kp-cta h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.kp-cta p { color: rgba(255, 255, 255, .75); margin: 0; }

@media (max-width: 767px) {
    .kp-cta { padding: 36px 24px; }
    .kp-cta::before { right: -40%; width: 90%; opacity: .5; }
}

/* ==========================================================================
   Contact + forms
   ========================================================================== */
.kp-contact-card {
    height: 100%;
    padding: 30px 26px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--kp-line);
    position: relative;
    overflow: hidden;
    transition: transform .35s, box-shadow .35s;
}

.kp-contact-card:hover { transform: translateY(-6px); box-shadow: var(--kp-shadow-lg); }

.kp-contact-card .kp-c-ico {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--kp-red);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(214, 8, 10, .3);
}

.kp-contact-card h4 { font-size: 18px; margin-bottom: 8px; }
.kp-contact-card p { margin: 0; font-size: 14.5px; line-height: 1.75; }
.kp-contact-card a { color: #444; }
.kp-contact-card a:hover { color: var(--kp-red); }

.kp-form {
    padding: 40px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--kp-shadow-lg);
}

.kp-form label { font-size: 13px; font-weight: 600; color: var(--kp-ink); margin-bottom: 6px; display: block; }

.kp-form .form-control,
.kp-form .form-select {
    border: 1px solid var(--kp-line);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14.5px;
    background: var(--kp-soft);
    transition: border-color .25s, background .25s, box-shadow .25s;
}

.kp-form .form-control:focus,
.kp-form .form-select:focus {
    border-color: var(--kp-red);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(214, 8, 10, .1);
}

.kp-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--kp-shadow);
    line-height: 0;
}

.kp-map iframe { width: 100%; height: 420px; border: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
    .kp-page { padding: 60px 0; }
    .kp-block { margin-bottom: 54px; }
    .kp-hero { min-height: 340px; padding: 70px 0 90px; }
    .kp-hero-rings { width: 360px; height: 360px; right: -160px; opacity: .6; }
}

@media (max-width: 575px) {
    .kp-hero { padding: 56px 0 76px; }
    .kp-hero p.lead { font-size: 15px; }
    .kp-head .kp-num { font-size: 44px; }
    .kp-form { padding: 26px 20px; }
    .kp-media { padding: 0 12px 12px 0; }
    .kp-media-badge { left: 10px; bottom: 24px; padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .kp-hero::after,
    .kp-hero-rings span,
    .kp-hero-bar::after,
    .kp-media-badge,
    .kp-side-cta::after,
    .kp-cta::after { animation: none; }
}
