/*
Theme Name: Corten Steel
Theme URI: https://example.com/corten-steel
Author: Kimi Code
Author URI: https://example.com
Description: B2B WordPress theme for Corten Steel outdoor landscape metal manufacturer. High-fidelity conversion of the Cortex Steel Solutions design with SEO-locked copy and RFQ inquiry flow.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: corten-steel
Tags: custom-header, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog
*/

/* ============================================
   CSS Variables (Customizer-driven)
   ============================================ */
:root {
    /* Brand */
    --cs-primary: #dd5a1e;
    --cs-primary-hover: #bf4813;
    --cs-primary-light: #fceee6;
    --cs-secondary: #1f1f1f;
    --cs-accent: #dd5a1e;
    --cs-danger: #dc2626;

    /* Backgrounds */
    --cs-bg: #ffffff;
    --cs-bg-warm: #f5f5f5;
    --cs-bg-cream: #faf8f5;
    --cs-card-bg: #ffffff;
    --cs-footer-bg: #2b2b2b;

    /* Text */
    --cs-text: #1a1a1a;
    --cs-text-secondary: #7a7a7a;
    --cs-text-muted: #999999;
    --cs-link: #dd5a1e;
    --cs-link-hover: #bf4813;
    --cs-on-dark: #ffffff;

    /* UI */
    --cs-border: #eaeaea;
    --cs-border-light: #f3f3f3;
    --cs-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --cs-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.05);
    --cs-radius: 8px;
    --cs-radius-sm: 4px;

    /* Typography */
    --cs-font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --cs-font-serif: 'Libre Baskerville', 'Noto Serif SC', Georgia, serif;
    --cs-font-title: 'Libre Baskerville', 'Noto Serif SC', Georgia, serif;
    --cs-font-body: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
    --cs-font-size-base: 16px;
    --cs-line-height: 1.65;

    /* Layout */
    --cs-container: 1440px;
    --cs-header-height: 86px;
    --cs-section-py: 80px;
    --cs-section-py-lg: 100px;
    --cs-section-py-sm: 64px;
}

/* ============================================
   Base Reset
   ============================================ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--cs-font-body);
    font-size: var(--cs-font-size-base);
    line-height: var(--cs-line-height);
    color: var(--cs-text);
    background-color: var(--cs-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--cs-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--cs-link-hover);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    font-family: var(--cs-font-title);
    font-weight: 400;
    line-height: 1.2;
    color: var(--cs-text);
}

p {
    margin: 0 0 1rem;
}

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

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* WordPress alignment helpers */
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================================
   Layout Helpers
   ============================================ */
.cs-container {
    width: 100%;
    max-width: var(--cs-container);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.cs-section {
    padding-top: var(--cs-section-py);
    padding-bottom: var(--cs-section-py);
}

.cs-section-lg {
    padding-top: var(--cs-section-py-lg);
    padding-bottom: var(--cs-section-py-lg);
}

.cs-section-sm {
    padding-top: var(--cs-section-py-sm);
    padding-bottom: var(--cs-section-py-sm);
}

.cs-bg-warm { background-color: var(--cs-bg-warm); }
.cs-bg-cream { background-color: var(--cs-bg-cream); }

.cs-section-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.cs-section-header-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .cs-section-header-row {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.cs-section-label {
    display: block;
    font-family: var(--cs-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cs-text-secondary);
    margin-bottom: 10px;
}

.cs-section-label-primary {
    color: var(--cs-primary);
}

.cs-section-title {
    font-size: 28px;
    line-height: 1.2;
    color: var(--cs-text);
    margin: 0;
}

@media (min-width: 768px) {
    .cs-section-title {
        font-size: 32px;
    }
}

.cs-section-desc {
    font-size: 15px;
    color: var(--cs-text-secondary);
    margin: 0;
    max-width: 600px;
}

.cs-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cs-primary);
    transition: gap 0.3s ease;
}

.cs-link-arrow:hover {
    gap: 10px;
    color: var(--cs-primary-hover);
}

.cs-link-arrow svg {
    width: 14px;
    height: 14px;
}

.cs-grid-2 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 20px; }
.cs-grid-3 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 20px; }
.cs-grid-4 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 20px; }

@media (min-width: 640px) {
    .cs-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .cs-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .cs-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .cs-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .cs-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   Buttons
   ============================================ */
.cs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--cs-radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cs-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.cs-btn:hover svg {
    transform: translateX(3px);
}

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

.cs-btn-primary:hover {
    background-color: var(--cs-primary-hover);
    border-color: var(--cs-primary-hover);
    color: #fff;
}

.cs-btn-outline {
    background-color: transparent;
    color: var(--cs-text);
    border-color: var(--cs-border);
}

.cs-btn-outline:hover {
    border-color: var(--cs-primary);
    color: var(--cs-primary);
    background-color: transparent;
}

.cs-btn-outline-primary {
    background-color: transparent;
    color: var(--cs-primary);
    border-color: var(--cs-primary);
}

.cs-btn-outline-primary:hover {
    background-color: var(--cs-primary);
    color: #fff;
}

.cs-btn-outline-light {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.cs-btn-outline-light:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--cs-text);
}

/* ============================================
   Promo Bar
   ============================================ */
