/**
 * Modern Minimalist Style - Template 1
 * Nightstand Plus Website
 */

/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #95a5a6;
    --accent-color: #e67e22;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    gap: 30px;
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

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

.main-nav a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-color);
    padding: 8px 0;
}

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

.btn-nav {
    background: var(--accent-color);
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 4px;
}

.btn-nav:hover {
    background: #d35400;
    transform: translateY(-2px);
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    border-radius: 4px;
    margin-top: 10px;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    border-bottom: 1px solid var(--border-color);
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown a {
    display: block;
    padding: 12px 20px;
}

.dropdown a:hover {
    background: var(--bg-light);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   Breadcrumbs
   ======================================== */
.breadcrumbs {
    background: var(--bg-light);
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: var(--secondary-color);
}

/* ========================================
   Hero Banner
   ======================================== */
.hero-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.hero-banner .container {
    position: relative;
    z-index: 1;
}

.hero-banner h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-banner p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent-color);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
}

.btn:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--primary-color);
}

.btn-secondary:hover {
    background: #1a252f;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

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

/* ========================================
   Product Grid
   ======================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-card-content {
    padding: 20px;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-card h3 a {
    color: inherit;
    text-decoration: none;
}

.product-card h3 a:hover,
.product-card h3 a:focus {
    color: var(--accent-color);
}

.product-card .price {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.product-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    background: var(--bg-light);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   Sidebar Layout
   ======================================== */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin: 40px 0;
}

.sidebar-widget {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.sidebar-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    color: var(--text-color);
    font-size: 14px;
}

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

/* ========================================
   Blog/Article Cards
   ======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-card .meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.blog-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* ========================================
   Forms
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   Homepage
   ======================================== */
.home-hero {
    min-height: 560px;
}

.home-hero-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px 0;
    text-align: center;
}

.home-hero-eyebrow {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.home-hero h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    color: white;
    letter-spacing: -1px;
}

.home-hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin: 0 auto 36px;
    line-height: 1.7;
    max-width: 620px;
}

.home-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.home-hero-actions .btn {
    font-size: 16px;
    padding: 16px 36px;
}

.btn-secondary-outline {
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
}

.btn-secondary-outline:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.7);
    color: white;
}

.home-stat-strip {
    background: var(--accent-color);
    padding: 18px 0;
}

.home-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
    gap: 20px;
    text-align: center;
    color: white;
}

.home-stat-grid strong {
    font-size: 26px;
    display: block;
}

.home-stat-grid span {
    font-size: 13px;
    opacity: .9;
}

.home-section {
    padding: 80px 0;
}

.home-section-heading {
    margin-bottom: 50px;
}

.home-section-heading h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.home-section-heading p {
    color: var(--text-light);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
}

