/* --- 1. ZÁKLADNÉ NASTAVENIA A RESET --- */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&display=swap");

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	/* Farebná paleta inšpirovaná eleganciou */
	--primary-color: #247ba0; /* Tmavá farba pre text a akcenty */
	--secondary-color: #d61f26; /* farba pre akcenty (Nuart akcent) */
	--light-bg: #fffbfe; /* Svetlé pozadie sekcií */
	--dark-bg: #565554; /* Alternatívne pozadie sekcií */
	--text-color: #010101;
	--font-family: "Open Sans", sans-serif;
}

html {
	scroll-behavior: smooth; /* Toto zabezpečí plynulé scrollovanie */
}

body {
	font-family: var(--font-family);
	line-height: 1.6;
	color: var(--text-color);
	background-color: white;
	scroll-behavior: smooth; /* Pre plynulé scrollovanie v One-Page webe */
}

/* Odkazy */
a {
	color: var(--primary-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--secondary-color);
}

/* Sekcie a Padding */
.sec-padding {
	padding: 80px 5%;
	max-width: 1200px;
	margin: 0 auto;
}

.alt-bg {
	background-color: #e1e1e1;
}

/* --- 2. TYPOGRAFIA --- */

h1,
h2,
h3 {
	margin-bottom: 20px;
	line-height: 1.2;
	font-weight: 300; /* Pre elegantnejší, minimalistický vzhľad */
}

h1 {
	font-size: 3em;
	text-align: center;
}

h2 {
	font-size: 2em;
	text-align: center;
	margin-bottom: 40px;
	border-bottom: 2px solid var(--secondary-color);
	display: inline-block;
	padding-bottom: 5px;
}

h3 {
	font-size: 1.75em;
	text-align: center;
	color: var(--secondary-color);
	margin-top: 20px;
	margin-bottom: 20px;
}

p {
	margin-bottom: 20px;
	text-align: center;
}

/* --- 3. NAVIGÁCIA (HEADER) --- */

header {
	background-color: white;
	padding: 15px 5%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	position: sticky;
	top: 0;
	z-index: 1000;
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.logo a {
	font-size: 1.8em;
	font-weight: 700;
	color: var(--primary-color);
	letter-spacing: 2px;
}

nav ul {
	list-style: none;
	display: flex;
}

nav ul li {
	margin-left: 30px;
}

nav ul a {
	color: var(--text-color);
	font-weight: 500;
	text-transform: uppercase;
	padding: 5px 0;
	position: relative;
}

nav ul a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--secondary-color);
	transition: width 0.3s ease;
}

nav ul a:hover::after {
	width: 100%;
}

/* --- 4. HERO SEKCIA --- */

#hero {
	background-image: url("./images/hero.jpeg"); /* Zmena tu */
	background-size: cover; /* Pokryje celú plochu */
	background-position: center; /* Vycentruje obrázok */
	background-repeat: no-repeat; /* Zabráni opakovaniu */
	position: relative; /* Potrebné pre overlay */
	color: white; /* Zmena farby textu pre lepší kontrast s tmavším pozadím */

	min-height: 70vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding-top: 100px;
}

/* Pridáme overlay pre lepší kontrast textu */
#hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4); /* Tmavošedý overlay s transparentnosťou */
	z-index: 1; /* Uistí sa, že overlay je pod textom */
}

#hero h1,
#hero p,
#hero .cta-button {
	z-index: 2; /* Uistí sa, že text je nad overlayom */
	position: relative; /* Potrebné pre z-index na niektorých prehliadačoch */
}

#hero p {
	font-size: 1.2em;
	margin-bottom: 30px;
}

.cta-button {
	background-color: var(--secondary-color);
	color: white;
	padding: 12px 30px;
	border-radius: 5px;
	text-transform: uppercase;
	font-weight: 600;
	transition: background-color 0.3s ease, transform 0.2s ease;
	display: inline-block;
}

.cta-button:hover {
	background-color: #247ba0; /* Tmavší odtieň */
	transform: translateY(-2px);
	color: white;
}

/* --- 5. SEKCIE (O NÁS, SLUŽBY, ATĎ.) --- */

.service-list {
	display: flex;
	justify-content: space-around;
	gap: 30px;
	text-align: center;
}

.service-item {
	background-color: white;
	padding: 30px;
	border-radius: 8px;
	border-color: #e1e1e1;
	/* border-width: 1px; */
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	flex: 1;
	min-width: 100px;
}

.service-item h3 {
	color: var(--secondary-color);
	text-align: left;
	margin-bottom: 15px;
	font-weight: 500;
}

.service-item p {
	text-align: left;
}

/* --- 6. KONTAKTNÝ FORMULÁR --- */

#kontakt {
	text-align: center;
}

#contact-form {
	display: flex;
	flex-direction: column;
	max-width: 500px;
	margin: 0 auto 30px auto;
}

#contact-form input,
#contact-form textarea {
	padding: 15px;
	margin-bottom: 15px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-family: var(--font-family);
	font-size: 1em;
}

#contact-form button {
	background-color: var(--primary-color);
	color: white;
	padding: 15px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1.1em;
	text-transform: uppercase;
	transition: background-color 0.3s ease;
}

#contact-form button:hover {
	background-color: var(--secondary-color);
}

address {
	font-style: normal;
}

/* --- 7. FOOTER --- */

footer {
	background-color: var(--dark-bg);
	color: white;
	text-align: center;
	padding: 20px 5%;
}

.social-links a {
	color: white;
	margin: 0 10px;
	font-size: 1.2em;
}

.social-links a:hover {
	color: var(--secondary-color);
}

/* --- 8. RESPONZIVITA (Media Queries) --- */

@media (max-width: 900px) {
	h1 {
		font-size: 2.5em;
	}

	nav ul {
		display: none; /* Pre zjednodušenie, na mobile by bola hamburger ikona */
	}

	nav {
		justify-content: center; /* Vycentruj logo, ak zmizne menu */
	}

	.sec-padding {
		padding: 50px 5%;
	}

	.service-list {
		flex-direction: column;
	}

	.service-item {
		margin-bottom: 20px;
	}
}

@media (max-width: 600px) {
	h1 {
		font-size: 2em;
	}

	h2 {
		font-size: 1.5em;
	}

	#hero {
		padding-top: 70px;
	}
}
