/**
 * Snalažljivi Roditelji - global component styles.
 *
 * Design tokens (colours, fonts, spacing, radii, shadows) come from theme.json
 * and are used here only through the generated CSS custom properties:
 *   --wp--preset--color--*, --wp--preset--spacing--*, --wp--custom--radius--*
 * Per-block styles live in assets/css/blocks/ and load only when needed.
 */

/* ==========================================================================
   Base & accessibility
   ========================================================================== */

html {
	scroll-padding-top: calc(var(--wp--custom--header-height) + 1rem);
	-webkit-text-size-adjust: 100%;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}

img {
	height: auto;
	max-width: 100%;
}

.screen-reader-text {
	position: absolute !important; /* Must win over any layout rule. */
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link.screen-reader-text:focus {
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1.25rem;
	clip: auto;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
	font-weight: 800;
	text-decoration: none;
}

/* Remove the default gap between header, main and footer. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.sr-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 1px 0 var(--wp--preset--color--border);
}

.admin-bar .sr-site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	/* The admin bar is not fixed on small screens. */
	.admin-bar .sr-site-header {
		top: 0;
	}
}

.sr-header {
	min-height: var(--wp--custom--header-height);
	display: flex;
	align-items: center;
}

.sr-header > .alignwide {
	width: 100%;
}

.sr-header__logo img {
	display: block;
	width: auto;
	max-height: 56px;
}

.sr-header__nav {
	flex: 1 1 auto;
	min-width: 0;
}

/* Never let the right-hand actions squeeze ("Prijavi / se" on two lines). */
.sr-header__actions {
	flex-shrink: 0;
}

.sr-header__actions .hp-menu__item,
.sr-header__nav .wp-block-navigation-item__content {
	white-space: nowrap;
}

/* Header CTA: "+ Dodaj atrakciju" */
.sr-submit-listing .wp-block-button__link,
.sr-btn-plus .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	white-space: nowrap;
	box-shadow: 0 6px 16px -6px rgba(240, 180, 0, 0.7);
}

.sr-submit-listing .wp-block-button__link::before,
.sr-btn-plus .wp-block-button__link::before {
	content: "";
	width: 1.25rem;
	height: 1.25rem;
	flex: none;
	border-radius: 50%;
	background:
		linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat,
		linear-gradient(currentColor, currentColor) center / 2px 10px no-repeat,
		rgba(255, 255, 255, 0.55);
}

@media (max-width: 599px) {
	/* Logo left; account, "+" and the menu toggle grouped on the right. */
	.sr-header .sr-header__nav {
		flex: 0 0 auto; /* Only the toggle button is visible; don't grow. */
		order: 3;
	}

	.sr-header .sr-header__actions {
		margin-inline-start: auto; /* Beats the flex layout's `> * { margin: 0 }`. */
	}
}

@media (max-width: 781px) {
	.sr-submit-listing .wp-block-button__link {
		padding: 0.6rem;
		font-size: 0;
		gap: 0;
	}

	.sr-submit-listing .wp-block-button__link::before {
		width: 1.5rem;
		height: 1.5rem;
		background-color: transparent;
	}
}

/* ==========================================================================
   Shared section pieces
   ========================================================================== */

.is-style-sr-eyebrow {
	display: flex; /* Block-level so auto margins can centre it. */
	align-items: center;
	gap: 0.45rem;
	width: fit-content;
	margin-block-end: 0.75rem;
	padding: 0.35rem 0.9rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--tint-teal);
	color: var(--wp--preset--color--primary-strong);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 800;
	line-height: 1.3;
}

.is-style-sr-eyebrow::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
}

.has-text-align-center.is-style-sr-eyebrow {
	margin-inline: auto;
}

.sr-section__head {
	margin-block-end: var(--wp--preset--spacing--50);
	gap: var(--wp--preset--spacing--40);
}

.sr-section__head h2 {
	margin-block: 0;
}

.sr-section__lead {
	margin-block: 0.5rem 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--large);
}

/* Cards (group style variation + plain class for columns) */
.is-style-sr-card,
.sr-card {
	padding: var(--wp--preset--spacing--50);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--sm);
}

/* Secondary button variation */
.is-style-sr-teal .wp-block-button__link {
	background: var(--wp--preset--color--primary-strong);
	color: var(--wp--preset--color--base);
}

