/* Эксклюзив Карнизоff — styles on top of Kadence (base colours come from the Kadence global palette) */

:root {
	--km-ink: #16130f;
	--km-ink-2: #221e19;
	--km-cream: #f5f1ea;
	--km-gold: #b8955a;
	--km-gold-light: #d6b98a;
	--km-line: var(--global-palette7);
	--km-track: .16em;
}

/* ---------- top bar ---------- */
.km-topbar {
	background: var(--km-ink);
	color: #b9b0a3;
	font-size: 12.5px;
	letter-spacing: .06em;
}
.km-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: var(--global-content-width, 1240px);
	min-height: 40px;
	margin: 0 auto;
	padding: 0 var(--global-content-edge-padding, 1.5rem);
}
.km-topbar__group { display: flex; align-items: center; gap: 28px; }
.km-topbar a { color: #e9e1d4; text-decoration: none; transition: color .2s; }
.km-topbar a:hover { color: var(--km-gold-light); }
.km-topbar__sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .15); }

/* Kadence's own sticky header miscounts the top bar, so it's off and the header sticks via CSS;
   the top bar sits outside #masthead and simply scrolls away */
#masthead {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
}
.admin-bar #masthead { top: 32px; }
@media (max-width: 782px) {
	.admin-bar #masthead { top: 0; }
}

/* ---------- header ---------- */
.site-branding a.brand { gap: 14px; text-decoration: none; }
.site-branding .site-title {
	font-family: var(--global-heading-font-family);
	font-size: 20px;
	font-weight: 500;
	letter-spacing: .01em;
	line-height: 1.1;
	color: var(--km-ink);
}
.header-navigation .menu > li > a,
.main-navigation .primary-menu-container > ul > li.menu-item > a {
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: var(--km-track);
	text-transform: uppercase;
	color: var(--global-palette4);
}
.header-navigation .menu > li.current-menu-item > a,
.header-navigation .menu > li > a:hover { color: var(--global-palette1); }

.header-html p, .mobile-html p { margin: 0; }
.header-html { margin-left: 28px; padding-left: 28px; border-left: 1px solid var(--km-line); }

.km-hphone,
.header-html.inner-link-style-normal a.km-hphone,
.mobile-html a.km-hphone {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--km-ink);
	text-decoration: none !important;
	white-space: nowrap;
}
.km-hphone__icon {
	flex: none;
	width: 38px;
	height: 38px;
	position: relative;
	border: 1px solid var(--km-gold);
	border-radius: 50%;
	background: transparent;
	transition: background .2s;
}
.km-hphone__icon::before {
	content: "";
	position: absolute;
	inset: 10px;
	background: var(--km-gold);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1L6.6 10.8z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1L6.6 10.8z'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: background .2s;
}
.km-hphone:hover .km-hphone__icon { background: var(--km-gold); }
.km-hphone:hover .km-hphone__icon::before { background: #fff; }
.km-hphone__text { display: flex; flex-direction: column; line-height: 1.25; }
.km-hphone__label {
	font-size: 10.5px;
	letter-spacing: var(--km-track);
	text-transform: uppercase;
	color: var(--global-palette6);
}
.km-hphone__num { font-size: 16px; font-weight: 600; letter-spacing: .02em; }

/* mobile drawer */
#mobile-drawer .drawer-inner { background: var(--km-ink); }
#mobile-drawer .mobile-navigation ul li > a,
#mobile-drawer .mobile-navigation ul li .drawer-nav-drop-wrap {
	font-size: 13px;
	letter-spacing: var(--km-track);
	text-transform: uppercase;
	color: #e9e1d4;
	border-color: rgba(255, 255, 255, .08);
}
#mobile-drawer .mobile-navigation ul li.current-menu-item > a { color: var(--km-gold-light); }
#mobile-drawer .mobile-html { margin-top: 28px; color: #9d958a; font-size: 13px; }
#mobile-drawer .mobile-html a.km-hphone {
	display: flex;
	width: 100%;
	margin-bottom: 14px;
	padding: 14px 18px;
	border: 1px solid var(--km-gold);
	color: #fff;
}
#mobile-drawer .km-hphone__label { color: #9d958a; }

