/* ==========================================================================
   NE Tool - Main Stylesheet  (v2 - White & Gray theme, no black)
   Palette: White + Gray + Light Yellow (#FFD93D)
   Domain:  netools.kr
   Fonts:   Poppins (headings) + Inter (body) via Google Fonts
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

:root {
    /* Yellow - lighter & warmer */
    --yellow: #FFD93D;
    --yellow-dark: #E5B800;
    --yellow-soft: #FFF3B0;
    --yellow-tint: #FFFAE5;

    /* Grays (replacing black everywhere) */
    --gray-900: #3A3D44;     /* Primary text - was black */
    --gray-800: #4A4D54;
    --gray-700: #6C7079;     /* Body text */
    --gray-600: #8B8F96;
    --gray-500: #A8ACB3;
    --gray-400: #C5C8CE;
    --gray-300: #E5E7EB;
    --gray-200: #EEF0F3;
    --gray-100: #F5F6F8;
    --gray-50:  #FAFBFC;

    --white: #FFFFFF;
    --primary: var(--gray-900);

    --shadow-sm: 0 2px 8px rgba(58, 61, 68, 0.06);
    --shadow:    0 4px 18px rgba(58, 61, 68, 0.08);
    --shadow-lg: 0 10px 36px rgba(58, 61, 68, 0.10);
    --shadow-xl: 0 18px 50px rgba(58, 61, 68, 0.12);

    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Poppins', 'Inter', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Push footer to bottom of viewport when content is short */
.site-main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

img { max-width: 100%; display: block; }

a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--yellow-dark); }

/* ---- Layout: 95% width ---- */
.container {
    width: 95%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.18;
    color: var(--gray-900);
    margin-bottom: 0.6em;
    letter-spacing: -0.02em;
}
h1 { font-size: 3rem; font-weight: 800; }
h2 { font-size: 2.3rem; font-weight: 700; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }
p  { margin-bottom: 1em; color: var(--gray-700); }
p:last-child { margin-bottom: 0; }

.text-yellow { color: var(--yellow-dark); }
.text-gray { color: var(--gray-700); }
.text-center { text-align: center; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--yellow-dark);
    padding: 6px 14px;
    background: var(--yellow-soft);
    border-radius: 999px;
    margin-bottom: 14px;
}

.lead {
    font-size: 1.18rem;
    color: var(--gray-700);
    line-height: 1.75;
    max-width: 780px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary {
    background: var(--yellow);
    color: var(--gray-900);
    border-color: var(--yellow);
    box-shadow: 0 4px 14px rgba(255, 217, 61, 0.35);
}
.btn-primary:hover {
    background: var(--yellow-dark);
    border-color: var(--yellow-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(229, 184, 0, 0.4);
}
.btn-outline {
    background: transparent;
    color: var(--gray-900);
    border-color: var(--gray-300);
}
.btn-outline:hover {
    background: var(--gray-900);
    color: var(--white);
    border-color: var(--gray-900);
}
.btn-light {
    background: var(--white);
    color: var(--gray-900);
    border-color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn-light:hover {
    background: var(--yellow);
    border-color: var(--yellow);
}
.btn-ghost {
    background: transparent;
    color: var(--gray-900);
    border-color: var(--gray-300);
}
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow-dark); }

.btn-cta {
    background: var(--yellow);
    color: var(--gray-900) !important;
    padding: 11px 24px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    transition: all var(--transition);
    display: inline-block;
}
.btn-cta:hover { background: var(--gray-900); color: var(--yellow) !important; }

/* ---- Top Bar ---- */
.topbar {
    background: var(--gray-900);
    color: var(--white);
    font-size: 0.8rem;
    padding: 10px 0;
    border-bottom: 3px solid var(--yellow);
    margin: 0;
    display: block;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.topbar-item { color: var(--gray-300); }
.topbar a { color: var(--yellow); }
.topbar a:hover { color: var(--white); }
.topbar-divider { color: var(--gray-600); }

/* ---- Header ---- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow var(--transition);
    margin: 0;
    padding: 0;
}
.site-header.scrolled {
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    gap: 24px;
}
.logo img { height: 90px; width: auto; }

.main-nav > ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-item { position: relative; }
.nav-item > a {
    display: inline-block;
    padding: 12px 20px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--gray-900);
    border-radius: var(--radius);
}
.nav-item > a:hover { background: var(--gray-100); color: var(--gray-900); }
.nav-item.active > a { color: var(--yellow-dark); }
.nav-item.active > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--yellow);
    border-radius: 3px;
}
.caret { font-size: 0.7rem; opacity: 0.7; margin-left: 4px; }

.nav-item.has-dropdown:hover > .dropdown,
.nav-item.has-dropdown:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    list-style: none;
    border-top: 3px solid var(--yellow);
}
.dropdown li a {
    display: block;
    padding: 11px 16px;
    color: var(--gray-700);
    font-size: 0.93rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.dropdown li a:hover {
    background: var(--yellow-tint);
    color: var(--gray-900);
    padding-left: 22px;
}
.nav-cta { margin-left: 14px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--gray-900);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: var(--gray-100);
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0s 0.8s;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Slider dots */
.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    border: 0;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}
.slider-dot.active {
    background: var(--yellow);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(255, 217, 61, 0.3);
}
.slider-dot:hover { background: var(--yellow-dark); }

/* Slider arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    color: var(--gray-900);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-arrow:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    transform: translateY(-50%) scale(1.05);
}
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

/* Slider bottom progress */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--yellow);
    transition: width 0.1s linear;
    z-index: 9;
}