.is-style-sr-teal .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

/* Outline buttons: brand-coloured instead of currentColor. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--ink);
	background: transparent;
	color: var(--wp--preset--color--ink);
	padding-block: calc(0.8rem - 2px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

.wp-element-button,
.wp-block-button__link {
	transition: background-color var(--wp--custom--transition), color var(--wp--custom--transition), transform var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

/* Checklist list style */
.is-style-sr-checklist {
	padding-inline-start: 0;
	list-style: none;
}

.is-style-sr-checklist li {
	position: relative;
	padding-inline-start: 2rem;
}

.is-style-sr-checklist li + li {
	margin-block-start: 0.5rem;
}

.is-style-sr-checklist li::before {
	content: "";
	position: absolute;
	top: 0.3em;
	left: 0;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	background: var(--wp--preset--color--tint-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230E7C70' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.sr-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(40rem 28rem at 92% 10%, var(--wp--preset--color--tint-sky), transparent 70%),
		radial-gradient(30rem 24rem at 0% 100%, var(--wp--preset--color--tint-sun), transparent 70%),
		var(--wp--preset--color--base);
}

.sr-hero__title {
	margin-block: 0.25rem 1.5rem;
	text-wrap: balance;
}

.sr-hero__title mark {
	position: relative;
	white-space: nowrap;
}

/* Hand-drawn underline under the highlighted words. */
.sr-hero__title mark::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.12em;
	height: 0.28em;
	z-index: -1;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11c40-7 90-9 194-4' fill='none' stroke='%23FFC107' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

@media (max-width: 600px) {
	.sr-hero__title mark {
		white-space: normal;
	}
}

.sr-hero__lead {
	max-width: 36rem;
	margin-block: 0 var(--wp--preset--spacing--50);
	color: var(--wp--preset--color--body);
}

.sr-hero__search {
	max-width: 44rem;
}

.sr-hero .sr-hero__chips {
	margin-block-start: var(--wp--preset--spacing--40); /* Beats the chips style's margin reset. */
}

.sr-hero__trust {
	margin-block-start: var(--wp--preset--spacing--50);
	gap: 0.75rem 1.5rem;
}

.sr-trust {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 800;
}

.sr-trust::before {
	content: "";
	width: 2rem;
	height: 2rem;
	flex: none;
	border-radius: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 55%;
}

.sr-trust--pin::before {
	background-color: var(--wp--preset--color--tint-teal);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C70' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
}

.sr-trust--heart::before {
	background-color: var(--wp--preset--color--tint-pink);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C92D55'%3E%3Cpath d='M12 20.5S3.5 15.4 3.5 9.3A4.8 4.8 0 0 1 12 6.6a4.8 4.8 0 0 1 8.5 2.7c0 6.1-8.5 11.2-8.5 11.2z'/%3E%3C/svg%3E");
}

.sr-trust--globe::before {
	background-color: var(--wp--preset--color--tint-sun);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B07F00' stroke-width='2.2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.8 3 2.8 15 0 18M12 3c-2.8 3-2.8 15 0 18'/%3E%3C/svg%3E");
}

/* ---------- Photo collage ---------- */

.is-style-sr-collage {
	position: relative;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-template-rows: repeat(12, 1fr);
	aspect-ratio: 1 / 1.08;
	max-width: 560px;
	margin-inline: auto;
}

.is-style-sr-collage > * {
	margin: 0 !important; /* Neutralise block-gap margins inside the grid. */
}

/* Doodles: a looping arrow (top-left) and a heart (top-right). */
.is-style-sr-collage::before,
.is-style-sr-collage::after {
	content: "";
	position: absolute;
	z-index: 2;
	pointer-events: none;
	background-repeat: no-repeat;
	background-size: contain;
}

.is-style-sr-collage::before {
	top: 4%;
	left: -2%;
	width: 18%;
	aspect-ratio: 1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%231A9E8F' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 80C10 50 30 20 60 22c18 1 22 22 6 26-14 4-18-16-2-22'/%3E%3Cpath d='M12 66l8 16 14-10'/%3E%3C/svg%3E");
}

.is-style-sr-collage::after {
	top: 2%;
	right: 0;
	width: 14%;
	aspect-ratio: 1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23FF6B8B' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M50 84S14 62 14 36a18 18 0 0 1 36-6 18 18 0 0 1 36 6c0 26-36 48-36 48z'/%3E%3C/svg%3E");
	transform: rotate(12deg);
}

.sr-collage__item {
	position: relative;
	z-index: 1;
}

.sr-collage__item--1 {
	grid-column: 4 / 12;
	grid-row: 1 / 7;
	transform: rotate(-2deg);
}

.sr-collage__item--2 {
	grid-column: 1 / 7;
	grid-row: 6 / 13;
	transform: rotate(2.5deg);
}

.sr-collage__item--3 {
	grid-column: 7 / 13;
	grid-row: 7 / 13;
	transform: rotate(-1.5deg);
}

/* Image style variation: photo on a coloured, rounded tile. */
.is-style-sr-tile {
	overflow: hidden;
	border-radius: var(--wp--custom--radius--xl);
	background: var(--wp--preset--color--tint-sky);
	box-shadow: var(--wp--preset--shadow--md);
}

.is-style-sr-tile img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 0;
	object-fit: cover;
}

