/* Reset and base styles */
* {
	box-sizing: border-box;
}

:root {
	--primary-color: #027361;
	--primary-color-hover: #00927a;
	--black: #000;
	--light-bg: #f8fafb;
	--white: #ffffff;

	--hue: 206;
	--bkg: var(--hue) 50% 96%;
	--text: var(--hue) 70% 9%;
	--dark: var(--hue) 70% 3%;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Manrope', sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
	font-size: 1.125rem;
	color: var(--black);
	padding: 20px;
	text-align: center;
	overflow-x: hidden;
	max-width: 2600px;
	margin: 0 auto;
}

h1,
h2,
h3 {
	font-family: 'Petrona', serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
	margin: 0;
}

h1 {
	font-size: 3.75rem;
	line-height: 4.5rem;
	margin-bottom: 32px;
}

h2,
h3 {
	font-size: 3rem;
	line-height: 3.5rem;
	margin-bottom: 32px;
	color: var(--primary-color);
}

h1 span,
h2 span,
h3 span {
	font-family: 'Playwrite CO', cursive;
	font-size: 0.875em;
	font-weight: 300;
}

main {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 20px;
}

header,
footer,
section.light-bg {
	background-color: var(--light-bg);
	border-radius: 20px;
}

section {
	padding: 80px 0;
}

section.no-padding {
	padding: 0;
}

.content,
nav,
.footer-content {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	overflow: hidden;
}

.cta-button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 24px;
	background-color: var(--primary-color);
	color: var(--white) !important;
	text-decoration: none;
	font-weight: 600;
	border-radius: 999px;
	transition: background-color 0.3s ease;
	cursor: pointer;
}

.cta-button:hover {
	background-color: var(--primary-color-hover);
}

p a:visited {
	color: inherit;
}

/* Header and Navigation */
.header {
	width: 100%;
	top: 0;
	z-index: 1000;
}

