:root {
    --bg: #ffffff;
    --bg-dark: #babdbaf2;
    --panel-dark: #010409;
    --ink: #12161B;
    --steel: #00060b;
    --steel-light: #080114;
    --line: #1b1a19;
    --line-dark: #eceff3;
    --accent: #e0647d;
    --accent-ink: #e39415;
    --accent-soft: #EDE0C8;
    --teal: #12676A;
    --teal-ink: #0B4547;
    --teal-soft: #DCEEEC;
    --surface-alt: #f1f1f0;
    --max: 1200px;
    --radius: 1px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Archivo', system-ui, sans-serif;
    margin: 0;
    color: var(--ink);
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

button {
    font-family: inherit;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 28px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}


/* ---------- Header ---------- */

header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(244, 246, 244, 0.94);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}

.util-bar {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--line-dark);
}

.util-bar .wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 38px;
    gap: 2px;
}

.util-bar a {
    font-size: 0.8rem;
    color: #060111;
    padding: 6px 12px;
}

.util-bar a:hover {
    color: #f1c708;
}

@media (max-width:500px) {
    .util-bar {
        display: none;
    }
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
}

.logo svg {
    width: 30px;
    height: 30px;
    flex: none;
}

.logo .mark {
    color: var(--accent);
}

nav.primary {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--ink);
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--radius);
}

.nav-link:hover {
    text-decoration: none !important;
}

.nav-link .caret {
    width: 9px;
    height: 9px;
    transition: transform .18s ease;
}

.nav-item.open .caret {
    transform: rotate(180deg);
}

.mega {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px -20px rgba(20, 20, 20, 0.35);
    padding: 18px;
    min-width: 300px;
    display: none;
    border-radius: var(--radius);
}

.nav-item.open .mega {
    display: block;
}

.mega a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 10px;
    font-size: 0.9rem;
    color: var(--ink);
    border-radius: var(--radius);
}

.mega a:hover {
    background: var(--accent-soft);
}

.mega a small {
    color: var(--steel);
    font-size: 0.78rem;
    font-weight: 400;
}

.mega .pic {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega .pic img {
    width: 80%;
    height: 80px;
    object-fit: cover;
    border-radius: calc(var(--radius) - 4px);
    margin-bottom: 6px;
}

/* Products mega menu — Purlin Automation unified product navigation */
.mega-products {
    left: 0;
    top: 0;
    position: fixed;
    width: 960px;
    min-width: 0;
    box-sizing: border-box;
    padding: 30px 30px 32px;
    border-radius: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 28px;
    align-items: start;
}

.nav-item.open .mega-products {
    display: grid;
}

.mega-products .product-mega-item {
    min-width: 0;
    min-height: 185px;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 10px 6px 14px;
    background: transparent !important;
    color: #555;
    border-radius: 0;
    transition: color .18s ease, transform .42s cubic-bezier(.22,.61,.36,1);
}

.mega-products .product-mega-item:hover,
.mega-products .product-mega-item:focus-visible {
    background: transparent !important;
    color: #222;
    transform: translateY(-2px);
    outline: none;
}

.product-mega-icon {
    width: min(120px, 100%);
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 7px;
    transition: transform .42s cubic-bezier(.22,.61,.36,1);
}

.product-mega-icon img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-mega-icon svg {
    max-width: 100%;
    max-height: 100%;
}

.mega-products .product-mega-item:hover .product-mega-icon,
.mega-products .product-mega-item:focus-visible .product-mega-icon {
    transform: translateY(-3px) scale(1.025);
}

.product-mega-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #555;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mega-products .product-mega-item strong {
    position: relative;
    display: inline-block;
    font-size: .82rem;
    line-height: 1.35;
    font-weight: 400;
    color: #555;
    text-decoration: none !important;
}

.mega-products .product-mega-item strong::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: min(165px, 100%);
    height: 6px;
    transform: translateX(-50%);
    background: #1478b8;
    border-radius: 2px;
    pointer-events: none;
    clip-path: inset(0 100% 0 0);
    -webkit-clip-path: inset(0 100% 0 0);
    transition: clip-path .42s cubic-bezier(.22,.61,.36,1),
                -webkit-clip-path .42s cubic-bezier(.22,.61,.36,1);
}

.mega-products .product-mega-item:hover strong,
.mega-products .product-mega-item:focus-visible strong {
    color: #222;
}

.mega-products .product-mega-item:hover strong::after,
.mega-products .product-mega-item:focus-visible strong::after {
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
}

@media (max-width: 1100px) and (min-width: 961px) {
    .mega-products {
        width: min(960px, calc(100vw - 30px));
        padding-left: 22px;
        padding-right: 22px;
        column-gap: 18px;
    }
}

@media (max-width: 900px) and (min-width: 561px) {
    .mega-products {
        width: min(760px, calc(100vw - 32px));
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 22px 18px 26px;
        column-gap: 12px;
        row-gap: 18px;
    }

    .mega-products .product-mega-item {
        min-height: 155px;
        padding: 8px 4px 12px;
    }

    .product-mega-icon {
        width: min(105px, 100%);
        height: 92px;
    }
}

@media (max-width: 560px) {
    .mega-products {
        width: calc(100vw - 20px);
        max-width: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 18px 12px 22px;
        column-gap: 8px;
        row-gap: 12px;
    }

    .mega-products .product-mega-item {
        min-height: 130px;
        padding: 7px 3px 10px;
    }

    .product-mega-icon {
        width: min(88px, 100%);
        height: 74px;
        margin-bottom: 4px;
    }

    .mega-products .product-mega-item strong {
        font-size: .76rem;
    }

    .mega-products .product-mega-item strong::after {
        bottom: -7px;
        height: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mega-products {
        transition: none !important;
    }
    .mega-products .product-mega-item,
    .mega-products .product-mega-item .product-mega-icon,
    .mega-products .product-mega-item strong::after {
        transition: none;
    }
}

.mega.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 18px;
    min-width: 460px;
}

