/*
Theme Name: Czereśniowy Sad
Description: Motyw strony ślubnej Juls & Gawronka – zdjęcie w tle, zegar odliczający do ślubu, szczegóły, RSVP i FAQ.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: czeresniowy-sad
*/

:root {
	--braz: #5c453f;
	--braz-ciemny: #3a231d;
	--roz: #d1837e;
	--roz-jasny: #f0b3ae;
	--bialy: #fff;
	--linia: rgba(255, 255, 255, .22);
	--pismo: 'Great Vibes', 'Snell Roundhand', cursive;
	--tekst: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--braz-ciemny);
	color: var(--bialy);
	font-family: var(--tekst);
	font-size: 17px;
	line-height: 1.7;
}

img,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--roz-jasny);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--bialy);
}

:focus-visible {
	outline: 2px solid var(--roz-jasny);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Tło i ramka ---------- */

.site-bg {
	position: fixed;
	top: 0;
	left: 0;
	z-index: -1;
	width: 100%;
	/* lvh: tło nie skacze, gdy na telefonie chowa się pasek adresu. */
	height: 100vh;
	height: 100lvh;
	background-image: var(--tlo);
	background-position: center;
	background-size: cover;
}

.site-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(rgba(40, 22, 18, .34) 1px, transparent 1.3px) 0 0 / 4px 4px,
		linear-gradient(rgba(209, 131, 126, .12), rgba(58, 35, 29, .3));
}

.site-box {
	max-width: 1140px;
	margin: 30px auto;
	background: rgba(58, 35, 29, .66);
	box-shadow: 0 10px 50px rgba(0, 0, 0, .35);
}

/* ---------- Nagłówek i menu ---------- */

.site-header {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	min-height: 120px;
	background: rgba(92, 69, 63, .94);
}

.site-logo {
	display: flex;
	align-items: center;
	padding: 10px 40px;
	color: var(--bialy);
	font-family: var(--pismo);
	font-size: 44px;
	line-height: 1.1;
	text-decoration: none;
	white-space: nowrap;
}

.site-nav {
	display: flex;
}

.nav-list {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-list li {
	display: flex;
	border-left: 1px dashed rgba(255, 255, 255, .16);
}

.nav-list a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 170px;
	padding: 20px 18px;
	color: var(--bialy);
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .2s;
}

.nav-title {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .04em;
}

.nav-sub {
	font-size: 12px;
	opacity: .85;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
	background: var(--braz-ciemny);
}

.nav-toggle {
	display: none;
}

/* ---------- Strona główna ---------- */

.hero {
	padding: 70px 30px 50px;
	text-align: center;
}

.hero-monogram {
	display: block;
	width: clamp(190px, 30vw, 280px);
	height: auto;
	margin: -20px auto 26px;
	filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35));
}

.hero-para {
	margin: 0 0 14px;
	font-family: var(--pismo);
	font-size: clamp(44px, 14.4vw, 112px);
	font-weight: 400;
	line-height: 1.1;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.ikona {
	display: inline-block;
	width: 32px;
	height: 30px;
	vertical-align: middle;
}

.ikona-czeresnie {
	flex: none;
	width: 30px;
	height: 27px;
	color: var(--roz-jasny);
}

.linia-ozdobna {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 22px auto 30px;
	font-size: 17px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.linia-ozdobna::before,
.linia-ozdobna::after {
	content: "";
	flex: 0 1 60px;
	height: 1px;
	background: rgba(255, 255, 255, .7);
}

.linia-ozdobna::before { order: -1; }

.linia-ozdobna .ikona-czeresnie:first-child { order: -2; }

.linia-ozdobna .ikona-czeresnie:last-child {
	order: 2;
	transform: scaleX(-1);
}

.linia-ozdobna--mala {
	margin: 34px auto 0;
}

.zegar {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	max-width: 760px;
	margin: 0 auto;
}

.zegar-kafel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	border: 2px solid var(--bialy);
	background: rgba(58, 35, 29, .35);
}

.zegar-liczba {
	font-family: var(--pismo);
	font-size: clamp(44px, 8vw, 78px);
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
}

.zegar-etykieta {
	font-size: 15px;
}

/* ---------- Treść ---------- */

.tresc {
	max-width: 900px;
	margin: 0 auto;
	padding: 50px 30px 60px;
	text-align: center;
}

.tresc--powitanie {
	max-width: 760px;
	padding-top: 10px;
}

.tytul-strony h1,
.tresc h1 {
	margin: 0;
	font-family: var(--pismo);
	font-size: clamp(48px, 8vw, 68px);
	font-weight: 400;
	line-height: 1.15;
}

.tytul-ozdoba {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 14px 0 40px;
	color: rgba(255, 255, 255, .85);
}

.tytul-ozdoba::before,
.tytul-ozdoba::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(255, 255, 255, .6);
}

