/* Reset a základní styly */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Montserrat', sans-serif;
	background: white;
	color: black;
	overflow-x: hidden;
}

/* Container */
.container {
	position: relative;
	max-width: 1728px;
	width: 100%;
	margin: 0 auto;
	background: white;
}

/* Logo */
.logo {
	padding: 32px 30px;
	width: 280px;
	z-index: 100;
}

.logo img {
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
}

/* Hamburger menu button */
.hamburger {
	display: none;
	position: absolute;
	right: 30px;
	top: 50px;
	z-index: 101;
	background: none;
	border: none;
	flex-direction: column;
	gap: 6px;
	cursor: pointer;
	padding: 10px;
}

.hamburger span {
	display: block;
	width: 30px;
	height: 3px;
	background: black;
	transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
	transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active span:nth-child(2) {
	opacity: 0;
}

.hamburger.active span:nth-child(3) {
	transform: rotate(-45deg) translate(9px, -9px);
}

/* Navigace */
.navigation {
	position: relative;
	display: flex;
	justify-content: center;
	gap: clamp(15px, 1.7vw, 30px);
	padding: 40px 20px;
	font-family: 'Open Sans', sans-serif;
	font-weight: 600;
	font-size: clamp(16px, 1.4vw, 24px);
	text-align: center;
	flex-wrap: wrap;
}

.nav-item {
	color: black;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.3s ease;
}

.nav-item.active {
	color: #69ad46;
}

.nav-item:hover {
	color: #69ad46;
}

/* Hero sekce */
.hero {
	position: relative;
	width: 100%;
	height: clamp(400px, 48vw, 830px);
	overflow: hidden;
}

.hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.hero-title {
	max-width: 882px;
	width: 90%;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: clamp(24px, 2.8vw, 48px);
	color: white;
	text-align: center;
	line-height: 1.2;
	margin-bottom: clamp(30px, 4vw, 60px);
}

.hero-subtitle {
	max-width: 887px;
	width: 90%;
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: clamp(18px, 2.1vw, 36px);
	color: white;
	text-align: center;
	line-height: 1.3;
	margin-bottom: clamp(30px, 4vw, 60px);
}

.hero-subtitle p {
	margin: 0;
}

.hero-button {
	width: clamp(200px, 17.5vw, 302px);
	height: clamp(50px, 4.3vw, 75px);
	background: black;
	border: none;
	border-radius: 15px;
	color: #69ad46;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: clamp(16px, 1.2vw, 20px);
	cursor: pointer;
	margin-bottom: 20px;
	transition: transform 0.3s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.hero-button:hover {
	transform: scale(1.05);
}

.carousel-dots {
	display: flex;
	gap: 19px;
	margin-top: 10px;
}

.dot {
	width: 20px;
	height: 16px;
}

/* Developerské projekty */
.projects {
	position: relative;
	width: 100%;
	background: white;
	padding: 56px 20px 80px 20px;
}

.section-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: clamp(28px, 2.2vw, 37.95px);
	color: black;
	text-align: center;
	margin-bottom: 30px;
}

.title-line {
	width: clamp(80%, 84%, 1455px);
	max-width: 1455px;
	height: 1px;
	margin: 0 auto 80px auto;
	display: block;
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
	gap: clamp(40px, 6.2vw, 107px) clamp(20px, 7.9vw, 137px);
	max-width: 1457px;
	margin: 0 auto;
	padding: 0 20px;
}

.project-card {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 660 / 397;
	overflow: hidden;
	box-shadow: 20px 20px 30px 0px rgba(0, 0, 0, 0.25);
	transition: transform 0.3s ease;
	text-decoration: none;
	color: inherit;
}

.project-card:hover {
	transform: translateY(-5px);
}

.project-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.project-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: clamp(60px, 18%, 73px);
	background: rgba(0, 0, 0, 0.46);
	display: flex;
	align-items: center;
	justify-content: center;
}

.project-overlay h3 {
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: clamp(20px, 2.2vw, 37.95px);
	color: white;
	text-align: center;
	padding: 0 10px;
}

/* Naše vize (O nás) */
.vision {
	position: relative;
	max-width: 1324.895px;
	width: 90%;
	margin: 80px auto;
	background: white;
	box-shadow: 15.813px 21.083px 31.625px 0px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: row;
	overflow: hidden;
}

.vision-image {
	width: 50%;
	min-height: 400px;
}