/* ---------- buttons ---------- */
/* pill buttons; the primary one carries a gold circle with an arrow */
:root {
	--km-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--km-phone-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1L6.6 10.8z'/%3E%3C/svg%3E");
}
.entry-content .wp-block-button__link,
.km-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-height: 56px;
	padding: 8px 10px 8px 30px;
	border: 1px solid var(--km-ink);
	border-radius: 999px;
	background: var(--km-ink);
	color: #fff;
	font-size: 12px !important;
	font-weight: 600;
	letter-spacing: .14em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 10px 24px -12px rgba(22, 19, 15, .55);
	transition: background .3s, color .3s, border-color .3s, box-shadow .3s, transform .3s;
}
/* ::after is the gold circle, ::before the arrow drawn on top of it */
.entry-content .wp-block-button__link { position: relative; }
.entry-content .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--km-gold);
	transition: transform .3s;
}
.entry-content .wp-block-button__link::before {
	content: "";
	position: absolute;
	right: 21px;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	background: var(--km-ink);
	-webkit-mask: var(--km-arrow) center / contain no-repeat;
	mask: var(--km-arrow) center / contain no-repeat;
	z-index: 1;
	transition: transform .3s;
}
.entry-content .wp-block-button__link:hover,
.km-btn:hover {
	background: #2b2620;
	border-color: #2b2620;
	color: #fff;
	box-shadow: 0 16px 30px -14px rgba(22, 19, 15, .6);
	transform: translateY(-1px);
}
.entry-content .wp-block-button__link:hover::after,
.entry-content .wp-block-button__link:hover::before { transform: translateX(3px); }

/* secondary: outline pill, no arrow */
.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
	padding: 8px 30px;
	background: transparent;
	color: var(--km-ink);
	border: 1px solid rgba(22, 19, 15, .35);
	box-shadow: none;
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link::after,
.entry-content .wp-block-button.is-style-outline .wp-block-button__link::before { display: none; }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--km-ink);
	border-color: var(--km-ink);
	color: #fff;
}
.wp-block-buttons { gap: 12px; }

/* call button: gold phone circle + label and number */
.km-btn { padding: 8px 30px 8px 8px; gap: 14px; text-align: left; }
.km-btn__icon {
	position: relative;
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--km-gold);
}
.km-btn__icon::before {
	content: "";
	position: absolute;
	inset: 12px;
	background: var(--km-ink);
	-webkit-mask: var(--km-phone-ico) center / contain no-repeat;
	mask: var(--km-phone-ico) center / contain no-repeat;
}
.km-btn__text { display: flex; flex-direction: column; gap: 3px; }
.km-btn__phone {
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .03em;
	text-transform: none;
	color: var(--km-gold-light);
}

/* ---------- typography helpers ---------- */
.km-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--global-palette1);
}
.km-eyebrow::before {
	content: "";
	width: 36px;
	height: 1px;
	background: var(--km-gold);
}
.km-lead { font-size: 1.12rem; line-height: 1.75; color: var(--global-palette5); max-width: 34em; }
.km-note { font-size: 13px; letter-spacing: .06em; color: var(--global-palette6); }

/* ---------- page sections ---------- */
.km-section {
	padding-block: clamp(64px, 8vw, 120px);
	padding-inline: var(--global-content-edge-padding, 1.5rem);
}
.km-section--tint { background: var(--km-cream); }
.km-section > * { max-width: var(--global-content-width, 1240px); margin-inline: auto; }
.entry-content > .km-section { margin-block: 0; }

.km-head { margin-bottom: 48px; }
.km-head h2 { margin: 0; }
.km-head .km-lead { margin-top: 16px; }

/* hero */
.km-hero { background: var(--km-cream); padding-block: clamp(56px, 7vw, 110px); }
.km-hero .wp-block-columns { align-items: center; gap: clamp(40px, 6vw, 96px); }
.km-hero h1 {
	margin: 0 0 24px;
	font-size: clamp(38px, 4.8vw, 64px);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -.005em;
}
.km-hero .wp-block-buttons { margin-top: 36px; }
.km-hero .km-note { margin-top: 28px; }

/* framed photos: thin gold frame offset behind the picture */
.km-hero figure,
.km-about figure { position: relative; margin: 0; z-index: 0; }
.km-hero figure::after,
.km-about figure::after {
	content: "";
	position: absolute;
	inset: 22px -22px -22px 22px;
	border: 1px solid var(--km-gold);
	z-index: -1;
}
.km-hero img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; display: block; }