.ornament {
	flex: none;
	width: 110px;
	height: 34px;
}

.tresc h2 {
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px dotted rgba(255, 255, 255, .55);
	font-family: var(--pismo);
	font-size: clamp(40px, 6vw, 52px);
	font-weight: 400;
	line-height: 1.2;
}

.tresc h3 {
	margin: 20px 0 6px;
	font-size: 22px;
	font-weight: 700;
}

.tresc p {
	margin: 0 0 16px;
}

.tresc .wp-block-columns {
	gap: 50px;
	margin: 0 0 40px;
}

.tresc .podpis {
	margin-top: 26px;
	font-family: var(--pismo);
	font-size: 46px;
	line-height: 1.2;
}

.tresc .has-large-font-size {
	font-size: 20px !important;
}

.tresc .wp-block-buttons {
	gap: 16px;
	margin-top: 34px;
}

.wp-block-button__link,
.rsvp-wyslij {
	display: inline-block;
	padding: 14px 34px;
	border: 2px solid var(--bialy);
	border-radius: 0;
	background: transparent;
	color: var(--bialy);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .08em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s, border-color .2s;
}

.wp-block-button__link:hover,
.rsvp-wyslij:hover {
	border-color: var(--roz);
	background: var(--roz);
	color: var(--bialy);
}

.rsvp-wyslij[disabled] {
	opacity: .6;
	cursor: progress;
}

/* Mapa i zdjęcia */

.mapa {
	margin: 0 0 40px;
}

.mapa iframe {
	display: block;
	width: 100%;
	height: 420px;
	border: 0;
	border-radius: 3px;
}

.tresc .wp-block-gallery {
	margin: 0 0 40px;
}

.tresc .wp-block-gallery img {
	border: 4px solid rgba(255, 255, 255, .9);
}

/* ---------- FAQ ---------- */

.tresc .wp-block-details {
	margin: 0;
	border-bottom: 1px dashed var(--linia);
	text-align: left;
}

.tresc .wp-block-details:first-of-type {
	border-top: 1px dashed var(--linia);
}

.wp-block-details summary {
	position: relative;
	padding: 20px 50px 20px 6px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
	transition: color .2s;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary:hover,
.wp-block-details[open] summary {
	color: var(--roz-jasny);
}

.wp-block-details summary::before,
.wp-block-details summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 12px;
	width: 18px;
	height: 2px;
	background: currentColor;
	transition: transform .25s;
}

.wp-block-details summary::after {
	transform: rotate(90deg);
}

.wp-block-details[open] summary::after {
	transform: rotate(0);
}

.wp-block-details > :not(summary) {
	margin: 0 0 16px;
	padding: 0 50px 0 6px;
}

.wp-block-details > :last-child {
	padding-bottom: 8px;
}

/* ---------- Formularz RSVP ---------- */

.rsvp-form {
	max-width: 680px;
	margin: 40px auto 0;
	text-align: left;
}

.rsvp-rzad {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 24px;
}

.rsvp-pole,
.rsvp-grupa {
	margin: 0 0 26px;
}

.rsvp-grupa {
	padding: 0;
	border: 0;
	min-width: 0;
}

.rsvp-pole > label,
.rsvp-grupa > legend {
	display: block;
	margin-bottom: 8px;
	padding: 0;
	font-weight: 700;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form input[type="url"] {
	display: block;
	width: 100%;
	padding: 13px 14px;
	border: 1px solid rgba(255, 255, 255, .6);
	border-radius: 0;
	background: rgba(255, 255, 255, .1);
	color: var(--bialy);
	font: inherit;
	font-size: 16px;
}

.rsvp-form input::placeholder {
	color: rgba(255, 255, 255, .6);
}

.rsvp-form input:focus {
	border-color: var(--bialy);
	background: rgba(255, 255, 255, .18);
	outline: none;
}

.rsvp-opcja {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 8px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, .3);
	background: rgba(255, 255, 255, .05);
	cursor: pointer;
	transition: background-color .2s, border-color .2s;
}

.rsvp-opcja:hover {
	border-color: rgba(255, 255, 255, .7);
}

.rsvp-opcja:has(input:checked) {
	border-color: var(--roz-jasny);
	background: rgba(209, 131, 126, .3);
}

.rsvp-opcja input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 5px 0 0;
	accent-color: var(--roz);
}

.rsvp-opcje--rzad {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 12px;
}

.rsvp-dodatkowe {
	margin-top: 10px;
}

.rsvp-podpowiedz,
.rsvp-info {
	margin: 6px 0 0;
	font-size: 14px;
	opacity: .8;
}

