/* WordPress-specific overrides for Lowhill Cassia */

.admin-bar .topbar {
	top: 32px;
}

body.lh-not-front .topbar {
	background: color-mix(in srgb, var(--paper) 90%, transparent);
	backdrop-filter: blur(12px) saturate(1.05);
	box-shadow: 0 1px 0 var(--line-soft);
	padding-top: 15px;
	padding-bottom: 15px;
}

body.lh-not-front .topbar .brand b,
body.lh-not-front .topbar .brand span,
body.lh-not-front .topbar .nav-inline a,
body.lh-not-front .topbar .left a {
	color: var(--ink-2);
}

body.lh-not-front .topbar .brand b {
	color: var(--ink);
}

body.lh-not-front .topbar .menu-btn span {
	background: var(--ink);
}

@media (max-width: 782px) {
	.admin-bar .topbar {
		top: 46px;
	}
}

/* Inner pages (blog, single, page) */
.lh-inner {
	padding-top: clamp(120px, 16vw, 180px);
	padding-bottom: clamp(76px, 11vw, 160px);
	background: var(--paper);
}

.lh-inner .wrap {
	max-width: 820px;
}

.lh-inner h1.entry-title {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(32px, 5vw, 56px);
	line-height: 1.08;
	margin: 0 0 24px;
	word-break: keep-all;
}

.lh-inner .entry-meta {
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 36px;
}

.lh-inner .entry-content {
	color: var(--ink-2);
	font-size: 16px;
	line-height: 1.85;
}

.lh-inner .entry-content a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lh-inner .entry-content img {
	margin: 2em 0;
}

.lh-archive-grid {
	display: grid;
	gap: 48px;
}

.lh-back {
	margin-top: 48px;
}

.lh-404 {
	text-align: center;
	min-height: 50vh;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 24px;
}

.lh-404 h1 {
	font-family: var(--display);
	font-size: clamp(48px, 8vw, 96px);
	margin: 0;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

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

/* JS disabled or slow: never leave content hidden (DESIGN.md §5.5) */
html:not(.js-ready) [data-reveal] {
	opacity: 1;
	transform: none;
}

/* Contact */
.lh-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(40px, 6vw, 80px);
	margin-top: 40px;
}
.lh-map {
	position: relative;
	overflow: hidden;
	background: var(--paper-3);
	border: 1px solid var(--line-soft);
	margin-bottom: clamp(32px, 5vw, 48px);
}
/* Embed iframe cannot use Google style JSON — warm editorial filter to match site photos */
.lh-map iframe {
	display: block;
	width: 100%;
	min-height: 420px;
	border: 0;
	filter: sepia(0.14) saturate(0.82) contrast(0.94) brightness(1.03);
}
.lh-contact-form label { display: block; margin-bottom: 18px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.lh-contact-form input, .lh-contact-form textarea {
	width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
	padding: 12px 2px; font-family: var(--sans); font-size: 15px; color: var(--ink);
}
.lh-form-msg { margin-top: 16px; font-size: 13px; }
.lh-tags { color: var(--accent); font-size: 13px; }

/* About (page content) */
.lh-about .wrap { max-width: min(920px, var(--maxw)); }
.lh-about .head { margin-bottom: clamp(32px, 5vw, 48px); }
.lh-about .head .entry-title { margin: 0; }
.lh-about-body { max-width: 720px; }
.lh-about-body h2,
.lh-about-body h3,
.lh-about-body h4 {
	font-family: var(--display);
	font-weight: 400;
	color: var(--ink);
	line-height: 1.25;
	margin: 2.2em 0 .6em;
}
.lh-about-body h2 { font-size: clamp(26px, 4vw, 36px); text-align: left !important; }
.lh-about-body h3 { font-size: clamp(20px, 3vw, 26px); }
.lh-about-body h4 { font-size: 17px; color: var(--ink-2); }
.lh-about-body p { margin: 0 0 1em; }
.lh-about-body hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2.5em 0;
}
.lh-about-body strong { color: var(--accent); font-weight: 500; }
.lh-about-body--legacy .wpb_row,
.lh-about-body--legacy .vc_row {
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.lh-about-body--legacy .vc_row[data-vc-full-width="true"] {
	left: auto !important;
	width: 100% !important;
	margin-left: 0 !important;
}
.lh-about-body--legacy .wpb_column,
.lh-about-body--legacy .vc_column_container {
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.lh-about-body--legacy .wpb_wrapper > .vc_row_inner,
.lh-about-body--legacy .vc_row_inner,
.lh-about-body--legacy .wpb_column,
.lh-about-body--legacy .vc_column-inner,
.lh-about-body--legacy [class*="vc_custom_"] {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
}
.lh-about-body--legacy .wpb_text_column { margin-bottom: 0; }
.lh-about-body--legacy .align-center { text-align: left !important; }
.lh-about-body--legacy .vc_empty_space { display: none; }
.lh-about-clients { padding-top: 0; padding-bottom: clamp(76px, 11vw, 120px); }
.lh-about-clients .logos img {
	width: auto;
	height: clamp(34px, 4vw, 50px);
	max-width: 100%;
	object-fit: contain;
}
/* Portfolio single */
.lh-portfolio-single .lh-portfolio-hero {
	margin-top: clamp(28px, 4vw, 40px);
	overflow: hidden;
	background: var(--paper-3);
}
.lh-portfolio-single .lh-portfolio-hero__img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

/* Masonry gallery — preserves each image's natural aspect ratio */
.lh-gallery-masonry {
	column-count: 3;
	column-gap: 10px;
	margin: clamp(36px, 5vw, 48px) 0 0;
	width: 100%;
}
.lh-gallery-masonry .lh-gallery-item {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	margin-bottom: 10px;
	display: block;
	overflow: hidden;
	background: var(--paper-3);
	line-height: 0;
	transition: opacity .35s ease;
}
.lh-gallery-masonry .lh-gallery-item:hover {
	opacity: .92;
}
.lh-gallery-masonry .lh-gallery-masonry__img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.entry-content .lh-legacy-gallery { margin: 40px 0 0; }
.entry-content .lh-legacy-gallery .lh-gallery-item { transition: opacity .35s; }
.entry-content .lh-legacy-gallery .lh-gallery-item:hover { opacity: .92; }

.lh-portfolio-nav { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.lh-video-embed { margin: 32px 0; aspect-ratio: 16/9; }
.lh-video-embed iframe { width: 100%; height: 100%; }

@media (max-width: 860px) {
	.lh-contact-grid { grid-template-columns: 1fr; }
	.lh-gallery-masonry { column-count: 2; }
}

@media (max-width: 520px) {
	.lh-gallery-masonry { column-count: 1; }
}
