/* ============================================================
   JH Manufacturing Solutions — Main Stylesheet
   ============================================================ */

:root {
    --primary: #1a56db;
    --primary-dark: #1240a8;
    --primary-light: #e8effc;
    --accent: #f59e0b;
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-800: #334155;
    --gray-700: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.04);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* ---------- CONTAINER ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; font-family: var(--font-body); font-size: 15px;
    border-radius: var(--radius); text-decoration: none;
    cursor: pointer; border: 2px solid transparent;
    transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; padding: 16px 28px; }
.btn-header { display: none; }

/* ---------- LANGUAGE SWITCHER ---------- */
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; align-items: center; gap: 4px; }
.lang-btn {
    background: none; border: none; color: var(--gray-400); font-size: 13px;
    font-weight: 500; font-family: var(--font-body); cursor: pointer;
    padding: 4px 8px; border-radius: 4px; transition: all var(--transition);
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active { color: var(--white); font-weight: 700; }
.lang-divider { color: var(--gray-600); font-size: 13px; user-select: none; }

/* ---------- HEADER ---------- */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(15,23,42,.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: all var(--transition);
}
.header.scrolled { background: rgba(15,23,42,.97); border-bottom-color: rgba(255,255,255,.12); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { font-size: 26px; color: var(--accent); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--white); letter-spacing: -.4px; }
.logo-tagline { font-size: 10px; font-weight: 500; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1.5px; }

.nav-list { display: flex; gap: 4px; list-style: none; }
.nav-link { display: block; padding: 8px 16px; color: var(--gray-300); text-decoration: none; font-size: 14.5px; font-weight: 500; border-radius: 6px; transition: all var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,.08); }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 1px; transition: all var(--transition); }

/* ---------- HERO ---------- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, #0a0f1e 0%, #111d3a 40%, #0f2147 70%, #0a1628 100%);
    overflow: hidden;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(26,86,219,.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(245,158,11,.06) 0%, transparent 50%);
    z-index: 1;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 2; max-width: 860px; padding: 120px 0 80px; }
.hero-eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 16px; }
.hero-title { font-family: var(--font-heading); font-size: clamp(36px, 5.5vw, 58px); font-weight: 800; color: var(--white); line-height: 1.12; letter-spacing: -.5px; }
.hero-highlight { background: linear-gradient(135deg, #3b82f6, #60a5fa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { color: var(--gray-400); font-size: 17px; max-width: 680px; margin-top: 20px; line-height: 1.75; }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-family: var(--font-heading); font-size: 32px; font-weight: 700; color: var(--white); line-height: 1; }
.stat-label { font-size: 13px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .5px; }

/* ---------- SECTIONS ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--gray-50); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-eyebrow { color: var(--primary); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.section-title { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--dark); line-height: 1.2; letter-spacing: -.3px; }
.section-desc { color: var(--gray-500); font-size: 16px; margin-top: 12px; }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.about-text p { color: var(--gray-700); margin-bottom: 16px; }
.about-lead { font-size: 17px; }
.about-features { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.about-feat { display: flex; align-items: flex-start; gap: 10px; color: var(--gray-700); font-size: 14.5px; }
.about-feat i { color: var(--primary); font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-card { background: var(--white); padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--gray-200); text-align: center; }
.about-card .card-icon { font-size: 28px; color: var(--primary); margin-bottom: 12px; }
.about-card h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.about-card p { font-size: 13.5px; color: var(--gray-500); line-height: 1.55; }

/* ---------- PRODUCTS ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow); border: 1px solid var(--gray-200); overflow: hidden; transition: all var(--transition); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.product-img {
    height: 160px;
    background: linear-gradient(135deg, #1e3a5f, #1a56db);
    display: flex; align-items: center; justify-content: center; position: relative;
}
.product-img i { font-size: 48px; color: rgba(255,255,255,.7); }
.product-img-alt1 { background: linear-gradient(135deg, #4a2c0a, #b45309); }
.product-img-alt2 { background: linear-gradient(135deg, #0a3a4a, #0369a1); }
.product-img-alt3 { background: linear-gradient(135deg, #2a1a3a, #5b21b6); }
.product-img-alt4 { background: linear-gradient(135deg, #1a3a2a, #059669); }
.product-img-alt5 { background: linear-gradient(135deg, #3a1a1a, #b91c1c); }
.product-badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--accent); color: var(--dark); font-size: 11px; font-weight: 700;
    padding: 4px 10px; border-radius: 20px; letter-spacing: .5px; text-transform: uppercase;
}
.product-body { padding: 20px; }
.product-body h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.product-body > p { font-size: 14px; color: var(--gray-500); line-height: 1.6; margin-bottom: 12px; }
.product-specs { list-style: none; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--gray-100); padding-top: 12px; }
.product-specs li { font-size: 13px; color: var(--gray-600); }
.product-specs li strong { color: var(--dark); font-weight: 600; }

/* ---------- INDUSTRIES ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.industry-item { background: var(--white); padding: 28px 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); text-align: center; transition: all var(--transition); }
.industry-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.industry-item i { font-size: 32px; color: var(--primary); margin-bottom: 12px; }
.industry-item h4 { font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.industry-item p { font-size: 13.5px; color: var(--gray-500); line-height: 1.55; }

/* ---------- CAPABILITIES ---------- */
.cap-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.cap-tab {
    padding: 10px 22px; border-radius: 25px; border: 1.5px solid var(--gray-300);
    background: var(--white); color: var(--gray-700); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all var(--transition); font-family: var(--font-body);
}
.cap-tab:hover { border-color: var(--primary); color: var(--primary); }
.cap-tab.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.cap-content { display: none; }
.cap-content.active { display: block; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap-card { background: var(--white); padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); }
.cap-card h4 { font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.cap-card p { font-size: 13.5px; color: var(--gray-500); line-height: 1.55; }

.process-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.process-step { background: var(--white); padding: 24px 16px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); text-align: center; }
.process-step .step-num { display: block; font-family: var(--font-heading); font-size: 28px; font-weight: 800; color: var(--primary); opacity: .35; margin-bottom: 8px; }
.process-step h4 { font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.process-step p { font-size: 12.5px; color: var(--gray-500); line-height: 1.5; }

/* ---------- QUALITY ---------- */
.quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quality-card { background: var(--white); padding: 32px 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--gray-100); text-align: center; transition: transform var(--transition); }
.quality-card:hover { transform: translateY(-3px); }
.quality-card i { font-size: 32px; color: var(--primary); margin-bottom: 12px; display: block; }
.quality-card h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.quality-card p { font-size: 14px; color: var(--gray-500); line-height: 1.55; }

