/*
 Theme Name:   Senevida
 Description:  Senevida Penta Hospitals
 Author:       @NAK
 Version:      1.0.0
 License:      Commercial
 Text Domain:  senevida
*/

/** OBSAH
 *  0 - VARIABLES
 * 	1 - TYPOGRAPHY
 * 	2 - GRID
 * 	3 - GENERAL PARTS
 * 	4 - SECTIONS
 * 	5 - MEDIA
 *  6 - ANIMACE
 */

/* 0 - VARIABLES */

:root {
	/* Burgundy */
	--burgundy: #8F134F;
	--pale: #EEE4E3;
	--white-sand: #F7F5F3;
	/* Gold */
	--dark-gold: #C9834F;
	--pale-gold: #F4C39B;
	--light-gold: #F2E4D0;
	/* Blue */
	--penta-blue: #004278;
	--pale-blue: #86AFC3;
	--light-blue: #B6C6D4;
	/* Beige */
	--dark-beige: #8E605D;
	--light-beige: #D4B7B5;
	/* Base */
	--neutral: #393939;
	--white: #FFFFFF;
	/* Grid */
	--grid-sm: 1010px;
	--grid-md: 1170px;
	--grid-lg: 1260px;
	/* Efekty */
	--radius: 16px;
}

/* HTML */
html {
	-webkit-scroll-behavior: smooth;
    scroll-behavior: smooth;
	font-size: 16px;
}
html #wpadminbar {
	position: fixed!important;
}
.screen-reader-text {
	display: none!important;
}

/* 1 - TYPOGRAPHY */

/* Literata */
@font-face {
    font-family: Literata;
	font-weight: 100 900;
	font-stretch: 75% 125%;
	font-display: swap;
    src: url(assets/fonts/Literata.ttf) format("truetype");  
}

/* Gotham */
@font-face {
    font-family: Gotham;
	font-weight: 300;
	font-display: swap;
    src: url(assets/fonts/Gotham/Gotham-Light.otf) format("opentype");  
}
@font-face {
    font-family: Gotham;
	font-weight: 500;
	font-display: swap;
    src: url(assets/fonts/Gotham/Gotham-Medium.otf) format("opentype");  
}
@font-face {
    font-family: Gotham;
	font-weight: 700;
	font-display: swap;
    src: url(assets/fonts/Gotham/Gotham-Bold.otf) format("opentype");  
}

/* Text */
body {
	margin: 0;
    font-family: Gotham, sans-serif;
	font-size: 1rem;
	line-height: 1.5;	
    font-weight: 300;
	color: var(--penta-blue);
}
input, textarea, select, button, .gm-style {
	font-family: Gotham, sans-serif;
}
h1, h2, h3, h4, h5, h6, .cislo {
	margin-top: 0;
	font-family: Literata, serif;
    font-weight: 600;
}
h1 {
    margin-bottom: 32px;
	font-size: clamp(2.25rem, 4vw, 3.375rem);
	line-height: 1.1;
}
h2, .prispevek h1 {
    margin-bottom: 20px;
	font-size: clamp(1.875rem, 3vw, 2.5rem);
	line-height: 1.2;
}
h1 strong, h2 strong {
	color: var(--burgundy);
}
h3 {
    margin-bottom: 13px;
	font-size: 1.125rem;
}
h4 {
	margin-bottom: 10px;
	font-size: 1.115rem;
}
h5 {
	margin-bottom: 8px;
	font-size: 1rem;
}
h6 {
	margin-bottom: 6px;
	font-size: 0.875rem;
}
p {
	margin: 0;
}
p + p {
	margin-top: 24px;
}
small {
	font-size: 0.875rem;
	line-height: 1.5;
}
b, strong {
	font-weight: 600;
}
a {
	font-weight: 500;
	text-decoration: underline;
	color: inherit;
	transition: color 0.2s linear;
}

button {
	-webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
	margin: 0;
	padding: 0;
	background-clip: padding-box;
	box-shadow: none;
	border: none;
}

/* Číslo */
.cislo {
	padding: 17px;
	font-size: clamp(2.25rem, 1.25vw, 3.375rem);
	background: var(--white);
	border-radius: 100px;
}

/* Kontakty */
.kontakty a, a[href^="mailto:"], a[href^="tel:"] {
	margin-top: 8px;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	text-decoration: none;
}
a[href^="mailto:"]:before, a[href^="tel:"]:before {
	content: "";
	width: 20px;
	height: 20px;
	margin-right: 6px;
	display: block;	
}
/* Email */
a[href^="mailto:"]:before {
	background: url('./assets/icons/email.svg') no-repeat center / 20px;
}
/* Telefon */
a[href^="tel:"]:before {
	background: url('./assets/icons/contact.svg') no-repeat center / 20px;
}

/* Datum */
.datum {
	margin-bottom: 30px;
	display: inline-flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--dark-beige);
}
.datum:before {
	content: "";
	width: 20px;
	height: 20px;
	margin-right: 8px;
	display: block;
	background: url('./assets/icons/calendar.svg') no-repeat center / 20px;
}

