/* ==========================================================================
   KH NUTRIX — Inner page hero (page-header)
   Loaded last. Owns everything inside <header class="page-header">.
   ========================================================================== */

.page-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--nav-h) + 46px) 0 clamp(48px, 6vw, 78px);
    background: linear-gradient(180deg, #FFFFFF 0%, #F6FBF8 58%, var(--kh-bg) 100%);
    border-bottom: 1px solid rgba(15, 23, 42, .05);
}

/* --------------------------------------------------------------------------
   Decorative layers
   -------------------------------------------------------------------------- */
.ph-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Aurora glows — tinted per tone */
.ph-decor .ph-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(88px);
    opacity: .55;
    will-change: transform;
    animation: phDrift 22s var(--ease) infinite;
}

.ph-aurora-1 {
    width: 520px; height: 520px;
    top: -230px; left: -130px;
    background: var(--ph-glow-a);
}
.ph-aurora-2 {
    width: 460px; height: 460px;
    top: -110px; right: -150px;
    background: var(--ph-glow-b);
    animation-delay: -7s;
}
.ph-aurora-3 {
    width: 360px; height: 360px;
    bottom: -240px; left: 46%;
    background: var(--ph-glow-c);
    animation-delay: -14s;
}

@keyframes phDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33%      { transform: translate3d(30px, 24px, 0) scale(1.08); }
    66%      { transform: translate3d(-24px, -18px, 0) scale(.94); }
}

/* Dot grid — fades out toward the bottom */
.ph-decor .ph-grid-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, .13) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(115% 78% at 50% 0%, #000 0%, transparent 72%);
            mask-image: radial-gradient(115% 78% at 50% 0%, #000 0%, transparent 72%);
    opacity: .5;
}

/* Hairline that dissolves into the next section */
.page-header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ph-accent-line), transparent);
    z-index: 2;
}

/* --------------------------------------------------------------------------
   Tones
   -------------------------------------------------------------------------- */
.page-header {
    --ph-accent: var(--kh-green);
    --ph-accent-deep: var(--kh-green-700);
    --ph-accent-soft: rgba(23, 201, 100, .10);
    --ph-accent-line: rgba(23, 201, 100, .34);
    --ph-glow-a: rgba(23, 201, 100, .38);
    --ph-glow-b: rgba(139, 92, 246, .28);
    --ph-glow-c: rgba(56, 189, 248, .22);
}

.page-header.tone-purple {
    --ph-accent: var(--kh-purple);
    --ph-accent-deep: var(--kh-purple-600);
    --ph-accent-soft: rgba(139, 92, 246, .10);
    --ph-accent-line: rgba(139, 92, 246, .34);
    --ph-glow-a: rgba(139, 92, 246, .34);
    --ph-glow-b: rgba(99, 102, 241, .26);
    --ph-glow-c: rgba(23, 201, 100, .22);
}

.page-header.tone-sun {
    --ph-accent: #F59E0B;
    --ph-accent-deep: #B45309;
    --ph-accent-soft: rgba(250, 204, 21, .14);
    --ph-accent-line: rgba(250, 204, 21, .42);
    --ph-glow-a: rgba(250, 204, 21, .34);
    --ph-glow-b: rgba(251, 146, 60, .26);
    --ph-glow-c: rgba(23, 201, 100, .22);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.page-header .container {
    position: relative;
    z-index: 2;
    max-width: 1220px;
}

.ph-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(34px, 5vw, 60px);
    align-items: center;
}

.page-header.has-visual .ph-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}

.ph-copy { min-width: 0; }
.page-header:not(.has-visual) .ph-copy { max-width: 820px; }

/* --------------------------------------------------------------------------
   Breadcrumb — sits above the title as a glass pill
   -------------------------------------------------------------------------- */
.page-header .kh-breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    padding: 7px 16px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--kh-border);
    box-shadow: var(--sh-xs);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
            backdrop-filter: blur(12px) saturate(150%);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--kh-slate-500);
}

.page-header .kh-breadcrumb a {
    color: var(--kh-slate-500);
    text-decoration: none;
    transition: color .2s var(--ease);
}
.page-header .kh-breadcrumb a:hover { color: var(--ph-accent-deep); }
.page-header .kh-breadcrumb i { font-size: .62rem; opacity: .45; }
.page-header .kh-breadcrumb [aria-current="page"] { color: var(--kh-slate); }

/* --------------------------------------------------------------------------
   Eyebrow
   -------------------------------------------------------------------------- */
.page-header .eyebrow {
    margin-bottom: 0;
    padding: 8px 17px;
    font-size: .72rem;
    letter-spacing: .18em;
    color: var(--ph-accent-deep);
    background: var(--ph-accent-soft);
    border: 1px solid var(--ph-accent-line);
    box-shadow: 0 4px 16px -8px var(--ph-accent);
}

.page-header .eyebrow i {
    font-size: .8rem;
    color: var(--ph-accent);
}

/* --------------------------------------------------------------------------
   Title + lead
   -------------------------------------------------------------------------- */
.page-header h1 {
    margin: 20px 0 0;
    max-width: 16ch;
    font-size: clamp(2.3rem, 4.4vw, 4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.036em;
    color: var(--kh-slate);
    text-wrap: balance;
}

.page-header:not(.has-visual) h1 { max-width: 20ch; }

.page-header .lead {
    max-width: 58ch !important;
    margin-top: 20px !important;
    font-size: clamp(1rem, 1.35vw, 1.14rem);
    line-height: 1.72;
    color: var(--kh-slate-500);
    text-wrap: pretty;
}

/* Accent rule under the title block */
.ph-rule {
    width: 68px;
    height: 4px;
    margin-top: 26px;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, var(--ph-accent), transparent);
}