.header nav {
	padding: 20px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header.mobile-header {
	height: 535px;
}

.mobile-menu,
.mobile-cta-links {
	display: none;
}

.nav-links {
	display: flex;
	list-style: none;
	align-self: stretch;
	align-items: center;
	gap: 2rem;
	padding: 0;
	margin: 0;
}

.nav-links li {
	height: 100%;
	display: flex;
	padding-block: 8px;
}

.nav-links a {
	height: 100%;
	display: flex;
	align-items: center;
	color: var(--black);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.nav-links a:hover {
	color: var(--primary-color-hover);
}

.cta-links {
	height: 100%;
	display: flex;
	align-items: stretch;
}

.cta-links .phone {
	display: flex;
	align-items: center;
	margin-right: 16px;
	text-decoration: none;
	color: inherit;
}

.cta-links .phone:hover {
	color: var(--primary-color-hover);
}

/* Hero Section */
.hero {
	height: 80vh;
	min-height: 600px;
	max-height: 1000px;
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-start;
	justify-content: start;
	text-align: left;
	color: var(--white);
	margin-top: 20px;
	padding-top: 10vh;
}

.hero-img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
	top: 0;
	left: 0;
	z-index: -1;
}

.hero ul {
	line-height: 2;
	padding-left: 24px;
}

/* Galerija Section */
.galerija {
	height: 80vh;
	min-height: 1000px;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.galerija .content {
	max-width: 800px;
	position: relative;
	z-index: 1;
}

.galerija .cta-button {
	position: absolute;
	bottom: 80px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 20;
}

.gal-img {
	position: absolute;
	transition: transform 0.3s ease-out;
	will-change: transform;
	z-index: 0;
}

.gal-img-mobile {
	display: none;
}

.img-left-1 {
	top: 0;
	left: -40px;
}

.img-left-2 {
	top: 340px;
	left: 10%;
}

.img-left-3 {
	bottom: 200px;
	left: 25%;
}

.img-center-1 {
	bottom: 200px;
	left: 40%;
}

.img-center-2 {
	bottom: 200px;
	left: 50%;
}

.img-center-3 {
	bottom: 200px;
	left: 55%;
}

.img-right-1 {
	top: 80px;
	right: -100px;
}

.img-right-2 {
	top: 350px;
	right: 10%;
}

.img-right-3 {
	bottom: 200px;
	right: 20%;
}

/* Usluge */
.usluge {
	padding-bottom: 0;
}

.usluge-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 64px 32px;
	margin: 64px 0;
}

.usluge-item {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.usluge-item img {
	width: 60px;
	height: 60px;
}

.cta-banner {
	background-image: url('/assets/Goc-Panorama.webp');
	background-color: rgba(0, 0, 0, 0.4);
	background-blend-mode: darken;

	background-size: cover;
	background-position: center;
	box-shadow: inset 0 0 0 1000px rgba(0, 43, 35, 0.1);

	color: var(--white);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	border-radius: 20px;
	padding: 40px;
	margin: 160px 0;
	position: relative;
	z-index: 2;
	transition: all 1s ease;
}

.cta-banner.revert {
	box-shadow: inset 0 0 0 1000px rgba(0, 43, 35, 1);
}

.cta-banner h3 {
	color: var(--white);
}

.cta-banner p {
	margin: 0;
}

.cta-banner p a {
	color: var(--white);
}

.cta-banner p a:hover {
	color: var(--primary-color-hover);
}

.cta-banner .cta-button {
	margin-top: 60px;
}

.bg-on-scroll {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	height: 100vh;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.6s ease;
}

.bg-on-scroll.visible {
	opacity: 1;
	pointer-events: auto;
}

/* Galerija unutrasnjosti */
.unutrasnjost-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1.5rem;
	margin: 32px 0;
}

.grid-item {
	border-radius: 20px;
	overflow: hidden;
	cursor: zoom-in;
}

.grid-item:hover img {
	transform: scale(1.05);
}

.grid-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.grid-1 {
	grid-area: 1 / 1 / span 4 / span 2;
}

.grid-2 {
	grid-area: 1 / 3 / span 4 / span 1;
}

.grid-3 {
	grid-area: 1 / 4 / span 4 / span 1;
}

.grid-4 {
	grid-area: 1 / 5 / span 2 / span 1;
}

.grid-5 {
	grid-area: 3 / 5 / span 2 / span 1;
}

.grid-6 {
	grid-area: 5 / 1 / span 2 / span 1;
}

.grid-7 {
	grid-area: 7 / 1 / span 2 / span 1;
}

.grid-8 {
	grid-area: 5 / 2 / span 4 / span 1;
}

.grid-9 {
	grid-area: 5 / 3 / span 4 / span 3;
}

/* Instagram */
.social-wrapper {
	margin: 0 auto;
	max-width: 100%;
	margin-bottom: 60px;
	overflow: hidden;
	display: flex;
}

.social-wrapper > * {
	flex: 0 0 100%;
}

.social-links {
	display: flex;
	gap: 20px;
	padding-right: 20px;
	will-change: transform;
	animation: scrolling 30s linear infinite;
}

.social-cta {
	padding: 16px;
	border-radius: 999px;
	background-color: #f9fbfd;
	border: 1px solid #d9ebe9;
	color: var(--primary-color);
	text-decoration: none;
}

.social-wrapper:hover .social-links {
	animation-play-state: paused;
}

@keyframes scrolling {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-100%);
	}
}

/* Lokacija */
.lokacija {
	background-image: url('assets/mapa.webp');
	background-position: center;
	background-size: cover;
	padding: 200px 0;
	border-radius: 20px;
	width: 100%;
}

.lokacija-content {
	max-width: 600px;
	background-color: var(--white);
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	gap: 32px;
	padding: 32px;
}

.lokacija-content h2,
.lokacija-content p {
	margin: 0 0 16px 0;
}

/* Vremenska prognoza */
.weather-forecast {
	display: flex;
	justify-content: center;
}

.weather-day {
	flex: 1;
	padding: 1rem;
}

.weather-day-1 {
	margin-right: 40px;
	position: relative;
}

.weather-day-1::before {
	content: '';
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: -40px;
	width: 1px;
	height: 60px;
	background-color: #d1d9e2;
}

/* Recenzije */
.carousel-item {
	min-width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.carousel-item blockquote,
.carousel-item p {
	max-width: 600px;
}

.carousel-item blockquote {
	font-family: 'Petrona', serif;
	font-style: italic;
	color: var(--primary-color);
	font-size: 1.75rem;
}

.recenzije button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	margin: 0;
	padding: 0;
	width: auto;
	overflow: visible;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: normal;
	cursor: pointer;
	-webkit-font-smoothing: inherit;
	-moz-osx-font-smoothing: inherit;
	-webkit-appearance: none;
}

.recenzije button span {
	font-size: 3rem;
	color: var(--primary-color);
}

.recenzije button:hover span {
	color: var(--primary-color-hover);
}

.recenzije #prev {
	left: 0;
}

.recenzije #next {
	right: 0;
}

/* Blog */
.blog-list {
	display: flex;
	gap: 24px;
	margin-top: 32px;
	text-align: left;
}

.blog-post {
	display: grid;
}

