/* Front vasaopatrovatelka.sk (SUNSET MSH) nad Bootstrap 5 - farby, pisma a charakter ako stary web (sunset-msh.css) */

:root {
	--brand-red: #ef2a2d;
	--brand-red-dark: #d62427;
	--brand-brown: #3f3434;
	--brand-brown-light: #523c3c;
	--brand-grey: #e8e8e8;
	--brand-grey-light: #f9f9f9;
	--font-base: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
	--font-heading: Impact, Charcoal, "Arial Narrow", sans-serif;
	--bs-body-font-family: var(--font-base);
	--bs-body-color: var(--brand-brown);
	--bs-link-color: var(--brand-red-dark);
	--bs-link-color-rgb: 214, 36, 39;
	--bs-link-hover-color: var(--brand-brown);
	--bs-link-hover-color-rgb: 63, 52, 52;
}

body {
	font-family: var(--font-base);
	color: var(--brand-brown);
	background: #fff;
}

.skip-link {
	position: absolute;
	z-index: 1100;
	left: 1rem;
	top: 1rem;
	background: #fff;
	padding: 0.5rem 1rem;
}

:focus-visible {
	outline: 3px solid #1f6feb;
	outline-offset: 2px;
}

.icon {
	width: 1em;
	height: 1em;
	display: inline-block;
	vertical-align: -0.125em;
}

/* --- Tlacidla a formulare ----------------------------------------------- */

.btn {
	border-radius: 0;
}
.btn-danger {
	--bs-btn-bg: var(--brand-red);
	--bs-btn-border-color: var(--brand-red);
	--bs-btn-hover-bg: var(--brand-red-dark);
	--bs-btn-hover-border-color: var(--brand-red-dark);
	--bs-btn-active-bg: var(--brand-red-dark);
	--bs-btn-active-border-color: var(--brand-red-dark);
}
.btn-dark {
	--bs-btn-bg: var(--brand-brown);
	--bs-btn-border-color: var(--brand-brown);
	--bs-btn-hover-bg: #000;
	--bs-btn-hover-border-color: #000;
}

.form-control,
.form-select,
.input-group-text {
	border-radius: 0;
	font-size: 1rem;
}
.form-control:focus,
.form-select:focus {
	border-color: var(--brand-brown-light);
	box-shadow: 0 0 0 0.2rem rgba(63, 52, 52, 0.2);
}
.form-check-input:checked {
	background-color: var(--brand-red);
	border-color: var(--brand-red);
}
.form-check-input {
	border-radius: 0 !important;
}

.form-box {
	background: #fff;
	border: 2px solid var(--brand-grey);
	padding: 1.25rem;
}

.col-form-label,
.form-label {
	font-size: 1.125rem;
}
@media (min-width: 576px) {
	.form-row-field .col-form-label {
		text-align: right;
	}
}

/* --- Hlavicka ------------------------------------------------------------- */

.site-header {
	background: var(--brand-red);
}
.site-header .navbar {
	padding-top: 0;
	padding-bottom: 0;
	min-height: 90px;
}
.site-header .navbar-brand img {
	max-width: 100%;
	height: auto;
}
.site-header .nav-link {
	color: #fff;
	font-size: 1.125rem;
	font-weight: 300;
	text-transform: uppercase;
	padding: 2.1rem 0.65rem;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .nav-link.active {
	color: #fff;
	background: var(--brand-red-dark);
}
.site-header .nav-item--button {
	margin: 0 0.3rem;
}
.site-header .nav-item--button .nav-link {
	border: 1px solid #fff;
	padding: 0.9rem 0.9rem 0.75rem;
	margin: 1.25rem 0;
}
.site-header .nav-item--button .nav-link:hover,
.site-header .nav-item--button .nav-link:focus,
.site-header .nav-item--button .nav-link.active {
	background: #fff;
	color: #000;
}
.site-header .navbar-toggler {
	border-color: rgba(255, 255, 255, 0.7);
	border-radius: 0;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
	.site-header .navbar-brand img {
		max-height: 30px;
		width: auto;
	}
	.site-header .nav-link {
		font-size: 1rem;
		padding-left: 0.45rem;
		padding-right: 0.45rem;
	}
}

@media (max-width: 991.98px) {
	.site-header .navbar {
		min-height: 60px;
	}
	.site-header .navbar-brand img {
		max-height: 30px;
		width: auto;
	}
	.site-header .navbar-collapse {
		background: var(--brand-brown);
		margin: 0 calc(var(--bs-gutter-x) * -0.5);
		padding-bottom: 0.75rem;
		border-bottom: 10px solid rgba(0, 0, 0, 0.2);
	}
	.site-header .nav-link {
		padding: 0.9rem 1rem;
	}
	.site-header .nav-item--button {
		margin: 0.25rem 1rem;
	}
	.site-header .nav-item--button .nav-link {
		margin: 0;
	}
}

/* --- Banner a nadpisy sekcii ---------------------------------------------- */

.banner {
	position: relative;
	background: var(--brand-grey-light);
}
.banner__image {
	display: block;
	width: 100%;
	height: auto;
}
.banner__caption {
	position: absolute;
	inset: 0;
	padding-top: 80px;
}
.banner__text {
	position: relative;
	max-width: 650px;
	padding-left: 20px;
}
.banner__text::before {
	content: '';
	position: absolute;
	left: 0;
	top: -80px;
	bottom: 0;
	width: 4px;
	background: var(--brand-red);
}
.banner__title {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 2.8rem;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--brand-red);
}
.banner__description {
	margin: 0.5rem 0 0;
	font-family: var(--font-heading);
	font-size: 1.125rem;
	text-transform: uppercase;
	color: var(--brand-brown-light);
}

