/*
 * A1C widgets — shared foundation (tokens, container, backgrounds, buttons,
 * cards, toggles, lists, rich text, reveal animation).
 * Loaded as a dependency of every widget stylesheet.
 *
 * Selectors are always two classes deep (e.g. `.a1c-section .a1c-btn`) so they
 * outrank Astra / Elementor Kit rules like `.entry-content h2` or
 * `.elementor-kit-38 a` without resorting to !important.
 */

.a1c-section {
	--a1c-navy: #0A2540;
	--a1c-navy-deep: #08203A;
	--a1c-navy-mid: #123A63;
	--a1c-red: #A70000;
	--a1c-red-dark: #8A0000;
	--a1c-blue: #0F6FB8;
	--a1c-ink: #16202B;
	--a1c-text: #4A5A6B;
	--a1c-text-strong: #3E4E5E;
	--a1c-muted: #5B6B7C;
	--a1c-muted-light: #78889A;
	--a1c-sky: #8FB6D9;
	--a1c-on-dark: #DCE7F2;
	--a1c-border: #E3E9F0;
	--a1c-border-soft: #EDF1F6;
	--a1c-field-border: #D8E0E9;
	--a1c-light: #F5F7FA;
	--a1c-field: #FBFCFE;
	--a1c-badge: #F0F4F9;

	--a1c-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--a1c-font-serif: 'Source Serif 4', Georgia, serif;
	--a1c-gutter: clamp(20px, 4.5vw, 40px);
	--a1c-pad-y: clamp(52px, 8vw, 84px);
	--a1c-ease: cubic-bezier(.16, .8, .3, 1);

	position: relative;
	font-family: var(--a1c-font);
	color: var(--a1c-ink);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

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

.a1c-section h1,
.a1c-section h2,
.a1c-section h3,
.a1c-section h4,
.a1c-section p,
.a1c-section ul,
.a1c-section ol {
	margin: 0;
	padding: 0;
}

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

/* Layout ----------------------------------------------------------------- */

.a1c-section .a1c-container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 var(--a1c-gutter);
}

.a1c-section.a1c-section--padded {
	padding: var(--a1c-pad-y) 0;
}

.a1c-section.a1c-bg-white {
	background: #fff;
}

.a1c-section.a1c-bg-light {
	background: var(--a1c-light);
	border-top: 1px solid var(--a1c-border);
}

.a1c-section.a1c-bg-navy {
	background: var(--a1c-navy);
	color: #fff;
}

.a1c-section.a1c-bg-gradient {
	background: linear-gradient(160deg, var(--a1c-navy-deep) 0%, var(--a1c-navy) 60%, var(--a1c-navy-mid) 100%);
	color: #fff;
}

/* Typography helpers ------------------------------------------------------ */

.a1c-section .a1c-eyebrow {
	margin-bottom: 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--a1c-red);
}

.a1c-section .a1c-rich p,
.a1c-section .a1c-rich li {
	font-size: 16px;
	line-height: 1.7;
	color: var(--a1c-text);
}

.a1c-section .a1c-rich > * + * {
	margin-top: 14px;
}

.a1c-section .a1c-rich h4 {
	margin-top: 18px;
	font-family: var(--a1c-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--a1c-navy);
}

.a1c-section .a1c-rich h4:first-child {
	margin-top: 0;
}

.a1c-section .a1c-rich h4 + p {
	margin-top: 6px;
}

.a1c-section .a1c-rich strong {
	color: var(--a1c-navy);
	font-weight: 700;
}

.a1c-section .a1c-rich a {
	color: var(--a1c-blue);
	font-weight: 700;
	text-decoration: none;
	transition: color .2s ease;
}

.a1c-section .a1c-rich a:hover {
	color: var(--a1c-navy);
}

.a1c-section .a1c-rich hr {
	margin: 20px 0;
	border: 0;
	border-top: 1px solid var(--a1c-border-soft);
}

.a1c-section .a1c-rich ul {
	display: grid;
	gap: 8px;
	list-style: none;
}

.a1c-section .a1c-rich ul li {
	position: relative;
	padding-left: 28px;
}

