/* ROIS theme – content and section styles. Loaded on the site and in the block editor. */

/* ---------- Text styles ---------- */

.is-style-rois-eyebrow {
	margin-bottom: 0.5rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8125rem; font-weight: 600; line-height: 1.3;
	letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--wp--preset--color--red);
}

.is-style-rois-lead {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

ul.is-style-rois-check { padding-left: 0; list-style: none; }
ul.is-style-rois-check > li {
	position: relative; padding-left: 2rem; margin-bottom: 0.6rem;
}
ul.is-style-rois-check > li::before {
	content: ""; position: absolute; left: 0; top: 0.2em;
	width: 1.25rem; height: 1.25rem; border-radius: 50%;
	background: rgb(217 58 67 / .1) url("../icons/check.svg") center / 0.95rem no-repeat;
}

.wp-block-image.is-style-rois-shadow img { box-shadow: var(--rois-shadow, 0 10px 30px -12px rgb(0 31 81 / .25)); }

/* ---------- Sections ---------- */

.rois-section {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}
/* Two white sections in a row share one gap instead of two. */
.rois-section:not(.rois-section--soft):not(.rois-section--navy) + .rois-section:not(.rois-section--soft):not(.rois-section--navy) { padding-top: 0; }
.rois-section--soft { background: var(--wp--preset--color--soft); }
.rois-section--navy,
.rois-hero { background: var(--wp--preset--color--navy); color: #fff; }
.rois-section--navy :where(h1, h2, h3, h4),
.rois-hero :where(h1, h2, h3, h4) { color: #fff; }
.rois-section--navy .is-style-rois-lead,
.rois-hero .is-style-rois-lead { color: rgb(255 255 255 / .82); }
.rois-section--navy a:not(.wp-element-button),
.rois-hero a:not(.wp-element-button) { color: #fff; }
.rois-section--navy .is-style-outline > .wp-block-button__link,
.rois-hero .is-style-outline > .wp-block-button__link { color: #fff; }

.entry-content > .rois-section:first-child,
.entry-content > .rois-hero:first-child { margin-top: 0; }
.entry-content > .rois-section:last-child { margin-bottom: 0; }
/* Sections follow each other without gaps; they carry their own padding. */
.entry-content > .alignfull { margin-top: 0; margin-bottom: 0; }

.rois-section__header { max-width: 760px; margin-bottom: var(--wp--preset--spacing--50); }
.rois-section__header.has-text-align-center,
.rois-section__header.is-centered { margin-left: auto; margin-right: auto; text-align: center; }
.rois-section__header > :last-child { margin-bottom: 0; }

/* ---------- Hero ---------- */

.rois-hero {
	position: relative; overflow: hidden;
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}
.rois-hero::before {
	/* Diagonal lines echo the X in the ROIS logo. */
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
	background: repeating-linear-gradient(-45deg, transparent 0 46px, var(--wp--preset--color--red) 46px 48px);
	-webkit-mask-image: linear-gradient(90deg, transparent 45%, #000 100%);
	        mask-image: linear-gradient(90deg, transparent 45%, #000 100%);
}
.rois-hero > * { position: relative; }
.rois-hero h1 { margin-top: 0.25rem; }
.rois-hero .wp-block-image img { border-radius: 14px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }

/* ---------- Cards ---------- */

.is-style-rois-card {
	height: 100%;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
}
.rois-section--navy .is-style-rois-card { background: var(--wp--preset--color--navy-soft); border-color: transparent; }
.is-style-rois-card > :first-child { margin-top: 0; }
.is-style-rois-card > :last-child { margin-bottom: 0; }
.is-style-rois-card h3 { font-size: 1.25rem; margin-top: 0.75rem; margin-bottom: 0.5rem; }
.is-style-rois-card p { color: var(--wp--preset--color--muted); }

.rois-icon img, .rois-icon.wp-block-image img {
	width: 44px; height: 44px; padding: 10px; box-sizing: content-box;
	background: rgb(217 58 67 / .08); border-radius: 12px;
}
.rois-icon.wp-block-image { margin-bottom: 0; }

/* Module cards (links to module pages) */
.rois-module-card { display: flex; flex-direction: column; }
.rois-module-card .wp-block-buttons { margin-top: auto; padding-top: 0.5rem; }
.rois-link-arrow .wp-block-button__link {
	padding: 0; background: none; color: var(--wp--preset--color--red);
}
.rois-link-arrow .wp-block-button__link::after { content: " →"; transition: margin .15s; }
.rois-link-arrow .wp-block-button__link:hover { background: none; color: var(--wp--preset--color--red-dark); }
.rois-link-arrow .wp-block-button__link:hover::after { margin-left: 0.25rem; }

/* ---------- Steps ---------- */

/* WordPress grid layout sets container-type (style containment) on the grid,
   which isolates a counter reset on the grid itself – so reset on the first step. */
.rois-steps > .rois-step:first-child { counter-reset: rois-step; }
.rois-step { position: relative; padding-top: 3.5rem; }
.rois-step::before {
	counter-increment: rois-step; content: counter(rois-step, decimal-leading-zero);
	position: absolute; top: 0; left: 0;
	display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
	background: var(--wp--preset--color--red); color: #fff;
	font: 600 0.95rem/1 var(--wp--preset--font-family--heading);
}
.rois-step h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.rois-step p { margin: 0 0 0.5rem; color: var(--wp--preset--color--muted); }
.rois-step .rois-tag { margin-top: 0.75rem; }

.rois-tag {
	display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px;
	background: var(--wp--preset--color--soft); color: var(--wp--preset--color--navy);
	font: 600 0.75rem/1.4 var(--wp--preset--font-family--heading); letter-spacing: .08em; text-transform: uppercase;
}
.rois-section--soft .rois-tag { background: #fff; }

/* ---------- CTA band ---------- */

.rois-cta {
	padding: clamp(2rem, 5vw, 3.5rem);
	background: var(--wp--preset--color--navy); color: #fff;
	border-radius: 14px; position: relative; overflow: hidden;
}
.rois-cta::after {
	content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; opacity: .25;
	background: repeating-linear-gradient(-45deg, transparent 0 22px, var(--wp--preset--color--red) 22px 24px);
	border-radius: 50%;
}
.rois-cta > * { position: relative; z-index: 1; }
.rois-cta :where(h2, h3) { color: #fff; margin-top: 0; }
.rois-cta p { color: rgb(255 255 255 / .82); max-width: 60ch; }

/* ---------- Stats ---------- */

.rois-stat { margin: 0; font: 600 var(--wp--preset--font-size--x-large)/1 var(--wp--preset--font-family--heading); color: var(--wp--preset--color--red); }
.rois-stat-label { margin-top: 0.4rem; color: var(--wp--preset--color--muted); }

@media (max-width: 781px) {
	.rois-hero .wp-block-columns { gap: 2rem; }
	.rois-step { padding-top: 3.25rem; }
}

/* ---------- Stand-alone customer page (template "Samostatná stránka"), e.g. Most Hradská ---------- */

.rois-ba-header { padding-top: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.rois-ba-header .wp-block-columns { margin-bottom: 0; }
.rois-ba-header .wp-block-column > * { margin-block: 0; }
.rois-ba-logo { display: inline-flex; vertical-align: middle; margin-right: 0.6rem; }
.rois-ba-logo svg { width: 34px; height: auto; }
.rois-ba-title { display: inline; font-size: 1.05rem; }
.rois-ba-title a { color: #F23005; text-decoration: none; }
.rois-ba-title a:hover { text-decoration: underline; }
.rois-ba-softec img { max-width: 150px; margin-left: auto; display: block; }
.rois-ba-content { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--60); }
.rois-ba-content h1 { font-size: var(--wp--preset--font-size--x-large); }
.rois-live-cam img { width: 100%; }
.rois-ba-footer { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); background: var(--wp--preset--color--soft); text-align: center; }
.rois-ba-rois img { width: 110px; margin: 0 auto; }
.rois-ba-footer p { color: var(--wp--preset--color--muted); }
@media (max-width: 781px) { .rois-ba-softec img { margin-left: 0; } }
