/**
 * Homepage Section 2 — Offer Cards (pixel-matched to studiom.ai)
 * Scope: .sm-home-s2 (added to Section 2 outer wrapper only)
 *
 * Design reference: studiom.ai — first content band below hero
 * - 2-column flat card layout (full-width images, no card surface)
 * - Images: 3:2 aspect ratio, 6px border-radius
 * - Typography: Lexend Mega headings (uppercase, tracked), Chivo body
 * - Dark (#111111) CTA buttons
 * - White background, centered intro text
 *
 * ALL selectors are prefixed with .sm-home-s2 — zero collateral impact.
 *
 * @package StudioM_Child
 * @handle  studiom-home-s2-css
 */

/* ========================================================================
   Section Container
   ======================================================================== */

.sm-home-s2 {
	padding-top: 64px;
	padding-bottom: 64px;
	background-color: #ffffff;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.sm-home-s2.has-global-padding,
.sm-home-s2.is-layout-constrained {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

@media (min-width: 768px) {
	.sm-home-s2 {
		padding-top: 88px;
		padding-bottom: 88px;
	}
}

/* ========================================================================
   Inner Container — single source for horizontal spacing
   ======================================================================== */

.sm-home-s2 .sm-container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px !important;
	padding-right: 20px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.sm-home-s2 .sm-container.has-global-padding {
	padding-left: 20px !important;
	padding-right: 20px !important;
}

@media (min-width: 768px) {
	.sm-home-s2 .sm-container,
	.sm-home-s2 .sm-container.has-global-padding {
		padding-left: 32px !important;
		padding-right: 32px !important;
	}
}

/* ========================================================================
   Intro Text — centered, Chivo light
   ======================================================================== */

.sm-home-s2 .sm-intro-text {
	text-align: center;
	font-family: 'Chivo', sans-serif;
	font-size: 17px;
	font-weight: 300;
	line-height: 1.6;
	letter-spacing: -0.01em;
	color: #333333;
	max-width: 48rem;
	margin: 0 auto 40px;
}

@media (min-width: 768px) {
	.sm-home-s2 .sm-intro-text {
		font-size: 18px;
		margin-bottom: 52px;
	}
}

/* ========================================================================
   Cards Grid — 2 equal columns on desktop, stacked on mobile
   ======================================================================== */

.sm-home-s2 .sm-cards-grid {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 40px !important;
	margin: 0 !important;
	align-items: start;
}

@media (min-width: 768px) {
	.sm-home-s2 .sm-cards-grid {
		grid-template-columns: 1fr 1fr !important;
		gap: 40px !important;
	}
}

/* ========================================================================
   WordPress Block Spacing Normalization — scoped to Section 2 only
   ======================================================================== */

.sm-home-s2 .wp-block-columns {
	margin: 0 !important;
}

.sm-home-s2 .wp-block-column {
	margin: 0 !important;
}

.sm-home-s2 .wp-block-buttons {
	margin: 0 !important;
}

/* ========================================================================
   Individual Offer Card — flat layout, no card surface
   ======================================================================== */

.sm-home-s2 .sm-offer-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/*
 * Inner group: flat — NO padding, border-radius, box-shadow, or background.
 */
.sm-home-s2 .sm-offer-card > .wp-block-group,
.sm-home-s2 .wp-block-column > .wp-block-group {
	display: flex !important;
	flex-direction: column !important;
	height: 100%;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* ========================================================================
   Card Image — full-width, 3:2 "strong rectangle", subtle radius
   ======================================================================== */

.sm-home-s2 .sm-offer-card__image-link {
	display: block;
	overflow: hidden;
	border-radius: 6px;
	aspect-ratio: 3 / 2;
	background-color: #f0f0f0;
	margin: 0 0 24px 0;
}

.sm-home-s2 .sm-offer-card__image-link img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center top;
	aspect-ratio: auto;
}

@media (min-width: 768px) {
	.sm-home-s2 .sm-offer-card__image-link {
		margin-bottom: 28px;
	}
}

/* ========================================================================
   Card Heading — Lexend Mega, uppercase, tracked
   ======================================================================== */

.sm-home-s2 .sm-offer-card h4 {
	font-family: 'Lexend Mega', sans-serif;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #111111;
	line-height: 1.3;
	margin: 0 0 14px 0;
}

@media (min-width: 768px) {
	.sm-home-s2 .sm-offer-card h4 {
		font-size: 15px;
	}
}

/* ========================================================================
   Card Body Text — Chivo light, comfortable reading
   ======================================================================== */

.sm-home-s2 .sm-offer-card p {
	font-family: 'Chivo', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.65;
	color: #333333;
	margin: 0 0 16px 0;
}

@media (min-width: 768px) {
	.sm-home-s2 .sm-offer-card p {
		line-height: 1.7;
		margin-bottom: 18px;
	}
}

/* Last paragraph sits flush before the CTA */
.sm-home-s2 .sm-offer-card p:last-of-type {
	margin-bottom: 0;
}

/* Bold emphasis line — displayed as its own block */
.sm-home-s2 .sm-offer-card p strong,
.sm-home-s2 .sm-offer-card p b {
	font-weight: 700;
	display: block;
	line-height: 1.5;
}

/* Italic for product names (e.g. "De Essentie van AI") */
.sm-home-s2 .sm-offer-card p em,
.sm-home-s2 .sm-offer-card p i {
	font-style: italic;
	font-weight: 700;
}

/* ========================================================================
   CTA Container — pushed to bottom of card via flex
   ======================================================================== */

.sm-home-s2 .sm-offer-card__cta {
	margin-top: auto;
	padding-top: 24px;
}

@media (min-width: 768px) {
	.sm-home-s2 .sm-offer-card__cta {
		padding-top: 28px;
	}
}

.sm-home-s2 .sm-offer-card__cta .wp-block-button {
	margin: 0;
}

/* ========================================================================
   CTA Button — dark fill, scoped strictly to Section 2
   ======================================================================== */

.sm-home-s2 .sm-offer-card__cta .wp-block-button__link {
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 15px;
	line-height: 1.2;
	padding: 13px 24px;
	border-radius: 8px;
	background-color: #111111;
	color: #ffffff !important;
	border: 2px solid transparent;
	text-decoration: none;
	display: inline-block;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
	letter-spacing: 0.01em;
}

.sm-home-s2 .sm-offer-card__cta .wp-block-button__link:hover {
	background-color: #222222;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sm-home-s2 .sm-offer-card__cta .wp-block-button__link:focus-visible {
	outline: 2px solid #111111;
	outline-offset: 3px;
}

/* ========================================================================
   Constrained layout padding neutralization — Section 2 only
   ======================================================================== */

.sm-home-s2.is-layout-constrained,
.sm-home-s2 .is-layout-constrained {
	padding-left: 0 !important;
	padding-right: 0 !important;
}