/* --------------------------------------------------------------------------
   Trust chips
   -------------------------------------------------------------------------- */
.ph-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
    padding: 0;
    list-style: none;
}

.ph-chips li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--kh-border);
    box-shadow: var(--sh-xs);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    font-size: .82rem;
    font-weight: 600;
    color: var(--kh-slate-700);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.ph-chips li:hover {
    transform: translateY(-2px);
    border-color: var(--ph-accent-line);
    box-shadow: var(--sh-sm);
}

.ph-chips li i {
    font-size: .95rem;
    color: var(--ph-accent-deep);
}

/* --------------------------------------------------------------------------
   Actions
   -------------------------------------------------------------------------- */
.ph-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

/* --------------------------------------------------------------------------
   Visual side — framed media / stat panel
   -------------------------------------------------------------------------- */
.ph-visual {
    position: relative;
    min-width: 0;
}

.ph-frame {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--kh-border);
    box-shadow: var(--sh-lg);
    transform: rotate(-1.1deg);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.ph-frame:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 30px 70px rgba(15, 23, 42, .16);
}

.ph-frame img {
    display: block;
    width: 100%;
    height: clamp(240px, 30vw, 350px);
    object-fit: cover;
}

/* Glow puck behind the frame */
.ph-visual::before {
    content: '';
    position: absolute;
    inset: 12% -6% -10% 6%;
    border-radius: var(--r-xl);
    background: radial-gradient(closest-side, var(--ph-glow-a), transparent 78%);
    filter: blur(38px);
    opacity: .8;
    z-index: -1;
}

/* Floating badge over the frame */
.ph-badge {
    position: absolute;
    left: -14px;
    bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 13px 19px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--kh-border);
    box-shadow: var(--sh-md);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
            backdrop-filter: blur(16px) saturate(160%);
    animation: phBadgeFloat 6s ease-in-out infinite;
}

.ph-badge em {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    flex: 0 0 40px;
    border-radius: 13px;
    background: var(--grad-green);
    color: #fff;
    font-size: 1.1rem;
    font-style: normal;
}

.page-header.tone-purple .ph-badge em { background: var(--grad-purple); }
.page-header.tone-sun    .ph-badge em { background: var(--grad-sun); }

.ph-badge strong {
    display: block;
    font-size: .96rem;
    line-height: 1.25;
    color: var(--kh-slate);
}

.ph-badge span {
    display: block;
    font-size: .76rem;
    color: var(--kh-slate-500);
}

@keyframes phBadgeFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}

/* Stat panel variant (no image) */
.ph-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ph-stat {
    padding: 22px 20px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--kh-border);
    box-shadow: var(--sh-sm);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
            backdrop-filter: blur(14px) saturate(150%);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.ph-stat:hover {
    transform: translateY(-4px);
    border-color: var(--ph-accent-line);
    box-shadow: var(--sh-md);
}

.ph-stat i {
    font-size: 1.3rem;
    color: var(--ph-accent-deep);
}

.ph-stat b {
    display: block;
    margin-top: 8px;
    font-size: clamp(1.35rem, 2.1vw, 1.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--kh-slate);
}

.ph-stat span {
    display: block;
    margin-top: 3px;
    font-size: .82rem;
    color: var(--kh-slate-500);
}

/* Tighten the gap into the following section */
.page-header + .section,
.page-header + .section-tight {
    padding-top: clamp(38px, 5vw, 62px);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .page-header {
        padding: calc(var(--nav-h) + 32px) 0 clamp(40px, 7vw, 56px);
    }
    .page-header.has-visual .ph-layout {
        grid-template-columns: 1fr;
    }
    .ph-visual { order: -1; }
    .ph-frame { transform: none; }
    .page-header h1,
    .page-header:not(.has-visual) h1 { max-width: none; }
}

