/**
 * Curved Heading Fun Facts Grid Block Styles
 *
 * @package made-to-thrive-2026-base
 * @since 1.0.0
 */

/* CSS Custom Properties */
:root {
	--curved-heading-fun-facts-bg-cream: #F5F1E8;
	--curved-heading-fun-facts-card-tan: #D4C5A9;
	--curved-heading-fun-facts-text-dark: #4C4C3B;
	--curved-heading-fun-facts-text-light: #FFFFFF;
}

/* Main Container */
.curved-heading-fun-facts-grid {
	width: 100%;
	position: relative;
	background-image: url('../../assets/images/large-grey-topo.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 64px 20px 47px;
}

.curved-heading-fun-facts-grid-container {
	width: 100%;
	max-width: 1002px;
	margin: 0 auto;
	position: relative;
}

/* Heading Section */
.curved-heading-fun-facts-grid-heading-wrapper {
	width: 100%;
	margin-bottom: 60px;
	text-align: center;
}

.curved-heading-fun-facts-grid-svg-wrapper {
	width: 100%;
	position: relative;
	max-width: 697px;
	margin: 0 auto 35px;
}

.curved-heading-fun-facts-grid-svg {
	width: 100%;
	height: auto;
	display: block;
	min-height: 120px;
}

/* Curved Text */
.curved-heading-fun-facts-grid-text {
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 400;
	fill: var(--curved-heading-fun-facts-text-dark);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-family: 'Palmer Lake Print', serif;
}

/* Hide paths/text initially for animation (like typeout-highlight-v2) */
.curved-heading-fun-facts-grid-svg path,
.curved-heading-fun-facts-grid-svg .curved-heading-fun-facts-grid-text {
	opacity: 0;
	transition: opacity 0.3s ease;
}

/* Show paths/text when animated */
.curved-heading-fun-facts-grid-svg path.animated,
.curved-heading-fun-facts-grid-svg .curved-heading-fun-facts-grid-text.animated {
	opacity: 1;
}

/* Custom SVG support */
.curved-heading-fun-facts-grid-custom-svg {
	width: 100%;
	height: auto;
	display: block;
}

.curved-heading-fun-facts-grid-custom-svg path {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.curved-heading-fun-facts-grid-custom-svg path.animated {
	opacity: 1;
}

.curved-heading-fun-facts-grid-text textPath {
	font-family: 'Palmer Lake Print', serif;
}

/* Screen Reader Text */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* Subheading */
.curved-heading-fun-facts-grid-subheading {
	margin: 0;
	font-size: 16px;
	line-height: 22px;
	color: var(--curved-heading-fun-facts-text-dark);
	text-align: center;
	font-weight: 400;
}

/* Fun Facts Grid */
.curved-heading-fun-facts-grid-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	width: 100%;
}

/* Fun Fact Card */
.curved-heading-fun-facts-grid-card {
	background-color: #C1B488;
	border-radius: 12px;
	padding: 29px 11px 36px;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.curved-heading-fun-facts-grid-card:focus-within {
	outline: 2px solid var(--curved-heading-fun-facts-text-dark);
	outline-offset: 4px;
}

/* Card Figure */
.curved-heading-fun-facts-grid-card-figure {
	width: 100%;
	margin: 0;
	padding: 0;
	position: relative;
}

.curved-heading-fun-facts-grid-card-image {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	border-radius: 12px;
}

/* Card Title */
.curved-heading-fun-facts-grid-card-title {
	margin: 0;
	font-size: 15px;
	line-height: 18px;
	font-weight: 100;
	text-transform: uppercase;
	color: #F8F2DF;
	font-family: 'Sunrider';
	letter-spacing: 0;
	text-align: center;
	min-height: 55px;
}

/* Responsive Design - Tablet (768px - 1024px) */
@media (max-width: 1024px) {
	.curved-heading-fun-facts-grid {
		padding: 60px 20px;
	}

	.curved-heading-fun-facts-grid-cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 25px;
	}

	.curved-heading-fun-facts-grid-heading-wrapper {
		margin-bottom: 50px;
	}
}

/* Responsive Design - Mobile (max-width: 767px) */
@media (max-width: 768px) {
	.curved-heading-fun-facts-grid {
		padding: 50px 15px;
	}

	.curved-heading-fun-facts-grid-cards {
		gap: 15px;
		width: 100%;
		max-width: 100%;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.curved-heading-fun-facts-grid-heading-wrapper {
		margin-bottom: 40px;
	}

	.curved-heading-fun-facts-grid-svg {
		min-height: 100px;
	}

	.curved-heading-fun-facts-grid-card {
		padding: 15px;
		width: 48%;
	}
}

/* Extra Small Devices (max-width: 480px) */
@media (max-width: 480px) {
	.curved-heading-fun-facts-grid-card-title {
font-size:12px;}
.curved-heading-fun-facts-grid-card-image {
    width: 100%!important;
    height: auto!important;
    object-fit: cover;
    margin: 12px auto 0;
}
.curved-heading-fun-facts-grid-cards {
gap:10px;}

}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.curved-heading-fun-facts-grid-text {
		fill: var(--curved-heading-fun-facts-text-dark);
		stroke: var(--curved-heading-fun-facts-text-dark);
		stroke-width: 0.5px;
	}

	.curved-heading-fun-facts-grid-card {
		border: 2px solid var(--curved-heading-fun-facts-text-dark);
	}

	.curved-heading-fun-facts-grid-card-image {
		border: 1px solid var(--curved-heading-fun-facts-text-dark);
	}
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
	.curved-heading-fun-facts-grid-card {
		transition: none;
	}

	.curved-heading-fun-facts-grid-text {
		opacity: 1;
	}
}

/* Print Styles */
@media print {
	.curved-heading-fun-facts-grid {
		background-color: #ffffff;
		background-image: none;
		padding: 20px;
		page-break-inside: avoid;
	}

	.curved-heading-fun-facts-grid-svg {
		display: none;
	}

	.curved-heading-fun-facts-grid-subheading {
		color: #000000;
		font-size: 18px;
		margin-bottom: 20px;
	}

	.curved-heading-fun-facts-grid-cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}

	.curved-heading-fun-facts-grid-card {
		background-color: #ffffff;
		border: 1px solid #000000;
		page-break-inside: avoid;
	}

	.curved-heading-fun-facts-grid-card-title {
		color: #000000;
	}
}

/* Support for block wrapper color classes */
.curved-heading-fun-facts-grid.has-background {
	/* Background color handled by wrapper */
}

.curved-heading-fun-facts-grid.has-text-color .curved-heading-fun-facts-grid-subheading,
.curved-heading-fun-facts-grid.has-text-color .curved-heading-fun-facts-grid-card-title {
	color: inherit;
}

.curved-heading-fun-facts-grid.has-text-color .curved-heading-fun-facts-grid-text {
	fill: currentColor;
}

/* Focus styles for accessibility */
.curved-heading-fun-facts-grid-card:focus-visible {
	outline: 2px solid var(--curved-heading-fun-facts-text-dark);
	outline-offset: 4px;
	border-radius: 12px;
}

/* Ensure proper spacing and alignment */
.curved-heading-fun-facts-grid-card-figure {
}

.curved-heading-fun-facts-grid-card-image {
	width: 202px;
	height: 259px;
	object-fit: cover;
	margin: 12px auto 0;
}


