/**
 * YP3D Core — Homepage shortcode base styles.
 *
 * Reads every colour, font and spacing value from the CSS custom
 * properties printed by YP3D\Frontend\Assets from Theme Options, so a
 * change there updates every shortcode below without touching this file.
 * Kept intentionally light — layout/visual polish for each section lives
 * in Bricks, this only guarantees a sane unstyled fallback.
 */

.yp3d-grid {
	display: grid;
	gap: calc(var(--yp3d-spacing-unit, 8px) * 3);
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	font-family: var(--yp3d-font-body, sans-serif);
}

.yp3d-card {
	display: flex;
	flex-direction: column;
	background: var(--yp3d-color-surface, #f7f5f2);
	border-radius: var(--yp3d-radius, 12px);
	overflow: hidden;
	text-decoration: none;
	color: var(--yp3d-color-text, #2d2d2d);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yp3d-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.yp3d-card__image {
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
	background-color: var(--yp3d-color-background, #fff);
}

.yp3d-card__body {
	padding: calc(var(--yp3d-spacing-unit, 8px) * 2);
}

.yp3d-card__title {
	font-family: var(--yp3d-font-heading, sans-serif);
	margin: 0 0 8px;
	font-size: 1.1rem;
}

.yp3d-card__text {
	margin: 0;
	font-size: 0.9rem;
	opacity: 0.8;
}

.yp3d-card__price {
	display: block;
	margin-top: 8px;
	font-weight: 600;
	color: var(--yp3d-color-primary, #c8a46a);
}

.yp3d-steps-grid,
.yp3d-pillars-grid {
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	text-align: center;
}

.yp3d-step__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--yp3d-color-primary, #c8a46a);
	color: var(--yp3d-color-background, #fff);
	font-family: var(--yp3d-font-heading, sans-serif);
	margin-bottom: 12px;
}

.yp3d-step__title,
.yp3d-pillar__title {
	font-family: var(--yp3d-font-heading, sans-serif);
	margin: 0 0 8px;
}

.yp3d-step__text,
.yp3d-pillar__text {
	margin: 0;
	font-size: 0.9rem;
	opacity: 0.8;
}

.yp3d-newsletter__form {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	font-family: var(--yp3d-font-body, sans-serif);
}

.yp3d-newsletter__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.yp3d-newsletter__form input[type="email"] {
	flex: 1 1 240px;
	padding: 12px 16px;
	border: 1px solid var(--yp3d-color-surface, #f7f5f2);
	border-radius: var(--yp3d-radius, 12px);
}

.yp3d-newsletter__form button {
	padding: 12px 24px;
	border: 0;
	border-radius: var(--yp3d-radius, 12px);
	background: var(--yp3d-color-primary, #c8a46a);
	color: var(--yp3d-color-background, #fff);
	font-weight: 600;
	cursor: pointer;
}

.yp3d-newsletter__feedback {
	font-family: var(--yp3d-font-body, sans-serif);
	margin-bottom: 12px;
}