@media (max-width: 575.98px) {
    .page-header .kh-breadcrumb {
        font-size: .74rem;
        padding: 6px 13px;
    }
    .ph-chips { gap: 8px; }
    .ph-chips li { padding: 8px 13px; font-size: .78rem; }
    .ph-badge {
        left: 10px;
        bottom: 12px;
        padding: 10px 14px;
    }
    .ph-badge em { width: 34px; height: 34px; flex-basis: 34px; font-size: .95rem; }
    .ph-actions .btn { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .ph-decor .ph-aurora,
    .ph-badge {
        animation: none;
    }
    .ph-frame,
    .ph-chips li,
    .ph-stat {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   FINAL PAGE POLISH: contact, products, product detail
   -------------------------------------------------------------------------- */
.page-header {
    padding: calc(var(--nav-h) + 30px) 0 42px;
    background:
        radial-gradient(520px 260px at 12% 0%, rgba(23, 201, 100, .11), transparent 72%),
        radial-gradient(560px 300px at 92% 10%, rgba(139, 92, 246, .10), transparent 74%),
        linear-gradient(180deg, #fff 0%, #f8fcfa 100%);
}

.ph-decor .ph-aurora,
.ph-decor .ph-grid-dots,
.ph-rule {
    display: none;
}

.page-header .container {
    max-width: 1180px;
}

.ph-layout,
.page-header.has-visual .ph-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 38px;
}

.page-header:not(.has-visual) .ph-layout {
    grid-template-columns: 1fr;
}

.page-header h1 {
    max-width: 18ch;
    margin-top: 14px;
    font-size: clamp(2.05rem, 4.1vw, 3.45rem);
    letter-spacing: -.025em;
}

.page-header:not(.has-visual) h1 {
    max-width: 22ch;
}

.page-header .lead {
    max-width: 62ch !important;
    margin-top: 14px !important;
    font-size: clamp(.92rem, 1.2vw, 1.05rem);
}

.page-header .kh-breadcrumb {
    margin-bottom: 14px;
    box-shadow: none;
}

.ph-chips {
    margin-top: 18px;
}

.ph-chips li {
    padding: 8px 13px;
    font-size: .76rem;
    box-shadow: none;
}

.ph-actions {
    margin-top: 22px;
}

.ph-actions .btn-lg-kh {
    padding: 12px 22px;
    font-size: .84rem;
}

.ph-stats {
    gap: 12px;
}

.ph-stat {
    padding: 18px 16px;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.ph-stat b {
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
}

.ph-stat span {
    font-size: .74rem;
    line-height: 1.3;
}

.page-header + .section,
.page-header + .section-tight {
    padding-top: 34px;
}

.product-card {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, .08);
}

.product-media {
    aspect-ratio: 16 / 11;
    background:
        radial-gradient(220px 160px at 50% 42%, rgba(23, 201, 100, .12), transparent 72%),
        #f6faf8;
}

.product-media img {
    object-fit: contain;
    padding: 18px;
}

.product-card:hover .product-media img {
    transform: scale(1.04);
}

.product-body {
    padding: 22px;
}

.product-body h3 {
    min-height: 0;
    font-size: 1rem;
    line-height: 1.2;
}

.product-body > p:first-of-type {
    min-height: 0;
    font-size: .82rem;
    line-height: 1.55;
}

.product-card .benefit-list {
    min-height: 0;
}

.benefit-list li {
    font-size: .78rem;
    line-height: 1.35;
}

.product-actions .btn {
    padding: 9px 13px;
    font-size: .76rem;
}

.contact-aside,
.kh-form-card,
.detail-media,
.sidebar-card {
    border-radius: 24px;
}

.contact-aside {
    padding: 30px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .12);
}

.contact-aside h2 {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.aside-row {
    padding: 14px 0;
}

.aside-row em {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.aside-row span,
.aside-row a {
    font-size: .84rem;
}

.kh-form-card {
    padding: clamp(24px, 3.4vw, 36px);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.kh-form-card .form-control,
.kh-form-card .form-select {
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 12px;
}

.kh-form-card textarea.form-control {
    min-height: 132px;
}

.detail-media {
    background:
        radial-gradient(340px 230px at 50% 42%, rgba(23, 201, 100, .15), transparent 72%),
        #fff;
    border: 0;
    box-shadow: 0 18px 52px rgba(15, 23, 42, .10);
}

.detail-media img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: 28px;
}

.spec-table th,
.spec-table td {
    padding: 12px 15px;
    font-size: .82rem;
}

.animal-category-section,
.animal-nutrition-section {
    background: linear-gradient(180deg, #fff 0%, #f6fbf8 100%) !important;
}

.accordion-item {
    border-radius: 18px !important;
}

.accordion-button {
    padding: 16px 20px;
}

@media (max-width: 991.98px) {
    .ph-layout,
    .page-header.has-visual .ph-layout {
        grid-template-columns: 1fr;
    }

    .ph-visual {
        order: 0;
    }
}

@media (max-width: 575.98px) {
    .page-header {
        padding: calc(var(--nav-h) + 22px) 0 34px;
    }

    .ph-stats {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   HOME: premium products, process, story refresh
   -------------------------------------------------------------------------- */
.home-products-showcase {
    background:
        radial-gradient(620px 360px at 8% 4%, rgba(23, 201, 100, .10), transparent 68%),
        radial-gradient(520px 320px at 94% 0%, rgba(139, 92, 246, .09), transparent 68%),
        linear-gradient(180deg, #fff 0%, #f6fbf8 100%) !important;
}

.home-products-showcase .section-head,
.home-process-section .section-head,
.home-story-section .section-head {
    margin-bottom: 26px;
}

.home-products-showcase .section-head h2,
.home-process-section .section-head h2,
.home-story-section .section-head h2 {
    font-size: clamp(1.75rem, 2.8vw, 2.65rem);
}

.home-products-showcase .product-mini-row {
    --bs-gutter-x: 20px;
    --bs-gutter-y: 20px;
    max-width: 1160px;
}

.home-products-showcase .bag-card {
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 16px 44px rgba(15, 23, 42, .08);
}

.home-products-showcase .bag-card::before {
    height: 4px;
}

.home-products-showcase .bag-visual {
    min-height: 270px;
    
    padding: 0px ;
    border-radius: 0;
    background:
        radial-gradient(200px 140px at 50% 48%, var(--bag-soft), transparent 70%),
        linear-gradient(180deg, #fbfffd 0%, #f2faf6 100%);
}

.home-products-showcase .bag-visual img {

    height: 270px;
    object-fit: cover;
}

.home-products-showcase .bag-rank {
    top: 16px;
    left: 16px;
}

.home-products-showcase .bag-card h3,
.home-products-showcase .bag-tagline,
.home-products-showcase .bag-points,
.home-products-showcase .btn-bag {
    margin-left: 22px;
    margin-right: 22px;
}

.home-products-showcase .bag-card h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.08rem;
    line-height: 1.2;
}

.home-products-showcase .bag-tagline {
    min-height: 4.4em;
    font-size: .8rem;
    line-height: 1.5;
}

.home-products-showcase .bag-points {
    padding: 14px;
    border-radius: 16px;
    background: #f7faf8;
}

.home-products-showcase .bag-points li {
    font-size: .76rem;
}

.home-products-showcase .btn-bag {
    margin-bottom: 22px;
}

.home-process-section {
    background: #fff;
}

.home-process-section .step-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.home-process-section .step-rail::before {
    display: none;
}

.home-process-section .rail-item {
    min-height: 190px;
    padding: 24px;
    text-align: left;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,248,.98));
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 14px 38px rgba(15, 23, 42, .07);
}

.home-process-section .rail-item:hover {
    background: #fff;
    transform: translateY(-6px);
}

.home-process-section .rail-circle {
    width: 58px;
    height: 58px;
    margin: 0 0 18px;
    border: 0;
    border-radius: 18px;
    background: var(--kh-green-soft);
    color: var(--kh-green-700);
    box-shadow: none;
    position: relative;
}

.home-process-section .rail-num {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--kh-slate);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
}

.home-process-section .rail-item strong {
    font-size: 1rem;
    margin-bottom: 8px;
}

.home-process-section .rail-item > span:not(.rail-num) {
    max-width: none;
    margin: 0;
    font-size: .8rem;
    color: var(--kh-slate-500);
}

.home-story-section {
    background:
        linear-gradient(180deg, #f7fbf8 0%, #fff 100%) !important;
}

.home-story-section .story-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.home-story-section .story-rail::before,
.home-story-section .srail-dot {
    display: none;
}

.home-story-section .srail-item {
    min-height: 210px;
    padding: 22px;
    text-align: left;
    border-radius: 24px;
    background:
        radial-gradient(180px 120px at 90% 8%, rgba(23, 201, 100, .10), transparent 70%),
        #fff;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 14px 38px rgba(15, 23, 42, .07);
}

.home-story-section .srail-item:hover {
    background: #fff;
    transform: translateY(-6px);
}

.home-story-section .srail-scene {
    width: 62px;
    height: 62px;
    margin: 0 0 18px;
    border-radius: 20px;
    background: var(--kh-green-soft);
    color: var(--kh-green-700);
    font-size: 1.45rem;
}

.home-story-section .srail-year {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 11px;
    border-radius: var(--r-pill);
    background: rgba(15, 23, 42, .06);
    color: var(--kh-slate-700);
    font-size: .68rem;
    font-weight: 800;
}

.home-story-section .srail-item strong {
    font-size: 1rem;
    margin-bottom: 8px;
}

.home-story-section .srail-item > span:last-child {
    max-width: none;
    margin: 0;
    font-size: .78rem;
    color: var(--kh-slate-500);
}

@media (max-width: 991.98px) {
    .home-process-section .step-rail,
    .home-story-section .story-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .home-process-section .step-rail,
    .home-story-section .story-rail {
        grid-template-columns: 1fr;
    }

.home-products-showcase .bag-visual {
        min-height: 190px;
    }
}

/* --------------------------------------------------------------------------
   HOME: distinct animated process + story concepts
   -------------------------------------------------------------------------- */
.home-process-section {
    background:
        radial-gradient(520px 360px at 9% 8%, rgba(23, 201, 100, .08), transparent 70%),
        linear-gradient(180deg, #fff 0%, #f8fcfa 100%);
}

.home-process-section .step-rail {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 980px;
    margin-inline: auto;
    padding: 12px 0;
}

.home-process-section .step-rail::before {
    content: '';
    display: block;
    position: absolute;
    top: 36px;
    bottom: 36px;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    border-radius: var(--r-pill);
    background: linear-gradient(180deg, rgba(23, 201, 100, .18), rgba(56, 189, 248, .65), rgba(139, 92, 246, .22));
    overflow: hidden;
}

.home-process-section .step-rail::after {
    content: '';
    position: absolute;
    top: 36px;
    left: 50%;
    width: 4px;
    height: 110px;
    transform: translateX(-50%);
    border-radius: var(--r-pill);
    background: linear-gradient(180deg, transparent, var(--kh-green), transparent);
    animation: processFlow 4.8s linear infinite;
}

@keyframes processFlow {
    0% { transform: translate(-50%, 0); opacity: 0; }
    12%, 82% { opacity: 1; }
    100% { transform: translate(-50%, 520px); opacity: 0; }
}

.home-process-section .rail-item {
    position: relative;
    width: calc(50% - 54px);
    min-height: auto;
    margin: 0 0 20px;
    padding: 22px 22px 22px 84px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .07);
    animation: processCardFloat 5s ease-in-out infinite;
}

.home-process-section .rail-item:nth-child(odd) {
    margin-right: auto;
}

.home-process-section .rail-item:nth-child(even) {
    margin-left: auto;
}

.home-process-section .rail-item::after {
    content: '';
    position: absolute;
    top: 34px;
    width: 54px;
    height: 2px;
    background: linear-gradient(90deg, rgba(23, 201, 100, .5), transparent);
}

.home-process-section .rail-item:nth-child(odd)::after {
    right: -54px;
}

.home-process-section .rail-item:nth-child(even)::after {
    left: -54px;
    transform: rotate(180deg);
}

.home-process-section .rail-item:nth-child(2n) { animation-delay: -1.3s; }
.home-process-section .rail-item:nth-child(3n) { animation-delay: -2.2s; }

@keyframes processCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.home-process-section .rail-item:hover {
    transform: translateY(-7px) scale(1.015);
    box-shadow: 0 22px 54px rgba(15, 23, 42, .11);
}

.home-process-section .rail-circle {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 16px;
    background: var(--grad-green);
    color: #fff;
}

.home-process-section .rail-num {
    top: -9px;
    right: -9px;
    background: #fff;
    color: var(--kh-green-700);
    border: 1px solid rgba(23, 201, 100, .24);
}

.home-process-section .rail-item strong {
    display: block;
    font-size: .98rem;
}

.home-process-section .rail-item > span:not(.rail-num) {
    display: block;
    font-size: .78rem;
    line-height: 1.45;
}

.home-story-section {
    background:
        radial-gradient(620px 360px at 50% 0%, rgba(139, 92, 246, .08), transparent 72%),
        linear-gradient(180deg, #f7fbf8 0%, #fff 100%) !important;
}

.home-story-section .story-rail {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    max-width: 1180px;
    margin-inline: auto;
    padding: 38px 22px 8px;
    background: transparent;
    box-shadow: none;
}

.home-story-section .story-rail::before {
    content: '';
    display: block;
    position: absolute;
    top: 88px;
    left: 7%;
    right: 7%;
    height: 3px;
    border-radius: var(--r-pill);
    background: rgba(15, 23, 42, .1);
}

.home-story-section .story-rail::after {
    content: '';
    position: absolute;
    top: 88px;
    left: 7%;
    height: 3px;
    width: 86%;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, var(--kh-green), var(--kh-blue), var(--kh-purple));
    transform-origin: left;
    animation: storyLineGrow 5.5s ease-in-out infinite;
}

@keyframes storyLineGrow {
    0% { transform: scaleX(0); opacity: .45; }
    55%, 80% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(1); opacity: .45; }
}

.home-story-section .srail-item {
    position: relative;
    min-height: 250px;
    padding: 0 12px;
    text-align: center;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.home-story-section .srail-item:hover {
    transform: translateY(-8px);
    background: transparent;
}

.home-story-section .srail-scene {
    position: relative;
    z-index: 2;
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #fff;
    color: var(--kh-green-700);
    border: 3px solid var(--kh-green-soft);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .09);
    animation: storyNodePulse 3.4s ease-in-out infinite;
}

.home-story-section .srail-item:nth-child(even) .srail-scene {
    color: var(--kh-purple-600);
    border-color: var(--kh-purple-soft);
    animation-delay: -1.4s;
}

@keyframes storyNodePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 12px 30px rgba(15, 23, 42, .09); }
    50% { transform: scale(1.07); box-shadow: 0 18px 40px rgba(23, 201, 100, .18); }
}

.home-story-section .srail-year {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 13px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.home-story-section .srail-item strong {
    display: block;
    font-size: .92rem;
}

.home-story-section .srail-item > span:last-child {
    max-width: 138px;
    margin: 7px auto 0;
    font-size: .7rem;
    line-height: 1.35;
}

@media (max-width: 991.98px) {
    .home-process-section .step-rail {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0;
    }

    .home-process-section .step-rail::before,
    .home-process-section .step-rail::after,
    .home-process-section .rail-item::after {
        display: none;
    }

    .home-process-section .rail-item {
        width: 100%;
        margin: 0;
    }

    .home-story-section .story-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
        padding-top: 12px;
    }

    .home-story-section .story-rail::before,
    .home-story-section .story-rail::after {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .home-story-section .story-rail {
        grid-template-columns: 1fr;
    }

    .home-story-section .srail-item {
        min-height: auto;
    }
}

/* --------------------------------------------------------------------------
   HOME: animated benefit showcase
   -------------------------------------------------------------------------- */
.home-benefits-section {
    background:
        radial-gradient(520px 280px at 6% 0%, rgba(23, 201, 100, .10), transparent 70%),
        radial-gradient(460px 260px at 94% 14%, rgba(139, 92, 246, .08), transparent 72%),
        #fff;
    padding-top: clamp(44px, 6vw, 76px);
    padding-bottom: clamp(44px, 6vw, 76px);
}

.home-benefits-section .bento-grid-5 {
    gap: 24px;
    perspective: 1100px;
}

.home-benefits-section .bento-card {
    position: relative;
    min-height: 205px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .075);
    isolation: isolate;
    transform-style: preserve-3d;
    animation: benefitFloat 5.8s ease-in-out infinite;
    overflow: hidden;
}

.home-benefits-section .bento-card:nth-child(2n) { animation-delay: -1.2s; }
.home-benefits-section .bento-card:nth-child(3n) { animation-delay: -2.4s; }
.home-benefits-section .bento-card:nth-child(4n) { animation-delay: -3.1s; }

@keyframes benefitFloat {
    0%, 100% { transform: translateY(0) rotateX(0deg); }
    50% { transform: translateY(-7px) rotateX(1.4deg); }
}

.home-benefits-section .bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .12;
    background: var(--grad-green);
    z-index: -2;
}

.home-benefits-section .bento-card::after {
    content: '';
    position: absolute;
    inset: -55% auto auto -45%;
    width: 70%;
    height: 220%;
    transform: rotate(24deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent);
    opacity: 0;
    transition: opacity .3s var(--ease), transform .65s var(--ease);
    z-index: -1;
}

.home-benefits-section .bento-card:hover {
    transform: translateY(-10px) rotateX(0deg) rotateY(-2deg);
    box-shadow: 0 24px 58px rgba(15, 23, 42, .13);
}

.home-benefits-section .bento-card:hover::after {
    opacity: 1;
    transform: translateX(210%) rotate(24deg);
}

.home-benefits-section .bento-icon {
    position: absolute;
    left: 18px;
    top: 18px;
    right: auto;
    bottom: auto;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--kh-green-700);
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .10);
    animation: benefitIconPulse 3.6s ease-in-out infinite;
    z-index: 3;
}