.product-card-kicker {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.home-why-band {
    background: var(--bg-light);
    padding: 20px 0 40px;
}

.home-why-heading {
    padding-top: 40px;
    margin-bottom: 20px;
}

.home-why-heading h2 {
    font-size: 32px;
    color: var(--primary-color);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.site-footer-premium {
    margin-top: 56px;
    background: linear-gradient(180deg,#2f2119 0%,#2a1d16 58%,#271b14 100%);
}

.footer-cta-section {
    padding: 0 0 26px;
}

.footer-cta-grid {
    background: radial-gradient(circle at 72% 45%, rgba(208,122,54,.28), rgba(34,21,15,.8) 42%), linear-gradient(120deg, #261912, #402a1f);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.08);
    padding: 42px;
    display: grid;
    grid-template-columns: 1.45fr auto;
    gap: 26px;
    align-items: center;
}

.footer-cta-grid h2 {
    font-size: 48px;
    line-height: 1.06;
    color: #fff;
    margin-bottom: 14px;
}

.footer-cta-grid p {
    font-size: 20px;
    color: rgba(255,255,255,.88);
    margin: 0;
}

.footer-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-catalog-btn {
    background: #fff;
    color: #241a14;
    border-color: #fff;
}

.footer-catalog-btn:hover {
    background: #f6efe7;
    color: #241a14;
}

.footer-main-section {
    padding: 34px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-main-grid {
    grid-template-columns: 1.05fr 1fr 1fr .9fr;
    gap: 34px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer-col p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

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

.contact-info li {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.8;
}

.contact-info .contact-entity {
    display: block;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    margin-bottom: 10px;
}

.contact-info .contact-key {
    display: block;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-info .contact-value {
    display: block;
    color: #fff;
    line-height: 1.5;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.footer-bottom p,
.footer-bottom-right span {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin: 0;
}

.footer-bottom p {
    max-width: 760px;
}

.footer-bottom-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
    flex-shrink: 0;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.footer-legal-links a {
    color: rgba(255,255,255,.48);
    font-size: 12px;
    line-height: 1.4;
}

.footer-legal-links a:hover {
    color: rgba(255,255,255,.86);
}

.footer-social-row a {
    color: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.2);
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px 8px 9px;
    gap: 8px;
    background: rgba(255,255,255,.03);
}

.footer-social-row a:hover {
    border-color: #de8c49;
    color: #fff;
    background: rgba(208,122,54,.22);
}

.footer-social-wrap {
    margin-top: 12px;
}

.footer-social-title {
    font-size: 12px;
    color: rgba(255,255,255,.72);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 700;
}

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

.footer-social-row .social-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}

.footer-social-strip {
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 4px;
}

.footer-social-strip-title {
    color: rgba(255,255,255,.82);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-icons a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.28);
    color: rgba(255,255,255,.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255,255,255,.03);
}

.footer-social-icons a:hover {
    border-color: #e09a5c;
    background: rgba(208,122,54,.24);
    color: #fff;
}

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

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        box-shadow: var(--shadow);
        transition: var(--transition);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav > ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav a {
        display: block;
        padding: 15px 0;
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        display: none;
    }
    
    .has-dropdown.open .dropdown {
        display: block;
    }
    
    .hero-banner h1 {
        font-size: 32px;
    }

    .home-hero {
        min-height: 460px;
    }

    .home-hero-content {
        padding: 58px 0;
    }

    .home-hero h1 {
        font-size: 36px;
    }
    
    .hero-banner p {
        font-size: 16px;
    }

    .home-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .home-section {
        padding: 56px 0;
    }

    .home-section-heading {
        margin-bottom: 34px;
    }

    .home-section-heading h2 {
        font-size: 30px;
    }
    
    .page-layout {
        grid-template-columns: 1fr;
    }
    
    .product-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        text-align: left;
    }
    .footer-bottom-right {
        align-items: flex-start;
        text-align: left;
    }
    .footer-legal-links {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-banner {
        min-height: 400px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
}

/* ========================================
   Sticky Header Enhanced
   ======================================== */
.site-header {
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.logo-icon {
    color: var(--accent-color);
    font-size: 20px;
    line-height: 1;
}
.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.3px;
}

/* ========================================
   Breadcrumbs (schema.org list style)
   ======================================== */
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    gap: 0;
    padding: 0;
    margin: 0;
}
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li.separator { margin: 0 8px; color: var(--secondary-color); }

/* ========================================
   Product Card — inquiry button
   ======================================== */
.product-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}
.product-card-actions .btn {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    text-align: center;
}
.product-card-actions .btn-outline-sm {
    background: transparent;
    border: 1.5px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 4px;
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-weight: 600;
}
.product-card-actions .btn-outline-sm:hover {
    background: var(--accent-color);
    color: white;
}

/* Product placeholder image */
.product-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 13px;
}
.product-placeholder svg { margin-bottom: 8px; opacity: .5; }
.blog-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ececec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

/* ========================================
   Inquiry Modal
   ======================================== */
body.modal-open,
body.notice-open { overflow: hidden; }

body.modal-open {
    touch-action: none;
}

.inquiry-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: auto;
    backdrop-filter: blur(4px);
    overscroll-behavior: contain;
}
.inquiry-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }

.inquiry-modal {
    background: white;
    border-radius: 12px;
    padding: 36px;
    width: min(620px, 100%);
    max-width: 620px;
    max-height: min(90vh, calc(var(--app-vh, 100vh) - 40px));
    overflow-y: auto;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
    animation: slideUp 0.25s ease;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
@keyframes slideUp { from { transform: translateY(20px); opacity:0 } to { transform: translateY(0); opacity:1 } }

.inquiry-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}
.inquiry-close:hover { color: var(--primary-color); }

.inquiry-header { margin-bottom: 24px; }
.inquiry-header h3 { font-size: 22px; color: var(--primary-color); margin-bottom: 6px; }
.inquiry-product-name { font-size: 14px; color: var(--text-light); }

.inquiry-form .form-row { display: grid; gap: 16px; margin-bottom: 0; }
.inquiry-form .form-row-2 { grid-template-columns: 1fr 1fr; }
.inquiry-form .form-group { margin-bottom: 16px; }
.inquiry-form label { font-size: 13px; font-weight: 600; color: var(--text-color); margin-bottom: 6px; }
.inquiry-form .required { color: var(--accent-color); }
.inquiry-form input, .inquiry-form textarea { font-size: 14px; padding: 10px 13px; }

