/* KHOME ShinkoLite Series — classic PHP template styles */

:root {
	--kh-orange:     #ff6b1a;
	--kh-orange-600: #e85a0c;
	--kh-navy:       #0c2340;
	--kh-navy-50:    #f3f6fb;
	--kh-dark:       #111827;
	--kh-grey:       #6B7280;
	--kh-grey-500:   #6b7280;
	--kh-grey-300:   #d1d5db;
	--kh-grey-200:   #e5e7eb;
	--kh-grey-100:   #f3f4f6;
	--kh-light:      #f8fafc;
	--kh-line:       #06C755;
	--kh-line-600:   #05A647;
	--kh-border:     rgba(0,0,0,.08);
	--kh-radius:     10px;
	--kh-radius-lg:  16px;
	--kh-shadow-sm:  0 1px 2px rgba(12,35,64,.06), 0 1px 3px rgba(12,35,64,.08);
	--kh-shadow-md:  0 6px 18px rgba(12,35,64,.08);
	--kh-shadow-lg:  0 18px 40px rgba(12,35,64,.12);
}

.kh-series { color: var(--kh-dark); }
.kh-series a { color: inherit; }
.kh-series .kh-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.kh-series .kh-section { padding: 100px 0; }
.kh-series .kh-section--grey { background: var(--kh-light); }
/* Section header (h2/sub/section--head) is shared from khome-global.css */

/* Hero rules live in khome-global.css under .kh-page-hero / .kh-page-hero-inner */

/* === Colors — horizontal cards (swatch left, text right) === */
.kh-color-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
.kh-color-card {
	background: #fff;
	border: 1px solid var(--kh-grey-200);
	border-radius: var(--kh-radius);
	overflow: hidden;
	transition: all .2s ease;
	display: flex;
	flex-direction: row;
	text-align: left;
}
.kh-color-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--kh-shadow-md);
	border-color: transparent;
}
.kh-color-img {
	flex: none;
	width: 190px;
	min-height: 200px;
	background-size: cover;
	background-position: center;
	background-color: var(--kh-grey-100);
}
.kh-color-body {
	padding: 20px 24px;
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
/* .kh-series prefix: outranks WP global-styles' `:root :where(h3)`
   heading margin (equal specificity + later in source would win otherwise). */
.kh-series .kh-color-code {
	font-size: 1.3rem;
	color: var(--kh-navy);
	font-weight: 800;
	margin: 0 0 2px !important;
	line-height: 1.2;
}
.kh-color-name {
	color: var(--kh-grey-500);
	font-size: .92rem;
	margin: 0 0 10px;
}
.kh-color-desc {
	color: #374151;
	font-size: .9rem;
	line-height: 1.6;
	margin: 0 0 14px;
}
.kh-color-specs {
	margin: auto 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--kh-grey-200);
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.kh-color-spec {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}
.kh-color-spec dt {
	font-size: .8rem;
	color: var(--kh-grey-500);
}
.kh-color-spec dd {
	margin: 0;
	font-size: .88rem;
	font-weight: 700;
	color: var(--kh-navy);
}
.kh-color-link {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--kh-grey-200);
}
.kh-series .kh-arrow-link {
	display: inline-flex;
	align-items: center;
	font-weight: 600;
	color: var(--kh-orange);
	text-decoration: none;
	transition: color .2s ease;
	font-size: .85rem;
}
.kh-series .kh-arrow-link:hover { color: var(--kh-orange-600); }

/* === Lifestyle === */
.kh-life-grid {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: 80px;
	align-items: center;
}
.kh-life-img {
	border-radius: var(--kh-radius-lg);
	background-size: cover;
	background-position: center;
	min-height: 440px;
	box-shadow: var(--kh-shadow-lg);
	background-color: var(--kh-navy-50);
}
.kh-life-copy h2 { margin-bottom: 20px; }
.kh-life-copy p { color: #374151; line-height: 1.7; margin: 0 0 14px; }
.kh-life-copy .kh-eyebrow { margin-bottom: 20px; }

/* === Infographic + Video === */
.kh-media-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 48px;
	align-items: center;
}
.kh-media-info { margin: 0; }
.kh-media-info img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--kh-radius-lg);
	border: 1px solid var(--kh-grey-200);
	box-shadow: var(--kh-shadow-md);
}
.kh-media-video {
	aspect-ratio: 16 / 9;
	border-radius: var(--kh-radius-lg);
	overflow: hidden;
	background: var(--kh-navy);
	box-shadow: var(--kh-shadow-lg);
}
.kh-media-video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
.kh-media-grid--single {
	grid-template-columns: minmax(0, 1fr);
	max-width: 800px;
	margin: 0 auto;
}

