/*
Theme Name: Boomnabom Żagle
Theme URI: https://boomnabom.com
Description: Żeglarska skórka dla boomnabom.com — motyw potomny Twenty Twenty-Five. Granat, morze, piasek i czerwień bandery.
Author: no1.pl
Template: twentytwentyfive
Version: 1.3.0
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: boomnabom-zagle
License: GNU General Public License v2 or later
*/

/* Fala na dole banerów i pasów — klasa „fala" w ustawieniach bloku. */
.fala {
	position: relative;
}
.fala::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 48px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23FBF8F2' d='M0 24c120 16 240 24 360 16S600 8 720 8s240 24 360 24 240-16 360-24v40H0z'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
	pointer-events: none;
	z-index: 1;
}
.fala.fala-piasek::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23F4EEE3' d='M0 24c120 16 240 24 360 16S600 8 720 8s240 24 360 24 240-16 360-24v40H0z'/%3E%3C/svg%3E");
}

/* Linka (lina) jako ozdobny separator. */
.wp-block-separator.is-style-lina {
	border: none;
	height: 10px;
	background: repeating-linear-gradient(135deg, var(--wp--preset--color--accent-3) 0 6px, transparent 6px 12px);
	opacity: .5;
	max-width: 160px;
}

/* Kafle oferty */
.kafel {
	transition: transform .2s ease, box-shadow .2s ease;
}
.kafel:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(11, 37, 69, .15);
}
.kafel img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}


@media (prefers-reduced-motion: reduce) {
	.kafel { transition: none; }
	.kafel:hover { transform: none; }
}

/* Pełnoszerokie sekcje stykają się ze sobą i ze stopką — bez białych szczelin
   z odstępu między blokami (blockGap). */
.wp-block-post-content > .alignfull + .alignfull,
.wp-block-post-content > .alignfull:first-child {
	margin-block-start: 0;
}
.wp-site-blocks > footer {
	margin-block-start: 0;
}
.wp-block-post-content > .alignfull:last-child {
	margin-block-end: 0;
}

/* Listy linków w stopce bez punktorów */
footer .wp-block-list {
	list-style: none;
}

/* Ikony liniowe przy nagłówkach — klasa „ikona ikona-<nazwa>” w ustawieniach bloku.
   Maska SVG, więc kolor bierze się z palety, a nie z pliku. */
