/*
Theme Name: Synergie
Description: Lekki motyw platformy SYNERGIE 2.0 (Akademia Tarnowska) — zaślepka: pełnoekranowa animacja + podstrony O projekcie i Zgłoś projekt.
Version: 1.3.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: synergie
*/

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--syn-ink: #3b283c;
	--syn-paper: #dfe0e2;
	/* Wartości z pliku Figmy „Synergie 2.0” (ramki 1366 px / 390 px); styl „Gradient-2”: #00affe → #dfe0e2 na 80,7% szerokości */
	--syn-gradient: linear-gradient(90deg, #00affe 0%, #dfe0e2 80.7%);
	--syn-gutter: 40px;
	--syn-font: "Inter", "Helvetica Neue", Arial, sans-serif;
	/* Etykiety i tytuł: w Figmie Neue Haas Grotesk Display Pro 65 Medium (brak licencji webfont) — tymczasowo Inter */
	--syn-font-display: var(--syn-font);
	--syn-display-weight: 600;
	--syn-label: 20px;
	--syn-label-lh: 26px;
	--syn-text: 26px;
	--syn-text-lh: 33.8px;
	--syn-text-ls: 0;
	--syn-lead-ls: 0;
	--syn-title: 42px;
	--syn-title-lh: 42px;
	--syn-title-ls: 0.01em;
	--syn-tight-lh: 28.6px;
	--syn-app-h: 100vh;
}

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

html,
body { margin: 0; padding: 0; }