/* Label */
.label {
	display: block;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--dark-beige);
}

/* Link */
.link {
	margin-top: 20px;
	display: flex;
	flex-direction: row;
	align-items: center;
	font-size: 1.125rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--burgundy);
	cursor: pointer;
}
.link:after {
	content: "";
	width: 18px;
	height: 18px;
	margin-left: 8px;
	display: block;
	background: url('./assets/icons/chevron-right.svg') no-repeat center / 18px;
}
.link.show-more:after {
	background: url('./assets/icons/chevron-down.svg') no-repeat center / 18px;
}
.link.show-less:after {
	background: url('./assets/icons/chevron-up.svg') no-repeat center / 18px;
}

/* Btn */
.btn {
	min-width: 146px;
	padding: 14px 45px;
	font-size: 1.125rem;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	background: var(--burgundy);
	color: var(--white);
	border: 2px solid var(--burgundy);
	border-radius: 32px;
}

#burger {
	width: 63px;
	height: 52px;
	background: var(--burgundy) url('./assets/icons/menu.svg') no-repeat center;
	border-radius: 500px 0 0 500px;
}

/* 2 - GRID */
main {
	max-width: 100vw;
	overflow: hidden;
	background: var(--white-sand);
}

/* Section */
section {
	margin-bottom: 60px;
}
section .grid {
	max-width: var(--grid-md);
	margin: 0 auto;
	padding: 0 16px;
}
section .grid h1, section .grid h2, section .grid .label {
	text-align: center;
}
section .grid .tlacitka {
	justify-content: center;
}

/* Section - Uvod */
main section:first-child {
	background: var(--pale);
}
main section:last-child {
	background: transparent;
}
section:first-child > .grid {
	padding: 40px 16px;
}
section:first-child > .grid .text {
	text-align: center;
}
section:last-child > .grid .text {
	text-align: left;
}
section:first-child > .grid .tlacitka {
	justify-content: center;
}

/* Flex */
.flex-col, .flex-grid {
	display: flex;
	flex-direction: column;
}
.flex-row {
	display: flex;
	flex-direction: row;
}

/* 3 - GENERAL PARTS */

/* Header */
header {
	padding: 4px 0 4px 12px;
	background: var(--white);
}
header > * {
	margin: 0 auto;
	justify-content: space-between;
	align-items: center;	
}
header .logo {
	padding-left: 12px;
}
header nav {
	width: 100vw;
	height: 100vh;
	display: none;
	background: var(--white);
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9;
}
header nav > * {
	padding: 21px 15px;
}
header nav strong {
	border-bottom: 1px solid var(--dark-beige);
}

/* Footer */
footer {
	padding-top: 70px;
	background: var(--white);
}
footer section.content {
	max-width: var(--grid-lg);
	margin: 0 auto;
	padding: 0 16px;
}
footer section > div {
	margin-bottom: 48px;
}

/* Copyright */
.copyright {
	padding: 20px 0;
	background: var(--penta-blue);
	color: var(--white);
}
.copyright span {
	max-width: 180px;
	margin: 0 auto;
	display: block;
}

/* Menu */
.menu, .sub-menu {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	list-style: none;
}
.menu {
	align-items: center;
}
.menu a {
	text-decoration: none;
}
.menu .btn {
	padding: 14px 24px;
	background: var(--penta-blue);
	border-color: var(--penta-blue);
}

/* Box */
.box {
	display: block;
	background: var(--white);
	border-radius: var(--radius);
}
.box > div {
	padding: 24px;
}

/* Embla */
.embla {
	width: 100%;
	overflow: hidden;
	cursor: pointer;
}
.embla__viewport {
	width: 100%;
	margin: 0 auto;
	overflow: hidden;
}
.embla__container {
	margin: 0;
	padding: 0;
	list-style: none;
}
.embla__slide {
	width: 100%;
	box-sizing: border-box;
	position: relative;
	flex-shrink: 0;
}
.embla__controls {
	padding: 16px 0;
	justify-content: space-between;
	align-items: center;
}
.embla__dots {
	align-items: center;
	gap: 8px;
}
.embla__dots button {
	width: 28px;
	height: 0;
	border: 2px solid var(--burgundy);
	opacity: 0.2;
	transition: opacity 0.2s linear;
}
.embla__dots button:hover, .embla__dots button.is-selected {
	opacity: 1;
}

/* 4 - SECTIONS */

.left {
	align-items: flex-start;
	text-align: left;
}
.center {
	align-items: center;
	text-align: center;
}

/* CTA */
.cta {
	padding: 40px 0;
	background: var(--pale);
}

/* Dokumenty */
.dokumenty {
	gap: 16px;
}
.dokumenty h3 {
	margin-bottom: 0;
	font-weight: 400;
}
.dokumenty a > .flex-row {
	justify-content: space-between;
	align-items: center;
}
.dokumenty a > .flex-row > small {
	font-weight: 500;
	text-decoration: none;
}