.rsvp-hp {
	position: absolute;
	left: -9999px;
}

.rsvp-blad {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-left: 4px solid #ff8a80;
	background: rgba(206, 95, 95, .35);
}

.rsvp-akcje {
	text-align: center;
}

.rsvp-sukces {
	max-width: 680px;
	margin: 40px auto 0;
	padding: 34px 28px;
	border: 2px solid var(--bialy);
	background: rgba(58, 35, 29, .4);
}

.rsvp-sukces h2 {
	border: 0;
}

.rsvp-sukces:focus {
	outline: none;
}

[hidden] {
	display: none !important;
}

/* ---------- Stopka ---------- */

.site-footer {
	padding: 34px 20px 38px;
	border-top: 1px dashed var(--linia);
	background: rgba(58, 35, 29, .5);
	text-align: center;
}

.site-footer .ikona {
	width: 26px;
	color: var(--roz-jasny);
}

.footer-para {
	margin: 4px 0 0;
	font-family: var(--pismo);
	font-size: 36px;
	line-height: 1.3;
}

.footer-podpis {
	margin: 0;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .85;
}

/* ---------- Tablet i telefon ---------- */

@media (max-width: 1180px) {
	.site-box {
		margin: 20px;
	}

	.nav-list a {
		min-width: 130px;
	}

	.site-logo {
		padding: 10px 26px;
		font-size: 38px;
	}
}

@media (max-width: 860px) {
	.site-box {
		margin: 0;
		min-height: 100vh;
		min-height: 100dvh;
		background: rgba(58, 35, 29, .68);
	}

	.site-header {
		position: relative;
		flex-wrap: wrap;
		min-height: 76px;
	}

	.site-logo {
		flex: 1;
		min-width: 0;
		padding: 10px 20px;
		font-size: clamp(26px, 8.6vw, 34px);
	}

	.nav-toggle {
		display: flex;
		flex: none;
		flex-direction: column;
		justify-content: center;
		gap: 6px;
		width: 76px;
		padding: 0 23px;
		border: 0;
		border-left: 1px dashed rgba(255, 255, 255, .16);
		background: transparent;
		cursor: pointer;
	}

	.nav-toggle-bar {
		display: block;
		height: 2px;
		background: var(--bialy);
		transition: transform .25s, opacity .25s;
	}

	.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(8px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { opacity: 0; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }

	.site-nav {
		display: none;
		flex-basis: 100%;
	}

	.site-nav.is-open {
		display: block;
	}

	.nav-list {
		flex-direction: column;
	}

	.nav-list li {
		border-left: 0;
		border-top: 1px dashed rgba(255, 255, 255, .16);
	}

	.nav-list a {
		flex: 1;
		min-width: 0;
		padding: 16px 20px;
	}

	.hero {
		padding: 44px 18px 36px;
	}

	.linia-ozdobna {
		gap: 10px;
		font-size: 14px;
	}

	.linia-ozdobna::before,
	.linia-ozdobna::after {
		flex-basis: 24px;
	}

	.zegar {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
		max-width: 360px;
	}

	.tresc {
		padding: 36px 20px 46px;
	}

	.tresc .wp-block-columns {
		gap: 30px;
	}

	.mapa iframe {
		height: 320px;
	}

	.rsvp-rzad,
	.rsvp-opcje--rzad {
		grid-template-columns: 1fr;
	}

	.wp-block-details summary {
		font-size: 17px;
	}

	.wp-block-details > :not(summary) {
		padding-right: 6px;
	}

	.tresc .wp-block-button,
	.tresc .wp-block-button__link {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}

.tresc--powitanie h2 {
	border-bottom: 0;
	font-size: clamp(48px, 8vw, 64px);
}

.site-logo,
.hero-para,
.footer-para,
.tresc .podpis {
	word-spacing: .18em;
}

.rsvp-sukces .wp-block-button__link {
	margin-top: 10px;
}

.rsvp-form noscript .rsvp-blad {
	display: block;
}

.tresc .przycisk-trasa {
	margin: -20px 0 40px;
}

/* Lżejsze zdjęcie w tle tylko na telefonach – na tabletach byłoby nieostre. */
@media (max-width: 600px) {
	.site-bg {
		background-image: var(--tlo-mobile);
	}
}

.rsvp-turnstile {
	display: flex;
	justify-content: center;
	min-height: 65px;
	margin: 0 0 22px;
}

/* Logo w nagłówku: monogram zamiast napisu. */
.site-logo img {
	display: block;
	width: auto;
	height: 96px;
}

@media (max-width: 860px) {
	.site-logo {
		padding: 6px 18px;
	}

	.site-logo img {
		height: 64px;
	}
}