/* ---- Hero stats (below slider) ---- */
.hero-stats-strip {
    background: var(--gray-900);
    color: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid var(--gray-800);
}
.hero-stats-strip .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.hss-item { text-align: center; }
.hss-item .num {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1;
    display: block;
}
.hss-item .label {
    font-size: 0.85rem;
    color: var(--gray-300);
    margin-top: 6px;
    display: block;
    letter-spacing: 0.03em;
}

/* ---- Section base ---- */
section { padding: 90px 0; }
.section-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}
.section-head h2 {
    margin-bottom: 18px;
    position: relative;
}
.section-head h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--yellow);
    border-radius: 2px;
    margin: 18px auto 0;
}
.section-head p {
    font-size: 1.1rem;
    color: var(--gray-700);
}

/* ---- Features ---- */
.features { background: var(--gray-50); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--yellow);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--yellow-soft);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: var(--yellow-soft);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.feature-card:hover .feature-icon {
    background: var(--yellow);
    transform: rotate(-5deg) scale(1.05);
}
.feature-icon svg { width: 36px; height: 36px; }
.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}
.feature-card p {
    font-size: 0.92rem;
    color: var(--gray-700);
    margin: 0;
}

/* ---- Categories ---- */
.categories { background: var(--white); }
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.category-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: center;
}
.category-card:hover {
    border-color: var(--yellow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.category-card .cat-img {
    background: var(--gray-50);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: background var(--transition);
}
.category-card:hover .cat-img { background: var(--yellow-tint); }
.category-card .cat-img img {
    max-width: 100%;
    max-height: 150px;
    transition: transform var(--transition);
}
.category-card:hover .cat-img img { transform: scale(1.1) rotate(3deg); }
.category-card .cat-body { padding: 30px; }
.category-card .cat-num {
    display: inline-block;
    background: var(--yellow);
    color: var(--gray-900);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}
.category-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.category-card p {
    font-size: 0.94rem;
    color: var(--gray-700);
    margin-bottom: 16px;
}
.category-card .cat-link {
    color: var(--yellow-dark);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition);
}
.category-card .cat-link:hover { color: var(--gray-900); gap: 10px; }

/* ---- About teaser ---- */
.about-teaser { background: var(--gray-900); color: var(--white); }
.about-teaser .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-teaser h2 { color: var(--white); }
.about-teaser h2::after { background: var(--yellow); }
.about-teaser p { color: var(--gray-300); font-size: 1.05rem; }
.about-teaser .about-list {
    list-style: none;
    margin: 24px 0 30px;
}
.about-teaser .about-list li {
    padding: 14px 0 14px 38px;
    position: relative;
    color: var(--gray-200);
    border-bottom: 1px solid var(--gray-800);
    font-size: 0.98rem;
}
.about-teaser .about-list li:last-child { border-bottom: 0; }
.about-teaser .about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 22px;
    height: 22px;
    background: var(--yellow);
    border-radius: 50%;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2l-3.5-3.5L4 14.2l5 5L20 8.2l-1.5-1.5z'/></svg>") center/14px no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2l-3.5-3.5L4 14.2l5 5L20 8.2l-1.5-1.5z'/></svg>") center/14px no-repeat;
}