.vision-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vision-content {
	width: 50%;
	padding: clamp(40px, 8vw, 132.76px) clamp(30px, 4vw, 60px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.vision-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: clamp(24px, 2.2vw, 37.95px);
	color: black;
	margin-bottom: 18px;
}

.vision-text {
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: clamp(14px, 1.1vw, 18.975px);
	color: black;
	line-height: 1.5;
	margin-bottom: 40px;
}

.vision-text p {
	margin: 0 0 10px 0;
}

.vision-button {
	width: clamp(180px, 18vw, 238.504px);
	height: clamp(50px, 5vw, 67.546px);
	background: #69ad46;
	border: none;
	color: white;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: clamp(12px, 0.9vw, 15.813px);
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.vision-button:hover {
	transform: scale(1.05);
}

.vision-text-ref {
	color: #008000;
	text-decoration: underline;
}

.vision-text-ref:hover {
	color: #0000ff;
}

/* Naše divize */
.divisions {
	position: relative;
	width: 100%;
	background: white;
	padding: 74.27px 20px 80px 20px;
}

.divisions .section-title {
	text-align: left;
	margin-left: clamp(20px, 5.6vw, 97px);
	margin-bottom: 60px;
}

.divisions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: clamp(30px, 4.3vw, 74px);
	max-width: 1520px;
	margin: 0 auto;
	padding: 0 clamp(20px, 4.7vw, 82px);
}

.division-card {
	position: relative;
	background: white;
	min-height: 362.481px;
	display: flex;
	flex-direction: column;
}

.division-logo-wrapper {
	height: 220px;
	display: flex;
	align-items: center;
	padding: 34px 38px 34px 38px;
}

.division-logo,
.division-image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.division-content {
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: clamp(14px, 1.1vw, 18.975px);
	color: black;
	line-height: 1.4;
	margin: 0 0 20px 38px;
}

.division-content p {
	margin: 0;
}

.division-link {
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: clamp(12px, 0.9vw, 15.813px);
	color: black;
	text-transform: uppercase;
	text-decoration: none;
	margin-left: 38px;
	margin-top: auto;
	padding-bottom: 20px;
	transition: color 0.3s ease;
}

.division-link:hover {
	color: #69ad46;
}

.divisions-description {
	max-width: 820px;
	width: 90%;
	margin: 80px auto 40px auto;
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: clamp(14px, 1.1vw, 18.975px);
	color: black;
	text-align: center;
	line-height: 1.5;
}

.divisions-description p {
	margin: 0;
}

.btn-primary {
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(200px, 15.3vw, 264.387px);
	height: clamp(50px, 3.5vw, 59.897px);
	background: #69ad46;
	border: none;
	color: white;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: clamp(12px, 0.9vw, 15.813px);
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	margin: 0 auto;
	transition: transform 0.3s ease;
}

.btn-primary:hover {
	transform: scale(1.05);
}

/* Social Feed */
.social-feed {
	position: relative;
	width: 100%;
	background: #f5f5f5;
	padding: 64px 20px 80px 20px;
	overflow: hidden;
}

.social-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 40px;
	padding-left: clamp(20px, 4.5vw, 77px);
	flex-wrap: wrap;
}

.social-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: clamp(24px, 1.85vw, 32px);
	color: black;
}

.social-icon {
	width: clamp(32px, 2.3vw, 40px);
	height: clamp(32px, 2.3vw, 40px);
}

.social-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 20px;
	max-width: 1650px;
	margin: 0 auto;
	padding: 0 clamp(20px, 2.5vw, 43px);
}