/* === Why (dark navy) === */
.kh-series .kh-section--navy { background: var(--kh-navy); }
.kh-series .kh-section--navy .kh-h2 { color: #fff; }
.kh-series .kh-section--navy .kh-sub { color: rgba(255,255,255,.75); }
.kh-why-grid {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 36px 40px;
}
.kh-why-grid li { display: flex; gap: 16px; align-items: flex-start; }
.kh-why-icon {
	flex: none;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,107,26,.15);
	color: var(--kh-orange);
	border-radius: 12px;
}
.kh-why-icon i { font-size: 22px; line-height: 1; color: var(--kh-orange); }
.kh-why-grid strong {
	color: #fff;
	display: block;
	font-size: 1rem;
	margin-bottom: 4px;
}
.kh-why-grid li > div > span {
	font-size: .9rem;
	color: rgba(255,255,255,.72);
	line-height: 1.6;
}

/* === Contact CTA === */
.kh-series-cta { text-align: center; }
.kh-series-cta .kh-sub { margin-left: auto; margin-right: auto; }
.kh-cta-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 32px;
}
.kh-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: 8px;
	color: #fff !important;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	box-sizing: border-box;
	transition: background .15s, transform .15s;
}
.kh-btn:hover { transform: translateY(-1px); }
.kh-btn i { font-size: 1.1em; line-height: 1; }
.kh-btn--phone { background: var(--kh-orange); }
.kh-btn--phone:hover { background: var(--kh-orange-600); }
.kh-btn--line { background: var(--kh-line); }
.kh-btn--line:hover { background: var(--kh-line-600); }

/* === Responsive === */
@media (max-width: 1024px) {
	.kh-why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
	.kh-series .kh-section { padding: 70px 0; }
	.kh-color-grid { grid-template-columns: 1fr; gap: 18px; }
	.kh-media-grid { grid-template-columns: 1fr; gap: 32px; }
	.kh-media-info { max-width: 440px; width: 100%; margin: 0 auto; }
	.kh-life-grid { grid-template-columns: 1fr; gap: 50px; }
	.kh-life-img { min-height: 340px; }
}
@media (max-width: 720px) {
	.kh-series .kh-section { padding: 36px 0; }
	/* Mobile card: row 1 = image | (code + specs), row 2 = description, row 3 = link.
	   .kh-color-body becomes display:contents so its children join the card grid. */
	.kh-color-card {
		display: grid;
		grid-template-columns: 100px minmax(0, 1fr);
		column-gap: 16px;
		align-items: center;
		padding: 14px 16px;
	}
	.kh-color-body { display: contents; }
	.kh-color-img {
		grid-column: 1;
		grid-row: 1 / 4;
		align-self: center;
		width: 100px;
		min-height: 0;
		aspect-ratio: 4 / 5;
		margin: 0;
		border-radius: 6px;
	}
	.kh-color-code { grid-column: 2; grid-row: 1; font-size: 1.1rem; }
	.kh-color-name { grid-column: 2; grid-row: 2; margin: 0 0 8px; }
	.kh-color-specs { grid-column: 2; grid-row: 3; margin: 0; padding-top: 8px; gap: 4px; }
	.kh-color-desc { grid-column: 1 / -1; grid-row: 4; font-size: .85rem; margin: 12px 0 0; }
	.kh-color-link { grid-column: 1 / -1; grid-row: 5; margin-top: 12px; text-align: center; }
	.kh-why-grid { grid-template-columns: 1fr; gap: 24px; }
	.kh-cta-buttons { flex-wrap: nowrap; gap: 10px; }
	.kh-cta-buttons .kh-btn { flex: 1; min-width: 0; justify-content: center; padding: 13px 12px; font-size: .95rem; }
}

/* v1.3.0 -- real <img> inside color cards + lifestyle (media alt for SEO/a11y); bg-image kept as fallback */
.kh-color-img,
.kh-life-img { position: relative; overflow: hidden; }
.kh-color-img img,
.kh-life-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