.about-teaser-visual { position: relative; }
.about-teaser-visual .stat-card {
    background: var(--white);
    color: var(--gray-900);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: transform var(--transition);
}
.about-teaser-visual .stat-card:hover { transform: translateY(-4px); }
.about-teaser-visual .stat-card .num {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--yellow-dark);
    line-height: 1;
}
.about-teaser-visual .stat-card .label {
    margin-top: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
}
.about-teaser-visual .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}
.about-teaser-visual .row .stat-card { padding: 20px; }
.about-teaser-visual .row .stat-card .num { font-size: 2rem; }

/* ---- Industries ---- */
.industries { background: var(--gray-50); }
.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.industry-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px 26px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.industry-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gray-900);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition);
    z-index: 0;
}
.industry-card:hover::after { transform: scaleY(1); }
.industry-card > * { position: relative; z-index: 1; }
.industry-card:hover h4 { color: var(--yellow); }
.industry-card:hover p { color: var(--gray-300); }
.industry-card:hover .ic { background: var(--yellow); color: var(--gray-900); }
.industry-card .ic {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--gray-900);
    color: var(--yellow);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    transition: all var(--transition);
}
.industry-card h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    transition: color var(--transition);
}
.industry-card p {
    font-size: 0.85rem;
    color: var(--gray-700);
    margin: 0;
    transition: color var(--transition);
}

/* ---- CTA banner ---- */
.cta-banner {
    background: linear-gradient(135deg, var(--yellow) 0%, #FFC700 100%);
    color: var(--gray-900);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}
.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--gray-900); margin-bottom: 14px; }
.cta-banner p { color: var(--gray-800); font-size: 1.15rem; margin-bottom: 28px; }
.cta-banner .btn-primary {
    background: var(--gray-900);
    color: var(--yellow);
    border-color: var(--gray-900);
}
.cta-banner .btn-primary:hover {
    background: var(--white);
    color: var(--gray-900);
    border-color: var(--white);
}

/* ---- Page header (inner pages) ---- */
.page-header {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--white);
    padding: 28px 0 28px;
    position: relative;
    overflow: hidden;
    margin: 0;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 217, 61, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--yellow);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 2.3rem;
}
.page-header .breadcrumb {
    font-size: 0.88rem;
    color: var(--gray-400);
    margin-bottom: 8px;
}
.page-header .breadcrumb a { color: var(--yellow); }
.page-header .breadcrumb a:hover { color: var(--white); }
.page-header p { color: var(--gray-300); margin-top: 8px; max-width: 760px; }

/* ---- About page ---- */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-intro-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-900);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.about-intro-img::before {
    
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 9rem;
    font-weight: 800;
    color: var(--yellow);
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    opacity: 0.95;
}
.about-intro-img::after {
    content: 'Quality. Made in Korea.';
    position: absolute;
    bottom: 24px;
    right: 24px;
    color: var(--gray-900);
    background: var(--yellow);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.92rem;
}