.sr-collage__item--2.is-style-sr-tile {
	background: var(--wp--preset--color--tint-sun);
}

.sr-collage__item--3.is-style-sr-tile {
	background: var(--wp--preset--color--tint-pink);
}

/* Floating dots behind the collage. */
.sr-hero__media {
	position: relative;
}

.sr-hero__media::before,
.sr-hero__media::after {
	content: "";
	position: absolute;
	z-index: 0;
	border-radius: 50%;
}

.sr-hero__media::before {
	width: 3.25rem;
	height: 3.25rem;
	left: 2%;
	top: 40%;
	background: var(--wp--preset--color--coral);
	opacity: 0.35;
}

.sr-hero__media::after {
	width: 2.25rem;
	height: 2.25rem;
	right: 4%;
	bottom: 4%;
	background: var(--wp--preset--color--sky);
	opacity: 0.6;
}

@media (max-width: 781px) {
	/* Text (H1 + search) first on phones: it is the LCP element and the main task. */
	.is-style-sr-collage {
		max-width: 360px;
		aspect-ratio: 1 / 0.9;
	}

	.sr-hero__media::before,
	.sr-hero__media::after {
		display: none;
	}
}

/* ==========================================================================
   How it works
   ========================================================================== */

.sr-step {
	transition: transform var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}

.sr-step:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--md);
}

.sr-step h3 {
	margin-block: 1rem 0.5rem;
}

.sr-step p:last-child {
	margin-block-end: 0;
}

.sr-step__number {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	margin: 0;
	border-radius: 1rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1;
	transform: rotate(-6deg);
}

.sr-step--1 .sr-step__number {
	background: var(--wp--preset--color--tint-teal);
	color: var(--wp--preset--color--primary-strong);
}

.sr-step--2 .sr-step__number {
	background: var(--wp--preset--color--tint-sun);
	color: #8A6300;
}

.sr-step--3 .sr-step__number {
	background: var(--wp--preset--color--tint-pink);
	color: var(--wp--preset--color--coral-strong);
}

/* ==========================================================================
   Regions
   ========================================================================== */

@media (max-width: 781px) {
	.sr-regions__grid {
		grid-template-columns: 1fr !important; /* Override the grid layout's inline column count. */
	}

	.sr-regions__grid > * {
		grid-column: auto !important;
		grid-row: auto !important;
	}

	.sr-region--large {
		min-height: 300px !important;
	}
}

@media (min-width: 782px) and (max-width: 1080px) {
	.sr-regions__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

.sr-region-soon {
	justify-content: center !important; /* Centre the message vertically, also in already-saved homepages. */
	border-radius: var(--wp--custom--radius--lg);
	gap: 1.25rem;
}

.sr-region-soon h3 {
	margin: 0;
}

/* The message is the star of the card: big, friendly, heading font. */
.sr-region-soon > p {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1.3;
}

.sr-region-soon__flags {
	gap: 0.5rem;
}

/*
 * Croatia only for now: hide the Serbia/BiH flags and the "Srbija i BiH"
 * heading, also on homepages saved in the Site Editor before v1.0.4.
 * Delete this rule when the site expands to SRB/BiH.
 */
.sr-region-soon__flags,
.sr-region-soon__flags + .wp-block-heading,
.sr-region-soon .sr-region__flag,
.sr-region-soon :is(figure, .wp-block-image):has(img[src*="/flags/"]),
.sr-region-soon img[src*="/flags/"],
.sr-region-soon > .wp-block-group:has(img[src*="/flags/"]) {
	display: none;
}

/* ==========================================================================
   Post cards (blog loops)
   ========================================================================== */

.sr-post-card {
	height: 100%;
	gap: 0 !important;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--sm);
	transition: transform var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}

