/*
 * LC Interiors - fixes layered over assets/css/style.css (Tailwind v4 build, all rules inside @layer).
 * Rules here are unlayered, so they win over the theme without !important.
 * 1. Header  2. Blog index and archives  3. Blog article  4. Misc
 */

:root {
	--lc-ink: #111;
	--lc-muted: #6b6b6b;
	--lc-line: #e6e2dc;
	--lc-gold: #b8955a;      /* lines and markers */
	--lc-gold-text: #87662f; /* text: 5.2:1 on white (WCAG AA) */
	--lc-paper: #faf8f5;
	--lc-measure: 44rem;
}

/* ---------------------------------------------------------------- 1. Header */

@media (min-width: 1024px) {
	.header .header-in {
		align-items: center;
		gap: clamp(16px, 2vw, 40px);
	}
	.header .logo {
		flex: 0 0 auto;
	}
	.header .logo img {
		width: clamp(170px, 15vw, 284px);
		height: auto;
	}
	.header .main-menu {
		flex: 1 1 auto;
		min-width: 0;
		display: flex;
		justify-content: center;
	}
	.header .main-menu nav > ul {
		flex-wrap: nowrap;
		align-items: center;
		justify-content: center;
		column-gap: clamp(14px, 1.9vw, 34px);
	}
	.header .main-menu nav > ul > li {
		flex: 0 0 auto;
		white-space: nowrap;
	}
	.header .main-menu nav > ul > li > a {
		white-space: nowrap;
	}
	.header .btn-langs,
	.header .call-btn {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	/* Language switcher: current + alternatives inline ("EN / RU"), not a stacked dropdown. */
	.header .main-menu .wpml-ls-menu-item.menu-item-has-children {
		display: flex;
		align-items: center;
		gap: 0;
	}
	.header .main-menu .wpml-ls-menu-item .sub-menu {
		position: static;
		display: flex;
		align-items: center;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: none;
		padding: 0;
		margin: 0;
		min-width: 0;
		width: auto;
	}
	.header .main-menu .wpml-ls-menu-item .sub-menu li {
		display: flex;
		align-items: center;
		padding: 0;
		margin: 0;
	}
	.header .main-menu .wpml-ls-menu-item .sub-menu li::before {
		content: "/";
		margin: 0 8px;
		color: var(--lc-line);
	}
	.header .main-menu .wpml-ls-menu-item a {
		padding: 0;
		gap: 5px;
	}
	.header .main-menu .wpml-ls-menu-item .sub-menu a {
		color: var(--lc-muted);
	}
	.header .main-menu .wpml-ls-menu-item .sub-menu a:hover {
		color: var(--lc-ink);
	}
	.header .main-menu .wpml-ls-flag {
		width: 16px;
		height: auto;
	}
}

/* Narrow desktops: phone number collapses to its icon so the menu keeps one line. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.header .call-btn {
		font-size: 0;
		gap: 0;
	}
	.header .call-btn .call-icons {
		font-size: 18px;
	}
	.header .main-menu nav > ul > li > a {
		font-size: 11px;
		letter-spacing: 0.04em;
	}
}

/* ------------------------------------------------ 2. Blog index and archives */

.lc-journal-head {
	padding: clamp(24px, 4vw, 56px) 0 clamp(24px, 3vw, 40px);
	border-bottom: 1px solid var(--lc-line);
}
.lc-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lc-muted);
}
.lc-crumbs li + li::before {
	content: "/";
	margin-right: 6px;
	color: var(--lc-line);
}
.lc-crumbs a {
	color: var(--lc-muted);
	text-decoration: none;
}
.lc-crumbs a:hover {
	color: var(--lc-ink);
}
.lc-crumbs [aria-current] {
	color: var(--lc-ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 36ch;
	display: inline-block;
	vertical-align: bottom;
}
.lc-eyebrow {
	margin: 0 0 12px;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--lc-gold-text);
}
.lc-eyebrow a {
	color: inherit;
	text-decoration: none;
}
.lc-journal-title {
	text-align: left;
	font-weight: 300;
	font-size: clamp(34px, 5vw, 64px);
	line-height: 1.08;
	letter-spacing: -0.01em;
	max-width: 18ch;
	margin: 0 0 16px;
	color: var(--lc-ink);
}
.lc-lede {
	max-width: 56ch;
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.6;
	color: var(--lc-muted);
	margin: 0 0 28px;
}
.lc-chips ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.lc-chips a {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--lc-line);
	border-radius: 999px;
	font-size: 13px;
	color: var(--lc-ink);
	text-decoration: none;
	transition: border-color 0.2s, background 0.2s;
}
.lc-chips a:hover {
	border-color: var(--lc-ink);
}
.lc-chips a[aria-current] {
	background: var(--lc-ink);
	border-color: var(--lc-ink);
	color: #fff;
}

