/*
 * Capital Landmark: styles theme.json cannot express (block style variations, sticky
 * header, hover states). Loaded on the front end and inside the editor.
 *
 * Shape rule: buttons/inputs 8px, cards and media 16px.
 * Contrast rule: white text only on copper-600 or darker.
 */

:root {
	--clc-radius-sm: var(--wp--custom--radius--sm, 8px);
	--clc-radius-lg: var(--wp--custom--radius--lg, 16px);
	--clc-header-height: 4.5rem;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--clc-header-height) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

html:has(dialog[open]) { overflow: hidden; }

::selection { background: var(--wp--preset--color--copper-300); color: var(--wp--preset--color--ink-950); }

h1, h2, h3, h4 { overflow-wrap: anywhere; }

/* ---------- Header ---------- */

/* Header, main and footer sit flush; sections handle their own spacing. */
.wp-site-blocks > * { margin-block-start: 0; }

/* The template-part wrapper is what must stick: a sticky child of a same-height parent never pins. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 40;
}
body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }

.clc-site-header {
	backdrop-filter: blur(12px);
	background-color: color-mix(in srgb, var(--wp--preset--color--ink-50) 94%, transparent) !important;
}

.clc-brand { gap: 0.85rem !important; }
.clc-brand .wp-block-site-logo img { height: 36px; width: auto; }
.clc-brand__name {
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.15;
}
.clc-brand__name a { color: inherit; text-decoration: none; }
.clc-brand__tagline {
	margin: 0.2rem 0 0 !important;
	font-size: 10px !important;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	line-height: 1;
}

.clc-site-header .wp-block-navigation-item__content { position: relative; padding-block: 0.5rem; }
.clc-site-header .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 2px;
	background: var(--wp--preset--color--copper-500);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}
.clc-site-header .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--copper-600); }
.clc-site-header .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }

/* Mobile overlay menu */
.clc-site-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--ink-50) !important;
	padding: 1.5rem;
}
.clc-site-header .is-menu-open .wp-block-navigation-item__content { font-size: 1.125rem; }

@media (max-width: 1023px) {
	.clc-header-cta { display: none !important; }
}

/* ---------- Buttons ---------- */

.wp-element-button,
.wp-block-button__link { transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease; }
.wp-block-button__link:active { transform: translateY(1px); }

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink-900);
	border: 1px solid var(--wp--preset--color--ink-200);
	padding: calc(0.8rem - 1px) calc(1.4rem - 1px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--ink-500);
	background: var(--wp--preset--color--white);
}

/* Outline buttons placed on dark sections */
.has-ink-950-background-color .wp-block-button.is-style-outline > .wp-block-button__link,
.has-ink-900-background-color .wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--white);
	border-color: rgba(255, 255, 255, 0.3);
}
.has-ink-950-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.has-ink-900-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- Group block styles ---------- */

.is-style-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--ink-200);
	border-radius: var(--clc-radius-lg);
	box-shadow: var(--wp--custom--shadow--card);
	overflow: hidden;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.is-style-card:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--copper-500) 50%, transparent);
	box-shadow: var(--wp--custom--shadow--raised);
}

.is-style-card-dark {
	background: var(--wp--preset--color--ink-900);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--clc-radius-lg);
	color: var(--wp--preset--color--ink-200);
	transition: border-color 0.3s ease;
}
.is-style-card-dark:hover { border-color: color-mix(in srgb, var(--wp--preset--color--copper-500) 40%, transparent); }
.is-style-card-dark :where(h1, h2, h3, h4) { color: var(--wp--preset--color--white); }

.is-style-callout {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--copper-500) 25%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--copper-500) 10%, transparent);
	border-radius: var(--clc-radius-sm);
}

/* Copper accent bar used at the top of cards */
.wp-block-separator.clc-accent-bar,
.clc-accent-bar {
	border: 0;
	opacity: 1;
	margin-inline: 0;
	width: 2.25rem;
	height: 4px;
	border-radius: 999px;
	background: var(--wp--preset--color--copper-600);
	margin-block-end: 0.25rem;
}

/* ---------- Text styles ---------- */

.is-style-kicker {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: var(--wp--preset--font-size--xs) !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase;
	line-height: 1.4 !important;
}

.clc-lede { max-width: 65ch; }

/* ---------- Lists ---------- */

