/*
Theme Name: Lens Theme
Theme URI: 
Author: Cowboy
Author URI: 
Description: Infrared Optical Products B2B Theme
Version: 1.0.0
Text Domain: lens-theme
*/

/* =========================================
   LENS THEME - Global Styles
   Infrared Optical Industry Style
   Scheme A: Deep Space Tech
   ========================================= */

/* --- Products Carousel --- */
.home-products-carousel {
    background: var(--color-bg-alt);
    padding: 5rem 0;
    overflow: hidden;
}

.products-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.products-carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card {
    flex: 0 0 calc(100% - 2rem);
    background: var(--color-bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.4s ease;
}

@media (min-width: 768px) {
    .product-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    .product-card {
        flex: 0 0 calc(33.333% - 1.33rem);
    }
    .products-carousel-track.show-1 .product-card {
        flex: 0 0 calc(100% - 2rem);
    }
    .products-carousel-track.show-2 .product-card {
        flex: 0 0 calc(50% - 1rem);
    }
    .products-carousel-track.show-3 .product-card {
        flex: 0 0 calc(33.333% - 1.33rem);
    }
    .products-carousel-track.show-4 .product-card {
        flex: 0 0 calc(25% - 1.5rem);
    }
}

.product-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

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

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

.product-card-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.product-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    border: 1px solid rgba(6, 214, 160, 0.3);
}

.product-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 280px);
}

.product-card-body h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-card-body p {
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.product-card-body .btn-outline {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    text-align: center;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: var(--color-bg-card);
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--color-accent);
    width: 28px;
    border-radius: 5px;
}

.dot:hover {
    background: var(--color-primary-light);
}

/* Show multiple cards at once on large screens */
@media (min-width: 1024px) {
    .products-carousel-track {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        transform: none !important;
    }
    
    .products-carousel-track .product-card {
        flex: none;
        width: 100%;
    }
    
    .carousel-nav {
        display: none;
    }
    
    /* More Products button - bottom center desktop only */
    .products-more-btn {
        display: flex;
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .btn-more {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1.5rem;
        background: transparent;
        color: var(--color-primary-light);
        border: 1px solid var(--color-primary);
        border-radius: 50px;
        font-size: 0.8rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
        letter-spacing: 0.05em;
    }
    
    .btn-more:hover {
        background: var(--color-primary);
        color: #fff;
        border-color: var(--color-primary);
    }
}

@media (max-width: 1023px) {
    .products-more-btn {
        display: none;
    }
}

/* --- CSS Variables (Brand Colors) - Scheme A: Deep Space Tech --- */
:root {
    --color-primary: #00b4d8;      /* Electric Blue - Deep space tech */
    --color-primary-dark: #0096c7; /* Darker electric blue */
    --color-primary-light: #48cae4;/* Lighter electric blue */
    --color-accent: #06d6a0;       /* Cyan/Teal - Infrared thermal accent */
    --color-accent-dark: #00a896;  /* Darker cyan */
    --color-bg: #0a0f1c;          /* Deep space black */
    --color-bg-alt: #0f172a;      /* Dark navy */
    --color-bg-card: #1e293b;     /* Card bg */
    --color-text: #f8fafc;         /* White text */
    --color-text-light: #94a3b8;   /* Light gray text */
    --color-border: #334155;
    --color-success: #10b981;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--color-accent);
}

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

ul, ol {
    list-style: none;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #0a0f1c;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
    color: #0a0f1c;
}

.btn-outline {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    color: var(--color-primary-light);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* --- Header / Navigation --- */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
}

#site-header.scrolled {
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    max-width: 1280px;
    margin: 0 auto;
    height: 76px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desktop Nav - WP Native Menu */
.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .nav-list > li {
    position: relative;
}

.main-nav .nav-list > li > a {
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    padding: 1rem 1.25rem;
    letter-spacing: 0.04em;
    transition: color 0.25s ease;
    display: inline-block;
    position: relative;
}

.main-nav .nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.main-nav .nav-list > li > a:hover::after,
.main-nav .nav-list > li > a:focus::after {
    width: 100%;
}

.main-nav .nav-list > li > a:hover {
    color: var(--color-accent);
}

/* Dropdown arrow for items with submenu */
.main-nav .nav-list > li.menu-item-has-children > a {
    padding-right: 1.75rem;
}

.main-nav .nav-list > li.menu-item-has-children > a::after {
    content: '▾';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.25s ease;
    bottom: auto;
    width: auto;
    height: auto;
    background: none;
    border: none;
}

.main-nav .nav-list > li.menu-item-has-children > a:hover::after {
    color: var(--color-accent);
    transform: translateY(-50%);
}

/* Submenu (dropdown) - desktop */
.main-nav .nav-list .sub-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 12px;
    padding: 0.75rem 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s ease;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    z-index: 100;
}

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