.inquiry-submit-group {
    margin-bottom: 10px;
}

.btn-full { width: 100%; display: block; text-align: center; }

.inquiry-privacy {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin-top: 10px;
}

.inquiry-notice {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(18, 24, 32, 0.48);
    backdrop-filter: blur(3px);
}
.inquiry-notice.active {
    display: flex;
    animation: fadeIn 0.18s ease;
}
.inquiry-notice-card {
    width: min(92vw, 420px);
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.24);
    padding: 30px 26px 26px;
    text-align: center;
    position: relative;
    animation: slideUp 0.22s ease;
}
.inquiry-notice-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #8a94a3;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.inquiry-notice-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    background: #22a06b;
}
.inquiry-notice.error .inquiry-notice-icon {
    background: #c64a3a;
}
.inquiry-notice-title {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 8px;
    color: var(--primary-color);
}
.inquiry-notice-message {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 22px;
}
.inquiry-notice-ok {
    min-width: 140px;
}

@media (max-width: 600px) {
    .inquiry-overlay {
        align-items: flex-start;
        justify-content: center;
        padding:
            max(10px, env(safe-area-inset-top))
            max(10px, env(safe-area-inset-right))
            max(10px, env(safe-area-inset-bottom))
            max(10px, env(safe-area-inset-left));
        overflow-y: auto;
    }
    .inquiry-modal {
        width: min(100%, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
        padding: 22px 16px 18px;
        max-height: calc(100vh - 20px);
        max-height: calc(var(--app-vh, 100dvh) - 20px);
        border-radius: 18px;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
    }
    .inquiry-header {
        flex: 0 0 auto;
        padding-right: 36px;
        margin-bottom: 16px;
    }
    .inquiry-form {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 1px;
        -webkit-overflow-scrolling: touch;
    }
    .inquiry-form .form-row-2 { grid-template-columns: 1fr; }
    .inquiry-form .form-group { margin-bottom: 13px; }
    .inquiry-form textarea { min-height: 96px; }
    .inquiry-submit-group {
        position: sticky;
        bottom: -1px;
        z-index: 3;
        background: linear-gradient(180deg, rgba(255,255,255,0.88), #fff 34%);
        padding-top: 12px;
        padding-bottom: max(2px, env(safe-area-inset-bottom));
        margin-bottom: 8px;
    }
    .inquiry-notice {
        padding: 16px;
    }
    .inquiry-notice-card {
        border-radius: 18px;
        padding: 28px 20px 22px;
    }
    .inquiry-notice-title {
        font-size: 20px;
    }
}

/* ========================================
   Footer Social Icons
   ======================================== */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.footer-social a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: rgba(255,255,255,0.8);
}
.footer-social a:hover {
    background: var(--accent-color);
    color: white;
}
.footer-brand p { color: rgba(255,255,255,0.75); font-size: 14px; line-height: 1.7; margin-top: 12px; }
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: white;
}
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}
.contact-info svg { flex-shrink: 0; margin-top: 3px; opacity: .7; }

/* Footer contact column balance */
.footer-main-grid .contact-info li {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 9px;
    line-height: 1.58;
}

.footer-main-grid .contact-info li strong {
    display: block;
    min-width: 0;
    color: #fff;
}

.footer-main-grid .contact-info .contact-legal-line {
    font-size: 13px;
    color: rgba(255,255,255,.86);
}

/* ========================================
   CTA Section (Homepage)
   ======================================== */
.cta-section {
    background: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}
.cta-section h2 { font-size: 36px; margin-bottom: 16px; }
.cta-section p  { font-size: 18px; opacity: .85; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-section .btn {
    background: var(--accent-color);
    font-size: 16px;
    padding: 16px 40px;
}

/* ========================================
   Features / USP section
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 60px 0;
}
.feature-item { text-align: center; }
.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}
.feature-item h3 { font-size: 17px; color: var(--primary-color); margin-bottom: 10px; }
.feature-item p  { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ========================================
   Hero Banner gradient fallback
   ======================================== */
.hero-banner-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a5568 60%, #2d3748 100%);
}
.hero-banner h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

/* ========================================
   2026 Template Refresh
   ======================================== */
body {
    background: #f5f4f0;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body.menu-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

.container {
    max-width: 1320px;
}

.site-header {
    position: relative;
    top: auto;
    box-shadow: none;
    border-bottom: 1px solid #dfdbd3;
    background: rgba(249, 247, 242, 0.97);
    z-index: 3000;
}

.header-inner {
    min-height: 80px;
    padding: 0;
    gap: 18px;
}

.logo-text {
    font-size: 24px;
    line-height: 1.1;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #d8c4ad;
    background: #f3ebe2;
    color: #654a2f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.main-nav {
    margin-left: auto;
}

.lang-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 14px;
}