.cs-promo-bar {
    position: relative;
    background-color: var(--cs-primary);
    color: #fff;
    font-size: 13px;
    padding: 10px 0;
}

.cs-promo-bar.is-hidden {
    display: none;
}

.cs-promo-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding-right: 32px;
}

.cs-promo-bar a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.cs-promo-bar-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    padding: 4px;
    line-height: 1;
}

.cs-promo-bar-close svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Top Bar
   ============================================ */
.cs-top-bar {
    background-color: #fff;
    border-bottom: 1px solid var(--cs-border);
    font-size: 12px;
    color: var(--cs-text-secondary);
}

.cs-top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
}

.cs-top-bar-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cs-top-bar-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.4;
}

.cs-top-bar a {
    color: var(--cs-text-secondary);
}

.cs-top-bar a:hover {
    color: var(--cs-text);
}

@media (max-width: 639px) {
    .cs-top-bar-text {
        display: none;
    }

    .cs-top-bar-inner {
        justify-content: center;
    }
}

/* ============================================
   Header
   ============================================ */
.cs-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    border-bottom: 1px solid var(--cs-border);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.cs-header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: var(--cs-shadow-sm);
}

/* Solid white header on front page (Gnee-style) — the hero image sits below the bar */
body.cs-front-page {
    background-color: var(--cs-bg);
}

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

.cs-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cs-logo img {
    height: 40px;
    width: auto;
}

.cs-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cs-primary) 0%, #b8410f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(221, 90, 30, 0.28);
}

.cs-logo-mark svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.cs-logo-text {
    display: flex;
    flex-direction: column;
}

.cs-logo-main {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    color: var(--cs-text);
}

.cs-logo-sub {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cs-text-secondary);
    line-height: 1;
    margin-top: 3px;
}

/* Navigation */
.cs-main-nav {
    display: none;
}

@media (min-width: 1024px) {
    .cs-main-nav {
        display: flex;
        flex: 1;
        justify-content: center;
    }

    .cs-main-nav ul {
        display: flex;
        align-items: center;
        gap: 38px;
    }

    .cs-main-nav li {
        position: relative;
    }

    .cs-main-nav a {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        color: var(--cs-secondary);
        padding: 8px 0;
    }

    .cs-main-nav a:hover,
    .cs-main-nav .current-menu-item a,
    .cs-main-nav .current_page_item a {
        color: var(--cs-primary);
    }

    .cs-main-nav .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 8px;
        min-width: 180px;
        background: #fff;
        border: 1px solid var(--cs-border);
        border-radius: var(--cs-radius-sm);
        box-shadow: var(--cs-shadow-sm);
        padding: 8px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: all 0.2s ease;
    }

    .cs-main-nav li:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .cs-main-nav .sub-menu a {
        display: block;
        padding: 8px 16px;
        font-size: 13px;
        text-transform: none;
        letter-spacing: 0;
    }

    .cs-main-nav .sub-menu a:hover {
        background-color: var(--cs-bg-warm);
    }
}

/* Header Actions */
.cs-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cs-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--cs-text);
    transition: color 0.2s ease;
}

.cs-header-icon:hover {
    color: var(--cs-primary);
}

.cs-header-icon svg {
    width: 18px;
    height: 18px;
}

.cs-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.cs-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--cs-text);
    transition: all 0.3s ease;
}

.cs-menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cs-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.cs-menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
    .cs-menu-toggle { display: none; }
}

/* Mobile Menu */
.cs-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: #fff;
    padding: 100px 24px 24px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cs-mobile-menu.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.cs-mobile-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--cs-text);
    border-bottom: 1px solid var(--cs-border);
}

.cs-mobile-menu a:hover {
    color: var(--cs-primary);
}

.cs-mobile-menu .cs-btn {
    margin-top: 24px;
    width: 100%;
}

/* ============================================
   Hero Section — Immersive Full-Screen Banner
   ============================================ */
.cs-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 78vh;
    background-color: #1a1a1a;
    overflow: hidden;
}

.cs-hero-bg,
.cs-hero-overlay {
    position: absolute;
    inset: 0;
}

.cs-hero-bg {
    z-index: 1;
}

.cs-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-hero-overlay {
    z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(26, 26, 26, 0.82) 0%,
        rgba(26, 26, 26, 0.55) 50%,
        rgba(26, 26, 26, 0.25) 100%
    );
}

@media (max-width: 1023px) {
    .cs-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(26, 26, 26, 0.78) 0%,
            rgba(26, 26, 26, 0.55) 60%,
            rgba(26, 26, 26, 0.35) 100%
        );
    }
}

.cs-hero-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--cs-container);
    margin: 0 auto;
    padding: 72px 24px 80px;
    display: flex;
    align-items: center;
    min-height: 78vh;
}

.cs-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;
}

.cs-hero-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cs-primary);
    margin-bottom: 16px;
}

.cs-hero-title {
    font-size: 34px;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 640px;
    color: #fff;
}

@media (min-width: 640px) {
    .cs-hero-title {
        font-size: 44px;
        max-width: 700px;
    }
}

@media (min-width: 1024px) {
    .cs-hero-title {
        font-size: 56px;
        max-width: 780px;
    }
}

