/* ============================================================
   Clock Work Event — WordPress integration & inner pages
   ============================================================ */

/* ---------- WordPress essentials ---------- */
.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 !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--ivory);
	clip: auto !important;
	clip-path: none;
	color: var(--ink);
	display: block;
	font-size: .9rem;
	font-weight: 700;
	height: auto;
	left: 1rem;
	line-height: normal;
	padding: .9rem 1.2rem;
	text-decoration: none;
	top: calc(var(--nav-h) + 1rem);
	width: auto;
	z-index: 100000;
}

.skip-link {
	position: fixed;
	left: 1rem;
	top: -100px;
	z-index: 100000;
	background: var(--ivory);
	color: var(--ink);
	padding: .8rem 1.1rem;
	border-radius: 0 0 10px 10px;
	font-weight: 700;
}

.skip-link:focus {
	top: 0;
}

/* Admin bar offsets for the fixed navigation */
body.admin-bar .nav {
	top: 32px;
}

.brand > span,
.brand small {
	white-space: nowrap;
}

@media screen and (max-width: 1100px) and (min-width: 901px) {
	.brand {
		font-size: 1rem;
	}

	.brand-mark {
		width: 36px;
		height: 36px;
	}

	.nav-links a {
		padding: .5rem .62rem;
		font-size: .85rem;
	}

	.nav-cta .btn {
		padding: .5rem .9rem;
		font-size: .78rem;
	}
}

@media screen and (max-width: 900px) {
	.nav-links,
	.nav-cta .btn {
		display: none;
	}

	.menu-btn {
		display: flex;
	}
}

@media screen and (max-width: 782px) {
	body.admin-bar .nav {
		top: 46px;
	}
}

/* ---------- small component additions ---------- */
.btn[disabled],
.btn.is-sent {
	opacity: .72;
	cursor: not-allowed;
	transform: none !important;
}

.btn.is-sent {
	background: var(--success);
	color: var(--ivory);
}

.hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.brief-error {
	display: none;
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 12px;
	background: rgba(192, 57, 43, .08);
	border: 1px solid rgba(192, 57, 43, .4);
	color: #8e2b20;
	font-size: .9rem;
	font-weight: 600;
}

.brief-error.show {
	display: block;
}

.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
	color: var(--teal-2);
}

.nav:not(.scrolled) .nav-links .current-menu-item > a,
.nav:not(.scrolled) .nav-links .current_page_item > a {
	color: var(--amber);
}

.footer-contact {
	margin-top: 1.2rem;
}

.footer-contact li {
	margin: 0;
}

.footer-contact a {
	display: inline-flex;
	align-items: flex-start;
	gap: .55rem;
	line-height: 1.5;
}

.footer-contact svg {
	width: 17px;
	height: 17px;
	flex: none;
	margin-top: .18rem;
	color: var(--marigold);
}

.contact-card small {
	display: block;
	line-height: 1.45;
	word-break: break-word;
}

.city-chips span:empty {
	display: none;
}

.cwe-empty {
	grid-column: 1 / -1;
	color: var(--muted);
	padding: 1.5rem;
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, .5);
}

.masonry .cwe-empty {
	column-span: all;
}

/* WordPress thumbnails carry width/height attributes; keep masonry images proportional. */
.masonry .shot img {
	height: auto;
}

/* ---------- inner pages ---------- */
.inner-hero {
	position: relative;
	overflow: hidden;
	padding: calc(var(--nav-h) + clamp(64px, 9vw, 110px)) 0 clamp(56px, 8vw, 92px);
	background:
		radial-gradient(1000px 500px at 85% 0, rgba(242, 169, 59, .18), transparent 60%),
		radial-gradient(800px 400px at 10% 100%, rgba(127, 209, 193, .14), transparent 60%),
		linear-gradient(160deg, var(--ink) 0%, var(--teal) 60%, var(--ink-2) 100%);
	color: var(--ivory);
}

.inner-hero .eyebrow {
	color: var(--sky);
	margin-bottom: 1.1rem;
}

.inner-hero .eyebrow::before {
	background: var(--marigold);
}

.inner-hero h1 {
	font-size: clamp(2.4rem, 5.6vw, 4.8rem);
	max-width: 22ch;
	letter-spacing: -.03em;
}

.inner-hero p {
	max-width: 62ch;
	margin-top: 1.2rem;
	color: rgba(247, 241, 230, .76);
	font-size: 1.05rem;
}

.inner-hero .entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .8rem 1.4rem;
	margin-top: 1.2rem;
	color: rgba(247, 241, 230, .62);
	font-size: .85rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-weight: 600;
}

.inner-hero .entry-meta a {
	color: var(--amber);
}

.inner-hero .btn {
	margin-top: 1.6rem;
}

.inner-section {
	background: var(--paper);
	padding: clamp(56px, 8vw, 100px) 0;
}

.inner-section.gallery-bg {
	background: linear-gradient(180deg, var(--ivory), var(--sand));
}

.inner-narrow {
	width: min(880px, 92vw);
	margin-inline: auto;
}

