/* ── Variables ── */
:root {
    --primary: #1a3a5c;
    --primary-light: #2563a0;
    --accent: #d97706;
    --accent-light: #f59e0b;
    --dark: #0c1a2a;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg: #f8fafc;
    --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text); line-height: 1.7; background: var(--bg);
}

/* ── Nav ── */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(12, 26, 42, 0.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 2rem; height: 68px; overflow: hidden;
}
.logo { text-decoration: none; display: flex; align-items: center; gap: 0.75rem; }
.logo-img {
    width: 42px; height: 42px; max-width: 42px; max-height: 42px; border-radius: 8px; object-fit: contain;
}
.logo-badge {
    background: var(--accent); color: #fff; font-weight: 800; font-size: 1rem;
    width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
}
.logo-text { color: #fff; font-weight: 700; font-size: 1rem; line-height: 1.2; }
.logo-text small {
    display: block; font-size: 0.62rem; color: var(--accent-light);
    font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
nav ul { list-style: none; display: flex; gap: 1.6rem; }
nav ul li a {
    text-decoration: none; color: rgba(255,255,255,0.7);
    font-size: 0.87rem; font-weight: 500; transition: color 0.2s;
}
nav ul li a:hover, nav ul li a.active { color: var(--accent-light); }
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span { width: 24px; height: 2.5px; background: #fff; border-radius: 2px; }

/* ── Page Header ── */
.page-header {
    background: linear-gradient(135deg, #0c1a2a 0%, #1a3a5c 60%, #0f2940 100%);
    color: #fff; padding: 8rem 2rem 4rem; text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M20 0L40 20 20 40 0 20z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-header .ph-inner { position: relative; max-width: 700px; margin: 0 auto; }
.page-header h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.page-header p { font-size: 1.05rem; color: rgba(255,255,255,0.6); }
.breadcrumb {
    font-size: 0.82rem; color: rgba(255,255,255,0.4); margin-bottom: 1rem;
}
.breadcrumb a { color: var(--accent-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Sections ── */
.content-section { padding: 5rem 2rem; }
.content-section.alt { background: #fff; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
    text-transform: uppercase; font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.4rem;
}
.section-title { font-size: 2.1rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--dark); }
.section-subtitle { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 3rem; max-width: 650px; }

/* ── Buttons ── */
.btn {
    padding: 0.8rem 2rem; border-radius: 8px; font-size: 0.93rem; font-weight: 600;
    text-decoration: none; transition: all 0.2s; cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); }

/* ── Cards ── */
.card {
    background: #fff; padding: 2rem; border-radius: 16px; border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }

/* ── Stats Bar ── */
.stats-bar { background: var(--dark); color: #fff; padding: 3rem 2rem; }
.stats-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center;
}
.stat-number { font-size: 2.4rem; font-weight: 800; color: var(--accent-light); }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 0.2rem; }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: start; }
.about-text p { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.2rem; }
.about-text .director { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.about-text .director strong { color: var(--dark); }
.about-text .director span { display: block; font-size: 0.88rem; color: var(--text-muted); }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.hl-card { background: var(--bg); padding: 1.5rem; border-radius: 12px; text-align: center; border: 1px solid var(--border); }
.hl-card .hl-num { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.hl-card .hl-lbl { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ── Quality ── */
.quality-card {
    background: #fff; padding: 2.5rem; border-radius: 16px; border: 1px solid var(--border);
    max-width: 850px; position: relative; overflow: hidden;
}
.quality-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent));
}
.quality-card p { color: var(--text-muted); font-size: 1rem; margin-bottom: 1rem; }

/* ── Machinery Table ── */
.machinery-table {
    width: 100%; border-collapse: collapse; background: #fff;
    border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
}
.machinery-table thead { background: var(--primary); color: #fff; }
.machinery-table th {
    padding: 1rem 1.2rem; text-align: left; font-size: 0.85rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.machinery-table td { padding: 0.8rem 1.2rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; color: var(--text-muted); }
.machinery-table tbody tr:hover { background: #f1f5f9; }
.machinery-table tbody tr:last-child td { border-bottom: none; }
.qty-badge {
    background: #dbeafe; color: var(--primary); padding: 0.2rem 0.7rem;
    border-radius: 20px; font-weight: 700; font-size: 0.85rem; display: inline-block;
}

/* ── Projects ── */
.project-group { margin-bottom: 2.5rem; }
.project-group h3 {
    font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.75rem;
}
.project-group h3::before {
    content: ''; width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
}
.project-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.proj-card {
    background: #fff; padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.proj-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.07); }
.proj-card .proj-name { font-weight: 600; color: var(--dark); font-size: 0.92rem; margin-bottom: 0.5rem; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.proj-meta span {
    font-size: 0.78rem; padding: 0.2rem 0.6rem; border-radius: 20px;
    background: var(--bg); border: 1px solid var(--border); color: var(--text-muted);
}
.proj-meta .proj-val { background: #fef3c7; border-color: #fde68a; color: #92400e; font-weight: 600; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info {
    background: var(--dark); color: #fff; padding: 3rem; border-radius: 16px;
    position: relative; overflow: hidden;
}
.contact-info::before {
    content: ''; position: absolute; top: 0; right: 0; width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(217,119,6,0.15), transparent 70%);
}
.contact-info h3 { font-size: 1.3rem; margin-bottom: 2rem; }
.c-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.c-icon {
    width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.c-label { font-size: 0.78rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.05em; }
.c-val { font-size: 0.95rem; color: rgba(255,255,255,0.9); margin-top: 0.15rem; }
.c-val a { color: var(--accent-light); text-decoration: none; }
.c-val a:hover { text-decoration: underline; }
.contact-map {
    background: var(--bg); border-radius: 16px; border: 1px solid var(--border);
    overflow: hidden; min-height: 420px;
}
.contact-map iframe { width: 100%; height: 100%; border: none; min-height: 420px; }

/* ── Hero (Home only) ── */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
    background: linear-gradient(135deg, #0c1a2a 0%, #1a3a5c 60%, #0f2940 100%);
    color: #fff; padding: 6rem 2rem 4rem; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M20 0L40 20 20 40 0 20z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 850px; }
.hero-badge {
    display: inline-block; background: rgba(217,119,6,0.15); border: 1px solid rgba(217,119,6,0.35);
    color: var(--accent-light); font-size: 0.78rem; font-weight: 600;
    padding: 0.4rem 1.2rem; border-radius: 30px; margin-bottom: 1.5rem; letter-spacing: 0.04em;
}
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; margin-bottom: 0.75rem; }
.hero h1 span { color: var(--accent-light); }
.hero .tagline { font-size: 1.15rem; color: rgba(255,255,255,0.7); margin-bottom: 0.75rem; max-width: 680px; margin-left: auto; margin-right: auto; }
.hero .sub { font-size: 0.88rem; color: rgba(255,255,255,0.45); margin-bottom: 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Home Feature Grid ── */
.home-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.home-feature {
    background: #fff; padding: 2rem; border-radius: 16px; border: 1px solid var(--border);
    text-align: center; transition: transform 0.2s, box-shadow 0.2s;
    width: calc(33.333% - 1.34rem); min-width: 280px;
}
.home-feature:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.home-feature .hf-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.home-feature h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.home-feature p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.home-feature a { font-size: 0.88rem; color: var(--primary); font-weight: 600; text-decoration: none; }
.home-feature a:hover { color: var(--accent); }

/* ── Footer ── */
footer {
    background: var(--dark); color: rgba(255,255,255,0.35);
    text-align: center; padding: 2rem; font-size: 0.83rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
footer .footer-inner { max-width: 1200px; margin: 0 auto; }
footer .footer-links { margin-bottom: 1rem; }
footer .footer-links a {
    color: rgba(255,255,255,0.5); text-decoration: none; margin: 0 0.75rem;
    font-size: 0.82rem; transition: color 0.2s;
}
footer .footer-links a:hover { color: var(--accent-light); }

/* ── Charts ── */
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.chart-box { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

/* ── Contact Form ── */
.form-wrapper { max-width: 720px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: var(--primary); }
.form-group label span { color: #dc2626; }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.7rem 1rem; border: 1.5px solid var(--border); border-radius: 8px;
    font-size: 0.95rem; font-family: inherit; color: var(--text); background: #fff;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,99,160,0.1); }
.form-group textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; padding: 0.8rem 2.5rem; font-size: 1rem; cursor: pointer; border: none; }
.form-success { padding: 1.5rem; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; color: #065f46; font-weight: 500; text-align: center; margin-top: 1.5rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero h1, .page-header h1 { font-size: 2rem; }
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .project-cards { grid-template-columns: 1fr; }
    .home-features { grid-template-columns: 1fr; }
    .chart-row { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}
/* ── Gallery ── */
.gallery-container { max-width: 900px; margin: 0 auto; }
.gallery-main {
    position: relative; width: 100%; aspect-ratio: 16/10;
    background: var(--dark); border-radius: 16px; overflow: hidden; margin-bottom: 1.5rem;
}
.gallery-main img {
    width: 100%; height: 100%; object-fit: contain; cursor: pointer;
    transition: transform 0.3s;
}
.gallery-main img:hover { transform: scale(1.02); }
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); color: #fff; border: none;
    width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 2;
}
.gallery-nav:hover { background: rgba(0,0,0,0.8); }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }

.gallery-thumbnails {
    display: flex; gap: 0.75rem; overflow-x: auto; padding: 0.5rem 0;
    justify-content: center; flex-wrap: nowrap;
}
.gallery-thumbnails .thumb {
    width: 75px; height: 56px; object-fit: cover; border-radius: 8px;
    cursor: pointer; border: 3px solid transparent; opacity: 0.6;
    transition: all 0.2s; flex-shrink: 0;
}
.gallery-thumbnails .thumb:hover { opacity: 1; }
.gallery-thumbnails .thumb.active {
    border-color: var(--accent); opacity: 1;
    box-shadow: 0 2px 8px rgba(217,119,6,0.3);
}

/* ── Lightbox ── */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 9999;
    flex-direction: column; align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.92);
}
.lightbox-content {
    position: relative; max-width: 85vw; max-height: 70vh;
    display: flex; align-items: center; justify-content: center; z-index: 1;
}
.lightbox-content img {
    max-width: 100%; max-height: 70vh; object-fit: contain; border-radius: 8px;
}
.lightbox-close {
    position: fixed; top: 1.5rem; right: 2rem;
    background: none; border: none; color: #fff; font-size: 2.5rem;
    cursor: pointer; z-index: 2; line-height: 1;
    transition: transform 0.2s;
}
.lightbox-close:hover { transform: scale(1.2); }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); color: #fff; border: none;
    width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 2;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

.lightbox-thumbnails {
    display: flex; gap: 0.6rem; margin-top: 1.5rem; overflow-x: auto;
    padding: 0.5rem 1rem; z-index: 1; justify-content: center; flex-wrap: wrap;
}
.lightbox-thumbnails .lb-thumb {
    width: 60px; height: 45px; object-fit: cover; border-radius: 6px;
    cursor: pointer; border: 2px solid transparent; opacity: 0.5;
    transition: all 0.2s;
}
.lightbox-thumbnails .lb-thumb:hover { opacity: 1; }
.lightbox-thumbnails .lb-thumb.active {
    border-color: var(--accent-light); opacity: 1;
}

@media (max-width: 768px) {
    nav ul {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        background: var(--dark); flex-direction: column; padding: 1rem 2rem; gap: 0.8rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    nav ul.active { display: flex; }
    .hamburger { display: flex; }
    .hero h1 { font-size: 1.7rem; }
    .page-header h1 { font-size: 1.6rem; }
    .machinery-table th, .machinery-table td { padding: 0.6rem 0.8rem; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .lightbox-content { max-width: 95vw; }
    .gallery-thumbnails .thumb { width: 60px; height: 45px; }
}