.blog-post a {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.blog-list .column {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.blog-post-3 {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.blog-post img {
	width: 100%;
	height: 100%;
	height: 240px;
	object-fit: cover;
	border-radius: 20px;
	transition: all 0.3s ease;
}

.blog-post-3 img {
	height: 100%;
}

.blog-post h3 {
	font-size: 1.5rem;
	line-height: 1.2;
	color: var(--primary-color);
	margin: 8px 0 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-post p {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	padding-bottom: 0.4rem;
}

.blog-post a:hover h3 {
	color: var(--primary-color-hover);
}

.blog-post a:hover img {
	opacity: 0.75;
}

/* Footer */
.footer {
	padding: 80px 32px;
}

.footer p {
	margin: 0;
}

.footer-top {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #d1d9e2;
	padding-bottom: 2rem;
	margin-bottom: 2rem;
}

.footer nav {
	display: flex;
	justify-content: flex-end;
	gap: 3rem;
}

.footer nav a,
.footer-bottom div a {
	text-decoration: none;
	color: inherit;
}

.footer nav a:hover,
.footer-bottom div a:hover {
	color: var(--primary-color-hover);
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-align: left;
	margin-bottom: 2rem;
	flex-wrap: wrap-reverse;
	gap: 20px;
}

.footer-bottom div {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.footer-bottom div a {
	display: flex;
	gap: 4px;
}

/* Booking Modal */
.booking-modal {
	display: none;
	position: fixed;
	align-items: center;
	justify-content: center;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9999;
}

.modal-top-img {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 240px;
	object-fit: cover;
}

.close-button {
	display: flex;
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 1;
	background: transparent;
	border: none;
	padding: 16px;
	cursor: pointer;
	opacity: 0.5;
	background: white;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.close-button:hover {
	opacity: 1;
}

.booking-modal h3 {
	font-size: 2rem;
	text-align: left;
	margin: 16px 0;
	font-weight: 600;
}

.booking-form-wrapper {
	background: white;
	min-width: fit-content;
	width: 800px;
	padding: 240px 2rem 2rem;
	border-radius: 20px;
	position: relative;
	overflow: hidden;
	box-shadow: 0px 0px 20px #00000010;
}

#booking-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	text-align: left;
	position: relative;
	z-index: 1;
}

#booking-form .form-group {
	display: flex;
	flex-direction: column;
}

#booking-form label {
	font-weight: 600;
	font-size: 0.875rem;
	opacity: 0.75;
}

#booking-form input,
#booking-form textarea,
#booking-form select {
	padding: 0.5rem 0.75rem;
	border: 1px solid #ccc;
	background-color: white;
	border-radius: 6px;
	font-size: 1rem;
	font-family: inherit;
	transition: border-color 0.3s ease;
}

#booking-form input:focus,
#booking-form textarea:focus {
	border-color: var(--primary-color-hover);
	outline: none;
}

#booking-form textarea {
	resize: vertical;
	min-height: 120px;
}

#booking-form button[type='submit'] {
	width: 100%;
	justify-content: center;
	border: none;
	cursor: pointer;
	align-self: center;
	justify-self: center;
	grid-column: span 2;
	font-family: 'Manrope', sans-serif;
	font-size: 1rem;
	padding: 0.75rem;
}

.custom-number-input {
	display: flex;
	align-items: center;
	max-width: 180px;
	border-radius: 8px;
	overflow: hidden;
	gap: 4px;
}

.custom-number-input button {
	background: #ddd;
	border: none;
	padding: 0.5rem 1rem;
	font-size: 1.2rem;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s;
}

.custom-number-input button:hover {
	background: #ccc;
}

#booking-form .custom-number-input input[type='number'] {
	width: 100%;
	padding-right: 0;
	text-align: center;
}

/* Toast msg */
#toast {
	display: none;
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--primary-color);
	color: white;
	padding: 1rem 1.5rem;
	border-radius: 6px;
	font-weight: 500;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	z-index: 10000;
}

@media screen and (max-width: 1800px), screen and (max-height: 1200px) {
	.gal-img {
		scale: 0.75;
	}

	.img-left-1 {
		left: -160px;
	}

	.img-left-2 {
		left: 4%;
	}

	.img-right-1 {
		right: -250px;
	}

	.img-right-2 {
		top: 320px;
		right: 0;
	}
}

@media screen and (max-width: 1400px) {
	section,
	header,
	footer,
	.lokacija .content {
		padding-inline: 32px;
	}

	.gal-img {
		scale: 0.625;
	}
}