.main-nav .nav-list .sub-menu li {
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.main-nav .nav-list .sub-menu li:last-child {
    border-bottom: none;
}

.main-nav .nav-list .sub-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    transition: all 0.2s ease;
}

.main-nav .nav-list .sub-menu li a::after {
    display: none;
}

.main-nav .nav-list .sub-menu li a:hover {
    color: var(--color-accent);
    background: rgba(0, 180, 216, 0.08);
    padding-left: 1.6rem;
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-btn.active .hamburger-icon { display: none; }
.menu-btn.active .close-icon { display: block !important; }

/* Mobile Menu Panel */
#mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #0a0f1c;
    z-index: 2000;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--color-border);
}

#mobile-menu.open { right: 0; }

#mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

#mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.menu-close-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.25rem;
}

#mobile-menu nav {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

#mobile-menu .mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#mobile-menu .mobile-nav-list li {
    border-bottom: 1px solid rgba(51,65,85,0.5);
}

#mobile-menu .mobile-nav-list li:last-child { border-bottom: none; }

#mobile-menu .mobile-nav-list li a {
    display: block;
    padding: 1rem 0;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

#mobile-menu .mobile-nav-list li a:hover { color: var(--color-accent); }

/* Mobile Submenu (2nd level) */
#mobile-menu .mobile-nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
}

#mobile-menu .mobile-nav-list li.menu-item-has-children > a::after {
    content: ' ▼';
    font-size: 0.7rem;
    color: var(--color-accent);
}

#mobile-menu .mobile-nav-list li.menu-item-has-children.open > .sub-menu {
    display: block;
    padding-left: 1rem;
}

#mobile-menu .mobile-nav-list .sub-menu li a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    padding: 0.75rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .menu-btn { display: flex; }
    .header-inner { padding: 1rem 1.5rem; }
}

/* --- Hero Section (Home) - 3 Image Slider --- */
.home-hero {
    position: relative;
    min-height: 56vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0a0f1c;
}

/* Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Overlay - per slide */
.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(10, 15, 28, 0.78) 0%, rgba(10, 15, 28, 0.55) 50%, rgba(10, 15, 28, 0.82) 100%),
        radial-gradient(circle at 30% 60%, rgba(0, 180, 216, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(6, 214, 160, 0.08) 0%, transparent 50%);
}

/* Content wrapper - centered */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Per-slide content - starts hidden */
.hero-slide-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

/* Always hide content on inactive slides */
.hero-slide:not(.active) .hero-slide-content {
    opacity: 0 !important;
    transform: translateY(25px) !important;
}

/* Active slide triggers animation */
.hero-slide.active .hero-slide-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.hero-slide-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.hero-slide-content h1 span {
    color: var(--color-accent);
}

.hero-slide-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Hero Button */
.hero-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #0a0f1c;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.4);
    color: #0a0f1c;
}

/* Slide Indicators */
.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.75rem;
}

.hero-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator.active {
    background: var(--color-accent);
    width: 30px;
    border-radius: 5px;
}

.hero-indicator:hover {
    background: var(--color-primary-light);
}

/* Hero Navigation Arrows */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.hero-nav:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.hero-prev { left: 2rem; }
.hero-next { right: 2rem; }

