/**
 * Otcovo srdce — frontend & editor styles
 */

:root {
	--os-orange: #f46f24;
	--os-orange-dark: #d85a12;
	--os-navy: #353e4f;
	--os-text: #3d454c;
	--os-cream: #faf8f5;
	--os-border: #e4e4e4;
}

body {
	font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--os-text);
	background-color: #ffffff;
}

/* ── Kadence layout fixes: flush hero, unified background ── */

body.page.os-wide-layout,
body.home.os-wide-layout {
	background-color: #ffffff;
}

body.os-wide-layout .content-area,
body.os-wide-layout .content-bg,
body.os-wide-layout #inner-wrap,
body.os-wide-layout main.site-main {
	background-color: #ffffff;
}

/* Remove hidden title/hero area on front page only */
body.home.os-wide-layout .entry-hero,
body.home.os-wide-layout .entry-hero-container,
body.home.os-wide-layout #hero-section,
body.home.os-wide-layout .hero-section,
body.home.os-wide-layout .page-hero-section {
	display: none !important;
	min-height: 0 !important;
	height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
}

/* Remove Kadence content top spacing — front page only */
body.home.os-wide-layout .content-area,
body.home.os-wide-layout .site-main,
body.home.os-wide-layout main.site-main {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.home.os-wide-layout .entry.content-wrap,
body.home.os-wide-layout .entry-content-wrap,
body.home.os-wide-layout .entry.content-single-wrap {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.home.os-wide-layout .site-container,
body.home.os-wide-layout .content-container.site-container {
	padding-top: 0 !important;
}

body.home.os-wide-layout .entry-content {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* Only the first full-width block (hero slider) flush under header */
body.home.os-wide-layout .entry-content > .alignfull:first-child,
body.home.os-wide-layout .entry-content > .os-hero-slider:first-child,
body.home.os-wide-layout .entry-content > .wp-block-shortcode:first-child {
	margin-top: 0 !important;
}

body.home.os-wide-layout .entry-content > .wp-block-shortcode:first-child {
	padding-top: 0 !important;
}

/* Hero slider */
.os-hero-slider {
	position: relative;
	min-height: 480px;
	overflow: hidden;
	background: var(--os-navy);
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
	touch-action: pan-y pinch-zoom;
	-webkit-user-select: none;
	user-select: none;
}

.os-hero-slider__slides {
	position: relative;
	min-height: 480px;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
}

.os-hero-slider__slides-track,
.os-hero-slider__contents-track {
	display: flex;
	min-height: 480px;
	transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
	backface-visibility: hidden;
}

.os-hero-slider.is-dragging .os-hero-slider__slides-track,
.os-hero-slider.is-dragging .os-hero-slider__contents-track {
	transition: none;
}

.os-hero-slider__slide {
	flex: 0 0 100%;
	position: relative;
	width: 100%;
	min-height: 480px;
	margin: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.os-hero-slider__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(53, 62, 79, 0.55);
	pointer-events: none;
}

.os-hero-slider__contents {
	position: absolute;
	inset: 0;
	z-index: 2;
	overflow: hidden;
	pointer-events: none;
}

.os-hero-slider__content-panel {
	flex: 0 0 100%;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem 3rem;
	min-height: 480px;
	pointer-events: none;
}

.os-hero-slider__content-panel a {
	pointer-events: auto;
}

.os-hero-slider__title {
	margin: 0 0 1rem;
	font-size: 2rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
	max-width: 720px;
}

.os-hero-slider__title--welcome {
	font-size: 3.5rem;
	font-weight: 300;
	letter-spacing: 0.08em;
}

.os-hero-slider__text {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.6;
	color: #fff;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
	max-width: 640px;
}

.os-hero-slider__cta {
	display: inline-block;
	margin-top: 1.5rem;
	padding: 0.75rem 1.75rem;
	background: var(--os-orange);
	color: #fff !important;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9375rem;
	border-radius: 3px;
	transition: background 0.2s ease;
}

.os-hero-slider__cta:hover,
.os-hero-slider__cta:focus {
	background: var(--os-orange-dark);
	color: #fff !important;
}

.os-hero-slider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	min-width: 44px;
	height: 44px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	line-height: 1;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	cursor: pointer;
}

.os-hero-slider__nav--prev {
	left: 1rem;
}

.os-hero-slider__nav--next {
	right: 1rem;
}

.os-hero-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 1.25rem;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.os-hero-slider__dot {
	width: 10px;
	height: 10px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	padding: 0;
}

.os-hero-slider__dot.is-active {
	background: var(--os-orange);
}

/* Inner sections — standard contained width */
/* Wide layout pages — home, kalendar, seminar detail */
body.os-wide-layout .entry-content {
	max-width: 100%;
	width: 100%;
}

body.os-wide-layout .content-container {
	display: block !important;
	grid-template-columns: minmax(0, 1fr) !important;
}

body.os-wide-layout #secondary,
body.os-wide-layout .sidebar {
	display: none !important;
}

body.os-wide-layout .content-area {
	width: 100% !important;
	max-width: 100% !important;
}

body.os-wide-layout .entry-content .alignwide,
body.os-wide-layout .entry-content .wp-block-columns.alignwide,
body.os-wide-layout .entry-content .wp-block-group:not(.alignfull),
body.os-wide-layout .entry-content .wp-block-query.alignwide,
body.os-wide-layout .oss-seminare-upcoming {
	max-width: var(--global-content-width, 1200px);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

/* Intro section */
.os-intro {
	margin-left: auto;
	margin-right: auto;
}

.os-intro .wp-block-buttons {
	justify-content: center;
}

/* Testimonials grid */
.os-testimonials .wp-block-query.alignwide {
	max-width: var(--global-content-width, 1200px);
}

.os-testimonials .wp-block-post-template,
.os-testimonials .wp-block-post-template-is-layout-grid,
.os-testimonials ul.wp-block-post-template {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
}

.os-testimonials .wp-block-post-template > li,
.os-testimonials .wp-block-post-template > .wp-block-post {
	margin: 0;
	width: 100%;
}

/* Full-width Gutenberg sections on wide-layout pages */
body.os-wide-layout .entry-content > .alignfull {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

body.os-wide-layout {
	overflow-x: clip;
}

.single-oss_seminar .entry-hero .entry-title,
.single-oss_seminar .entry-hero-container .entry-title {
	border-bottom: 2px solid var(--os-border);
}

/* ── Header ── */
.site-header .header-navigation .menu > li > a,
.primary-navigation .menu > li > a {
	letter-spacing: 0.02em;
	font-weight: 600;
}

@media (min-width: 1025px) {
	.site-header .header-navigation .menu > li > a,
	.primary-navigation .menu > li > a,
	.site-header .header-menu-container .menu > li > a {
		font-size: 0.875rem;
	}
}

/* Obchod — ikona košíka v jednom riadku s textom */
.primary-navigation .menu-item a[href*="/obchod"],
.header-navigation .menu-item a[href*="/obchod"],
.site-header .menu-item a[href*="/obchod"],
.mobile-navigation .menu-item a[href*="/obchod"] {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	white-space: nowrap;
}

.primary-navigation .menu-item a[href*="/obchod"] .kadence-svg-iconset,
.primary-navigation .menu-item a[href*="/obchod"] .nav-menu-icon,
.primary-navigation .menu-item a[href*="/obchod"] svg,
.primary-navigation .menu-item a[href*="/obchod"] img,
.header-navigation .menu-item a[href*="/obchod"] .kadence-svg-iconset,
.header-navigation .menu-item a[href*="/obchod"] .nav-menu-icon,
.header-navigation .menu-item a[href*="/obchod"] svg,
.header-navigation .menu-item a[href*="/obchod"] img,
.mobile-navigation .menu-item a[href*="/obchod"] svg,
.mobile-navigation .menu-item a[href*="/obchod"] img {
	display: inline-block !important;
	margin: 0 !important;
	width: auto;
	max-height: 1.1em;
	vertical-align: middle;
}

.primary-navigation .menu-item a[href*="/obchod"] br,
.header-navigation .menu-item a[href*="/obchod"] br,
.site-header .menu-item a[href*="/obchod"] br {
	display: none;
}

.os-team-section .wp-block-image img {
	border-radius: 6px;
}

.os-page-content .wp-block-quote {
	border-left: 3px solid var(--os-orange);
	padding-left: 1.25rem;
	margin: 1.5rem 0;
}

.os-mentions-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.os-mentions-list li {
	padding: 1rem 0;
	border-bottom: 1px solid var(--os-border);
}

.os-mentions-list li:first-child {
	padding-top: 0;
}

.os-mentions-list a {
	color: var(--os-navy);
	text-decoration: none;
	font-weight: 600;
}

.os-mentions-list a:hover {
	color: var(--os-orange);
}

.os-blog-card .wp-block-post-title a {
	text-decoration: none;
	color: var(--os-navy);
}

.os-blog-card .wp-block-post-title a:hover {
	color: var(--os-orange);
}

.site-header .custom-logo,
.site-branding img {
	max-height: 72px;
	width: auto;
}

/* Promo cards */
.os-promo-card {
	box-shadow: 0 2px 12px rgba(53, 62, 79, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	height: 100%;
}

/* Hungary seminar cards */
.os-hu-seminars .os-hu-seminar-card {
	margin-bottom: 1.25rem;
	border-left: 4px solid var(--os-orange) !important;
}

.os-hu-seminars .os-hu-seminar-card:last-child {
	margin-bottom: 0;
}

.os-hu-seminar-card__city {
	margin: 0 0 0.35rem;
}

.os-hu-seminar-card__date {
	margin: 0;
}

.os-hu-seminar-card__address {
	margin: 0.35rem 0 0.75rem;
	line-height: 1.6;
}

.os-hu-seminar-card__meta {
	margin: 0;
	line-height: 1.65;
}

.os-hu-seminar-card__notice {
	margin: 1rem 0 0;
	font-style: italic;
}

@media (max-width: 781px) {
	.os-hu-seminars .os-hu-seminar-card .wp-block-columns {
		flex-direction: column;
		gap: 0.75rem;
	}

	.os-hu-seminars .os-hu-seminar-card .wp-block-column {
		flex-basis: 100% !important;
	}

	.os-hu-seminars .os-hu-seminar-card__date {
		display: inline-block;
	}
}

.os-promo-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(53, 62, 79, 0.12);
}

/* Testimonials */
.os-testimonial-card {
	height: 100%;
}

.os-testimonial-card .wp-block-post-featured-image img {
	width: 100%;
	object-fit: cover;
}

/* Buttons */
.wp-block-button__link,
.button,
.oss-seminare-button,
.oss-seminare-register-button {
	background-color: var(--os-orange) !important;
	border-radius: 4px;
	font-weight: 600;
}

.wp-block-button__link:hover,
.button:hover,
.oss-seminare-button:hover,
.oss-seminare-register-button:hover {
	background-color: var(--os-orange-dark) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent !important;
	color: var(--os-orange) !important;
	border: 2px solid var(--os-orange);
}

/* Seminar plugin */
.single-oss_seminar .entry-content {
	max-width: var(--global-content-width, 1200px);
	margin-left: auto;
	margin-right: auto;
}

.oss-seminare-item__dates {
	color: var(--os-orange) !important;
}

body.os-wide-layout .oss-seminare-calendar .oss-seminare-list,
.oss-seminare-calendar .oss-seminare-list {
	align-items: stretch;
	width: 650px;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.oss-seminare-calendar .oss-seminare-month,
.oss-seminare-calendar .oss-seminare-month__items,
.oss-seminare-calendar .oss-seminare-item {
	align-self: stretch;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.oss-seminare-calendar .oss-seminare-month__heading {
	margin: 0;
	padding: 0;
	text-align: center;
	color: #8e8e8e;
	font-weight: 300;
	font-size: 1.5em;
	line-height: 1.3;
	border: none;
}

.oss-seminare-filters__toggle,
.oss-seminare-filters__toggle:hover,
.oss-seminare-filters__toggle:focus,
.oss-seminare-filters__toggle:focus-visible,
.oss-seminare-filters__toggle:active {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: #353e4f !important;
}

.oss-seminare-upcoming__title {
	font-weight: 300;
	margin-top: 0 !important;
	margin-bottom: 1rem !important;
}

/* Footer */
.os-site-footer-wrap.site-footer {
	border-top: none;
	background-color: var(--os-navy);
	color: rgba(255, 255, 255, 0.92);
}

.os-site-footer-wrap .site-footer-wrap {
	background-color: transparent;
}

.os-site-footer {
	padding: 3rem 0 2.5rem;
}

.os-site-footer__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.5rem 3rem;
}

.os-site-footer__heading {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #ffffff;
}

.os-site-footer__org,
.os-site-footer__text,
.os-site-footer__meta,
.os-site-footer__social {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.88);
}

.os-site-footer__meta {
	margin-bottom: 0;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.72);
}

.os-site-footer__link,
.os-site-footer__facebook {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.os-site-footer__link:hover,
.os-site-footer__facebook:hover {
	color: var(--os-orange);
}

.os-site-footer__facebook {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-weight: 600;
}

.os-site-footer__facebook-icon {
	display: inline-flex;
	flex-shrink: 0;
}

.os-site-footer__bottom-wrap {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	background-color: rgba(0, 0, 0, 0.12);
}

.os-site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding: 1.25rem 0 1.5rem;
}

.os-site-footer__legal-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.os-site-footer__legal-list a {
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.2s ease;
}

.os-site-footer__legal-list a:hover {
	color: var(--os-orange);
}

.os-site-footer__copyright {
	margin: 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 900px) {
	.os-site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.os-site-footer {
		padding-top: 2.25rem;
	}

	.os-site-footer__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.os-site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Legal pages */
.os-legal-page {
	font-size: 0.98rem;
	line-height: 1.75;
}

.os-legal-meta {
	margin: 0 0 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--os-border);
	font-size: 0.9rem;
	color: rgba(61, 69, 76, 0.75);
}

.os-legal-document {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.os-legal-section {
	padding: 1.75rem 0;
	border-bottom: 1px solid var(--os-border);
}

.os-legal-section:first-child {
	padding-top: 0;
}

.os-legal-section:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.os-legal-section__title {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--os-navy);
}

.os-legal-section__body > :first-child {
	margin-top: 0;
}

.os-legal-section__body > :last-child {
	margin-bottom: 0;
}

.os-legal-card {
	margin: 1rem 0 0;
	padding: 1.25rem 1.5rem;
	background: var(--os-cream);
	border: 1px solid var(--os-border);
	border-radius: 6px;
}

.os-legal-card p {
	margin: 0 0 0.65rem;
}

.os-legal-card p:last-child {
	margin-bottom: 0;
}

.os-legal-list {
	margin: 0.75rem 0 0;
	padding-left: 1.35rem;
}

.os-legal-list li + li {
	margin-top: 0.45rem;
}

.os-legal-dl {
	margin: 0;
}

.os-legal-dl__row {
	display: grid;
	grid-template-columns: minmax(8rem, 11rem) 1fr;
	gap: 0.75rem 1.5rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--os-border);
}

.os-legal-dl__row:first-child {
	padding-top: 0;
}

.os-legal-dl__row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.os-legal-dl dt {
	margin: 0;
	font-weight: 600;
	color: var(--os-navy);
}

.os-legal-dl dd {
	margin: 0;
}

.os-legal-dl dd .os-legal-card {
	margin-top: 0;
}

.os-legal-table {
	width: 100%;
	margin: 0.5rem 0 1rem;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.os-legal-table th,
.os-legal-table td {
	padding: 0.75rem 1rem;
	text-align: left;
	border: 1px solid var(--os-border);
}

.os-legal-table th {
	width: 55%;
	font-weight: 600;
	background: var(--os-cream);
	color: var(--os-navy);
}

.os-legal-table td {
	background: #ffffff;
}

.os-legal-signature {
	margin: 2rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--os-border);
	font-weight: 600;
	color: var(--os-navy);
}

.os-legal-signature span {
	display: block;
	margin-top: 0.25rem;
	font-weight: 400;
	font-size: 0.92rem;
	color: var(--os-text);
}

.os-legal-page a {
	color: var(--os-orange);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.os-legal-page a:hover {
	color: var(--os-orange-dark);
}

body.os-legal-layout .entry-title {
	margin-bottom: 1rem;
}

@media (max-width: 600px) {
	.os-legal-dl__row {
		grid-template-columns: 1fr;
		gap: 0.35rem;
	}

	.os-legal-table th,
	.os-legal-table td {
		display: block;
		width: 100%;
	}

	.os-legal-table th {
		border-bottom: none;
	}
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
	color: var(--os-navy);
}

.entry-title {
	border-bottom: 2px solid var(--os-border);
	padding-bottom: 1rem;
	margin-bottom: 1.5rem;
}

/* Editor */
.editor-styles-wrapper .os-promo-card,
.editor-styles-wrapper .os-testimonial-card {
	border: 1px solid var(--os-border);
}

@media (max-width: 782px) {
	.os-hero-slider__nav {
		display: none;
	}

	.os-hero-slider__title--welcome {
		font-size: 2.25rem;
	}

	.os-hero-slider__title {
		font-size: 1.5rem;
	}

	.os-hero-slider__text {
		font-size: 1rem;
	}

	.os-hero-slider__content-panel {
		padding: 2rem 1.5rem;
	}

	.os-testimonials .wp-block-post-template,
	.os-testimonials .wp-block-post-template-is-layout-grid,
	.os-testimonials ul.wp-block-post-template {
		grid-template-columns: 1fr;
	}

	.oss-seminare-upcoming__grid {
		grid-template-columns: 1fr;
	}
}

/* ── Site-wide scroll reveal ── */

@media (prefers-reduced-motion: no-preference) {
	body.is-reveal-ready .os-reveal:not(.os-reveal--visible):not(.is-filter-hidden):not(.is-filter-leaving) {
		opacity: 0;
		transform: translate3d(0, 28px, 0);
	}

	.os-reveal {
		transition:
			opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
			transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
			box-shadow 0.2s ease;
		transition-delay: var(--os-reveal-delay, 0ms);
		will-change: opacity, transform;
	}

	.os-reveal.os-reveal--visible {
		opacity: 1;
		transform: translate3d(0, 0, 0);
		will-change: auto;
	}

	.oss-seminare-item.os-reveal--visible:hover,
	.oss-seminare-item.os-reveal--visible:focus-visible {
		box-shadow: 0 12px 32px rgba(53, 62, 79, 0.16);
		transform: translate3d(0, -2px, 0);
	}
}