@media screen and (max-width: 1200px) {
	html {
		font-size: 0.875em;
	}

	body {
		padding: 12px;
	}

	h1 {
		font-size: 2.75rem;
		line-height: 3.5rem;
		margin-bottom: 24px;
	}

	h2,
	h3 {
		font-size: 2.5rem;
		line-height: 2.5rem;
		margin-bottom: 18px;
	}

	.cta-button {
		padding: 12px 18px;
	}

	section {
		padding: 40px 0;
	}

	section.light-bg,
	.hero {
		padding-inline: 16px;
	}

	.footer {
		padding: 40px 16px;
	}

	header {
		padding-inline: 12px;
	}

	.header nav {
		flex-direction: row-reverse;
		padding: 12px 0;
	}

	.nav-links,
	.cta-links {
		display: none;
	}

	.logo img {
		height: 30px;
		width: auto;
	}

	.mobile-menu {
		display: block;
		background: white;
		border-radius: 6px;
		padding: 12px;
		display: flex;
		align-items: center;
		justify-content: center;
		text-decoration: none;
		color: var(--primary-color);
	}

	nav.mobile-active .nav-links {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 100px;
		left: 12px;
		z-index: 10;
		width: 100%;
	}

	nav.mobile-active .mobile-cta-links {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	.mobile-cta-links .cta-button {
		color: white;
	}

	.hero {
		padding-top: 40px;
		min-height: fit-content;
		height: fit-content;
	}

	.hero ul {
		line-height: 1.4;
	}

	.hero ul li {
		padding-bottom: 6px;
	}

	.galerija {
		min-height: auto;
		height: auto;
	}

	.galerija .content {
		overflow: visible;
	}

	.galerija .cta-button {
		position: relative;
		left: auto;
		bottom: auto;
		transform: none;
	}

	.gal-img {
		display: none;
	}

	.gal-img-mobile {
		display: block;
	}

	.cta-banner {
		margin: 40px 0 0;
		padding: 32px 16px;
	}

	.cta-banner .cta-button {
		margin-top: 32px;
	}

	.bg-on-scroll {
		display: none;
	}

	.lokacija {
		background-position: top;
		background-image: url('assets/mobile-map.webp');
		padding: 300px 6px 6px;
	}

	.lokacija .content {
		padding-inline: 0;
	}

	.lokacija-content {
		max-width: none;
		width: 100%;
		padding: 32px 16px;
		gap: 8px;
	}

	.social-wrapper {
		margin-bottom: 40px;
	}

	.blog-list {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.column.last-column {
		display: contents;
		grid-column: span 2;
	}

	.footer-top img {
		height: 35px;
		width: auto;
	}
}

@media screen and (max-width: 1000px), screen and (max-height: 900px) {
	.booking-modal {
		align-items: flex-start;
		padding: 24px;
		overflow: auto;
	}

	.booking-form-wrapper {
		padding: 140px 16px 16px;
		margin: auto;
	}

	.modal-top-img {
		height: 140px;
	}
}

@media screen and (max-width: 600px) {
	h1 {
		font-size: 2.5rem;
		line-height: 3rem;
		margin-bottom: 20px;
	}

	h2,
	h3 {
		font-size: 2rem;
		line-height: 2rem;
		margin-bottom: 14px;
	}

	.usluge-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 32px 16px;
		margin: 32px 0;
	}

	.usluge-item img {
		width: 36px;
		height: 36px;
	}

	.usluge-item p {
		font-size: 14px;
	}

	.unutrasnjost-grid {
		gap: 0.5rem;
		margin: 16px 0;
	}

	.grid-item {
		border-radius: 8px;
	}

	.lokacija {
		padding: 200px 6px 6px;
	}

	.booking-modal {
		padding: 12px;
	}

	.booking-form-wrapper {
		padding: 88px 16px 16px;
	}

	.modal-top-img {
		height: 88px;
	}

	.close-button {
		padding: 12px;
		top: 12px;
		right: 12px;
	}

	.close-button span {
		font-size: 18px;
	}

	#booking-form {
		grid-template-columns: 1fr;
		column-gap: 0;
		row-gap: 8px;
	}

	#booking-form > * {
		grid-column: 1;
	}

	.booking-modal h3 {
		font-size: 1.75rem;
		margin: 8px 0;
	}

	#booking-form textarea {
		height: 70px;
		min-height: auto;
	}

	.blog-list {
		grid-template-columns: 1fr;
	}

	.blog-post img,
	.blog-post-3 img {
		height: 180px;
	}

	.footer-top nav {
		display: none;
	}
}

@media screen and (max-width: 380px) {
	html {
		font-size: 0.75em;
	}
}