@media (min-width: 768px) and (max-width: 991.98px) {
	.banner__caption {
		padding-top: 40px;
	}
	.banner__text {
		max-width: 380px;
	}
	.banner__title {
		font-size: 1.9rem;
	}
}

/* Na mobile je text pod obrazkom; podstranky banner nemaju (ako stary web) */
@media (max-width: 767.98px) {
	.banner {
		display: none;
	}
	.banner--large {
		display: block;
	}
	.banner__caption {
		position: static;
		padding: 1.25rem 0;
	}
	.banner__text::before {
		display: none;
	}
	.banner__text {
		padding-left: 0;
	}
	.banner__title {
		font-size: 2rem;
	}
}

.section-heading {
	background: #fff;
}
.section-heading__title {
	margin: 60px 0;
	padding: 0 0 0 calc(var(--bs-gutter-x) * 0.5);
	border-left: 4px solid var(--brand-red);
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 1.875rem;
	line-height: 34px;
	text-transform: uppercase;
	color: var(--brand-red);
}
.section-heading__title strong {
	font-weight: 400;
	color: var(--brand-brown-light);
}
@media (max-width: 991.98px) {
	.section-heading__title {
		margin: 40px 0;
	}
}
@media (max-width: 767.98px) {
	.section-heading__title {
		margin: 20px 0;
		padding-left: 0;
		border-left: 0;
		font-size: 1.6rem;
		line-height: 1.15;
	}
}

/* --- Obsah ---------------------------------------------------------------- */

.article-section {
	background: var(--brand-grey-light);
	padding: 30px 0 70px;
	border-top: 3px solid var(--brand-grey);
	border-bottom: 3px solid var(--brand-grey);
}
.rich-text {
	font-size: 1.375rem;
	line-height: 1.75rem;
	color: var(--brand-brown);
}
.rich-text p,
.rich-text ul,
.rich-text ol {
	margin-bottom: 20px;
}
.rich-text img {
	max-width: 100%;
	height: auto;
}
.rich-text a {
	word-break: break-word;
}
@media (max-width: 767.98px) {
	.rich-text {
		font-size: 1.125rem;
		line-height: 1.5;
	}
	.article-section {
		padding-bottom: 40px;
	}
}

/* --- Vyhody spoluprace ---------------------------------------------------- */

.advantages__list {
	background: var(--brand-red);
	padding: 80px 0 60px;
}
.advantages__item {
	display: flex;
	align-items: center;
	min-height: 65px;
	margin-bottom: 20px;
	gap: 25px;
}
.advantages__icon {
	flex: 0 0 65px;
	height: 65px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: var(--brand-red);
	font-size: 2rem;
}
.advantages__text {
	color: #fff;
	font-size: 1.25rem;
	line-height: 1.5rem;
	font-weight: 300;
}
@media (max-width: 767.98px) {
	.advantages__list {
		padding: 40px 0 20px;
	}
	.advantages__item {
		gap: 15px;
	}
}

/* --- Vyzva na kalkulaciu ---------------------------------------------------- */