.instagram-card {
	background: white;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.instagram-header {
	display: flex;
	align-items: center;
	padding: 29px 34px;
}

.instagram-avatar {
	width: clamp(60px, 6vw, 99px);
	height: auto;
	object-fit: contain;
	margin-right: clamp(20px, 2.7vw, 47px);
}

.instagram-info {
	flex: 1;
}

.instagram-name {
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: clamp(14px, 1.1vw, 18.975px);
	color: black;
	margin: 0 0 5px 0;
}

.instagram-handle {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: clamp(14px, 1.1vw, 18.975px);
	color: black;
	margin: 0;
}

.instagram-image {
	width: 100%;
	aspect-ratio: 365 / 338;
	object-fit: cover;
}

.instagram-footer {
	display: flex;
	gap: 35px;
	justify-content: flex-end;
	padding: 15px 30px;
}

.instagram-action {
	display: flex;
	align-items: center;
	gap: 10px;
}

.instagram-icon {
	width: 24px;
	height: 24px;
}

.instagram-count {
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: clamp(16px, 1.2vw, 20px);
	color: #757575;
}

/* Footer */
.footer {
	position: relative;
	width: 100%;
	background: linear-gradient(-0.000003635211356822765deg, rgba(0, 0, 0, 0) 2.5641%, rgba(0, 0, 0, 0.2) 48.471%), linear-gradient(90deg, rgba(105, 173, 70, 1) 0%, rgba(105, 173, 70, 1) 100%);
	color: white;
	font-weight: 700;
	padding: 59px clamp(20px, 4.1vw, 71px);
}

.footer-content {
	display: flex;
	gap: clamp(30px, 5vw, 80px);
}

.footer-column {
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(16px, 1.4vw, 24px);
	line-height: 1.5;
}

.footer-column:nth-child(1),
.footer-column:nth-child(2) {
	white-space: nowrap;
}

.footer-column p {
	margin: 0 0 10px 0;
}

.footer-column a {
	color: white;
	text-decoration: underline;
}

.footer-small {
	font-size: clamp(12px, 0.9vw, 16px) !important;
}

.general-button {
	/*width: clamp(180px, 18vw, 238.504px);*/
	/*height: clamp(50px, 5vw, 67.546px);*/
	padding: 32px;
	background: #69ad46;
	border: none;
	color: white;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 0.9vw;
	/*font-size: clamp(12px, 0.9vw, 15.813px);*/
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.3s ease;
	text-decoration: none;
	display: inline-block;
}

.general-button:hover {
	transform: scale(1.05);
}

/* Project detail */
.project-detail {
	position: relative;
	width: 100%;
	background: white;
	padding: 56px 20px 80px 20px;
}

/* Project gallery */
.project-gallery h3 {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: clamp(20px, 1.8vw, 30px);
	color: black;
	text-align: center;
	margin-bottom: 40px;
}

.project-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 16px;
	max-width: 1457px;
	margin: 0 auto;
	padding: 0 20px;
}

.project-gallery-item {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 4px;
	box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-gallery-item:hover {
	transform: translateY(-3px);
	box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.25);
}

.project-gallery-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.project-gallery-item:hover .project-gallery-thumb {
	transform: scale(1.05);
}


/* Media Queries */

/* Tablet and below */
@media (max-width: 1200px) {
	.projects-grid {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
	}

	.vision {
		width: 95%;
	}
}

/* Small tablets and large phones */
@media (max-width: 900px) {
	.vision {
		flex-direction: column;
	}

	.vision-image,
	.vision-content {
		width: 100%;
	}

	.vision-image {
		min-height: 300px;
	}

	.divisions .section-title {
		text-align: center;
		margin-left: 0;
	}

	.social-grid {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	}
}

/* Mobile - Hamburger menu activation */
@media (max-width: 800px) {
	.hamburger {
		display: flex;
	}

	.navigation {
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		max-width: 400px;
		height: 100vh;
		background: white;
		flex-direction: column;
		padding: 100px 40px 40px 40px;
		gap: 30px;
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
		transition: right 0.3s ease;
		z-index: 99;
		overflow-y: auto;
	}

	.navigation.active {
		right: 0;
	}

	.nav-item {
		font-size: 20px;
		padding: 10px 0;
		border-bottom: 1px solid #eee;
	}

	.logo {
		padding: 20px;
	}

	.hamburger {
		top: 30px;
		right: 20px;
	}

	.hero {
		margin-top: 0;
	}

	.footer-content {
		flex-direction: column;
		gap: 30px;
	}

	.footer-column {
		min-width: 100%;
	}
}

/* Small mobile */
@media (max-width: 600px) {
	.hero-title {
		font-size: 20px;
	}

	.hero-subtitle {
		font-size: 16px;
	}

	.projects-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.divisions-grid {
		grid-template-columns: 1fr;
	}

	.social-grid {
		grid-template-columns: 1fr;
	}
}

/* Very small mobile */
@media (max-width: 400px) {
	.hero-button {
		width: 180px;
		font-size: 14px;
	}

	.carousel-dots {
		gap: 10px;
	}

	.dot {
		width: 15px;
		height: 12px;
	}
}