@media (min-width: 1280px) {
    .cs-hero-title {
        font-size: 68px;
        max-width: 900px;
    }
}

.cs-hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 32px;
    max-width: 560px;
    line-height: 1.75;
}

@media (min-width: 1024px) {
    .cs-hero-desc {
        font-size: 17px;
        max-width: 600px;
    }
}

.cs-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ============================================
   Trust Badges
   ============================================ */
.cs-trust-bar {
    background-color: #fff;
    border-bottom: 1px solid var(--cs-border);
    padding: 32px 0;
}

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

@media (min-width: 1024px) {
    .cs-trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cs-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cs-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--cs-primary-light);
    color: var(--cs-primary);
    flex-shrink: 0;
}

.cs-trust-icon svg {
    width: 24px;
    height: 24px;
}

.cs-trust-title {
    font-family: var(--cs-font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin: 0 0 4px;
    color: var(--cs-text);
}

.cs-trust-desc {
    font-size: 13px;
    color: var(--cs-text-muted);
    margin: 0;
}

/* ============================================
   Product Categories
   ============================================ */
.cs-categories {
    background-color: #fff;
}

.cs-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: var(--cs-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cs-shadow);
}

.cs-category-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--cs-radius);
    flex-shrink: 0;
}

.cs-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cs-category-card:hover .cs-category-image img {
    transform: scale(1.05);
}