.is-style-checklist {
	list-style: none;
	padding-left: 0;
	display: grid;
	gap: 0.6rem;
}
.is-style-checklist li {
	position: relative;
	padding-left: 1.6rem;
	line-height: 1.5;
}
.is-style-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 0.95em;
	height: 0.95em;
	background-color: var(--wp--preset--color--copper-600);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M232.49 80.49l-128 128a12 12 0 0 1-17 0l-56-56a12 12 0 1 1 17-17L96 183 215.51 63.51a12 12 0 0 1 17 17Z'/%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 256 256'%3E%3Cpath d='M232.49 80.49l-128 128a12 12 0 0 1-17 0l-56-56a12 12 0 1 1 17-17L96 183 215.51 63.51a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.has-ink-950-background-color .is-style-checklist li::before,
.is-style-card-dark .is-style-checklist li::before { background-color: var(--wp--preset--color--copper-400); }

/* ---------- Images ---------- */

.is-style-photo-card {
	border-radius: var(--clc-radius-lg);
	overflow: hidden;
	background: var(--wp--preset--color--ink-900);
}
.is-style-photo-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.is-style-card:hover .is-style-photo-card img,
.is-style-photo-card:hover img { transform: scale(1.04); }

/* Images flush to the top edge of a card */
.is-style-card > .wp-block-image:first-child { margin: 0; border-radius: 0; }
.is-style-card > .wp-block-image:first-child img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* ---------- Hero ---------- */

/* Core caps the cover's inner box at the wide size and pins it left; let the inner
   groups do the centering so the hero lines up with the header and the strip runs edge to edge. */
.clc-hero .wp-block-cover__inner-container { width: 100% !important; max-width: none !important; margin: 0 !important; }
.clc-hero h1 { max-width: 18ch; }
.clc-hero .clc-hero__accent { color: var(--wp--preset--color--copper-400); }
.clc-trust-strip {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(13, 20, 26, 0.6);
	backdrop-filter: blur(10px);
}

/* ---------- Sections ---------- */

.clc-section { scroll-margin-top: calc(var(--clc-header-height) + 1rem); }

@media (min-width: 1024px) {
	.clc-sticky-column {
		position: sticky;
		top: calc(var(--clc-header-height) + 2.5rem);
		align-self: flex-start;
	}
}

/* Details/accordion (FAQ + industries) */
.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--lg);
	color: var(--wp--preset--color--ink-950);
	line-height: 1.35;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 8px;
	border: 1px solid var(--wp--preset--color--ink-200);
	color: var(--wp--preset--color--copper-600);
	font-weight: 500;
	transition: transform 0.2s ease, background-color 0.2s ease;
}
.wp-block-details[open] summary::after { content: "\2212"; background: var(--wp--preset--color--copper-600); color: var(--wp--preset--color--white); border-color: transparent; }
.wp-block-details summary:hover { color: var(--wp--preset--color--copper-600); }
.wp-block-details summary:focus-visible { outline: 2px solid var(--wp--preset--color--copper-500); outline-offset: 4px; border-radius: 4px; }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--ink-700); }

/* Industry accordion: card per item */
.clc-industries .wp-block-details {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--ink-200);
	border-radius: var(--clc-radius-lg);
	padding: 1.25rem 1.5rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.clc-industries .wp-block-details[open] {
	border-color: color-mix(in srgb, var(--wp--preset--color--copper-500) 50%, transparent);
	box-shadow: var(--wp--custom--shadow--raised);
	padding-bottom: 1.75rem;
}
.clc-industries .wp-block-details summary { font-size: var(--wp--preset--font-size--xl); }

/* ---------- Footer ---------- */

.clc-site-footer a { color: var(--wp--preset--color--ink-300); }
.clc-site-footer a:hover { color: var(--wp--preset--color--white); }
.clc-site-footer .wp-block-list { list-style: none; padding-left: 0; display: grid; gap: 0.85rem; }
.clc-site-footer .clc-footer-cta a { color: var(--wp--preset--color--copper-300); font-weight: 600; }

/* Fixed consultation bar on phones; the footer pads its bottom to clear it */
.clc-mobile-cta { display: none; }
@media (max-width: 781px) {
	.clc-mobile-cta {
		display: block;
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		z-index: 40;
		padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom));
		background: color-mix(in srgb, var(--wp--preset--color--ink-50) 95%, transparent);
		border-top: 2px solid var(--wp--preset--color--ink-900);
		backdrop-filter: blur(12px);
	}
	.clc-mobile-cta .wp-block-button,
	.clc-mobile-cta .wp-block-button__link { width: 100%; }
	.clc-site-footer { padding-bottom: 7rem !important; }
}

/* Never show the fixed bar inside the editor canvas */
.editor-styles-wrapper .clc-mobile-cta { position: static; display: block; }

/* ---------- Contact card (icons: Phosphor, regular weight) ---------- */