.about-mission { background: var(--gray-50); padding: 90px 0; }
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}
.mv-card {
    background: var(--white);
    padding: 44px 36px;
    border-radius: var(--radius-lg);
    border-top: 5px solid var(--yellow);
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}
.mv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mv-card .mv-icon {
    width: 60px;
    height: 60px;
    background: var(--yellow-soft);
    color: var(--yellow-dark);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.mv-card h3 { margin-bottom: 14px; }
.mv-card p { font-size: 0.96rem; color: var(--gray-700); }

.about-why { background: var(--white); }
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.why-card {
    padding: 32px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--yellow);
    transition: all var(--transition);
}
.why-card:hover {
    background: var(--gray-900);
    color: var(--white);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.why-card:hover h4 { color: var(--yellow); }
.why-card:hover p { color: var(--gray-300); }
.why-card .num {
    display: inline-block;
    background: var(--yellow);
    color: var(--gray-900);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}
.why-card h4 { margin-bottom: 10px; transition: color var(--transition); }
.why-card p { font-size: 0.93rem; margin: 0; transition: color var(--transition); }

/* ---- Products listing ---- */
section.products-page {
    background: var(--gray-50);
    padding: 24px 0 80px;
    margin: 0;
}
.cat-section { margin-bottom: 60px; }
.cat-section-head {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--gray-200);
}
.cat-section-head .cat-no {
    width: 66px;
    height: 66px;
    background: var(--yellow);
    color: var(--gray-900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(255, 217, 61, 0.4);
}
.cat-section-head h2 { margin: 0; }
.cat-section-head .cat-tag { color: var(--gray-600); font-size: 0.95rem; margin-top: 4px; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    align-items: stretch;
    justify-items: stretch;
    width: 100%;
}
.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 360px;
}
.product-card:hover {
    border-color: var(--yellow);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.product-card .pc-img {
    background: var(--gray-50);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}
.product-card .pc-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(255, 217, 61, 0.1) 100%);
    pointer-events: none;
}
.product-card .pc-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform var(--transition);
}
.product-card:hover .pc-img img { transform: scale(1.1) rotate(-3deg); }
.product-card .pc-body {
    padding: 26px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-card .pc-cat {
    display: inline-block;
    background: var(--yellow-soft);
    color: var(--yellow-dark);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    align-self: flex-start;
}
.product-card h3 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.3; }
.product-card .pc-desc {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 18px;
    flex: 1;
}
.product-card .pc-link {
    color: var(--yellow-dark);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    transition: all var(--transition);
}
.product-card .pc-link:hover { gap: 10px; color: var(--gray-900); }

/* ---- Product Detail Page ---- */
.product-detail {
    padding: 20px 0 70px;
    background: var(--white);
    margin: 0;
}
.pd-breadcrumb {
    font-size: 0.86rem;
    color: var(--gray-600);
    margin-bottom: 14px;
}
.pd-breadcrumb a { color: var(--yellow-dark); }
.pd-breadcrumb a:hover { color: var(--gray-900); }

.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 50px;
    margin-bottom: 50px;
}
.pd-image {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 110px;
    align-self: start;
}
.pd-image img { max-width: 100%; max-height: 400px; }
.pd-image .pd-cat-tag {
    position: absolute;
    top: 22px;
    left: 22px;
    background: var(--yellow);
    color: var(--gray-900);
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pd-info h1 {
    font-size: 2.1rem;
    margin-bottom: 10px;
    line-height: 1.18;
}
.pd-info .pd-tagline {
    font-size: 1.1rem;
    color: var(--yellow-dark);
    margin-bottom: 20px;
    font-weight: 500;
    font-family: var(--font-body);
}
.pd-info .pd-desc p {
    margin-bottom: 0.9em;
    color: var(--gray-700);
    line-height: 1.75;
}
.pd-attrs {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 24px;
    margin: 22px 0;
    border-left: 4px solid var(--yellow);
}
.pd-attrs h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-700);
    margin-bottom: 16px;
}
.pd-attrs ul { list-style: none; }
.pd-attrs li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--gray-300);
    font-size: 0.93rem;
}
.pd-attrs li:last-child { border-bottom: 0; }
.pd-attrs li .lab { color: var(--gray-700); font-weight: 600; }
.pd-attrs li .val { color: var(--gray-900); text-align: right; }

