/* =====================================================
   CARE Utilities CSS
   Tailwind-inspired utilities for WordPress + Elementor
   ===================================================== */

/* ---------- Display ---------- */

.block {
	display: block;
}
.inline-block {
	display: inline-block;
}
.hidden {
	display: none !important;
}

.flex {
	display: flex;
}
.inline-flex {
	display: inline-flex;
}
.grid {
	display: grid;
}

/* ---------- Flex ---------- */

.flex-row {
	flex-direction: row;
}
.flex-col {
	flex-direction: column;
}
.flex-wrap {
	flex-wrap: wrap;
}

.items-start {
	align-items: flex-start;
}
.items-center {
	align-items: center;
}
.items-end {
	align-items: flex-end;
}
.items-stretch {
	align-items: stretch;
}

.justify-start {
	justify-content: flex-start;
}
.justify-center {
	justify-content: center;
}
.justify-end {
	justify-content: flex-end;
}
.justify-between {
	justify-content: space-between;
}

.grow {
	flex-grow: 1;
}
.shrink-0 {
	flex-shrink: 0;
}

/* ---------- Grid ---------- */

.grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-auto-fit {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ---------- Gap ---------- */

.gap-xs {
	gap: var(--space-xs, 8px);
}
.gap-sm {
	gap: var(--space-sm, 16px);
}
.gap-md {
	gap: var(--space-md, 32px);
}
.gap-lg {
	gap: var(--space-lg, 64px);
}
.gap-xl {
	gap: var(--space-xl, 120px);
}

/* ---------- Container ---------- */

.container-custom {
	width: var(--width-container) !important;
	max-width: var(--width-container) !important;
	margin-inline: auto !important;
}

.container-sm {
	width: min(100% - 32px, 900px);
	margin-inline: auto;
}

.container-lg {
	width: min(100% - 32px, 1360px);
	margin-inline: auto;
}

/* ---------- Spacing ---------- */

.p-0 {
	padding: 0;
}
.p-xs {
	padding: var(--space-xs, 8px);
}
.p-sm {
	padding: var(--space-sm, 16px);
}
.p-md {
	padding: var(--space-md, 32px);
}
.p-lg {
	padding: var(--space-lg, 64px);
}

.py-sm {
	padding-block: var(--space-sm, 16px);
}
.py-md {
	padding-block: var(--space-md, 32px);
}
.py-lg {
	padding-block: var(--space-lg, 64px);
}
.py-xl {
	padding-block: var(--space-xl, 120px);
}

.px-sm {
	padding-inline: var(--space-sm, 16px);
}
.px-md {
	padding-inline: var(--space-md, 32px);
}
.px-lg {
	padding-inline: var(--space-lg, 64px);
}

.mt-0 {
	margin-top: 0 !important;
}
.mt-sm {
	margin-top: var(--space-sm, 16px) !important;
}
.mt-md {
	margin-top: var(--space-md, 32px) !important;
}
.mt-lg {
	margin-top: var(--space-lg, 64px) !important;
}

.mb-0 {
	margin-bottom: 0 !important;
}
.mb-sm {
	margin-bottom: var(--space-sm, 16px) !important;
}
.mb-md {
	margin-bottom: var(--space-md, 32px) !important;
}
.mb-lg {
	margin-bottom: var(--space-lg, 64px) !important;
}

.mx-auto {
	margin-inline: auto;
}

/* ---------- Width / Height ---------- */

.w-full {
	width: 100%;
}
.h-full {
	height: 100%;
}
.min-h-screen {
	min-height: 100vh;
}

/* ---------- Text ---------- */

.text-left {
	text-align: left !important;
}
.text-center {
	text-align: center !important;
}
.text-right {
	text-align: right !important;
}

.text-primary {
	color: var(--color-primary, #f15a24) !important;
}
.text-secondary {
	color: var(--color-secondary, #1f2937) !important;
}
.text-tertiary {
	color: var(--color-tertiary, #f15a24) !important;
}
.text-pink {
	color: var(--color-pink, #df86ef) !important;
}
.text-body {
	color: var(--color-text, #000) !important;
}
.text-white {
	color: #fff;
}

.text-sm {
	font-size: 0.875rem;
}
.text-base {
	font-size: 1rem;
}
.text-lg {
	font-size: 1.25rem;
}
.text-xl {
	font-size: 1.5rem;
}
.text-2xl {
	font-size: clamp(2rem, 4vw, 3.5rem);
}

.font-normal {
	font-weight: 400;
}
.font-medium {
	font-weight: 500;
}
.font-bold {
	font-weight: 700;
}

.leading-tight {
	line-height: 1.1;
}
.leading-normal {
	line-height: 1.5;
}
.leading-relaxed {
	line-height: 1.7;
}

/* ---------- Backgrounds ---------- */

.bg-white {
	background: #fff;
}
.bg-light {
	background: var(--color-light, #f7efe4);
}
.bg-primary {
	background: var(--color-primary, #f15a24);
}
.bg-secondary {
	background: var(--color-secondary, #1f2937);
}
.bg-tertiary {
	background: var(--color-tertiary, #f15a24);
}
.bg-gradient {
	background: #5d2263;
	background: linear-gradient(
		90deg,
		rgba(93, 34, 99, 1) 0%,
		rgba(36, 30, 78, 1) 100%
	);
}
.bg-gradient-light {
	background: #fffcf7;
	background: linear-gradient(
		90deg,
		rgba(255, 252, 247, 1) 0%,
		rgba(245, 216, 170, 1) 100%
	);
}

/* ---------- Border / Radius ---------- */

.rounded-sm {
	border-radius: 8px;
}
.rounded-md {
	border-radius: var(--radius-md, 12px);
}
.rounded-lg {
	border-radius: 24px;
}
.rounded-full {
	border-radius: 999px;
}

.border {
	border: 1px solid var(--color-border, #ddd);
}
.border-primary {
	border-color: var(--color-primary, #f15a24);
}

/* ---------- Images ---------- */

.img-fluid {
	display: block;
	max-width: 100%;
	height: auto;
}

.object-cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Position ---------- */

.relative {
	position: relative;
}
.absolute {
	position: absolute;
}
.overflow-hidden {
	overflow: hidden;
}

.z-10 {
	z-index: 10;
}
.z-50 {
	z-index: 50;
}

/* ---------- Effects ---------- */

.shadow-sm {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.shadow-md {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.transition {
	transition: all 0.25s ease;
}

.hover-up {
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.hover-up:hover {
	transform: translateY(-4px);
}

/* ---------- Components Helpers ---------- */

.section {
	padding-block: var(--space-xl, 120px);
}

.section-sm {
	padding-block: var(--space-lg, 64px);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
	border-radius: 999px;
	padding: 14px 28px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: all 0.25s ease;
}

.btn-primary {
	background: var(--color-primary, #f15a24);
	color: #fff;
}

.btn-primary:hover {
	transform: translateY(-2px);
	opacity: 0.92;
}

.card {
	background: #fff;
	border-radius: 24px;
	padding: var(--space-md, 32px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.lg\:grid-1 {
		grid-template-columns: 1fr;
	}

	.lg\:text-center {
		text-align: center;
	}
}

@media (max-width: 768px) {
	.md\:hidden {
		display: none;
	}
	.md\:block {
		display: block;
	}
	.md\:flex {
		display: flex;
	}

	.md\:flex-col {
		flex-direction: column;
	}

	.md\:grid-1 {
		grid-template-columns: 1fr;
	}

	.md\:text-center {
		text-align: center;
	}

	.section {
		padding-block: 72px;
	}

	.py-xl {
		padding-block: 72px;
	}
}

@media (max-width: 480px) {
	.sm\:hidden {
		display: none;
	}
	.sm\:block {
		display: block;
	}

	.sm\:text-center {
		text-align: center;
	}

	.container-custom,
	.container-sm,
	.container-lg {
		width: min(100% - 24px, var(--container-width, 1200px)) !important;
	}
}