.lc-journal-list {
	padding: clamp(32px, 5vw, 72px) 0 clamp(48px, 6vw, 96px);
}
.lc-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0 clamp(24px, 3vw, 48px);
}
@media (min-width: 768px) {
	.lc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 1100px) {
	.lc-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.lc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 28px 0 32px;
	border-top: 1px solid var(--lc-line);
}
.lc-card::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--lc-gold);
	transition: width 0.4s ease;
}
.lc-card:hover::before,
.lc-card:focus-within::before {
	width: 100%;
}
.lc-card-media {
	display: block;
	margin-bottom: 20px;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--lc-paper);
}
.lc-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.lc-card:hover .lc-card-media img {
	transform: scale(1.03);
}
.lc-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin: 0 0 14px;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lc-muted);
}
.lc-card-cat {
	color: var(--lc-gold-text);
}
.lc-card-title {
	font-weight: 400;
	font-size: clamp(20px, 1.6vw, 24px);
	line-height: 1.3;
	margin: 0 0 12px;
	color: var(--lc-ink);
}
.lc-card-title a {
	color: inherit;
	text-decoration: none;
}
/* Whole card is clickable through the title link. */
.lc-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.lc-card-title a:focus-visible {
	outline: none;
}
.lc-card:focus-within {
	outline: 2px solid var(--lc-gold);
	outline-offset: 4px;
}
.lc-card-excerpt {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--lc-muted);
}
.lc-card-more {
	margin-top: auto;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lc-ink);
}
.lc-arrow {
	display: inline-block;
	transition: transform 0.3s ease;
}
.lc-card:hover .lc-arrow {
	transform: translateX(4px);
}

/* Lead card: full width, title left, excerpt right. */
@media (min-width: 768px) {
	.lc-card--featured {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		column-gap: clamp(32px, 5vw, 80px);
		padding: 36px 0 48px;
	}
	.lc-card--featured .lc-card-media {
		grid-column: 1 / -1;
	}
	.lc-card--featured .lc-card-body {
		display: contents;
	}
	.lc-card--featured .lc-card-meta {
		grid-column: 1 / -1;
	}
	.lc-card--featured .lc-card-title {
		grid-column: 1;
		font-weight: 300;
		font-size: clamp(28px, 3vw, 42px);
		line-height: 1.15;
	}
	.lc-card--featured .lc-card-excerpt {
		grid-column: 2;
		font-size: 17px;
		align-self: start;
		margin-top: 6px;
	}
	.lc-card--featured .lc-card-more {
		grid-column: 2;
	}
}

.lc-pagination,
.lc-journal-list .navigation.pagination {
	margin-top: 40px;
}
.lc-journal-list .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}
.lc-journal-list .nav-links .page-numbers {
	min-width: 40px;
	padding: 8px 12px;
	border: 1px solid var(--lc-line);
	text-align: center;
	color: var(--lc-ink);
	text-decoration: none;
	font-size: 14px;
}
.lc-journal-list .nav-links .current {
	background: var(--lc-ink);
	border-color: var(--lc-ink);
	color: #fff;
}
.lc-empty {
	color: var(--lc-muted);
}

/* ----------------------------------------------------------- 3. Blog article */

.lc-article-head {
	padding: clamp(24px, 4vw, 56px) 0 clamp(20px, 3vw, 36px);
}
/* The theme forces .container to max-width:100%, so the reading measure is set on the children. */
.lc-article-head .container > *,
.lc-article .lc-article-body,
.lc-article-foot {
	max-width: var(--lc-measure);
	margin-left: auto;
	margin-right: auto;
}
.lc-article-title {
	font-weight: 300;
	font-size: clamp(30px, 3.8vw, 50px);
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 0 0 20px;
	color: var(--lc-ink);
	text-align: left;
}
.lc-article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--lc-line);
	font-size: 13px;
	letter-spacing: 0.04em;
	color: var(--lc-muted);
}
.lc-article-meta a {
	color: var(--lc-ink);
	text-decoration: underline;
	text-decoration-color: var(--lc-line);
	text-underline-offset: 3px;
}
.lc-article-hero {
	margin: 0 auto 40px;
}
.lc-article-hero img {
	width: 100%;
	height: auto;
}