/* --- Section Common --- */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.25rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.title-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin: 0 auto;
    border-radius: 2px;
}

/* --- Products Grid (Home) --- */
.home-products {
    background: var(--color-bg-alt);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-item {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 1px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 180, 216, 0.15);
    border-color: var(--color-primary);
}

.product-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
}

.product-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary-light);
}

.product-item p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- Solutions Section --- */
.home-solutions {
    background: var(--color-bg);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.solution-card {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    color: var(--color-text);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 180, 216, 0.12);
    border-color: var(--color-accent);
}

.solution-card h3 {
    color: var(--color-primary-light);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.solution-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Advantages Section --- */
.home-advantages {
    background: var(--color-bg-alt);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem 1rem;
}

.advantage-icon {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-accent);
    margin-bottom: 1rem;
    line-height: 1;
}

.advantage-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary-light);
}

.advantage-item p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* --- Factory Gallery (About Page) --- */
.factory-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.factory-gallery-small {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.08);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Patents Grid */
.patents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.patent-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.patent-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.patent-icon {
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.patent-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    line-height: 1.3;
}

.patent-card p {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

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

@media (max-width: 768px) {
    .factory-gallery,
    .factory-gallery-small {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1rem;
    }

    .advantages-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1rem;
    }

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

@media (max-width: 480px) {
    .factory-gallery,
    .factory-gallery-small {
        grid-template-columns: 1fr;
    }

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

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

/* --- Manufacturing Capabilities Section --- */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.capability-card {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 180, 216, 0.12);
    border-color: var(--color-accent);
}

.capability-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.capability-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.capability-unit {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.capability-card h3 {
    font-size: 1rem;
    color: var(--color-primary-light);
    margin-bottom: 0.5rem;
}

.capability-cn {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* --- CTA Section --- */
.home-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    padding: 4rem 0;
    text-align: center;
}

.home-cta h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.home-cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.home-cta .btn-outline {
    border-color: #fff;
    color: #fff;
}

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

/* --- Footer --- */
#site-footer {
    background: #050810;
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
}

/* --- Page Template Common --- */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #0a0f1c 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
}

.page-content {
    padding: 4rem 0;
    background: var(--color-bg);
}

.page-content .container {
    max-width: 900px;
}

/* --- Page Content (WP Editor Output) --- */
.page-content {
    padding: 4rem 0;
    background: var(--color-bg);
}

.page-content .container {
    max-width: 900px;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
    color: #fff;
}

.page-content p,
.page-content li {
    color: var(--color-text-light);
    line-height: 1.8;
}

.page-content a {
    color: var(--color-primary-light);
}

.page-content a:hover {
    color: var(--color-accent);
}

.page-content img {
    border-radius: 8px;
    margin: 1.5rem 0;
}

.page-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--color-text-light);
    font-style: italic;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.page-content table th,
.page-content table td {
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
}

.page-content table th {
    background: var(--color-bg-alt);
    color: var(--color-primary-light);
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    
    .solutions-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    #main-nav {
        display: none;
    }
    
    .menu-icon {
        display: block;
    }
    
    .home-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr 1fr;
    }

    .capabilities-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 3rem 0;
    }
}

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

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

/* =========================================
   BLOG / NEWS PAGE
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255,255,255,0.15);
}

.blog-card-image {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.blog-cat {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date {
    color: var(--color-text-muted);
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: var(--color-accent);
}

.blog-card-excerpt {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
}

.blog-card .btn-outline {
    align-self: flex-start;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
}

/* Pagination */
.posts-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 4px;
    background: var(--color-bg-alt);
    color: var(--color-primary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: 1px solid var(--color-border);
}

.nav-links .page-numbers:hover:not(.current):not(.dots) {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.nav-links .page-numbers.current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.nav-links .page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
}

.nav-links .page-numbers.prev,
.nav-links .page-numbers.next {
    padding: 0 1rem;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card-image {
        height: 200px;
    }
}