.pd-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

/* ---- Spec Table ---- */
.pd-spec-section { margin-top: 50px; }
.pd-spec-section h2 { font-size: 1.7rem; margin-bottom: 8px; }
.pd-spec-section .sub {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 22px;
}
.spec-table-wrap {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 800px;
}
.spec-table thead th {
    background: var(--gray-900);
    color: var(--white);
    padding: 16px 18px;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-right: 1px solid var(--gray-800);
}
.spec-table thead th:last-child { border-right: 0; }
.spec-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    color: var(--gray-700);
    vertical-align: top;
}
.spec-table tbody td:first-child {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--gray-900);
    background: var(--gray-50);
    white-space: nowrap;
}
.spec-table tbody td:last-child { border-right: 0; }
.spec-table tbody tr:nth-child(even) { background: var(--gray-50); }
.spec-table tbody tr:nth-child(even) td:first-child { background: var(--gray-100); }
.spec-table tbody tr:hover { background: var(--yellow-tint); }
.spec-table tbody tr:hover td:first-child { background: var(--yellow-soft); color: var(--gray-900); }

/* ---- Related products ---- */
.pd-related { margin-top: 60px; padding-top: 40px; border-top: 2px solid var(--gray-200); }
.pd-related h3 { font-size: 1.4rem; margin-bottom: 22px; }
.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.pd-related-grid .product-card .pc-img { aspect-ratio: 1 / 1; padding: 18px; }
.pd-related-grid .product-card .pc-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-related-grid .product-card h3 { font-size: 1rem; }

/* ---- Contact page ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 10px;
}
.contact-info-card {
    background: var(--gray-900);
    color: var(--white);
    padding: 44px;
    border-radius: var(--radius-lg);
    border-top: 5px solid var(--yellow);
}
.contact-info-card h3 { color: var(--white); margin-bottom: 26px; }
.contact-info-card .ci-item {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-800);
}
.contact-info-card .ci-item:last-child { border-bottom: 0; }
.contact-info-card .ci-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 217, 61, 0.15);
    color: var(--yellow);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.contact-info-card .ci-body .lab {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
    margin-bottom: 5px;
}
.contact-info-card .ci-body .val {
    font-size: 1rem;
    color: var(--white);
}
.contact-info-card .ci-body a { color: var(--yellow); }
.contact-info-card .ci-body a:hover { color: var(--white); }

.contact-form-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow);
}
.contact-form-card h3 { margin-bottom: 10px; }
.contact-form-card .sub { color: var(--gray-600); margin-bottom: 26px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.86rem;
    margin-bottom: 8px;
    color: var(--gray-900);
}
.form-group label .req { color: var(--yellow-dark); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.96rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--white);
    color: var(--gray-900);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 217, 61, 0.2);
}
.form-group textarea { resize: vertical; min-height: 150px; }
.form-msg {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.93rem;
    font-weight: 500;
}
.form-msg.success { background: var(--yellow-tint); color: var(--yellow-dark); border: 1px solid var(--yellow); }
.form-msg.error { background: #FFE5E5; color: #C00; border: 1px solid #C00; }

/* ---- Map ---- */
.contact-map {
    margin-top: 60px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    aspect-ratio: 21 / 9;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- Footer ---- */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 0 0;
    border-top: 4px solid var(--yellow);
    margin: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--gray-800);
}
.footer-logo { height: 56px; margin-bottom: 20px; }
.footer-about p { color: var(--gray-400); font-size: 0.92rem; line-height: 1.7; }
.footer-col h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 34px;
    height: 3px;
    background: var(--yellow);
    border-radius: 2px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 7px 0; }
.footer-col ul li a {
    color: var(--gray-400);
    font-size: 0.93rem;
    transition: all var(--transition);
}
.footer-col ul li a:hover { color: var(--yellow); padding-left: 6px; }
.footer-contact li { color: var(--gray-400); font-size: 0.93rem; padding: 5px 0; }
.footer-contact li a { color: var(--yellow); }
.footer-contact li a:hover { color: var(--white); }