.nav-item.open .mega.grid2 {
    display: grid;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    background: none;
    color: var(--ink);
    cursor: pointer;
    position: relative;
    border-radius: 50%;
}

.icon-btn:hover {
    background: var(--surface-alt);
}

.icon-btn svg {
    width: 19px;
    height: 19px;
}

.icon-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    background: var(--accent);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

.lang-select .nav-link {
    padding: 10px 10px;
}

.lang-select .mega {
    right: auto;
    left: 0;
    min-width: 0;
}

.lang-select .mega a {
    flex-direction: row;
    justify-content: center;
}

.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

/* Purlin Automation-style full-width search panel */
.site-search-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 2500;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid #d8d8d8;
    box-shadow: 0 2px 7px rgba(0,0,0,.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.site-search-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-search-inner {
    position: relative;
    width: min(100% - 92px, 1280px);
    min-height: 150px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    padding: 24px 20px 18px;
    box-sizing: border-box;
}

.site-search-field {
    width: 100%;
}

.site-search-input {
    width: 100%;
    height: 70px;
    padding: 0 48px 0 0;
    border: 0;
    border-left: 2px solid #aaa;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #444;
    font-family: inherit;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 300;
    line-height: 1;
    box-sizing: border-box;
}

.site-search-input::placeholder {
    color: #a5a5a5;
    opacity: 1;
}

.site-search-hint {
    margin-top: 7px;
    padding-left: 0;
    color: #999;
    font-size: 14px;
    line-height: 1.4;
}

.site-search-close {
    flex: 0 0 auto;
    position: absolute;
    top: 28px;
    right: 20px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #333;
    cursor: pointer;
    font-size: 34px;
    font-weight: 300;
    line-height: 30px;
    padding: 0;
}

.site-search-close:hover {
    color: #000;
}

body.search-panel-open {
    overflow-x: hidden;
}

@media (max-width: 900px) {
    .site-search-inner {
        width: min(100% - 40px, 1280px);
        min-height: 135px;
        padding: 20px 12px 16px;
    }

    .site-search-input {
        height: 62px;
        font-size: clamp(34px, 7vw, 50px);
    }
}

@media (max-width: 560px) {
    .site-search-inner {
        width: 100%;
        min-height: 125px;
        padding: 18px 18px 14px;
    }

    .site-search-input {
        height: 54px;
        font-size: 31px;
        padding-right: 35px;
    }

    .site-search-hint {
        font-size: 12px;
    }

    .site-search-close {
        top: 20px;
        right: 12px;
        font-size: 30px;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-ink);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn-ghost:hover {
    border-color: var(--steel);
}

.btn-ghost-dark {
    background: transparent;
    color: #E7E9E1;
    border-color: var(--line-dark);
}

.btn-ghost-dark:hover {
    border-color: var(--steel-light);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    position: relative;
    transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle span::before {
    position: absolute;
    top: -6px;
}

.menu-toggle span::after {
    position: absolute;
    top: 6px;
}

.menu-toggle.active span {
    background: transparent;
}

.menu-toggle.active span::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width:960px) {
    nav.primary,
    .nav-cta .btn-ghost {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
}

#mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
}

#mobile-panel.active {
    display: block;
}

#mobile-panel .wrap {
    padding: 14px 28px 26px;
}

.m-group summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 2px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid var(--line);
}

.m-group summary::-webkit-details-marker {
    display: none;
}

.m-group[open] summary .caret {
    transform: rotate(180deg);
}

.m-group .caret {
    width: 10px;
    height: 10px;
    transition: transform .18s ease;
}

.m-sub {
    padding: 4px 2px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.m-sub a {
    font-size: 0.92rem;
    color: var(--steel);
}

.m-flat a {
    display: block;
    padding: 14px 2px;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
}


/* ---------- Hero ---------- */

.hero {
    padding: 0 0 34px;
    background: #fff;
}

.hero-slides {
    position: relative;
    width: min(1119px, calc(100% - 40px));
    height: 474px;
    min-height: 474px;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 45% 55%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.65s ease;
    background: #fff;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-media {
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #f4f4f2;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Optional product artwork slide: keep technical line-art fully visible. */
.hero-media-contain {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7faf9 0%, #edf3f0 100%);
}

.hero-media-contain img {
    width: 82%;
    height: 82%;
    object-fit: contain;
}

.hero-panel {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 100%;
    background: #3f6e5d;
}

.hero-text {
    max-width: 560px;
    padding: 54px 58px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.86rem;
    color: #ffffff;
    padding-bottom: 18px;
}

.kicker::before {
    content: "";
    width: 22px;
    height: 1px;
    background: #1478b8;
}

.hero h1 {
    font-size: clamp(2rem, 3.1vw, 3rem);
    line-height: 1.1;
    font-weight: 700;
    max-width: 17ch;
    color: #fff;
}

.hero-copy {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.65;
    color: #fff;
    max-width: 48ch;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.65);
    background: rgba(0,0,0,.16);
    color: #fff;
    font-size: .9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .2s ease;
}

.hero-arrow:hover {
    background: rgba(0,0,0,.35);
}

.hero-prev { left: 16px; }
.hero-next { right: 16px; }

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #1478b8;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.hero-dot.is-active {
    background: #1478b8;
}

