/* ==================================================
   PT. JINSHENGDA TRADING INDONESIA
   Phase 1 Frontend Foundation
   ================================================== */

/* DESIGN TOKENS */
:root {
    --blue-light: #47a9e6;
    --blue-medium: #368ed2;
    --blue-primary: #256daf;
    --blue-dark: #174f86;
    --gold-primary: #deb03e;
    --gold-medium: #f3d063;
    --gold-light: #fdee8d;
    --navy: #163a5f;
    --footer-background: #102a43;
    --text-primary: #1f2933;
    --text-secondary: #667085;
    --text-light: #ffffff;
    --white: #ffffff;
    --background-light: #f7f9fb;
    --background-blue: #f2f8fc;
    --border-color: #e5e9ef;
    --card-background: #ffffff;
    --success: #267a52;
    --shadow-small: 0 8px 24px rgba(16, 42, 67, 0.06);
    --shadow-medium: 0 18px 46px rgba(16, 42, 67, 0.10);
    --container: 1200px;
    --header-height: 76px;
    --radius-small: 6px;
    --radius: 8px;
    --radius-large: 10px;
    --transition: 180ms ease;

    /* Semantic aliases retained for future CMS/theme integration */
    --primary-color: var(--blue-primary);
    --primary-dark: var(--blue-dark);
    --primary-light: var(--blue-light);
    --accent-color: var(--gold-primary);
    --accent-light: var(--gold-light);
    --text-color: var(--text-primary);
    --background-color: var(--white);
    --light-background: var(--background-light);
    --blue-background: var(--background-blue);
}

/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    max-width: 100%;
    margin: 0;
    overflow-x: clip;
    color: var(--text-primary);
    background: var(--white);
    font-family: Arial, Helvetica, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: var(--blue-primary);
    text-decoration: none;
}

a:hover {
    color: var(--blue-dark);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(71, 169, 230, 0.42);
    outline-offset: 3px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--navy);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    margin-bottom: 22px;
    font-size: clamp(2.3rem, 5vw, 4.25rem);
    letter-spacing: -0.04em;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    letter-spacing: -0.025em;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

p:last-child {
    margin-bottom: 0;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 80px 0;
}

.section--light {
    background: var(--background-light);
}

.section--blue {
    background: var(--background-blue);
}

.section-heading {
    max-width: 690px;
    margin-bottom: 40px;
}

.section-heading--center {
    margin-inline: auto;
    text-align: center;
}

