/* ==========================================================================
   YK Elementor Blocks — shared styles
   Restored from www.yingkangdoors.com static pages.
   All styles are scoped under .yk-block to avoid leaking into the theme.
   ========================================================================== */
.yk-block {
	--yk-green: #1b7a47;
	--yk-green-l: #7ed957;
	--yk-ink: #161a1b;
	--yk-tx: #252a2b;
	--yk-mu: #5f696b;
	--yk-ln: #dcdfe0;
	--yk-mist: #f1f2f3;
	--yk-card: #fff;
	--yk-sans: Manrope, "Segoe UI", Arial, sans-serif;
	font-family: var(--yk-sans);
	color: var(--yk-tx);
	line-height: 1.7;
	font-size: 16px;
	box-sizing: border-box;
}
.yk-block *, .yk-block *::before, .yk-block *::after { box-sizing: border-box; }
.yk-block img, .yk-block svg { display: block; }
.yk-block a { color: inherit; text-decoration: none; }
.yk-wrap { max-width: 1280px; margin: 0 auto; padding: 0 36px; }
.yk-k { display: flex; align-items: center; gap: 0; color: var(--yk-green); font-size: 13.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.yk-k::before { content: ""; width: 38px; height: 3px; background: var(--yk-green); box-shadow: inset -12px 0 0 #85ccdc; margin-right: 16px; flex: none; }
.yk-hd { max-width: 720px; margin-bottom: 56px; }
.yk-hd--wide { max-width: 900px; }
.yk-hd h2 { font-size: clamp(36px, 4vw, 56px); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; margin: 0 0 16px; color: var(--yk-ink); }
.yk-hd p { color: var(--yk-mu); margin: 0; font-size: 17.5px; }
.yk-gw { color: var(--yk-green); }
.yk-note { font-size: 14.5px; color: var(--yk-mu); margin-top: 22px; }
.yk-tt { font-size: 26px; margin: 0 0 20px; color: var(--yk-ink); font-weight: 700; }
.yk-tt--cmp { margin-top: 92px; }
.yk-btn { display: inline-block; padding: 16px 32px; font: 700 14px var(--yk-sans); letter-spacing: .05em; border: 1px solid var(--yk-green); background: var(--yk-green); color: #fff; cursor: pointer; transition: .25s; }
.yk-btn:hover { background: #146236; border-color: #146236; color: #fff; }
.yk-btn--o { background: transparent; color: var(--yk-ink); border-color: var(--yk-ink); }
.yk-btn--o:hover { background: var(--yk-ink); color: #fff; border-color: var(--yk-ink); }

/* ---------- Products Banner (list page) ---------- */
.yk-pbanner { background: #fff; }
.yk-crumb { background: #eee; }
.yk-crumb-in { max-width: 1280px; margin: 0 auto; padding: 10px 36px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #666; }
.yk-crumb a:hover { color: #76c04f; }
.yk-crumb-sep { color: #999; }
.yk-pbanner-img { display: flex; justify-content: center; align-items: flex-start; overflow: hidden; height: 400px; background: #e9ecee; }
.yk-pbanner-img .yk-pbanner-im { height: 100%; width: auto; max-width: none; object-fit: contain; }

/* ---------- Products Grid (list page) ---------- */
.yk-pgrid { padding: 90px 0; background: #fff; }
.yk-pgrid-list { max-width: 1280px; margin: 0 auto; padding: 0 36px; }
.yk-pgrid-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: stretch; gap: 0; margin-bottom: 90px; }
.yk-pgrid-item:last-child { margin-bottom: 0; }
.yk-pgrid-item--rev { flex-direction: row-reverse; }
.yk-pgrid-text { width: 25.4%; background: #e6ecee; padding: 35px 10px 30px 25px; display: flex; flex-direction: column; }
.yk-pgrid-title { font-size: 24px; color: #222; text-transform: uppercase; margin: 0 0 8px; font-weight: 700; line-height: 1.25; }
.yk-pgrid-desc { font-size: 14px; color: #666; line-height: 22px; }
.yk-pgrid-subs { padding-top: 10px; }
.yk-pgrid-subs a { display: block; font-size: 14px; color: #7f8587; text-decoration: underline; padding-bottom: 4px; }
.yk-pgrid-subs a:hover { color: #76c04f; }
.yk-pgrid-btn-wrap { padding-top: 20px; margin-top: auto; }
.yk-pgrid-btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; background: #76c04f; color: #fff; font-size: 15px; font-weight: 600; line-height: 1; border-radius: 999px; transition: .2s; }
.yk-pgrid-btn:hover { background: #5ea63b; }
.yk-pgrid-arrow { font-style: normal; font-size: 17px; font-weight: 700; line-height: 1; }
.yk-pgrid-media { width: 72.8%; background: #e9ecee; overflow: hidden; }
.yk-pgrid-media a { display: block; height: 100%; perspective: 900px; overflow: hidden; }
.yk-pgrid-media a:hover img { transform: translateZ(30px) scale(1.02); }
.yk-pgrid-im { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }

/* ---------- Detail Hero ---------- */
.yk-dhero { background: #eaf1f7; overflow: hidden; }
.yk-dhero-main { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.04fr); min-height: max(700px, min(100vh, 900px)); position: relative; }
.yk-dhero-main::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(235,242,248,.97) 0, rgba(235,242,248,.84) 34%, rgba(235,242,248,0) 58%); }
.yk-dhero-copy { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center; padding: 130px 48px 64px max(56px, calc((100vw - 1600px)/2 + 56px)); }
.yk-dhero-copy .yk-k { color: #17453d; }
.yk-dhero-copy .yk-k::before { background: #17453d; box-shadow: none; }
.yk-dhero-title { font-size: clamp(44px, 5.6vw, 96px); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; color: #14181a; margin: 0; }
.yk-dhero-title .yk-gw { color: #17453d; }
.yk-dhero-lead { max-width: 700px; font-size: 19px; color: #3c484e; margin: 28px 0 0; }
.yk-dhero-tags { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 38px; font-size: 15.5px; font-weight: 600; color: #1b262b; }
.yk-dhero-tags b { width: 6px; height: 6px; border-radius: 50%; background: #17453d; }
.yk-dhero-visual { position: relative; min-height: 440px; }
.yk-dhero-visual .yk-dhero-im { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.yk-dhero-facts { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.72); border-top: 1px solid rgba(255,255,255,.9); border-bottom: 1px solid #d3e0e9; }
.yk-dhero-facts > div { padding: 24px 20px 24px 0; font-size: 14.5px; color: #4f5d64; }
.yk-dhero-facts b { display: block; color: #14181a; font-size: 16.5px; font-weight: 700; }

/* ---------- Detail dark section base (specs/benefits/structure/buyers) ---------- */
.yk-dspecs, .yk-dbenefits, .yk-dstructure, .yk-dbuyers { background: #171b1c; color: #d7dcdd; padding: 120px 0; }
.yk-dspecs .yk-hd h2, .yk-dbenefits .yk-hd h2,
.yk-dstructure .yk-hd h2, .yk-dbuyers .yk-hd h2 { color: #fff; }
.yk-dspecs .yk-hd p, .yk-dbenefits .yk-hd p,
.yk-dstructure .yk-hd p, .yk-dbuyers .yk-hd p { color: #8b9293; }
.yk-dspecs .yk-k, .yk-dbenefits .yk-k,
.yk-dstructure .yk-k, .yk-dbuyers .yk-k { color: #9fd9ea; }
.yk-dspecs .yk-k::before, .yk-dbenefits .yk-k::before,
.yk-dstructure .yk-k::before, .yk-dbuyers .yk-k::before { background: #85ccdc; box-shadow: inset -12px 0 0 #67a440; }
.yk-dspecs .yk-note, .yk-dbenefits .yk-note,
.yk-dstructure .yk-note, .yk-dbuyers .yk-note { color: #7a8182; }
.yk-dspecs .yk-tt { color: #fff; }

/* Table */
.yk-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); color: #d7dcdd; }
.yk-table td, .yk-table th { padding: 22px 32px; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 16px; text-align: left; line-height: 1.55; }
.yk-table td:first-child { width: 26%; font-weight: 700; color: #fff; }
.yk-table tr:last-child td { border-bottom: 0; }

/* Comparison cards */
.yk-pg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.yk-pc { position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.18); padding: 34px 32px 26px; }
.yk-pc h3 { font-size: 25px; margin: 0 0 20px; color: #fff; }
.yk-pc ul { list-style: none; margin: 0; padding: 0; }
.yk-pc li { display: grid; grid-template-columns: 46px 1fr; gap: 2px 18px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.14); }
.yk-pc li:first-child { border-top: 0; }
.yk-pc .yk-pi { grid-row: span 2; width: 46px; height: 46px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.yk-pc .yk-pi svg { width: 24px; height: 24px; stroke: #8bd44f; fill: none; stroke-width: 1.8; }
.yk-pc b { font-size: 17.5px; color: #fff; line-height: 1.3; }
.yk-pc li > span:last-child { font-size: 15.5px; color: #92999a; }
.yk-pc--hl { background: #1f2627; border-color: #1f2627; margin-top: -12px; padding: 46px 32px 34px; }
.yk-pc--hl .yk-rec { position: absolute; top: -15px; left: 30px; background: var(--yk-green-l); color: #171b1c; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; padding: 7px 18px; text-transform: uppercase; }

/* CTA bar (specs + structure) */
.yk-gs { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px 34px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.18); border-left: 4px solid #7ed957; }
.yk-gs b { display: block; font-size: 19px; color: #fff; line-height: 1.35; }
.yk-gs span { display: block; color: #92999a; font-size: 16px; margin-top: 4px; }
.yk-gs .yk-btn--o { color: #fff; border-color: rgba(255,255,255,.6); }
.yk-gs .yk-btn--o:hover { background: #fff; color: #171b1c; }

/* Benefits cards */
.yk-cb { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.18); }
.yk-cb > div { position: relative; padding: 46px 40px 44px; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.yk-ok { position: absolute; top: 24px; right: 24px; width: 30px; height: 30px; border: 2px solid #7ed957; display: flex; align-items: center; justify-content: center; }
.yk-ok svg { width: 16px; height: 16px; stroke: #7ed957; fill: none; stroke-width: 3; }
.yk-ico { width: 68px; height: 68px; margin-bottom: 28px; }
.yk-ico svg { width: 100%; height: 100%; stroke: #7ed957; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.yk-cb h3 { font-size: 23px; line-height: 1.25; margin: 0 0 12px; color: #fff; }
.yk-cb p { margin: 0; color: #92999a; font-size: 16.5px; line-height: 1.65; }

/* Structure diagram */
.yk-fg { background: #fff; padding: 34px 40px 36px; }
.yk-ximg { width: 100%; height: auto; display: block; }
.yk-lgd { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.yk-lgd li { text-align: center; color: #161a1b; }
.yk-lgd i { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 2px solid #1b7a47; color: #14603a; font-style: normal; font-weight: 700; font-size: 14px; border-radius: 50%; margin-bottom: 8px; }
.yk-lgd b { display: block; font-size: 17px; line-height: 1.3; }
.yk-lgd span { display: block; font-size: 15px; color: #5f696b; margin-top: 2px; }

/* Buyers cards */
.yk-by { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.yk-by-card { position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.18); }
.yk-bi { position: relative; aspect-ratio: 16/10; background: #e6ecee; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #4c5254; text-align: center; padding: 0 24px; overflow: hidden; }
.yk-bi-im { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yk-bi-ph { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.yk-bi-svg { width: 56px; height: 56px; stroke: #8a9092; fill: none; stroke-width: 1.4; margin-bottom: 6px; }
.yk-bi-ph span { font-size: 16px; font-weight: 700; }
.yk-bi-ph small { font-size: 11px; font-weight: 600; color: #7a8284; letter-spacing: .08em; text-transform: uppercase; }
.yk-bb { position: relative; z-index: 2; width: 60px; height: 60px; margin: -30px 0 0 28px; border-radius: 50%; background: #1f2627; border: 2px solid #7ed957; display: flex; align-items: center; justify-content: center; }
.yk-bb svg { width: 30px; height: 30px; stroke: #7ed957; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.yk-bd { display: flex; gap: 22px; flex-direction: column; padding: 20px 32px 32px; }
.yk-bd h3 { font-size: 24px; margin: 0; color: #fff; }
.yk-bd p { margin: 0; color: #92999a; font-size: 17px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.yk-wrap, .yk-pgrid-list { padding: 0 24px; }
	.yk-pgrid-text, .yk-pgrid-media { width: 100%; }
	.yk-pgrid-item, .yk-pgrid-item--rev { flex-direction: column; gap: 16px; }
	.yk-dhero-main { grid-template-columns: 1fr; min-height: 0; }
	.yk-dhero-main::after { background: linear-gradient(0deg, rgba(235,242,248,.96), rgba(235,242,248,.78)); }
	.yk-dhero-copy { padding: 116px 24px 44px; }
	.yk-dhero-visual { min-height: 0; aspect-ratio: 1/1; }
	.yk-dhero-facts { grid-template-columns: repeat(2, 1fr); }
	.yk-dspecs, .yk-dbenefits, .yk-dstructure, .yk-dbuyers { padding: 84px 0; }
	.yk-pg, .yk-cb { grid-template-columns: repeat(2, 1fr); }
	.yk-table td:first-child { width: 34%; }
	.yk-by { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.yk-pg, .yk-cb, .yk-dhero-facts, .yk-lgd { grid-template-columns: 1fr; }
	.yk-lgd { grid-template-columns: repeat(2, 1fr); }
	.yk-table td, .yk-table th { padding: 16px; }
	.yk-hd h2 { font-size: 34px; }
	.yk-pc--hl { margin-top: 0; }
}
