/*
Theme Name: Bold Portfolio
Description: A bold, playful portfolio theme with thick outlines, hard shadows and a case studies section. Built for a lifecycle engagement portfolio.
Author: Portfolio owner
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bold-portfolio
*/

/* ---------- Header and navigation ---------- */
.bp-logo,
.bp-logo a {
	font-family: var(--wp--preset--font-family--display);
	font-size: 22px;
	letter-spacing: -0.01em;
	text-decoration: none;
	margin: 0;
}

.bp-nav .wp-block-navigation__container {
	gap: 12px;
}

.bp-nav .wp-block-navigation-item__content {
	padding: 12px 20px;
	border: 2.5px solid var(--wp--preset--color--ink);
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
}

.bp-nav .wp-block-navigation-item__content:hover,
.bp-nav .current-menu-item > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ground);
}

/* ---------- Boxes, cards and thumbnails ---------- */
.bp-box {
	background: var(--wp--preset--color--white);
	border: 3px solid var(--wp--preset--color--ink);
	padding: 28px;
}

.bp-box > * + * {
	margin-block-start: 12px;
}

.bp-num {
	font-family: var(--wp--preset--font-family--display);
	font-size: 14px;
	margin: 0;
}

.bp-label {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0;
}

.bp-kicker,
.bp-kicker a {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
}

.bp-card {
	position: relative;
	background: var(--wp--preset--color--white);
	border: 3px solid var(--wp--preset--color--ink);
	box-shadow: 8px 8px 0 var(--wp--preset--color--ink);
	transition: transform 0.15s, box-shadow 0.15s;
}

.bp-card:hover {
	transform: translate(-4px, -4px);
	box-shadow: 12px 12px 0 var(--wp--preset--color--ink);
}

/* Make the whole card clickable through the title link */
.bp-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.bp-card-body {
	padding: 20px;
}

.bp-card-body > * + * {
	margin-block-start: 8px;
}

.bp-card-body p {
	font-size: 16px;
	line-height: 1.4;
}

.bp-thumb,
.bp-hero-img,
.bp-portrait {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--pink);
	border-bottom: 3px solid var(--wp--preset--color--ink);
	margin: 0;
	aspect-ratio: 4 / 3;
}

.bp-hero-img {
	aspect-ratio: 16 / 7;
	border: 3px solid var(--wp--preset--color--ink);
	box-shadow: 8px 8px 0 var(--wp--preset--color--ink);
}

.bp-portrait {
	aspect-ratio: 4 / 5;
	border: 3px solid var(--wp--preset--color--ink);
	box-shadow: 8px 8px 0 var(--wp--preset--color--ink);
}

.bp-thumb .wp-block-post-featured-image,
.bp-hero-img .wp-block-post-featured-image,
.bp-portrait .wp-block-post-featured-image {
	position: absolute;
	inset: 0;
	margin: 0;
}

.bp-thumb img,
.bp-hero-img img,
.bp-portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Tints shown until a featured image is set */
.wp-block-post-template > li:nth-child(4n + 2) .bp-thumb { background: var(--wp--preset--color--blue); }
.wp-block-post-template > li:nth-child(4n + 3) .bp-thumb { background: var(--wp--preset--color--amber); }
.wp-block-post-template > li:nth-child(4n + 4) .bp-thumb { background: #B7F0C0; }

/* ---------- Hero ---------- */
.bp-hero-lead {
	font-size: 20px;
	font-weight: 500;
	line-height: 1.45;
	max-width: 600px;
}

.bp-worked {
	gap: 12px 28px;
	align-items: center;
}

.bp-company {
	font-family: var(--wp--preset--font-family--display);
	font-size: 22px;
	letter-spacing: -0.01em;
	margin: 0;
}

.bp-lead,
.bp-lead p {
	font-size: 22px;
	font-weight: 500;
	line-height: 1.4;
	max-width: 720px;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
}

.wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

.bp-band {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ground);
	padding: 48px;
}

.bp-band .wp-block-button__link {
	background: var(--wp--preset--color--ground);
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ground);
}

.bp-band .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
}

/* ---------- Case study content ---------- */
.bp-stat {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ground);
	padding: 32px;
}

.bp-stat-value {
	font-family: var(--wp--preset--font-family--display);
	font-size: 56px;
	letter-spacing: -0.03em;
	line-height: 1;
	margin: 0 0 8px;
}

.bp-stat p {
	font-size: 17px;
	font-weight: 500;
}

.bp-section-title {
	margin: 0;
}

.bp-next {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ground);
	padding: 40px;
}

.bp-next a {
	color: var(--wp--preset--color--ground);
	font-family: var(--wp--preset--font-family--display);
	text-transform: uppercase;
	font-size: 28px;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.bp-next a:hover {
	text-decoration: underline;
}

.wp-block-post-content figure.wp-block-image img {
	border: 3px solid var(--wp--preset--color--ink);
}

/* ---------- Contact form ---------- */
.bp-form-card {
	background: var(--wp--preset--color--white);
	border: 3px solid var(--wp--preset--color--ink);
	box-shadow: 8px 8px 0 var(--wp--preset--color--ink);
	padding: 32px;
}

.bp-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.bp-form label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.bp-form input[type="text"],
.bp-form input[type="email"],
.bp-form textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 48px;
	padding: 12px 14px;
	border: 3px solid var(--wp--preset--color--ink);
	border-radius: 0;
	background: var(--wp--preset--color--white);
	font: inherit;
	font-size: 17px;
	color: var(--wp--preset--color--ink);
}

.bp-form input:focus,
.bp-form textarea:focus {
	outline: 3px solid var(--wp--preset--color--ink);
	outline-offset: 3px;
}

.bp-form button {
	align-self: flex-start;
	min-height: 52px;
	padding: 14px 32px;
	border: 3px solid var(--wp--preset--color--ink);
	border-radius: 0;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ground);
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
}

.bp-form button:hover {
	background: var(--wp--preset--color--ground);
	color: var(--wp--preset--color--ink);
}

.bp-form-notice {
	border: 3px solid var(--wp--preset--color--ink);
	padding: 16px 20px;
	font-weight: 700;
	margin-bottom: 20px;
}

.bp-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 781px) {
	.bp-band { padding: 32px 24px; }
	.bp-card:hover { transform: none; box-shadow: 8px 8px 0 var(--wp--preset--color--ink); }
}