.a1c-section .a1c-rich ul li::before {
	content: '—';
	position: absolute;
	left: 0;
	color: var(--a1c-red);
	font-weight: 700;
}

/* Buttons ----------------------------------------------------------------- */

.a1c-section .a1c-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px clamp(20px, 3vw, 30px);
	border: 1px solid transparent;
	border-radius: 2px;
	font-family: var(--a1c-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: transform .22s var(--a1c-ease), box-shadow .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease;
}

.a1c-section .a1c-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -8px rgba(10, 37, 64, .35);
}

.a1c-section .a1c-btn:active {
	transform: translateY(0);
}

.a1c-section .a1c-btn--primary,
.a1c-section .a1c-btn--primary:hover,
.a1c-section .a1c-btn--primary:focus {
	background: var(--a1c-red);
	color: #fff;
}

.a1c-section .a1c-btn--primary:hover {
	background: var(--a1c-red-dark);
}

.a1c-section .a1c-btn--ghost,
.a1c-section .a1c-btn--ghost:hover,
.a1c-section .a1c-btn--ghost:focus {
	background: transparent;
	border-color: rgba(255, 255, 255, .28);
	color: #fff;
	font-weight: 600;
}

.a1c-section .a1c-btn--ghost:hover {
	border-color: rgba(255, 255, 255, .6);
}

.a1c-section .a1c-link {
	font-size: 14px;
	font-weight: 700;
	color: var(--a1c-blue);
	text-decoration: none;
	transition: color .2s ease;
}

.a1c-section .a1c-link:hover {
	color: var(--a1c-navy);
}

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

.a1c-section .a1c-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--a1c-border);
	transition: transform .28s var(--a1c-ease), box-shadow .28s ease, border-color .28s ease;
}

.a1c-section .a1c-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px -12px rgba(10, 37, 64, .16);
	border-color: var(--a1c-field-border);
}

.a1c-section .a1c-card--accent-navy {
	border-top: 3px solid var(--a1c-navy);
}

.a1c-section .a1c-card--accent-red {
	border-top: 3px solid var(--a1c-red);
}

.a1c-section .a1c-card--accent-blue {
	border-top: 3px solid var(--a1c-blue);
}

.a1c-section .a1c-badge {
	display: inline-block;
	padding: 8px 14px;
	background: var(--a1c-badge);
	font-size: 13px;
	font-weight: 700;
	color: var(--a1c-navy);
}

/* Dash list ---------------------------------------------------------------- */

.a1c-section .a1c-list {
	display: grid;
	gap: 12px;
	list-style: none;
}

.a1c-section .a1c-list__item {
	display: grid;
	grid-template-columns: 16px 1fr;
	gap: 12px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--a1c-text-strong);
}

.a1c-section .a1c-list__item::before {
	content: '—';
	color: var(--a1c-red);
	font-weight: 700;
}

/* Toggle ("Pełny opis") ---------------------------------------------------- */

.a1c-section .a1c-toggle__summary {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	list-style: none;
	font-size: 14px;
	font-weight: 700;
	color: var(--a1c-blue);
}

.a1c-section .a1c-toggle__summary::-webkit-details-marker {
	display: none;
}

.a1c-section .a1c-toggle__icon {
	display: inline-block;
	font-size: 16px;
	line-height: 1;
	transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}

.a1c-section .a1c-toggle[open] .a1c-toggle__icon {
	transform: rotate(45deg);
}

.a1c-section .a1c-toggle__content {
	padding-top: 18px;
	animation: a1c-accordion-in .32s var(--a1c-ease);
}

@keyframes a1c-accordion-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Reveal on scroll (enabled by js/reveal.js adding .a1c-js to <html>) ------ */

.a1c-js [data-a1c-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s var(--a1c-ease), transform .7s var(--a1c-ease);
}

.a1c-js [data-a1c-reveal].is-visible {
	opacity: 1;
	transform: none;
}

@keyframes a1c-fade-up {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.a1c-js [data-a1c-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.a1c-section .a1c-btn,
	.a1c-section .a1c-card,
	.a1c-section .a1c-toggle__content {
		transition: none;
		animation: none;
	}
}