.entry-content {
	color: var(--ink);
	font-size: 1.04rem;
	line-height: 1.75;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content figure,
.entry-content table {
	margin: 0 0 1.35em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin: 1.8em 0 .6em;
	line-height: 1.15;
}

.entry-content h2 {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.entry-content h3 {
	font-size: 1.4rem;
}

.entry-content a {
	color: var(--teal-2);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content a:hover {
	color: var(--vermilion);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3rem;
}

.entry-content li {
	margin-bottom: .4rem;
}

.entry-content img,
.entry-content .wp-block-image img {
	border-radius: 14px;
	height: auto;
}

.entry-content blockquote {
	border-left: 4px solid var(--marigold);
	padding: .4rem 0 .4rem 1.2rem;
	font-family: var(--font-serif);
	font-size: 1.35rem;
	font-style: italic;
}

.entry-content .alignwide {
	width: min(1100px, 100%);
	margin-left: auto;
	margin-right: auto;
}

.entry-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	border-radius: 0;
}

.entry-content .wp-block-button__link {
	background: linear-gradient(120deg, var(--marigold), var(--vermilion));
	color: var(--ink);
	border-radius: 99px;
	padding: .9rem 1.5rem;
	font-weight: 700;
	text-decoration: none;
}

/* service detail */
.service-detail-grid {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.service-detail-media {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	background: var(--sand);
}

.service-detail-media img {
	width: 100%;
	height: auto;
}

.service-sidebar {
	position: sticky;
	top: calc(var(--nav-h) + 28px);
	background: var(--ink);
	color: var(--ivory);
	border-radius: var(--radius);
	padding: 1.7rem;
	box-shadow: var(--shadow);
}

.service-sidebar h2 {
	font-size: 1.35rem;
	margin-bottom: .6rem;
}

.service-sidebar p {
	color: rgba(247, 241, 230, .7);
	font-size: .94rem;
	margin-bottom: 1.2rem;
}

.service-sidebar .service-tags span {
	background: rgba(247, 241, 230, .1);
	color: var(--sky);
}

.service-sidebar .btn {
	width: 100%;
	margin-top: .4rem;
}

/* archive + blog cards */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.4rem;
}

.post-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.post-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
}

.post-card .thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--sand);
}

.post-card .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s var(--ease);
}

.post-card:hover .thumb img {
	transform: scale(1.05);
}

.post-card .card-body {
	padding: 1.4rem;
	display: flex;
	flex-direction: column;
	gap: .6rem;
	flex: 1;
}

.post-card h2,
.post-card h3 {
	font-size: 1.3rem;
	line-height: 1.2;
}

.post-card h2 a,
.post-card h3 a {
	color: inherit;
}

.post-card p {
	color: var(--muted);
	font-size: .94rem;
	flex: 1;
}

.post-card .card-meta {
	font-size: .75rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--vermilion);
	font-weight: 700;
}

.post-card .card-link {
	font-weight: 700;
	font-size: .88rem;
	color: var(--teal-2);
	display: inline-flex;
	align-items: center;
	gap: .4rem;
}

.post-card .card-link svg {
	width: 16px;
	height: 16px;
}

.pagination {
	margin-top: 2.6rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	justify-content: center;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 .8rem;
	border-radius: 99px;
	border: 1.5px solid var(--line);
	font-weight: 700;
	font-size: .9rem;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--ink);
	color: var(--ivory);
	border-color: var(--ink);
}

/* 404 + search */
.cwe-big-404 {
	font-family: var(--font-display);
	font-size: clamp(5rem, 18vw, 12rem);
	font-weight: 800;
	line-height: .9;
	color: transparent;
	-webkit-text-stroke: 2px var(--marigold);
	margin-bottom: .5rem;
}

.search-form {
	display: flex;
	gap: .6rem;
	max-width: 520px;
	margin-top: 1.6rem;
}

.search-form label {
	flex: 1;
}

.search-form .search-field {
	width: 100%;
	padding: .85rem 1rem;
	border-radius: 12px;
	border: 1.5px solid var(--line);
	background: #fff;
	font: inherit;
}

.search-form .search-submit {
	border: none;
	border-radius: 99px;
	padding: .85rem 1.4rem;
	background: linear-gradient(120deg, var(--marigold), var(--vermilion));
	color: var(--ink);
	font-weight: 700;
	cursor: pointer;
}

/* comments */
.comments-area {
	margin-top: 3rem;
	border-top: 1px solid var(--line);
	padding-top: 2rem;
}

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
}

.comment-list .comment-body {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 1.2rem;
	margin-bottom: 1rem;
}

.comment-form .comment-form-comment textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	padding: .8rem 1rem;
	border-radius: 12px;
	border: 1.5px solid var(--line);
	background: #fff;
	font: inherit;
}

.comment-form .submit {
	border: none;
	border-radius: 99px;
	padding: .9rem 1.5rem;
	background: linear-gradient(120deg, var(--marigold), var(--vermilion));
	color: var(--ink);
	font-weight: 700;
	cursor: pointer;
}

/* WordPress editor images / captions */
.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: .82rem;
	color: var(--muted);
	text-align: center;
	margin-top: .5rem;
}

.sticky .post-card {
	outline: 2px solid var(--marigold);
}

/* ---------- responsive inner ---------- */
@media (max-width: 1024px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.service-detail-grid {
		grid-template-columns: 1fr;
	}

	.service-sidebar {
		position: static;
	}
}

@media (max-width: 768px) {
	.inner-hero {
		padding-top: calc(var(--nav-h) + 54px);
	}

	.post-grid {
		grid-template-columns: 1fr;
	}

	/* The mobile menu's link styling also matches the CTA; restore button treatment. */
	.mobile-menu .btn {
		width: auto;
		padding: .95rem 1.6rem;
		border-bottom: 0;
		border-radius: 99px;
		font-family: var(--font-body);
		font-size: .95rem;
		font-weight: 700;
		letter-spacing: .01em;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.search-form {
		flex-direction: column;
	}
}
