/*
Theme Name: Kadmus
Theme URI: https://kadmusadvisory.ca
Description: Kadmus Advisory child theme for Twenty Twenty-Five. Brand colours, typography and spacing live in theme.json; this file holds only what theme.json cannot express.
Author: Kadmus Advisory
Template: twentytwentyfive
Version: 1.5.0
Requires at least: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kadmus
*/

/* ---------- Motion (90–260ms, no bounce) ---------- */
a,
.wp-element-button,
.wp-block-button__link {
	transition: color 160ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Accessible focus ---------- */
:where(a, button, input, select, textarea, .wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-3);
	outline-offset: 2px;
}

/* ---------- Square corners everywhere ---------- */
input, select, textarea, img, .wp-block-image img, .wp-element-button {
	border-radius: 0;
}

/* ---------- Eyebrow label (Paragraph > Styles > Eyebrow) ---------- */
.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-3);
}

/* ---------- Framed panel with corner registration ticks (Group > Styles > Framed) ---------- */
.is-style-framed {
	--kadmus-tick: 16px;
	--kadmus-tick-w: 2px;
	--kadmus-tick-c: var(--wp--preset--color--accent-1);
	border: 1px solid var(--wp--preset--color--accent-6);
	padding: var(--wp--preset--spacing--40);
	background-image:
		linear-gradient(var(--kadmus-tick-c), var(--kadmus-tick-c)),
		linear-gradient(var(--kadmus-tick-c), var(--kadmus-tick-c)),
		linear-gradient(var(--kadmus-tick-c), var(--kadmus-tick-c)),
		linear-gradient(var(--kadmus-tick-c), var(--kadmus-tick-c)),
		linear-gradient(var(--kadmus-tick-c), var(--kadmus-tick-c)),
		linear-gradient(var(--kadmus-tick-c), var(--kadmus-tick-c)),
		linear-gradient(var(--kadmus-tick-c), var(--kadmus-tick-c)),
		linear-gradient(var(--kadmus-tick-c), var(--kadmus-tick-c));
	background-size:
		var(--kadmus-tick) var(--kadmus-tick-w), var(--kadmus-tick-w) var(--kadmus-tick),
		var(--kadmus-tick) var(--kadmus-tick-w), var(--kadmus-tick-w) var(--kadmus-tick),
		var(--kadmus-tick) var(--kadmus-tick-w), var(--kadmus-tick-w) var(--kadmus-tick),
		var(--kadmus-tick) var(--kadmus-tick-w), var(--kadmus-tick-w) var(--kadmus-tick);
	background-position:
		left top, left top,
		right top, right top,
		left bottom, left bottom,
		right bottom, right bottom;
	background-repeat: no-repeat;
	background-origin: border-box;
}

/* ---------- Brand lock-up (logo mark + live-text wordmark) ---------- */
.kadmus-brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--wp--preset--color--accent-1);
	text-decoration: none;
}
.kadmus-brand:hover { color: var(--wp--preset--color--accent-3); }
.kadmus-brand__mark {
	width: 44px;
	height: 44px;
	flex: none;
}
.kadmus-wordmark {
	display: flex;
	flex-direction: column;
	line-height: 1;
	font-family: var(--wp--preset--font-family--barlow-condensed);
}
.kadmus-wordmark__name {
	font-size: 1.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--contrast);
}
.kadmus-wordmark__sub {
	margin-top: 4px;
	font-size: 0.5625rem;
	font-weight: 500;
	letter-spacing: 0.42em;
	color: var(--wp--preset--color--accent-1);
}

/* ---------- Header ---------- */
.kadmus-header {
	background-color: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	padding-top: var(--wp--preset--spacing--30);
	padding-bottom: var(--wp--preset--spacing--30);
}
.kadmus-header .wp-block-navigation a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}
.kadmus-header .wp-block-navigation a:hover,
.kadmus-header .wp-block-navigation .current-menu-item > a {
	color: var(--wp--preset--color--accent-3);
	text-decoration: underline;
	text-underline-offset: 6px;
}
.kadmus-header .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--accent-6) !important;
	background-color: var(--wp--preset--color--base) !important;
}

