/* ==========================================================================
   King Kitchen & Cabinets — theme styles
   ========================================================================== */

:root {
	--kkc-ink: #111111;
	--kkc-body: #4a4a4a;
	--kkc-line: #c9c6c0;
	--kkc-tint: #f5f4f1;
	--kkc-white: #ffffff;
	--kkc-serif: 'Playfair Display', Georgia, serif;
	--kkc-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--kkc-max: 1320px;
	--kkc-gutter: 32px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--kkc-white);
	color: var(--kkc-ink);
	font-family: var(--kkc-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--kkc-ink); }
a:hover { color: #5a5a5a; }

:focus-visible { outline: 2px solid var(--kkc-ink); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.kkc-skip:focus {
	clip: auto; width: auto; height: auto;
	z-index: 100; top: 8px; left: 8px;
	background: var(--kkc-white); padding: 12px 18px;
}

.kkc-wrap {
	max-width: var(--kkc-max);
	margin: 0 auto;
	padding-left: var(--kkc-gutter);
	padding-right: var(--kkc-gutter);
}

.kkc-sec { padding-top: 120px; padding-bottom: 120px; }

@keyframes kkc-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.kkc-in { animation: kkc-in 1s cubic-bezier(.2, .7, .2, 1) both; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Heading pair: italic serif + bold sans ---------- */
.kkc-pair { margin: 0; display: flex; flex-direction: column; line-height: 1.05; font-weight: 400; }
.kkc-pair__italic { font-family: var(--kkc-serif); font-style: italic; font-weight: 400; font-size: clamp(44px, 5vw, 72px); }
.kkc-pair__bold { font-family: var(--kkc-sans); font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.01em; }
.kkc-pair--hero { gap: 4px; line-height: 1.02; }
.kkc-pair--hero .kkc-pair__italic { font-size: clamp(44px, 6.4vw, 92px); }
.kkc-pair--hero .kkc-pair__bold { font-size: clamp(34px, 4.6vw, 64px); }
.kkc-pair--row .kkc-pair__italic { font-size: clamp(40px, 4vw, 58px); }
.kkc-pair--row .kkc-pair__bold { font-size: clamp(28px, 2.8vw, 38px); }

/* ---------- Buttons & links ---------- */
.kkc-btn {
	display: inline-block;
	font-family: var(--kkc-sans);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	padding: 17px 30px;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.kkc-btn--white { background: var(--kkc-white); color: var(--kkc-ink); border-color: var(--kkc-white); }
.kkc-btn--white:hover { background: var(--kkc-ink); color: var(--kkc-white); border-color: var(--kkc-ink); }
.kkc-btn--outline { background: transparent; color: var(--kkc-white); border-color: var(--kkc-white); }
.kkc-btn--outline:hover { background: var(--kkc-white); color: var(--kkc-ink); }
.kkc-btn--black { background: var(--kkc-ink); color: var(--kkc-white); border-color: var(--kkc-ink); }
.kkc-btn--black:hover { background: #3a3a3a; border-color: #3a3a3a; color: var(--kkc-white); }

.kkc-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.kkc-more {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--kkc-ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	padding: 12px 0;
	transition: gap .3s ease;
}
.kkc-more span { width: 40px; height: 1px; background: var(--kkc-ink); }
.kkc-more:hover { gap: 22px; color: var(--kkc-ink); }

.kkc-textlink { color: var(--kkc-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--kkc-ink); padding: 10px 0; }

.kkc-zoom { overflow: hidden; }
.kkc-zoom img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.kkc-zoom:hover img { transform: scale(1.04); }

/* ---------- Utility bar ---------- */
.kkc-util { background: var(--kkc-ink); color: var(--kkc-white); font-size: 13px; }
.kkc-util__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.kkc-util a { color: var(--kkc-white); text-decoration: none; }
.kkc-util a:hover { opacity: .75; }
.kkc-util__right { display: flex; gap: 24px; align-items: center; }
.kkc-util__strong { font-weight: 600; }

/* ---------- Header ---------- */
.kkc-header { z-index: 20; }
.kkc-header--overlay { position: absolute; left: 0; right: 0; color: var(--kkc-white); }
.kkc-header--solid { position: relative; color: var(--kkc-ink); background: var(--kkc-white); border-bottom: 1px solid #ececec; }
.kkc-header.is-open { background: var(--kkc-ink); color: var(--kkc-white); }

.kkc-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }

.kkc-brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.kkc-brand:hover { color: inherit; }
.kkc-brand__text { display: flex; flex-direction: column; line-height: 1; }
.kkc-brand__king { font-family: var(--kkc-serif); font-style: italic; font-size: 26px; }
.kkc-brand__sub { font-size: 10px; font-weight: 600; letter-spacing: .3em; margin-top: 4px; }
.kkc-brand .custom-logo { max-height: 56px; width: auto; }

.kkc-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 30px; }
.kkc-menu a { color: inherit; text-decoration: none; font-size: 15px; font-weight: 500; display: block; padding: 12px 0; }
.kkc-menu a:hover { color: inherit; opacity: .7; }

.kkc-burger {
	display: none;
	width: 48px; height: 48px;
	align-items: center; justify-content: center;
	background: transparent;
	border: 1px solid currentColor;
	color: inherit;
	cursor: pointer;
}
.kkc-burger__close { display: none; }
.kkc-burger[aria-expanded="true"] .kkc-burger__open { display: none; }
.kkc-burger[aria-expanded="true"] .kkc-burger__close { display: block; }

.kkc-mobile { padding: 8px 22px 28px; }
.kkc-mobile[hidden] { display: none; }
.kkc-mobile .kkc-menu { flex-direction: column; gap: 0; }
.kkc-mobile .kkc-menu a { font-size: 20px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.kkc-header--solid.is-open .kkc-mobile .kkc-menu a { border-color: rgba(255, 255, 255, .12); }
.kkc-mobile .kkc-btn { display: block; text-align: center; margin-top: 22px; }

/* ---------- Hero ---------- */
.kkc-hero {
	position: relative;
	min-height: 92vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	color: var(--kkc-white);
	overflow: hidden;
}
.kkc-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.kkc-hero__shade {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.08) 30%, rgba(0,0,0,.12) 55%, rgba(0,0,0,.72) 100%);
}
.kkc-hero__text { position: relative; z-index: 2; width: 100%; padding-top: 160px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 22px; }
.kkc-hero__lead { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .88); }

/* ---------- Intro ---------- */
.kkc-intro { display: flex; flex-wrap: wrap; gap: 32px 96px; align-items: flex-end; padding-bottom: 96px; }
.kkc-intro .kkc-pair { flex: 1 1 320px; }
.kkc-intro__text { flex: 999 1 420px; margin: 0; max-width: 640px; font-size: 19px; line-height: 1.7; color: var(--kkc-body); }

/* ---------- Alternating rows ---------- */
.kkc-row { display: flex; flex-wrap: wrap; align-items: center; background: var(--kkc-white); scroll-margin-top: 20px; }
.kkc-row--reverse { flex-direction: row-reverse; }
.kkc-row--tint { background: var(--kkc-tint); }
.kkc-row__media { flex: 1 1 480px; min-width: 0; }
.kkc-row__media img { width: 100%; height: 640px; object-fit: cover; }
.kkc-row__text { flex: 1 1 420px; min-width: 0; padding: 64px clamp(24px, 6vw, 110px); display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.kkc-row__text p { margin: 0; font-size: 17px; line-height: 1.75; color: var(--kkc-body); max-width: 480px; }
.kkc-row__text .kkc-more { margin-top: 8px; }

/* ---------- About ---------- */
.kkc-about { display: flex; flex-wrap: wrap; gap: 40px 96px; align-items: flex-start; padding-top: 140px; padding-bottom: 110px; }
.kkc-about__title { flex: 1 1 380px; margin: 0; font-family: var(--kkc-serif); font-style: italic; font-weight: 400; font-size: clamp(42px, 5vw, 72px); line-height: 1.08; }
.kkc-about__body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding-top: 12px; }
.kkc-about__body p { margin: 0; font-size: 17px; line-height: 1.8; color: var(--kkc-body); }
.kkc-about__body .kkc-about__lead { font-size: 19px; line-height: 1.7; color: var(--kkc-ink); }

/* ---------- Photo strip ---------- */
.kkc-work { padding-top: 0; padding-bottom: 130px; display: flex; flex-direction: column; gap: 48px; }
.kkc-strip { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.kkc-strip__item { flex: 1 1 260px; min-width: 0; display: block; }
.kkc-strip__item img { width: 100%; object-fit: cover; }
.kkc-strip__item--tall img { aspect-ratio: 4 / 5; }
.kkc-strip__item--low { margin-top: 90px; }
.kkc-strip__item--low img { aspect-ratio: 4 / 3; }
.kkc-strip__item--mid { margin-top: 30px; }
.kkc-strip__item--mid img { aspect-ratio: 1 / 1; }
.kkc-work__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.kkc-work__foot p { margin: 0; font-family: var(--kkc-serif); font-style: italic; font-size: 30px; }

/* ---------- Contact ---------- */
.kkc-contact { background: var(--kkc-tint); }
.kkc-contact__inner { display: flex; flex-wrap: wrap; gap: 56px 96px; }
.kkc-contact__intro { flex: 1 1 340px; display: flex; flex-direction: column; gap: 20px; }
.kkc-contact__intro p { margin: 0; font-size: 17px; line-height: 1.75; color: var(--kkc-body); }
.kkc-formbox { flex: 999 1 520px; min-width: 0; background: var(--kkc-white); padding: 44px; }

.kkc-form { display: flex; flex-direction: column; gap: 24px; }
.kkc-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.kkc-field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; }
.kkc-field input,
.kkc-field textarea {
	border: none;
	border-bottom: 1px solid var(--kkc-line);
	border-radius: 0;
	padding: 12px 0;
	font: inherit;
	font-weight: 400;
	font-size: 17px;
	background: transparent;
	color: var(--kkc-ink);
	transition: border-color .25s ease;
}
.kkc-field textarea { resize: vertical; }
.kkc-field input:focus,
.kkc-field textarea:focus { outline: none; border-color: var(--kkc-ink); }
.kkc-form .kkc-btn { align-self: flex-start; }
.kkc-form__error { margin: 0 0 20px; padding: 14px 16px; background: #fbeaea; color: #8a1f1f; font-size: 15px; }
.kkc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.kkc-pills { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.kkc-pills legend { font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 12px; }
.kkc-pills__row { display: flex; flex-wrap: wrap; gap: 8px; }
.kkc-pill { position: relative; cursor: pointer; }
.kkc-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kkc-pill span {
	display: inline-flex; align-items: center;
	min-height: 46px; padding: 10px 18px;
	font-size: 14px; font-weight: 500;
	border: 1px solid var(--kkc-line);
	transition: all .25s ease;
}
.kkc-pill:hover span { border-color: var(--kkc-ink); }
.kkc-pill input:checked + span { background: var(--kkc-ink); color: var(--kkc-white); border-color: var(--kkc-ink); }
.kkc-pill input:focus-visible + span { outline: 2px solid var(--kkc-ink); outline-offset: 2px; }

.kkc-thanks { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 20px 0; }
.kkc-thanks__title { font-family: var(--kkc-serif); font-style: italic; font-size: 44px; line-height: 1.1; }
.kkc-thanks p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--kkc-body); max-width: 420px; }

/* ---------- Footer ---------- */
.kkc-footer { background: var(--kkc-ink); color: var(--kkc-white); }
.kkc-footer__inner { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.kkc-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 40px; }
.kkc-footer__text { max-width: 420px; font-size: 15px; line-height: 1.8; color: #bdbdbd; }
.kkc-footer__text p { margin: 0 0 14px; }
.kkc-footer a { color: var(--kkc-white); }
.kkc-footer a.kkc-btn--white { color: var(--kkc-ink); }
.kkc-footer a.kkc-btn--white:hover { color: var(--kkc-white); border-color: var(--kkc-white); }
.kkc-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.kkc-footer__menu a { text-decoration: none; }
.kkc-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 24px; font-size: 13px; color: #a3a3a3; }

/* ---------- Inner pages ---------- */
.kkc-content { max-width: 860px; }
.kkc-content__title { margin-bottom: 48px; }
.kkc-entry { margin-bottom: 64px; }
.kkc-entry__title { font-family: var(--kkc-serif); font-style: italic; font-weight: 400; font-size: clamp(36px, 4vw, 56px); line-height: 1.1; margin: 0 0 24px; }
.kkc-entry__title a { text-decoration: none; }
.kkc-entry__thumb { margin-bottom: 32px; }
.kkc-entry__body { color: var(--kkc-body); line-height: 1.8; }
.kkc-entry__body h2, .kkc-entry__body h3 { color: var(--kkc-ink); }
.kkc-entry__body img { height: auto; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, figcaption { font-size: 14px; color: #6b6b6b; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
	:root { --kkc-gutter: 22px; }
	.kkc-nav__links { display: none; }
	.kkc-burger { display: flex; }
	.kkc-util__inner { justify-content: center; text-align: center; }
	.kkc-util__right { display: none; }
	.kkc-nav { padding-top: 14px; padding-bottom: 14px; }
	.kkc-sec { padding-top: 72px; padding-bottom: 72px; }
	.kkc-hero { min-height: 82vh; }
	.kkc-hero__text { padding-bottom: 56px; }
	.kkc-row__media img { height: 340px; }
	.kkc-row__text { padding: 44px 22px 64px; }
	.kkc-about { padding-top: 80px; padding-bottom: 72px; }
	.kkc-strip__item--low, .kkc-strip__item--mid { margin-top: 0; }
	.kkc-work { padding-bottom: 80px; }
	.kkc-work__foot p { font-size: 24px; }
	.kkc-formbox { padding: 28px 22px; }

	/* Legibility on phones */
	:root { --kkc-body: #2b2b2b; }
	body { font-size: 18px; }
	.kkc-util { font-size: 14px; }
	.kkc-brand__sub { font-size: 11px; }
	.kkc-hero__shade { background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.15) 28%, rgba(0,0,0,.5) 58%, rgba(0,0,0,.88) 100%); }
	.kkc-pair--hero { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
	.kkc-pair--hero .kkc-pair__italic { font-size: 48px; line-height: 1.08; }
	.kkc-pair--hero .kkc-pair__bold { font-size: 34px; line-height: 1.15; }
	.kkc-hero__lead { font-size: 18px; color: #ffffff; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
	.kkc-btn, .kkc-more { font-size: 16px; }
	.kkc-intro__text,
	.kkc-row__text p,
	.kkc-about__body p,
	.kkc-about__body .kkc-about__lead,
	.kkc-contact__intro p,
	.kkc-thanks p { font-size: 18px; line-height: 1.7; }
	.kkc-field, .kkc-pills legend { font-size: 15px; }
	.kkc-pill span { font-size: 15px; }
	.kkc-footer__text { font-size: 16px; color: #dadada; }
	.kkc-footer__bottom { font-size: 14px; }
}