.cs-category-body {
    padding: 18px 0 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cs-category-body .cs-link-arrow {
    margin-top: auto;
}

.cs-category-title {
    font-family: var(--cs-font-body);
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 8px;
    color: var(--cs-text);
}

.cs-category-desc {
    font-size: 13px;
    color: var(--cs-text-secondary);
    margin: 0 0 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) and (max-width: 1023px) {
    .cs-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Materials Section
   ============================================ */
.cs-materials {
    background-color: #fff;
}

.cs-materials-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .cs-materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cs-materials-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cs-material-card {
    position: relative;
    min-height: 280px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    overflow: hidden;
    transition: filter 0.3s ease;
}

.cs-material-card:hover {
    filter: brightness(1.1);
}

.cs-material-card:nth-child(1) { background: linear-gradient(135deg, #3d1f1a, #7a3e2f); }
.cs-material-card:nth-child(2) { background: linear-gradient(135deg, #374151, #4b5563); }
.cs-material-card:nth-child(3) { background: linear-gradient(135deg, #1f2937, #374151); }
.cs-material-card:nth-child(4) { background: linear-gradient(135deg, #4a2c1a, #7a4a2f); }

.cs-material-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.cs-material-title {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.cs-material-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 16px;
    line-height: 1.55;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.cs-material-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    transition: gap 0.3s ease;
}

.cs-material-link:hover {
    color: #fff;
    gap: 10px;
}

.cs-material-link svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   Projects Section
   ============================================ */
.cs-projects {
    background-color: var(--cs-bg-warm);
}

.cs-projects-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.cs-projects-tab {
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cs-text-secondary);
    background-color: #fff;
    border: 1px solid var(--cs-border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cs-projects-tab:hover,
.cs-projects-tab.is-active {
    background-color: var(--cs-primary);
    border-color: var(--cs-primary);
    color: #fff;
}

.cs-projects-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

@media (min-width: 640px) {
    .cs-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cs-projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cs-project-card {
    position: relative;
    display: block;
    background-color: #fff;
    border-radius: var(--cs-radius);
    overflow: hidden;
    box-shadow: var(--cs-shadow-sm);
    transition: box-shadow 0.3s ease;
}

.cs-project-card:hover {
    box-shadow: var(--cs-shadow);
}

.cs-project-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.cs-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cs-project-card:hover .cs-project-image img {
    transform: scale(1.05);
}

.cs-project-body {
    padding: 16px;
}

.cs-project-title {
    font-family: var(--cs-font-body);
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 4px;
    color: var(--cs-text);
}

.cs-project-location {
    font-size: 12px;
    color: var(--cs-text-secondary);
    margin: 0;
}

/* ============================================
   Solutions Section
   ============================================ */
.cs-solutions {
    background-color: #fff;
}

.cs-solutions-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

@media (min-width: 640px) {
    .cs-solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cs-solutions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cs-solution-card {
    padding: 32px 24px;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    background-color: #fff;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cs-solution-card:hover {
    border-color: var(--cs-primary);
    box-shadow: var(--cs-shadow);
}

.cs-solution-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--cs-primary-light);
    color: var(--cs-primary);
    margin-bottom: 18px;
}

.cs-solution-icon svg {
    width: 26px;
    height: 26px;
}

.cs-solution-title {
    font-family: var(--cs-font-body);
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 8px;
    color: var(--cs-text);
}

.cs-solution-desc {
    font-size: 13px;
    color: var(--cs-text-secondary);
    margin: 0 0 20px;
    line-height: 1.55;
}

.cs-solution-card .cs-link-arrow {
    margin-top: auto;
    justify-content: center;
}

/* ============================================
   Manufacturing Section
   ============================================ */
.cs-manufacturing {
    background-color: var(--cs-bg-warm);
}

.cs-manufacturing-inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    .cs-manufacturing-inner {
        flex-direction: row;
        gap: 48px;
        align-items: stretch;
    }

    .cs-manufacturing-text { width: 38%; }
    .cs-manufacturing-image { width: 34%; }
    .cs-manufacturing-stats { width: 28%; }
}

.cs-manufacturing-text {
    flex-shrink: 0;
}

.cs-manufacturing-text .cs-section-title {
    font-size: 28px;
    line-height: 1.2;
}

.cs-manufacturing-image {
    display: flex;
    align-items: center;
}

.cs-manufacturing-image img {
    width: 100%;
    border-radius: var(--cs-radius);
    box-shadow: var(--cs-shadow-sm);
}

.cs-manufacturing-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
    align-content: center;
}

.cs-stat-item {
    text-align: center;
}

@media (min-width: 1024px) {
    .cs-stat-item {
        text-align: left;
    }
}

.cs-stat-icon {
    display: inline-flex;
    color: var(--cs-primary);
    margin-bottom: 10px;
}

.cs-stat-icon svg {
    width: 28px;
    height: 28px;
}

.cs-stat-value {
    font-family: var(--cs-font-body);
    font-size: 24px;
    font-weight: 600;
    color: var(--cs-text);
    line-height: 1.2;
    margin-bottom: 4px;
}

.cs-stat-unit {
    font-size: 13px;
    font-weight: 400;
    color: var(--cs-text-secondary);
}

.cs-stat-label {
    font-size: 11px;
    color: var(--cs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.cs-process-list {
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.cs-process-list li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--cs-text-secondary);
    padding: 10px 0;
    border-bottom: 1px solid var(--cs-border);
    line-height: 1.5;
}

.cs-process-list li svg {
    width: 16px;
    height: 16px;
    color: var(--cs-primary);
    margin-top: 1px;
    flex-shrink: 0;
}

/* ============================================
   Insights / Blog Section
   ============================================ */
.cs-insights {
    background-color: #fff;
}

.cs-insight-card {
    position: relative;
    display: block;
    background-color: #fff;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.cs-insight-card:hover {
    box-shadow: var(--cs-shadow);
}

.cs-insight-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.cs-insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cs-insight-card:hover .cs-insight-image img {
    transform: scale(1.05);
}

.cs-insight-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--cs-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--cs-radius-sm);
}

.cs-insight-body {
    padding: 16px;
}

.cs-insight-date {
    font-size: 12px;
    color: var(--cs-text-muted);
    margin: 0 0 8px;
}

.cs-insight-title {
    font-family: var(--cs-font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 8px;
    color: var(--cs-text);
}

.cs-insight-desc {
    font-size: 13px;
    color: var(--cs-text-secondary);
    line-height: 1.55;
    margin: 0 0 12px;
}

/* ============================================
   Footer
   ============================================ */
.cs-footer {
    background-color: var(--cs-footer-bg);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.cs-footer a {
    color: rgba(255, 255, 255, 0.6);
}

.cs-footer a:hover {
    color: #fff;
}

.cs-footer-top {
    padding: 64px 0 40px;
}

.cs-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (min-width: 1024px) {
    .cs-footer-grid {
        grid-template-columns: 1.5fr repeat(4, 1fr);
    }
}

.cs-footer-brand {
    grid-column: 1 / -1;
}

@media (min-width: 1024px) {
    .cs-footer-brand {
        grid-column: auto;
    }
}

.cs-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.cs-footer-logo-mark {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-footer-logo-mark svg {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.cs-footer-logo-main {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #fff;
    line-height: 1;
}

.cs-footer-logo-sub {
    font-size: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
    margin-top: 2px;
}

.cs-footer-desc {
    line-height: 1.7;
    margin-bottom: 16px;
}

.cs-footer-social {
    display: flex;
    gap: 8px;
}

.cs-footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.cs-footer-social a:hover {
    background-color: var(--cs-primary);
}

.cs-footer-social svg {
    width: 14px;
    height: 14px;
    color: #fff;
}

.cs-footer-title {
    font-family: var(--cs-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.cs-footer-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cs-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cs-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cs-footer-contact-item svg {
    width: 14px;
    height: 14px;
    margin-top: 3px;
    color: var(--cs-primary);
    flex-shrink: 0;
}

.cs-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .cs-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cs-footer-bottom p {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.cs-footer-bottom-links {
    display: flex;
    gap: 20px;
}

.cs-footer-bottom-links a {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Quote Form / RFQ
   ============================================ */
.cs-quote-form {
    background-color: #fff;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    padding: 32px;
}

.cs-form-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .cs-form-row {
        flex-direction: row;
    }

    .cs-form-row > * {
        flex: 1;
    }
}

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

.cs-form-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--cs-text);
}

.cs-form-field input,
.cs-form-field textarea {
    padding: 12px 14px;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-sm);
    font-size: 14px;
    background: #fff;
}

.cs-form-field input:focus,
.cs-form-field textarea:focus {
    outline: none;
    border-color: var(--cs-primary);
    box-shadow: 0 0 0 3px rgba(181, 98, 45, 0.1);
}

.cs-form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.cs-file-hint {
    font-size: 13px;
    color: var(--cs-text-secondary);
    margin-bottom: 12px;
}

.cs-file-hint strong {
    color: var(--cs-text);
}

.cs-file-input-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 6px;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-sm);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cs-file-input-wrapper:hover {
    border-color: var(--cs-primary);
}

.cs-file-input-wrapper input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cs-file-input-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cs-text);
    background: var(--cs-bg-warm);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-sm);
    transition: all 0.2s ease;
}

.cs-file-input-wrapper:hover .cs-file-input-button {
    border-color: var(--cs-primary);
    color: var(--cs-primary);
}

.cs-file-input-name {
    font-size: 13px;
    color: var(--cs-text-secondary);
}

.cs-form-message {
    padding: 16px;
    border-radius: var(--cs-radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
}

.cs-form-message.success {
    background-color: #dcfce7;
    color: #166534;
}

.cs-form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Lightbox */
.cs-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cs-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.cs-lightbox-inner {
    background: #fff;
    border-radius: var(--cs-radius);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.cs-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--cs-text-secondary);
}

.cs-lightbox-close:hover {
    color: var(--cs-text);
}

.cs-lightbox-close svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Floating Social
   ============================================ */
.cs-floating-social {
    position: fixed;
    bottom: 24px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cs-floating-social.is-left { left: 24px; }
.cs-floating-social.is-right { right: 24px; }

.cs-floating-social a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cs-primary);
    color: #fff;
    border-radius: 50%;
    box-shadow: var(--cs-shadow);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cs-floating-social a:hover {
    transform: translateY(-2px);
    background-color: var(--cs-primary-hover);
}

.cs-floating-social svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Scroll Animations
   ============================================ */
.cs-animate {
    opacity: 1;
    transform: translateY(16px);
    transition: opacity 0.6s cubic-bezier(0, 0, 0.2, 1), transform 0.6s cubic-bezier(0, 0, 0.2, 1);
}

.cs-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cs-animate-scale {
    opacity: 1;
    transform: scale(0.98);
    transition: opacity 0.6s cubic-bezier(0, 0, 0.2, 1), transform 0.6s cubic-bezier(0, 0, 0.2, 1);
}

.cs-animate-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

.cs-animate-fade {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.cs-animate-fade.is-visible {
    opacity: 1;
}

/* Stagger delays */
.cs-delay-1 { transition-delay: 0.1s; }
.cs-delay-2 { transition-delay: 0.2s; }
.cs-delay-3 { transition-delay: 0.3s; }
.cs-delay-4 { transition-delay: 0.4s; }
.cs-delay-5 { transition-delay: 0.5s; }
.cs-delay-6 { transition-delay: 0.6s; }
.cs-delay-7 { transition-delay: 0.7s; }
.cs-delay-8 { transition-delay: 0.8s; }

/* ============================================
   Content Pages (single, page, archive)
   ============================================ */
.cs-page-header {
    background-color: var(--cs-bg-warm);
    padding: 64px 0;
    text-align: center;
}

.cs-page-title {
    font-size: 36px;
    margin: 0;
}

.cs-content {
    padding: 64px 0;
}

.cs-content h2,
.cs-content h3,
.cs-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.cs-content p {
    margin-bottom: 1.25rem;
    color: var(--cs-text-secondary);
}

.cs-content img {
    border-radius: var(--cs-radius);
    margin: 1.5rem 0;
}

.cs-entry-meta {
    font-size: 13px;
    color: var(--cs-text-muted);
    margin-bottom: 16px;
}

.cs-post-card {
    display: block;
    background: #fff;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.cs-post-card:hover {
    box-shadow: var(--cs-shadow);
}

.cs-post-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.cs-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cs-post-card:hover .cs-post-image img {
    transform: scale(1.05);
}

.cs-post-body {
    padding: 20px;
}

.cs-post-title {
    font-family: var(--cs-font-title);
    font-size: 20px;
    margin: 0 0 10px;
}

.cs-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.cs-pagination a,
.cs-pagination span {
    padding: 10px 16px;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-sm);
    font-size: 14px;
}

.cs-pagination .current {
    background-color: var(--cs-primary);
    color: #fff;
    border-color: var(--cs-primary);
}

/* 404 */
.cs-404 {
    text-align: center;
    padding: 100px 0;
}

.cs-404-title {
    font-size: 80px;
    line-height: 1;
    color: var(--cs-primary);
    margin-bottom: 16px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 1023px) {
    .cs-main-nav {
        display: none;
    }
}

@media (max-width: 639px) {
    .cs-hero-title {
        font-size: 32px;
        line-height: 1.1;
    }

    .cs-hero-buttons .cs-btn {
        width: 100%;
    }

    .cs-section-title {
        font-size: 24px;
    }

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

/* ============================================
   Product archive & single
   ============================================ */
.cs-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cs-product-card {
    background: #fff;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cs-product-card:hover {
    box-shadow: var(--cs-shadow);
    transform: translateY(-4px);
}

.cs-product-card-link {
    display: block;
    color: inherit;
}

.cs-product-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cs-bg-warm);
}

.cs-product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cs-product-card:hover .cs-product-card-image img {
    transform: scale(1.05);
}

.cs-product-card-body {
    padding: 20px;
}

.cs-product-card-title {
    font-family: var(--cs-font-title);
    font-size: 18px;
    margin: 0 0 10px;
}

.cs-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.cs-product-image {
    width: 100%;
    border-radius: var(--cs-radius);
}

.cs-product-info {
    font-size: 16px;
    line-height: 1.7;
}

.cs-product-info table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cs-product-info th,
.cs-product-info td {
    padding: 12px 16px;
    border: 1px solid var(--cs-border);
    text-align: left;
}

.cs-product-info th {
    background: var(--cs-bg-warm);
}

.cs-product-actions {
    margin-top: 24px;
}

.cs-product-inquiry .zc-inquiry-block {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.cs-page-intro {
    max-width: 760px;
    margin: 12px auto 0;
    color: var(--cs-text-secondary);
}

.cs-page-label {
    display: inline-block;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--cs-primary);
    margin-bottom: 8px;
}

@media (max-width: 1023px) {
    .cs-products-grid,
    .cs-product-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .cs-products-grid,
    .cs-product-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Gnee-reference restyle — centered section headers
   ============================================ */
.cs-categories .cs-section-header,
.cs-materials .cs-section-header,
.cs-projects .cs-section-header,
.cs-insights .cs-section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 48px;
}

/* Orange eyebrow label, Gnee-style */
.cs-categories .cs-section-label,
.cs-materials .cs-section-label,
.cs-projects .cs-section-label,
.cs-solutions .cs-section-label,
.cs-insights .cs-section-label {
    color: var(--cs-primary);
    letter-spacing: 0.22em;
    margin-bottom: 6px;
}

/* Larger, more prominent centered titles */
.cs-categories .cs-section-title,
.cs-materials .cs-section-title,
.cs-projects .cs-section-title,
.cs-solutions .cs-section-title,
.cs-insights .cs-section-title {
    font-size: 34px;
}

@media (min-width: 1024px) {
    .cs-categories .cs-section-title,
    .cs-materials .cs-section-title,
    .cs-projects .cs-section-title,
    .cs-solutions .cs-section-title,
    .cs-insights .cs-section-title {
        font-size: 40px;
    }
}

/* Centered "view all" link sits below the heading */
.cs-categories .cs-section-header .cs-link-arrow,
.cs-materials .cs-section-header .cs-link-arrow,
.cs-insights .cs-section-header .cs-link-arrow {
    margin-top: 4px;
}

/* Underline flourish under centered titles */
.cs-categories .cs-section-header .cs-section-title::after,
.cs-materials .cs-section-header .cs-section-title::after,
.cs-projects .cs-section-header .cs-section-title::after,
.cs-solutions .cs-section-header .cs-section-title::after,
.cs-insights .cs-section-header .cs-section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 18px auto 0;
    background: var(--cs-primary);
    border-radius: 3px;
}

/* ============================================
   Gnee-reference polish — nav hover, cards, spacing
   ============================================ */

/* Animated orange underline indicator on nav links (Gnee-style) */
@media (min-width: 1024px) {
    .cs-main-nav > ul > li > a {
        position: relative;
    }

    .cs-main-nav > ul > li > a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -3px;
        height: 2px;
        background: var(--cs-primary);
        border-radius: 2px;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.25s ease;
    }

    .cs-main-nav > ul > li:hover > a::after,
    .cs-main-nav > ul > li.current-menu-item > a::after,
    .cs-main-nav > ul > li.current_page_item > a::after,
    .cs-main-nav > ul > li.current-menu-parent > a::after {
        transform: scaleX(1);
    }
}

/* Logo mark subtle lift on hover */
.cs-logo:hover .cs-logo-mark {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(221, 90, 30, 0.34);
}

.cs-logo-mark {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Header search icon — circular hover affordance */
.cs-header-icon {
    border-radius: 50%;
}

.cs-header-icon:hover {
    background-color: var(--cs-primary-light);
}

/* Product / category cards — bolder title, orange on hover, deeper lift */
.cs-category-title {
    font-weight: 600;
    transition: color 0.2s ease;
}

.cs-category-card:hover .cs-category-title {
    color: var(--cs-primary);
}

.cs-category-card:hover {
    transform: translateY(-6px);
}

/* Slightly airier section rhythm to match Gnee's generous spacing */
.cs-section {
    padding-top: 92px;
    padding-bottom: 92px;
}

/* Centered section intro paragraph, Gnee-style */
.cs-projects .cs-section-desc,
.cs-insights .cs-section-desc {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ============================================
   Accessibility: skip link and focus visibility
   ============================================ */
.cs-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--cs-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--cs-radius-sm);
    transition: top 0.2s ease;
}

.cs-skip-link:focus {
    top: 16px;
    color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--cs-primary);
    outline-offset: 3px;
    border-radius: 2px;
}

.cs-hero a:focus-visible,
.cs-footer a:focus-visible,
.cs-top-bar a:focus-visible {
    outline-color: #fff;
}

[hidden] {
    display: none !important;
}

/* ============================================
   Header search panel
   ============================================ */
.cs-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
}

.cs-header-icon svg {
    width: 20px;
    height: 20px;
}

.cs-search-panel {
    border-top: 1px solid var(--cs-border);
    background: var(--cs-bg);
    padding: 16px 0;
}

.cs-search-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.cs-search-field {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
    color: var(--cs-text);
    background: var(--cs-bg);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-sm);
}

.cs-search-form .cs-btn {
    height: 48px;
    flex-shrink: 0;
}

@media (max-width: 639px) {
    .cs-search-form {
        flex-direction: column;
    }

    .cs-search-form .cs-btn {
        width: 100%;
    }
}

body.cs-menu-open {
    overflow: hidden;
}

/* ============================================
   Section header variants
   ============================================ */
.cs-section-header-center {
    align-items: center;
    text-align: center;
}

.cs-section-header-spaced {
    margin-top: 64px;
}

.cs-section-desc-center {
    margin-left: auto;
    margin-right: auto;
}

.cs-section-title-sm {
    font-size: 24px;
    margin-bottom: 20px;
}

.cs-container-narrow {
    max-width: 900px;
}

.cs-empty-state {
    padding: 32px;
    background: var(--cs-bg-warm);
    border-radius: var(--cs-radius);
    color: var(--cs-text-secondary);
    text-align: center;
}

.cs-inquiry-fallback {
    text-align: center;
    color: var(--cs-text-secondary);
}

/* ============================================
   Product card actions (catalogue mode)
   ============================================ */
.cs-product-card {
    display: flex;
    flex-direction: column;
}

.cs-product-card-image {
    display: block;
}

.cs-product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.cs-product-card-title {
    margin: 0;
}

.cs-product-card-title a {
    color: inherit;
}

.cs-product-card-title a:hover {
    color: var(--cs-primary);
}

.cs-product-card-desc {
    margin: 0;
    font-size: 14px;
    color: var(--cs-text-secondary);
}

.cs-product-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 8px;
}

.cs-btn-sm {
    height: 40px;
    padding: 0 18px;
    font-size: 13px;
}

/* ============================================
   Single product (WooCommerce gallery, no price)
   ============================================ */
.cs-product-media .woocommerce-product-gallery {
    width: 100%;
    margin: 0;
    opacity: 1 !important;
}

.cs-product-media .woocommerce-product-gallery__wrapper {
    margin: 0;
}

.cs-product-media img {
    width: 100%;
    height: auto;
    border-radius: var(--cs-radius);
}

.cs-product-media .flex-control-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.cs-product-media .flex-control-thumbs li {
    margin: 0;
    width: 100%;
}

.cs-product-media .flex-control-thumbs img {
    cursor: pointer;
    opacity: 0.6;
    border: 1px solid var(--cs-border);
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.cs-product-media .flex-control-thumbs img.flex-active,
.cs-product-media .flex-control-thumbs img:hover {
    opacity: 1;
    border-color: var(--cs-primary);
}

.cs-product-media .flex-direction-nav {
    display: flex;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.cs-product-media .flex-direction-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--cs-border);
    border-radius: 50%;
    font-size: 0;
    color: var(--cs-text);
    background: #fff;
}

.cs-product-media .flex-direction-nav a::before {
    font-size: 18px;
    line-height: 1;
}

.cs-product-media .flex-direction-nav .flex-prev::before {
    content: "\2039";
}

.cs-product-media .flex-direction-nav .flex-next::before {
    content: "\203A";
}

.cs-product-summary {
    font-size: 16px;
    line-height: 1.7;
    color: var(--cs-text-secondary);
}

.cs-product-meta {
    list-style: none;
    margin: 24px 0;
    padding: 0;
    border-top: 1px solid var(--cs-border);
}

.cs-product-meta li {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid var(--cs-border);
    font-size: 14px;
}

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

.cs-product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.cs-product-actions .cs-btn,
.cs-product-actions .zc-inquiry-button {
    height: 48px;
}

.cs-product-note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--cs-text-secondary);
}

