/* ===========================================
   KHÁNH PHÁT — HOMEPAGE  v3
   =========================================== */

/* ── Reset cục bộ ── */
.kp *, .kp *::before, .kp *::after { box-sizing: border-box; margin: 0; padding: 0; }
.kp img  { display: block; max-width: 100%; }
.kp a    { text-decoration: none; color: inherit; }
.kp ul   { list-style: none; }

/* ── Biến màu ── */
.kp {
    --green:      #2e7d32;
    --green-dark: #1b5e20;
    --green-mid:  #388e3c;
    --green-light:#43a047;
    --green-bg:   #f2fbf3;
    --yellow:     #f5c200;
    --dark:       #152215;
    --text:       #333;
    --muted:      #666;
    --border:     #c8e6c9;
    --shadow:     0 2px 14px rgba(0,0,0,.07);
    --radius:     8px;
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    color: var(--text);
    line-height: 1.65;
    font-size: 15px;
}

/* ── Wrapper ── */
.kp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Section chung ── */
.kp-section { padding: 68px 0; }
.kp-bg      { background: var(--green-bg); }

.kp-sec-head        { text-align: center; margin-bottom: 44px; }
.kp-sec-head h2     { font-size: 1.5rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1a1a1a; }
.kp-sec-head .leaf  { font-size: 1.1rem; margin-top: 10px; }