/* Galerie */
.galerie img {
	width: 100%;
	height: 215px;
	object-fit: cover;
	border-radius: var(--radius);
}
.galerie .embla__viewport {
	width: calc(100% + 16px);
	margin-right: -16px;
}
.galerie .embla__container {
   gap: 8px;
}
.galerie .embla__slide {
	width: calc(45% - 8px);
}
.galerie .embla__slide:last-child {
	margin-right: 8px;
}

/* Personál */
.personal .funkce {
	margin: 4px 0 8px;
	display: block;
}
.personal .kontakty {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
    gap: 32px;
}

/* Poradna */
.poradna h3 {
	margin-bottom: 0;
}
.poradna {
	gap: 20px;
}
.poradna .dotaz {
	padding: 24px 20px 24px 73px;
	background: var(--white);
	border-radius: var(--radius);
	cursor: pointer;
	transition: background 0.2s linear, color 0.2s linear;
}
.poradna .dotaz:hover {
	background: var(--burgundy);
	color: var(--white);
}
.poradna .dotaz > div {
	margin-top: 24px;
	display: none;
}

/* Příspěvky */
.prispevky {
	display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 32px;
}
.prispevky a {
	font-weight: 300;
	text-decoration: none;
}
.prispevky img {
	width: 100%;
	height: 215px;
	object-fit: cover;
	border-radius: var(--radius) var(--radius) 0 0;
}

/* Reference */
.reference .embla__slide {
	text-align: left;
	background: var(--white);
	border-radius: var(--radius);
}
.reference .embla__slide > * {
	padding: 24px;
}
.reference .text-full {
	display: none;
}

/* Text a obrazek */
.text-obrazek {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 36px;
}
.text-obrazek.uvod {
	padding-top: 0;
	align-items: center;
}
.text-obrazek.prispevek {
	margin-bottom: 0;
	background: transparent;
}
.text-obrazek .text {
	padding: 24px 0;
}
.text-obrazek .text .text-full {
	height: 0;
	position: relative;
	top: 200px;
	overflow: hidden;
	transition: top 0.2s linear;
}
.text-obrazek .text .text-full.text-show {
	height: auto;
	top: 0;
}
.text-obrazek .kontakty {
	margin-top: 28px;
	gap: 20px;
}
.text-obrazek img {
	width: 100vw;
	max-height: 224px;
	object-fit: cover;
	object-position: top;
	border-radius: 500px 0 0 500px;
}
.text-obrazek.uvod img {
	max-height: 335px;
}
section.text-obrazek:nth-child(even) img {
	border-radius: 0 500px 500px 0;
}

/* Tlačítka */
.tlacitka {
	align-items: center;
	gap: 16px;
}
div + .tlacitka {
	margin-top: 32px;
}
.tlacitka a.btn:nth-child(even) {
	background: var(--transparent);
	color: var(--burgundy);
}

/* Video */
.video .grid {
	max-width: var(--grid-sm);
}
.video .embed-container {
	height: 0;
    padding-bottom: 56.25%;
    padding-top: 30px;
    position: relative;
}
.video .embed-container iframe {
	width: 100%;
	height: calc(100% - 30px);
    position: absolute;
    top: 0;
    left: 0;
	border-radius: var(--radius);
}

/* Virtuální prohlídka */
.virtualni-prohlidka iframe {
	width: 100%;
	border-radius: var(--radius);
}

/* 5 - MEDIA */

@media (min-width: 600px) {
	header .logo {
		padding-left: 20px;
	}
}

@media (min-width: 960px) {
	.flex-grid {
		flex-direction: row;
	}
	header {
		padding: 19px 0;
	}
	.galerie ul {
		gap: 16px;
	}
	.galerie .embla__slide {
		width: calc(25% - 8px);
	}
	.reference .embla__container {
		gap: 28px;
	}
	.reference .embla__slide {
		width: calc(50% - 14px);
	}
	.text-obrazek {
		flex-direction: row;
		gap: 77px;
	}
	.text-obrazek .text {
		max-width: 510px;
	}
	section.text-obrazek:nth-child(even) {
		flex-direction: row-reverse;
	}
	.text-obrazek img {
		width: 50vw;
		max-height: 410px;
	}	
	.text-obrazek.uvod img {
		max-height: 570px;
	}
}

@media (min-width: 1280px) {
	section:first-child > .grid, 
	section:first-child > .text, 
	section.prispevek img {
		padding: 60px 0;
	}
	section .grid h2 {
		margin-bottom: 40px;
	}
	#burger {
		display: none;
	}
	.menu {
		flex-direction: row;
	}
	.embla__dots button {
		width: 40px;
		border-width: 4px;
	}
	header {
		padding: 21px 45px 21px 0;
	}
	header nav {
		width: auto;
		height: auto;
		display: block;
		position: static;
	}
	header nav strong {
		display: none;
	}
	header nav .menu {
		gap: 32px;
	}
	.copyright {
		padding: 32px 0;
	}
	.copyright span {
		max-width: 100%;
	}
	.cta {
		padding: 90px 0;
	}
	.personal .kontakty {
		gap: 60px;
	}
	.reference .embla__slide {
		width: calc(33.33% - 18px);
	}
}