/* features: dark band with gold numerals */
.km-features {
	counter-reset: kmf;
	background: var(--km-ink);
	color: #b9b0a3;
	padding-block: clamp(56px, 6vw, 88px);
}
.km-features .wp-block-columns { gap: clamp(28px, 4vw, 56px); }
.km-feature { counter-increment: kmf; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.km-feature::before {
	content: counter(kmf, decimal-leading-zero);
	display: block;
	margin-bottom: 18px;
	font-family: var(--global-heading-font-family);
	font-size: 40px;
	font-weight: 500;
	line-height: 1;
	color: var(--km-gold);
}
.km-feature h3 { margin: 0 0 10px; font-size: 21px; color: #fff; }
.km-feature p { margin: 0; font-size: 15px; line-height: 1.7; }

/* about */
.km-about .wp-block-columns,
.wp-block-columns.km-about { align-items: center; gap: clamp(48px, 7vw, 112px); }
.km-about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }

/* ideas gallery (Kadence wraps group content in .wp-block-group__inner-container) */
.km-ideas > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
@media (max-width: 1024px) {
	.km-ideas > .wp-block-group__inner-container { grid-template-columns: repeat(3, 1fr); }
}
.entry-content .km-ideas figure.wp-block-image { position: relative; margin: 0; overflow: hidden; }
.km-ideas img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; display: block; transition: transform .8s ease; }
.km-ideas figure:hover img { transform: scale(1.05); }
.km-ideas figcaption {
	position: absolute;
	inset: auto 0 0 0;
	margin: 0;
	padding: 48px 22px 18px;
	background: linear-gradient(transparent, rgba(22, 19, 15, .75));
	color: #fff;
	font-family: var(--global-heading-font-family);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	text-align: left;
}

/* instruction cards */
.km-steps .wp-block-column {
	padding: 0 0 26px;
	background: #fff;
	transition: box-shadow .3s;
}
.km-steps .wp-block-column:hover { box-shadow: 0 20px 50px rgba(22, 19, 15, .08); }
.km-steps .wp-block-column > *:not(figure) { padding-inline: 26px; }
.km-steps figure { margin: 0 0 22px; border-bottom: 1px solid var(--km-line); }
.km-steps img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; padding: 16px; }
.km-steps h3 { margin-bottom: 8px; font-size: 21px; }
.km-steps a {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: var(--km-track);
	text-transform: uppercase;
	text-decoration: none;
}

/* contacts */
.km-contacts { list-style: none; margin: 0 0 32px; padding: 0; }
.km-contacts li { padding: 16px 0; border-bottom: 1px solid var(--km-line); }
.km-contacts li:first-child { padding-top: 0; }
.km-contacts li span {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	letter-spacing: var(--km-track);
	text-transform: uppercase;
	color: var(--global-palette6);
}
.km-contacts a { text-decoration: none; }
.km-map { min-height: 400px; background: var(--km-cream); }

/* instructions page */
.km-instruction { scroll-margin-top: 140px; padding-bottom: 40px; margin-bottom: 48px; border-bottom: 1px solid var(--km-line); }
.km-instruction:last-child { border-bottom: 0; }
.km-instruction img { max-width: 100%; height: auto; }

/* ---------- page title band (inner pages, catalogue) ---------- */
.entry-hero .entry-hero-container-inner { background: var(--km-cream); }
.entry-hero .entry-header { min-height: 220px; }
.entry-hero h1.entry-title,
.entry-hero .page-title { font-size: clamp(36px, 4.4vw, 58px); font-weight: 500; }
.kadence-breadcrumbs,
.woocommerce-breadcrumb {
	font-size: 11.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--global-palette6);
}
.kadence-breadcrumbs a, .woocommerce-breadcrumb a { text-decoration: none; color: var(--global-palette5); }

/* ---------- catalogue ---------- */
/* card = cream frame, white rounded photo field, title on the frame. Kadence's .content-bg
   rules (white plate, side margins) are stronger than ours, hence the !important below */
