/* Kalo Corporate — the few rules theme.json cannot express. Keep it short. */

/* Section eyebrow: the small uppercase label above a section heading. */
.kalo-eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* The short accent rule under a statistic or a name. */
.kalo-rule {
	width: 34px;
	height: 4px;
	border-radius: 2px;
	background: var(--wp--preset--color--yellow);
}

/* Image placeholder, used until real photography lands. */
.kalo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1.25rem;
	border: 1px dashed #B9C6B5;
	border-radius: 16px;
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--muted);
	font-size: 0.8125rem;
	min-height: 220px;
}
.kalo-placeholder--on-dark {
	background: var(--wp--preset--color--forest-soft);
	border-color: rgba(255, 255, 255, 0.35);
	color: #C3D4BE;
}

/* Chip used for a project's period and funder. */
.kalo-chip {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--wp--preset--color--yellow-soft);
	color: var(--wp--preset--color--ink);
}
.kalo-chip--funder {
	background: var(--wp--preset--color--mint);
	color: var(--wp--preset--color--forest);
}

/* Cards: a hairline box that holds its own height in a row. */
.kalo-card {
	height: 100%;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	background: var(--wp--preset--color--white);
}

/* Inputs on the dark contact band. */
.kalo-form-dark input,
.kalo-form-dark textarea,
.kalo-form-dark select {
	width: 100%;
	box-sizing: border-box;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
	padding: 12px 14px;
	font: inherit;
	font-size: 0.9375rem;
}
.kalo-form-dark label {
	display: block;
	margin-bottom: 7px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #C3D4BE;
}

/* The site logo should never outgrow the header. */
.wp-block-site-logo img { height: auto; max-height: 44px; width: auto; }

/* Pill label used on the dark hero bands. */
.kalo-pill {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 7px 15px;
	border-radius: 999px;
	background: rgba(255, 205, 0, 0.14);
	border: 1px solid rgba(255, 205, 0, 0.45);
	color: var(--wp--preset--color--yellow);
}

/* Large figure in the statistics strip. */
.kalo-stat {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 900;
	font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
	line-height: 1;
	color: var(--wp--preset--color--forest);
	margin: 16px 0 6px;
}

/* Icon tile at the top of a service card. */
.kalo-icon-tile {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--wp--preset--color--mint);
}

/* Statistics shown on a dark band rather than on cream. */
.kalo-stat--on-dark { color: #ffffff; }

/* Project card band. post-terms renders each term as a link, so these have
   to be coloured explicitly — the global link colour is dark green and
   disappears against the dark green band. */
.kalo-project-band .kalo-period,
.kalo-project-band .kalo-period a {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 900;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--wp--preset--color--yellow);
	text-decoration: none;
}
.kalo-project-band .kalo-funder,
.kalo-project-band .kalo-funder a {
	font-size: 0.8125rem;
	color: #D5E0D2;
	text-decoration: none;
}
.kalo-project-band .kalo-period a:hover,
.kalo-project-band .kalo-funder a:hover { text-decoration: underline; }

/* On the project detail hero the two sit side by side. */
.kalo-project-band--inline { display: flex; flex-wrap: wrap; gap: 18px; align-items: baseline; }

/* Funder logos: a fixed box each, letterboxed, because the source logos
   range from a very wide lockup to a square diamond. */
.kalo-funder-logo { flex: 0 0 auto; width: 180px; }
.kalo-funder-logo .wp-block-image { margin: 0; }
.kalo-funder-logo .wp-block-image img { border-radius: 0 !important; }

/* Team portraits: a small round avatar, not a full-width headshot. The
   biography is the content; the face is identification. */
.kalo-portrait {
	width: 112px;
	margin-left: 0 !important;
	margin-right: auto !important;
}
.kalo-portrait .wp-block-image { margin: 0; }
.kalo-portrait .wp-block-image img {
	border-radius: 50% !important;
	/* A square crop of a 3:4 headshot cuts the forehead; bias upward. */
	object-position: center 22% !important;
}

/* Links on the dark bands.
   theme.json sets the global link colour to forest green, which is also the
   background of the hero, contact and footer bands — so any link in them is
   invisible unless it says otherwise. This has caught us three times: the
   project chips, the About pull quote, and the phone and email links in the
   contact block. Fix it once, here, rather than per block.
   Buttons are excluded: they carry their own colours. */
.has-forest-background-color a:not(.wp-element-button),
.has-forest-deep-background-color a:not(.wp-element-button),
.has-forest-soft-background-color a:not(.wp-element-button) {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.has-forest-background-color a:not(.wp-element-button):hover,
.has-forest-deep-background-color a:not(.wp-element-button):hover,
.has-forest-soft-background-color a:not(.wp-element-button):hover {
	color: var(--wp--preset--color--yellow);
}
