/* ==========================================
   STYLE CHUẨN CÔNG NGHIỆP - XƯỞNG CẮT LASER
   Chuẩn Responsive cho PC, Tablet, Mobile
   Tối ưu hiển thị hình ảnh chống méo tuyệt đối
   ========================================== */

:root {
    --primary-color: #ff5722;      /* Cam lửa laser */
    --primary-hover: #e64a19;
    --dark-bg: #0f1724;            /* Xanh than công nghiệp */
    --dark-surface: #162032;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-main: #334155;
    --text-muted: #64748b;
    --font-main: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* CHỐNG MÉO ẢNH TUYỆT ĐỐI */
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Giữ đúng tỉ lệ, tự cắt cúp viền thừa nếu khác tỉ lệ, không bao giờ bị méo dẹt ảnh */
}

/* TOPBAR */
.top-bar {
    background-color: #0b111b;
    color: #cbd5e1;
    font-size: 0.88rem;
    padding: 8px 0;
    border-bottom: 1px solid #1e293b;
}
.top-bar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}
.top-bar a:hover {
    color: var(--primary-color);
}

/* NAVBAR */
.navbar-custom {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--dark-bg) !important;
    letter-spacing: -0.5px;
}
.navbar-brand span {
    color: var(--primary-color);
}
.nav-link {
    font-weight: 600;
    color: #1e293b !important;
    padding: 8px 16px !important;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.btn-laser {
    background: var(--primary-color);
    color: #ffffff !important;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 4px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-laser:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 87, 34, 0.3);
}

.btn-outline-laser {
    border: 2px solid #ffffff;
    color: #ffffff;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-outline-laser:hover {
    background: #ffffff;
    color: var(--dark-bg);
}

/* HERO SECTION (BANNER) */
.hero-section {
    position: relative;
    background: var(--dark-bg);
    min-height: 540px;
    display: flex;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
}
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0;
}
.hero-badge {
    background: rgba(255, 87, 34, 0.2);
    border-left: 3px solid var(--primary-color);
    color: #ff9800;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
}
.hero-desc {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    max-width: 650px;
}

/* METRICS STRIP */
.metrics-strip {
    background: var(--dark-surface);
    color: #ffffff;
    padding: 30px 0;
    border-bottom: 3px solid var(--primary-color);
}
.metric-box {
    text-align: center;
    padding: 15px;
}
.metric-box h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}
.metric-box p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

/* SECTION STYLES */
.section-pad {
    padding: 80px 0;
}
.bg-light-custom {
    background-color: var(--light-bg);
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-sub {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.88rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}
.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--dark-bg);
}

/* ABOUT SECTION */
.about-img-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    aspect-ratio: 4 / 3; /* Cố định tỉ lệ 4:3 chuẩn xác */
}
.about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

/* SERVICE CARDS */
.service-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}
.service-img-box {
    width: 100%;
    aspect-ratio: 4 / 3; /* Cố định tỉ lệ chuẩn 4:3, chống dẹp méo */
    overflow: hidden;
    position: relative;
    background-color: #1e293b;
}
.service-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.service-card:hover .service-img-box img {
    transform: scale(1.05);
}
.service-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.service-body h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-bg);
}
.service-body p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}
.service-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    font-size: 0.86rem;
    color: #475569;
}
.service-specs li {
    padding: 4px 0;
    border-bottom: 1px dashed #e2e8f0;
}
.service-specs li:last-child {
    border-bottom: none;
}
.service-specs li strong {
    color: var(--dark-bg);
}

/* PORTFOLIO GRID */
.project-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    background: #1e293b;
}
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.project-card:hover img {
    transform: scale(1.08);
}
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 36, 0.9) 0%, rgba(15, 23, 36, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #ffffff;
}
.project-overlay h5 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.project-overlay p {
    font-size: 0.85rem;
    color: #ff9800;
    margin: 0;
}

/* QUOTE / CONTACT SECTION */
.contact-box {
    background: var(--dark-surface);
    border-radius: 12px;
    padding: 40px;
    color: #ffffff;
}
.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(255, 87, 34, 0.15);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.form-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
}

/* FLOATING ZALO / CALL BUTTONS ON MOBILE */
.floating-contact {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    text-decoration: none;
    transition: transform 0.2s ease;
}
.float-btn:hover {
    transform: scale(1.1);
    color: #ffffff;
}
.btn-phone {
    background: #e53935;
}
.btn-zalo {
    background: #0068ff;
    font-weight: bold;
    font-size: 1rem;
}

/* FOOTER */
.footer-main {
    background: #090e17;
    color: #94a3b8;
    padding: 60px 0 25px 0;
    font-size: 0.92rem;
    border-top: 1px solid #1e293b;
}
.footer-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--primary-color);
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}
.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 0.85rem;
}

/* RESPONSIVE TWEAKS FOR MOBILE */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.1rem;
    }
    .hero-section {
        min-height: 480px;
    }
    .section-pad {
        padding: 50px 0;
    }
}
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.65rem;
    }
    .hero-desc {
        font-size: 0.98rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .contact-box, .form-card {
        padding: 25px 18px;
    }
}