@media (max-width: 900px) {
    .hero-slides {
        width: 100%;
        height: auto;
        min-height: 0;
    }
    .hero-slide {
        position: relative;
        display: none;
        grid-template-columns: 1fr;
    }
    .hero-slide.is-active {
        display: grid;
    }
    .hero-media {
        height: 300px;
    }
    .hero-panel {
        min-height: 360px;
    }
    .hero-text {
        padding: 42px 28px 70px;
    }
    .hero-arrow {
        top: 150px;
    }
}


/* ---------- Sections shared ---------- */

section {
    padding: 1px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.section-head h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    max-width: 16ch;
}

.section-head p {
    color: var(--steel);
    max-width: 42ch;
    font-size: 1rem;
}

.section-tag {
    font-size: 0.86rem;
    color: var(--accent-ink);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}


/* ---------- Intro / About ---------- */

.intro {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.intro .wrap {
    display: grid;
    grid-template-columns: 0.6fr 1.4fr;
    gap: 50px;
    padding: 70px 28px;
}

.intro-lead {
    font-size: 1.5rem;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    line-height: 1.32;
}

.intro-body {
    color: var(--steel);
    font-size: 1.02rem;
    max-width: 60ch;
}

.intro-body p+p {
    margin-top: 14px;
}


/* ---------- Product gallery (pictures) ---------- */


/*.gallery-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
}

.gallery-strip::-webkit-scrollbar {
    height: 6px;
}

.gallery-strip::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 4px;
}

.gallery-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    border: 1px solid var(--line);
    background: #fff;
    display: flex;
    flex-direction: column;
}

.gallery-pic {
    height: 180px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.gallery-pic svg,
.gallery-pic img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    color: var(--accent-ink);
}

.dash-line {
    animation: march 1.6s linear infinite;
}

.gallery-info {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gallery-info h3 {
    font-size: 1rem;
}

.gallery-info span {
    font-size: 0.84rem;
    color: var(--steel);
}


/*
:root {
    --ink: #1B1D21;
    --steel: #5B6470;
    --steel-light: #8C93A0;
    --line: #E4E1D8;
    --bg: #FFFFFF;
    --cream: #EFEAdd;
    --accent: #BF5B1E;
    --teal: #1E7370;
    --radius: 6px;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    padding: 48px 24px;
    background: var(--cream);
    font-family: 'Inter', Arial, sans-serif;
    color: var(--ink);
  }

  .wrap { max-width: 1200px; margin: 0 auto; }

  .heading { margin-bottom: 32px; }
  .heading span {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 8px;
  }
  .heading h1 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
  }

  /* ---------- the box grid ---------- */

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

.cat-box {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cat-box:hover {
    box-shadow: 0 10px 28px rgba(27, 29, 33, 0.12);
    transform: translateY(-3px);
}


/* picture area */

.cat-box .pic {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cream);
}

.cat-box .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.cat-box:hover .pic img {
    transform: scale(1.05);
}


/* shown automatically if the image fails to load / is a placeholder */

.cat-box .pic .no-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--steel-light);
    text-align: center;
    padding: 12px;
}

.cat-box .tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(27, 29, 33, 0.85);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}


/* details area */

.cat-box .body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.cat-box h3 {
    margin: 0;
    font-size: 1.1rem;
}

.cat-box .tagline {
    margin: -8px 0 0;
    font-size: 0.85rem;
    color: var(--teal);
    font-weight: 600;
}

.cat-box .desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--steel);
}

.cat-box .specs {
    list-style: none;
    margin: 4px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
}

.cat-box .specs li {
    font-size: 0.78rem;
    line-height: 1.4;
}

.cat-box .specs .k {
    display: block;
    color: var(--steel-light);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 0.68rem;
}

.cat-box .specs .v {
    display: block;
    font-weight: 600;
    color: var(--ink);
}

.cat-box .segments {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.cat-box .segments span {
    font-size: 0.72rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 3px 10px;
    color: var(--steel);
}

.cat-box .btn {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    padding-top: 8px;
}

.cat-box .btn:hover {
    text-decoration: underline;
}


/* ---------- About product ---------- */

.about-product {
    background: var(--bg-dark);
    color: #E7E9E1;
}

.about-product .wrap {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.about-product h2 {
    color: #fff;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    max-width: 14ch;
}

.about-product .lead {
    color: #C4C9C3;
    margin-top: 18px;
    font-size: 1.02rem;
    max-width: 44ch;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
}

.feature {
    border-top: 1px solid var(--line-dark);
    padding-top: 16px;
}

.feature h4 {
    font-size: 1rem;
    color: #fff;
}

.feature p {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--steel-light);
}

@media (max-width:800px) {
    .about-product .wrap {
        grid-template-columns: 1fr;
    }
    .feature-list {
        grid-template-columns: 1fr;
    }
}


/* ---------- Our Markets carousel ---------- */
.our-markets-carousel {
    padding: 24px 0 48px;
    background: #fff;
}

.market-heading {
    text-align: center;
    margin-bottom: 14px;
}

.market-heading h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--ink);
}

.market-carousel {
    position: relative;
    display: flex;
    align-items: center;
}

.market-viewport {
    width: 100%;
    overflow: hidden;
    padding: 2px 0 8px;
}

.market-track {
    display: flex;
    gap: 10px;
    will-change: transform;
    transition: transform .55s cubic-bezier(.22,.61,.36,1);
}

