/**
 * CDM Construction Theme Styles v0.2
 * Turner-inspired enterprise construction aesthetic.
 * @package CDM_Theme
 */

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }

/* Skip Link */
.skip-link {
	position: absolute; left: -9999px; top: auto; width: 1px; height: 1px;
	overflow: hidden; z-index: 100000; padding: 0.5em 1em;
	background: var(--wp--preset--color--secondary); color: #fff;
	font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0.5em; top: 0.5em; width: auto; height: auto; clip: auto; }

/* ===== Header ===== */
.cdm-header { position: relative; z-index: 100; }
.cdm-header-inner {
	display: flex; align-items: center; justify-content: space-between; min-height: 90px;
}

.cdm-header-transparent {
	position: absolute; top: 0; left: 0; right: 0; z-index: 100; background: transparent;
}

/* Logo in header - ensure it displays from site-logo or img block */
.cdm-header .wp-block-site-logo img,
.cdm-header .wp-block-image img {
	max-height: 55px; width: auto;
}

/* ===== Cover/Hero improvements ===== */
.wp-block-cover {
	position: relative;
}

.wp-block-cover__image-background {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}

/* ===== Cards ===== */
.is-style-cdm-card {
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--md);
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.is-style-cdm-card:hover {
	box-shadow: var(--wp--preset--shadow--lg);
	transform: translateY(-3px);
}

.is-style-cdm-card-dark {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	padding: var(--wp--preset--spacing--50);
}

/* ===== Arrow Button ===== */
.is-style-cdm-arrow .wp-block-button__link::after {
	content: " \2192"; margin-left: 0.5em; transition: transform 0.2s ease;
}
.is-style-cdm-arrow .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

/* ===== Gold Separator ===== */
.is-style-cdm-gold {
	border-color: var(--wp--preset--color--secondary) !important;
	border-width: 0 0 3px 0 !important; width: 60px;
}

/* ===== Stat Blocks ===== */
.cdm-stat-value {
	font-size: var(--wp--preset--font-size--hero); font-weight: 800;
	line-height: 1; color: var(--wp--preset--color--secondary);
}
.cdm-stat-label {
	font-size: var(--wp--preset--font-size--small); text-transform: uppercase;
	letter-spacing: 0.08em; color: var(--wp--preset--color--neutral-500); font-weight: 600;
}

/* ===== Footer - Turner-style blue bar ===== */
.cdm-footer {
	font-size: 0.8125rem;
}

.cdm-footer a {
	color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s ease;
}
.cdm-footer a:hover { color: var(--wp--preset--color--secondary-light); }

.cdm-footer .wp-block-site-logo img,
.cdm-footer .wp-block-image img {
	max-height: 40px; width: auto; filter: brightness(0) invert(1);
}

.cdm-footer ul { list-style: none; padding: 0; }

/* ===== Focus ===== */
:focus-visible { outline: 2px solid var(--wp--preset--color--secondary); outline-offset: 2px; }

/* ===== Responsive ===== */
@media (max-width: 781px) {
	.cdm-header-inner { min-height: 70px; }
	.cdm-header .wp-block-site-logo img,
	.cdm-header .wp-block-image img { max-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.is-style-cdm-card,
	.is-style-cdm-arrow .wp-block-button__link::after { transition: none; }
}
