/* Homepage-only presentation layer aligned to the approved VND24 desktop reference. */
body.public-home-page {
    --md-primary: var(--vnd-navy);
    --md-primary-hover: var(--vnd-color-385777);
    --md-text: var(--vnd-ink);
    --md-secondary: var(--vnd-muted);
    --md-background: var(--vnd-background);
    --md-muted: var(--vnd-background);
    --md-muted-warm: var(--vnd-color-f8f5f0);
    --md-outline: var(--vnd-border);
    color: var(--md-text);
    background: var(--vnd-white);
    overflow-x: clip;
}

body.public-home-page .site-header {
    background: var(--vnd-white);
    border-bottom-color: var(--vnd-background);
    box-shadow: none;
}

body.public-home-page .header-wrap { min-height: 94px; gap: clamp(12px, 1.5vw, 26px); }
body.public-home-page .brand { min-width: 145px; }
body.public-home-page .brand img { width: 128px; height: auto; filter: brightness(0) saturate(100%) invert(17%) sepia(39%) saturate(1055%) hue-rotate(112deg) brightness(88%); }
body.public-home-page .nav-list { gap: clamp(8px, 1.1vw, 23px); }
body.public-home-page .nav-link { color: var(--vnd-navy); font-size: .9rem; font-weight: 600; }
body.public-home-page .nav-item.current > .nav-link:after { background: var(--vnd-navy); }
body.public-home-page .header-actions .btn { min-height: 48px; padding: 12px 22px; font-size: .88rem; }
body.public-home-page .mobile-nav-trigger { margin-left: auto; }

.public-home { color: var(--md-text); }
.public-home .container-xl { max-width: 1440px; padding-inline: clamp(24px, 4.2vw, 72px); }
.public-home h1, .public-home h2, .public-home h3, .public-home p { margin-top: 0; }
.public-home .eyebrow { margin-bottom: 14px; color: var(--vnd-muted); font-size: .72rem; letter-spacing: .09em; }
.public-home .btn { border-radius: 10px; min-height: 48px; padding: 12px 21px; gap: 20px; font-size: .91rem; }
.public-home .btn-brand { background: var(--vnd-orange); color: var(--vnd-white); }
.public-home .btn-brand:hover, .public-home .btn-brand:focus { background: var(--vnd-color-385777); color: var(--vnd-white); }
.public-home .btn-quiet { border: 1px solid var(--vnd-border); background: var(--vnd-white); color: var(--vnd-navy); }
.public-home .btn-quiet:hover { background: var(--vnd-background); }

.home-hero { padding: 40px 0 48px; background: var(--vnd-background); }
.home-hero > .container-xl > .row { min-height: 650px; }
.home-hero h1 { max-width: 650px; margin-bottom: 30px; color: var(--vnd-ink); font-size: clamp(3.2rem, 4.25vw, 4.55rem); font-weight: 750; letter-spacing: -.055em; line-height: 1.12; }
.home-hero .hero-lead { max-width: 620px; margin: 0; color: var(--vnd-muted); font-size: clamp(1.05rem, 1.45vw, 1.3rem); line-height: 1.65; }
.home-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 42px; }
.home-hero-frame { position: relative; display: grid; place-items: center; min-height: 640px; padding: 36px 9%; border-radius: 28px; background: var(--vnd-background); }
.home-hero-photo { display: grid; place-items: center; width: 84%; height: 560px; padding: 32px; border-radius: 18px; background: var(--vnd-white); }
.home-hero-photo img { width: 100%; height: 100%; object-fit: contain; }
.home-image-caption { position: absolute; right: 15%; bottom: 26px; left: 15%; padding: 17px 24px; border: 1px solid var(--vnd-border); border-radius: 11px; background: var(--vnd-white); color: var(--vnd-muted); font-size: .9rem; font-weight: 600; }