.market-card {
    flex: 0 0 calc((100% - 30px) / 4);
    min-width: 0;
    background: #fff;
    border: 1px solid #d8d8d8;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.market-card:hover,
.market-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(27,29,33,.12);
    border-color: #c8c8c8;
    outline: none;
}

.market-pic {
    height: 128px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e0e0e0;
    background: #f3f3f3;
}

.market-pic img,
.market-pic svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .45s ease;
}

.market-card:hover .market-pic img,
.market-card:focus-visible .market-pic img {
    transform: scale(1.045);
}

.market-body {
    padding: 10px 11px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
    min-height: 132px;
}

.market-card h3 {
    margin: 0;
    font-size: .93rem;
    font-weight: 500;
}

.market-card p {
    margin: 0;
    color: var(--steel);
    font-size: .76rem;
    line-height: 1.55;
}

.market-card .btn-learn {
    align-self: center;
    margin-top: auto;
    min-width: 96px;
    padding: 7px 16px;
    border-radius: 18px;
    background: #dedede;
    color: #4f4f4f;
    font-size: .74rem;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, color .2s ease;
}

.market-card .btn-learn:hover,
.market-card .btn-learn:focus-visible {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}

.market-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 44px;
    border: 0;
    background: rgba(255,255,255,.88);
    color: #c6c6c6;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.market-arrow:hover {
    color: #8f8f8f;
    background: #fff;
}

.market-arrow:active {
    transform: translateY(-50%) scale(.94);
}

.market-prev { left: -7px; }
.market-next { right: -7px; }

.market-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 9px;
}

.market-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d6d6d6;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.market-dot.is-active {
    background: var(--accent);
    transform: scale(1.35);
}

@media (max-width:900px) {
    .market-card {
        flex-basis: calc((100% - 10px) / 2);
    }
}

@media (max-width:620px) {
    .our-markets-carousel {
        padding: 28px 0 42px;
    }
    .market-heading h2 {
        font-size: 1.25rem;
    }
    .market-card {
        flex-basis: 100%;
    }
    .market-pic {
        height: 150px;
    }
    .market-body {
        min-height: 150px;
        padding: 11px 13px 14px;
    }
    .market-card p {
        font-size: .81rem;
    }
}



/* ---------- Categories & segments (tabbed) ---------- */

.categories {
    background: var(--surface-alt);
}

.cat-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    border: 1px solid var(--line);
    background: var(--bg);
}

.cat-tabs {
    border-right: 1px solid var(--line);
}

.cat-tab {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.cat-tab span.name {
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 0.96rem;
}

.cat-tab span.tag {
    font-size: 0.8rem;
    color: var(--steel);
}

.cat-tab:hover {
    background: var(--accent-soft);
}

.cat-tab.active {
    background: #fff;
    border-left: 3px solid var(--accent);
}

.cat-panel {
    padding: 40px;
}

.cat-pic {
    height: 220px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    margin-bottom: 28px;
}

.cat-pic svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cat-panel h3 {
    font-size: 1.5rem;
}

.cat-panel .desc {
    color: var(--steel);
    margin-top: 12px;
    max-width: 60ch;
}

.spec-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 30px;
    margin-top: 28px;
}

.spec-row {
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.spec-row .k {
    font-size: 0.78rem;
    color: var(--steel-light);
    text-transform: lowercase;
}

.spec-row .v {
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    margin-top: 2px;
}

.segment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.segment-list span {
    font-size: 0.84rem;
    padding: 7px 13px;
    border: 1px solid var(--line);
    background: #fff;
}

@media (max-width:800px) {
    .cat-layout {
        grid-template-columns: 1fr;
    }
    .cat-tabs {
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
    .cat-tab {
        border-bottom: none;
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .cat-tab.active {
        border-left: none;
        border-bottom: 3px solid var(--accent);
    }
    .cat-panel {
        padding: 28px 20px;
    }
}


/* ---------- Process ---------- */

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.process-step {
    border-top: 2px solid var(--ink);
    padding-top: 18px;
}

.process-step .idx {
    font-family: 'Archivo', sans-serif;
    font-size: 0.95rem;
    color: var(--accent-ink);
}

.process-step h3 {
    margin-top: 10px;
    font-size: 1.15rem;
}

.process-step p {
    margin-top: 10px;
    color: var(--steel);
    font-size: 0.94rem;
}

@media (max-width:800px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}


/* ---------- News ---------- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 22px;
}

.news-thumb {
    height: 160px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #E2E4DA, #EEF0EA);
    position: relative;
    overflow: hidden;
}

.news-thumb svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.news-tag {
    font-size: 0.78rem;
    color: var(--teal);
    font-weight: 600;
}

.news-card h3 {
    font-size: 1.05rem;
    line-height: 1.35;
}

.news-card p.excerpt {
    font-size: 0.9rem;
    color: var(--steel);
}

.news-date {
    font-size: 0.82rem;
    color: var(--steel-light);
}

.news-status {
    color: var(--steel);
    font-size: 0.9rem;
}

@media (max-width:900px) {
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}


/* ---------- Media (photos & videos) ---------- */

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.media-card {
    border: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
}

.media-thumb {
    height: 190px;
    position: relative;
    overflow: hidden;
    background: var(--accent-soft);
}

.media-thumb svg,
.media-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-kind {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 4px 9px;
    background: rgba(18, 22, 27, 0.82);
    color: #fff;
    border-radius: 20px;
}

.media-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 22, 27, 0.28);
}

.media-play::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 4px;
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent #fff;
}