.cs-product-description,
.cs-product-specs,
.cs-related-products {
    margin-top: 64px;
}

.cs-product-specs table,
.woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
}

.cs-product-specs th,
.cs-product-specs td,
.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
    padding: 12px 16px;
    border: 1px solid var(--cs-border);
    text-align: left;
    font-size: 14px;
}

.cs-product-specs th,
.woocommerce-product-attributes th {
    background: var(--cs-bg-warm);
    width: 30%;
}

.cs-catalog-intro {
    margin-bottom: 48px;
}

.cs-quote-section {
    background: var(--cs-bg-warm);
}

.cs-project-hero img {
    width: 100%;
    height: auto;
    border-radius: var(--cs-radius);
    margin-bottom: 32px;
}

.cs-footer-cta {
    margin-top: 16px;
}

/* Filtered-out project cards leave the layout instead of holding a slot. */
.cs-project-card.is-filtered-out {
    display: none;
}

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

    .cs-animate,
    .cs-animate-scale,
    .cs-animate-fade {
        opacity: 1 !important;
        transform: none !important;
    }

    .cs-product-card:hover,
    .cs-category-card:hover {
        transform: none;
    }

    .cs-product-card:hover .cs-product-card-image img,
    .cs-category-card:hover img {
        transform: none;
    }
}

