/**
 * USMIA Institutional — companion component classes.
 *
 * Contract for Task 2-6 page templates. All colors/fonts/spacing reference
 * the presets declared in theme.json via WordPress' generated CSS custom
 * properties (--wp--preset--{category}--{slug}), so this file stays the
 * single place to tweak visual weight without touching theme.json again.
 */

/* .material-symbols-outlined — base rule for the Material Symbols icon font
   (enqueued in functions.php). Without it the browser renders the ligature
   text ("gavel", "check", ...) instead of the glyph. Font-size is a sane
   default; pages override it per context (e.g. style="font-size:40px"). */
.material-symbols-outlined {
	font-family: 'Material Symbols Outlined';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	display: inline-block;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	word-wrap: normal;
	white-space: nowrap;
	direction: ltr;
}

/* .usmia-nav — sticky top nav bar with glassmorphism (translated from the
   Stitch mockup's `bg-surface/80 glass-nav border-b border-outline-variant/30`). */
.usmia-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 80px;
	padding-left: var(--wp--preset--spacing--margin-desktop);
	padding-right: var(--wp--preset--spacing--margin-desktop);
	background: color-mix(in srgb, var(--wp--preset--color--surface) 80%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--outline-variant) 30%, transparent);
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* .usmia-nav-link-active — current-section nav link (2px secondary underline). */
.usmia-nav-link-active {
	color: var(--wp--preset--color--secondary) !important;
	border-bottom: 2px solid var(--wp--preset--color--secondary);
	padding-bottom: 4px;
}

/* .usmia-hero — full-bleed hero with a left-to-right primary-color gradient
   overlay on top of a background photo (background-image set per page). */
.usmia-hero {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	min-height: 600px;
	background-color: var(--wp--preset--color--primary);
	background-size: cover;
	background-position: center;
	color: var(--wp--preset--color--on-primary);
}

.usmia-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to right,
		color-mix(in srgb, var(--wp--preset--color--primary) 95%, transparent),
		color-mix(in srgb, var(--wp--preset--color--primary) 50%, transparent)
	);
}

.usmia-hero > * {
	position: relative;
	z-index: 2;
}

/* .usmia-news-card — news card with a 4px left accent bar (primary/blue by
   default, --secondary modifier for red) and a soft hover shadow. */
.usmia-news-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--outline-variant) 30%, transparent);
	border-left: 4px solid var(--wp--preset--color--primary);
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

.usmia-news-card:hover {
	box-shadow: 0 4px 20px rgba(0, 35, 73, 0.08);
}

.usmia-news-card--secondary {
	border-left-color: var(--wp--preset--color--secondary);
}

/* .usmia-service-block — icon-centric service module, light-grey surface
   that lightens to white on hover. */
.usmia-service-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: var(--wp--preset--spacing--gutter);
	background: var(--wp--preset--color--surface-container);
	border-radius: 8px;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.usmia-service-block:hover {
	background: #ffffff;
	box-shadow: 0 4px 20px rgba(0, 35, 73, 0.08);
}

/* .usmia-badge — category chip: tinted color background, dark text. */
.usmia-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 9999px;
	background: color-mix(in srgb, var(--wp--preset--color--secondary) 12%, white);
	color: var(--wp--preset--color--on-surface);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--label-bold);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.usmia-badge--primary {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 12%, white);
}

.usmia-badge--tertiary {
	background: color-mix(in srgb, var(--wp--preset--color--tertiary-accent) 15%, white);
}

/* .usmia-cta-decorated — CTA section with an oversized decorative icon
   overlay clipped to the section bounds; same positioning-context pattern as
   .usmia-hero above (section: relative + hidden overflow, content: relative
   + stacked above the icon via z-index). */
.usmia-cta-decorated {
	position: relative;
	overflow: hidden;
}

.usmia-cta-decorated__content {
	position: relative;
	z-index: 1;
}

/* .usmia-footer — full-width Patriot Blue footer wrapper; the 4-column
   layout itself is built with core/columns in parts/footer.html. */
.usmia-footer {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
	padding-top: var(--wp--preset--spacing--section-gap);
	padding-bottom: var(--wp--preset--spacing--section-gap);
}