.media-play-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1.5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-info {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.media-info h3 {
    font-size: 0.98rem;
    line-height: 1.35;
}

.media-info span.tag {
    font-size: 0.78rem;
    color: var(--teal);
    font-weight: 600;
}

.media-info span.date {
    font-size: 0.8rem;
    color: var(--steel-light);
}

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

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


/* ---------- FAQ ---------- */

.faq {
    background: var(--surface-alt);
}

.faq-list {
    max-width: 820px;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 4px;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 1.03rem;
}

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

.faq-item .plus {
    width: 16px;
    height: 16px;
    position: relative;
    flex: none;
}

.faq-item .plus::before,
.faq-item .plus::after {
    content: "";
    position: absolute;
    background: var(--ink);
}

.faq-item .plus::before {
    width: 16px;
    height: 2px;
    top: 7px;
    left: 0;
}

.faq-item .plus::after {
    width: 2px;
    height: 16px;
    top: 0;
    left: 7px;
    transition: transform .18s ease;
}

.faq-item[open] .plus::after {
    transform: rotate(90deg);
}

.faq-item .faq-a {
    padding: 0 4px 24px;
    color: var(--steel);
    max-width: 70ch;
    font-size: 0.98rem;
}

.faq-item .faq-a a {
    color: var(--accent-ink);
    font-weight: 600;
}

.faq-item .faq-a ul {
    margin-top: 8px;
    padding-left: 18px;
    list-style: disc;
}

.faq-item .faq-a li {
    margin-bottom: 4px;
}


/* ---------- Inquiry / contact form ---------- */

.contact-panel {
    background: #fff;
    border: 1px solid var(--line);
    padding: 34px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-panel h3 {
    color: var(--ink);
    font-size: 1.2rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 0.82rem;
    color: var(--steel);
}

.field input,
.field textarea,
.field select {
    border: 1px solid var(--line);
    padding: 10px 12px;
    font-size: 0.94rem;
    font-family: inherit;
    background: #fff;
    color: var(--ink);
    border-radius: var(--radius);
}

.field textarea {
    resize: vertical;
    min-height: 90px;
}

.form-msg {
    font-size: 0.86rem;
    padding: 10px 12px;
    border-radius: var(--radius);
    display: none;
}

.form-msg.show {
    display: block;
}

.form-msg.ok {
    background: var(--teal-soft);
    color: var(--teal-ink);
}

.form-msg.err {
    background: var(--accent-soft);
    color: var(--accent-ink);
}


/* ---------- CTA band ---------- */

.cta-band {
    background: var(--bg-dark);
    color: #E7E9E1;
}

.cta-band .wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    padding: 64px 28px;
    flex-wrap: wrap;
}

.cta-band h2 {
    color: #fff;
    font-size: 1.9rem;
    max-width: 16ch;
}

.cta-band p {
    color: var(--steel-light);
    margin-top: 10px;
    max-width: 40ch;
}

.cta-copy {
    flex: 1;
    min-width: 260px;
}


/* ---------- Footer ---------- */

footer {
    background: var(--panel-dark);
    color: #B3B9B2;
    padding: 64px 0 28px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--line-dark);
}

.foot-brand .logo {
    color: #fff;
}

.foot-brand p {
    margin-top: 16px;
    color: #848E86;
    font-size: 0.9rem;
    max-width: 32ch;
}

.foot-col h4 {
    font-size: 0.86rem;
    color: #848E86;
    font-weight: 600;
    margin-bottom: 16px;
}