/* ---------- Footer ---------- */
.kadmus-footer {
	background-color: var(--wp--preset--color--steel-900);
	color: var(--wp--preset--color--base);
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--40);
	margin-block-start: 0;
}
.kadmus-footer a { color: var(--wp--preset--color--accent-2); }
.kadmus-footer a:hover { color: var(--wp--preset--color--white); }
.kadmus-footer :focus-visible { outline-color: var(--wp--preset--color--steel-300); }
.kadmus-footer .is-style-eyebrow { color: var(--wp--preset--color--steel-300); }
.kadmus-footer .kadmus-brand,
.kadmus-footer .kadmus-wordmark__name { color: var(--wp--preset--color--base); }
.kadmus-footer .kadmus-wordmark__sub { color: var(--wp--preset--color--steel-300); }
.kadmus-footer__legal {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--steel-800);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--steel-300);
}

/* =========================================================
   v1.1.0 — page layout and homepage sections
   ========================================================= */

/* Footer stays at the bottom of the window on short pages */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
.wp-site-blocks > main,
.wp-site-blocks > .kadmus-main { flex: 1 0 auto; }
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part:last-child { margin-top: auto; }
.kadmus-main { margin-block-start: 0; }
.kadmus-main > .wp-block-post-content > :first-child { margin-block-start: 0; }

/* Section rhythm */
.kadmus-section {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}
.kadmus-section--tight {
	padding-top: 0;
	padding-bottom: var(--wp--preset--spacing--40);
}
.kadmus-section + .kadmus-section,
.kadmus-hero + .kadmus-section { margin-block-start: 0; }
.kadmus-band-tint { background-color: var(--wp--preset--color--accent-5); }
.kadmus-cta {
	background-color: var(--wp--preset--color--accent-2);
	border-top: 1px solid var(--wp--preset--color--steel-300);
}

/* Hero */
.kadmus-hero {
	padding-top: var(--wp--preset--spacing--80);
	padding-bottom: var(--wp--preset--spacing--70);
}
.kadmus-hero__title {
	max-width: 15ch;
	line-height: 1.02;
	letter-spacing: 0.02em;
	margin-top: var(--wp--preset--spacing--30);
}
.kadmus-hero__lead {
	max-width: 44rem;
	color: var(--wp--preset--color--accent-4);
	line-height: 1.5;
}
.kadmus-hero .wp-block-buttons { margin-top: var(--wp--preset--spacing--50); }

/* Intro paragraphs under section headings */
.kadmus-intro {
	max-width: 44rem;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
	color: var(--wp--preset--color--accent-4);
}

/* Service cards: equal height, link pinned to the bottom */
.kadmus-cards { margin-top: var(--wp--preset--spacing--50); }
.kadmus-cards > .wp-block-column { display: flex; }
.kadmus-cards .is-style-framed {
	display: flex;
	flex-direction: column;
	width: 100%;
	background-color: var(--wp--preset--color--white);
}
.kadmus-cards .is-style-framed .kadmus-more { margin-top: auto; padding-top: var(--wp--preset--spacing--30); }

/* "Read more" links */
.kadmus-more a {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--accent-3);
}
.kadmus-more a::after { content: " \2192"; }
.kadmus-more a:hover { color: var(--wp--preset--color--contrast); text-decoration: underline; text-underline-offset: 5px; }

/* Sector grid: hairline rule above each column */
.kadmus-sectors { margin-top: var(--wp--preset--spacing--50); }
.kadmus-sectors > .wp-block-column {
	border-top: 2px solid var(--wp--preset--color--accent-1);
	padding-top: var(--wp--preset--spacing--30);
}

/* Senior consultant block */
.kadmus-person {
	border-left: 2px solid var(--wp--preset--color--accent-1);
	padding-left: var(--wp--preset--spacing--40);
}

/* =========================================================
   v1.3.0 — homepage v2 (content/home.md)
   ========================================================= */

/* Hero: headline and buttons, then the wide AI Literacy banner.
   Phones (700px and below) get the stacked version of the illustration. */
.kadmus-hero__title { max-width: 18ch; }
.kadmus-hero__lead {
	max-width: 44rem;
	font-size: var(--wp--preset--font-size--large);
}
/* The hero is a little wider than the rest of the page (1280px vs 1080px) */
.kadmus-hero .kadmus-hero__text.alignwide,
.kadmus-hero .kadmus-hero__media.alignwide {
	max-width: min(1280px, 100%);
	margin-left: auto !important;
	margin-right: auto !important;
}
.kadmus-hero__media { margin-top: var(--wp--preset--spacing--50); }
.kadmus-hero__figure { margin: 0; }
.kadmus-hero__figure img {
	display: block;
	width: 100%;
	height: auto;
}
@media (max-width: 700px) {
	.kadmus-hero__figure img { max-width: 420px; margin-inline: auto; }
}