.sr-post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--md);
}

.sr-post-card__image {
	width: 100%;
	margin: 0;
}

.sr-post-card__image img {
	border-radius: 0 !important; /* The card clips the corners. */
	transition: transform 400ms ease;
}

.sr-post-card:hover .sr-post-card__image img {
	transform: scale(1.04);
}

.sr-post-card__body {
	flex: 1 1 auto;
	gap: 0.5rem !important;
	padding: var(--wp--preset--spacing--40);
}

.sr-post-card__title {
	margin: 0;
	line-height: 1.2;
}

.sr-post-card__excerpt {
	margin: 0;
	color: var(--wp--preset--color--muted);
}

.sr-post-card__excerpt p {
	margin: 0;
}

.sr-post-card__date {
	margin-top: auto;
}

.sr-post-card__terms a,
.sr-article__head .sr-post-card__terms a {
	display: inline-block;
	padding: 0.2rem 0.7rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--tint-teal);
	color: var(--wp--preset--color--primary-strong);
	font-size: var(--wp--preset--font-size--x-small);
	text-decoration: none;
}

.sr-post-card__terms .wp-block-post-terms__separator {
	display: none;
}

.sr-post-card__terms a + a {
	margin-inline-start: 0.35rem;
}

/* ==========================================================================
   Owners CTA, newsletter, post CTA
   ========================================================================== */

.sr-owners {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--xl);
	gap: var(--wp--preset--spacing--40);
}

.sr-owners::after {
	content: "";
	position: absolute;
	right: -4rem;
	top: -4rem;
	width: 14rem;
	height: 14rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	pointer-events: none;
}

.sr-owners > *,
.sr-newsletter > * {
	position: relative;
	z-index: 1; /* Keep content above the decorative circles. */
}

.sr-owners__text {
	max-width: 40rem;
}

.sr-owners__text h2 {
	margin-block: 0 0.5rem;
}

.sr-owners__text p {
	margin: 0;
	opacity: 0.9;
}

.sr-newsletter {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--xl);
	color: var(--wp--preset--color--ink);
}

.sr-newsletter h2 {
	margin-block-start: 0;
}

.sr-newsletter::before {
	content: "";
	position: absolute;
	left: -3rem;
	bottom: -3rem;
	width: 11rem;
	height: 11rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.25);
	pointer-events: none;
}

/* FluentForms inside the newsletter card */
.sr-newsletter .fluentform .ff-el-group {
	margin-bottom: 0.75rem;
}

.sr-newsletter .fluentform input[type="email"],
.sr-newsletter .fluentform input[type="text"] {
	min-height: 3.25rem;
	padding: 0.75rem 1.25rem;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--base);
	font: inherit;
}

.sr-newsletter .fluentform .ff-btn-submit {
	width: 100%;
	min-height: 3.25rem;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--ink) !important; /* FluentForms sets an inline button colour. */
	color: var(--wp--preset--color--base) !important;
	font-family: inherit;
	font-weight: 800;
	cursor: pointer;
}

.sr-newsletter .ff-message-success {
	border: 0;
	border-radius: var(--wp--custom--radius--md);
	background: rgba(255, 255, 255, 0.65);
	box-shadow: none;
	color: var(--wp--preset--color--ink);
	text-align: center;
}

.sr-post-cta {
	border-radius: var(--wp--custom--radius--lg);
	gap: var(--wp--preset--spacing--30);
}

.sr-post-cta p {
	margin: 0;
}

.sr-post-cta__title {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
	line-height: 1.2;
}

/* ==========================================================================
   Single post
   ========================================================================== */

.sr-article__head {
	margin-block-end: var(--wp--preset--spacing--50);
}