.foot-col ul {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.foot-col a {
    font-size: 0.9rem;
    color: #D2D6CD;
}

.foot-col a:hover {
    color: #fff;
}

.foot-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.foot-social a {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.foot-social svg {
    width: 15px;
    height: 15px;
}

.foot-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 26px;
    font-size: 0.82rem;
    color: #767F77;
}

.foot-bottom .legal {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.foot-bottom a:hover {
    color: #E7E9E1;
}

@media (max-width:100px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:100px) {
    .foot-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width:100px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-art {
        order: -1;
    }
    .intro .wrap {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width:100px) {
    section {
        padding: 0px 0;
    }
    .hero {
        padding-top: 0px;
    }
}


/* ============================================================
   INVENTORY NAV ENTRY
   Added for the "Inventory" link that opens the stock app in
   /inventory/. Scoped to its own classes so nothing else in the
   header changes.
   ============================================================ */

.nav-link-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link-icon .nav-ico {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: var(--accent, #A3701F);
    transition: transform .18s ease;
}

.nav-link-icon:hover .nav-ico {
    transform: translateY(-1px);
}


/* The round icon button version sits next to favourites/search. It is
   an <a>, not a <button>, so it needs the button box styles restated. */

a.icon-btn {
    text-decoration: none;
}

a.icon-btn:hover {
    background: var(--surface-alt);
}


/* Mobile drawer entry — flagged so it reads as an app, not a page anchor. */

.m-flat a.m-inventory {
    font-weight: 600;
}

.m-flat a.m-inventory::after {
    content: "app";
    margin-left: 8px;
    padding: 1px 6px;
    border: 1px solid var(--line, #D6D9D2);
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--steel, #566068);
    vertical-align: middle
}
/* Products mega menu — align with the full header content width (logo to search) */
@media (min-width: 901px) {
    .mega-products {
        position: fixed;
        top: 114px;
        left: max(28px, calc((100vw - var(--max)) / 2 + 28px));
        right: max(28px, calc((100vw - var(--max)) / 2 + 28px));
        width: auto;
        min-width: 0;
        max-width: none;
        box-sizing: border-box;
        z-index: 90;
    }
}

/* Linear Actuator mega-menu wireframe icon */
.product-mega-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: none;
    transition: none;
}

.mega-products .product-mega-item:hover .product-mega-icon img {
    filter: none;
}


/* Linear Actuator icon — enlarged for clearer technical line visibility */
.mega-products .product-mega-item:first-child .product-mega-icon {
    width: 165px;
    height: 140px;
}

.mega-products .product-mega-item:first-child .product-mega-icon img {
    width: 165px;
    height: 140px;
    object-fit: contain;
}
/* Lifting Columns icon — bold CAD-style wireframe */
.mega-products .product-mega-item:nth-child(2) .product-mega-icon {
    width: 165px;
    height: 140px;
}

.mega-products .product-mega-item:nth-child(2) .product-mega-icon img {
    width: 165px;
    height: 140px;
    object-fit: contain;
}


/* Height Adjustable Desk Kits mega-menu wireframe icon */
.mega-products .product-mega-item:nth-child(3) .product-mega-icon {
    width: 165px;
    height: 140px;
}

.mega-products .product-mega-item:nth-child(3) .product-mega-icon img {
    width: 165px;
    height: 140px;
    object-fit: contain;
    filter: none;
}

.mega-products .product-mega-item:nth-child(3):hover .product-mega-icon img {
    filter: none;
}


/* Gear Motors mega-menu wireframe icon — matched to the other product icons */
.mega-products .product-mega-item:nth-child(4) .product-mega-icon {
    width: 165px;
    height: 140px;
}

.mega-products .product-mega-item:nth-child(4) .product-mega-icon img {
    width: 165px;
    height: 140px;
    object-fit: contain;
    filter: none;
}

.mega-products .product-mega-item:nth-child(4):hover .product-mega-icon img {
    filter: none;
}

/* ---------- Language mega menu — full-width Purlin Automation-style selector ---------- */
.language-mega {
    position: fixed;
    top: var(--language-menu-top, 114px);
    left: 0;
    right: 0;
    width: 100vw;
    min-width: 0;
    margin: 0;
    padding: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    z-index: 1001;
}

.nav-item.open .language-mega {
    display: block;
}

.language-mega-inner {
    width: min(1180px, calc(100vw - 64px));
    min-height: clamp(72px, 7vw, 84px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 clamp(12px, 2.1vw, 28px);
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #ddd;
}

.language-option {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    padding: 22px 0 20px !important;
    margin: 0 !important;
    color: #444 !important;
    background: transparent !important;
    border-radius: 0 !important;
    font-size: clamp(13px, 1.05vw, 15px) !important;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}

.language-option:hover,
.language-option.is-active {
    color: #222 !important;
    text-decoration: none !important;
}

.language-option::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #f3b900;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}

.language-option:hover::after,
.language-option.is-active::after {
    transform: scaleX(1);
}

.lang-select.open .nav-link {
    border-bottom: 3px solid #f3b900;
}

@media (max-width: 900px) {
    .language-mega-inner {
        width: calc(100vw - 40px);
        min-height: 58px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 0 22px;
        scrollbar-width: thin;
    }

    .language-option {
        flex: 0 0 auto;
        padding: 18px 0 16px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 560px) {
    .language-mega-inner {
        width: calc(100vw - 20px);
        gap: 0 18px;
    }
}

/* ---------- Our Markets mega menu — Purlin Automation-style category navigation ---------- */
.markets-mega {
    position: fixed;
    top: var(--markets-menu-top, 114px);
    left: 0;
    right: 0;
    width: 100vw;
    min-width: 0;
    padding: 0;
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    z-index: 1000;
}

.nav-item.open .markets-mega {
    display: block;
}

.markets-mega-tabs {
    min-height: clamp(72px, 7vw, 84px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.market-tab {
    position: relative;
    border: 0;
    background: transparent;
    padding: clamp(22px, 2.2vw, 28px) clamp(18px, 2.2vw, 26px) clamp(20px, 2vw, 25px);
    color: #444;
    font-size: clamp(14px, 1.15vw, 15px);
    font-weight: 400;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}

.market-tab:hover,
.market-tab.is-active {
    color: #222;
    background: #fafafa;
}

.market-tab::after {
    content: '';
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: -1px;
    height: 3px;
    background: #f3b900;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}

.market-tab.is-active::after {
    transform: scaleX(1);
}

.market-panel {
    width: min(1180px, calc(100vw - 64px));
    min-height: clamp(220px, 24vw, 280px);
    height: auto;
    margin: 0 auto;
    padding: clamp(20px, 2vw, 24px) 0 clamp(28px, 3vw, 38px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(28px, 4.2vw, 56px);
    row-gap: clamp(16px, 2vw, 24px);
}

.market-panel[hidden] {
    display: none;
}

.market-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.market-column a {
    display: block;
    width: 100%;
    padding: clamp(3px, .35vw, 4px) 0;
    color: #1f3d5a;
    font-size: clamp(13px, 1.05vw, 15px);
    line-height: 1.4;
    border-radius: 0;
}

.market-column a:first-child {
    padding-top: 0;
}

.market-column a:hover {
    background: transparent;
    color: #111;
    text-decoration: underline;
    text-decoration-color: #f3b900;
    text-underline-offset: 3px;
}

.market-column-bottom {
    grid-column: 1;
    margin-top: 18px;
}

@media (max-width: 900px) {
    .markets-mega {
        position: absolute;
        top: calc(100% + 10px);
        left: -20px;
        right: auto;
        width: min(760px, 94vw);
    }

    .markets-mega-tabs {
        min-height: 58px;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .market-tab {
        flex: 0 0 auto;
        padding: 18px 16px 16px;
        font-size: 13px;
    }

    .market-panel {
        width: calc(100% - 40px);
        max-width: none;
        margin: 0 auto;
        padding: 20px 0 28px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 28px;
        min-height: 220px;
    }
}

@media (max-width: 560px) {
    .markets-mega {
        left: -10px;
        width: calc(100vw - 20px);
    }

    .market-panel {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-bottom: 22px;
    }

    .market-column-bottom {
        grid-column: auto;
        margin-top: 0;
    }
}

/* ============================================================
   Mobile responsive overrides
   Keeps the desktop design intact while making the site easier
   to use on phones and small tablets.
   ============================================================ */
@media (max-width: 960px) {
    .wrap {
        width: 100%;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-row {
        height: 66px;
        gap: 10px;
    }

    .logo {
        min-width: 0;
        flex: 1 1 auto;
    }

    .logo img {
        width: min(170px, 52vw);
        height: auto;
        object-fit: contain;
    }

    .nav-cta {
        flex: 0 0 auto;
        gap: 2px;
    }

    .nav-cta > .icon-btn,
    .nav-cta > .lang-select {
        display: none;
    }

    .nav-cta .search-wrap,
    .nav-cta .menu-toggle {
        display: flex;
    }

    #mobile-panel .wrap {
        padding: 8px 20px 22px;
    }

    .m-group summary,
    .m-flat a {
        min-height: 48px;
    }

    .site-search-inner {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .intro .wrap,
    .about-product .wrap,
    .cat-layout {
        grid-template-columns: 1fr;
    }

    .intro .wrap {
        gap: 28px;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .about-product .wrap {
        gap: 36px;
    }

    .feature-list {
        grid-template-columns: 1fr 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    body {
        overflow-x: hidden;
    }

    .wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nav-row {
        height: 62px;
    }

    .logo img {
        width: min(150px, 48vw);
    }

    .icon-btn,
    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    #mobile-panel .wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Keep all mega menus out of the phone layout; the mobile panel
       provides the touch-friendly equivalent. */
    nav.primary {
        display: none !important;
    }

    .hero {
        padding-bottom: 20px;
    }

    .hero-slides {
        width: 100%;
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-media {
        height: 230px;
    }

    .hero-panel {
        min-height: 0;
    }

    .hero-text {
        width: 100%;
        max-width: none;
        padding: 30px 20px 54px;
    }

    .hero h1 {
        font-size: clamp(1.85rem, 9vw, 2.5rem);
        max-width: 18ch;
    }

    .hero-copy {
        font-size: .94rem;
        line-height: 1.55;
    }

    .hero-actions {
        margin-top: 22px;
        gap: 10px;
    }

    .hero-actions .btn {
        min-height: 44px;
        flex: 1 1 150px;
        text-align: center;
    }

    .hero-arrow {
        top: 115px;
        width: 36px;
        height: 36px;
    }

    .hero-prev { left: 10px; }
    .hero-next { right: 10px; }

    .hero-dots {
        bottom: 14px;
    }

    .section-head {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 28px;
    }

    .section-head h2 {
        max-width: none;
        font-size: clamp(1.55rem, 7vw, 2rem);
    }

    .section-head p {
        max-width: none;
        font-size: .94rem;
    }

    .cat-grid {
        grid-template-columns: 1fr;
    }

    .feature-list,
    .process-grid,
    .foot-grid {
        grid-template-columns: 1fr;
    }

    .markets-grid,
    .news-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .market-card {
        min-height: 0;
    }

    .market-pic {
        height: 160px;
    }

    .market-body {
        padding: 20px;
    }

    .cat-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .cat-tab {
        flex: 0 0 auto;
    }

    .cat-panel {
        padding: 22px 18px;
    }

    .contact-panel {
        width: 100%;
        max-width: none;
        padding: 22px 18px;
    }

    .cta-band .wrap {
        padding-top: 42px;
        padding-bottom: 42px;
        gap: 28px;
    }

    footer {
        padding-top: 44px;
    }

    .foot-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-search-panel {
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
    }

    .site-search-inner {
        min-height: 112px;
        padding: 16px;
    }

    .site-search-input {
        height: 52px;
        font-size: clamp(28px, 8vw, 38px);
    }
}

@media (max-width: 420px) {
    .logo img {
        width: 132px;
    }

    .nav-row {
        gap: 4px;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .hero-media {
        height: 205px;
    }

    .hero-text {
        padding: 26px 18px 50px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        flex-basis: auto;
    }

    .site-search-panel {
        top: 62px;
    }

    .site-search-inner {
        padding: 14px;
    }
}


/* ---------- Product Categories carousel ---------- */
.product-categories-carousel {
    padding: 42px 0 54px;
}

.product-categories-carousel .heading {
    text-align: center;
    margin-bottom: 18px;
}

.product-categories-carousel .heading h1 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 500;
    color: var(--ink);
}

.category-carousel {
    position: relative;
    display: flex;
    align-items: center;
}

.category-viewport {
    width: 100%;
    overflow: hidden;
    padding: 2px 0 10px;
}

.category-track {
    display: flex;
    gap: 12px;
    will-change: transform;
    transition: transform .55s cubic-bezier(.22,.61,.36,1);
}

.category-slide {
    flex: 0 0 calc((100% - 24px) / 3);
    min-width: 0;
    cursor: pointer;
    border-radius: 0;
    transition: transform .28s ease, box-shadow .28s ease;
}

.category-slide:hover,
.category-slide:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(27,29,33,.12);
    outline: none;
}

.category-slide .pic {
    aspect-ratio: 1.72 / 1;
    background: #f4f4f4;
}

.category-slide .pic img {
    object-fit: cover;
    transition: transform .45s ease;
}

.category-slide:hover .pic img,
.category-slide:focus-visible .pic img {
    transform: scale(1.045);
}

.category-slide .body {
    min-height: 136px;
    padding: 9px 11px 12px;
    gap: 6px;
}

.category-slide h3 {
    font-size: .96rem;
    font-weight: 500;
}

.category-slide .desc {
    margin: 0;
    font-size: .78rem;
    line-height: 1.55;
    color: var(--steel);
}

.category-slide .btn {
    display: none;
}

.category-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 44px;
    border: 0;
    background: rgba(255,255,255,.88);
    color: #c6c6c6;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.category-arrow:hover {
    color: #8f8f8f;
    background: #fff;
}

.category-arrow:active {
    transform: translateY(-50%) scale(.94);
}

.category-prev { left: -7px; }
.category-next { right: -7px; }

.category-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 9px;
}

.category-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d6d6d6;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.category-dot.is-active {
    background: var(--accent);
    transform: scale(1.35);
}

@media (max-width: 900px) {
    .category-slide {
        flex-basis: calc((100% - 12px) / 2);
    }
}

@media (max-width: 620px) {
    .product-categories-carousel {
        padding: 30px 0 42px;
    }

    .product-categories-carousel .heading h1 {
        font-size: 1.35rem;
    }

    .category-slide {
        flex-basis: 100%;
    }

    .category-slide .body {
        min-height: 142px;
        padding: 11px 13px 14px;
    }

    .category-slide .desc {
        font-size: .82rem;
    }

    .category-arrow {
        width: 26px;
        height: 40px;
    }

    .category-prev { left: -3px; }
    .category-next { right: -3px; }
}


/* Screenshot-matched Products mega menu: 4 columns x 2 rows */
@media (min-width: 901px) {
    .mega-products {
        position: fixed !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        column-gap: 12px !important;
        row-gap: 20px !important;
        padding: 28px 18px 30px !important;
        align-items: start !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity .18s ease, transform .22s cubic-bezier(.22,.61,.36,1), visibility .18s ease;
    }

    .mega-products .product-mega-item,
    .mega-products .product-mega-item:first-child,
    .mega-products .product-mega-item:nth-child(2),
    .mega-products .product-mega-item:nth-child(3),
    .mega-products .product-mega-item:nth-child(4),
    .mega-products .product-mega-item:nth-child(5),
    .mega-products .product-mega-item:nth-child(6),
    .mega-products .product-mega-item:nth-child(7),
    .mega-products .product-mega-item:nth-child(8) {
        min-height: 260px !important;
        height: 260px !important;
        padding: 6px 4px 12px !important;
        box-sizing: border-box;
        align-items: center;
        justify-content: flex-start;
    }

    .mega-products .product-mega-item .product-mega-icon,
    .mega-products .product-mega-item:first-child .product-mega-icon,
    .mega-products .product-mega-item:nth-child(2) .product-mega-icon,
    .mega-products .product-mega-item:nth-child(3) .product-mega-icon,
    .mega-products .product-mega-item:nth-child(4) .product-mega-icon,
    .mega-products .product-mega-item:nth-child(5) .product-mega-icon,
    .mega-products .product-mega-item:nth-child(6) .product-mega-icon,
    .mega-products .product-mega-item:nth-child(7) .product-mega-icon,
    .mega-products .product-mega-item:nth-child(8) .product-mega-icon {
        width: min(220px, 100%) !important;
        height: 205px !important;
        max-width: 100%;
        margin-bottom: 7px !important;
        flex: 0 0 205px;
    }

    .mega-products .product-mega-item .product-mega-icon img,
    .mega-products .product-mega-item:first-child .product-mega-icon img,
    .mega-products .product-mega-item:nth-child(2) .product-mega-icon img,
    .mega-products .product-mega-item:nth-child(3) .product-mega-icon img,
    .mega-products .product-mega-item:nth-child(4) .product-mega-icon img,
    .mega-products .product-mega-item:nth-child(5) .product-mega-icon img,
    .mega-products .product-mega-item:nth-child(6) .product-mega-icon img,
    .mega-products .product-mega-item:nth-child(7) .product-mega-icon img,
    .mega-products .product-mega-item:nth-child(8) .product-mega-icon img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    /* Keep the existing hover animation/effect on every product. */
    .nav-item.open .mega-products {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mega-products .product-mega-item {
        transition: color .18s ease, transform .42s cubic-bezier(.22,.61,.36,1) !important;
    }

    .mega-products .product-mega-item:hover,
    .mega-products .product-mega-item:focus-visible {
        transform: translateY(-2px);
    }

    .mega-products .product-mega-item:hover .product-mega-icon,
    .mega-products .product-mega-item:focus-visible .product-mega-icon {
        transform: translateY(-3px) scale(1.025);
    }
}

@media (max-width: 900px) and (min-width: 561px) {
    .mega-products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        row-gap: 16px !important;
    }
    .mega-products .product-mega-item {
        min-height: 185px !important;
        height: auto !important;
    }
    .mega-products .product-mega-item .product-mega-icon {
        width: min(135px, 100%) !important;
        height: 115px !important;
        flex-basis: 115px;
    }
}

@media (max-width: 560px) {
    .mega-products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        row-gap: 12px !important;
    }
    .mega-products .product-mega-item {
        min-height: 155px !important;
        height: auto !important;
    }
    .mega-products .product-mega-item .product-mega-icon {
        width: min(108px, 100%) !important;
        height: 92px !important;
        flex-basis: 92px;
    }
}