/* ---------- WHY US ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-item { background: var(--white); padding: 32px 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--gray-100); text-align: center; transition: transform var(--transition); }
.why-item:hover { transform: translateY(-3px); }
.why-icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); border-radius: 50%; font-size: 22px; margin-bottom: 16px; }
.why-item h4 { font-family: var(--font-heading); font-size: 17px; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.why-item p { font-size: 14px; color: var(--gray-500); line-height: 1.55; }

/* ---------- TESTIMONIALS ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--white); padding: 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--gray-100); }
.testimonial-stars { color: #f59e0b; font-size: 16px; letter-spacing: 1px; margin-bottom: 12px; }
.testimonial-card > p { font-size: 14.5px; color: var(--gray-700); line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.testimonial-author strong { display: block; font-size: 14px; color: var(--dark); }
.testimonial-author span { font-size: 12.5px; color: var(--gray-500); }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: var(--white); padding: 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); }
.contact-card i { font-size: 22px; color: var(--primary); margin-top: 3px; width: 24px; text-align: center; }
.contact-card h4 { font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 3px; }
.contact-card p { font-size: 14px; color: var(--gray-600); line-height: 1.5; }
.contact-sub { font-size: 12.5px !important; color: var(--gray-400) !important; }

.contact-form { background: var(--white); padding: 32px; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200); }
.contact-form label { display: block; font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 11px 14px; font-family: var(--font-body); font-size: 14px;
    border: 1.5px solid var(--gray-300); border-radius: var(--radius);
    background: var(--white); color: var(--dark); transition: border-color var(--transition);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-row .form-group { margin-bottom: 16px; }
.file-upload { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 12px 14px; border: 2px dashed var(--gray-300); border-radius: var(--radius); color: var(--gray-500); font-size: 13.5px; font-weight: 500; transition: all var(--transition); }
.file-upload:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.file-upload input { display: none; }
.form-note { text-align: center; font-size: 12.5px; color: var(--gray-400); margin-top: 14px; }

/* ---------- FOOTER ---------- */
.footer { background: var(--dark); padding: 64px 0 24px; color: var(--gray-400); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 14px; line-height: 1.65; margin: 16px 0; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.06); color: var(--gray-400); text-decoration: none; transition: all var(--transition); font-size: 14px; }
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-col h4 { font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li { font-size: 14px; }
.footer-col ul li a { color: var(--gray-400); text-decoration: none; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-col ul li i { width: 20px; color: var(--gray-500); margin-right: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 20px; text-align: center; font-size: 13px; color: var(--gray-500); }

/* ---------- BACK TO TOP ---------- */
.back-to-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    background: var(--primary); color: var(--white); border-radius: 50%;
    text-decoration: none; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
    transition: all var(--transition); font-size: 16px;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .process-flow { grid-template-columns: repeat(3, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-visual { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .btn-header { display: none; }
    .nav { position: fixed; top: 70px; left: 0; right: 0; background: rgba(15,23,42,.98); backdrop-filter: blur(12px); padding: 16px 24px; display: none; border-bottom: 1px solid rgba(255,255,255,.08); }
    .nav.open { display: block; }
    .nav-list { flex-direction: column; gap: 2px; }
    .nav-link { padding: 12px 16px; font-size: 16px; }
    .mobile-toggle { display: flex; }

    .hero-content { padding: 100px 0 60px; }
    .hero-stats { gap: 24px; }
    .stat-num { font-size: 24px; }

    .section { padding: 64px 0; }
    .product-grid { grid-template-columns: 1fr; }
    .industry-grid { grid-template-columns: repeat(2, 1fr); }
    .cap-grid { grid-template-columns: 1fr; }
    .process-flow { grid-template-columns: repeat(2, 1fr); }
    .quality-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .industry-grid { grid-template-columns: 1fr; }
    .process-flow { grid-template-columns: 1fr; }
    .about-visual { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { justify-content: center; }
}