@keyframes benefitIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08) rotate(-4deg); }
}

.home-benefits-section .bento-card:hover .bento-icon {
    transform: scale(1.12) rotate(-8deg);
}

.home-benefits-section .bento-card h3 {
    max-width: none;
    margin: 0 0 7px;
    font-size: 1.03rem;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0;
    color: var(--kh-slate);
}

.home-benefits-section .bento-card p {
    max-width: none;
    margin: 0;
    font-size: .76rem;
    font-weight: 500;
    line-height: 1.38;
    color: var(--kh-slate-500);
}

.home-benefits-section .benefit-art {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 48%;
    height: 118px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, .72);
    overflow: hidden;
    z-index: 1;
}

.home-benefits-section .benefit-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 48% 48%, transparent 35%, rgba(255,255,255,.18) 72%);
}

.home-benefits-section .benefit-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s var(--ease);
}

.home-benefits-section .bento-card:hover .benefit-art img {
    transform: scale(1.09);
}

.home-benefits-section .benefit-copy {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    padding-top: 18px;
}

.home-benefits-section .benefit-copy::before {
    content: '';
    position: absolute;
    left: -22px;
    right: -22px;
    bottom: -22px;
    height: 126px;
    z-index: -1;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.96) 34%, #fff 100%);
}

.home-benefits-section .bento-blue::before { background: linear-gradient(135deg, #38BDF8, #6366F1); }
.home-benefits-section .bento-purple::before { background: var(--grad-purple); }
.home-benefits-section .bento-yellow::before { background: var(--grad-sun); }
.home-benefits-section .bento-pink::before { background: linear-gradient(135deg, #F472B6, #FB7185); }
.home-benefits-section .bento-green::before { background: var(--grad-green); }

@media (prefers-reduced-motion: reduce) {
    .home-benefits-section .bento-card,
    .home-benefits-section .bento-icon {
        animation: none;
    }
}

@media (max-width: 575.98px) {
    .home-benefits-section .bento-card {
        min-height: 190px;
    }

    .home-benefits-section .benefit-art {
        height: 104px;
    }
}

/* Restore clean compact benefit cards */
.home-benefits-section .bento-card {
    min-height: 150px;
    padding: 22px;
    overflow: hidden;
}

.home-benefits-section .bento-icon {
    left: auto;
    top: auto;
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    border-radius: 18px;
}

.home-benefits-section .bento-card h3 {
    max-width: 68%;
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
}

.home-benefits-section .bento-card p {
    max-width: 66%;
    font-size: .76rem;
    line-height: 1.38;
}

.home-benefits-section .benefit-art,
.home-benefits-section .benefit-copy {
    display: none;
}

.cta-cow-visual {
    position: relative;
    max-width: 270px;
    margin-left: auto;
    margin-bottom: -56px;
    display: grid;
    place-items: end center;
}

.cta-cow-visual::before {
    content: '';
    position: absolute;
    width: 86%;
    aspect-ratio: 1;
    right: 0;
    bottom: 2%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .32), transparent 68%);
    filter: blur(6px);
}

.cta-cow-visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 270px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .22));
    animation: ctaCowFloat 4.8s ease-in-out infinite;
}