body {
	background: var(--syn-paper);
	color: var(--syn-ink);
	font-family: var(--syn-font);
	font-size: var(--syn-text);
	line-height: var(--syn-text-lh);
	font-weight: 500;
	/* Inter 4 ma oś opsz — Figma renderuje wariant tekstowy (opsz 14), przeglądarka domyślnie wybrałaby węższy „display” */
	font-optical-sizing: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ===== Nagłówek wspólny: SYNERGIE ——— 2.0 | O PROJEKCIE / X ===== */

.syn-label,
.syn-call__title { font-optical-sizing: auto; }

.syn-label {
	font-family: var(--syn-font-display);
	font-size: var(--syn-label);
	line-height: var(--syn-label-lh);
	font-weight: var(--syn-display-weight);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.syn-bar {
	position: absolute;
	top: 13px;
	left: var(--syn-gutter);
	width: calc(50% - 20px - var(--syn-gutter));
	padding-top: 3px;
	border-top: 2px solid currentColor;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	z-index: 5;
}

.syn-nav {
	position: absolute;
	top: 18px;
	right: var(--syn-gutter);
	z-index: 5;
}

.syn-bar a:hover,
.syn-bar a:focus-visible,
.syn-nav a:hover,
.syn-nav a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

/* Zamknięcie (X) na stronie O projekcie */
.syn-close {
	position: absolute;
	top: 20px;
	right: var(--syn-gutter);
	width: 46px;
	height: 18px;
	z-index: 5;
}

.syn-close::before,
.syn-close::after {
	content: "";
	position: absolute;
	left: -1px;
	top: 50%;
	width: 48px;
	height: 2px;
	background: currentColor;
	transform: rotate(21deg);
}

.syn-close::after { transform: rotate(-21deg); }

/* Pionowa pigułka ZGŁOŚ PROJEKT */
.syn-cta {
	position: absolute;
	top: 50%;
	right: var(--syn-gutter);
	transform: translateY(-50%);
	width: 47px;
	height: 236px;
	padding: 12px 10px 21px;
	border-radius: 60px;
	background: var(--syn-ink);
	color: var(--syn-paper);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
	z-index: 6;
	box-shadow: 0 104px 42px rgba(0, 0, 0, .01), 0 58px 35px rgba(0, 0, 0, .05), 0 26px 26px rgba(0, 0, 0, .09), 0 6px 14px rgba(0, 0, 0, .1);
	transition: background-color .2s ease, box-shadow .2s ease;
}

.syn-cta:hover { background: #523854; box-shadow: 0 104px 42px rgba(0, 0, 0, .02), 0 58px 35px rgba(0, 0, 0, .07), 0 26px 26px rgba(0, 0, 0, .12), 0 6px 14px rgba(0, 0, 0, .14); }
.syn-cta:focus-visible { outline: 2px solid var(--syn-ink); outline-offset: 4px; }

.syn-cta__plus {
	flex: 0 0 auto;
	width: 27px;
	height: 27px;
	border-radius: 50%;
	background: var(--syn-paper);
	position: relative;
}

.syn-cta__plus::before,
.syn-cta__plus::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 11px;
	height: 2px;
	background: var(--syn-ink);
	transform: translate(-50%, -50%);
}

.syn-cta__plus::after { transform: translate(-50%, -50%) rotate(90deg); }

.syn-cta__label {
	font-weight: 500;
	line-height: 26px;
	text-align: center;
	letter-spacing: 0.03em;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	white-space: nowrap;
}

/* ===== Strona główna: animacja na cały viewport ===== */

.syn-home {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	height: var(--syn-app-h);
	overflow: hidden;
	background: var(--syn-gradient);
}

.syn-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.syn-status,
.syn-copy {
	position: absolute;
	bottom: 16px;
	margin: 0;
	white-space: nowrap;
	z-index: 5;
}

.syn-status { left: 50%; transform: translateX(-50%); text-transform: none; }
.syn-copy { right: var(--syn-gutter); text-transform: none; letter-spacing: 0; }

/* ===== Podstrony ===== */

.syn-page {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	padding: 0 var(--syn-gutter) 82px;
}

.syn-page--about { background: var(--syn-gradient) fixed; }
.syn-page--call { background: var(--syn-ink); color: var(--syn-paper); }

.syn-content {
	max-width: 841px;
	letter-spacing: var(--syn-text-ls);
	margin: 0 auto;
}

.syn-content > :first-child { margin-top: 0; }
.syn-content > :last-child { margin-bottom: 0; }

.syn-content p,
.syn-content ul,
.syn-content ol { margin: 0 0 var(--syn-text-lh); }

.syn-content h2,
.syn-content h3 {
	font-size: var(--syn-text);
	line-height: var(--syn-tight-lh);
	font-weight: 700;
	letter-spacing: 0;
	margin: 0 0 30px;
}

/* Zgłoś projekt: nagłówek sekcji 40 px pod tekstem i 20 px nad akapitem (auto-layout w Figmie) */
.syn-page--call .syn-content h2,
.syn-page--call .syn-content h3 { margin: 40px 0 20px; }
.syn-page--call .syn-content p + h2,
.syn-page--call .syn-content ul + h2 { margin-top: calc(40px - var(--syn-text-lh)); }

.syn-content ul,
.syn-content ol { padding-left: 39px; }
.syn-content p:has(+ ul),
.syn-content p:has(+ ol) { margin-bottom: 0; }

.syn-content .syn-lead,
.syn-content p.has-text-lead {
	font-weight: 700;
	line-height: var(--syn-tight-lh);
	letter-spacing: var(--syn-lead-ls);
	margin-bottom: 30px;
}

.syn-content a { text-decoration: underline; text-underline-offset: 3px; }

/* O projekcie */
.syn-about__logo {
	display: block;
	width: min(615px, 100%);
	height: auto;
	margin: 0 auto 36px;
	padding-top: 62px;
}

.syn-about__logo-text {
	display: block;
	padding-top: 72px;
	margin: 0 0 48px;
	text-align: center;
	font-size: 96px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: .06em;
}

.syn-page--about .syn-content { padding-top: 0; }
.syn-page--about .syn-cta { position: fixed; }

/* O projekcie — stopka: finansowanie, logotypy, prawa autorskie (Figma „O Projekcie” 1366 / „iPhone 13 & 14 - 6”) */
.syn-page--about { padding-bottom: 16px; }
.syn-about__footer { max-width: 844px; margin: 53px auto 0; text-align: center; }
.syn-funding { margin: 0; font-size: 16px; line-height: 17.6px; letter-spacing: 0.02em; }
.syn-logos {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 24px clamp(40px, 12vw, 168px);
}
.syn-logos img { display: block; width: auto; }
.syn-logos__wydzial-sztuki-at img { height: 39px; }
.syn-logos__akademia-tarnowska img { height: 25px; }
.syn-logos__mnisw img { height: 39px; }
.syn-about__copy { margin: 57px 0 0; font-size: 16px; line-height: 21px; text-transform: none; letter-spacing: 0; }

/* Zgłoś projekt */
.syn-call__head {
	margin-left: calc(50% + 20px);
	padding-top: 79px;
	margin-bottom: 83px;
}

.syn-call__title {
	margin: 0;
	padding-bottom: 8px;
	font-family: var(--syn-font-display);
	font-size: var(--syn-title);
	line-height: var(--syn-title-lh);
	font-weight: var(--syn-display-weight);
	letter-spacing: var(--syn-title-ls);
	text-transform: uppercase;
	border-bottom: 2px solid currentColor;
}

.syn-call__title span { display: block; max-width: 470px; }

.syn-downloads {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 7px 0 0;
	padding: 0;
	list-style: none;
}

.syn-downloads li { display: flex; }

.syn-downloads a {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

.syn-downloads a:hover span,
.syn-downloads a:focus-visible span { text-decoration: underline; text-underline-offset: 4px; }

.syn-downloads svg { flex: 0 0 auto; width: 25px; height: 25px; }

.syn-call__contact {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 0;
	margin: 28px auto 0;
	max-width: 841px;
	font-size: 20px;
	line-height: 26px;
	letter-spacing: 0.02em;
}

.syn-call__contact span[aria-hidden] { margin: 0 11px; }

/* ===== Tablet ===== */

@media (max-width: 1024px) {
	/* Brak ramki tabletu w Figmie — wartości pośrednie między 1366 a 390 */
	:root { --syn-gutter: 24px; --syn-text: 22px; --syn-text-lh: 28.6px; --syn-tight-lh: 24.2px; --syn-title: 36px; --syn-title-lh: 36px; }
}

/* ===== Mobile ===== */

@media (max-width: 767px) {
	:root {
		--syn-gutter: 20px;
		--syn-label: 16px;
		--syn-label-lh: 21px;
		--syn-text: 18px;
		--syn-text-lh: 23.4px;
		--syn-text-ls: -0.02em;
		--syn-lead-ls: -0.01em;
		--syn-tight-lh: 23.4px;
		--syn-title: 28px;
		--syn-title-lh: 30.8px;
		--syn-title-ls: 0.03em;
	}

	.syn-bar { top: 15px; width: calc(50% - 10px); padding-top: 3px; }
	.syn-close { top: 22px; width: 46px; }
	/* Zgłoś projekt (iPhone 13 & 14 - 7): etykiety 3 px niżej niż na SG */
	.syn-page--call .syn-bar { padding-top: 6px; }
	.syn-page--call .syn-nav { top: 23px; }

	.syn-cta {
		top: auto;
		bottom: 22px;
		right: var(--syn-gutter);
		transform: none;
		width: 41px;
		height: 189px;
		padding: 10px 0 0;
		justify-content: flex-start;
		gap: 10px;
		/* Cień z ramki mobilnej Figmy (pomniejszony względem desktopu) */
		box-shadow: 0 83px 33px rgba(0, 0, 0, .01), 0 47px 28px rgba(0, 0, 0, .05), 0 21px 21px rgba(0, 0, 0, .09), 0 5px 11px rgba(0, 0, 0, .1);
	}

	.syn-cta__plus { width: 21px; height: 21px; }
	.syn-cta__plus::before,
	.syn-cta__plus::after { width: 9px; }
	.syn-cta__label { font-size: 15px; line-height: 19px; }

	/* Strona główna: animacja w wersji na telefon (1024×1700) na cały ekran — wideo .syn-bg jak na desktopie */
	.syn-nav { top: 20px; }
	.syn-status { left: var(--syn-gutter); transform: none; bottom: 22px; }
	.syn-copy { display: none; }

	.syn-content ul,
	.syn-content ol { padding-left: 27px; }
	/* O projekcie (iPhone 13 & 14 - 6): „Czym są?” w jednym bloku z tekstem, oddzielone pustą linią */
	.syn-content h2,
	.syn-content h3 { line-height: var(--syn-text-lh); margin-bottom: var(--syn-text-lh); }
	.syn-content .syn-lead,
	.syn-content p.has-text-lead { line-height: var(--syn-text-lh); }
	.syn-page--call .syn-content h2,
	.syn-page--call .syn-content h3 { line-height: 19.8px; margin-bottom: 20px; }

	.syn-about__logo { width: 100%; padding-top: 64px; margin-bottom: 42px; }
	.syn-about__logo-text { font-size: 48px; padding-top: 72px; }
	/* O projekcie (iPhone 13 & 14 - 6): pigułka wyśrodkowana w pionie */
	.syn-page--about .syn-cta { top: 50%; bottom: auto; transform: translateY(-50%); }
	.syn-about__footer { margin-top: 43px; }
	.syn-funding { font-size: 14px; line-height: 16.8px; }
	.syn-logos { justify-content: flex-start; padding-left: 5px; margin-top: 20px; gap: 26px 27px; }
	.syn-logos__wydzial-sztuki-at img { height: 41px; }
	.syn-logos__akademia-tarnowska img { height: 27px; }
	.syn-logos__mnisw img { height: 33px; }
	.syn-about__copy { margin-top: 50px; }

	.syn-call__head { margin-left: 0; padding-top: 87px; margin-bottom: 33px; }
	.syn-call__title { padding-bottom: 9px; }
	.syn-downloads { display: block; margin-top: 0; }
	.syn-downloads li { border-bottom: 2px solid currentColor; }
	.syn-downloads li:last-child { border-bottom: 0; }
	.syn-downloads a { gap: 14px; padding: 11px 0 13px; font-size: 14px; line-height: 18px; letter-spacing: 0.06em; }
	.syn-downloads svg { width: 20px; height: 20px; }
	.syn-call__contact { flex-direction: column; align-items: center; font-size: 16px; line-height: 21px; }
	.syn-call__contact span[aria-hidden] { display: none; }
}

/* ===== Bardzo niskie okno (np. telefon poziomo, mocno zmniejszona przeglądarka) ===== */

@media (max-height: 360px) {
	.syn-cta {
		top: auto;
		bottom: 14px;
		transform: none;
		flex-direction: row;
		width: auto;
		height: 40px;
		padding: 0 16px 0 8px;
		gap: 10px;
	}
	.syn-page--about .syn-cta { top: auto; bottom: 14px; transform: none; }
	.syn-cta__label { writing-mode: horizontal-tb; transform: none; }
	.syn-status { left: var(--syn-gutter); transform: none; bottom: 22px; }
	.syn-copy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.syn-home .syn-bg { display: none; }
	.syn-home { background: var(--syn-poster) center / cover no-repeat; }
}