.lang-current {
    border: 1px solid #ded7ca;
    background: #fff;
    color: #4f4a42;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    min-width: 64px;
    text-align: center;
}

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    background: #fff;
    border: 1px solid #e6e0d5;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(0,0,0,.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: .2s ease;
    z-index: 1300;
}

.lang-dropdown.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #4e5a69;
    font-weight: 600;
}

.lang-menu a:hover {
    background: #f3f7fb;
}

.lang-menu a.active {
    color: #1c3657;
    background: #eef4fb;
}

.main-nav > ul {
    gap: 20px;
}

.main-nav > ul > li > a {
    font-size: 14px;
    font-weight: 600;
    color: #4e4a44;
    line-height: 1.2;
}

.main-nav {
    overflow: visible;
}

.main-nav > ul > li > a:hover {
    color: #1d3556;
}

.btn-nav.nav-cta {
    margin-left: 14px;
    border-radius: 999px;
    font-size: 14px;
    padding: 10px 20px !important;
    background: #d07a36;
    font-weight: 700;
    white-space: nowrap;
}

.mobile-inquiry-item {
    display: none;
}

.mobile-lang-item {
    display: none;
}

.mobile-lang-switch {
    display: flex;
    gap: 8px;
    padding: 8px 0 12px;
}

.mobile-lang-switch a {
    border: 1px solid #d7dfeb;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 700;
    color: #4d5f76;
}

.mobile-lang-switch a.active {
    border-color: #1c3657;
    color: #1c3657;
}

.btn-nav.nav-cta:hover {
    background: #b96726;
}

.has-dropdown > a::after {
    content: "▾";
    font-size: 11px;
    margin-left: 6px;
}

.has-dropdown {
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.has-dropdown.open > .dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.dropdown {
    top: calc(100% - 2px);
    min-width: 260px;
    border-radius: 12px;
    margin-top: 0;
    border: 1px solid #e7e2d8;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    z-index: 3200;
}

.has-dropdown:not(:first-child) > .dropdown:not(.mega-menu) {
    min-width: 280px;
}

.has-dropdown > .dropdown:not(.mega-menu) li {
    display: block;
    width: 100%;
}

.has-dropdown > .dropdown:not(.mega-menu) a {
    display: block;
    width: 100%;
    white-space: nowrap;
}

.dropdown li {
    border-bottom: none;
}

.dropdown a {
    padding: 10px 16px;
    font-size: 14px;
}

.mega-menu {
    position: fixed;
    top: 82px;
    left: 50%;
    width: min(820px, calc(100vw - 48px));
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    transform: translateX(-50%) translateY(-10px);
    overflow: hidden;
}

.has-dropdown:hover .mega-menu,
.has-dropdown.open > .mega-menu {
    transform: translateX(-50%) translateY(0) !important;
}

.mega-menu li h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #847665;
    margin: 8px 0;
}

.mega-menu li a {
    display: block;
    border-radius: 8px;
    white-space: normal;
}

.mega-menu li a:hover {
    background: #f7f4ef;
}

.strip-banner {
    position: relative;
    color: #fff;
    background-image: var(--banner-bg);
    background-size: cover;
    background-position: center;
}

.strip-banner .banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18, 24, 31, .68) 0%, rgba(18, 24, 31, .52) 46%, rgba(18, 24, 31, .35) 100%);
}

.strip-banner .banner-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

.strip-banner.is-list .banner-container {
    min-height: clamp(210px, 22vw, 290px);
}

.strip-banner.is-detail .banner-container {
    min-height: clamp(190px, 18vw, 250px);
}

.strip-banner .banner-content {
    width: min(100%, 1120px);
    padding: 30px 0;
}

.banner-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 14px;
    opacity: 0.95;
}

.banner-breadcrumb a:hover {
    text-decoration: underline;
}

.banner-breadcrumb .sep {
    opacity: 0.7;
}

.banner-kicker {
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: #f5c48d;
}