.ikona::before {
	content: "";
	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	margin-right: .5em;
	vertical-align: -.17em;
	background-color: var(--wp--preset--color--accent-3);
	-webkit-mask: var(--ikona) center / contain no-repeat;
	mask: var(--ikona) center / contain no-repeat;
}
.has-base-color.ikona::before, .has-base-color .ikona::before { background-color: var(--wp--preset--color--accent-1); }
.ikona-fala { --ikona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8.5c2.5-2 5-2 7.5 0s5 2 7.5 0 3.5-1.5 5 0'/%3E%3Cpath d='M2 13.5c2.5-2 5-2 7.5 0s5 2 7.5 0 3.5-1.5 5 0'/%3E%3Cpath d='M2 18.5c2.5-2 5-2 7.5 0s5 2 7.5 0 3.5-1.5 5 0'/%3E%3C/svg%3E"); }
.ikona-jezioro { --ikona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5 8 8h2.5L7 13h10l-3.5-5H16z'/%3E%3Cpath d='M12 13v3'/%3E%3Cpath d='M2.5 20c2.4-1.6 4.8-1.6 7.1 0s4.8 1.6 7.2 0 3.6-1.2 4.7 0'/%3E%3C/svg%3E"); }
.ikona-kompas { --ikona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='m15.8 8.2-2.4 5.2-5.2 2.4 2.4-5.2z'/%3E%3Cpath d='M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2'/%3E%3C/svg%3E"); }
.ikona-zagiel { --ikona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5v15'/%3E%3Cpath d='M13.5 4.5 20 16.5h-6.5z'/%3E%3Cpath d='M10.5 7 5 16.5h5.5z'/%3E%3Cpath d='M3 19.5h18l-2.2 2.5H5.2z'/%3E%3C/svg%3E"); }
.ikona-klucz { --ikona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='4.8'/%3E%3Cpath d='m11.4 11.4 9.1 9.1'/%3E%3Cpath d='m17.5 17.5 2.3-2.3'/%3E%3Cpath d='m14.7 14.7 2.3-2.3'/%3E%3C/svg%3E"); }
.ikona-slonce { --ikona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4.2'/%3E%3Cpath d='M12 2v2.5M12 19.5V22M2 12h2.5M19.5 12H22M4.9 4.9l1.8 1.8M17.3 17.3l1.8 1.8M4.9 19.1l1.8-1.8M17.3 6.7l1.8-1.8'/%3E%3C/svg%3E"); }
.ikona-kotwica { --ikona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2.3'/%3E%3Cpath d='M12 7.3V21.5'/%3E%3Cpath d='M8 11h8'/%3E%3Cpath d='M4.5 14.5a7.5 7 0 0 0 15 0'/%3E%3Cpath d='m3 16 1.5-1.5L6 16M18 16l1.5-1.5L21 16'/%3E%3C/svg%3E"); }
.ikona-koperta { --ikona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2'/%3E%3Cpath d='m3 6.5 9 6.5 9-6.5'/%3E%3C/svg%3E"); }

/* Logo: znak SVG + logotyp pisany krojem strony (ostry w każdym rozmiarze). */
.logo {
	display: inline-flex;
	align-items: center;
	gap: .65em;
	text-decoration: none;
	color: inherit;
	font-size: 1rem;
}
.logo svg {
	width: 2.75em;
	height: 2.75em;
	flex: none;
	transition: transform .3s ease;
}
.logo:hover svg { transform: rotate(-8deg); }
.logo-tekst {
	display: flex;
	flex-direction: column;
	line-height: 1;
}
.logo-nazwa {
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-weight: 700;
	font-size: 1.55em;
	letter-spacing: .01em;
	color: var(--wp--preset--color--base);
}
.logo-nazwa em {
	font-style: normal;
	color: var(--wp--preset--color--accent-1);
}
.logo-haslo {
	font-size: .62em;
	font-weight: 700;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-2);
	margin-top: .45em;
}
.logo-stopka { font-size: 1.1rem; }
@media (max-width: 600px) {
	.logo-haslo { display: none; }
	.logo svg { width: 2.3em; height: 2.3em; }
}
@media (prefers-reduced-motion: reduce) {
	.logo svg { transition: none; }
	.logo:hover svg { transform: none; }
}

/* Galeria „Z pokładu": zaokrąglone kadry, delikatne powiększenie po najechaniu. */
.galeria-pokladowa .wp-block-image {
	border-radius: 12px;
	overflow: hidden;
}
.galeria-pokladowa .wp-block-image img {
	aspect-ratio: 4 / 3;
	transition: transform .4s ease;
}
.galeria-pokladowa .wp-block-image:hover img {
	transform: scale(1.05);
}
@media (prefers-reduced-motion: reduce) {
	.galeria-pokladowa .wp-block-image img { transition: none; }
	.galeria-pokladowa .wp-block-image:hover img { transform: none; }
}

/* Formularz kontaktowy (Contact Form 7) w barwach strony */
.formularz-rejs p { margin: 0 0 1rem; }
.formularz-rejs label { font-weight: 600; font-size: .95rem; display: block; }
.formularz-rejs .pola-2, .formularz-rejs .pola-3 { display: grid; gap: 0 1rem; }
.formularz-rejs .pola-2 { grid-template-columns: repeat(2, 1fr); }
.formularz-rejs .pola-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) {
	.formularz-rejs .pola-2, .formularz-rejs .pola-3 { grid-template-columns: 1fr; }
}
.formularz-rejs input:not([type=checkbox]):not([type=submit]),
.formularz-rejs select,
.formularz-rejs textarea {
	width: 100%;
	box-sizing: border-box;
	margin-top: .35rem;
	padding: .7rem .85rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 25%, transparent);
	border-radius: 10px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-weight: 400;
}
.formularz-rejs input:focus, .formularz-rejs select:focus, .formularz-rejs textarea:focus {
	outline: 2px solid var(--wp--preset--color--accent-3);
	outline-offset: 1px;
	border-color: transparent;
}
.formularz-rejs .zgoda { font-size: .85rem; font-weight: 400; color: var(--wp--preset--color--accent-4); }
.formularz-rejs .zgoda input { margin-right: .4rem; }
.formularz-rejs input[type=submit] {
	background: var(--wp--preset--color--bandera);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: .9rem 2rem;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.formularz-rejs input[type=submit]:hover { background: var(--wp--preset--color--contrast); }
.wpcf7 form .wpcf7-response-output { border-radius: 10px; margin: 1rem 0 0; padding: .8rem 1rem; }
.wpcf7-not-valid-tip { font-size: .85rem; color: var(--wp--preset--color--bandera); }