.lc-article-body {
	padding-bottom: 16px;
	font-size: 18px;
	line-height: 1.75;
	color: #2a2a2a;
	text-align: left;
}
.lc-article-body > * + * {
	margin-top: 1.1em;
}
.lc-article-body p {
	margin: 0;
}
.lc-article-body p + p {
	margin-top: 1.1em;
}
.lc-article-body h2 {
	font-weight: 400;
	font-size: clamp(24px, 2.4vw, 30px);
	line-height: 1.25;
	margin: 2.2em 0 0.6em;
	color: var(--lc-ink);
}
.lc-article-body h3 {
	font-weight: 500;
	font-size: clamp(19px, 1.8vw, 22px);
	line-height: 1.35;
	margin: 1.8em 0 0.5em;
	color: var(--lc-ink);
}
.lc-article-body h2 + p,
.lc-article-body h3 + p {
	margin-top: 0;
}
.lc-article-body strong {
	font-weight: 500;
	color: var(--lc-ink);
}
.lc-article-body a {
	color: var(--lc-ink);
	text-decoration: underline;
	text-decoration-color: var(--lc-gold);
	text-underline-offset: 3px;
}
.lc-article-body ul,
.lc-article-body ol {
	padding-left: 1.4em;
	margin: 1.1em 0;
}
.lc-article-body ul {
	list-style: disc;
}
.lc-article-body ol {
	list-style: decimal;
}
.lc-article-body li {
	margin: 0.45em 0;
	padding-left: 0.2em;
}
.lc-article-body li::marker {
	color: var(--lc-gold);
}
.lc-article-body blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 20px;
	border-left: 2px solid var(--lc-gold);
	font-size: 1.1em;
	color: var(--lc-ink);
}
.lc-article-body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	display: block;
	overflow-x: auto;
}
.lc-article-body th,
.lc-article-body td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--lc-line);
	text-align: left;
	vertical-align: top;
}
.lc-article-body img {
	max-width: 100%;
	height: auto;
}

.lc-article-foot {
	padding: 24px 0 clamp(40px, 6vw, 80px);
}
.lc-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 24px 0;
	border-top: 1px solid var(--lc-line);
}
.lc-tags-label {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lc-muted);
}
.lc-tags ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.lc-tags a {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--lc-line);
	border-radius: 999px;
	font-size: 13px;
	color: var(--lc-ink);
	text-decoration: none;
}
.lc-tags a:hover {
	border-color: var(--lc-ink);
}
.lc-cta {
	margin-top: 24px;
	padding: clamp(24px, 4vw, 40px);
	background: var(--lc-paper);
	border: 1px solid var(--lc-line);
}
.lc-cta-title {
	margin: 0 0 8px;
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 300;
	color: var(--lc-ink);
}
.lc-cta p {
	margin: 0 0 20px;
	color: var(--lc-muted);
	line-height: 1.6;
}
.lc-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.lc-btn {
	display: inline-block;
	padding: 13px 22px;
	background: var(--lc-ink);
	border: 1px solid var(--lc-ink);
	color: #fff;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}
.lc-btn:hover {
	background: #333;
	color: #fff;
}
.lc-btn--ghost {
	background: transparent;
	color: var(--lc-ink);
}
.lc-btn--ghost:hover {
	background: var(--lc-ink);
	color: #fff;
}

.lc-related {
	padding: clamp(40px, 6vw, 80px) 0;
	background: var(--lc-paper);
}
.lc-related-title {
	font-weight: 300;
	font-size: clamp(26px, 2.6vw, 36px);
	margin: 0 0 12px;
	color: var(--lc-ink);
}
.lc-related .lc-card {
	border-top-color: #ddd6cc;
}

/* ------------------------------------------------------------------ 4. Misc */

/* The theme wrapped sections in .wow (hidden until WOW.js runs 1.5 s after DOM ready);
   never let that delay the blog's first paint. */
.lc-journal .wow,
.lc-article-page .wow {
	visibility: visible !important;
	animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.lc-card::before,
	.lc-card-media img,
	.lc-arrow {
		transition: none;
	}
}

/* The contact form's submit arrow pointed at the old host (https://40.172.183.203/~lcinteri/...),
   which fails to load. Fixed in style.css too; repeated here because this file is cache-busted. */
.form-section .form-wrapper .gform-footer.gform_footer input[type="submit"] {
	background-image: url("../images/arrow-left.svg") !important;
}

/* Typold Thin was declared with a .woff2 that was never uploaded (404 on every page using weight 100).
   Re-declared with the files that exist; a later @font-face for the same family/weight wins. */
@font-face {
	font-family: Typold;
	src: url("../fonts/Typold-Thin.woff") format("woff"), url("../fonts/Typold-Thin.ttf") format("truetype");
	font-weight: 100;
	font-style: normal;
	font-display: swap;
}