@keyframes ctaCowFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1.5deg); }
}

/* --------------------------------------------------------------------------
   RESPONSIVE MASTER PASS
   -------------------------------------------------------------------------- */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

main,
section,
header,
footer {
    max-width: 100vw;
}

.container {
    max-width: min(1180px, calc(100% - 32px));
}

.row {
    min-width: 0;
}

[class*="col-"] {
    min-width: 0;
}

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

@media (max-width: 1199.98px) {
    :root {
        --nav-h: 74px;
    }

    .kh-navbar {
        top: 0;
        padding: 0;
    }

    .kh-navbar .container {
        width: 100%;
        max-width: 100%;
        min-height: 74px;
        padding: 0 22px;
        margin: 0;
        border-radius: 0;
    }

    .kh-navbar .navbar-collapse {
        margin-top: 10px;
        padding: 14px 0 18px;
        border-top: 1px solid rgba(15, 23, 42, .08);
        background: #fff;
    }

    .kh-nav {
        gap: 0;
    }

    .kh-nav .nav-link {
        padding: 11px 0;
        font-size: .9rem;
    }

    .btn-distributor {
        width: 100%;
        margin-top: 8px;
    }

    .kh-hero .container,
    .page-header .container,
    .kh-footer .container {
        max-width: calc(100% - 28px);
        padding-inline: 22px;
    }

    .kh-hero .row {
        --bs-gutter-y: 2rem;
    }

    .mascot-stage {
        min-height: 360px;
    }

    .product-mini-row,
    .animal-category-grid {
        max-width: 100%;
    }

    .home-products-showcase .product-mini-row > [class*="col-"] {
        width: 50%;
    }
}

