/*
Theme Name: UCELC
Theme URI: https://ucelc.ca
Description: Child theme of Twenty Twenty-Five for the University & Community Early Learning Centre. Colours taken from the UCELC logo.
Author: UCELC
Template: twentytwentyfive
Version: 0.2.6
Requires at least: 6.7
Text Domain: ucelc
*/

/* ---------- Header ---------- */
.ucelc-header {
	border-bottom: 1px solid var(--wp--preset--color--accent-6-10, rgba(59, 42, 38, 0.1));
}
.ucelc-header .wp-block-site-logo img {
	max-width: min(132px, 28vw);
	height: auto;
}
.ucelc-brand-name {
	margin: 0;
	font-family: var(--wp--preset--font-family--literata);
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.25;
}
.ucelc-brand-name a {
	color: var(--wp--preset--color--accent-1);
	text-decoration: none;
}
@media (max-width: 600px) {
	.ucelc-header .wp-block-site-logo img {
		max-width: 84px;
	}
	.ucelc-brand {
		gap: 0.6rem !important;
	}
	.ucelc-brand-name {
		font-size: 0.82rem;
	}
}
.ucelc-header .wp-block-navigation a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.ucelc-header .wp-block-navigation a:hover,
.ucelc-header .wp-block-navigation .current-menu-item a {
	color: var(--wp--preset--color--accent-1);
}

/* ---------- Hero ---------- */
.ucelc-hero .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(270deg, rgba(40, 28, 24, 0.8) 0%, rgba(40, 28, 24, 0.6) 32%, rgba(40, 28, 24, 0) 60%) !important;
}
.ucelc-hero {
	min-height: clamp(420px, 62vh, 620px) !important;
}
.ucelc-hero .wp-block-cover__inner-container {
	max-width: 27rem !important;
	margin-right: max(1.5rem, calc((100vw - 1340px) / 2)) !important;
}
.ucelc-hero h1 {
	color: #fff;
	font-size: clamp(2rem, 3.6vw, 3rem);
	line-height: 1.1;
}
.ucelc-hero p {
	color: #fff;
}
.ucelc-hero .ucelc-kicker {
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.9;
}
.ucelc-hero .is-style-outline .wp-block-button__link {
	color: #fff;
	border-color: #fff;
	background: transparent;
}
.ucelc-hero .is-style-outline .wp-block-button__link:hover {
	background: #fff;
	color: var(--wp--preset--color--accent-6);
}

@media (max-width: 781px) {
	.ucelc-hero {
		align-items: flex-end !important;
		min-height: 72vh !important;
	}
	.ucelc-hero .wp-block-cover__background {
		background: linear-gradient(0deg, rgba(40, 28, 24, 0.85) 0%, rgba(40, 28, 24, 0.55) 45%, rgba(40, 28, 24, 0) 75%) !important;
	}
	.ucelc-hero .wp-block-cover__inner-container {
		margin: 0 !important;
	}
}

/* ---------- Facts row ---------- */
.ucelc-facts .wp-block-column {
	border-top: 2px solid var(--wp--preset--color--accent-4);
	padding-top: 1rem;
}
.ucelc-label {
	font-family: var(--wp--preset--font-family--manrope) !important;
	font-size: 0.78rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-4) !important;
	margin-bottom: 0.4rem !important;
}
.ucelc-facts p {
	font-family: var(--wp--preset--font-family--literata);
	font-size: 1.15rem;
	line-height: 1.4;
	margin-top: 0;
}

/* ---------- Pull quote ---------- */
.ucelc-quote blockquote {
	border: 0;
	padding: 0;
	margin: 0;
}
.ucelc-quote blockquote p {
	font-family: var(--wp--preset--font-family--literata);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	line-height: 1.3;
	color: var(--wp--preset--color--accent-6);
}

/* ---------- Photos ---------- */
.ucelc-photo img,
.wp-block-media-text__media img {
	border-radius: 6px;
}

/* ---------- Inner pages ---------- */
.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group:has(> main) {
	margin-block-start: 0;
}
.ucelc-page-head {
	background: var(--wp--preset--color--accent-5);
}
.ucelc-page-head + .wp-block-post-featured-image {
	margin-top: 0;
}
.ucelc-page-body {
	padding-bottom: 5rem;
}
.ucelc-page-body > :first-child {
	margin-top: 3rem;
}
.ucelc-aside {
	background: var(--wp--preset--color--accent-5);
	border-radius: 6px;
}

/* ---------- Footer ---------- */
.ucelc-footer a {
	color: var(--wp--preset--color--accent-5);
}
.ucelc-footer a:hover {
	color: #fff;
}
.ucelc-footer .ucelc-footer-name {
	color: #fff;
	line-height: 1.25;
}
.ucelc-footer .ucelc-label {
	color: #E3A8B0 !important;
}
.ucelc-footer-rule {
	border-color: rgba(255, 252, 245, 0.2) !important;
	opacity: 1;
}

/* ---------- Staging notes (only rendered for logged-in editors) ---------- */
.ucelc-todo {
	border-left: 4px solid var(--wp--preset--color--accent-4);
	background: var(--wp--preset--color--accent-5);
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
}