.home-service-strip { padding: 35px 0 43px; background: var(--vnd-white); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-step { display: flex; min-height: 82px; align-items: center; gap: 22px; padding: 8px 34px; border-right: 1px solid var(--vnd-border); }
.service-step:first-child { padding-left: 0; }
.service-step:last-child { border-right: 0; }
.service-step h2 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.service-step p { margin: 0; color: var(--vnd-muted); font-size: .88rem; line-height: 1.45; }

.home-section { padding: 76px 0 82px; background: var(--vnd-white); scroll-margin-top: 94px; }
.home-section-soft { background: var(--vnd-background); }
.home-section-warm, .home-about { background: var(--vnd-color-f8f5f0); }
.home-about { padding-top: 40px; padding-bottom: 40px; }
.home-about-copy { padding: 35px 0; }
.public-home h2 { margin-bottom: 20px; color: var(--vnd-ink); font-size: clamp(2rem, 2.7vw, 2.9rem); font-weight: 750; letter-spacing: -.05em; line-height: 1.17; }
.home-about-copy h2 { margin-bottom: 34px; }
.home-about-copy p { max-width: 590px; margin-bottom: 26px; color: var(--vnd-muted); font-size: 1.08rem; line-height: 1.7; }
.home-about-image { width: 100%; height: 410px; border-radius: 18px; object-fit: cover; }
.home-section-heading { margin: 0 0 33px; }
.home-section-heading h2 { margin-bottom: 12px; }
.home-section-heading p { margin: 0; color: var(--vnd-muted); font-size: 1rem; line-height: 1.6; }

.home-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-category-card { display: grid; min-width: 0; min-height: 224px; grid-template-columns: minmax(120px, 43%) 1fr; align-items: center; gap: 22px; padding: 16px; overflow: hidden; border: 1px solid var(--vnd-border); border-radius: 16px; background: var(--vnd-background); color: var(--vnd-navy); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.home-category-card:hover { color: var(--vnd-navy); transform: translateY(-3px); box-shadow: 0 12px 26px var(--vnd-color-0d2d2712); }
.home-category-image { display: grid; height: 190px; place-items: center; overflow: hidden; border-radius: 11px; background: var(--vnd-white); }
.home-category-image img { width: 100%; height: 100%; object-fit: contain; }
.home-category-image > .material-symbols-outlined { color: var(--vnd-muted); font-size: 56px; }
.home-category-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 10px; }
.home-category-copy .eyebrow { margin: 0; font-size: .61rem; }
.home-category-copy strong { color: var(--vnd-navy); font-size: 1.18rem; line-height: 1.35; }
.home-category-copy .text-arrow { margin-top: auto; color: var(--vnd-color-385777); font-size: .82rem; font-weight: 650; text-decoration: none; }
.home-more-categories { margin-top: 30px; }
.home-more-categories .eyebrow { margin-bottom: 15px; }
.home-category-pills { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.home-category-pills a { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 15px; border: 1px solid var(--vnd-border); border-radius: 10px; background: var(--vnd-white); color: var(--vnd-navy); font-size: .84rem; font-weight: 600; text-decoration: none; }
.home-category-pills a:hover { border-color: var(--vnd-color-a3b1c2); background: var(--vnd-background); }
.home-empty-note { margin: 20px 0 0; color: var(--vnd-muted); }

.home-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--vnd-border); border-radius: 16px; background: var(--vnd-white); }
.home-product-photo { display: grid; height: 248px; place-items: center; padding: 26px; background: var(--vnd-white); text-decoration: none; }
.home-product-photo img { width: 100%; height: 100%; object-fit: contain; }
.home-product-photo > .material-symbols-outlined { color: var(--vnd-muted); font-size: 54px; }
.home-product-copy { margin: 0 18px; padding: 19px 4px 21px; border-top: 1px solid var(--vnd-border); }
.home-product-copy h3 { margin: 0 0 13px; color: var(--vnd-navy); font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.home-product-copy a { display: flex; justify-content: space-between; gap: 10px; color: var(--vnd-color-385777); font-size: .88rem; font-weight: 650; text-decoration: none; }

.home-process-heading { max-width: 830px; margin-bottom: 35px; }
.home-process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 32px; margin: 0; padding: 0; list-style: none; }
.home-process-grid li { display: flex; min-height: 68px; align-items: center; gap: 16px; }
.home-process-grid li > span, .home-start-list li > span { display: inline-grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--vnd-background); color: var(--vnd-color-385777); font-size: .82rem; font-weight: 700; }
.home-process-grid strong { color: var(--vnd-color-385777); font-size: .96rem; }

.home-location-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
.home-location-grid a { position: relative; display: flex; min-height: 88px; flex-direction: column; justify-content: center; gap: 5px; padding: 17px 50px 17px 20px; border: 1px solid var(--vnd-border); border-radius: 12px; background: var(--vnd-white); color: var(--vnd-color-385777); text-decoration: none; }
.home-location-grid a > strong { font-size: .91rem; }
.home-location-grid a > span:nth-child(2) { color: var(--vnd-muted); font-size: .8rem; }
.home-location-grid a > span:last-child { position: absolute; top: 50%; right: 18px; color: var(--vnd-muted); font-size: 1rem; transform: translateY(-50%); }
.home-location-grid a:hover { border-color: var(--vnd-color-a3b1c2); }

