/*
Theme Name: SDS Create
Theme URI: https://www.sds-create.pl/
Description: Motyw potomny Twenty Twenty-Five dla SDS Create – paleta, Fira Sans i sekcje strony głównej z makiety.
Author: SDS Create
Template: twentytwentyfive
Version: 0.1.7
Requires at least: 6.7
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sds-create
*/

:root {
	--sds-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 20'%3E%3Cpath d='m4 3 7 7-7 7m10-14 7 7-7 7' fill='none' stroke='%23000' stroke-width='1.7'/%3E%3C/svg%3E");
	--sds-radius: 6px;
}

::selection { background: var(--wp--preset--color--accent-2); color: var(--wp--preset--color--contrast); }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

/* Nagłówki – wyróżnienie <mark> bez tła */
:where(h1, h2, h3) mark.has-inline-color { background: none; }

/* Przyciski – podwójny chevron i lekkie uniesienie */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 34px;
	transition: transform .2s, background-color .2s;
}
.wp-block-button__link::after {
	content: "";
	flex: 0 0 24px;
	width: 24px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--sds-chevron) center / contain no-repeat;
	mask: var(--sds-chevron) center / contain no-repeat;
}
.wp-block-button:not(.is-style-sds-link) .wp-block-button__link:hover { transform: translateY(-3px); }
.wp-block-button .has-accent-2-background-color:hover { background-color: #e6d98d !important; }

/* Styl: link ze strzałką */
.wp-block-button.is-style-sds-link .wp-block-button__link {
	background: none !important;
	color: inherit !important;
	padding: 0 0 6px;
	gap: 18px;
	border-radius: 0;
	border-bottom: 1px solid currentColor;
}
.wp-block-button.is-style-sds-link .wp-block-button__link:hover { opacity: .8; }

/* Styl: nadtytuł z rombem */
.is-style-sds-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	line-height: 1.4;
}
.is-style-sds-eyebrow::before {
	content: "";
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	margin: 0 5px;
	background: var(--wp--preset--color--accent-1);
	transform: rotate(45deg);
}
.sds-on-dark .is-style-sds-eyebrow::before,
.sds-hero .is-style-sds-eyebrow::before { background: var(--wp--preset--color--accent-2); }

/* Ikony liniowe */
.sds-icon { line-height: 0; }
.sds-icon svg { width: 40px; height: 40px; fill: none; stroke: var(--wp--preset--color--accent-1); stroke-width: 1.3; }
.sds-values .sds-icon svg { width: 31px; height: 31px; stroke-width: 1.4; }

/* Hero */
.sds-hero { overflow: hidden; }
.sds-hero::after {
	content: "";
	position: absolute;
	left: -68px;
	bottom: -75px;
	width: 360px;
	height: 360px;
	opacity: .13;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23EFF0F4' stroke-width='2'%3E%3Cpath d='M106 34 20 120 106 206M134 34 220 120 134 206'/%3E%3Cpath d='M106 72 58 120 106 168M134 72 182 120 134 168'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.sds-hero .wp-block-cover__inner-container { position: static; }
.sds-hero .wp-block-buttons { gap: 20px 27px; }
.sds-hero-note {
	position: absolute;
	right: 46px;
	bottom: 40px;
	max-width: 250px;
	border-left: 4px solid var(--wp--preset--color--accent-2);
	z-index: 2;
}

/* Pasek wartości */
.sds-values > .wp-block-group:not(:first-child) {
	border-left: 1px solid var(--wp--preset--color--accent-6);
	padding-left: 28px;
}

/* Karty usług */
.is-style-sds-card {
	border: 1px solid #e6e8ee;
	border-radius: var(--sds-radius);
	transition: transform .2s, box-shadow .2s;
}
.is-style-sds-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px #35426310; }
.is-style-sds-card > .wp-block-buttons { margin-top: auto !important; }
.is-style-sds-card.has-accent-1-background-color { border-color: var(--wp--preset--color--accent-1); }
.is-style-sds-card.has-accent-1-background-color .sds-icon svg { stroke: var(--wp--preset--color--accent-2); }

/* O nas – stempel na zdjęciu */
.sds-photo { position: relative; padding: 0 24px 30px 0; }
.sds-photo .wp-block-image img { width: 100%; height: 460px; object-fit: cover; }
.sds-stamp { position: absolute; right: 0; bottom: 0; max-width: 265px; }

/* Lista ze strzałkami */
.is-style-sds-checks { list-style: none; padding: 0; }
.is-style-sds-checks li {
	display: flex;
	gap: 15px;
	padding: 14px 0;
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
}
.is-style-sds-checks li::before { content: "↗"; color: var(--wp--preset--color--accent-1); font-size: 18px; line-height: 1.4; }

/* Kroki na ciemnym tle */
.sds-step { border-top: 1px solid #ffffff35; }

/* Baza wiedzy */
.sds-editorial .wp-block-post-featured-image { height: 100%; margin: 0; }
.sds-editorial .wp-block-post-featured-image img { height: 100%; min-height: 280px; object-fit: cover; }
.sds-article-row { border-bottom: 1px solid #cfd5df; }
.sds-meta { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--wp--preset--color--accent-1); }
.sds-meta a { color: inherit; }

.sds-soft { opacity: .8; }
.sds-read-more {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	align-self: flex-start;
	margin-top: auto;
	padding-bottom: 6px;
	border-bottom: 1px solid currentColor;
	font-size: 14px;
	font-weight: 500;
}
.sds-read-more::after {
	content: "";
	width: 24px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--sds-chevron) center / contain no-repeat;
	mask: var(--sds-chevron) center / contain no-repeat;
}
.sds-article-row .wp-block-post-title a::after {
	content: "";
	display: inline-block;
	width: 20px;
	height: 16px;
	margin-left: 12px;
	vertical-align: middle;
	background: var(--wp--preset--color--accent-1);
	-webkit-mask: var(--sds-chevron) center / contain no-repeat;
	mask: var(--sds-chevron) center / contain no-repeat;
}

/* Sekcje stykają się bez odstępów */
header.wp-block-template-part > * + *,
.sds-front > * + *,
.wp-block-post-content > .alignfull + .alignfull,
.is-root-container > .alignfull + .alignfull { margin-block-start: 0; }
body.home .wp-site-blocks > * + * { margin-block-start: 0; }

@media (max-width: 1150px) {
	.sds-header-cta { display: none !important; }
}

@media (max-width: 781px) {
	.sds-logo img { width: 230px !important; height: 62px !important; }
	.sds-hero-note { left: 24px; right: 24px; bottom: 28px; max-width: none; }
	.sds-hero::after { width: 270px; height: 270px; left: -58px; bottom: -15px; }
	.sds-values > .wp-block-group:not(:first-child) { border-left: 0; padding-left: 0; }
	.sds-photo .wp-block-image img { height: 340px; }
	.sds-topbar-note { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.wp-block-button__link, .is-style-sds-card { transition: none; }
}