/* Card images: same 3:2 crop for all three cards */
.kadmus-card-img { margin: 0 0 var(--wp--preset--spacing--30); }
.kadmus-card-img img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
}

/* Sectors: 5 across on wide screens, 3 + 2 on tablets, 1 on phones */
@media (min-width: 782px) and (max-width: 1099px) {
	.kadmus-sectors { flex-wrap: wrap !important; }
	.kadmus-sectors > .wp-block-column { flex: 0 0 calc(33.333% - 2em) !important; }
}
.kadmus-sectors h3 { font-size: var(--wp--preset--font-size--medium); }
.kadmus-sectors p { font-size: var(--wp--preset--font-size--small); line-height: 1.55; }

/* How we work: numbered steps */
.kadmus-steps { margin-top: var(--wp--preset--spacing--50); }
.kadmus-step-num {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1;
	color: var(--wp--preset--color--accent-1);
	margin-bottom: 0;
}
.kadmus-closing-line {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--accent-6);
	max-width: none;
}

/* Why Kadmus: image beside text */
.kadmus-why { align-items: center; gap: var(--wp--preset--spacing--60); }
.kadmus-why__img { margin: 0; }
.kadmus-why__img img { width: 100%; height: auto; display: block; }

/* Two buttons side by side need a little room */
.kadmus-cta .wp-block-buttons { margin-top: var(--wp--preset--spacing--40); }

/* =========================================================
   v1.5.0 — About, AI Education and Coming Soon pages
   ========================================================= */

/* Inner-page hero: text beside a photo, stacks on phones */
.kadmus-page-hero { padding-bottom: var(--wp--preset--spacing--60); }
.kadmus-page-hero__cols { align-items: center; gap: var(--wp--preset--spacing--60); }
@media (min-width: 782px) {
	.kadmus-page-hero__cols > .kadmus-page-hero__text { flex-grow: 1.2 !important; }
}
.kadmus-page-hero__img, .kadmus-practice__img, .kadmus-split__img { margin: 0; }
.kadmus-page-hero__img img,
.kadmus-practice__img img,
.kadmus-split__img img { display: block; width: 100%; height: auto; }

/* Comfortable reading width for prose sections */
.kadmus-narrow > * { max-width: 46rem; }

/* Grids (outcomes, programs, sectors, beliefs, steps) */
.kadmus-grid {
	margin-top: var(--wp--preset--spacing--50);
	gap: var(--wp--preset--spacing--40);
}
.kadmus-feature {
	border-top: 2px solid var(--wp--preset--color--accent-1);
	padding-top: var(--wp--preset--spacing--30);
}
.kadmus-feature h3 { font-size: var(--wp--preset--font-size--medium); margin-top: 0; }
.kadmus-feature p { font-size: var(--wp--preset--font-size--small); line-height: 1.6; }
.kadmus-band-tint .is-style-framed,
.kadmus-program { background-color: var(--wp--preset--color--white); }
.kadmus-format {
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-3);
	margin-top: auto;
}
.kadmus-program { display: flex; flex-direction: column; }
.kadmus-steps .kadmus-step-num { font-size: var(--wp--preset--font-size--x-large); }
.kadmus-note {
	margin-top: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--accent-4);
}

/* Image beside text (Our Story, Expertise, In Practice) */
.kadmus-split, .kadmus-practice { align-items: center; gap: var(--wp--preset--spacing--60); }
@media (min-width: 782px) {
	.kadmus-split__media--portrait { flex-grow: 0.7 !important; }
}

/* FAQ accordion */
.kadmus-faq .wp-block-details {
	border-top: 1px solid var(--wp--preset--color--accent-6);
	padding: var(--wp--preset--spacing--30) 0;
	margin: 0;
}
.kadmus-faq .wp-block-details:last-child { border-bottom: 1px solid var(--wp--preset--color--accent-6); }
.kadmus-faq summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: 0.03em;
}
.kadmus-faq summary:focus-visible { outline: 2px solid var(--wp--preset--color--accent-3); outline-offset: 4px; }
.kadmus-faq details p { margin-top: var(--wp--preset--spacing--20); max-width: 44rem; }

/* Coming Soon section */
.kadmus-section--soon { padding-top: var(--wp--preset--spacing--40); }
.kadmus-soon { max-width: 46rem; }

/* In-page jump links (See Our Programs, Explore Our Services) land below the top edge */
#programs, #what-we-do { scroll-margin-top: 24px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