.home-cooperation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-cooperation-grid > a { display: flex; min-height: 245px; flex-direction: column; align-items: flex-start; padding: 21px 22px; border: 1px solid var(--vnd-border); border-radius: 15px; background: var(--vnd-background); color: var(--vnd-color-385777); text-decoration: none; }
.home-cooperation-grid > a > span { margin-bottom: 13px; color: var(--vnd-muted); font-size: .78rem; font-weight: 700; }
.home-cooperation-grid strong { font-size: 1.08rem; line-height: 1.38; }
.home-cooperation-grid p { margin: 14px 0 18px; color: var(--vnd-muted); font-size: .84rem; line-height: 1.5; }
.home-cooperation-grid b { margin-top: auto; color: var(--vnd-color-385777); font-size: .84rem; }

.home-start-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 45px; }
.home-start-grid h2 { margin-bottom: 28px; }
.home-start-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.home-start-list li { display: flex; min-height: 49px; align-items: center; gap: 18px; color: var(--vnd-color-385777); }
.home-start-list li > span { width: 34px; height: 34px; font-size: .72rem; }
.home-start-list strong { font-size: .92rem; }
.home-estimator { min-height: 285px; padding: 29px 31px; border: 1px solid var(--vnd-border); border-radius: 16px; background: var(--vnd-white); }
.home-estimator .eyebrow { margin-bottom: 15px; }
.home-estimator h3 { margin: 0 0 20px; color: var(--vnd-navy); font-size: 1.24rem; font-weight: 700; letter-spacing: -.03em; }
.home-estimator label { display: block; margin-bottom: 8px; color: var(--vnd-muted); font-size: .77rem; }
.home-estimator input { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid var(--vnd-border); border-radius: 9px; background: var(--vnd-background); color: var(--vnd-color-385777); font: inherit; font-size: .8rem; }
.home-estimator input:focus { outline: 2px solid var(--vnd-color-a3b1c2); outline-offset: 1px; }
.home-estimator > p { margin: 22px 0 0; color: var(--vnd-muted); font-size: .79rem; }

.home-information-grid { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); align-items: center; gap: 55px; }
.home-information-copy h2 { max-width: 610px; margin-bottom: 17px; }
.home-information-copy p { max-width: 560px; margin-bottom: 25px; color: var(--vnd-muted); line-height: 1.65; }
.home-faq { width: 100%; }
.home-faq .accordion-item { margin: 0 0 12px; border: 1px solid var(--vnd-border); border-radius: 11px !important; background: var(--vnd-background); }
.home-faq .accordion-button { padding: 18px 20px; background: var(--vnd-background); color: var(--vnd-color-385777); font-size: .87rem; font-weight: 650; }
.home-faq .accordion-button:not(.collapsed) { background: var(--vnd-background); color: var(--vnd-navy); box-shadow: none; }
.home-faq .accordion-button:focus { border-color: var(--vnd-color-a3b1c2); box-shadow: 0 0 0 .2rem var(--vnd-border); }
.home-faq .accordion-body { padding: 3px 20px 18px; color: var(--vnd-muted); font-size: .86rem; }