@media (max-width: 991.98px) {
    .section {
        padding: 48px 0;
    }

    .section-tight {
        padding: 36px 0;
    }

    .section-head {
        margin-bottom: 24px;
    }

    .section-head h2 {
        font-size: clamp(1.55rem, 5vw, 2.15rem);
    }

    .kh-hero {
        padding: calc(var(--nav-h) + 18px) 0 44px;
    }

    .kh-hero .container {
        border-radius: 24px;
        padding: 26px 20px 24px;
    }

    .hero-title {
        font-size: clamp(3rem, 13vw, 4.7rem);
    }

    .hero-headline {
        font-size: clamp(1rem, 3.5vw, 1.2rem);
    }

    .hero-sub {
        font-size: .92rem;
        line-height: 1.62;
    }

    .hero-trust {
        align-items: flex-start;
    }

    .hero-badges {
        gap: 8px;
    }

    .hero-badge {
        font-size: .7rem;
        padding: 8px 11px;
    }

    .bento-grid-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-benefits-section .bento-card {
        min-height: 150px;
    }

    .about-panel {
        padding: 20px;
    }

    .about-scene {
        min-height: 250px;
    }

    .stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #health-map .row {
        --bs-gutter-y: 1rem;
    }

    .health-centre {
        min-height: 230px;
    }

    .health-centre img {
        height: 230px;
    }

    .home-products-showcase .product-mini-row > [class*="col-"] {
        width: 100%;
    }

    .home-products-showcase .bag-card {
        max-width: 560px;
        margin-inline: auto;
    }

    .home-process-section .step-rail,
    .home-story-section .story-rail {
        grid-template-columns: 1fr;
    }

    .home-process-section .rail-item,
    .home-story-section .srail-item {
        width: 100%;
        max-width: 620px;
        margin-inline: auto;
    }

    .story-line {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-header {
        padding: calc(var(--nav-h) + 22px) 0 34px;
    }

    .ph-layout,
    .page-header.has-visual .ph-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ph-visual {
        order: 0;
    }

    .ph-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card {
        max-width: 560px;
        margin-inline: auto;
    }

    .contact-aside {
        min-height: auto;
    }

    .sidebar-card {
        position: static !important;
    }

    .kh-footer {
        padding-top: 36px;
    }

    .kh-footer .row > [class*="col-"] {
        width: 50%;
    }

    .kh-footer .row > [class*="col-"]:first-child,
    .kh-footer .row > [class*="col-"]:last-child {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .container {
        max-width: calc(100% - 24px);
    }

    .kh-hero .container,
    .page-header .container,
    .kh-footer .container {
        max-width: calc(100% - 20px);
        padding-inline: 18px;
    }

    .d-flex.flex-wrap.gap-3,
    .ph-actions,
    .product-actions {
        gap: 10px !important;
    }

    .btn-lg-kh,
    .ph-actions .btn-lg-kh {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: .84rem;
    }

    .bento-grid-5 {
        grid-template-columns: 1fr;
    }

    .home-benefits-section .bento-card h3,
    .home-benefits-section .bento-card p,
    .bento-grid-5 .bento-card h3,
    .bento-grid-5 .bento-card p {
        max-width: calc(100% - 78px);
    }

    .about-panel h2,
    .page-header h1 {
        font-size: clamp(1.9rem, 9vw, 2.8rem);
    }

    .stat-strip {
        gap: 10px;
    }

    .home-story-section .story-rail {
        padding-inline: 0;
    }

    .story-line {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .ph-stats {
        grid-template-columns: 1fr;
    }

    .product-media,
    .detail-media img {
        aspect-ratio: 4 / 3;
    }

    .detail-media img {
        padding: 18px;
    }

    .spec-table th,
    .spec-table td {
        display: block;
        width: 100%;
    }

    .spec-table th {
        padding-bottom: 4px;
    }

    .spec-table td {
        padding-top: 4px;
    }

    .kh-form-card,
    .contact-aside {
        padding: 22px;
        border-radius: 20px;
    }

    .kh-footer .row > [class*="col-"] {
        width: 100% !important;
    }

    .footer-mascot {
        width: 118px;
    }

    .newsletter-card {
        max-width: 420px;
    }

    .footer-bottom,
    .footer-bottom .text-md-end {
        text-align: left !important;
    }

    .legal-links {
        justify-content: flex-start !important;
    }
}

@media (max-width: 575.98px) {
    :root {
        --nav-h: 68px;
    }

    .kh-navbar .container {
        min-height: 68px;
        padding-inline: 16px;
    }

    .kh-logo-text strong {
        font-size: 1.15rem;
    }

    .navbar-toggler {
        transform: scale(.92);
        transform-origin: right center;
    }

    .kh-hero {
        padding-top: calc(var(--nav-h) + 12px);
    }

    .kh-hero .container {
        border-radius: 20px;
    }

    .hero-title {
        font-size: clamp(2.6rem, 17vw, 3.6rem);
        line-height: .92;
    }

    .hero-kicker {
        font-size: .72rem;
    }

    .mascot-stage {
        min-height: 300px;
    }

    .nutri-bubble {
        transform: scale(.88);
    }

    .home-benefits-section,
    .home-products-showcase,
    .home-process-section,
    .home-story-section {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .home-benefits-section .bento-card {
        min-height: 142px;
    }

    .home-products-showcase .bag-visual {
        min-height: 170px;
    }

    .home-products-showcase .bag-card h3,
    .home-products-showcase .bag-tagline,
    .home-products-showcase .bag-points,
    .home-products-showcase .btn-bag {
        margin-left: 16px;
        margin-right: 16px;
    }

    .home-process-section .rail-item {
        padding: 18px 18px 18px 76px;
    }

    .home-story-section .srail-scene {
        width: 64px;
        height: 64px;
    }

    .cta-cow-visual {
        display: none;
    }

    .kh-cta {
        border-radius: 22px;
        margin-bottom: 0;
    }

    .wa-float {
        width: 52px;
        height: 52px;
        left: 16px;
        bottom: 16px;
    }

    #kh-top {
        right: 16px;
        bottom: 16px;
    }
}

/* --------------------------------------------------------------------------
   MOBILE / TABLET NAV MENU FIX
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .kh-navbar .navbar-collapse {
        margin-top: 10px;
        padding: 18px;
        border: 1px solid rgba(15, 23, 42, .08);
        border-radius: 22px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 18px 46px rgba(15, 23, 42, .12);
    }

    .kh-nav {
        width: 100%;
        gap: 6px;
    }

    .kh-nav .nav-item {
        width: 100%;
    }

    .kh-nav .nav-link {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 46px;
        padding: 10px 18px !important;
        border-radius: 16px;
        color: var(--kh-slate) !important;
        background: transparent !important;
        font-size: .92rem;
        font-weight: 800;
    }

    .kh-nav .nav-link::after {
        display: none !important;
    }

    .kh-nav .nav-link:hover {
        color: var(--kh-green-700) !important;
        background: rgba(23, 201, 100, .07) !important;
    }

    .kh-nav .nav-link.active {
        color: var(--kh-green-700) !important;
        background: var(--kh-green-soft) !important;
        box-shadow: inset 4px 0 0 var(--kh-green);
    }

    .kh-navbar .navbar-collapse .btn-distributor {
        min-height: 48px;
        margin-top: 14px;
        border-radius: 16px;
        font-size: .86rem;
    }
}

@media (max-width: 575.98px) {
    .kh-navbar .navbar-collapse {
        margin-inline: -2px;
        padding: 14px;
        border-radius: 20px;
    }

    .kh-nav .nav-link {
        min-height: 44px;
        padding: 9px 14px !important;
    }
}

/* --------------------------------------------------------------------------
   GLOBAL CONTENT ALIGNMENT
   -------------------------------------------------------------------------- */
:root {
    --site-max: 1320px;
    --site-gutter: clamp(18px, 4.6vw, 70px);
}

.kh-navbar > .container,
main > section > .container,
.page-header > .container,
.kh-footer > .container {
    width: min(var(--site-max), calc(100% - (var(--site-gutter) * 2)));
    max-width: var(--site-max);
    margin-left: auto;
    margin-right: auto;
}

.kh-navbar > .container,
.page-header > .container,
.kh-footer > .container {
    padding-left: 0;
    padding-right: 0;
}

main > section > .container {
    padding-left: 0;
    padding-right: 0;
}

.kh-hero > .container {
    width: min(var(--site-max), calc(100% - (var(--site-gutter) * 2)));
    max-width: var(--site-max);
    margin-left: auto;
    margin-right: auto;
}

.kh-hero > .container > .row {
    margin-left: 0;
    margin-right: 0;
}

.kh-footer .container {
    padding-inline: 0 !important;
}

@media (max-width: 1199.98px) {
    :root {
        --site-gutter: 22px;
    }

    .kh-navbar > .container {
        width: calc(100% - (var(--site-gutter) * 2));
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .kh-navbar .navbar-collapse {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    :root {
        --site-gutter: 12px;
    }

    .kh-navbar > .container,
    main > section > .container,
    .page-header > .container,
    .kh-footer > .container,
    .kh-hero > .container {
        width: calc(100% - (var(--site-gutter) * 2));
    }
}

/* --------------------------------------------------------------------------
   HOME ALIGNMENT REPAIR
   -------------------------------------------------------------------------- */
.kh-hero,
.home-benefits-section,
.section-tight:has(.about-panel),
.section:has(#health-map),
.home-products-showcase,
.home-process-section,
.home-story-section,
.section:has(.review-card),
.section-tight:has(.blog-card),
.section-tight:has(.kh-cta) {
    overflow-x: clip;
}

.kh-hero > .container,
.home-benefits-section > .container,
.section-tight:has(.about-panel) > .container,
.section:has(#health-map) > .container,
.home-products-showcase > .container,
.home-process-section > .container,
.home-story-section > .container,
.section:has(.review-card) > .container,
.section-tight:has(.blog-card) > .container,
.section-tight:has(.kh-cta) > .container {
    width: min(var(--site-max), calc(100% - (var(--site-gutter) * 2)));
    max-width: var(--site-max);
    margin-inline: auto;
}

.home-benefits-section .section-head,
.section-tight:has(.about-panel) .section-head,
.section:has(#health-map) .section-head,
.home-products-showcase .section-head,
.home-process-section .section-head,
.home-story-section .section-head,
.section:has(.review-card) .section-head {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.home-benefits-section .bento-grid-5,
.home-products-showcase .product-mini-row,
.home-process-section .step-rail,
.home-story-section .story-rail,
.section:has(.review-card) .row,
.section-tight:has(.blog-card) .row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.home-benefits-section .bento-grid-5,
.home-products-showcase .product-mini-row {
    max-width: 100%;
}

.about-panel,
.kh-cta {
    width: 100%;
}

.kh-hero > .container {
    padding-left: 0px;
    padding-right: 0px;
}

.home-benefits-section .bento-card,
.home-products-showcase .bag-card,
.home-process-section .rail-item,
.home-story-section .srail-item,
.review-card,
.blog-card {
    min-width: 0;
}

@media (min-width: 1200px) {
    .home-benefits-section .bento-grid-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .home-products-showcase .product-mini-row > [class*="col-"] {
        width: 33.333333%;
    }
}

@media (max-width: 991.98px) {
    .kh-hero > .container,
    .home-benefits-section > .container,
    .section-tight:has(.about-panel) > .container,
    .section:has(#health-map) > .container,
    .home-products-showcase > .container,
    .home-process-section > .container,
    .home-story-section > .container,
    .section:has(.review-card) > .container,
    .section-tight:has(.blog-card) > .container,
    .section-tight:has(.kh-cta) > .container {
        width: calc(100% - 28px);
    }
}

@media (max-width: 575.98px) {
    .kh-hero > .container,
    .home-benefits-section > .container,
    .section-tight:has(.about-panel) > .container,
    .section:has(#health-map) > .container,
    .home-products-showcase > .container,
    .home-process-section > .container,
    .home-story-section > .container,
    .section:has(.review-card) > .container,
    .section-tight:has(.blog-card) > .container,
    .section-tight:has(.kh-cta) > .container {
        width: calc(100% - 20px);
    }

    .kh-hero > .container {
        padding-left: 18px;
        padding-right: 18px;
    }
}