/* =========================================
   PRODUCTS CATEGORY PAGE
   ========================================= */

/* Category Grid - 2 columns */
.products-category-section {
    padding: 5rem 0;
}

.products-category-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Category Card */
.product-cat-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.product-cat-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 20px 50px rgba(0, 180, 216, 0.12);
    transform: translateY(-4px);
}

/* Card Image */
.product-cat-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

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

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

.product-cat-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.product-cat-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    border: 1px solid rgba(6, 214, 160, 0.3);
}

/* Card Body */
.product-cat-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-cat-body h2 {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.product-cat-body p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Feature List */
.product-cat-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
}

.product-cat-features li {
    font-size: 0.85rem;
    color: var(--color-text-light);
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.product-cat-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

/* CTA Button */
.btn-cat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #0a0f1c;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-cat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.3);
    color: #0a0f1c;
}

/* Responsive */
@media (max-width: 768px) {
    .product-cat-card {
        grid-template-columns: 1fr;
    }
    
    .product-cat-image {
        height: 220px;
    }
    
    .product-cat-body {
        padding: 1.75rem;
    }
    
    .product-cat-body h2 {
        font-size: 1.4rem;
    }
}

/* Solutions page 2x2 responsive */
.page-id-64 .page-content-section table,
.page-id-64 .page-content-section tbody,
.page-id-64 .page-content-section tr {
    display: table;
    width: 100%;
}
.page-id-64 .page-content-section td {
    width: 48% !important;
    display: table-cell !important;
    vertical-align: top;
}
@media (max-width: 600px) {
    .page-id-64 .page-content-section table,
    .page-id-64 .page-content-section tbody,
    .page-id-64 .page-content-section tr {
        display: block !important;
    }
    .page-id-64 .page-content-section td {
        display: block !important;
        width: 100% !important;
        margin-bottom: 1rem;
    }
}

/* Solutions Page - Card Grid Layout */
.solutions-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.solution-card {
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.solution-card .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.solution-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-card .card-content {
  padding: 1.5rem;
}

.solution-card .card-content h3 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  color: var(--color-heading);
}

.solution-card .card-content p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.solution-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.solution-card ul li {
  padding: 0.4rem 0;
  font-size: 0.875rem;
  color: var(--color-text);
  padding-left: 1.25rem;
  position: relative;
}

.solution-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.btn-outline {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Factory Tour Carousel */
.factory-carousel {
    max-width: 900px;
    margin: 0 auto;
}

.factory-carousel-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-bg-card);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.factory-carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.factory-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.factory-slide.active {
    opacity: 1;
}

.factory-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.factory-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.factory-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.factory-carousel-btn:hover {
    background: rgba(0,0,0,0.75);
}

.factory-carousel-btn.prev { left: 1rem; }
.factory-carousel-btn.next { right: 1rem; }

.factory-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.factory-thumbnails .thumb {
    flex: 0 0 calc(20% - 0.4rem);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.55;
    border: 2px solid transparent;
    transition: opacity 0.2s, border-color 0.2s;
}

.factory-thumbnails .thumb.active {
    opacity: 1;
    border-color: var(--color-primary);
}

.factory-thumbnails .thumb:hover {
    opacity: 0.9;
}

.factory-thumbnails .thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .factory-thumbnails .thumb {
        flex: 0 0 calc(25% - 0.375rem);
    }
    .factory-slide-caption {
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }
}
/*** Typical Applications — 2x2 Grid ***/
.app-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.app-card {
    box-sizing: border-box;
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    border: 1px solid var(--color-border);
}
.app-card h3 {
    color: var(--color-primary-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.app-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
}
.app-card ul li {
    color: var(--color-text-light);
    font-size: 0.88rem;
    line-height: 1.5;
    padding-left: 1rem;
    position: relative;
}
.app-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/*** Typical Applications — Responsive Fix ***/
@media (max-width: 900px) {
    .app-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 600px) {
    .app-card ul {
        grid-template-columns: 1fr;
    }
}