/* ── Nút ── */
.btn-green {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--green); color: #fff;
    padding: 12px 26px; border-radius: 6px; font-weight: 700; font-size: .92rem;
    transition: background .2s;
}
.btn-green:hover { background: var(--green-dark); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; color: var(--green);
    padding: 11px 26px; border-radius: 6px; font-weight: 700; font-size: .92rem;
    border: 2px solid var(--green); transition: .2s;
}
.btn-outline:hover { background: var(--green); color: #fff; }

.btn-yellow {
    display: inline-flex; flex-direction: column; align-items: flex-start;
    background: var(--yellow); color: #1a1a1a;
    padding: 12px 22px; border-radius: 6px; line-height: 1.25;
    transition: background .2s;
}
.btn-yellow strong { font-size: .95rem; font-weight: 700; }
.btn-yellow small  { font-size: .72rem; font-weight: 400; }
.btn-yellow:hover  { background: #d9ab00; }

.btn-quote {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--yellow); color: #1a1a1a;
    padding: 10px 18px; border-radius: 6px; font-weight: 700; font-size: .85rem;
    white-space: nowrap; transition: background .2s; flex-shrink: 0;
}
.btn-quote:hover { background: #d9ab00; }

.btn-sm {
    display: inline-block;
    padding: 5px 14px; border: 1.5px solid var(--green);
    border-radius: 5px; color: var(--green); font-size: .8rem; font-weight: 600;
    transition: .2s;
}
.btn-sm:hover { background: var(--green); color: #fff; }


/* ════════════════════════════════
   TOPBAR
════════════════════════════════ */
.kp-topbar {
    background: var(--dark); padding: 7px 0; font-size: .8rem;
}
.kp-topbar .kp-wrap {
    display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
}
.kp-topbar a {
    color: #c8e6c9; display: inline-flex; align-items: center; gap: 5px;
}
.kp-topbar a:hover { color: #fff; }
.kp-topbar b { color: #fff; font-weight: 600; }


/* ════════════════════════════════
   HEADER
════════════════════════════════ */
.kp-header {
    background: #fff; border-bottom: 1px solid #e5f0e5;
    position: sticky; top: 0; z-index: 100;
    transition: box-shadow .3s;
}
.kp-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.1); }
.kp-header .kp-wrap {
    display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px;
}
.kp-logo img { height: 52px; width: auto; }

.kp-nav          { flex: 1; }
.kp-nav ul       { display: flex; justify-content: center; gap: 2px; }
.kp-nav a        { display: block; padding: 8px 13px; border-radius: 5px; font-size: .88rem; font-weight: 500; transition: .2s; }
.kp-nav a:hover,
.kp-nav .active a { color: var(--green); background: #f0f8f0; }

.kp-toggle {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; width: 28px; cursor: pointer; flex-shrink: 0;
}
.kp-toggle span { display: block; height: 2px; background: #333; border-radius: 2px; transition: .3s; }
.kp-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kp-toggle.open span:nth-child(2) { opacity: 0; }
.kp-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ════════════════════════════════
   HERO
════════════════════════════════ */
.kp-hero {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    background: #edf7ed;
}
.kp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.kp-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: right center;
}
/* Lớp xanh lá bên trái với đường cong đa giác */
.kp-hero-panel {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #edf7ed;
    clip-path: polygon(
        0 0,
        47% 0,   50% 12%,  53% 25%,
        54% 37%, 55% 50%,
        54% 63%, 53% 75%,  50% 88%,
        47% 100%, 0 100%
    );
}
.kp-hero-body {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 52px 20px;
    display: flex;
    align-items: center;
    min-height: 430px;
}
.kp-hero-content { max-width: 460px; }

.kp-hero-title  { font-size: 2.9rem; font-weight: 900; color: var(--green-dark); line-height: 1.1; margin-bottom: 8px; }
.kp-hero-sub    { font-size: .97rem; font-weight: 700; color: var(--green); margin-bottom: 14px; }
.kp-hero-desc   { font-size: .86rem; color: #555; margin-bottom: 24px; line-height: 1.7; }

/* Stats */
.kp-stats       { display: flex; gap: 28px; margin-bottom: 24px; flex-wrap: wrap; }
.kp-stat        { display: flex; align-items: center; gap: 10px; }
.kp-stat-ico    { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.kp-stat strong { display: block; font-size: 1.45rem; font-weight: 900; color: var(--green-dark); line-height: 1; }
.kp-stat span   { font-size: .76rem; color: var(--muted); }

/* Buttons */
.kp-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }

/* Badges */
.kp-hero-badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.kp-badge {
    border: 1.5px solid var(--border); border-radius: 8px;
    padding: 7px 16px; background: #fff; text-align: center;
}
.kp-badge strong { display: block; font-size: .95rem; font-weight: 800; color: var(--green-dark); }
.kp-badge small  { font-size: .68rem; color: var(--muted); display: block; }
.kp-badge-bh     { display: flex; align-items: center; gap: 9px; padding: 7px 14px; }
.kp-badge-bh .ico{ font-size: 1.2rem; }
.kp-badge-bh strong { font-size: .85rem; color: var(--green-dark); font-weight: 700; }
.kp-badge-bh small  { font-size: .72rem; color: var(--muted); }


/* ════════════════════════════════
   PRODUCTS
════════════════════════════════ */
.kp-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.kp-prod {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.kp-prod:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0,0,0,.11); }
.kp-prod img   { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.kp-prod-body  { padding: 16px; }
.kp-prod-body h3     { font-size: .97rem; font-weight: 700; color: var(--green-dark); margin-bottom: 5px; }
.kp-prod-body p      { font-size: .82rem; color: var(--muted); margin-bottom: 14px; min-height: 2.6em; }
.kp-prod-foot        { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kp-prod-price       { font-weight: 800; color: var(--green); font-size: .88rem; }


/* ════════════════════════════════
   SERVICES
════════════════════════════════ */
.kp-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.kp-svc {
    background: #fff; border-radius: var(--radius);
    padding: 30px 22px; text-align: center;
    box-shadow: var(--shadow); border-top: 3px solid var(--green-light);
    transition: transform .25s;
}
.kp-svc:hover { transform: translateY(-4px); }

.kp-svc-ico {
    width: 62px; height: 62px; border-radius: 50%;
    border: 2px solid var(--border); background: var(--green-bg);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
}
.kp-svc-ico svg { width: 28px; height: 28px; }
.kp-svc h3  { font-size: .93rem; font-weight: 700; color: var(--green-dark); margin-bottom: 7px; }
.kp-svc p   { font-size: .82rem; color: var(--muted); line-height: 1.55; }


/* ════════════════════════════════
   WHY US
════════════════════════════════ */
.kp-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.kp-why {
    background: #fff; border-radius: var(--radius);
    padding: 28px 20px; text-align: center;
    box-shadow: var(--shadow); border-bottom: 3px solid var(--green-light);
    transition: transform .25s;
}
.kp-why:hover { transform: translateY(-4px); }

.kp-why-ico {
    width: 56px; height: 56px; border-radius: 50%;
    border: 2px solid var(--border); background: var(--green-bg);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
}
.kp-why-ico svg { width: 26px; height: 26px; }
.kp-why h3  { font-size: .93rem; font-weight: 700; color: var(--green-dark); margin-bottom: 7px; }
.kp-why p   { font-size: .8rem; color: var(--muted); line-height: 1.55; }


/* ════════════════════════════════
   PROJECTS
════════════════════════════════ */
.kp-proj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.kp-proj { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.kp-proj img  { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.kp-proj:hover img { transform: scale(1.05); }
.kp-proj-info { padding: 11px 14px; background: #fff; }
.kp-proj-info strong { display: block; font-size: .88rem; font-weight: 700; color: var(--green-dark); }
.kp-proj-info span   { font-size: .78rem; color: #999; }


/* ════════════════════════════════
   PROCESS
════════════════════════════════ */
.kp-steps {
    display: flex; justify-content: center;
    align-items: flex-start; position: relative;
}
.kp-steps::before {
    content: ''; position: absolute;
    top: 21px; left: calc(10% + 22px); right: calc(10% + 22px); height: 2px;
    background: repeating-linear-gradient(90deg, var(--green-light) 0, var(--green-light) 8px, transparent 8px, transparent 16px);
}
.kp-step { flex: 1; max-width: 200px; text-align: center; padding: 0 8px; position: relative; }
.kp-step-num {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--green); color: #fff; font-size: 1rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
    border: 3px solid #fff; box-shadow: 0 0 0 2px var(--green);
}
.kp-step-ico { font-size: 1.6rem; margin-bottom: 8px; }
.kp-step h3  { font-size: .85rem; font-weight: 700; color: var(--green-dark); margin-bottom: 5px; line-height: 1.35; }
.kp-step p   { font-size: .78rem; color: var(--muted); }


/* ════════════════════════════════
   TESTIMONIALS
════════════════════════════════ */
.kp-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.kp-testi {
    background: #fff; border-radius: var(--radius);
    padding: 26px 22px; box-shadow: var(--shadow);
}
.kp-testi-top { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.kp-testi-top img {
    width: 54px; height: 54px; border-radius: 50%;
    object-fit: cover; border: 3px solid var(--green-light); flex-shrink: 0;
}
.kp-testi-top strong { display: block; font-size: .9rem; font-weight: 700; color: var(--green-dark); }
.kp-testi-top span   { font-size: .78rem; color: #999; }
.kp-testi blockquote {
    font-style: italic; font-size: .85rem; color: #555; line-height: 1.7;
    border-left: 3px solid var(--border); padding-left: 12px;
}


/* ════════════════════════════════
   FAQ
════════════════════════════════ */
.kp-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.kp-faq {
    background: #fff; border-radius: var(--radius);
    border: 1px solid #e0efe0; overflow: hidden;
}
.kp-faq summary {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 18px; cursor: pointer; font-size: .88rem; font-weight: 600;
    list-style: none; gap: 12px; user-select: none;
}
.kp-faq summary::-webkit-details-marker { display: none; }
.kp-faq[open] summary { color: var(--green-dark); background: #f8fef8; }
.kp-faq-plus {
    width: 24px; height: 24px; border-radius: 50%;
    border: 1.5px solid var(--green); color: var(--green);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0; transition: transform .2s;
}
.kp-faq[open] .kp-faq-plus { transform: rotate(45deg); }
.kp-faq p { padding: 0 18px 16px; font-size: .83rem; color: var(--muted); line-height: 1.7; }


/* ════════════════════════════════
   CTA BANNER
════════════════════════════════ */
.kp-cta { background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%); padding: 52px 0; }
.kp-cta .kp-wrap {
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px; flex-wrap: wrap;
}
.kp-cta-text h2 { font-size: 1.45rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.kp-cta-text p  { font-size: .9rem; color: rgba(255,255,255,.85); }
.kp-cta-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.kp-cta-phone {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,.15); border-radius: 10px;
    padding: 13px 20px; color: #fff; transition: background .2s;
}
.kp-cta-phone:hover  { background: rgba(255,255,255,.22); }
.kp-cta-phone-ico {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.kp-cta-phone strong { display: block; font-size: 1.2rem; font-weight: 800; color: #fff; }
.kp-cta-phone small  { font-size: .75rem; color: rgba(255,255,255,.75); }


/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.kp-footer { background: var(--dark); padding: 54px 0 0; }
.kp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.3fr 1.5fr;
    gap: 36px; padding-bottom: 44px;
}
.kp-footer-brand img  { height: 46px; width: auto; }
.kp-footer-brand p    { font-size: .8rem; color: #7a9a7a; margin-top: 14px; line-height: 1.7; }

.kp-socials           { display: flex; gap: 10px; margin-top: 18px; }
.kp-socials a {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.08); display: flex;
    align-items: center; justify-content: center;
    color: #9ab89a; transition: .2s;
}
.kp-socials a:hover { background: var(--green); color: #fff; }
.kp-socials svg { width: 15px; height: 15px; fill: currentColor; }

.kp-footer-col h4 {
    font-size: .78rem; font-weight: 700; color: #fff;
    letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px;
}
.kp-footer-col li { margin-bottom: 9px; font-size: .82rem; color: #7a9a7a; }
.kp-footer-col a  { color: #7a9a7a; transition: .2s; }
.kp-footer-col a:hover { color: #fff; }

.kp-footer-bar {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 14px 0; text-align: center;
    font-size: .78rem; color: #3a5a3a;
}


/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1100px) {
    .kp-products-grid { grid-template-columns: repeat(2, 1fr); }
    .kp-why-grid      { grid-template-columns: repeat(2, 1fr); }
    .kp-proj-grid     { grid-template-columns: repeat(2, 1fr); }
    .kp-footer-grid   { grid-template-columns: 1fr 1fr 1fr; }
    .kp-footer-brand  { grid-column: 1 / -1; }
    .kp-steps::before { display: none; }
}
@media (max-width: 900px) {
    .kp-hero-bg, .kp-hero-panel { display: none; }
    .kp-hero-body        { min-height: auto; padding: 36px 20px 44px; }
    .kp-hero-content     { max-width: 100%; }
    .kp-svc-grid         { grid-template-columns: repeat(2, 1fr); }
    .kp-testi-grid       { grid-template-columns: repeat(2, 1fr); }
    .kp-faq-grid         { grid-template-columns: 1fr; }
    .kp-steps            { flex-direction: column; align-items: center; gap: 20px; }
    .kp-step             { max-width: 280px; width: 100%; }
    .btn-quote           { display: none; }
    .kp-toggle           { display: flex; }
    .kp-nav {
        display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 99;
    }
    .kp-nav.open         { display: block; }
    .kp-nav ul {
        position: absolute; top: 0; right: 0; width: 260px; height: 100%;
        background: #fff; flex-direction: column; padding: 72px 0 20px;
        box-shadow: -4px 0 24px rgba(0,0,0,.15);
    }
    .kp-nav a { padding: 12px 24px; border-radius: 0; font-size: .95rem; }
}
@media (max-width: 600px) {
    .kp-products-grid { grid-template-columns: 1fr; }
    .kp-svc-grid      { grid-template-columns: 1fr; }
    .kp-why-grid      { grid-template-columns: 1fr; }
    .kp-proj-grid     { grid-template-columns: 1fr 1fr; }
    .kp-testi-grid    { grid-template-columns: 1fr; }
    .kp-footer-grid   { grid-template-columns: 1fr 1fr; }
    .kp-hero-title    { font-size: 2.1rem; }
    .kp-cta .kp-wrap  { flex-direction: column; text-align: center; }
    .kp-cta-actions   { flex-direction: column; align-items: center; }
    .kp-section       { padding: 48px 0; }
}
@media (max-width: 400px) {
    .kp-proj-grid   { grid-template-columns: 1fr; }
    .kp-footer-grid { grid-template-columns: 1fr; }
}