.sr-article__head h1 {
	margin-block: 0.75rem;
	text-wrap: balance;
}

.sr-article__meta {
	gap: 0.5rem 1.25rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.sr-article__meta .wp-block-post-author__name {
	color: var(--wp--preset--color--ink);
	font-weight: 800;
}

.sr-article__image {
	margin-block-end: var(--wp--preset--spacing--60);
}

.sr-article__content {
	font-size: 1.125rem;
}

.sr-article__content h2 {
	position: relative;
	margin-block-start: var(--wp--preset--spacing--60);
	padding-block-start: 0.85rem;
}

.sr-article__content h2::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 2.75rem;
	height: 5px;
	border-radius: 5px;
	background: var(--wp--preset--color--accent);
}

.sr-article__content h3 {
	margin-block-start: var(--wp--preset--spacing--50);
}

.sr-article__tags a {
	display: inline-block;
	margin: 0 0.35rem 0.35rem 0;
	padding: 0.2rem 0.75rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--body);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
}

.sr-article__tags .wp-block-post-terms__separator {
	display: none;
}

.sr-article__nav {
	gap: var(--wp--preset--spacing--40);
	padding-block: var(--wp--preset--spacing--40);
	border-block: 1px solid var(--wp--preset--color--border);
	font-weight: 700;
}

.sr-article__nav a {
	text-decoration: none;
}

.sr-comments {
	margin-block-start: var(--wp--preset--spacing--60);
}

.wp-block-post-comments-form :is(input[type="text"], input[type="email"], input[type="url"], textarea),
.wp-block-search__input {
	box-sizing: border-box;
	padding: 0.7rem 1rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--base);
	font: inherit;
}

.wp-block-post-comments-form :is(input, textarea):focus,
.wp-block-search__input:focus {
	border-color: var(--wp--preset--color--primary);
	outline: none;
	box-shadow: 0 0 0 4px rgba(26, 158, 143, 0.15);
}

.wp-block-search__inside-wrapper {
	gap: 0.5rem;
}

.sr-comment {
	gap: 1rem;
	padding-block: 1rem;
	border-block-end: 1px solid var(--wp--preset--color--border);
}

.sr-comment .wp-block-avatar img {
	border-radius: 50%;
}

/* ==========================================================================
   Page heads, 404
   ========================================================================== */

.sr-page-head {
	margin-block-end: var(--wp--preset--spacing--60);
}

.sr-page-head h1 {
	margin-block: 0 0.75rem;
}

.sr-page-title {
	margin-block-end: var(--wp--preset--spacing--50);
}

.sr-404__code {
	margin: 0;
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(5rem, 18vw, 9rem);
	font-weight: 800;
	line-height: 1;
	text-shadow: 6px 6px 0 var(--wp--preset--color--tint-teal);
}

/* ==========================================================================
   Contact page (templates/page-kontakt.html + patterns/contact.php)
   ========================================================================== */

.sr-contact-hero .sr-hero__title {
	margin-block-end: 1rem;
}

.sr-contact-hero__lead {
	margin-inline: auto;
}

.sr-contact__cards {
	position: relative;
	z-index: 1;
}

.sr-contact-card {
	position: relative;
	padding-block-start: calc(var(--wp--preset--spacing--50) + 3.75rem);
	transition: transform var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}

.sr-contact-card:hover {
	transform: translateY(-4px) rotate(-0.4deg);
	box-shadow: var(--wp--preset--shadow--md);
}

/* Icon bubble, slightly tilted for a playful feel. */
.sr-contact-card::before {
	content: "";
	position: absolute;
	top: var(--wp--preset--spacing--50);
	left: var(--wp--preset--spacing--50);
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 1rem;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 55%;
	transform: rotate(-6deg);
}

.sr-contact-card--email::before {
	background-color: var(--wp--preset--color--tint-teal);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C70' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E");
}

.sr-contact-card--phone::before {
	background-color: var(--wp--preset--color--tint-pink);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C92D55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
}

.sr-contact-card--owners::before {
	background-color: var(--wp--preset--color--tint-sun);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B07F00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-6 9 6v10H3z'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
}

.sr-contact-card__title {
	margin-block: 0 0.5rem;
	font-size: var(--wp--preset--font-size--x-large);
}

