/* ==========================================================================
   Mission & Vision Widget — Frontend Styles
   All selectors are scoped under .mv-section to avoid theme/plugin conflicts.
   ========================================================================== */

.mv-section {
	box-sizing: border-box;
}

.mv-section *,
.mv-section *::before,
.mv-section *::after {
	box-sizing: border-box;
}

/* -------------------- Header -------------------- */

.mv-header__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.mv-header__icon i {
	display: block;
}

.mv-header__icon svg {
	display: block;
	fill: currentColor;
}

.mv-header__title {
	margin: 0;
	line-height: 1.2;
}

.mv-header__desc {
	margin: 0;
	line-height: 1.6;
}

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

.mv-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	width: 100%;
}

/* -------------------- Card -------------------- */

.mv-card {
	--mv-accent: #C9A24B;
	position: relative;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: stretch;
	text-align: left;
	text-decoration: none;
	border-style: solid;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	will-change: transform;
	height: 100%;
	width: 100%;
}

a.mv-card {
	color: inherit;
}

.mv-card:focus-visible {
	outline: 3px solid var(--mv-accent);
	outline-offset: 3px;
}

/* -------------------- Icon Column -------------------- */

.mv-card__icon-col {
	flex: 0 0 35%;
	max-width: 35%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

/* -------------------- Vertical Divider -------------------- */

.mv-card__divider-vertical {
	flex: 0 0 auto;
	align-self: center;
	width: 1px;
	height: 65%;
	background-color: rgba(0, 0, 0, 0.15);
	margin-left: 24px;
	margin-right: 24px;
}

.mv-vdivider-accent .mv-card__divider-vertical {
	background-color: var(--mv-accent);
}

/* -------------------- Icon Box -------------------- */

.mv-card__icon-box {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-style: solid;
	border-color: var(--mv-accent);
	color: var(--mv-accent);
	background: transparent;
}

.mv-card__icon-box i {
	line-height: 1;
	color: var(--mv-accent);
}

.mv-card__icon-box svg {
	fill: var(--mv-accent);
	display: block;
}

/* Diamond: rotate box, counter-rotate inner icon so glyph stays upright */
.mv-card__icon-box--diamond {
	border-radius: 12px;
	transform: rotate(45deg);
}

.mv-card__icon-box--diamond .mv-card__icon-inner {
	display: inline-flex;
	transform: rotate(-45deg);
}

.mv-card__icon-box--circle {
	border-radius: 50%;
}

.mv-card__icon-box--square {
	border-radius: 8px;
}

.mv-card__icon-box--none {
	border: none;
	color: var(--mv-accent);
}

.mv-card__icon-box--none i,
.mv-card__icon-box--none svg {
	color: var(--mv-accent);
	fill: var(--mv-accent);
}

/* When "use accent color" is disabled, icon color/border is controlled
   directly by custom color selectors targeting .mv-card__icon-box, which
   override the CSS variable usage below via specificity in editor output. */

/* -------------------- Card Content -------------------- */

.mv-card__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1 1 0%;
	min-width: 0;
	max-width: 100%;
}

.mv-card__label {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
}

.mv-label-accent .mv-card__label {
	color: var(--mv-accent);
}

.mv-card__heading {
	margin: 0;
	line-height: 1.2;
}

.mv-card__divider {
	height: 3px;
	background-color: #cccccc;
	border: none;
	display: block;
}

.mv-divider-accent .mv-card__divider {
	background-color: var(--mv-accent);
}

.mv-card__desc {
	margin: 0;
	line-height: 1.7;
}

/* When icon "use accent color" switch is on, ensure inner icon follows accent */
.mv-icon-accent .mv-card__icon-box,
.mv-icon-accent .mv-card__icon-box i,
.mv-icon-accent .mv-card__icon-box svg {
	color: var(--mv-accent);
	border-color: var(--mv-accent);
	fill: var(--mv-accent);
}

/* Default state (accent switch on by default): icon box already inherits
   --mv-accent via base rules above, this class simply reinforces intent. */

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

/* Note: card column count (2 → 1) is controlled by the widget's
   responsive "Columns" control in Elementor, not hardcoded here, so the
   editor's per-breakpoint choice is always respected. */

@media (max-width: 767px) {
	.mv-card {
		text-align: left;
	}

	.mv-card__icon-col {
		min-width: 64px;
	}
}

@media (max-width: 480px) {
	.mv-card__divider-vertical {
		margin-left: 12px;
		margin-right: 12px;
	}
}

/* -------------------- Reduced Motion -------------------- */

@media (prefers-reduced-motion: reduce) {
	.mv-card {
		transition: none !important;
	}
}

/* -------------------- Print -------------------- */

@media print {
	.mv-card {
		box-shadow: none !important;
		break-inside: avoid;
	}
}
