/*
Theme Name: Lamat Twenty Twenty-Five Child
Theme URI: https://lamat.com.vn/
Description: Child Theme cho Twenty Twenty-Five - Tối ưu cho Lâm Gia Huy
Author: Thành Nhân
Author URI: https://lamat.com.vn/
Template: twentytwentyfive
Version: 1.0.0
*/

/* 1. BRAND DESIGN TOKENS */
* { box-sizing: border-box; }
:root {
    --lgh-red: #6e0f1a;
    --lgh-red-hover: #8b1422;
    --lgh-gold: #fff1ba;
    --text-heading: #333;
    --text-body: #555;
    --border-light: #f1f5f9;
}

/* 2. HEADER 3 TẦNG PREMIUM */
.header-premium {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* Ẩn Header & Footer mặc định của theme gốc */
header.wp-block-template-part, 
.wp-block-template-part-header,
footer.wp-block-template-part,
.wp-block-template-part-footer { display: none !important; }

/* Đẩy nội dung trang xuống (Đã thu gọn cho vừa khít) */
body { padding-top: 280px !important; }
.admin-bar .header-premium { top: 32px; }

.container-lamat { width: 100%; max-width: 1240px !important; margin-left: auto !important; margin-right: auto !important; padding: 0 20px !important; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.grid-3-cols { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.grid-3-cols > div { flex: 1; display: flex; align-items: center; }
.col-left { justify-content: flex-start; }
.col-center { justify-content: center; }
.col-right { justify-content: flex-end; }

/* Tầng 1: Utility (Đỏ) - Làm to hơn */
.tier-top { background: var(--lgh-red); padding: 15px 0; color: #fff; font-size: 14px; font-weight: 600; }
.info-item-white { display: flex; align-items: center; gap: 8px; }
.info-item-white svg { width: 14px; height: 14px; color: var(--lgh-gold); }
.hotline-link { color: #fff; text-decoration: none; font-weight: 900; font-size: 18px; display: flex; align-items: center; gap: 8px; }

/* Tầng 2: Branding (3 Cột) */
.tier-middle { padding: 15px 0; background: #fff; border-bottom: 1px solid #eee; }
.logo-wrapper-small { display: block; height: 55px; }
.logo-wrapper-small img { height: 100%; width: auto; object-fit: contain; }
.header-company-name-single { font-size: 22px; font-weight: 900; color: var(--lgh-red); white-space: nowrap; margin: 0; }
.header-hotline-large { display: inline-flex; align-items: center; gap: 8px; color: var(--lgh-red); text-decoration: none; font-weight: 900; font-size: 20px; }

/* Tầng 3: Search bar riêng biệt */
.tier-search { padding: 15px 0; background: #f8fafc; border-bottom: 1px solid #eee; }

/* Tầng 4: Menu riêng biệt (Đỏ đồng nhất) */
.tier-menu { background: var(--lgh-red); padding: 5px 0; }
.flex-center { display: flex; justify-content: center; align-items: center; }

nav.main-nav-premium a { 
    text-decoration: none; color: #fff; font-size: 15px; font-weight: 800; padding: 12px 20px; 
    position: relative; text-transform: uppercase; transition: 0.3s; white-space: nowrap;
}
nav.main-nav-premium a:hover { color: var(--lgh-gold); }
nav.main-nav-premium a:after { 
    content: ''; position: absolute; bottom: 5px; left: 15px; right: 15px; height: 3px; 
    background: #fff; transform: scaleX(0); transition: 0.3s; 
}
nav.main-nav-premium a:hover:after,
nav.main-nav-premium a.active:after { transform: scaleX(1); background: var(--lgh-gold); }
nav.main-nav-premium a.active { color: var(--lgh-gold); }

/* Tầng 3: Search - Làm to và cao hơn */
.tier-bottom { padding: 20px 0; background: #f8fafc; border-bottom: 1px solid #eee; }
.search-wrap-premium { 
    display: flex; align-items: center; background: #fff; border: 1px solid #cbd5e1; 
    border-radius: 60px; padding: 6px 6px 6px 30px; max-width: 900px; margin: 0 auto; overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.search-field-large { border: none; outline: none; flex: 1; font-size: 16px; background: transparent; }
.btn-search-red { 
    background: var(--lgh-red); color: #fff; border: none; padding: 15px 40px; 
    border-radius: 50px; font-weight: 700; cursor: pointer; font-size: 16px;
}

/* 3. FOOTER 4 TẦNG PREMIUM */
.footer-premium { background: #fff; border-top: 5px solid var(--lgh-red); margin-top: 50px; }

/* Tầng 1: Info (Đỏ) */
.footer-tier-1 { background: var(--lgh-red); padding: 15px 0; color: #fff; font-size: 13px; }
.footer-tier-1 svg { width: 14px; height: 14px; color: var(--lgh-gold); margin-right: 8px; }

/* Tầng 2: Branding (Trắng) */
.footer-tier-2 { padding: 30px 0; background: #fff; border-bottom: 1px solid #eee; }
.footer-logo-line { display: flex; align-items: center; gap: 30px; }
.footer-logo-img { height: 60px; }
.footer-company-name { font-size: 22px; font-weight: 900; color: var(--lgh-red); white-space: nowrap; }
.footer-hotline { font-size: 20px; font-weight: 900; color: var(--lgh-red); }

/* Tầng 3: Search (Xám nhạt) */
.footer-tier-3 { padding: 25px 0; background: #f8fafc; }

/* Tầng 4: Menu (Đỏ đồng nhất) */
.footer-tier-4 { background: var(--lgh-red); padding: 15px 0; }
.footer-nav { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.footer-nav a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.footer-nav a:hover { color: var(--lgh-gold); }

@media (max-width: 1024px) {
    .lg-only { display: none !important; }
    body { padding-top: 100px !important; }
    .footer-logo-line, .flex-between { flex-direction: column; gap: 20px; text-align: center; }
}
/* 4. TỐI ƯU GIAO DIỆN NỘI DUNG */
/* Xóa triệt để tiêu đề hiển thị trên tất cả các Trang (Pages) */
.page .wp-block-post-title {
    display: none !important;
}

/* Xóa khoảng trắng dư thừa sau khi ẩn tiêu đề */
.page .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    word-wrap: break-word;
}

.page .wp-block-group {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
/* 5. KHỐI HERO BANNER 60/40 (Chuẩn 1200px Content) */
.hero-section-premium { padding: 50px 0; background: #fff; width: 100%; }
.hero-grid { display: flex; align-items: stretch; gap: 50px; width: 100%; }

/* Cột Trái 60%: Banner */
.hero-left-col { flex: 0 0 60%; display: flex; }
.hero-banner-img { 
    width: 100%; height: 100%; object-fit: cover; border-radius: 10px; 
    display: block; transition: 0.5s; 
}
.hero-banner-img:hover { transform: scale(1.01); }

/* Cột Phải 40%: Tiêu đề & Nội dung */
.hero-right-col { flex: 0 0 40%; display: flex; flex-direction: column; justify-content: center; padding-left: 20px; }
.hero-right-col h1 { 
    font-size: 32px !important; font-weight: 900 !important; color: var(--lgh-red) !important; 
    line-height: 1.3 !important; margin-bottom: 20px !important; 
    text-transform: uppercase !important; border-left: 6px solid var(--lgh-red); padding-left: 20px;
}
.hero-desc { 
    font-size: 18px; color: var(--text-body); line-height: 1.7; margin-bottom: 30px; 
    white-space: normal !important; display: block !important;
}

/* List đặc điểm */
.hero-features { list-style: none; padding: 0; margin-bottom: 35px; }
.hero-features li { 
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px; 
    font-weight: 700; color: var(--text-heading); font-size: 16px;
}
.hero-features li svg { width: 20px; color: var(--lgh-red); }

/* Nút CTA */
.hero-cta { 
    display: inline-block; background: var(--lgh-red); color: #fff; padding: 18px 40px; 
    text-decoration: none; border-radius: 50px; font-weight: 800; font-size: 16px; 
    text-transform: uppercase; transition: 0.3s; box-shadow: 0 10px 20px rgba(110, 15, 26, 0.3);
}
.hero-cta:hover { background: var(--lgh-red-hover); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(110, 15, 26, 0.4); }

@media (max-width: 1024px) {
    .hero-grid { flex-direction: column; text-align: center; }
    .hero-left-col, .hero-right-col { flex: 0 0 100%; padding-left: 0; }
    .hero-right-col h1 { font-size: 28px !important; border-left: none; padding-left: 0; }
    .hero-features li { justify-content: center; }
}