.sr-contact-card p {
	margin-block: 0 0.75rem;
}

.sr-contact-card__link {
	margin-block-end: 0 !important; /* Last line of the card. */
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1.2;
	overflow-wrap: break-word;
}

.sr-contact-card__link a {
	color: var(--wp--preset--color--primary-strong);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.sr-contact-card--phone .sr-contact-card__link a {
	color: var(--wp--preset--color--coral-strong);
}

.sr-team {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--xl);
}

/* Decorative heart + dot, same doodle language as the homepage hero. */
.sr-team::before,
.sr-team::after {
	content: "";
	position: absolute;
	pointer-events: none;
}

.sr-team::before {
	top: 1.5rem;
	right: 2rem;
	width: 3.5rem;
	height: 3.5rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23FF6B8B' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M50 84S14 62 14 36a18 18 0 0 1 36-6 18 18 0 0 1 36 6c0 26-36 48-36 48z'/%3E%3C/svg%3E") center / contain no-repeat;
	transform: rotate(12deg);
}

.sr-team::after {
	left: -2rem;
	bottom: -2rem;
	width: 8rem;
	height: 8rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
}

.sr-team > * {
	position: relative;
	z-index: 1;
}

.sr-team h2 {
	margin-block: 0.25rem 1rem;
}

.sr-team__people {
	justify-content: center;
}

.sr-team__people > .sr-person {
	flex: 0 1 14rem !important; /* Keep the two person cards compact and centred. */
}

.sr-person {
	padding: var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--sm);
	text-align: center;
	transition: transform var(--wp--custom--transition);
}

.sr-person--goran {
	transform: rotate(-2deg);
}

.sr-person--magdalena {
	transform: rotate(2deg);
}

.sr-person:hover {
	transform: rotate(0deg) translateY(-4px);
}

.sr-person__avatar {
	display: grid;
	place-items: center;
	width: 5rem;
	height: 5rem;
	margin: 0 auto 0.75rem !important; /* Centre inside the column, overriding block-gap margins. */
	border-radius: 50%;
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1;
}

.sr-person--goran .sr-person__avatar {
	background: var(--wp--preset--color--primary-strong);
}

.sr-person--magdalena .sr-person__avatar {
	background: var(--wp--preset--color--coral-strong);
}

.sr-person__name {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
}

.sr-person__role {
	margin: 0.25rem 0 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.sr-team__social {
	margin-block-start: var(--wp--preset--spacing--50);
}

@media (max-width: 781px) {
	.sr-team__people > .sr-person {
		flex-basis: 100% !important;
	}

	.sr-team::before {
		top: 0.75rem;
		right: 0.75rem;
		width: 2.25rem;
		height: 2.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sr-contact-card:hover,
	.sr-person,
	.sr-person:hover {
		transform: none;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */

.sr-footer {
	position: relative;
	color: rgba(255, 255, 255, 0.85);
}

.sr-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 5px;
	background: linear-gradient(90deg, var(--wp--preset--color--primary) 0 33%, var(--wp--preset--color--accent) 33% 66%, var(--wp--preset--color--coral) 66%);
}

.sr-footer a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.sr-footer a:hover {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

.sr-footer__brand {
	font-size: var(--wp--preset--font-size--x-large);
}

.sr-footer__brand a {
	color: var(--wp--preset--color--base);
}

.sr-footer__muted {
	color: rgba(255, 255, 255, 0.72);
}

.sr-footer__title {
	margin-block-end: 0.75rem;
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

.sr-footer__links {
	padding: 0;
	list-style: none;
}

.sr-footer__links li + li {
	margin-block-start: 0.6rem;
}

.sr-footer__links strong {
	color: var(--wp--preset--color--accent);
}

.sr-footer__social .wp-social-link {
	background: rgba(255, 255, 255, 0.1) !important; /* Social Links sets brand colours inline. */
}

.sr-footer__social .wp-social-link:hover {
	background: var(--wp--preset--color--primary) !important;
}

.sr-footer__bottom {
	border-block-start: 1px solid rgba(255, 255, 255, 0.12);
}

.sr-footer__bottom p {
	margin: 0;
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}

	.sr-post-card:hover,
	.sr-step:hover,
	.wp-block-button__link:hover {
		transform: none;
	}
}