.woocommerce ul.products li.product,
.woocommerce ul.products li.product-category {
	display: flex;
	flex-direction: column;
	padding: 10px !important;
	background: var(--km-cream) !important;
	border: 0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: none;
	transition: background .3s, box-shadow .3s, transform .3s;
}
.woocommerce ul.products li.product:hover,
.woocommerce ul.products li.product-category:hover {
	background: #eee6d8 !important;
	box-shadow: 0 18px 36px -22px rgba(22, 19, 15, .3);
}
/* nothing inside the card moves on hover */
.woocommerce ul.products li.product .entry-content-wrap,
.woocommerce ul.products li.product-category .product-details { transform: none !important; }
.woocommerce ul.products li.product-category > a {
	display: flex;
	flex-direction: column;
	flex: 1;
	text-decoration: none;
}
.woocommerce ul.products li.product img,
.woocommerce ul.products li.product-category img {
	display: block;
	width: 100%;
	margin: 0 !important;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: 16px;
	background: #fff;
	border-radius: 10px;
}
.woocommerce ul.products li.product .product-details,
.woocommerce ul.products li.product-category .product-details {
	flex: 1;
	margin: 0 !important;
	padding: 16px 10px 8px !important;
	background: transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
	margin: 0;
	padding: 0;
	font-family: var(--global-body-font-family);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
	color: var(--km-ink);
}
.woocommerce ul.products li.product-category .count {
	display: block;
	margin-top: 6px;
	background: none;
	padding: 0;
	font-family: var(--global-body-font-family);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: var(--km-track);
	text-transform: uppercase;
	color: var(--global-palette6);
}
.woocommerce ul.products li.product .button {
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	color: var(--global-palette1);
	font-size: 11px !important;
	letter-spacing: .14em;
}

/* single product: call box instead of the cart */
.single-product div.product .product_title { font-weight: 500; }
.single-product div.product .product_meta { display: none; }
.km-callbox {
	margin: 32px 0;
	padding: 30px 32px;
	background: var(--km-cream);
	border-top: 1px solid var(--km-gold);
}
.km-callbox__title {
	margin: 0 0 8px;
	font-family: var(--global-heading-font-family);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--km-ink);
}
.km-callbox__text { margin: 0 0 22px; color: var(--global-palette5); }
.km-callbox__meta { margin: 22px 0 0; font-size: 13px; letter-spacing: .03em; color: var(--global-palette6); }

/* ---------- footer ---------- */
.site-footer .site-middle-footer-wrap { color: #a9a196; font-size: 15px; }
.site-footer .site-bottom-footer-wrap {
	color: #7d766c;
	font-size: 12px;
	letter-spacing: .08em;
	border-top: 1px solid rgba(184, 149, 90, .25);
}
.site-footer a { color: #e9e1d4; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--km-gold-light); }
.site-footer .km-footer-logo { display: block; width: 64px; height: auto; margin-bottom: 22px; filter: invert(1); }
.site-footer .km-footer-title {
	margin: 0 0 20px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--km-gold);
}
.site-footer .km-footer-cats { list-style: none; margin: 0; padding: 0; }
.site-footer .km-footer-cats li { padding: 5px 0; }
.site-footer .km-contacts li { padding: 10px 0; border-color: rgba(255, 255, 255, .08); }
.site-footer .km-contacts li span { color: #7d766c; }

/* ---------- floating call button (phones, tablets) ---------- */
.km-fab {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 999;
	display: none;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: 1px solid var(--km-gold);
	border-radius: 50%;
	background: var(--km-ink);
	color: var(--km-gold-light);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.km-fab:hover { color: var(--km-ink); background: var(--km-gold); }

@media (max-width: 1024px) {
	.km-fab { display: flex; }
	.km-topbar { display: none; }
}
@media (max-width: 767px) {
	.site-branding .site-title { font-size: 18px; }
	.km-hero figure::after, .km-about figure::after { inset: 14px -10px -14px 10px; }
	.km-hero figure, .km-about figure { margin-right: 10px; }
	.km-ideas > .wp-block-group__inner-container { grid-template-columns: 1fr 1fr; gap: 10px; }
	.km-ideas figcaption { font-size: 17px; padding: 32px 12px 10px; }
	.km-about img { aspect-ratio: 4 / 3; }
	.km-callbox { padding: 24px 20px; }
	.wp-block-buttons .wp-block-button { width: 100%; }
	.entry-content .wp-block-buttons .wp-block-button__link { width: 100%; justify-content: space-between; }
	.entry-content .wp-block-buttons .is-style-outline .wp-block-button__link { justify-content: center; }
	.km-btn { width: 100%; }
	/* two cards per row on phones: categories, catalogue, related products */
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 10px !important;
	}
	.woocommerce ul.products li.product,
	.woocommerce ul.products li.product-category {
		width: auto !important;
		margin: 0 !important;
		padding: 8px;
	}
	.woocommerce ul.products li.product .product-details,
	.woocommerce ul.products li.product-category .product-details { padding: 12px 2px 4px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title,
	.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
		font-size: 14.5px !important;
		hyphens: auto;
		overflow-wrap: break-word;
	}
	.woocommerce ul.products li.product a img,
	.woocommerce ul.products li.product-category a img { padding: 8px; }
}
