* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif; color: #333; line-height: 1.7; scroll-behavior: smooth; }
.container { width: 90%; max-width: 1100px; margin: 0 auto; }
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h1, .section-title h2 { font-size: 26px; color: #003366; margin-bottom: 5px; }
.section-title p { font-size: 13px; color: #777; text-transform: uppercase; letter-spacing: 2px; }

.header { background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; height: 70px; }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-size: 20px; color: #003366; font-weight: bold; line-height: 1.15; }
.logo a { display: flex; align-items: center; gap: 10px; color: #003366; text-decoration: none; }
.logo img { width: 44px; height: 38px; object-fit: contain; }
.logo span { display: flex; flex-direction: column; white-space: nowrap; }
.logo small { font-size: 10px; line-height: 1.1; letter-spacing: .12em; color: #5f6f7f; }
.nav ul { display: flex; list-style: none; align-items: center; }
.nav ul li { margin-left: 20px; }
.nav ul li a { text-decoration: none; color: #333; font-size: 14px; font-weight: bold;}
.btn-contact { background: #003366; color: #fff !important; padding: 8px 15px; border-radius: 4px; }
.menu-toggle { display: none; cursor: pointer; flex-direction: column; justify-content: space-between; height: 20px; width: 25px; }
.menu-toggle span { display: block; height: 3px; width: 100%; background: #333; }

.hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 70px;
    background-color: #173652;
    background-repeat: no-repeat;
    background-size: cover;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,25,50,.72), rgba(0,25,50,.38)); }
.hero-home { background-image: url('images/hero-company-v2.webp'); background-position: center 50%; }
.hero-waterproofing { background-image: url('images/waterproofing-company-v2.webp'); background-position: center 8%; }
.hero-painting { background-image: url('images/painting-company-v3.webp'); background-position: center 50%; }
.hero-reform { background-image: url('images/reform-company-v2.webp'); background-position: center 50%; }
.hero-fudousan { background-image: url('images/hero-company-v1.webp'); background-position: center 48%; }
.hero-content { position: relative; z-index: 1; width: min(90%, 900px); padding: 36px 24px; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.hero-content h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.35; margin-bottom: 15px; }
.hero-content p { font-size: clamp(16px, 2vw, 19px); }
.btn-hero { display: inline-block; padding: 12px 30px; background: #fff; color: #003366; text-decoration: none; font-weight: bold; }

.about-content { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.about-content .about-text { flex: 1; min-width: 280px; }
.about-content .about-text p + p { margin-top: 1em; }
.about-content .about-img { flex: 1; min-width: 280px; }
.about-content .about-img img { width: 100%; height: 320px; object-fit: cover; border-radius: 6px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

.services-bg { background: #f4f6f9; }
.services-grid { display: flex; gap: 20px; }
.service-card { background: #fff; flex: 1; border-top: 4px solid #003366; overflow: hidden; }
.service-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.service-card .service-card-body { padding: 25px 30px; }

.workflow-steps { display: flex; gap: 15px; }
.step { background: #fff; border: 1px solid #e1e1e1; padding: 25px 20px; flex: 1; }

.company-bg { background: #f4f6f9; }
.company-table { width: 100%; max-width: 800px; margin: 0 auto; background: #fff; border-collapse: collapse; }
.company-table th, .company-table td { padding: 15px; border: 1px solid #eee; text-align: left; font-size: 14px; }
.company-table th { background: #003366; color: #fff; width: 25%; }

.footer { background: #222; color: #fff; padding: 30px 0; text-align: center; }
.footer-company { font-size: 18px; margin-bottom: 6px; }
.footer-address { font-style: normal; font-size: 11px; line-height: 1.8; }
.footer-address a { color: #fff; text-decoration: none; }
.footer-copy { margin-top: 14px; font-size: 12px; color: #ccc; }
.contact-direct { margin: 18px 0; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; font-weight: 700; }
.contact-direct a, .contact-details a { color: #003366; text-decoration: none; }
.contact-page-link { background: #003366; color: #fff; border-radius: 4px; }
.contact-details { background: #f4f6f9; border-left: 4px solid #003366; padding: 18px 20px; margin-bottom: 28px; text-align: center; }
.contact-details p + p { margin-top: 6px; }
.contact-details a { font-size: 24px; font-weight: 700; margin-right: 18px; }
.form-note { margin-top: 14px; color: #777; font-size: 12px; line-height: 1.6; }

@media (max-width: 768px) {
    .logo { font-size: 17px; }
    .logo img { width: 38px; height: 34px; }
    .logo small { font-size: 8px; }
    .menu-toggle { display: flex; }
    
    .nav { 
        display: none; 
        position: fixed; 
        top: 70px; 
        left: 0; 
        width: 100%; 
        height: calc(100vh - 70px); 
        background: #fff; 
        overflow-y: auto; 
        z-index: 1000;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    
    .nav.active { 
        display: flex; 
        flex-direction: column;
    }
    
    .nav ul { 
        flex-direction: column; 
        padding: 20px; 
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav ul li { 
        margin: 10px 0; 
        width: 100%;
        text-align: center;
    }

    .nav ul li a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
    }

    /* Đảm bảo các thành phần khác không bị tràn layout */
    .services-grid, .workflow-steps { flex-direction: column; }
    .about-content { flex-direction: column; }
    .company-table th, .company-table td { display: block; width: 100%; box-sizing: border-box; }
    .hero { min-height: 360px; background-size: cover; }
    .hero-home { background-position: 68% 50%; }
    .hero-waterproofing { background-position: 69% 15%; }
    .hero-painting { background-position: 67% 50%; }
    .hero-reform { background-position: 50% 50%; }
    .hero-fudousan { background-position: 58% 50%; }
    .hero-content { padding: 28px 18px; }
}