.calculation-cta {
	background: #fff;
	padding: 60px 0;
}
.calculation-cta__text {
	margin: 0;
	padding-left: calc(var(--bs-gutter-x) * 0.5);
}
.calculation-cta__text p {
	margin: 0;
}
.calculation-cta__button {
	text-transform: uppercase;
	font-size: 1.125rem;
	padding: 0.8rem 1.1rem;
}
@media (max-width: 767.98px) {
	.calculation-cta {
		padding: 30px 0;
	}
	.calculation-cta__button {
		display: block;
		width: 100%;
	}
}

/* --- Paticka ---------------------------------------------------------------- */

.site-footer {
	background: var(--brand-brown);
	color: #fff;
	padding: 120px 0 40px;
}
.site-footer__panel {
	font-size: 1.25rem;
	font-weight: 300;
	margin-bottom: 30px;
}
.site-footer__panel a {
	text-decoration: none;
}
.site-footer__panel p {
	margin-bottom: 0.4rem;
}
.site-footer a,
.site-footer .btn-link {
	color: #fff;
}
.site-footer__logo img {
	max-height: 50px;
	width: auto;
}
.site-footer__legal {
	list-style: none;
	padding: 0;
	margin: 60px 0 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	font-size: 0.95rem;
}
.site-footer__legal .btn-link {
	font-size: inherit;
	text-decoration: underline;
	vertical-align: baseline;
}
@media (max-width: 767.98px) {
	.site-footer {
		padding: 40px 0 90px;
	}
}

/* --- Vyskakovacie tlacidlo kontaktu ----------------------------------------- */

.contact-popup {
	position: fixed;
	right: 15px;
	bottom: 0;
	z-index: 1030;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--brand-red-dark);
	color: #fff;
	font-size: 1.375rem;
	padding: 0.8rem 1.25rem;
	text-decoration: none;
	animation: popup-in 0.6s ease-out;
}
.contact-popup:hover,
.contact-popup:focus {
	background: var(--brand-brown);
	color: #fff;
}
@keyframes popup-in {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	.contact-popup {
		animation: none;
	}
}
@media (max-width: 575.98px) {
	.contact-popup {
		font-size: 1.1rem;
		right: 0;
		left: 0;
		justify-content: center;
	}
}

/* --- Kalkulacia ------------------------------------------------------------- */

.steps {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
	position: relative;
}
.steps::before {
	content: '';
	position: absolute;
	top: 19px;
	left: 16.5%;
	right: 16.5%;
	height: 2px;
	background: var(--brand-grey);
}
.steps__item {
	flex: 1 1 0;
	text-align: center;
	position: relative;
}
.steps__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--brand-grey);
	color: var(--brand-brown);
	font-size: 1.25rem;
	text-decoration: none;
}
a.steps__number:hover {
	border-color: var(--brand-brown);
}
.steps__item--done .steps__number {
	border-color: var(--brand-brown);
}
.steps__item--active .steps__number {
	background: var(--brand-brown);
	border-color: var(--brand-brown);
	color: #fff;
}
.steps__title {
	display: block;
	margin-top: 5px;
	font-size: 1.125rem;
}
@media (max-width: 575.98px) {
	.steps__title {
		font-size: 0.9rem;
		line-height: 1.1;
	}
}

.calculation__title {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 1.875rem;
	text-transform: uppercase;
	color: var(--brand-red);
	margin-bottom: 1.5rem;
}
.calculation__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	border-top: 2px solid var(--brand-grey);
	padding-top: 1.25rem;
	margin-top: 1.5rem;
}

/* --- Cookie lista --------------------------------------------------------- */

.consent {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	right: 1rem;
	z-index: 1080;
	max-width: 650px;
}
.consent__box {
	background: #fff;
	border: 1px solid #d8d8d8;
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
	padding: 1.25rem;
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
}
.consent__title {
	font-size: 1.25rem;
	font-weight: bold;
}
.consent__text {
	font-size: 0.95rem;
	margin-bottom: 1rem;
}
.consent__text p {
	margin-bottom: 0.5rem;
}
.consent__settings .form-check {
	margin-bottom: 0.5rem;
}
.consent__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-end;
}
@media (max-width: 575.98px) {
	.consent {
		left: 0.5rem;
		right: 0.5rem;
		bottom: 0.5rem;
	}
	.consent__buttons .btn {
		flex: 1 1 45%;
	}
}

/* Sirka obsahu ako stary web (1200 px) */
@media (min-width: 1200px) {
	.container {
		max-width: 1200px;
	}
}

.calculation__cancel {
	margin-top: 1rem;
	text-align: right;
}