.strip-banner h1 {
    font-size: clamp(30px, 3.6vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    max-width: 1100px;
}

.strip-banner.is-detail h1 {
    font-size: clamp(28px, 3.2vw, 40px);
    max-width: 1180px;
}

.strip-banner p {
    font-size: clamp(14px, 1.08vw, 18px);
    line-height: 1.55;
    margin: 0 0 10px;
    max-width: 1020px;
    color: rgba(255, 255, 255, 0.94);
}

.banner-meta-line {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: 500;
}

.page-wrap {
    padding: 48px 0 28px;
}

.block-surface {
    background: #fff;
    border: 1px solid #e4ddd2;
    border-radius: 18px;
    padding: 26px;
}

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

.app-trust-panel {
    margin-top: 22px;
}

.section-title-compact {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.app-trust-copy {
    margin-bottom: 18px;
}

.application-card {
    border: 1px solid #e5ddd1;
    border-radius: 14px;
    background: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.application-card h2 {
    font-size: 24px;
    line-height: 1.2;
    color: #1f2935;
}

.application-card p {
    color: #596779;
    line-height: 1.7;
    font-size: 15px;
    flex: 1;
}

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

.trust-card {
    display: block;
    border: 1px solid #dfe5ee;
    border-radius: 14px;
    padding: 18px;
    background: #fbfdff;
}

.trust-card h3 {
    font-size: 20px;
    color: #1f2a37;
    margin-bottom: 8px;
}

.trust-card p {
    font-size: 15px;
    color: #5c6878;
    line-height: 1.7;
}

.trust-list {
    display: grid;
    gap: 12px;
}

.trust-list article {
    border: 1px solid #e5ecf3;
    border-radius: 12px;
    background: #f8fbff;
    padding: 14px 15px;
}

.trust-list h3 {
    font-size: 18px;
    color: #1f2a37;
    margin-bottom: 6px;
}

.trust-list p {
    font-size: 15px;
    color: #5b6777;
    line-height: 1.7;
}

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

.kpi-item {
    border: 1px solid #e3e9f2;
    border-radius: 12px;
    background: #f7fbff;
    padding: 13px 14px;
}

.kpi-item h3 {
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #5a6777;
    margin-bottom: 6px;
}

.kpi-item p {
    color: #1d2a37;
    font-weight: 700;
    font-size: 15px;
}

.app-cover {
    border: 1px solid #e3dccc;
    border-radius: 14px;
    overflow: hidden;
    background: #f8f8f6;
}

.app-cover img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    display: block;
}

.app-gallery {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.app-gallery-item {
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fbff;
}

.app-gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.app-gallery-item figcaption {
    padding: 10px 11px;
    display: grid;
    gap: 4px;
}

.app-gallery-item figcaption strong {
    font-size: 14px;
    color: #1d2a38;
}

.app-gallery-item figcaption span {
    font-size: 13px;
    color: #5a6777;
    line-height: 1.55;
}

.app-section-title {
    margin: 0 0 12px;
    font-size: clamp(26px, 2.2vw, 32px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #1f2a37;
}

.app-section-copy {
    margin: 0;
    font-size: clamp(15px, 1.05vw, 18px);
    line-height: 1.68;
    color: #5a6777;
}

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

.app-proof-card {
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fbff;
}

.app-proof-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.app-proof-card figcaption {
    padding: 10px 11px;
    display: grid;
    gap: 4px;
}

.app-proof-card figcaption strong {
    font-size: 14px;
    color: #1d2a38;
}

.app-proof-card figcaption span {
    font-size: 13px;
    color: #5a6777;
    line-height: 1.55;
}

.about-section-title {
    margin: 0 0 12px;
    font-size: clamp(26px, 2.15vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #1f2a37;
}

.about-section-copy {
    margin: 0;
    font-size: clamp(15px, 1.05vw, 18px);
    line-height: 1.72;
    color: #556273;
}

.about-intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px;
    align-items: center;
}

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

.oem-inline-media {
    margin: 0 0 14px;
    border: 1px solid #e3e9f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fbff;
}

.oem-inline-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.oem-section-title {
    margin: 0 0 14px;
    font-size: clamp(26px, 2.2vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #1f2a37;
}

.oem-workflow-note,
.oem-section-copy {
    margin: 0;
    font-size: clamp(16px, 1.1vw, 18px);
    line-height: 1.72;
    color: #4f5f73;
}


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

.product-card {
    border: 1px solid #e2dbcf;
    border-radius: 16px;
    box-shadow: none;
}

.product-card img {
    height: auto;
}

.product-card img,
.blog-card img,
.blog-row-thumb,
.media-thumb,
.product-placeholder,
.blog-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.media-thumb {
    aspect-ratio: 16 / 10;
    width: 100%;
    object-fit: cover;
}

.blog-list {
    display: grid;
    gap: 18px;
}

.blog-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: center;
    border: 1px solid #dde3ea;
    border-radius: 18px;
    padding: 18px;
    background: #fff;
}

.blog-row-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 12px;
    object-fit: cover;
}

.blog-row h3 {
    margin: 0 0 10px;
    font-size: clamp(19px, 1.7vw, 30px);
    line-height: 1.16;
    color: #1e262f;
}

.blog-row p {
    margin: 0;
    color: #5c6877;
    font-size: clamp(15px, 1.05vw, 20px);
    line-height: 1.58;
}

.pager {
    margin: 34px 0 8px;
}

.pager-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pager-btn,
.pager-num {
    min-width: 46px;
    padding: 10px 14px;
    border: 1px solid #cad2de;
    border-radius: 9px;
    background: #fff;
    color: #2b3542;
    font-size: 14px;
    line-height: 1;
    text-align: center;
}

.pager-num.is-active {
    background: #23272d;
    color: #fff;
    border-color: #23272d;
}

.pager-btn:hover,
.pager-num:hover {
    border-color: #23272d;
}

.pager-btn.is-disabled {
    opacity: .4;
    pointer-events: none;
}

.pager-ellipsis {
    padding: 0 6px;
    color: #718096;
}

.page-layout-2col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    margin-bottom: 30px;
}

.gallery-main {
    border: 1px solid #e6dfd4;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.gallery-main img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f8f6f1;
}

.product-video-card,
.article-video-card {
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    background: #111827;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.product-main-video,
.article-main-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: #111827;
    object-fit: cover;
}

.product-video-caption {
    padding: 10px 14px;
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    line-height: 1.45;
}

.gallery-strip {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.gallery-strip img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border: 1px solid #d8d2c8;
    border-radius: 8px;
    cursor: pointer;
}

.spec-table {
    border: 1px solid #e5ddd1;
    border-radius: 14px;
    overflow: hidden;
}

.spec-table tr + tr td {
    border-top: 1px solid #eee7dc;
}

.spec-table td {
    padding: 12px 14px;
    font-size: 14px;
    vertical-align: top;
}

.spec-table td:first-child {
    width: 34%;
    font-weight: 700;
    color: #394552;
    background: #f7f4ee;
}

.article-content h2 {
    margin: 1.4em 0 .6em;
    font-size: clamp(22px, 2.1vw, 30px);
    line-height: 1.3;
    color: #1f2b38;
}

.article-content p {
    margin: 0 0 1.1em;
}

.article-media {
    margin: 1.25rem 0 1.1rem;
}

.article-media img {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f7f7f7;
}

.article-media figcaption {
    margin-top: .55rem;
    font-size: 13px;
    color: #6b7280;
}

.article-media--hero img {
    aspect-ratio: 21 / 9;
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 1.2rem 0 1.1rem;
}

.topics-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-filter-wrap {
    padding: 20px 20px 16px;
}

.product-filter-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.product-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
    min-width: 0;
    padding-bottom: 0;
}

.topics-chip {
    border: 1px solid #bdd0e7;
    color: #3264a4;
    border-radius: 999px;
    padding: 7px 14px;
    font-weight: 600;
    background: #f7fbff;
    white-space: nowrap;
    flex-shrink: 1;
    font-size: 15px;
    min-width: 0;
}

.topics-chip.is-active {
    background: #2f5f99;
    border-color: #2f5f99;
    color: #fff;
}

.tag-select-label {
    font-size: 13px;
    color: #607080;
    font-weight: 600;
    margin-left: 4px;
    align-self: center;
}

.tag-filter-select {
    width: 230px;
    max-width: 100%;
    border-radius: 999px;
    border: 1px solid #ccd8e6;
    padding: 8px 12px;
    font-size: 13px;
    background: #fff;
}

.product-filter-more {
    position: relative;
    align-self: start;
}

.tag-more-btn {
    border: 1px solid #cad8e9;
    background: #fff;
    color: #264a74;
    border-radius: 999px;
    padding: 8px 14px;
    min-height: 40px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.tag-more-btn:hover {
    border-color: #9eb7d3;
    background: #f9fbff;
}

.tag-more-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(720px, 88vw);
    max-height: 360px;
    overflow: auto;
    background: #fff;
    border: 1px solid #d8e2ef;
    border-radius: 14px;
    box-shadow: 0 16px 35px rgba(27, 45, 66, 0.15);
    padding: 12px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.tag-more-panel[hidden] {
    display: none !important;
}

.tag-more-link {
    display: block;
    border: 1px solid #d4e0ef;
    background: #f7fbff;
    color: #2f5f99;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.tag-more-link:hover {
    border-color: #9db6d2;
    background: #eef5ff;
}

.tag-more-link.is-active {
    background: #2f5f99;
    border-color: #2f5f99;
    color: #fff;
}

.product-filter-foot {
    margin-top: 10px;
    font-size: 14px;
    color: #607080;
}

.back-to-top {
    position: fixed;
    right: clamp(18px, 3vw, 34px);
    bottom: clamp(20px, 3.5vw, 34px);
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 999px;
    background: #0f5ebd;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
    z-index: 1200;
    box-shadow: 0 14px 34px rgba(15, 94, 189, .28);
}

.back-to-top:hover {
    background: #0a4f9f;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 1180px) {
    .menu-toggle {
        display: flex;
    }
    .btn-nav.nav-cta {
        display: none;
    }
    .lang-dropdown {
        margin-left: auto;
        margin-right: 10px;
    }
    .main-nav {
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        transform: translateY(-110%);
        transition: transform .25s ease;
        background: #fff;
        border-bottom: 1px solid #e7e2d9;
        margin-left: 0;
        padding: 10px 18px 18px;
        max-height: calc(100vh - 74px);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1001;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .main-nav::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
    .main-nav.active {
        transform: translateY(0);
    }
    .main-nav > ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .main-nav li {
        width: 100%;
    }
    .main-nav > ul > li > a {
        padding: 10px 0;
        font-size: 16px;
    }
    .dropdown,
    .mega-menu {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        width: 100%;
        min-width: 0;
        border: 0;
        box-shadow: none;
        display: none !important;
        padding: 4px 0 8px 10px;
        margin: 0;
        background: transparent;
        overflow: visible;
    }
    .has-dropdown {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .has-dropdown.open .dropdown {
        display: block !important;
    }
    .mega-menu {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .has-dropdown.open .mega-menu {
        display: grid !important;
        transform: none !important;
    }
}

@media (max-width: 1120px) {
    .main-nav > ul {
        gap: 18px;
    }
    .main-nav > ul > li > a {
        font-size: 15px;
    }
    .logo-text {
        font-size: 22px;
    }
}

@media (max-width: 960px) {
    body.menu-open { overflow: hidden; }
    body.menu-open {
        position: fixed;
        width: 100%;
    }
    .header-inner { min-height: 64px; }
    .logo-text { font-size: 19px; }
    .logo-icon {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    .menu-toggle {
        width: 36px;
        height: 32px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1202;
        align-items: center;
        justify-content: center;
    }
    .menu-toggle span {
        display: none;
    }
    .menu-toggle::after {
        content: "\2630";
        color: var(--primary-color);
        font-size: 27px;
        line-height: 1;
        font-weight: 700;
    }
    .menu-toggle.active::after {
        content: "\00d7";
        font-size: 36px;
        font-weight: 400;
    }
    .menu-toggle span {
        width: 25px;
    }
    .main-nav {
        top: 64px;
        max-height: calc(100dvh - 64px);
        padding: 8px 16px 14px;
    }
    .lang-dropdown { display: none; }
    .mobile-lang-item { display: block; }
    .mobile-inquiry-item {
        display: block;
        padding-top: 8px;
    }
    .mobile-inquiry-item .btn-nav {
        display: inline-block;
        width: 100%;
        text-align: center;
        border-radius: 12px;
        padding: 12px 18px !important;
    }
    .strip-banner .banner-content {
        width: 100%;
        padding: 20px 0;
    }
    .strip-banner.is-list .banner-container {
        min-height: 190px;
    }
    .strip-banner.is-detail .banner-container {
        min-height: 170px;
    }
    .banner-breadcrumb {
        font-size: 15px;
        margin-bottom: 8px;
    }
    .strip-banner h1 {
        font-size: clamp(24px, 6.8vw, 34px);
        margin-bottom: 8px;
    }
    .strip-banner p {
        font-size: 13px;
        line-height: 1.55;
    }
    .products-grid-3 {
        grid-template-columns: 1fr;
    }
    .applications-grid {
        grid-template-columns: 1fr;
    }
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .app-gallery {
        grid-template-columns: 1fr 1fr;
    }
    .app-proof-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-proof-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .about-section-title {
        font-size: clamp(23px, 3.9vw, 30px);
    }
    .about-section-copy {
        font-size: 15px;
    }
    .app-section-title {
        font-size: clamp(23px, 3.8vw, 29px);
    }
    .app-section-copy {
        font-size: 15px;
    }
    .blog-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .oem-section-title {
        margin-bottom: 12px;
        font-size: clamp(23px, 4vw, 30px);
    }
    .oem-workflow-note,
    .oem-section-copy {
        font-size: 15px;
        line-height: 1.68;
    }
    .product-filter-wrap {
        padding: 14px;
    }
    .product-filter-top {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .product-filter-chips {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .product-filter-chips .topics-chip {
        width: 100%;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.3;
    }
    .product-filter-more {
        width: 100%;
    }
    .tag-more-btn {
        width: 100%;
        border-radius: 12px;
    }
    .tag-more-panel {
        position: static;
        width: 100%;
        margin-top: 10px;
        max-height: 300px;
        grid-template-columns: 1fr;
        border-radius: 12px;
        box-shadow: none;
    }
    .tag-more-link {
        white-space: normal;
        text-align: center;
        overflow-wrap: anywhere;
    }
    .page-layout-2col {
        grid-template-columns: 1fr;
    }
    .detail-main {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .site-footer h2 { font-size: 30px !important; }
    .site-footer p { font-size: 15px !important; }
    .site-footer .footer-cta-grid {
        grid-template-columns: 1fr !important;
        padding: 24px 18px !important;
        gap: 16px !important;
    }
    .site-footer .footer-cta-actions {
        justify-content: flex-start !important;
    }
    .site-footer .footer-main-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .footer-main-grid .contact-info li {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 8px;
    }
    .footer-main-grid .contact-info li strong {
        min-width: 104px;
    }
    .grid[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    .grid[style*="padding: 60px 40px"] {
        padding: 28px 18px !important;
    }
    .grid[style*="gap: 50px"] {
        gap: 18px !important;
    }
    section[style*="padding: 60px 40px"] {
        padding: 30px 16px !important;
    }
    div[style*="font-size: 48px"] {
        font-size: 34px !important;
    }
    h2[style*="font-size: 36px"] {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 640px) {
    .container { padding: 0 14px; }
    .header-inner { min-height: 58px; }
    .main-nav {
        top: 58px;
        max-height: calc(100dvh - 58px);
    }
    .logo-text { font-size: 17px; }
    .logo-icon {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    .menu-toggle {
        width: 32px;
        height: 30px;
        right: 0;
    }
    .menu-toggle span {
        display: none;
    }
    .mobile-lang-switch a {
        font-size: 11px;
        padding: 5px 10px;
    }
    .strip-banner.is-list .banner-container,
    .strip-banner.is-detail .banner-container { min-height: 150px; }
    .banner-breadcrumb { font-size: 13px; }
    .strip-banner h1 { font-size: clamp(22px, 7.2vw, 30px); }
    .strip-banner p { font-size: 12.5px; margin-bottom: 6px; }
    .topics-chip {
        font-size: 14px;
        padding: 7px 12px;
    }
    .product-filter-chips {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .product-filter-chips .topics-chip {
        text-align: center;
        white-space: normal;
        line-height: 1.35;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .product-filter-foot {
        font-size: 13px;
        margin-top: 8px;
    }
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
        font-size: 26px;
    }
    .article-gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .article-media--hero img {
        aspect-ratio: 16 / 10;
    }
    .page-wrap { padding-top: 24px; }
    .block-surface { border-radius: 12px; padding: 16px; }
    .application-card h2 { font-size: 22px; }
    .kpi-grid { grid-template-columns: 1fr; }
    .app-gallery { grid-template-columns: 1fr; }
    .app-proof-grid { grid-template-columns: 1fr; }
    .about-proof-grid { grid-template-columns: 1fr; }
    .about-section-title {
        font-size: clamp(22px, 6vw, 27px);
        margin-bottom: 10px;
    }
    .about-section-copy {
        font-size: 14px;
        line-height: 1.62;
    }
    .app-section-title {
        font-size: clamp(22px, 6vw, 27px);
        margin-bottom: 10px;
    }
    .app-section-copy {
        font-size: 14px;
        line-height: 1.62;
    }
    .oem-section-title {
        margin-bottom: 10px;
        font-size: clamp(21px, 6.2vw, 27px);
    }
    .oem-workflow-note,
    .oem-section-copy {
        font-size: 14px;
        line-height: 1.64;
    }
    .main-nav > ul > li > a {
        font-size: 15px;
        line-height: 1.3;
    }
    .site-footer h2 {
        font-size: 24px !important;
    }
    .site-footer p {
        font-size: 14px !important;
    }
    .site-footer .btn {
        width: 100%;
        text-align: center;
    }
    .footer-social-strip {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
    .footer-social-icons a {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .footer-main-grid .contact-info li {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .footer-main-grid .contact-info li strong {
        min-width: 0;
    }
    .footer-legal-links {
        gap: 6px 12px;
    }
}