/* ============================================
   Contact channels: rail buttons, footer row, QR dialog
   ============================================ */
.cs-floating-social .cs-contact-item,
.cs-floating-social a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    cursor: pointer;
    background-color: var(--cs-primary);
    color: #fff;
    border-radius: 50%;
    box-shadow: var(--cs-shadow);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cs-floating-social.is-square .cs-contact-item {
    border-radius: var(--cs-radius-sm);
}

.cs-floating-social .cs-contact-item:hover {
    transform: translateY(-2px);
    background-color: var(--cs-primary-hover);
}

/* Keep the rail clear of mobile CTAs and consent controls. */
@media (max-width: 639px) {
    .cs-floating-social {
        bottom: 16px;
        flex-direction: row;
    }

    .cs-floating-social.is-left,
    .cs-floating-social.is-right {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

.cs-footer-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.cs-footer-channels .cs-contact-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: none;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cs-footer-channels .cs-contact-item:hover {
    background-color: var(--cs-primary);
    border-color: var(--cs-primary);
}

.cs-footer-channels svg {
    width: 18px;
    height: 18px;
}

.cs-qr-dialog {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cs-qr-dialog.is-open {
    opacity: 1;
}

.cs-qr-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.cs-qr-panel {
    position: relative;
    z-index: 1;
    width: min(360px, 100%);
    padding: 32px 24px 24px;
    background: var(--cs-bg);
    border-radius: var(--cs-radius);
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.cs-qr-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    color: var(--cs-text-secondary);
    cursor: pointer;
}

.cs-qr-close svg {
    width: 20px;
    height: 20px;
}

.cs-qr-title {
    font-size: 16px;
    margin: 0 0 16px;
}

.cs-qr-image {
    width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.cs-qr-value {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--cs-text-secondary);
    word-break: break-all;
}

.cs-qr-action {
    margin-top: 16px;
}

body.cs-dialog-open {
    overflow: hidden;
}

/* Without JavaScript nothing is offset or hidden: content renders as authored. */
.no-js .cs-animate,
.no-js .cs-animate-scale,
.no-js .cs-animate-fade {
    opacity: 1;
    transform: none;
    transition: none;
}

/* ============================================
   Small-screen header: keep the CTA reachable
   without pushing the row past the viewport
   ============================================ */
@media (max-width: 767px) {
    .cs-header-actions {
        gap: 8px;
    }

    .cs-header-actions .cs-btn {
        height: 40px;
        padding: 0 14px;
        font-size: 12px;
        letter-spacing: 0.04em;
    }

    .cs-header-actions .cs-btn svg {
        display: none;
    }

    .cs-logo-main {
        font-size: 16px;
        letter-spacing: 0.08em;
    }

    .cs-logo-sub {
        font-size: 8px;
    }

    .cs-header-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 479px) {
    /* Below this width the CTA alone would clip: it stays available as the
       first item inside the mobile menu. */
    .cs-header-actions .cs-btn {
        display: none;
    }
}

.cs-inquiry-success {
    margin-bottom: 24px;
    padding: 16px 20px;
    border-left: 3px solid var(--cs-primary);
    background: var(--cs-primary-light);
    color: var(--cs-text);
    font-size: 15px;
    border-radius: var(--cs-radius-sm);
}

/* ============================================
   Inquiry plugin buttons
   The plugin outputs .zc-btn but ships no styles for it, so its submit button
   renders as a raw browser button. These rules put it on the theme's button
   system without touching the plugin.
   ============================================ */
.zc-btn,
.zc-inquiry-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background-color: var(--cs-primary);
    border: 1.5px solid var(--cs-primary);
    border-radius: var(--cs-radius-sm);
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.zc-btn:hover,
.zc-inquiry-form button[type="submit"]:hover {
    background-color: var(--cs-primary-hover);
    border-color: var(--cs-primary-hover);
    color: #fff;
}

.zc-btn:active,
.zc-inquiry-form button[type="submit"]:active {
    transform: translateY(1px);
}

.zc-btn:focus-visible,
.zc-inquiry-form button[type="submit"]:focus-visible {
    outline: 2px solid var(--cs-primary);
    outline-offset: 3px;
}

.zc-btn[disabled],
.zc-inquiry-form button[type="submit"][disabled] {
    opacity: 0.65;
    cursor: progress;
    transform: none;
}

/* Secondary usage of the plugin button class, e.g. an inline "Get a quote"
   trigger placed on a dark or image background. */
.zc-btn.zc-btn-outline {
    background-color: transparent;
    color: var(--cs-text);
    border-color: var(--cs-border);
}

.zc-btn.zc-btn-outline:hover {
    background-color: var(--cs-primary);
    border-color: var(--cs-primary);
    color: #fff;
}

/* The submit action sits on its own row, right-aligned with the grid. */
.zc-inquiry-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.zc-inquiry-form__grid {
    width: 100%;
}

/* A message/textarea field is the widest input in the form: give it the full
   row instead of leaving a hole beside it. */
.zc-inquiry-field:has(textarea) {
    grid-column: 1 / -1;
}

@media (max-width: 639px) {
    .zc-btn,
    .zc-inquiry-form button[type="submit"] {
        width: 100%;
    }
}

/* File attachment control, for when the client enables the upload field. */
.zc-file-input__button {
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background-color: var(--cs-bg-warm);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-sm);
    color: var(--cs-text);
}
