/*
 * Base utilities shared by every page (from prototype/index.html).
 * Only inntek-* classes are styled here; Kadence markup is configured via theme options.
 */

@layer inntek {
	/*
	 * Element defaults from the prototype, scoped to INNTEK components so Kadence-rendered
	 * post content keeps Kadence typography.
	 */
	:where(.inntek-hero, .inntek-section, .inntek-page-hero, .inntek-project, .inntek-header, .inntek-mega, .inntek-drawer, .inntek-footer) :where(h1, h2, h3, h4) {
		margin: 0;
		color: var(--inntek-ink);
		font-weight: 700;
		line-height: 1.2;
		text-wrap: balance;
	}

	:where(.inntek-hero, .inntek-section, .inntek-page-hero, .inntek-project, .inntek-header, .inntek-mega, .inntek-drawer, .inntek-footer) :where(p) {
		margin: 0;
		text-wrap: pretty;
	}

	/* Section scaffolding (prototype lines 45-51). */
	.inntek-section { padding-block: clamp(72px, 9vw, 128px); }
	.inntek-section.inntek-section--alt { background: var(--inntek-bg-alt); }
	.inntek-h2 { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -0.01em; }
	.inntek-lead { max-width: 62ch; color: var(--inntek-muted); font-size: clamp(17px, 1.3vw, 19px); }
	.inntek-kicker { color: var(--inntek-brand); font-size: 15px; font-weight: 600; }
	.inntek-section__head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(36px, 4vw, 60px); }
	.inntek-section__head.inntek-section__head--center { justify-items: center; margin-inline: auto; text-align: center; }

	.inntek-container {
		max-width: calc(var(--inntek-wrap) + var(--inntek-gutter) * 2);
		margin-inline: auto;
		padding-left: max(var(--inntek-gutter), env(safe-area-inset-left, 0px));
		padding-right: max(var(--inntek-gutter), env(safe-area-inset-right, 0px));
	}

	.inntek-container--wide {
		max-width: calc(var(--inntek-wide) + var(--inntek-gutter) * 2);
	}

	.inntek-icon {
		display: inline-block;
		flex: none;
		max-width: 1.2em;
		overflow: hidden;
		font-family: "Material Symbols Rounded";
		font-size: 24px;
		font-style: normal;
		font-weight: 400;
		font-variation-settings: "FILL" 0, "wght" 350, "opsz" 24;
		line-height: 1;
		letter-spacing: normal;
		text-transform: none;
		white-space: nowrap;
		direction: ltr;
		user-select: none;
	}

	.inntek-sr-only {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.inntek-skip-link {
		position: absolute;
		top: -60px;
		left: 16px;
		z-index: 100;
		padding: 10px 16px;
		border-radius: var(--inntek-r-sm);
		background: var(--inntek-ink);
		color: #fff;
		font-weight: 600;
		text-decoration: none;
	}

	.inntek-skip-link:focus {
		top: 12px;
	}

	.inntek-mono {
		font-family: var(--inntek-mono);
		font-variant-numeric: tabular-nums;
	}
}

/* Breadcrumb (products 006, knowledge 007), prototype lines 462-464. */
@layer inntek {
	.inntek-breadcrumb{font-size:14px;line-height:20px;color:var(--inntek-muted);display:flex;gap:6px;align-items:center;flex-wrap:wrap}
	.inntek-breadcrumb a{color:inherit;text-decoration:none}
	.inntek-breadcrumb a:hover{color:var(--inntek-brand)}
	.inntek-breadcrumb .inntek-icon{font-size:16px;line-height:1}
}

/* Respect reduced motion everywhere (CLAUDE.md allows !important here). */
@media (prefers-reduced-motion: reduce) {
	@layer inntek {
		*,
		*::before,
		*::after {
			scroll-behavior: auto !important;
			transition-duration: 0.01ms !important;
			animation-duration: 0.01ms !important;
			animation-iteration-count: 1 !important;
		}
	}
}