.clc-icon-pin { --clc-icon: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 256 256%27%3E%3Cpath d=%27M128,64a40,40,0,1,0,40,40A40,40,0,0,0,128,64Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,128Zm0-112a88.1,88.1,0,0,0-88,88c0,31.4,14.51,64.68,42,96.25a254.19,254.19,0,0,0,41.45,38.3,8,8,0,0,0,9.18,0A254.19,254.19,0,0,0,174,200.25c27.45-31.57,42-64.85,42-96.25A88.1,88.1,0,0,0,128,16Zm0,206c-16.53-13-72-60.75-72-118a72,72,0,0,1,144,0C200,161.23,144.53,209,128,222Z%27/%3E%3C/svg%3E"); }
.clc-icon-area { --clc-icon: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 256 256%27%3E%3Cpath d=%27M112,80a16,16,0,1,1,16,16A16,16,0,0,1,112,80ZM64,80a64,64,0,0,1,128,0c0,59.95-57.58,93.54-60,94.95a8,8,0,0,1-7.94,0C121.58,173.54,64,140,64,80Zm16,0c0,42.2,35.84,70.21,48,78.5,12.15-8.28,48-36.3,48-78.5a48,48,0,0,0-96,0Zm122.77,67.63a8,8,0,0,0-5.54,15C213.74,168.74,224,176.92,224,184c0,13.36-36.52,32-96,32s-96-18.64-96-32c0-7.08,10.26-15.26,26.77-21.36a8,8,0,0,0-5.54-15C29.22,156.49,16,169.41,16,184c0,31.18,57.71,48,112,48s112-16.82,112-48C240,169.41,226.78,156.49,202.77,147.63Z%27/%3E%3C/svg%3E"); }
.clc-icon-phone { --clc-icon: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 256 256%27%3E%3Cpath d=%27M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z%27/%3E%3C/svg%3E"); }
.clc-icon-envelope { --clc-icon: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 256 256%27%3E%3Cpath d=%27M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-96,85.15L52.57,64H203.43ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z%27/%3E%3C/svg%3E"); }
.clc-icon-shield { --clc-icon: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 256 256%27%3E%3Cpath d=%27M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0ZM82.34,141.66a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32l-56,56a8,8,0,0,1-11.32,0Z%27/%3E%3C/svg%3E"); }

.clc-contact-card { display: flex; flex-direction: column; gap: 0; }

.clc-info-row,
.clc-mini-card.clc-icon-shield {
	position: relative;
	padding-left: 2.75rem;
}
.clc-info-row::before,
.clc-mini-card.clc-icon-shield::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1rem;
	width: 1.5rem;
	height: 1.5rem;
	background-color: var(--wp--preset--color--copper-600);
	-webkit-mask: var(--clc-icon) center / contain no-repeat;
	mask: var(--clc-icon) center / contain no-repeat;
}
.clc-info-row { padding-block: 1.5rem; }
.clc-info-row:first-child { padding-top: 0; }
.clc-info-row + .clc-info-row { border-top: 1px solid var(--wp--preset--color--ink-100); }
.clc-info-row:first-child::before { top: 0.1rem; }
.clc-info-row:not(:first-child)::before { top: 1.6rem; }
.clc-info-row > * { margin-block: 0 !important; }
.clc-info-row > * + * { margin-top: 0.35rem !important; }

/* Hide the email row until an address is set in Settings, Capital Landmark. */
.clc-info-row:not(:has(p, li)) { display: none; }

.clc-info-row__title,
.clc-emails__heading {
	margin: 0 0 0.35rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 700;
	color: var(--wp--preset--color--ink-950);
	line-height: 1.3;
}
.clc-info-row__phone a { font-weight: 700; }

.clc-emails__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.clc-emails__label { color: var(--wp--preset--color--ink-500); }
.clc-emails a { font-weight: 600; overflow-wrap: anywhere; }
.clc-emails.is-empty { margin: 0; font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--ink-500); }

.clc-mini-card {
	margin-top: 1.5rem !important;
	padding: 1.25rem 1.5rem;
	background: var(--wp--preset--color--ink-50);
	border: 1px solid var(--wp--preset--color--ink-100);
	border-radius: 12px;
}
.clc-mini-card.clc-icon-shield { padding-left: 4rem; }
.clc-mini-card.clc-icon-shield::before { left: 1.5rem; top: 1.35rem; }
.clc-mini-card > * { margin-block: 0 !important; }
.clc-mini-card__logo { flex-shrink: 0; margin: 0 !important; }
.clc-mini-card__logo img {
	display: block;
	padding: 0.4rem;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--ink-200);
	border-radius: 8px;
}
.clc-mini-card__title {
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	color: var(--wp--preset--color--ink-950);
}

/* Footer email list */
.clc-site-footer .clc-emails__list { gap: 0.15rem; }
.clc-site-footer .clc-emails__label { color: var(--wp--preset--color--ink-300); }
