/* ============================================
   CNC Lighting - LED Machine Tool Light
   Responsive Styles
   ============================================ */

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

:root {
    --primary: #1a2a4a;
    --primary-light: #2c4a7c;
    --accent: #f57c00;
    --accent-hover: #e65100;
    --bg: #f5f6fa;
    --bg-dark: #0f1a2e;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 32px rgba(0,0,0,0.15);
    --radius: 12px;
    --max-width: 1200px;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245,124,0,0.3);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* --- Header --- */
header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.logo span {
    color: var(--accent);
}
.logo small {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.7;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}
.nav-links a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    border-bottom-color: var(--accent);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,124,0,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}
.hero h1 span { color: var(--accent); }
.hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* --- Section Common --- */
.section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section.bg-white { background: var(--white); }
.section.bg-gray { background: var(--bg); }
.section.bg-dark {
    background: var(--bg-dark);
    color: var(--white);
}
.section.bg-dark .section-title { color: var(--white); }
.section.bg-dark .section-subtitle { color: rgba(255,255,255,0.7); }

/* --- Features / Highlights --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}
.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.feature-card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
}
.feature-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* --- Product Image Showcase --- */
.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.product-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.product-image-wrapper img {
    max-height: 450px;
    object-fit: contain;
}

.product-info h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 16px;
}
.product-info p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}
.product-specs {
    list-style: none;
    margin-top: 20px;
}
.product-specs li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
    font-size: 15px;
}
.product-specs li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* --- Specs Table --- */
.specs-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px;
    padding: 0 20px;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-width: 600px;
}
.specs-table thead {
    background: var(--primary);
    color: var(--white);
}
.specs-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}
.specs-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.specs-table tbody tr:hover {
    background: #f0f4ff;
}
.specs-table tbody tr:last-child td {
    border-bottom: none;
}

/* --- About Page --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.9;
}
.about-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}
.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.value-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent);
}
.value-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 18px;
}
.value-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.contact-info-card h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 24px;
}
.contact-detail {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}
.contact-detail-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.contact-detail h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 4px;
}
.contact-detail p {
    color: var(--text-light);
    font-size: 15px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.contact-form h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 24px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font);
    transition: border-color 0.2s;
    background: var(--bg);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
}
.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* --- Footer --- */
footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    text-align: center;
}
footer a { color: var(--accent); }
footer a:hover { color: var(--accent-hover); }
.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}
.footer-links a:hover { color: var(--accent); }

/* --- Page Header Banner --- */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.page-banner h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
}
.page-banner p {
    opacity: 0.85;
    font-size: 18px;
}

/* --- Product Gallery --- */
.product-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.product-gallery-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.product-gallery-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.product-gallery-item .img-wrap {
    background: #fafafa;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}
.product-gallery-item .img-wrap img {
    max-height: 250px;
    object-fit: contain;
}
.product-gallery-item .info {
    padding: 24px;
}
.product-gallery-item .info h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}
.product-gallery-item .info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Stats / Badge section --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-item h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
}
.stat-item p {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    margin-top: 4px;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }
    .nav-links.active { display: flex; }
    .nav-links a {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 16px;
    }
    .nav-links a:last-child { border-bottom: none; }

    .hero { padding: 60px 0 50px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; padding: 0 20px; }

    .section { padding: 50px 0; }
    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 16px; margin-bottom: 30px; }

    .product-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-gallery {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .page-banner { padding: 40px 0; }
    .page-banner h1 { font-size: 28px; }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .stat-item h2 { font-size: 32px; }

    .specs-table-wrap {
        margin: 0 -10px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 24px; }
    .btn { padding: 12px 24px; font-size: 14px; }
    .product-image-wrapper { padding: 15px; }
}
