/* machinery-site - home.css */
:root {
    --primary: #0a2540;
    --secondary: #1a4480;
    --accent: #ff6b1a;
    --light: #f5f7fa;
    --dark: #1a1a1a;
    --gray: #666;
    --border: #e0e6ed;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: #fff;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
    background: var(--primary);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}
.logo {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}
.logo span { color: var(--accent); }
nav ul {
    display: flex;
    list-style: none;
    gap: 36px;
}
nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}
nav a:hover { color: var(--accent); }
.header-cta {
    background: var(--accent);
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Hero Banner */
.hero {
    margin-top: 72px;
    background: linear-gradient(135deg, rgba(10,37,64,0.35) 0%, rgba(26,68,128,0.25) 100%), url('../images/jingong-loader-2.webp');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}
.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 24px;
    font-weight: 700;
}
.hero h1 span { color: var(--accent); }
.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; }
.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}
.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 14px 32px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

/* Stats Bar */
.stats-bar {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.stat-item h3 {
    font-size: 36px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}
.stat-item p {
    color: var(--gray);
    font-size: 14px;
}

/* Product Categories */
.section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 48px;
}
.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 700;
}
.section-title p {
    color: var(--gray);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.category-card {
    background: var(--light);
    border-radius: 8px;
    padding: 36px 28px;
    transition: all 0.3s;
    border: 1px solid var(--border);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(10,37,64,0.1);
    border-color: var(--accent);
}
.category-icon {
    width: 100%;
    height: 160px;
    background: var(--light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    overflow: hidden;
}
.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
}
.category-card p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 16px;
}
.category-card a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Featured Products */
.products-section {
    background: var(--light);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.product-card:hover {
    box-shadow: 0 12px 30px rgba(10,37,64,0.12);
}
.product-img {
    height: 280px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 48px;
    font-weight: 700;
    overflow: hidden;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info {
    padding: 24px;
}
.product-info h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}
.product-info .model {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}
.product-info p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 16px;
}
.product-specs {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.spec {
    flex: 1;
}
.spec .label {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 4px;
}
.spec .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}
.inquiry-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}
.inquiry-btn:hover {
    background: var(--accent);
}

/* Why Choose Us */
.why-section {
    background: var(--primary);
    color: #fff;
}
.why-section .section-title h2 { color: #fff; }
.why-section .section-title p { color: rgba(255,255,255,0.7); }
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.why-item {
    text-align: center;
    padding: 24px;
}
.why-item .icon {
    width: 64px;
    height: 64px;
    background: rgba(255,107,26,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent);
    font-size: 28px;
}
.why-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
}
.why-item p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--accent), #ff8c42);
    padding: 60px 0;
}
.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cta-inner h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 8px;
}
.cta-inner p {
    color: rgba(255,255,255,0.9);
}
.btn-white {
    background: #fff;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

/* Footer */
footer {
    background: #061a30;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 10px;
    font-size: 14px;
}
.footer-col a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 968px) {
    .hero h1 { font-size: 32px; }
    .categories-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    nav { display: none; }
}
@media (max-width: 600px) {
    .categories-grid, .products-grid { grid-template-columns: 1fr; }
    .stats-grid, .why-grid { grid-template-columns: 1fr 1fr; }
    .cta-inner { flex-direction: column; gap: 20px; text-align: center; }
}
.latest-articles { padding: 60px 0; background: #f8f9fb; }
.latest-articles h2 { text-align: center; font-size: 32px; margin-bottom: 40px; color: #0a2540; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.2s, box-shadow 0.2s; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.article-card h3 { font-size: 17px; margin-bottom: 12px; line-height: 1.4; }
.article-card h3 a { color: #0a2540; text-decoration: none; }
.article-card h3 a:hover { color: #ff6b1a; }
.article-card p { font-size: 14px; color: #666; margin-bottom: 16px; line-height: 1.6; }
.read-more { color: #ff6b1a; text-decoration: none; font-weight: 600; font-size: 14px; }
@media (max-width: 992px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .articles-grid { grid-template-columns: 1fr; }
}

/* WhatsApp contact */
.wa-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    z-index: 1200;
    transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float:focus-visible { outline: 3px solid #0a2540; outline-offset: 3px; }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.btn-email { background: transparent; border: 2px solid rgba(255,255,255,0.85); color: #fff; }
.btn-email:hover { background: rgba(255,255,255,0.15); }
.cta .btn { margin: 6px; }
.widget-contact { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,0.85); }
.widget-contact a { color: #fff; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-white-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-white-outline:hover { background: rgba(255,255,255,0.15); }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }
