/*
 * Nhà Chuẩn - Bộ Tự Check Căn Hộ 60 Phút
 * Scoped CSS for WordPress + Betheme.
 * All landing-page rules are namespaced under #nhachuan-landing so the page
 * keeps its original appearance without leaking styles into WordPress/Betheme.
 */

body.nhachuan-landing-page {
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF !important;
    overflow-x: hidden;
}

#nhachuan-landing {
    --navy: #1A3C5E;
    --orange: #F5A623;
    --white: #FFFFFF;
    --dark-gray: #333333;
    --light-gray: #F5F5F5;
    --medium-gray: #888888;
    --green: #27AE60;
    --red: #E74C3C;

    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Open Sans', sans-serif;
    color: var(--dark-gray);
    background: var(--white);
    line-height: 1.6;
    isolation: isolate;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

#nhachuan-landing,
#nhachuan-landing *,
#nhachuan-landing *::before,
#nhachuan-landing *::after {
    box-sizing: border-box;
}

/* Reproduce the original page reset only inside the landing page. */
#nhachuan-landing * {
    margin: 0;
    padding: 0;
}

#nhachuan-landing .container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

#nhachuan-landing > header {
    background: var(--navy);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

#nhachuan-landing > header .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

#nhachuan-landing .logo {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.2;
}

#nhachuan-landing .logo span { color: var(--orange); }

#nhachuan-landing nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 25px;
    font-size: 14px;
    transition: color 0.3s;
}

#nhachuan-landing nav a:hover { color: var(--orange); }

#nhachuan-landing .hero {
    background: linear-gradient(135deg, var(--navy) 0%, #2c5780 100%);
    color: var(--white);
    padding: 60px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#nhachuan-landing .hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--orange);
    opacity: 0.08;
    border-radius: 50%;
}

#nhachuan-landing .hero h1 {
    font-family: inherit;
    color: inherit;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

#nhachuan-landing .hero h1 .highlight { color: var(--orange); }

#nhachuan-landing .hero p {
    font-family: inherit;
    color: inherit;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.92;
}

#nhachuan-landing .hero-badge {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
}

#nhachuan-landing .hero-cta {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 16px 50px;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

#nhachuan-landing .hero-cta:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.6);
}

#nhachuan-landing .hero-note {
    margin-top: 15px;
    font-size: 13px;
    opacity: 0.8;
}

#nhachuan-landing .problem {
    padding: 50px 0;
    background: var(--light-gray);
}

#nhachuan-landing .section-title {
    font-family: inherit;
    text-align: center;
    font-size: 28px;
    line-height: 1.3;
    color: var(--navy);
    margin-bottom: 10px;
    font-weight: 800;
}

#nhachuan-landing .section-subtitle {
    font-family: inherit;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: var(--medium-gray);
    margin-bottom: 40px;
}

#nhachuan-landing .problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

#nhachuan-landing .problem-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

#nhachuan-landing .problem-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

#nhachuan-landing .problem-card h3 {
    font-family: inherit;
    color: var(--navy);
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 10px;
}

#nhachuan-landing .problem-card p {
    font-family: inherit;
    font-size: 14px;
    color: var(--medium-gray);
}

#nhachuan-landing .solution { padding: 50px 0; }

#nhachuan-landing .solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

#nhachuan-landing .solution-list { list-style: none; }

#nhachuan-landing .solution-list li {
    list-style: none;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

#nhachuan-landing .solution-list .check {
    color: var(--green);
    font-size: 20px;
    flex-shrink: 0;
}

#nhachuan-landing .solution-list li:last-child { border-bottom: none; }

#nhachuan-landing .solution-box {
    background: var(--navy);
    color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
}

#nhachuan-landing .solution-box .price-old {
    font-size: 18px;
    text-decoration: line-through;
    opacity: 0.6;
}

#nhachuan-landing .solution-box .price-new {
    font-size: 48px;
    font-weight: 800;
    color: var(--orange);
    margin: 10px 0;
}

#nhachuan-landing .solution-box .price-note {
    font-size: 14px;
    opacity: 0.8;
}

#nhachuan-landing .solution-box .included {
    margin-top: 25px;
    text-align: left;
    font-size: 14px;
}

#nhachuan-landing .solution-box .included div { padding: 5px 0; }

#nhachuan-landing .btn-buy {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 14px 40px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s;
}

#nhachuan-landing .btn-buy:hover {
    background: #e0951a;
    color: var(--white);
}

#nhachuan-landing .preview {
    padding: 50px 0;
    background: var(--light-gray);
}

#nhachuan-landing .preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

#nhachuan-landing .preview-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

#nhachuan-landing .preview-card .header {
    background: var(--navy);
    color: var(--white);
    padding: 15px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

#nhachuan-landing .preview-card .body { padding: 20px; }

#nhachuan-landing .preview-card .body ul {
    list-style: none;
    font-size: 13px;
}

#nhachuan-landing .preview-card .body li {
    list-style: none;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

#nhachuan-landing .preview-card .body li::before {
    content: "\2713";
    color: var(--green);
    margin-right: 8px;
}

#nhachuan-landing .testimonials { padding: 50px 0; }

#nhachuan-landing .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

#nhachuan-landing .testimonial-card {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--orange);
}

#nhachuan-landing .testimonial-card .stars {
    color: var(--orange);
    font-size: 16px;
    margin-bottom: 10px;
}

#nhachuan-landing .testimonial-card p {
    font-family: inherit;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 15px;
}

#nhachuan-landing .testimonial-card .author {
    font-size: 13px;
    font-weight: bold;
    color: var(--navy);
}

#nhachuan-landing .faq {
    padding: 50px 0;
    background: var(--light-gray);
}

#nhachuan-landing .faq-item {
    background: var(--white);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

#nhachuan-landing .faq-item h3 {
    font-family: inherit;
    color: var(--navy);
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 8px;
    cursor: pointer;
}

#nhachuan-landing .faq-item p {
    font-family: inherit;
    font-size: 14px;
    color: var(--medium-gray);
}

#nhachuan-landing .final-cta {
    background: linear-gradient(135deg, var(--navy) 0%, #2c5780 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

#nhachuan-landing .final-cta h2 {
    font-family: inherit;
    color: inherit;
    font-size: 30px;
    line-height: 1.3;
    margin-bottom: 15px;
}

#nhachuan-landing .final-cta p {
    font-family: inherit;
    color: inherit;
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

#nhachuan-landing .final-cta .btn-buy { background: var(--orange); }

#nhachuan-landing .countdown {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 15px;
}

#nhachuan-landing > footer {
    background: #0d2235;
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    font-size: 13px;
}

#nhachuan-landing > footer p {
    font-family: inherit;
    color: inherit;
    font-size: inherit;
}

#nhachuan-landing > footer a {
    color: var(--orange);
    text-decoration: none;
}

/* Keep the sticky landing header below WordPress's admin bar while logged in. */
body.admin-bar #nhachuan-landing > header { top: 32px; }

@media screen and (max-width: 782px) {
    body.admin-bar #nhachuan-landing > header { top: 46px; }
}

@media (max-width: 768px) {
    #nhachuan-landing .solution-content { grid-template-columns: 1fr; }
    #nhachuan-landing .hero h1 { font-size: 26px; }
    #nhachuan-landing .hero p { font-size: 15px; }
    #nhachuan-landing nav { display: none; }
}