.footer-bottom {
    padding: 16px 0;
    background: var(--gray-800);
    margin: 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-400);
}
.footer-credit { color: var(--yellow); font-weight: 600; }

/* ---- Back to top ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--yellow);
    color: var(--gray-900);
    border: 0;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gray-900); color: var(--yellow); transform: translateY(-3px); }

/* ---- Process badges ---- */
.process-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.process-badges .pb {
    display: inline-block;
    background: var(--gray-900);
    color: var(--yellow);
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    font-family: var(--font-body);
}

/* ---- Process families section ---- */
.process-families { background: var(--gray-900); color: var(--white); }
.process-families h2 { color: var(--white); }
.process-families h2::after { background: var(--yellow); }
.process-families .section-head p { color: var(--gray-300); }
.process-families-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.pf-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 34px;
    transition: all var(--transition);
}
.pf-card:hover {
    background: rgba(255, 217, 61, 0.08);
    border-color: var(--yellow);
    transform: translateY(-6px);
}
.pf-card .pf-icon {
    width: 54px;
    height: 54px;
    background: var(--yellow);
    color: var(--gray-900);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 20px;
}
.pf-card h4 { color: var(--white); margin-bottom: 10px; }
.pf-card p { color: var(--gray-300); font-size: 0.94rem; margin: 0; }

/* ---- Tabs ---- */
.cat-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 30px 0 0;
}
.cat-tabs .btn {
    padding: 10px 22px;
    font-size: 0.86rem;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    h1 { font-size: 2.5rem; }
    .hero-slider { height: 520px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-related-grid { grid-template-columns: repeat(2, 1fr); }
    .process-families-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .mv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .container { width: 96%; padding: 0 16px; }
    .hero-stats-strip .container { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .about-intro,
    .about-teaser .container,
    .pd-grid,
    .contact-grid,
    .categories-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .category-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { width: 96%; padding: 0 14px; }
    .topbar-inner { flex-direction: column; gap: 4px; }
    .topbar-left, .topbar-right { font-size: 0.74rem; flex-wrap: wrap; justify-content: center; }

    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--white);
        padding: 90px 20px 20px;
        box-shadow: -10px 0 30px rgba(58, 61, 68, 0.15);
        transition: right var(--transition);
        overflow-y: auto;
        z-index: 99;
    }
    .main-nav.open { right: 0; }
    .main-nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .nav-item > a { padding: 16px 12px; border-radius: 0; border-bottom: 1px solid var(--gray-100); }
    .nav-item.active > a::after { display: none; }
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: 0;
        padding: 0 0 0 16px;
        min-width: 0;
    }
    .nav-cta { margin: 16px 0 0; }
    .nav-cta .btn-cta { display: block; text-align: center; }

    .hero-slider { height: 420px; }
    .slider-arrow { width: 42px; height: 42px; font-size: 1.1rem; }
    .slider-arrow.prev { left: 12px; }
    .slider-arrow.next { right: 12px; }

    section { padding: 60px 0; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }

    .features-grid,
    .industries-grid,
    .products-grid,
    .pd-related-grid,
    .categories-grid,
    .process-families-grid,
    .why-grid,
    .form-row { grid-template-columns: 1fr; gap: 18px; }
    .category-card .cat-img { padding: 30px; }
    .about-teaser-visual { margin-top: 30px; }
    .pd-image { position: static; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-slider { height: 340px; }
    .slider-arrow { width: 36px; height: 36px; font-size: 1rem; }
    .hero-stats-strip .container { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .btn { width: 100%; justify-content: center; }
    .cta-banner .btn { width: auto; }
    .form-row { gap: 0; }
}

/* ---- Print ---- */
@media print {
    .topbar, .site-header, .site-footer, .back-to-top, .pd-actions, .hero-slider, .slider-arrow, .slider-dots { display: none; }
    body { color: var(--gray-900); }
}