.home-final-cta { padding: 38px 0; background: var(--vnd-navy); color: var(--vnd-white); }
.home-final-cta > .container-xl { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.home-final-cta h2 { margin: 0 0 8px; color: var(--vnd-white); font-size: clamp(1.55rem, 2.2vw, 2.35rem); letter-spacing: -.04em; }
.home-final-cta p { margin: 0; color: var(--vnd-border); font-size: .94rem; }
.home-final-cta .btn { min-width: 240px; background: var(--vnd-white); color: var(--vnd-navy); }

body.public-home-page .public-site-footer { padding: 56px 0 44px; background: var(--vnd-white); color: var(--vnd-navy); }
body.public-home-page .public-site-footer .home-footer-brand .brand { width: 200px; margin-bottom: 16px; }
body.public-home-page .public-site-footer .home-footer-brand .brand img { width: 150px; filter: brightness(0) saturate(100%) invert(17%) sepia(39%) saturate(1055%) hue-rotate(112deg) brightness(88%); }
body.public-home-page .public-site-footer .home-footer-brand p { margin: 0 0 23px; color: var(--vnd-muted); font-size: .91rem; }
body.public-home-page .public-site-footer .home-footer-brand small { color: var(--vnd-muted); font-size: .7rem; }
body.public-home-page .public-site-footer h2 { margin-bottom: 16px; color: var(--vnd-color-385777); font-size: .88rem; font-weight: 700; letter-spacing: 0; }
body.public-home-page .public-site-footer a:not(.brand), body.public-home-page .public-site-footer span { display: block; margin-bottom: 10px; color: var(--vnd-muted); font-size: .84rem; text-decoration: none; }
body.public-home-page .public-site-footer a:hover { color: var(--vnd-navy); text-decoration: underline; }

@media (max-width: 1199px) {
    body.public-home-page .header-wrap { gap: 10px; }
    body.public-home-page .brand { min-width: 113px; }
    body.public-home-page .brand img { width: 113px; }
    body.public-home-page .nav-list { gap: 8px; }
    body.public-home-page .nav-link { font-size: .78rem; }
    .public-home .home-category-card { grid-template-columns: minmax(100px, 40%) 1fr; gap: 14px; }
    .home-category-pills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    body.public-home-page .header-wrap { min-height: 78px; }
    body.public-home-page .brand { min-width: 113px; }
    body.public-home-page .brand img { width: 113px; }
    body.public-home-page .site-nav { background: var(--vnd-white); }
    .home-hero { padding: 48px 0; }
    .home-hero > .container-xl > .row { min-height: 0; }
    .home-hero h1 { font-size: clamp(3rem, 7vw, 4rem); }
    .home-hero-frame { min-height: 500px; }
    .home-hero-photo { height: 430px; }
    .home-about-image { height: 360px; }
    .home-category-grid, .home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-cooperation-grid { grid-template-columns: 1fr; }
    .home-cooperation-grid > a { min-height: 195px; }
    .home-start-grid, .home-information-grid { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 640px) {
    body.public-home-page .header-wrap { min-height: 70px; }
    body.public-home-page .brand, body.public-home-page .brand img { min-width: 110px; width: 110px; }
    body.public-home-page .header-actions .btn { min-height: 40px; padding: 8px 11px; font-size: .7rem; }
    .public-home .container-xl { padding-inline: 20px; }
    .home-hero { padding: 42px 0 35px; }
    .home-hero h1 { margin-bottom: 19px; font-size: clamp(2.65rem, 11vw, 3.6rem); }
    .home-hero .hero-lead { font-size: 1rem; }
    .home-hero .hero-actions { gap: 10px; margin-top: 27px; }
    .public-home .home-hero .btn { min-height: 44px; padding: 10px 14px; gap: 9px; font-size: .8rem; }
    .home-hero-frame { min-height: 360px; padding: 18px 7%; border-radius: 19px; }
    .home-hero-photo { width: 88%; height: 310px; padding: 20px; border-radius: 13px; }
    .home-image-caption { right: 10%; bottom: 13px; left: 10%; padding: 11px 14px; font-size: .72rem; }
    .home-service-strip { padding: 22px 0; }
    .service-grid { grid-template-columns: 1fr; }
    .service-step, .service-step:first-child { min-height: 70px; padding: 10px 0; border-right: 0; border-bottom: 1px solid var(--vnd-border); }
    .service-step:last-child { border-bottom: 0; }
    .service-step h2 { font-size: .94rem; }
    .service-step p { font-size: .79rem; }
    .home-section { padding: 52px 0 58px; scroll-margin-top: 72px; }
    .home-about { padding: 44px 0; }
    .public-home h2 { font-size: 1.9rem; }
    .home-about-copy { padding: 0; }
    .home-about-copy h2 { margin-bottom: 17px; }
    .home-about-copy p { font-size: .95rem; }
    .home-about-image { height: 260px; }
    .home-section-heading { margin-bottom: 24px; }
    .home-section-heading h2 { margin-bottom: 10px; }
    .home-section-heading p { font-size: .89rem; }
    .home-category-grid, .home-product-grid, .home-process-grid, .home-location-grid { grid-template-columns: 1fr; }
    .home-category-card { min-height: 170px; grid-template-columns: 42% 1fr; gap: 14px; padding: 12px; }
    .home-category-image { height: 145px; }
    .home-category-copy strong { font-size: 1rem; }
    .home-category-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .home-category-pills a { min-height: 44px; padding: 9px 10px; font-size: .76rem; }
    .home-product-photo { height: 220px; }
    .home-process-grid { gap: 7px; }
    .home-process-grid li { min-height: 57px; }
    .home-process-grid li > span { width: 38px; height: 38px; }
    .home-location-grid { gap: 10px; }
    .home-location-grid a { min-height: 72px; }
    .home-cooperation-grid > a { min-height: 200px; padding: 19px; }
    .home-estimator { min-height: 0; padding: 23px 19px; }
    .home-information-grid { gap: 24px; }
    .home-faq .accordion-button { padding: 15px; font-size: .8rem; }
    .home-faq .accordion-body { padding-inline: 15px; font-size: .8rem; }
    .home-final-cta { padding: 30px 0; }
    .home-final-cta > .container-xl { align-items: flex-start; flex-direction: column; gap: 18px; }
    .home-final-cta .btn { min-width: 0; }
    body.public-home-page .public-site-footer { padding: 38px 0; }
}