.section-heading p,
.lead {
    color: var(--text-secondary);
    font-size: 1.08rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--blue-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

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

.accent-line {
    width: 52px;
    height: 3px;
    margin: 0 0 22px;
    border: 0;
    background: var(--gold-primary);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.text-link::after {
    content: "\2192";
    transition: transform var(--transition);
}

.text-link:hover::after {
    transform: translateX(4px);
}

.skip-link {
    position: fixed;
    z-index: 999;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    transform: translateY(-150%);
    border-radius: var(--radius-small);
    color: var(--white);
    background: var(--navy);
}

.skip-link:focus {
    transform: translateY(0);
}

/* BUTTONS */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid var(--blue-primary);
    border-radius: var(--radius-small);
    color: var(--white);
    background: var(--blue-primary);
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.button:hover {
    border-color: var(--blue-dark);
    color: var(--white);
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.button--secondary {
    color: var(--blue-dark);
    background: transparent;
}

.button--secondary:hover {
    color: var(--white);
}

.button--light {
    border-color: var(--white);
    color: var(--navy);
    background: var(--white);
}

.button--light:hover {
    border-color: var(--gold-medium);
    color: var(--navy);
    background: var(--gold-medium);
}

/* HEADER */
.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.97);
}

.site-header.is-scrolled {
    box-shadow: 0 8px 22px rgba(16, 42, 67, 0.06);
}

.header-inner {
    display: flex;
    min-height: var(--header-height);
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.header-inner > .brand {
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--navy);
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.015em;
    line-height: 1.15;
}

.brand:hover {
    color: var(--navy);
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 2px solid var(--blue-primary);
    border-radius: var(--radius-small);
    color: var(--blue-primary);
    font-size: 0.86rem;
    letter-spacing: 0;
}

.brand-logo {
    width: auto;
    height: 44px;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-name {
    max-width: 235px;
    overflow-wrap: anywhere;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: block;
    padding: 25px 13px 22px;
    border-bottom: 3px solid transparent;
    color: var(--text-primary);
    font-size: 0.94rem;
    font-weight: 700;
    transition: color var(--transition), border-color var(--transition);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    border-bottom-color: var(--blue-primary);
    color: var(--blue-primary);
}

.site-nav a.nav-hiflow-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 18px;
    padding-bottom: 15px;
}

.nav-hiflow-wordmark {
    display: block;
    width: auto;
    height: 30px;
    object-fit: contain;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    background: var(--white);
    cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
    display: block;
    width: 21px;
    height: 2px;
    background: var(--navy);
    content: "";
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle-lines {
    position: relative;
}

.nav-toggle-lines::before {
    position: absolute;
    top: -7px;
}

.nav-toggle-lines::after {
    position: absolute;
    top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0;
    background: linear-gradient(135deg, #f8fbfd 0%, var(--background-blue) 100%);
}

.hero::after {
    position: absolute;
    right: -140px;
    bottom: -210px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(37, 109, 175, 0.12);
    border-radius: 50%;
    content: "";
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    gap: clamp(40px, 7vw, 90px);
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    perspective: 1500px;
}

.hero-kicker {
    color: var(--blue-primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 720px;
    margin-bottom: 14px;
}

.hero-title-secondary {
    display: block;
    margin-top: 13px;
    color: var(--blue-dark);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    letter-spacing: -0.02em;
}

.hero .lead {
    max-width: 620px;
    margin-bottom: 30px;
}

.hero-grid > div:first-child {
    transition:
        opacity 0.44s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-grid.is-changing > div:first-child {
    opacity: 0.68;
    transform: translateX(-7px);
}

.hero-banner-picture {
    position: relative;
    display: block;
    min-height: 430px;
    overflow: hidden;
    border-left: 4px solid var(--gold-primary);
    border-radius: 0 var(--radius-large) var(--radius-large) 0;
    background: var(--background-light);
    box-shadow:
        0 28px 56px rgba(16, 42, 67, 0.18),
        0 8px 18px rgba(16, 42, 67, 0.10);
    opacity: 1;
    transform: rotateX(1deg) rotateY(-4deg) translateZ(0);
    backface-visibility: hidden;
    transform-origin: center;
    transform-style: preserve-3d;
    transition:
        opacity 0.5s ease,
        transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.5s ease,
        box-shadow 0.5s ease;
    will-change: opacity, transform;
}

.hero-banner-picture::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 34%, transparent 72%, rgba(16, 42, 67, 0.08));
    content: "";
    pointer-events: none;
}

.hero-grid.is-flipping-out-next .hero-banner-picture {
    transform-origin: left center;
    animation: hero-flip-out-next 720ms cubic-bezier(0.55, 0.06, 0.68, 0.19) both;
}

.hero-grid.is-flipping-in-next .hero-banner-picture {
    transform-origin: right center;
    animation: hero-flip-in-next 840ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-grid.is-flipping-out-previous .hero-banner-picture {
    transform-origin: right center;
    animation: hero-flip-out-previous 720ms cubic-bezier(0.55, 0.06, 0.68, 0.19) both;
}

.hero-grid.is-flipping-in-previous .hero-banner-picture {
    transform-origin: left center;
    animation: hero-flip-in-previous 840ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hero-flip-out-next {
    0% {
        opacity: 1;
        filter: blur(0);
        transform: rotateX(1deg) rotateY(-4deg) translate3d(0, 0, 0) scale(1);
    }
    100% {
        opacity: 0.14;
        filter: blur(1.2px);
        transform: rotateX(0) rotateY(-78deg) translate3d(-12px, 0, -38px) scale(0.96);
    }
}

@keyframes hero-flip-in-next {
    0% {
        opacity: 0.14;
        filter: blur(1.2px);
        transform: rotateX(0) rotateY(78deg) translate3d(12px, 0, -38px) scale(0.96);
    }
    72% {
        opacity: 1;
        filter: blur(0);
        transform: rotateX(0.5deg) rotateY(-5.5deg) translate3d(0, 0, 3px) scale(1.003);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: rotateX(1deg) rotateY(-4deg) translate3d(0, 0, 0) scale(1);
    }
}

@keyframes hero-flip-out-previous {
    0% {
        opacity: 1;
        filter: blur(0);
        transform: rotateX(1deg) rotateY(-4deg) translate3d(0, 0, 0) scale(1);
    }
    100% {
        opacity: 0.14;
        filter: blur(1.2px);
        transform: rotateX(0) rotateY(78deg) translate3d(12px, 0, -38px) scale(0.96);
    }
}

@keyframes hero-flip-in-previous {
    0% {
        opacity: 0.14;
        filter: blur(1.2px);
        transform: rotateX(0) rotateY(-78deg) translate3d(-12px, 0, -38px) scale(0.96);
    }
    72% {
        opacity: 1;
        filter: blur(0);
        transform: rotateX(0.5deg) rotateY(-2.5deg) translate3d(0, 0, 3px) scale(1.003);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: rotateX(1deg) rotateY(-4deg) translate3d(0, 0, 0) scale(1);
    }
}

.hero-grid.is-changing .hero-banner-picture:hover {
    transform: none;
}

.hero-banner-picture:hover {
    box-shadow:
        0 34px 66px rgba(16, 42, 67, 0.22),
        0 10px 22px rgba(16, 42, 67, 0.12);
    transform: rotateX(0) rotateY(-1deg) translate3d(0, -4px, 18px);
}

.hero-banner-image {
    width: 100%;
    height: 430px;
    object-fit: cover;
    transform: scale(1.015);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-banner-picture:hover .hero-banner-image {
    transform: scale(1.035);
}

.hero-slider-controls {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 30px;
}

.hero-slider-controls[hidden] {
    display: none;
}

.hero-slider-arrow,
.hero-slider-dot {
    border: 0;
    cursor: pointer;
}

.hero-slider-arrow {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--blue-dark);
    background: var(--white);
    font-size: 1.45rem;
    line-height: 1;
}

.hero-slider-arrow:hover,
.hero-slider-arrow:focus-visible {
    border-color: var(--blue-primary);
    color: var(--blue-primary);
}

.hero-slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    background: #aebdcc;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-slider-dot.is-active {
    width: 28px;
    background: var(--blue-primary);
}

/* PAGE HERO */
.page-hero {
    padding: 76px 0 70px;
    background: var(--background-blue);
}

.page-hero .container {
    max-width: 1200px;
}

.page-hero h1 {
    max-width: 850px;
    margin-bottom: 16px;
}

.page-hero p {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 1.12rem;
}

.breadcrumb {
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb li {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.breadcrumb li:not(:last-child)::after {
    margin-left: 7px;
    color: #98a2b3;
    content: "/";
}

.breadcrumb a {
    font-weight: 700;
}

/* MEDIA PLACEHOLDERS */
.image-placeholder {
    position: relative;
    display: grid;
    min-height: 330px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dce7f0;
    border-radius: var(--radius-large);
    color: var(--blue-dark);
    background: linear-gradient(135deg, #edf5fa, #f8fbfd);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-align: center;
    text-transform: uppercase;
}

.image-placeholder::before,
.image-placeholder::after {
    position: absolute;
    border: 1px solid rgba(37, 109, 175, 0.11);
    border-radius: 50%;
    content: "";
}

.image-placeholder::before {
    width: 210px;
    height: 210px;
    top: -105px;
    right: -55px;
}

.image-placeholder::after {
    width: 150px;
    height: 150px;
    bottom: -80px;
    left: -40px;
}

.image-placeholder--hero {
    min-height: 430px;
    border-left: 4px solid var(--gold-primary);
}

.image-placeholder--card {
    min-height: 205px;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
}

.image-placeholder--small {
    min-height: 110px;
}

.image-placeholder--article {
    min-height: 420px;
}

.homepage-media-slider {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid #dce7f0;
    border-radius: var(--radius);
    background: var(--background-blue);
    transition: opacity 0.2s ease;
}

.homepage-media-slider.is-changing {
    opacity: 0.35;
}

.homepage-media-slider__image {
    width: 100%;
    height: 330px;
    object-fit: cover;
}

.detail-page-media-slider,
.detail-page-media-slider .homepage-media-slider__image {
    min-height: 420px;
    height: 420px;
}

.homepage-media-slider__controls {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.homepage-media-slider__controls[hidden] {
    display: none;
}

.homepage-media-slider__controls > button {
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
}

.homepage-media-slider__controls [data-gallery-dots] {
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(16, 42, 67, 0.74);
}

.homepage-media-slider__controls [data-gallery-dots] button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.homepage-media-slider__controls [data-gallery-dots] button.is-active {
    background: var(--gold-medium);
}

/* COMPANY */
.split-layout {
    display: grid;
    align-items: center;
    gap: clamp(42px, 7vw, 88px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-layout--reverse .split-media {
    order: 2;
}

.content-block p {
    color: var(--text-secondary);
}

.content-block .button {
    margin-top: 12px;
}

.content-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-panel {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--white);
}

.content-panel p,
.content-panel li {
    color: var(--text-secondary);
}

.content-panel ul,
.feature-list {
    margin: 0;
    padding-left: 20px;
}

.content-panel li + li,
.feature-list li + li {
    margin-top: 8px;
}

.info-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-block {
    padding: 25px;
    border-top: 3px solid var(--blue-primary);
    background: var(--white);
    box-shadow: var(--shadow-small);
}

.info-block span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.info-block strong {
    color: var(--navy);
    font-size: 1.02rem;
}

.company-details {
    margin: 0;
}

.company-details div {
    display: grid;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    grid-template-columns: 170px 1fr;
}

.company-details dt {
    color: var(--navy);
    font-weight: 700;
}

.company-details dd {
    margin: 0;
    color: var(--text-secondary);
}

/* HIFLOW */
.brand-feature {
    position: relative;
}

.brand-feature::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 72px;
    height: 4px;
    background: var(--gold-primary);
    content: "";
}

.hiflow-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.hiflow-wordmark {
    display: inline-block;
    width: auto;
    height: clamp(42px, 4.2vw, 58px);
    object-fit: contain;
}

.brand-principles {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principle-card {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--white);
}

.principle-number {
    display: grid;
    width: 38px;
    height: 38px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: var(--radius-small);
    color: var(--navy);
    background: var(--gold-light);
    font-size: 0.84rem;
    font-weight: 800;
}

/* PRODUCTS */
.category-grid,
.product-grid,
.article-grid {
    display: grid;
    gap: 24px;
}

.category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid {
    gap: 16px;
    align-items: start;
    grid-template-columns: repeat(auto-fill, minmax(160px, 190px));
    justify-content: start;
}

.article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--card-background);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card:hover {
    border-color: #cad7e2;
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
}

.card-media {
    width: 100%;
    height: 205px;
    border-bottom: 1px solid var(--border-color);
    object-fit: cover;
    background: var(--background-light);
}

/* Product uploads are specified as square assets, so every product card keeps
   a true 1:1 media frame at all responsive widths. */
.product-card .card-media,
.product-card .image-placeholder--card {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-card .card-body {
    padding: 14px;
}

.product-card.card h2,
.product-card.card h3 {
    margin-bottom: 7px;
    font-size: 1rem;
}

.product-card.card p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 14px;
    font-size: 0.8rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-card .card-label {
    margin-bottom: 7px;
    font-size: 0.62rem;
}

.product-card .text-link {
    font-size: 0.82rem;
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

.card h2,
.card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    letter-spacing: 0;
}

.card h2 a,
.card h3 a {
    color: var(--navy);
}

.card h2 a:hover,
.card h3 a:hover {
    color: var(--blue-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.94rem;
}

.card .text-link {
    margin-top: auto;
}

.card-label {
    display: inline-block;
    margin-bottom: 11px;
    color: var(--blue-primary);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-date {
    margin: 4px 0 15px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.filter-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 34px;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--white);
}

.search-field {
    width: min(100%, 380px);
}

.form-label {
    display: block;
    margin-bottom: 7px;
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 700;
}

.form-control {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #cfd6df;
    border-radius: var(--radius-small);
    color: var(--text-primary);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px rgba(37, 109, 175, 0.12);
    outline: 0;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    color: var(--text-primary);
    background: var(--background-light);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
    border-color: var(--blue-primary);
    color: var(--white);
    background: var(--blue-primary);
}

.product-card[hidden] {
    display: none;
}

.catalog-status {
    min-height: 26px;
    margin: -17px 0 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.empty-state {
    display: none;
    padding: 38px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-align: center;
    background: var(--background-light);
}

.empty-state.is-visible {
    display: block;
}

.empty-state--static {
    display: block;
}

/* PRODUCT DETAIL */
.product-intro {
    display: grid;
    min-width: 0;
    align-items: start;
    gap: 56px;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
}

.product-intro > * {
    min-width: 0;
}

.product-intro h1 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.product-intro .lead {
    font-size: 1rem;
}

.product-commerce {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 22px;
}

.product-commerce strong {
    color: var(--navy);
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.product-commerce span,
.product-card-commerce span {
    color: var(--text-secondary);
    font-size: .875rem;
    font-weight: 650;
}

.product-card-commerce {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 4px 0 14px;
}

.product-card-commerce strong {
    color: var(--navy);
}

.product-gallery {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(88px, 112px));
    justify-content: start;
}

.product-gallery .image-placeholder:first-child {
    min-height: 0;
    aspect-ratio: 1 / 1;
    grid-column: 1 / -1;
}

.product-gallery .image-placeholder:not(:first-child) {
    min-height: 0;
    aspect-ratio: 1 / 1;
}

.product-gallery-image {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    object-fit: contain;
    background: var(--background-light);
}

.product-gallery-image--primary {
    grid-column: 1 / -1;
}

.product-meta {
    margin: 24px 0 30px;
    padding: 0;
    border-top: 1px solid var(--border-color);
}

.product-meta div {
    display: grid;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-color);
    grid-template-columns: 110px 1fr;
}

.product-meta dt {
    color: var(--text-secondary);
}

.product-meta dd {
    margin: 0;
    color: var(--navy);
    font-weight: 700;
}

.detail-sections {
    display: grid;
    min-width: 0;
    gap: 54px;
    grid-template-columns: minmax(0, 1fr);
}

.detail-section {
    width: 100%;
    min-width: 0;
    max-width: 850px;
}

.detail-section h2 {
    margin-bottom: 14px;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.detail-section p,
.detail-section li {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.table-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.spec-table th,
.spec-table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: 0;
}

.spec-table th {
    width: 38%;
    color: var(--navy);
    background: var(--background-light);
}

/* ARTICLES */
.article-header {
    max-width: 900px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-layout {
    display: grid;
    align-items: start;
    gap: 60px;
    grid-template-columns: minmax(0, 820px) minmax(220px, 1fr);
}

.article-content {
    color: var(--text-secondary);
    font-size: 1.03rem;
}

.article-content h2 {
    margin-top: 44px;
    font-size: 1.65rem;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content li + li {
    margin-top: 8px;
}

.article-featured-image {
    width: 100%;
    max-height: 620px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--background-light);
}

.article-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    padding: 24px;
    border-left: 3px solid var(--gold-primary);
    background: var(--background-light);
}

.article-sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-sidebar li + li {
    margin-top: 10px;
}

/* CONTACT */
.contact-layout {
    display: grid;
    align-items: start;
    gap: 60px;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
}

.contact-list {
    margin: 28px 0 0;
}

.contact-list div {
    padding: 17px 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-list dt {
    margin-bottom: 3px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-list dd {
    margin: 0;
    color: var(--navy);
    font-weight: 700;
}

.contact-form {
    padding: 34px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-small);
}

.form-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-note {
    margin: 14px 0 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

/* CTA */
.cta-section {
    position: relative;
    overflow: hidden;
    padding: 64px 0;
    background: linear-gradient(135deg, var(--navy), var(--blue-dark));
}

.cta-section::after {
    position: absolute;
    top: -100px;
    right: 8%;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    content: "";
}

.cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-section h2,
.cta-section p {
    color: var(--white);
}

.cta-section h2 {
    margin-bottom: 10px;
}

.cta-section p {
    max-width: 690px;
    margin-bottom: 0;
    opacity: 0.85;
}

/* FOOTER */
.site-footer {
    color: rgba(255, 255, 255, 0.75);
    background: var(--footer-background);
}

.footer-main {
    display: grid;
    gap: 52px;
    padding: 64px 0 50px;
    grid-template-columns: minmax(250px, 1.5fr) repeat(3, minmax(130px, 0.7fr));
}

.footer-brand {
    margin-bottom: 17px;
    color: var(--white);
}

.footer-brand .brand-logo {
    height: 48px;
}

.footer-about {
    max-width: 360px;
}

.footer-contact {
    max-width: 390px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.86rem;
    font-style: normal;
    line-height: 1.65;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.84);
}

.footer-contact a:hover {
    color: var(--gold-medium);
}

.footer-column h2 {
    margin-bottom: 17px;
    color: var(--white);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column li + li {
    margin-top: 9px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--gold-medium);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.83rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .section {
        padding: 64px 0;
    }

    .hero {
        padding: 72px 0;
    }

    .hero-grid {
        gap: 46px;
        grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    }

    .image-placeholder--hero {
        min-height: 360px;
    }

    .hero-banner-picture {
        min-height: 360px;
    }

    .hero-banner-image {
        height: 360px;
    }

    .detail-page-media-slider,
    .detail-page-media-slider .homepage-media-slider__image {
        min-height: 360px;
        height: 360px;
    }

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

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

    .footer-main {
        grid-template-columns: 1.5fr repeat(3, 0.75fr);
    }

    .filter-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-field {
        width: 100%;
    }

    .article-layout {
        grid-template-columns: minmax(0, 1fr) 230px;
    }
}

@media (max-width: 800px) {
    :root {
        --header-height: 68px;
    }

    .container {
        width: min(calc(100% - 36px), var(--container));
    }

    .header-inner {
        gap: 14px;
    }

    .header-inner > .brand {
        flex: 1 1 auto;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        left: 0;
        visibility: hidden;
        opacity: 0;
        background: var(--white);
        transform: translateY(-8px);
        transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    }

    .site-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .site-nav ul {
        display: block;
        width: min(calc(100% - 36px), var(--container));
        margin: 16px auto;
    }

    .site-nav a {
        padding: 15px 4px;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
    }

    .site-nav a.nav-hiflow-link {
        justify-content: flex-start;
        padding: 10px 4px;
    }

    .nav-hiflow-wordmark {
        height: 34px;
    }

    .site-nav a:hover,
    .site-nav a[aria-current="page"] {
        border-bottom-color: var(--border-color);
        color: var(--blue-primary);
    }

    .hero-grid,
    .split-layout,
    .product-intro,
    .contact-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .split-layout--reverse .split-media {
        order: 0;
    }

    .article-sidebar {
        position: static;
    }

    .brand-principles {
        grid-template-columns: 1fr;
    }

    .cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-main {
        gap: 38px;
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main > :first-child {
        grid-column: 1 / -1;
    }
}

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

    .page-hero {
        padding: 50px 0 46px;
    }

    .hero {
        padding: 54px 0;
    }

    .hero-grid {
        gap: 36px;
    }

    .image-placeholder--hero,
    .image-placeholder--article {
        min-height: 280px;
    }

    .hero-banner-picture {
        min-height: 280px;
    }

    .hero-banner-image {
        height: 280px;
    }

    .detail-page-media-slider,
    .detail-page-media-slider .homepage-media-slider__image {
        min-height: 280px;
        height: 280px;
    }

    .hiflow-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .hiflow-wordmark {
        height: 48px;
    }

    .hero-slider-controls {
        margin-top: 22px;
    }

    .category-grid,
    .article-grid,
    .content-grid,
    .info-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group--full {
        grid-column: auto;
    }

    .contact-form {
        padding: 24px 20px;
    }

    .filter-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-button {
        text-align: center;
    }

    .company-details div {
        gap: 4px;
        grid-template-columns: 1fr;
    }

    .product-gallery .image-placeholder:first-child {
        min-height: 310px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-main > :first-child {
        grid-column: auto;
    }
}

@media (max-width: 500px) {
    .container,
    .site-nav ul {
        width: min(calc(100% - 28px), 368px);
    }
}

@media (max-width: 480px) {
    .header-inner {
        gap: 10px;
    }

    .header-inner .brand {
        gap: 8px;
        font-size: 0.78rem;
        letter-spacing: 0;
    }

    .header-inner .brand-logo {
        height: 36px;
    }

    .header-inner .brand-name {
        max-width: 185px;
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}

@media (max-width: 400px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .brand {
        font-size: 0.78rem;
        letter-spacing: 0;
    }

    .brand-logo {
        height: 38px;
    }

    .brand-name {
        max-width: 175px;
    }

    .button-group .button {
        width: 100%;
    }

    .filter-buttons {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
